function dropdownEffectData(n){var r=null,u=null,f=$(n),t=$(".dropdown-menu",n),i=f.parents("ul.nav");return i.height>0&&(r=i.data("dropdown-in")||null,u=i.data("dropdown-out")||null),{target:n,dropdown:f,dropdownMenu:t,effectIn:t.data("dropdown-in")||r,effectOut:t.data("dropdown-out")||u}}function dropdownEffectStart(n,t){t&&(n.dropdown.addClass("dropdown-animating"),n.dropdownMenu.addClass("animated"),n.dropdownMenu.addClass(t))}function dropdownEffectEnd(n,t){n.dropdown.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){n.dropdown.removeClass("dropdown-animating");n.dropdownMenu.removeClass("animated");n.dropdownMenu.removeClass(n.effectIn);n.dropdownMenu.removeClass(n.effectOut);"function"==typeof t&&t()})}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var WOW,OFFSET_TOP,dropdownSelectors,_createClass,initPhotoSwipeFromDOM,jwplayer,$jw,_userPlayerReady;(function(n,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function ir(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function fi(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function l(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function oi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):typeof t!="string"?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):er.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&n.nodeType===1}))}function ar(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function nt(n){return n}function pt(n){throw n;}function vr(n,t,r,u){var f;try{n&&i.isFunction(f=n.promise)?f.call(n).done(t).fail(r):n&&i.isFunction(f=n.then)?f.call(n,t,r):t.apply(undefined,[n].slice(u))}catch(n){r.apply(undefined,[n])}}function bt(){u.removeEventListener("DOMContentLoaded",bt);n.removeEventListener("load",bt);i.ready()}function ht(){this.expando=i.expando+ht.uid++}function re(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:te.test(n)?JSON.parse(n):n}function pr(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=re(i)}catch(u){}e.set(n,t,i)}else i=undefined;return i}function kr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function ue(n){var r,f=n.ownerDocument,u=n.nodeName,t=si[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),si[u]=t,t)}function tt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&kt(u)&&(f[i]=ue(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&l(n,t))?i.merge([n],r):r}function hi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function iu(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(tu.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(gr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&hi(s),r)for(v=0;e=s[v++];)nu.test(e.type||"")&&r.push(e)}return h}function gt(){return!0}function it(){return!1}function uu(){try{return u.activeElement}catch(n){}}function ci(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)ci(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=it;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function fu(n,t){return l(n,"table")&&l(t.nodeType!==11?t:t.firstChild,"tr")?i(">tbody",n)[0]||n:n}function ae(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ve(n){var t=ce.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function eu(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ye(n,t){var i=t.nodeName.toLowerCase();i==="input"&&dr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function rt(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&typeof y=="string"&&!f.checkClone&&he.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));rt(r,t,u,e)});if(v&&(l=iu(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),ae),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ve),h=0;h<a;h++)s=c[h],nu.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):ir(s.textContent.replace(le,""),w))}return n}function ou(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&hi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&li.test(u)&&su.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function hu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function be(n){if(n in vu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=au.length;t--;)if(n=au[t]+i,n in vu)return n}function yu(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=be(n)||n),t}function pu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wu(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:t==="width"?1:0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+b[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+b[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+b[e]+"Width",!0,f))):(o+=i.css(n,"padding"+b[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+b[e]+"Width",!0,f)));return o}function bu(n,t,r){var o,e=ni(n),u=lt(n,t,e),s=i.css(n,"boxSizing",!1,e)==="border-box";return li.test(u)?u:(o=s&&(f.boxSizingReliable()||u===n.style[t]),u==="auto"&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)]),u=parseFloat(u)||0,u+wu(n,t,r||(s?"border":"content"),o,e)+"px")}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function ai(){ti&&(u.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ai):n.setTimeout(ai,i.fx.interval),i.fx.tick())}function gu(){return n.setTimeout(function(){ut=undefined}),ut=i.now()}function ii(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=b[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function nf(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ke(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],ku.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(tt([n],!0),o=n.style.display||o,l=i.css(n,"display"),tt([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&tt([n],!0),v.done(function(){a||tt([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=nf(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function de(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var e,o,s=0,l=a.prefilters.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=ut||gu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return(f.notifyWith(n,[u,i,t]),i<1&&e)?t:(e||f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ut||gu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(f.notifyWith(n,[u,1,0]),f.resolveWith(n,[u,t])):f.rejectWith(n,[u,t]),this}}),h=u.props;for(de(h,u.opts.specialEasing);s<l;s++)if(e=a.prefilters[s].call(u,n,h,u.opts),e)return i.isFunction(e.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(e.stop,e)),e;return i.map(h,nf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u}function k(n){var t=n.match(h)||[];return t.join(" ")}function d(n){return n.getAttribute&&n.getAttribute("class")||""}function pi(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):pi(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)pi(n+"["+f+"]",t[f],r,u)}function cf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function lf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===wi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function so(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function ho(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var p=[],u=n.document,pf=Object.getPrototypeOf,w=p.slice,gi=p.concat,ui=p.push,ot=p.indexOf,vt={},nr=vt.toString,yt=vt.hasOwnProperty,tr=yt.toString,wf=tr.call(Object),f={},rr="3.2.1",i=function(n,t){return new i.fn.init(n,t)},bf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,kf=/^-ms-/,df=/-([a-z])/g,gf=function(n,t){return t.toUpperCase()},y,ei,er,or,sr,hr,cr,lr,h,yr,wt,v,st,si,tu,ut,ti,ku,du,tf,ft,rf,uf,ff,vi,af,et,di,ri,vf,yf;i.fn=i.prototype={jquery:rr,constructor:i,length:0,toArray:function(){return w.call(this)},get:function(n){return n==null?w.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(w.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ui,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(o?(o=!1,s=r&&Array.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(rr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!n||nr.call(n)!=="[object Object]"?!1:(t=pf(n),!t)?!0:(i=yt.call(t,"constructor")&&t.constructor,typeof i=="function"&&tr.call(i)===wf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?vt[nr.call(n)]||"object":typeof n},globalEval:function(n){ir(n)},camelCase:function(n){return n.replace(kf,"ms-").replace(df,gf)},each:function(n,t){var r,i=0;if(fi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(bf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(fi(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ui.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(fi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=w.call(arguments,2),r=function(){return n.apply(t||this,f.concat(w.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()});y=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!e.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=y;i.expr=y.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=y.uniqueSort;i.text=y.getText;i.isXMLDoc=y.isXML;i.contains=y.contains;i.escapeSelector=y.escape;var g=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},ur=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},fr=i.expr.match.needsContext;ei=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;er=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return(r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(oi(this,n||[],!1))},not:function(n){return this.pushStack(oi(this,n||[],!0))},is:function(n){return!!oi(this,typeof n=="string"&&fr.test(n)?i(n):n||[],!1).length}});sr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;hr=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||or,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:sr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ei.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};hr.prototype=i.fn;or=i(u);cr=/^(?:parents|prev(?:Until|All))/;lr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!fr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return g(n,"parentNode")},parentsUntil:function(n,t,i){return g(n,"parentNode",i)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return g(n,"nextSibling")},prevAll:function(n){return g(n,"previousSibling")},nextUntil:function(n,t,i){return g(n,"nextSibling",i)},prevUntil:function(n,t,i){return g(n,"previousSibling",i)},siblings:function(n){return ur((n.parentNode||{}).firstChild,n)},children:function(n){return ur(n.firstChild)},contents:function(n){return l(n,"iframe")?n.contentDocument:(l(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(lr[n]||i.uniqueSort(f),cr.test(n)&&f.reverse()),this.pushStack(f)}});h=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ne(n):i.extend({},n);var e,r,h,u,t=[],o=[],f=-1,c=function(){for(u=u||n.once,h=e=!0;o.length;f=-1)for(r=o.shift();++f<t.length;)t[f].apply(r[0],r[1])===!1&&n.stopOnFalse&&(f=t.length,r=!1);n.memory||(r=!1);e=!1;u&&(t=r?[]:"")},s={add:function(){return t&&(r&&!e&&(f=t.length-1,o.push(r)),function u(r){i.each(r,function(r,f){i.isFunction(f)?n.unique&&s.has(f)||t.push(f):f&&f.length&&i.type(f)!=="string"&&u(f)})}(arguments),r&&!e&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=f&&f--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return u=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=o=[],r||e||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),e||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&(typeof n=="object"||typeof n=="function")&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,nt,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,nt,f),o(e,r,pt,f),o(e,r,nt,r.notifyWith))):(u!==nt&&(s=undefined,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==pt&&(s=undefined,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:nt,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:nt));u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return n!=null?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=w.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?w.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(vr(n,r.done(o(t)).resolve,r.reject,!f),r.state()==="pending"||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)vr(u[t],o(t),r.reject);return r.promise()}});yr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&yr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};wt=i.Deferred();i.fn.ready=function(n){return wt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||wt.resolveWith(u,[i])}});i.ready.then=wt.then;u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt)):n.setTimeout(i.ready);v=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)v(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};st=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};ht.uid=1;ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if(typeof t=="string")f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=t in r?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),pr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):v(this,function(t){var i;if(u&&t===undefined)return(i=e.get(u,n),i!==undefined)?i:(i=pr(u,n),i!==undefined)?i:void 0;this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var wr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+wr+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},br=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};si={};i.fn.extend({show:function(){return tt(this,!0)},hide:function(){return tt(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dr=/^(?:checkbox|radio)$/i,gr=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,nu=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;tu=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,fe=/^key/,ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ru=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=ru.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=ru.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==uu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===uu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&l(this,"input"))return this.click(),!1},_default:function(n){return l(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?gt:it,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return n.which==null&&fe.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&ee.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return ci(this,n,t,i,r)},one:function(n,t,i,r){return ci(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,se=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(oe,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ye(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)eu(s[u],e[u]);else eu(n,h);return e=o(h,"script"),e.length>0&&hi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({detach:function(n){return ou(this,n,!0)},remove:function(n){return ou(this,n)},text:function(n){return v(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=fu(this,n);t.appendChild(n)}})},prepend:function(){return rt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=fu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return rt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return v(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!se.test(n)&&!c[(gr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return rt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ui.apply(f,u.get());return this.pushStack(f)}});var su=/^margin/,li=new RegExp("^("+wr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};(function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";dt.appendChild(e);var i=n.getComputedStyle(t);o=i.top!=="1%";c=i.marginLeft==="2px";s=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";dt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))})();var pe=/^(none|table(?!-c[ea]).+)/,cu=/^--/,we={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"},au=["Webkit","Moz","ms"],vu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,s,o,c=i.camelCase(t),l=cu.test(t),h=n.style;if(l||(t=yu(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(e=ct.exec(r))&&e[1]&&(r=kr(n,t,e),s="number"),r==null||r!==r)return;s==="number"&&(r+=e&&e[3]||(i.cssNumber[c]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:h[t]}},css:function(n,t,r,u){var f,o,e,s=i.camelCase(t),h=cu.test(t);return(h||(t=yu(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=lt(n,t,u)),f==="normal"&&t in lu&&(f=lu[t]),r===""||r)?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return pe.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?br(n,we,function(){return bu(n,t,u)}):bu(n,t,u)},set:function(n,r,u){var f,e=u&&ni(n),o=u&&wu(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=ct.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),pu(n,r,o)}}});i.cssHooks.marginLeft=hu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-br(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};su.test(n)||(i.cssHooks[n+t].set=pu)});i.fn.extend({css:function(n,t){return v(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};ku=/^(?:toggle|show|hide)$/;du=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return kr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],a.tweeners[r]=a.tweeners[r]||[],a.tweeners[r].unshift(t)},prefilters:[ke],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off?u.duration=0:typeof u.duration!="number"&&(u.duration=u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default),(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&du.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ii(t,!0),n,i,u)}});i.each({slideDown:ii("show"),slideUp:ii("hide"),slideToggle:ii("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ut=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ut=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){ti||(ti=!0,ai())};i.fx.stop=function(){ti=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=n.value!=="";f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();ft=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return v(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?tf:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&l(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});tf={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=r(n,t,i)!=null?u:null,ft[u]=e),f}});rf=/^(?:input|select|textarea|button)$/i;uf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return v(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):rf.test(n.nodeName)||uf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,d(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=r.nodeType===1&&" "+k(u)+" ",t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,d(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=d(r),t=r.nodeType===1&&" "+k(u)+" ",t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=k(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,d(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=d(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+k(d(t))+" ").indexOf(i)>-1)return!0;return!1}});ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string")?r.replace(ff,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:k(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});vi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!vi.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,vi.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&st(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,ef=i.now(),yi=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ge=/\[\]$/,of=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(r==null?"":r)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)pi(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!dr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(of,"\r\n")}}):{name:t.name,value:r.replace(of,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/mg,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,sf={},wi={},hf="*/".concat("*"),bi=u.createElement("a");return bi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":hf,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:cf(sf),ajaxTransport:cf(wi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,u&&(p=so(f,e,u)),p=ho(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(c,[rt,a,e]):tt.rejectWith(c,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,a]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,y,d,a,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=fo.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return l&&l.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(oo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=bi.protocol+"//"+bi.host!=a.protocol+"//"+a.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),lf(sf,f,r,e),s)return e;v=i.event&&f.global;v&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!eo.test(f.type);o=f.url.replace(ro,"");f.hasContent?f.data&&f.processData&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(f.data=f.data.replace(io,"+")):(p=f.url.slice(o.length),f.data&&(o+=(yi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(uo,"$1"),p=(yi.test(o)?"&":"?")+"_="+ef+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+hf+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),l=lf(wi,f,r,e),l){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;l.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},af={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(af[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),di=[],ri=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=di.pop()||i.expando+"_"+ef++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ri.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ri.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ri,"$1"+f):t.jsonp!==!1&&(t.url+=(yi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,di.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,e,o;return(t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=ei.exec(n),o=!r&&[],e)?[t.createElement(e[1])]:(e=iu([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=k(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,f,e,t=this[0];if(t)return t.getClientRects().length?(f=t.getBoundingClientRect(),r=t.ownerDocument,u=r.documentElement,e=r.defaultView,{top:f.top+e.pageYOffset-u.clientTop,left:f.left+e.pageXOffset-u.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),l(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(u){return v(this,function(n,u,f){var e;if(i.isWindow(n)?e=n:n.nodeType===9&&(e=n.defaultView),f===undefined)return e?e[t]:n[u];e?e.scrollTo(r?e.pageXOffset:f,r?f:e.pageYOffset):n[u]=f},n,u,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=hu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),li.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return v(this,function(t,r,f){var e;return i.isWindow(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=l,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),vf=n.jQuery,yf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=yf),t&&n.jQuery===i&&(n.jQuery=vf),i},t||(n.jQuery=n.$=i),i}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ui(n){var t=!1,i=0,r=document.createElement("span"),u=new MutationObserver(function(){n();t=!1});return u.observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",i),i=i+1)}}function fi(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ft))}}function st(n){return n&&{}.toString.call(n)==="[object Function]"}function u(n,t){if(n.nodeType!==1)return[];var i=window.getComputedStyle(n,null);return t?i[t]:i}function w(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function f(n){if(!n||["HTML","BODY","#document"].indexOf(n.nodeName)!==-1)return window.document.body;var t=u(n),i=t.overflow,r=t.overflowX,e=t.overflowY;return/(auto|scroll)/.test(i+e+r)?n:f(w(n))}function i(n){var t=n&&n.offsetParent,r=t&&t.nodeName;return!r||r==="BODY"||r==="HTML"?window.document.documentElement:["TD","TABLE"].indexOf(t.nodeName)!==-1&&u(t,"position")==="static"?i(t):t}function ei(n){var t=n.nodeName;return t==="BODY"?!1:t==="HTML"||i(n.firstElementChild)===n}function b(n){return n.parentNode!==null?b(n.parentNode):n}function s(n,t){var r,f;if(!n||!n.nodeType||!t||!t.nodeType)return window.document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,h=e?t:n,u=document.createRange();return(u.setStart(o,0),u.setEnd(h,0),r=u.commonAncestorContainer,n!==r&&t!==r||o.contains(h))?ei(r)?r:i(r):(f=b(n),f.host?s(f.host,t):s(n,b(t).host))}function r(n){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top",t=f==="top"?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return i==="BODY"||i==="HTML"?(r=window.document.documentElement,u=window.document.scrollingElement||r,u[t]):n[t]}function oi(n,t){var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1,u=r(t,"top"),f=r(t,"left"),i=e?-1:1;return n.top+=u*i,n.bottom+=u*i,n.left+=f*i,n.right+=f*i,n}function ht(n,t){var i=t==="x"?"Left":"Top",r=i==="Left"?"Right":"Bottom";return+n["border"+i+"Width"].split("px")[0]+ +n["border"+r+"Width"].split("px")[0]}function ct(n,t,i,r){return Math.max(t["offset"+n],i["client"+n],i["offset"+n],e()?i["offset"+n]+r["margin"+(n==="Height"?"Top":"Left")]+r["margin"+(n==="Height"?"Bottom":"Right")]:0)}function lt(){var t=window.document.body,n=window.document.documentElement,i=e()&&window.getComputedStyle(n);return{height:ct("Height",t,n,i),width:ct("Width",t,n,i)}}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function k(n){var i={},o,s,l;if(e())try{i=n.getBoundingClientRect();o=r(n,"top");s=r(n,"left");i.top+=o;i.left+=s;i.bottom+=o;i.right+=s}catch(p){}else i=n.getBoundingClientRect();var f={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a=n.nodeName==="HTML"?lt():{},v=a.width||n.clientWidth||f.right-f.left,y=a.height||n.clientHeight||f.bottom-f.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=u(n),h-=ht(l,"x"),c-=ht(l,"y"),f.width-=h,f.height-=c),t(f)}function d(n,i){var y=e(),w=i.nodeName==="HTML",o=k(n),p=k(i),l=f(n),s=u(i),a=+s.borderTopWidth.split("px")[0],v=+s.borderLeftWidth.split("px")[0],r=t({top:o.top-p.top-a,left:o.left-p.left-v,width:o.width,height:o.height}),h,c;return r.marginTop=0,r.marginLeft=0,!y&&w&&(h=+s.marginTop.split("px")[0],c=+s.marginLeft.split("px")[0],r.top-=a-h,r.bottom-=a-h,r.left-=v-c,r.right-=v-c,r.marginTop=h,r.marginLeft=c),(y?i.contains(l):i===l&&l.nodeName!=="BODY")&&(r=oi(r,i)),r}function ci(n){var i=window.document.documentElement,u=d(n,i),f=Math.max(i.clientWidth,window.innerWidth||0),e=Math.max(i.clientHeight,window.innerHeight||0),o=r(i),s=r(i,"left"),h={top:o-u.top+u.marginTop,left:s-u.left+u.marginLeft,width:f,height:e};return t(h)}function at(n){var t=n.nodeName;return t==="BODY"||t==="HTML"?!1:u(n,"position")==="fixed"?!0:at(w(n))}function g(n,t,i,r){var u={top:0,left:0},h=s(n,t),o,e;if(r==="viewport")u=ci(h);else if(o=void 0,r==="scrollParent"?(o=f(w(n)),o.nodeName==="BODY"&&(o=window.document.documentElement)):o=r==="window"?window.document.documentElement:r,e=d(o,h),o.nodeName!=="HTML"||at(h))u=e;else{var c=lt(),l=c.height,a=c.width;u.top+=e.top-e.marginTop;u.bottom=l+e.top;u.left+=e.left-e.marginLeft;u.right=a+e.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function li(n){var t=n.width,i=n.height;return t*i}function vt(t,i,r,u,f){var l=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var e=g(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:li(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=h.length>0?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function yt(n,t,i){var r=s(t,i);return d(i,r)}function pt(n){var t=window.getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function l(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function wt(n,t,i){i=i.split("-")[0];var r=pt(n),e={width:r.width,height:r.height},u=["right","left"].indexOf(i)!==-1,o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[l(f)],e}function o(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function ai(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=o(n,function(n){return n[t]===i});return n.indexOf(r)}function bt(n,i,r){var u=r===undefined?n:n.slice(0,ai(n,"name",r));return u.forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n.function||n.fn;n.enabled&&st(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function vi(){if(!this.state.isDestroyed){var n={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};if(n.offsets.reference=yt(this.state,this.popper,this.reference),n.placement=vt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.offsets.popper=wt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position="absolute",n=bt(this.modifiers,n),this.state.isCreated)this.options.onUpdate(n);else{this.state.isCreated=!0;this.options.onCreate(n)}}}function kt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function dt(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length-1;t++)if(i=u[t],r=i?""+i+f:n,typeof window.document.body.style[r]!="undefined")return r;return null}function yi(){return this.state.isDestroyed=!0,kt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[dt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function gt(n,t,i,r){var e=n.nodeName==="BODY",u=e?window:n;u.addEventListener(t,i,{passive:!0});e||gt(f(u.parentNode),t,i,r);r.push(u)}function pi(n,t,i,r){i.updateBound=r;window.addEventListener("resize",i.updateBound,{passive:!0});var u=f(n);return gt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function wi(){this.state.eventsEnabled||(this.state=pi(this.reference,this.options,this.state,this.scheduleUpdate))}function bi(n,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function ki(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=bi(this.reference,this.state))}function nt(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function di(n,t){Object.keys(t).forEach(function(i){var r=t[i];r!==!1?n.setAttribute(i,t[i]):n.removeAttribute(i)})}function gi(n){return tt(n.instance.popper,n.styles),di(n.instance.popper,n.attributes),n.offsets.arrow&&tt(n.arrowElement,n.offsets.arrow),n}function nr(n,t,i,r,u){var f=yt(u,t,n),e=vt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:"absolute"}),i}function tr(t,r){var d=r.x,g=r.y,f=t.offsets.popper,c=o(t.instance.modifiers,function(n){return n.name==="applyStyle"}).gpuAcceleration,p,w,b;c!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var nt=c!==undefined?c:r.gpuAcceleration,tt=i(t.instance.popper),v=k(tt),u={position:f.position},h={left:Math.floor(f.left),top:Math.floor(f.top),bottom:Math.floor(f.bottom),right:Math.floor(f.right)},e=d==="bottom"?"top":"bottom",s=g==="right"?"left":"right",y=dt("transform"),l=void 0,a=void 0;return a=e==="bottom"?-v.height+h.bottom:h.top,l=s==="right"?-v.width+h.right:h.left,nt&&y?(u[y]="translate3d("+l+"px, "+a+"px, 0)",u[e]=0,u[s]=0,u.willChange="transform"):(p=e==="bottom"?-1:1,w=s==="right"?-1:1,u[e]=a*p,u[s]=l*w,u.willChange=e+", "+s),b={"x-placement":t.placement},t.attributes=n({},b,t.attributes),t.styles=n({},u,t.styles),t}function ni(n,t,i){var u=o(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r,e;return f||(r="`"+t+"`",e="`"+i+"`",console.warn(e+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function ir(n,i){var u,v,c;if(!ni(n.instance.modifiers,"arrow","keepTogether"))return n;if(u=i.element,typeof u=="string"){if(u=n.instance.popper.querySelector(u),!u)return n}else if(!n.instance.popper.contains(u))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var y=n.placement.split("-")[0],a=n.offsets,o=a.popper,f=a.reference,s=["left","right"].indexOf(y)!==-1,l=s?"height":"width",r=s?"top":"left",p=s?"left":"top",h=s?"bottom":"right",e=pt(u)[l];return f[h]-e<o[r]&&(n.offsets.popper[r]-=o[r]-(f[h]-e)),f[r]+e>o[h]&&(n.offsets.popper[r]+=f[r]+e-o[h]),v=f[r]+f[l]/2-e/2,c=v-t(n.offsets.popper)[r],c=Math.max(Math.min(o[l]-e,c),0),n.arrowElement=u,n.offsets.arrow={},n.offsets.arrow[r]=Math.round(c),n.offsets.arrow[p]="",n}function rr(n){return n==="end"?"start":n==="start"?"end":n}function ti(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1,t=a.indexOf(n),i=a.slice(t+1).concat(a.slice(0,t));return r?i.reverse():i}function ur(t,i){if(kt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=g(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement),r=t.placement.split("-")[0],o=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case v.FLIP:f=[r,o];break;case v.CLOCKWISE:f=ti(r);break;case v.COUNTERCLOCKWISE:f=ti(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=l(r);var a=t.offsets.popper,v=t.offsets.reference,c=Math.floor,p=r==="left"&&c(a.right)>c(v.left)||r==="right"&&c(a.left)<c(v.right)||r==="top"&&c(a.bottom)>c(v.top)||r==="bottom"&&c(a.top)<c(v.bottom),w=c(a.left)<c(e.left),b=c(a.right)>c(e.right),k=c(a.top)<c(e.top),d=c(a.bottom)>c(e.bottom),g=r==="left"&&w||r==="right"&&b||r==="top"&&k||r==="bottom"&&d,y=["top","bottom"].indexOf(r)!==-1,nt=!!i.flipVariations&&(y&&u==="start"&&w||y&&u==="end"&&b||!y&&u==="start"&&k||!y&&u==="end"&&d);(p||g||nt)&&(t.flipped=!0,(p||g)&&(r=f[h+1]),nt&&(u=rr(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,wt(t.instance.popper,t.offsets.reference,t.placement)),t=bt(t.instance.modifiers,t,"flip"))}),t}function fr(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=Math.floor,f=["top","bottom"].indexOf(s)!==-1,e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}function er(n,i,r,u){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),e=+h[1],f=h[2],o,c,s;if(!e)return n;if(f.indexOf("%")===0){o=void 0;switch(f){case"%p":o=r;break;case"%":case"%r":default:o=u}return c=t(o),c[i]/100*e}return f==="vh"||f==="vw"?(s=void 0,s=f==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),s/100*e):e}function or(n,t,i,r){var h=[0,0],c=["right","left"].indexOf(r)!==-1,u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(o(u,function(n){return n.search(/,|\s/)!==-1})),s,e;return u[f]&&u[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),s=/\s*,\s*|\s+/,e=f!==-1?[u.slice(0,f).concat([u[f].split(s)[0]]),[u[f].split(s)[1]].concat(u.slice(f+1))]:[u],e=e.map(function(n,r){var f=(r===1?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return n[n.length-1]===""&&["+","-"].indexOf(t)!==-1?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return er(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(h[t]+=i*(n[r-1]==="-"?-1:1))})}),h}function sr(n,t){var f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0],r=void 0;return r=nt(+f)?[+f,0]:or(f,i,s,u),u==="left"?(i.top+=r[0],i.left-=r[1]):u==="right"?(i.top+=r[0],i.left+=r[1]):u==="top"?(i.left+=r[0],i.top-=r[1]):u==="bottom"&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}function hr(t,r){var e=r.boundariesElement||i(t.instance.popper),f;t.instance.reference===e&&(e=i(e));f=g(t.instance.popper,t.instance.reference,r.padding,e);r.boundaries=f;var o=r.priority,u=t.offsets.popper,s={primary:function(n){var t=u[n];return u[n]<f[n]&&!r.escapeWithReference&&(t=Math.max(u[n],f[n])),c({},n,t)},secondary:function(n){var t=n==="right"?"left":"top",i=u[t];return u[n]>f[n]&&!r.escapeWithReference&&(i=Math.min(u[t],f[n]-(n==="right"?u.width:u.height))),c({},t,i)}};return o.forEach(function(t){var i=["left","top"].indexOf(t)!==-1?"primary":"secondary";u=n({},u,s[i](t))}),t.offsets.popper=u,t}function cr(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,o=e.popper,s=["bottom","top"].indexOf(l)!==-1,i=s?"left":"top",h=s?"width":"height",a={start:c({},i,r[i]),end:c({},i,r[i]+r[h]-o[h])};t.offsets.popper=n({},o,a[f])}return t}function lr(n){if(!ni(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=o(n.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(n.hide===!0)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}function ar(n){var i=n.placement,u=i.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=["left","right"].indexOf(u)!==-1,s=["top","left"].indexOf(u)===-1;return r[e?"left":"top"]=o[i]-(s?r[e?"width":"height"]:0),n.placement=l(i),n.offsets.popper=t(r),n}for(var et,ot,h,e,it,a,v,ii=["native code","[object MutationObserverConstructor]"],ri=function(n){return ii.some(function(t){return(n||"").toString().indexOf(t)>-1})},rt=typeof window!="undefined",ut=["Edge","Trident","Firefox"],ft=0,p=0;p<ut.length;p+=1)if(rt&&navigator.userAgent.indexOf(ut[p])>=0){ft=1;break}et=rt&&ri(window.MutationObserver);ot=et?ui:fi;h=undefined;e=function(){return h===undefined&&(h=navigator.appVersion.indexOf("MSIE 10")!==-1),h};var si=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},hi=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};it=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];a=it.slice(3);v={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};var vr={shift:{order:100,enabled:!0,fn:cr},offset:{order:200,enabled:!0,fn:sr,offset:0},preventOverflow:{order:300,enabled:!0,fn:hr,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:fr},arrow:{order:500,enabled:!0,fn:ir,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ur,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ar},hide:{order:800,enabled:!0,fn:lr},computeStyle:{order:850,enabled:!0,fn:tr,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:gi,onLoad:nr,gpuAcceleration:undefined}},yr={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:vr},y=function(){function t(i,r){var u=this,f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},e;si(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=ot(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i.jquery?i[0]:i;this.popper=r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){if(n.enabled&&st(n.onLoad))n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return hi(t,[{key:"update",value:function(){return vi.call(this)}},{key:"destroy",value:function(){return yi.call(this)}},{key:"enableEventListeners",value:function(){return wi.call(this)}},{key:"disableEventListeners",value:function(){return ki.call(this)}}]),t}();return y.Utils=(typeof window!="undefined"?window:global).PopperUtils,y.placements=it,y.Defaults=yr,y}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("jquery"),require("popper.js")):typeof define=="function"&&define.amd?define(["exports","jquery","popper.js"],t):t(n.bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function o(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function f(n,t,i){return t&&o(n.prototype,t),i&&o(n,i),n}function s(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function u(n){for(var i,r,t=1;t<arguments.length;t++)i=arguments[t]!=null?arguments[t]:{},r=Object.keys(i),typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){s(n,t,i[t])});return n}function h(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.__proto__=t}t=t&&t.hasOwnProperty("default")?t["default"]:t;i=i&&i.hasOwnProperty("default")?i["default"]:i;var r=function(n){function f(n){return{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase()}function e(){return{bindType:i,delegateType:i,handle:function(t){return n(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function o(i){var u=this,r=!1;n(this).one(t.TRANSITION_END,function(){r=!0});return setTimeout(function(){r||t.triggerTransitionEnd(u)},i),this}function s(){n.fn.emulateTransitionEnd=o;n.event.special[t.TRANSITION_END]=e()}var i="transitionend",r=1e6,u=1e3,t={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do n+=~~(Math.random()*r);while(document.getElementById(n));return n},getSelectorFromElement:function(n){var t=n.getAttribute("data-target");t&&t!=="#"||(t=n.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(i){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var i=n(t).css("transition-duration"),r=parseFloat(i);return r?(i=i.split(",")[0],parseFloat(i)*u):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(t){n(t).trigger(i)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,i,r){for(var u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var o=r[u],e=i[u],s=e&&t.isElement(e)?"element":f(e);if(!new RegExp(o).test(s))throw new Error(n.toUpperCase()+": "+('Option "'+u+'" provided type "'+s+'" ')+('but expected type "'+o+'".'));}}};return s(),t}(t),c=function(n){var i="alert",h="4.1.3",u="bs.alert",e="."+u,c=n.fn[i],o={CLOSE:"close"+e,CLOSED:"closed"+e,CLICK_DATA_API:"click"+e+".data-api"},s={ALERT:"alert",FADE:"fade",SHOW:"show"},t=function(){function t(n){this._element=n}var i=t.prototype;return i.close=function(n){var t=this._element,i;(n&&(t=this._getRootElement(n)),i=this._triggerCloseEvent(t),i.isDefaultPrevented())||this._removeElement(t)},i.dispose=function(){n.removeData(this._element,u);this._element=null},i._getRootElement=function(t){var u=r.getSelectorFromElement(t),i=!1;return u&&(i=document.querySelector(u)),i||(i=n(t).closest("."+s.ALERT)[0]),i},i._triggerCloseEvent=function(t){var i=n.Event(o.CLOSE);return n(t).trigger(i),i},i._removeElement=function(t){var u=this,i;if(n(t).removeClass(s.SHOW),!n(t).hasClass(s.FADE)){this._destroyElement(t);return}i=r.getTransitionDurationFromElement(t);n(t).one(r.TRANSITION_END,function(n){return u._destroyElement(t,n)}).emulateTransitionEnd(i)},i._destroyElement=function(t){n(t).detach().trigger(o.CLOSED).remove()},t._jQueryInterface=function(i){return this.each(function(){var f=n(this),r=f.data(u);r||(r=new t(this),f.data(u,r));i==="close"&&r[i](this)})},t._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},f(t,null,[{key:"VERSION",get:function(){return h}}]),t}();n(document).on(o.CLICK_DATA_API,{DISMISS:'[data-dismiss="alert"]'}.DISMISS,t._handleDismiss(new t));return n.fn[i]=t._jQueryInterface,n.fn[i].Constructor=t,n.fn[i].noConflict=function(){return n.fn[i]=c,t._jQueryInterface},t}(t),l=function(n){var r="button",c="4.1.3",e="bs.button",o="."+e,s=".data-api",l=n.fn[r],t={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},h={CLICK_DATA_API:"click"+o+s,FOCUS_BLUR_DATA_API:"focus"+o+s+" "+("blur"+o+s)},u=function(){function r(n){this._element=n}var u=r.prototype;return u.toggle=function(){var f=!0,o=!0,u=n(this._element).closest(i.DATA_TOGGLE)[0],r,e;if(u&&(r=this._element.querySelector(i.INPUT),r)){if(r.type==="radio"&&(r.checked&&this._element.classList.contains(t.ACTIVE)?f=!1:(e=u.querySelector(i.ACTIVE),e&&n(e).removeClass(t.ACTIVE))),f){if(r.hasAttribute("disabled")||u.hasAttribute("disabled")||r.classList.contains("disabled")||u.classList.contains("disabled"))return;r.checked=!this._element.classList.contains(t.ACTIVE);n(r).trigger("change")}r.focus();o=!1}o&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(t.ACTIVE));f&&n(this._element).toggleClass(t.ACTIVE)},u.dispose=function(){n.removeData(this._element,e);this._element=null},r._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(e);i||(i=new r(this),n(this).data(e,i));t==="toggle"&&i[t]()})},f(r,null,[{key:"VERSION",get:function(){return c}}]),r}();n(document).on(h.CLICK_DATA_API,i.DATA_TOGGLE_CARROT,function(r){r.preventDefault();var f=r.target;n(f).hasClass(t.BUTTON)||(f=n(f).closest(i.BUTTON));u._jQueryInterface.call(n(f),"toggle")}).on(h.FOCUS_BLUR_DATA_API,i.DATA_TOGGLE_CARROT,function(r){var u=n(r.target).closest(i.BUTTON)[0];n(u).toggleClass(t.FOCUS,/^focus(in)?$/.test(r.type))});return n.fn[r]=u._jQueryInterface,n.fn[r].Constructor=u,n.fn[r].noConflict=function(){return n.fn[r]=l,u._jQueryInterface},u}(t),a=function(n){var h="carousel",y="4.1.3",l="bs.carousel",e="."+l,v=".data-api",p=n.fn[h],w=37,b=39,k=500,a={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},i={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},o={SLIDE:"slide"+e,SLID:"slid"+e,KEYDOWN:"keydown"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e,TOUCHEND:"touchend"+e,LOAD_DATA_API:"load"+e+v,CLICK_DATA_API:"click"+e+v},t={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},s={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},c=function(){function v(t,i){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(i);this._element=n(t)[0];this._indicatorsElement=this._element.querySelector(s.INDICATORS);this._addEventListeners()}var c=v.prototype;return c.next=function(){this._isSliding||this._slide(i.NEXT)},c.nextWhenVisible=function(){!document.hidden&&n(this._element).is(":visible")&&n(this._element).css("visibility")!=="hidden"&&this.next()},c.prev=function(){this._isSliding||this._slide(i.PREV)},c.pause=function(n){n||(this._isPaused=!0);this._element.querySelector(s.NEXT_PREV)&&(r.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},c.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},c.to=function(t){var f=this,r,u;if(this._activeElement=this._element.querySelector(s.ACTIVE_ITEM),r=this._getItemIndex(this._activeElement),!(t>this._items.length-1)&&!(t<0)){if(this._isSliding){n(this._element).one(o.SLID,function(){return f.to(t)});return}if(r===t){this.pause();this.cycle();return}u=t>r?i.NEXT:i.PREV;this._slide(u,this._items[t])}},c.dispose=function(){n(this._element).off(e);n.removeData(this._element,l);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},c._getConfig=function(n){return n=u({},a,n),r.typeCheckConfig(h,n,d),n},c._addEventListeners=function(){var t=this;if(this._config.keyboard)n(this._element).on(o.KEYDOWN,function(n){return t._keydown(n)});if(this._config.pause==="hover"){n(this._element).on(o.MOUSEENTER,function(n){return t.pause(n)}).on(o.MOUSELEAVE,function(n){return t.cycle(n)});if("ontouchstart"in document.documentElement)n(this._element).on(o.TOUCHEND,function(){t.pause();t.touchTimeout&&clearTimeout(t.touchTimeout);t.touchTimeout=setTimeout(function(n){return t.cycle(n)},k+t._config.interval)})}},c._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case w:n.preventDefault();this.prev();break;case b:n.preventDefault();this.next()}},c._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(s.ITEM)):[],this._items.indexOf(n)},c._getItemByDirection=function(n,t){var e=n===i.NEXT,o=n===i.PREV,r=this._getItemIndex(t),s=this._items.length-1,h=o&&r===0||e&&r===s,f,u;return h&&!this._config.wrap?t:(f=n===i.PREV?-1:1,u=(r+f)%this._items.length,u===-1?this._items[this._items.length-1]:this._items[u])},c._triggerSlideEvent=function(t,i){var u=this._getItemIndex(t),f=this._getItemIndex(this._element.querySelector(s.ACTIVE_ITEM)),r=n.Event(o.SLIDE,{relatedTarget:t,direction:i,from:f,to:u});return n(this._element).trigger(r),r},c._setActiveIndicatorElement=function(i){var u,r;this._indicatorsElement&&(u=[].slice.call(this._indicatorsElement.querySelectorAll(s.ACTIVE)),n(u).removeClass(t.ACTIVE),r=this._indicatorsElement.children[this._getItemIndex(i)],r&&n(r).addClass(t.ACTIVE))},c._slide=function(u,f){var y=this,h=this._element.querySelector(s.ACTIVE_ITEM),k=this._getItemIndex(h),e=f||h&&this._getItemByDirection(u,h),d=this._getItemIndex(e),p=Boolean(this._interval),c,l,a,w,v,b;if(u===i.NEXT?(c=t.LEFT,l=t.NEXT,a=i.LEFT):(c=t.RIGHT,l=t.PREV,a=i.RIGHT),e&&n(e).hasClass(t.ACTIVE)){this._isSliding=!1;return}(w=this._triggerSlideEvent(e,a),w.isDefaultPrevented())||h&&e&&(this._isSliding=!0,p&&this.pause(),this._setActiveIndicatorElement(e),v=n.Event(o.SLID,{relatedTarget:e,direction:a,from:k,to:d}),n(this._element).hasClass(t.SLIDE)?(n(e).addClass(l),r.reflow(e),n(h).addClass(c),n(e).addClass(c),b=r.getTransitionDurationFromElement(h),n(h).one(r.TRANSITION_END,function(){n(e).removeClass(c+" "+l).addClass(t.ACTIVE);n(h).removeClass(t.ACTIVE+" "+l+" "+c);y._isSliding=!1;setTimeout(function(){return n(y._element).trigger(v)},0)}).emulateTransitionEnd(b)):(n(h).removeClass(t.ACTIVE),n(e).addClass(t.ACTIVE),this._isSliding=!1,n(this._element).trigger(v)),p&&this.cycle())},v._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(l),r=u({},a,n(this).data()),f;if(typeof t=="object"&&(r=u({},r,t)),f=typeof t=="string"?t:r.slide,i||(i=new v(this,r),n(this).data(l,i)),typeof t=="number")i.to(t);else if(typeof f=="string"){if(typeof i[f]=="undefined")throw new TypeError('No method named "'+f+'"');i[f]()}else r.interval&&(i.pause(),i.cycle())})},v._dataApiClickHandler=function(i){var s=r.getSelectorFromElement(this),f,o,e;s&&(f=n(s)[0],f&&n(f).hasClass(t.CAROUSEL))&&(o=u({},n(f).data(),n(this).data()),e=this.getAttribute("data-slide-to"),e&&(o.interval=!1),v._jQueryInterface.call(n(f),o),e&&n(f).data(l).to(e),i.preventDefault())},f(v,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return a}}]),v}();n(document).on(o.CLICK_DATA_API,s.DATA_SLIDE,c._dataApiClickHandler);n(window).on(o.LOAD_DATA_API,function(){for(var i,r=[].slice.call(document.querySelectorAll(s.DATA_RIDE)),t=0,u=r.length;t<u;t++)i=n(r[t]),c._jQueryInterface.call(i,i.data())});return n.fn[h]=c._jQueryInterface,n.fn[h].Constructor=c,n.fn[h].noConflict=function(){return n.fn[h]=p,c._jQueryInterface},c}(t),v=function(n){var e="collapse",v="4.1.3",i="bs.collapse",o="."+i,y=n.fn[e],c={toggle:!0,parent:""},p={toggle:"boolean",parent:"(string|element)"},s={SHOW:"show"+o,SHOWN:"shown"+o,HIDE:"hide"+o,HIDDEN:"hidden"+o,CLICK_DATA_API:"click"+o+".data-api"},t={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},l={WIDTH:"width",HEIGHT:"height"},a={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function h(t,i){var f,u,o;for(this._isTransitioning=!1,this._element=t,this._config=this._getConfig(i),this._triggerArray=n.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]'))),f=[].slice.call(document.querySelectorAll(a.DATA_TOGGLE)),u=0,o=f.length;u<o;u++){var s=f[u],e=r.getSelectorFromElement(s),h=[].slice.call(document.querySelectorAll(e)).filter(function(n){return n===t});e!==null&&h.length>0&&(this._selector=e,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var o=h.prototype;return o.toggle=function(){n(this._element).hasClass(t.SHOW)?this.hide():this.show()},o.show=function(){var e=this,u,o,c,f;if(!this._isTransitioning&&!n(this._element).hasClass(t.SHOW)&&(this._parent&&(u=[].slice.call(this._parent.querySelectorAll(a.ACTIVES)).filter(function(n){return n.getAttribute("data-parent")===e._config.parent}),u.length===0&&(u=null)),!u||(o=n(u).not(this._selector).data(i),!o||!o._isTransitioning))&&(c=n.Event(s.SHOW),n(this._element).trigger(c),!c.isDefaultPrevented())){u&&(h._jQueryInterface.call(n(u).not(this._selector),"hide"),o||n(u).data(i,null));f=this._getDimension();n(this._element).removeClass(t.COLLAPSE).addClass(t.COLLAPSING);this._element.style[f]=0;this._triggerArray.length&&n(this._triggerArray).removeClass(t.COLLAPSED).attr("aria-expanded",!0);this.setTransitioning(!0);var l=function(){n(e._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).addClass(t.SHOW);e._element.style[f]="";e.setTransitioning(!1);n(e._element).trigger(s.SHOWN)},v=f[0].toUpperCase()+f.slice(1),y="scroll"+v,p=r.getTransitionDurationFromElement(this._element);n(this._element).one(r.TRANSITION_END,l).emulateTransitionEnd(p);this._element.style[f]=this._element[y]+"px"}},o.hide=function(){var c=this,f,i,e,u,o,h,l,a,v;if(!this._isTransitioning&&n(this._element).hasClass(t.SHOW)&&(f=n.Event(s.HIDE),n(this._element).trigger(f),!f.isDefaultPrevented())){if(i=this._getDimension(),this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",r.reflow(this._element),n(this._element).addClass(t.COLLAPSING).removeClass(t.COLLAPSE).removeClass(t.SHOW),e=this._triggerArray.length,e>0)for(u=0;u<e;u++)o=this._triggerArray[u],h=r.getSelectorFromElement(o),h!==null&&(l=n([].slice.call(document.querySelectorAll(h))),l.hasClass(t.SHOW)||n(o).addClass(t.COLLAPSED).attr("aria-expanded",!1));this.setTransitioning(!0);a=function(){c.setTransitioning(!1);n(c._element).removeClass(t.COLLAPSING).addClass(t.COLLAPSE).trigger(s.HIDDEN)};this._element.style[i]="";v=r.getTransitionDurationFromElement(this._element);n(this._element).one(r.TRANSITION_END,a).emulateTransitionEnd(v)}},o.setTransitioning=function(n){this._isTransitioning=n},o.dispose=function(){n.removeData(this._element,i);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},o._getConfig=function(n){return n=u({},c,n),n.toggle=Boolean(n.toggle),r.typeCheckConfig(e,n,p),n},o._getDimension=function(){var t=n(this._element).hasClass(l.WIDTH);return t?l.WIDTH:l.HEIGHT},o._getParent=function(){var f=this,t=null,i,u;return r.isElement(this._config.parent)?(t=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent),i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',u=[].slice.call(t.querySelectorAll(i)),n(u).each(function(n,t){f._addAriaAndCollapsedClass(h._getTargetFromElement(t),[t])}),t},o._addAriaAndCollapsedClass=function(i,r){if(i){var u=n(i).hasClass(t.SHOW);r.length&&n(r).toggleClass(t.COLLAPSED,!u).attr("aria-expanded",u)}},h._getTargetFromElement=function(n){var t=r.getSelectorFromElement(n);return t?document.querySelector(t):null},h._jQueryInterface=function(t){return this.each(function(){var f=n(this),r=f.data(i),e=u({},c,f.data(),typeof t=="object"&&t?t:{});if(!r&&e.toggle&&/show|hide/.test(t)&&(e.toggle=!1),r||(r=new h(this,e),f.data(i,r)),typeof t=="string"){if(typeof r[t]=="undefined")throw new TypeError('No method named "'+t+'"');r[t]()}})},f(h,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return c}}]),h}();n(document).on(s.CLICK_DATA_API,a.DATA_TOGGLE,function(t){t.currentTarget.tagName==="A"&&t.preventDefault();var u=n(this),f=r.getSelectorFromElement(this),e=[].slice.call(document.querySelectorAll(f));n(e).each(function(){var t=n(this),r=t.data(i),f=r?"toggle":u.data();h._jQueryInterface.call(t,f)})});return n.fn[e]=h._jQueryInterface,n.fn[e].Constructor=h,n.fn[e].noConflict=function(){return n.fn[e]=y,h._jQueryInterface},h}(t),y=function(n){var c="dropdown",d="4.1.3",a="bs.dropdown",s="."+a,y=".data-api",g=n.fn[c],v=27,p=32,k=9,w=38,b=40,nt=3,tt=new RegExp(w+"|"+b+"|"+v),e={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,CLICK:"click"+s,CLICK_DATA_API:"click"+s+y,KEYDOWN_DATA_API:"keydown"+s+y,KEYUP_DATA_API:"keyup"+s+y},t={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},o={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},l={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},it={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},rt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},h=function(){function h(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var y=h.prototype;return y.toggle=function(){var u,l,s,c,f;if(!this._element.disabled&&!n(this._element).hasClass(t.DISABLED)&&(u=h._getParentFromElement(this._element),l=n(this._menu).hasClass(t.SHOW),h._clearMenus(),!l)&&(s={relatedTarget:this._element},c=n.Event(e.SHOW,s),n(u).trigger(c),!c.isDefaultPrevented())){if(!this._inNavbar){if(typeof i=="undefined")throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");f=this._element;this._config.reference==="parent"?f=u:r.isElement(this._config.reference)&&(f=this._config.reference,typeof this._config.reference.jquery!="undefined"&&(f=this._config.reference[0]));this._config.boundary!=="scrollParent"&&n(u).addClass(t.POSITION_STATIC);this._popper=new i(f,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&n(u).closest(o.NAVBAR_NAV).length===0)n(document.body).children().on("mouseover",null,n.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);n(this._menu).toggleClass(t.SHOW);n(u).toggleClass(t.SHOW).trigger(n.Event(e.SHOWN,s))}},y.dispose=function(){n.removeData(this._element,a);n(this._element).off(s);this._element=null;this._menu=null;this._popper!==null&&(this._popper.destroy(),this._popper=null)},y.update=function(){this._inNavbar=this._detectNavbar();this._popper!==null&&this._popper.scheduleUpdate()},y._addEventListeners=function(){var t=this;n(this._element).on(e.CLICK,function(n){n.preventDefault();n.stopPropagation();t.toggle()})},y._getConfig=function(t){return t=u({},this.constructor.Default,n(this._element).data(),t),r.typeCheckConfig(c,t,this.constructor.DefaultType),t},y._getMenuElement=function(){if(!this._menu){var n=h._getParentFromElement(this._element);n&&(this._menu=n.querySelector(o.MENU))}return this._menu},y._getPlacement=function(){var r=n(this._element.parentNode),i=l.BOTTOM;return r.hasClass(t.DROPUP)?(i=l.TOP,n(this._menu).hasClass(t.MENURIGHT)&&(i=l.TOPEND)):r.hasClass(t.DROPRIGHT)?i=l.RIGHT:r.hasClass(t.DROPLEFT)?i=l.LEFT:n(this._menu).hasClass(t.MENURIGHT)&&(i=l.BOTTOMEND),i},y._detectNavbar=function(){return n(this._element).closest(".navbar").length>0},y._getPopperConfig=function(){var i=this,n={},t;return typeof this._config.offset=="function"?n.fn=function(n){return n.offsets=u({},n.offsets,i._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,t={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}},this._config.display==="static"&&(t.modifiers.applyStyle={enabled:!1}),t},h._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(a),r=typeof t=="object"?t:null;if(i||(i=new h(this,r),n(this).data(a,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},h._clearMenus=function(i){var u,r,l,y,c;if(!i||i.which!==nt&&(i.type!=="keyup"||i.which===k))for(u=[].slice.call(document.querySelectorAll(o.DATA_TOGGLE)),r=0,l=u.length;r<l;r++){var f=h._getParentFromElement(u[r]),v=n(u[r]).data(a),s={relatedTarget:u[r]};(i&&i.type==="click"&&(s.clickEvent=i),v)&&(y=v._menu,n(f).hasClass(t.SHOW))&&(i&&(i.type==="click"&&/input|textarea/i.test(i.target.tagName)||i.type==="keyup"&&i.which===k)&&n.contains(f,i.target)||(c=n.Event(e.HIDE,s),n(f).trigger(c),c.isDefaultPrevented())||("ontouchstart"in document.documentElement&&n(document.body).children().off("mouseover",null,n.noop),u[r].setAttribute("aria-expanded","false"),n(y).removeClass(t.SHOW),n(f).removeClass(t.SHOW).trigger(n.Event(e.HIDDEN,s))))}},h._getParentFromElement=function(n){var t,i=r.getSelectorFromElement(n);return i&&(t=document.querySelector(i)),t||n.parentNode},h._dataApiKeydownHandler=function(i){var f,e,s,u,r;if((/input|textarea/i.test(i.target.tagName)?i.which!==p&&(i.which===v||(i.which===b||i.which===w)&&!n(i.target).closest(o.MENU).length):tt.test(i.which))&&(i.preventDefault(),i.stopPropagation(),!this.disabled&&!n(this).hasClass(t.DISABLED))){if(f=h._getParentFromElement(this),e=n(f).hasClass(t.SHOW),!e&&(i.which!==v||i.which!==p)||e&&(i.which===v||i.which===p)){i.which===v&&(s=f.querySelector(o.DATA_TOGGLE),n(s).trigger("focus"));n(this).trigger("click");return}(u=[].slice.call(f.querySelectorAll(o.VISIBLE_ITEMS)),u.length!==0)&&(r=u.indexOf(i.target),i.which===w&&r>0&&r--,i.which===b&&r<u.length-1&&r++,r<0&&(r=0),u[r].focus())}},f(h,null,[{key:"VERSION",get:function(){return d}},{key:"Default",get:function(){return it}},{key:"DefaultType",get:function(){return rt}}]),h}();n(document).on(e.KEYDOWN_DATA_API,o.DATA_TOGGLE,h._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,o.MENU,h._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.KEYUP_DATA_API,h._clearMenus).on(e.CLICK_DATA_API,o.DATA_TOGGLE,function(t){t.preventDefault();t.stopPropagation();h._jQueryInterface.call(n(this),"toggle")}).on(e.CLICK_DATA_API,o.FORM_CHILD,function(n){n.stopPropagation()});return n.fn[c]=h._jQueryInterface,n.fn[c].Constructor=h,n.fn[c].noConflict=function(){return n.fn[c]=g,h._jQueryInterface},h}(t,i),p=function(n){var s="modal",a="4.1.3",h="bs.modal",e="."+h,v=n.fn[s],y=27,l={backdrop:!0,keyboard:!0,focus:!0,show:!0},p={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},t={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,FOCUSIN:"focusin"+e,RESIZE:"resize"+e,CLICK_DISMISS:"click.dismiss"+e,KEYDOWN_DISMISS:"keydown.dismiss"+e,MOUSEUP_DISMISS:"mouseup.dismiss"+e,MOUSEDOWN_DISMISS:"mousedown.dismiss"+e,CLICK_DATA_API:"click"+e+".data-api"},i={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},o={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},c=function(){function v(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=n.querySelector(o.DIALOG);this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._scrollbarWidth=0}var c=v.prototype;return c.toggle=function(n){return this._isShown?this.hide():this.show(n)},c.show=function(r){var u=this,f;if(!this._isTransitioning&&!this._isShown&&(n(this._element).hasClass(i.FADE)&&(this._isTransitioning=!0),f=n.Event(t.SHOW,{relatedTarget:r}),n(this._element).trigger(f),!this._isShown&&!f.isDefaultPrevented())){this._isShown=!0;this._checkScrollbar();this._setScrollbar();this._adjustDialog();n(document.body).addClass(i.OPEN);this._setEscapeEvent();this._setResizeEvent();n(this._element).on(t.CLICK_DISMISS,o.DATA_DISMISS,function(n){return u.hide(n)});n(this._dialog).on(t.MOUSEDOWN_DISMISS,function(){n(u._element).one(t.MOUSEUP_DISMISS,function(t){n(t.target).is(u._element)&&(u._ignoreBackdropClick=!0)})});this._showBackdrop(function(){return u._showElement(r)})}},c.hide=function(u){var s=this,f,e,o;(u&&u.preventDefault(),!this._isTransitioning&&this._isShown)&&(f=n.Event(t.HIDE),n(this._element).trigger(f),this._isShown&&!f.isDefaultPrevented())&&(this._isShown=!1,e=n(this._element).hasClass(i.FADE),e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),n(document).off(t.FOCUSIN),n(this._element).removeClass(i.SHOW),n(this._element).off(t.CLICK_DISMISS),n(this._dialog).off(t.MOUSEDOWN_DISMISS),e?(o=r.getTransitionDurationFromElement(this._element),n(this._element).one(r.TRANSITION_END,function(n){return s._hideModal(n)}).emulateTransitionEnd(o)):this._hideModal())},c.dispose=function(){n.removeData(this._element,h);n(window,document,this._element,this._backdrop).off(e);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},c.handleUpdate=function(){this._adjustDialog()},c._getConfig=function(n){return n=u({},l,n),r.typeCheckConfig(s,n,p),n},c._showElement=function(u){var f=this,o=n(this._element).hasClass(i.FADE),s,e,h;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;o&&r.reflow(this._element);n(this._element).addClass(i.SHOW);this._config.focus&&this._enforceFocus();s=n.Event(t.SHOWN,{relatedTarget:u});e=function(){f._config.focus&&f._element.focus();f._isTransitioning=!1;n(f._element).trigger(s)};o?(h=r.getTransitionDurationFromElement(this._element),n(this._dialog).one(r.TRANSITION_END,e).emulateTransitionEnd(h)):e()},c._enforceFocus=function(){var i=this;n(document).off(t.FOCUSIN).on(t.FOCUSIN,function(t){document!==t.target&&i._element!==t.target&&n(i._element).has(t.target).length===0&&i._element.focus()})},c._setEscapeEvent=function(){var i=this;if(this._isShown&&this._config.keyboard)n(this._element).on(t.KEYDOWN_DISMISS,function(n){n.which===y&&(n.preventDefault(),i.hide())});else this._isShown||n(this._element).off(t.KEYDOWN_DISMISS)},c._setResizeEvent=function(){var i=this;if(this._isShown)n(window).on(t.RESIZE,function(n){return i.handleUpdate(n)});else n(window).off(t.RESIZE)},c._hideModal=function(){var r=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){n(document.body).removeClass(i.OPEN);r._resetAdjustments();r._resetScrollbar();n(r._element).trigger(t.HIDDEN)})},c._removeBackdrop=function(){this._backdrop&&(n(this._backdrop).remove(),this._backdrop=null)},c._showBackdrop=function(u){var f=this,e=n(this._element).hasClass(i.FADE)?i.FADE:"",s,o,h;if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=i.BACKDROP;e&&this._backdrop.classList.add(e);n(this._backdrop).appendTo(document.body);n(this._element).on(t.CLICK_DISMISS,function(n){if(f._ignoreBackdropClick){f._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(f._config.backdrop==="static"?f._element.focus():f.hide())});if(e&&r.reflow(this._backdrop),n(this._backdrop).addClass(i.SHOW),!u)return;if(!e){u();return}s=r.getTransitionDurationFromElement(this._backdrop);n(this._backdrop).one(r.TRANSITION_END,u).emulateTransitionEnd(s)}else!this._isShown&&this._backdrop?(n(this._backdrop).removeClass(i.SHOW),o=function(){f._removeBackdrop();u&&u()},n(this._element).hasClass(i.FADE)?(h=r.getTransitionDurationFromElement(this._backdrop),n(this._backdrop).one(r.TRANSITION_END,o).emulateTransitionEnd(h)):o()):u&&u()},c._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},c._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},c._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},c._setScrollbar=function(){var t=this,i,r,u,f;this._isBodyOverflowing&&(i=[].slice.call(document.querySelectorAll(o.FIXED_CONTENT)),r=[].slice.call(document.querySelectorAll(o.STICKY_CONTENT)),n(i).each(function(i,r){var u=r.style.paddingRight,f=n(r).css("padding-right");n(r).data("padding-right",u).css("padding-right",parseFloat(f)+t._scrollbarWidth+"px")}),n(r).each(function(i,r){var u=r.style.marginRight,f=n(r).css("margin-right");n(r).data("margin-right",u).css("margin-right",parseFloat(f)-t._scrollbarWidth+"px")}),u=document.body.style.paddingRight,f=n(document.body).css("padding-right"),n(document.body).data("padding-right",u).css("padding-right",parseFloat(f)+this._scrollbarWidth+"px"))},c._resetScrollbar=function(){var r=[].slice.call(document.querySelectorAll(o.FIXED_CONTENT)),i,t;n(r).each(function(t,i){var r=n(i).data("padding-right");n(i).removeData("padding-right");i.style.paddingRight=r?r:""});i=[].slice.call(document.querySelectorAll(""+o.STICKY_CONTENT));n(i).each(function(t,i){var r=n(i).data("margin-right");typeof r!="undefined"&&n(i).css("margin-right",r).removeData("margin-right")});t=n(document.body).data("padding-right");n(document.body).removeData("padding-right");document.body.style.paddingRight=t?t:""},c._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=i.SCROLLBAR_MEASURER,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},v._jQueryInterface=function(t,i){return this.each(function(){var r=n(this).data(h),f=u({},l,n(this).data(),typeof t=="object"&&t?t:{});if(r||(r=new v(this,f),n(this).data(h,r)),typeof t=="string"){if(typeof r[t]=="undefined")throw new TypeError('No method named "'+t+'"');r[t](i)}else f.show&&r.show(i)})},f(v,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return l}}]),v}();n(document).on(t.CLICK_DATA_API,o.DATA_TOGGLE,function(i){var e=this,f,o=r.getSelectorFromElement(this),s,l;o&&(f=document.querySelector(o));s=n(f).data(h)?"toggle":u({},n(f).data(),n(this).data());(this.tagName==="A"||this.tagName==="AREA")&&i.preventDefault();l=n(f).one(t.SHOW,function(i){if(!i.isDefaultPrevented())l.one(t.HIDDEN,function(){n(e).is(":visible")&&e.focus()})});c._jQueryInterface.call(n(f),s,this)});return n.fn[s]=c._jQueryInterface,n.fn[s].Constructor=c,n.fn[s].noConflict=function(){return n.fn[s]=v,c._jQueryInterface},c}(t),e=function(n){var h="tooltip",y="4.1.3",c="bs.tooltip",t="."+c,p=n.fn[h],a="bs-tooltip",w=new RegExp("(^|\\s)"+a+"\\S+","g"),b={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},k={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},d={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},s={SHOW:"show",OUT:"out"},g={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},e={FADE:"fade",SHOW:"show"},v={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},o={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},l=function(){function p(n,t){if(typeof i=="undefined")throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var l=p.prototype;return l.enable=function(){this._isEnabled=!0},l.disable=function(){this._isEnabled=!1},l.toggleEnabled=function(){this._isEnabled=!this._isEnabled},l.toggle=function(t){if(this._isEnabled)if(t){var r=this.constructor.DATA_KEY,i=n(t.currentTarget).data(r);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i));i._activeTrigger.click=!i._activeTrigger.click;i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(n(this.getTipElement()).hasClass(e.SHOW)){this._leave(null,this);return}this._enter(null,this)}},l.dispose=function(){clearTimeout(this._timeout);n.removeData(this.element,this.constructor.DATA_KEY);n(this.element).off(this.constructor.EVENT_KEY);n(this.element).closest(".modal").off("hide.bs.modal");this.tip&&n(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;this._popper!==null&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},l.show=function(){var t=this,f,l,u,o,a,h,y,c,p;if(n(this.element).css("display")==="none")throw new Error("Please use show on visible elements");if(f=n.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(n(this.element).trigger(f),l=n.contains(this.element.ownerDocument.documentElement,this.element),f.isDefaultPrevented()||!l)return;if(u=this.getTipElement(),o=r.getUID(this.constructor.NAME),u.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&n(u).addClass(e.FADE),a=typeof this.config.placement=="function"?this.config.placement.call(this,u,this.element):this.config.placement,h=this._getAttachment(a),this.addAttachmentClass(h),y=this.config.container===!1?document.body:n(document).find(this.config.container),n(u).data(this.constructor.DATA_KEY,this),n.contains(this.element.ownerDocument.documentElement,this.tip)||n(u).appendTo(y),n(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,u,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:v.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&t._handlePopperPlacementChange(n)},onUpdate:function(n){t._handlePopperPlacementChange(n)}}),n(u).addClass(e.SHOW),"ontouchstart"in document.documentElement)n(document.body).children().on("mouseover",null,n.noop);c=function(){t.config.animation&&t._fixTransition();var i=t._hoverState;t._hoverState=null;n(t.element).trigger(t.constructor.Event.SHOWN);i===s.OUT&&t._leave(null,t)};n(this.tip).hasClass(e.FADE)?(p=r.getTransitionDurationFromElement(this.tip),n(this.tip).one(r.TRANSITION_END,c).emulateTransitionEnd(p)):c()}},l.hide=function(t){var i=this,u=this.getTipElement(),f=n.Event(this.constructor.Event.HIDE),h=function(){i._hoverState!==s.SHOW&&u.parentNode&&u.parentNode.removeChild(u);i._cleanTipClass();i.element.removeAttribute("aria-describedby");n(i.element).trigger(i.constructor.Event.HIDDEN);i._popper!==null&&i._popper.destroy();t&&t()},c;(n(this.element).trigger(f),f.isDefaultPrevented())||(n(u).removeClass(e.SHOW),"ontouchstart"in document.documentElement&&n(document.body).children().off("mouseover",null,n.noop),this._activeTrigger[o.CLICK]=!1,this._activeTrigger[o.FOCUS]=!1,this._activeTrigger[o.HOVER]=!1,n(this.tip).hasClass(e.FADE)?(c=r.getTransitionDurationFromElement(u),n(u).one(r.TRANSITION_END,h).emulateTransitionEnd(c)):h(),this._hoverState="")},l.update=function(){this._popper!==null&&this._popper.scheduleUpdate()},l.isWithContent=function(){return Boolean(this.getTitle())},l.addAttachmentClass=function(t){n(this.getTipElement()).addClass(a+"-"+t)},l.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0],this.tip},l.setContent=function(){var t=this.getTipElement();this.setElementContent(n(t.querySelectorAll(v.TOOLTIP_INNER)),this.getTitle());n(t).removeClass(e.FADE+" "+e.SHOW)},l.setElementContent=function(t,i){var r=this.config.html;typeof i=="object"&&(i.nodeType||i.jquery)?r?n(i).parent().is(t)||t.empty().append(i):t.text(n(i).text()):t[r?"html":"text"](i)},l.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n=typeof this.config.title=="function"?this.config.title.call(this.element):this.config.title),n},l._getAttachment=function(n){return k[n.toUpperCase()]},l._setListeners=function(){var t=this,i=this.config.trigger.split(" ");i.forEach(function(i){if(i==="click")n(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(n){return t.toggle(n)});else if(i!==o.MANUAL){var r=i===o.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,u=i===o.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;n(t.element).on(r,t.config.selector,function(n){return t._enter(n)}).on(u,t.config.selector,function(n){return t._leave(n)})}n(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})});this.config.selector?this.config=u({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},l._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||n!=="string")&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},l._enter=function(t,i){var r=this.constructor.DATA_KEY;if(i=i||n(t.currentTarget).data(r),i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i)),t&&(i._activeTrigger[t.type==="focusin"?o.FOCUS:o.HOVER]=!0),n(i.getTipElement()).hasClass(e.SHOW)||i._hoverState===s.SHOW){i._hoverState=s.SHOW;return}if(clearTimeout(i._timeout),i._hoverState=s.SHOW,!i.config.delay||!i.config.delay.show){i.show();return}i._timeout=setTimeout(function(){i._hoverState===s.SHOW&&i.show()},i.config.delay.show)},l._leave=function(t,i){var r=this.constructor.DATA_KEY;if(i=i||n(t.currentTarget).data(r),i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),n(t.currentTarget).data(r,i)),t&&(i._activeTrigger[t.type==="focusout"?o.FOCUS:o.HOVER]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=s.OUT,!i.config.delay||!i.config.delay.hide){i.hide();return}i._timeout=setTimeout(function(){i._hoverState===s.OUT&&i.hide()},i.config.delay.hide)}},l._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},l._getConfig=function(t){return t=u({},this.constructor.Default,n(this.element).data(),typeof t=="object"&&t?t:{}),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),r.typeCheckConfig(h,t,this.constructor.DefaultType),t},l._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},l._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(w);t!==null&&t.length&&i.removeClass(t.join(""))},l._handlePopperPlacementChange=function(n){var t=n.instance;this.tip=t.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},l._fixTransition=function(){var t=this.getTipElement(),i=this.config.animation;t.getAttribute("x-placement")===null&&(n(t).removeClass(e.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)},p._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(c),r=typeof t=="object"&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new p(this,r),n(this).data(c,i)),typeof t=="string")){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(p,null,[{key:"VERSION",get:function(){return y}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return h}},{key:"DATA_KEY",get:function(){return c}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return b}}]),p}();return n.fn[h]=l._jQueryInterface,n.fn[h].Constructor=l,n.fn[h].noConflict=function(){return n.fn[h]=p,l._jQueryInterface},l}(t,i),w=function(n){var i="popover",a="4.1.3",r="bs.popover",t="."+r,v=n.fn[i],s="bs-popover",y=new RegExp("(^|\\s)"+s+"\\S+","g"),p=u({},e.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),w=u({},e.DefaultType,{content:"(string|element|function)"}),c={FADE:"fade",SHOW:"show"},l={TITLE:".popover-header",CONTENT:".popover-body"},b={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},o=function(u){function e(){return u.apply(this,arguments)||this}h(e,u);var o=e.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){n(this.getTipElement()).addClass(s+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||n(this.config.template)[0],this.tip},o.setContent=function(){var i=n(this.getTipElement()),t;this.setElementContent(i.find(l.TITLE),this.getTitle());t=this._getContent();typeof t=="function"&&(t=t.call(this.element));this.setElementContent(i.find(l.CONTENT),t);i.removeClass(c.FADE+" "+c.SHOW)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var i=n(this.getTipElement()),t=i.attr("class").match(y);t!==null&&t.length>0&&i.removeClass(t.join(""))},e._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(r),u=typeof t=="object"?t:null;if((i||!/destroy|hide/.test(t))&&(i||(i=new e(this,u),n(this).data(r,i)),typeof t=="string")){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(e,null,[{key:"VERSION",get:function(){return a}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return b}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return w}}]),e}(e);return n.fn[i]=o._jQueryInterface,n.fn[i].Constructor=o,n.fn[i].noConflict=function(){return n.fn[i]=v,o._jQueryInterface},o}(t),b=function(n){var i="scrollspy",v="4.1.3",s="bs.scrollspy",h="."+s,y=n.fn[i],a={offset:10,method:"auto",target:""},p={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate"+h,SCROLL:"scroll"+h,LOAD_DATA_API:"load"+h+".data-api"},e={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},t={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},l={OFFSET:"offset",POSITION:"position"},o=function(){function y(i,r){var u=this;this._element=i;this._scrollElement=i.tagName==="BODY"?window:i;this._config=this._getConfig(r);this._selector=this._config.target+" "+t.NAV_LINKS+","+(this._config.target+" "+t.LIST_ITEMS+",")+(this._config.target+" "+t.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;n(this._scrollElement).on(c.SCROLL,function(n){return u._process(n)});this.refresh();this._process()}var o=y.prototype;return o.refresh=function(){var t=this,f=this._scrollElement===this._scrollElement.window?l.OFFSET:l.POSITION,i=this._config.method==="auto"?f:this._config.method,e=i===l.POSITION?this._getScrollTop():0,u;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();u=[].slice.call(document.querySelectorAll(this._selector));u.map(function(t){var u,f=r.getSelectorFromElement(t),o;return(f&&(u=document.querySelector(f)),u&&(o=u.getBoundingClientRect(),o.width||o.height))?[n(u)[i]().top+e,f]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(n){t._offsets.push(n[0]);t._targets.push(n[1])})},o.dispose=function(){n.removeData(this._element,s);n(this._scrollElement).off(h);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},o._getConfig=function(t){if(t=u({},a,typeof t=="object"&&t?t:{}),typeof t.target!="string"){var f=n(t.target).attr("id");f||(f=r.getUID(i),n(t.target).attr("id",f));t.target="#"+f}return r.typeCheckConfig(i,t,p),t},o._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},o._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),e=this._config.offset+r-this._getOffsetHeight(),i,u,n,f;if(this._scrollHeight!==r&&this.refresh(),t>=e){i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(u=this._offsets.length,n=u;n--;)f=this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(typeof this._offsets[n+1]=="undefined"||t<this._offsets[n+1]),f&&this._activate(this._targets[n])},o._activate=function(i){var u,r;this._activeTarget=i;this._clear();u=this._selector.split(",");u=u.map(function(n){return n+'[data-target="'+i+'"],'+(n+'[href="'+i+'"]')});r=n([].slice.call(document.querySelectorAll(u.join(","))));r.hasClass(e.DROPDOWN_ITEM)?(r.closest(t.DROPDOWN).find(t.DROPDOWN_TOGGLE).addClass(e.ACTIVE),r.addClass(e.ACTIVE)):(r.addClass(e.ACTIVE),r.parents(t.NAV_LIST_GROUP).prev(t.NAV_LINKS+", "+t.LIST_ITEMS).addClass(e.ACTIVE),r.parents(t.NAV_LIST_GROUP).prev(t.NAV_ITEMS).children(t.NAV_LINKS).addClass(e.ACTIVE));n(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:i})},o._clear=function(){var i=[].slice.call(document.querySelectorAll(this._selector));n(i).filter(t.ACTIVE).removeClass(e.ACTIVE)},y._jQueryInterface=function(t){return this.each(function(){var i=n(this).data(s),r=typeof t=="object"&&t;if(i||(i=new y(this,r),n(this).data(s,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(y,null,[{key:"VERSION",get:function(){return v}},{key:"Default",get:function(){return a}}]),y}();n(window).on(c.LOAD_DATA_API,function(){for(var i,r=[].slice.call(document.querySelectorAll(t.DATA_SPY)),f=r.length,u=f;u--;)i=n(r[u]),o._jQueryInterface.call(i,i.data())});return n.fn[i]=o._jQueryInterface,n.fn[i].Constructor=o,n.fn[i].noConflict=function(){return n.fn[i]=y,o._jQueryInterface},o}(t),k=function(n){var u="tab",c="4.1.3",h="bs.tab",e="."+h,l=n.fn[u],o={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},t={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},i={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},s=function(){function u(n){this._element=n}var e=u.prototype;return e.show=function(){var a=this,e,u,f,s,v,h,c,l;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&n(this._element).hasClass(t.ACTIVE)||n(this._element).hasClass(t.DISABLED)||(f=n(this._element).closest(i.NAV_LIST_GROUP)[0],s=r.getSelectorFromElement(this._element),f&&(v=f.nodeName==="UL"?i.ACTIVE_UL:i.ACTIVE,u=n.makeArray(n(f).find(v)),u=u[u.length-1]),h=n.Event(o.HIDE,{relatedTarget:this._element}),c=n.Event(o.SHOW,{relatedTarget:u}),u&&n(u).trigger(h),n(this._element).trigger(c),c.isDefaultPrevented()||h.isDefaultPrevented())||(s&&(e=document.querySelector(s)),this._activate(this._element,f),l=function(){var t=n.Event(o.HIDDEN,{relatedTarget:a._element}),i=n.Event(o.SHOWN,{relatedTarget:u});n(u).trigger(t);n(a._element).trigger(i)},e?this._activate(e,e.parentNode,l):l())},e.dispose=function(){n.removeData(this._element,h);this._element=null},e._activate=function(u,f,e){var l=this,s,c;s=f.nodeName==="UL"?n(f).find(i.ACTIVE_UL):n(f).children(i.ACTIVE);var o=s[0],a=e&&o&&n(o).hasClass(t.FADE),h=function(){return l._transitionComplete(u,o,e)};o&&a?(c=r.getTransitionDurationFromElement(o),n(o).one(r.TRANSITION_END,h).emulateTransitionEnd(c)):h()},e._transitionComplete=function(u,f,e){var o,s,h;f&&(n(f).removeClass(t.SHOW+" "+t.ACTIVE),o=n(f.parentNode).find(i.DROPDOWN_ACTIVE_CHILD)[0],o&&n(o).removeClass(t.ACTIVE),f.getAttribute("role")==="tab"&&f.setAttribute("aria-selected",!1));n(u).addClass(t.ACTIVE);u.getAttribute("role")==="tab"&&u.setAttribute("aria-selected",!0);r.reflow(u);n(u).addClass(t.SHOW);u.parentNode&&n(u.parentNode).hasClass(t.DROPDOWN_MENU)&&(s=n(u).closest(i.DROPDOWN)[0],s&&(h=[].slice.call(s.querySelectorAll(i.DROPDOWN_TOGGLE)),n(h).addClass(t.ACTIVE)),u.setAttribute("aria-expanded",!0));e&&e()},u._jQueryInterface=function(t){return this.each(function(){var r=n(this),i=r.data(h);if(i||(i=new u(this),r.data(h,i)),typeof t=="string"){if(typeof i[t]=="undefined")throw new TypeError('No method named "'+t+'"');i[t]()}})},f(u,null,[{key:"VERSION",get:function(){return c}}]),u}();n(document).on(o.CLICK_DATA_API,i.DATA_TOGGLE,function(t){t.preventDefault();s._jQueryInterface.call(n(this),"show")});return n.fn[u]=s._jQueryInterface,n.fn[u].Constructor=s,n.fn[u].noConflict=function(){return n.fn[u]=l,s._jQueryInterface},s}(t);(function(n){if(typeof n=="undefined")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=n.fn.jquery.split(" ")[0].split("."),i=9;if(t[0]<2&&t[1]<i||t[0]===1&&t[1]===i&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");})(t);n.Util=r;n.Alert=c;n.Button=l;n.Carousel=a;n.Collapse=v;n.Dropdown=y;n.Modal=p;n.Popover=w;n.Scrollspy=b;n.Tab=k;n.Tooltip=e;Object.defineProperty(n,"__esModule",{value:!0})});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return 0==t?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(1-Math.pow(2,-10*t/u))+i},easeInOutExpo:function(n,t,i,r,u){return 0==t?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return 0==t?i:1==(t/=u)?i+r:((f||(f=.3*u),e<Math.abs(r))?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return 0==t?i:1==(t/=u)?i+r:((f||(f=.3*u),e<Math.abs(r))?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return 0==t?i:2==(t/=u/2)?i+r:((f||(f=u*.3*1.5),e<Math.abs(r))?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i)},easeInBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),(t/=u/2)<1?r/2*t*t*((1+(f*=1.525))*t-f)+i:r/2*((t-=2)*t*((1+(f*=1.525))*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?.5*jQuery.easing.easeInBounce(n,2*t,0,r,u)+i:.5*jQuery.easing.easeOutBounce(n,2*t-u,0,r,u)+.5*r+i}});jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(n){function o(n){var i=n.length,r=t.type(n);return"function"!==r&&!t.isWindow(n)&&(!(1!==n.nodeType||!i)||"array"===r||0===i||"number"==typeof i&&i>0&&i-1 in n)}var t,i;if(!n.jQuery){t=function(n,i){return new t.fn.init(n,i)};t.isWindow=function(n){return null!=n&&n==n.window};t.type=function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?r[s.call(n)]||"object":typeof n};t.isArray=Array.isArray||function(n){return"array"===t.type(n)};t.isPlainObject=function(n){var i;if(!n||"object"!==t.type(n)||n.nodeType||t.isWindow(n))return!1;try{if(n.constructor&&!f.call(n,"constructor")&&!f.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(i in n);return void 0===i||f.call(n,i)};t.each=function(n,t,i){var r=0,u=n.length,f=o(n);if(i){if(f)for(;u>r&&t.apply(n[r],i)!==!1;r++);else for(r in n)if(t.apply(n[r],i)===!1)break}else if(f)for(;u>r&&t.call(n[r],r,n[r])!==!1;r++);else for(r in n)if(t.call(n[r],r,n[r])===!1)break;return n};t.data=function(n,r,u){var e,f;if(void 0===u){if(f=n[t.expando],e=f&&i[f],void 0===r)return e;if(e&&r in e)return e[r]}else if(void 0!==r)return f=n[t.expando]||(n[t.expando]=++t.uuid),i[f]=i[f]||{},i[f][r]=u,u};t.removeData=function(n,r){var u=n[t.expando],f=u&&i[u];f&&t.each(r,function(n,t){delete f[t]})};t.extend=function(){var r,e,i,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"!=typeof n&&"function"!==t.type(n)&&(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],i=o[f],n!==i&&(h&&i&&(t.isPlainObject(i)||(e=t.isArray(i)))?(e?(e=!1,s=r&&t.isArray(r)?r:[]):s=r&&t.isPlainObject(r)?r:{},n[f]=t.extend(h,s,i)):void 0!==i&&(n[f]=i));return n};t.queue=function(n,i,r){if(n){i=(i||"fx")+"queue";var u=t.data(n,i);return r?(!u||t.isArray(r)?u=t.data(n,i,function(n,t){var i=t||[];return null!=n&&(o(Object(n))?function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)for(;void 0!==t[i];)n[u++]=t[i++];n.length=u;n}(i,"string"==typeof n?[n]:n):[].push.call(i,n)),i}(r)):u.push(r),u):u||[]}};t.dequeue=function(n,i){t.each(n.nodeType?[n]:n,function(n,r){i=i||"fx";var f=t.queue(r,i),u=f.shift();"inprogress"===u&&(u=f.shift());u&&("fx"===i&&f.unshift("inprogress"),u.call(r,function(){t.dequeue(r,i)}))})};t.fn=t.prototype={init:function(n){if(n.nodeType)return this[0]=n,this;throw new Error("Not a DOM node.");},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function n(){for(var n=this.offsetParent||document;n&&!1&&"static"===n.style.position;)n=n.offsetParent;return n||document}var u=this[0],n=n.apply(u),i=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return i.top-=parseFloat(u.style.marginTop)||0,i.left-=parseFloat(u.style.marginLeft)||0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};i={};t.expando="velocity"+(new Date).getTime();t.uuid=0;for(var r={},f=r.hasOwnProperty,s=r.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<e.length;u++)r["[object "+e[u]+"]"]=e[u].toLowerCase();t.fn.init.prototype=t.fn;n.Velocity={Utilities:t}}}(window),function(n){"object"==typeof module&&"object"==typeof module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):n()}(function(){return function(n,t,i,r){function tt(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r}function y(n){return s.isWrapped(n)?n=[].slice.call(n):s.isNode(n)&&(n=[n]),n}function e(n){var t=o.data(n,"velocity");return null===t?r:t}function it(n){return function(t){return Math.round(t*n)*(1/n)}}function p(n,i,r,u){function l(n,t){return 1-3*t+3*n}function a(n,t){return 3*t-6*n}function v(n){return 3*n}function s(n,t,i){return((l(t,i)*n+a(t,i))*n+v(t))*n}function y(n,t,i){return 3*l(t,i)*n*n+2*a(t,i)*n+v(t)}function b(t,i){for(var f,u=0;tt>u;++u){if(f=y(i,n,r),0===f)return i;i-=(s(i,n,r)-t)/f}return i}function k(){for(var t=0;e>t;++t)o[t]=s(t*h,n,r)}function d(t,i,u){var e,f,o=0;do f=i+(u-i)/2,e=s(f,n,r)-t,e>0?u=f:i=f;while(Math.abs(e)>rt&&++o<ut);return f}function g(t){for(var u=0,i=1,c=e-1;i!=c&&o[i]<=t;++i)u+=h;--i;var l=(t-o[i])/(o[i+1]-o[i]),f=u+l*h,s=y(f,n,r);return s>=it?b(t,f):0==s?f:d(t,u,u+h)}function nt(){p=!0;(n!=i||r!=u)&&k()}var tt=4,it=.001,rt=1e-7,ut=10,e=11,h=1/(e-1),ft="Float32Array"in t,f,w;if(4!==arguments.length)return!1;for(f=0;4>f;++f)if("number"!=typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;n=Math.min(n,1);r=Math.min(r,1);n=Math.max(n,0);r=Math.max(r,0);var o=ft?new Float32Array(e):new Array(e),p=!1,c=function(t){return p||nt(),n===i&&r===u?t:0===t?0:1===t?1:s(g(t),i,u)};return c.getControlPoints=function(){return[{x:n,y:i},{x:r,y:u}]},w="generateBezier("+[n,i,r,u]+")",c.toString=function(){return w},c}function w(n,t){var i=n;return s.isString(n)?f.Easings[n]||(i=!1):i=s.isArray(n)&&1===n.length?it.apply(null,n):s.isArray(n)&&2===n.length?nt.apply(null,n.concat([t])):!(!s.isArray(n)||4!==n.length)&&p.apply(null,n),i===!1&&(i=f.Easings[f.defaults.easing]?f.defaults.easing:g),i}function a(n){var d,ut,c,nt,h,it,ct,v,p,i,lt,et,k,ot,rt;if(n)for(d=(new Date).getTime(),ut=f.State.calls.length,ut>1e4&&(f.State.calls=tt(f.State.calls)),c=0;ut>c;c++)if(f.State.calls[c]){var w=f.State.calls[c],st=w[0],t=w[2],y=w[3],at=!!y,ht=null;y||(y=f.State.calls[c][3]=d-16);for(var g=Math.min((d-y)/t.duration,1),ft=0,vt=st.length;vt>ft;ft++)if(nt=st[ft],h=nt.element,e(h)){it=!1;t.display!==r&&null!==t.display&&"none"!==t.display&&("flex"===t.display&&(ct=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],o.each(ct,function(n,t){u.setPropertyValue(h,"display",t)})),u.setPropertyValue(h,"display",t.display));t.visibility!==r&&"hidden"!==t.visibility&&u.setPropertyValue(h,"visibility",t.visibility);for(v in nt)if("element"!==v){if(i=nt[v],lt=s.isString(i.easing)?f.Easings[i.easing]:i.easing,1===g)p=i.endValue;else if(et=i.endValue-i.startValue,p=i.startValue+et*lt(g,t,et),!at&&p===i.currentValue)continue;(i.currentValue=p,"tween"===v)?ht=p:(u.Hooks.registered[v]&&(k=u.Hooks.getRoot(v),ot=e(h).rootPropertyValueCache[k],ot&&(i.rootPropertyValue=ot)),rt=u.setPropertyValue(h,v,i.currentValue+(0===parseFloat(p)?"":i.unitType),i.rootPropertyValue,i.scrollData),u.Hooks.registered[v]&&(e(h).rootPropertyValueCache[k]=u.Normalizations.registered[k]?u.Normalizations.registered[k]("extract",null,rt[1]):rt[1]),"transform"===rt[0]&&(it=!0))}t.mobileHA&&e(h).transformCache.translate3d===r&&(e(h).transformCache.translate3d="(0px, 0px, 0px)",it=!0);it&&u.flushTransformCache(h)}t.display!==r&&"none"!==t.display&&(f.State.calls[c][2].display=!1);t.visibility!==r&&"hidden"!==t.visibility&&(f.State.calls[c][2].visibility=!1);t.progress&&t.progress.call(w[1],w[1],g,Math.max(0,y+t.duration-d),y,ht);1===g&&b(c)}f.State.isTicking&&l(a)}function b(n,t){var i,c,l,b;if(!f.State.calls[n])return!1;for(var v=f.State.calls[n][0],a=f.State.calls[n][1],s=f.State.calls[n][2],y=f.State.calls[n][4],p=!1,h=0,w=v.length;w>h;h++){if(i=v[h].element,(t||s.loop||("none"===s.display&&u.setPropertyValue(i,"display",s.display),"hidden"===s.visibility&&u.setPropertyValue(i,"visibility",s.visibility)),s.loop!==!0&&(o.queue(i)[1]===r||!/\.velocityQueueEntryFlag/i.test(o.queue(i)[1]))&&e(i))&&(e(i).isAnimating=!1,e(i).rootPropertyValueCache={},c=!1,o.each(u.Lists.transforms3D,function(n,t){var u=/^scale/.test(t)?1:0,f=e(i).transformCache[t];e(i).transformCache[t]!==r&&new RegExp("^\\("+u+"[^.]").test(f)&&(c=!0,delete e(i).transformCache[t])}),s.mobileHA&&(c=!0,delete e(i).transformCache.translate3d),c&&u.flushTransformCache(i),u.Values.removeClass(i,"velocity-animating")),!t&&s.complete&&!s.loop&&h===w-1)try{s.complete.call(a,a)}catch(n){setTimeout(function(){throw n;},1)}y&&s.loop!==!0&&y(a);e(i)&&s.loop===!0&&!t&&(o.each(e(i).tweensContainer,function(n,t){/^rotate/.test(n)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360);/^backgroundPosition/.test(n)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),f(i,"reverse",{loop:!0,delay:s.delay}));s.queue!==!1&&o.dequeue(i,s.queue)}for(f.State.calls[n]=!1,l=0,b=f.State.calls.length;b>l;l++)if(f.State.calls[l]!==!1){p=!0;break}p===!1&&(f.State.isTicking=!1,delete f.State.calls,f.State.calls=[])}var o,h=function(){var n,t;if(i.documentMode)return i.documentMode;for(n=7;n>4;n--)if(t=i.createElement("div"),t.innerHTML="<!--[if IE "+n+"]><span><\/span><![endif]-->",t.getElementsByTagName("span").length)return t=null,n;return r}(),k=function(){var n=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var i,r=(new Date).getTime();return i=Math.max(0,16-(r-n)),n=r+i,setTimeout(function(){t(r+i)},i)}}(),s={isString:function(n){return"string"==typeof n},isArray:Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},isFunction:function(n){return"[object Function]"===Object.prototype.toString.call(n)},isNode:function(n){return n&&n.nodeType},isNodeList:function(n){return"object"==typeof n&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(n))&&n.length!==r&&(0===n.length||"object"==typeof n[0]&&n[0].nodeType>0)},isWrapped:function(n){return n&&(n.jquery||t.Zepto&&t.Zepto.zepto.isZ(n))},isSVG:function(n){return t.SVGElement&&n instanceof t.SVGElement},isEmptyObject:function(n){for(var t in n)return!1;return!0}},d=!1,nt,u,c,l;if(n.fn&&n.fn.jquery?(o=n,d=!0):o=t.Velocity.Utilities,8>=h&&!d)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=h)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,g="swing",f={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:o,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:v,easing:g,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(n){o.data(n,"velocity",{isSVG:s.isSVG(n),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};return t.pageYOffset!==r?(f.State.scrollAnchor=t,f.State.scrollPropertyLeft="pageXOffset",f.State.scrollPropertyTop="pageYOffset"):(f.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,f.State.scrollPropertyLeft="scrollLeft",f.State.scrollPropertyTop="scrollTop"),nt=function(){function n(n){return-n.tension*n.x-n.friction*n.v}function t(t,i,r){var u={x:t.x+r.dx*i,v:t.v+r.dv*i,tension:t.tension,friction:t.friction};return{dx:u.v,dv:n(u)}}function i(i,r){var u={dx:i.v,dv:n(i)},f=t(i,.5*r,u),e=t(i,.5*r,f),o=t(i,r,e),s=1/6*(u.dx+2*(f.dx+e.dx)+o.dx),h=1/6*(u.dv+2*(f.dv+e.dv)+o.dv);return i.x=i.x+s*r,i.v=i.v+h*r,i}return function n(t,r,u){var o,s,f,h={x:-1,v:0,tension:null,friction:null},c=[0],e=0;for(t=parseFloat(t)||500,r=parseFloat(r)||20,u=u||null,h.tension=t,h.friction=r,o=null!==u,o?(e=n(t,r),s=e/u*.016):s=.016;f=i(f||h,s),c.push(1+f.x),e+=16,Math.abs(f.x)>.0001&&Math.abs(f.v)>.0001;);return o?function(n){return c[n*(c.length-1)|0]}:e}}(),f.Easings={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},spring:function(n){return 1-Math.cos(4.5*n*Math.PI)*Math.exp(6*-n)}},o.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(n,t){f.Easings[t[0]]=p.apply(null,t[1])}),u=f.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e,i,r,t,f,o,s,n=0;n<u.Lists.colors.length;n++)e="color"===u.Lists.colors[n]?"0 0 0 1":"255 255 255 1",u.Hooks.templates[u.Lists.colors[n]]=["Red Green Blue Alpha",e];if(h)for(i in u.Hooks.templates)r=u.Hooks.templates[i],t=r[0].split(" "),f=r[1].match(u.RegEx.valueSplit),"Color"===t[0]&&(t.push(t.shift()),f.push(f.shift()),u.Hooks.templates[i]=[t.join(" "),f.join(" ")]);for(i in u.Hooks.templates){r=u.Hooks.templates[i];t=r[0].split(" ");for(n in t)o=i+t[n],s=n,u.Hooks.registered[o]=[i,s]}},getRoot:function(n){var t=u.Hooks.registered[n];return t?t[0]:n},cleanRootPropertyValue:function(n,t){return u.RegEx.valueUnwrap.test(t)&&(t=t.match(u.RegEx.valueUnwrap)[1]),u.Values.isCSSNullValue(t)&&(t=u.Hooks.templates[n][1]),t},extractValue:function(n,t){var i=u.Hooks.registered[n],r,f;return i?(r=i[0],f=i[1],t=u.Hooks.cleanRootPropertyValue(r,t),t.toString().match(u.RegEx.valueSplit)[f]):t},injectValue:function(n,t,i){var r=u.Hooks.registered[n],f,e,o;return r?(e=r[0],o=r[1],i=u.Hooks.cleanRootPropertyValue(e,i),f=i.toString().match(u.RegEx.valueSplit),f[o]=t,f.join(" ")):i}},Normalizations:{registered:{clip:function(n,t,i){switch(n){case"name":return"clip";case"extract":var r;return u.RegEx.wrappedValueAlreadyExtracted.test(i)?r=i:(r=i.toString().match(u.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):i),r;case"inject":return"rect("+i+")"}},blur:function(n,t,i){var r,u;switch(n){case"name":return f.State.isFirefox?"filter":"-webkit-filter";case"extract":return r=parseFloat(i),r||0===r||(u=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i),r=u?u[1]:0),r;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(n,t,i){if(8>=h)switch(n){case"name":return"filter";case"extract":var r=i.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(n){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){var n;for(9>=h||f.State.isGingerbread||(u.Lists.transformsBase=u.Lists.transformsBase.concat(u.Lists.transforms3D)),n=0;n<u.Lists.transformsBase.length;n++)!function(){var t=u.Lists.transformsBase[n];u.Normalizations.registered[t]=function(n,i,u){switch(n){case"name":return"transform";case"extract":return e(i)===r||e(i).transformCache[t]===r?/^scale/i.test(t)?1:0:e(i).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(u);break;case"scal":case"scale":f.State.isAndroid&&e(i).transformCache[t]===r&&1>u&&(u=1);o=!/(\d)$/i.test(u);break;case"skew":o=!/(deg|\d)$/i.test(u);break;case"rotate":o=!/(deg|\d)$/i.test(u)}return o||(e(i).transformCache[t]="("+u+")"),e(i).transformCache[t]}}}();for(n=0;n<u.Lists.colors.length;n++)!function(){var t=u.Lists.colors[n];u.Normalizations.registered[t]=function(n,i,f){var e,s,o;switch(n){case"name":return t;case"extract":return u.RegEx.wrappedValueAlreadyExtracted.test(f)?e=f:(o={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(f)?s=o[f]!==r?o[f]:o.black:u.RegEx.isHex.test(f)?s="rgb("+u.Values.hexToRgb(f).join(" ")+")":/^rgba?\(/i.test(f)||(s=o.black),e=(s||f).toString().match(u.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")),8>=h||3!==e.split(" ").length||(e+=" 1"),e;case"inject":return 8>=h?4===f.split(" ").length&&(f=f.split(/\s+/).slice(0,3).join(" ")):3===f.split(" ").length&&(f+=" 1"),(8>=h?"rgb":"rgba")+"("+f.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(n){return n.replace(/-(\w)/g,function(n,t){return t.toUpperCase()})},SVGAttribute:function(n){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||f.State.isAndroid&&!f.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(n)},prefixCheck:function(n){var i;if(f.State.prefixMatches[n])return[f.State.prefixMatches[n],!0];for(var r=["","Webkit","Moz","ms","O"],t=0,u=r.length;u>t;t++)if(i=0===t?n:r[t]+n.replace(/^\w/,function(n){return n.toUpperCase()}),s.isString(f.State.prefixElement.style[i]))return f.State.prefixMatches[n]=i,[i,!0];return[n,!1]}},Values:{hexToRgb:function(n){var t;return n=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,t,i,r){return t+t+i+i+r+r}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(n){return 0==n||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(n)},getUnitType:function(n){return/^(rotate|skew)/i.test(n)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(n)?"":"px"},getDisplayType:function(n){var t=n&&n.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(n,t){n.classList?n.classList.add(t):n.className+=(n.className.length?" ":"")+t},removeClass:function(n,t){n.classList?n.classList.remove(t):n.className=n.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(n,i,s,c){function y(n,i){function s(){l&&u.setPropertyValue(n,"display","none")}var f=0,l,p,w,a,v;if(8>=h)f=o.css(n,i);else{if(l=!1,/^(width|height)$/.test(i)&&0===u.getPropertyValue(n,"display")&&(l=!0,u.setPropertyValue(n,"display",u.Values.getDisplayType(n))),!c){if("height"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return p=n.offsetHeight-(parseFloat(u.getPropertyValue(n,"borderTopWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderBottomWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingTop"))||0)-(parseFloat(u.getPropertyValue(n,"paddingBottom"))||0),s(),p;if("width"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return w=n.offsetWidth-(parseFloat(u.getPropertyValue(n,"borderLeftWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderRightWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingLeft"))||0)-(parseFloat(u.getPropertyValue(n,"paddingRight"))||0),s(),w}a=e(n)===r?t.getComputedStyle(n,null):e(n).computedStyle?e(n).computedStyle:e(n).computedStyle=t.getComputedStyle(n,null);"borderColor"===i&&(i="borderTopColor");f=9===h&&"filter"===i?a.getPropertyValue(i):a[i];(""===f||null===f)&&(f=n.style[i]);s()}return"auto"===f&&/^(top|right|bottom|left)$/i.test(i)&&(v=y(n,"position"),("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(f=o(n).position()[i]+"px")),f}var l,p,a,w,v;if(u.Hooks.registered[i]?(p=i,a=u.Hooks.getRoot(p),s===r&&(s=u.getPropertyValue(n,u.Names.prefixCheck(a)[0])),u.Normalizations.registered[a]&&(s=u.Normalizations.registered[a]("extract",n,s)),l=u.Hooks.extractValue(p,s)):u.Normalizations.registered[i]&&(w=u.Normalizations.registered[i]("name",n),"transform"!==w&&(v=y(n,u.Names.prefixCheck(w)[0]),u.Values.isCSSNullValue(v)&&u.Hooks.templates[i]&&(v=u.Hooks.templates[i][1])),l=u.Normalizations.registered[i]("extract",n,v)),!/^[\d-]/.test(l))if(e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=n.getBBox()[i]}catch(n){l=0}else l=n.getAttribute(i);else l=y(n,u.Names.prefixCheck(i)[0]);return u.Values.isCSSNullValue(l)&&(l=0),f.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(n,i,r,o,s){var c=i,a,l;if("scroll"===i)s.container?s.container["scroll"+s.direction]=r:"Left"===s.direction?t.scrollTo(r,s.alternateValue):t.scrollTo(s.alternateValue,r);else if(u.Normalizations.registered[i]&&"transform"===u.Normalizations.registered[i]("name",n))u.Normalizations.registered[i]("inject",n,r),c="transform",r=e(n).transformCache[i];else{if(u.Hooks.registered[i]&&(a=i,l=u.Hooks.getRoot(i),o=o||u.getPropertyValue(n,l),r=u.Hooks.injectValue(a,r,o),i=l),u.Normalizations.registered[i]&&(r=u.Normalizations.registered[i]("inject",n,r),i=u.Normalizations.registered[i]("name",n)),c=u.Names.prefixCheck(i)[0],8>=h)try{n.style[c]=r}catch(n){f.debug&&console.log("Browser does not support ["+r+"] for ["+c+"]")}else e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i)?n.setAttribute(i,r):n.style[c]=r;f.debug>=2&&console.log("Set "+i+" ("+c+"): "+r)}return[c,r]},flushTransformCache:function(n){function t(t){return parseFloat(u.getPropertyValue(n,t))}var i="",r,s,c;(h||f.State.isAndroid&&!f.State.isChrome)&&e(n).isSVG?(r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]},o.each(e(n).transformCache,function(n){/^translate/i.test(n)?n="translate":/^scale/i.test(n)?n="scale":/^rotate/i.test(n)&&(n="rotate");r[n]&&(i+=n+"("+r[n].join(" ")+") ",delete r[n])})):(o.each(e(n).transformCache,function(t){return s=e(n).transformCache[t],"transformPerspective"===t?(c=s,!0):(9===h&&"rotateZ"===t&&(t="rotate"),void(i+=t+s+" "))}),c&&(i="perspective"+c+" "+i));u.setPropertyValue(n,"transform",i)}},u.Hooks.register(),u.Normalizations.register(),f.hook=function(n,t,i){var u=r;return n=y(n),o.each(n,function(n,o){if(e(o)===r&&f.init(o),i===r)u===r&&(u=f.CSS.getPropertyValue(o,t));else{var s=f.CSS.setPropertyValue(o,t,i);"transform"===s[0]&&f.CSS.flushTransformCache(o);u=s}}),u},c=function(){function ft(){return et?d.promise||null:at}function wt(){function g(v){function gt(t,i){var f=r,o=r,e=r;return s.isArray(t)?(f=t[0],!s.isArray(t[1])&&/^[\d-]/.test(t[1])||s.isFunction(t[1])||u.RegEx.isHex.test(t[1])?e=t[1]:(s.isString(t[1])&&!u.RegEx.isHex.test(t[1])||s.isArray(t[1]))&&(o=i?t[1]:w(t[1],n.duration),t[2]!==r&&(e=t[2]))):f=t,i||(o=o||n.easing),s.isFunction(f)&&(f=f.call(c,tt,nt)),s.isFunction(e)&&(e=e.call(c,tt,nt)),[f||0,o,e]}function ni(n,t){var i,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(n){return i=n,""}),i||(i=u.Values.getUnitType(n)),[r,i]}var yt,ti,wt,ht,bt,ot,ii,ft,g,st,lt,at,et,vt,pt,dt;if(n.begin&&0===tt)try{n.begin.call(k,k)}catch(v){setTimeout(function(){throw v;},1)}if("scroll"===it)ht=/^x$/i.test(n.axis)?"Left":"Top",bt=parseFloat(n.offset)||0,n.container?s.isWrapped(n.container)||s.isNode(n.container)?(n.container=n.container[0]||n.container,yt=n.container["scroll"+ht],wt=yt+o(c).position()[ht.toLowerCase()]+bt):n.container=null:(yt=f.State.scrollAnchor[f.State["scrollProperty"+ht]],ti=f.State.scrollAnchor[f.State["scrollProperty"+("Left"===ht?"Top":"Left")]],wt=o(c).offset()[ht.toLowerCase()]+bt),y={scroll:{rootPropertyValue:!1,startValue:yt,currentValue:yt,endValue:wt,unitType:"",easing:n.easing,scrollData:{container:n.container,direction:ht,alternateValue:ti}},element:c},f.debug&&console.log("tweensContainer (scroll): ",y.scroll,c);else if("reverse"===it){if(!e(c).tweensContainer)return void o.dequeue(c,n.queue);"none"===e(c).opts.display&&(e(c).opts.display="auto");"hidden"===e(c).opts.visibility&&(e(c).opts.visibility="visible");e(c).opts.loop=!1;e(c).opts.begin=null;e(c).opts.complete=null;h.easing||delete n.easing;h.duration||delete n.duration;n=o.extend({},e(c).opts,n);ft=o.extend(!0,{},e(c).tweensContainer);for(ot in ft)"element"!==ot&&(ii=ft[ot].startValue,ft[ot].startValue=ft[ot].currentValue=ft[ot].endValue,ft[ot].endValue=ii,s.isEmptyObject(h)||(ft[ot].easing=n.easing),f.debug&&console.log("reverse tweensContainer ("+ot+"): "+JSON.stringify(ft[ot]),c));y=ft}else if("start"===it){e(c).tweensContainer&&e(c).isAnimating===!0&&(ft=e(c).tweensContainer);o.each(p,function(n,t){var f;if(RegExp("^"+u.Lists.colors.join("$|^")+"$").test(n)){var e=gt(t,!0),o=e[0],s=e[1],h=e[2];if(u.RegEx.isHex.test(o)){for(var c=["Red","Green","Blue"],a=u.Values.hexToRgb(o),l=h?u.Values.hexToRgb(h):r,i=0;i<c.length;i++)f=[a[i]],s&&f.push(s),l!==r&&f.push(l[i]),p[n+c[i]]=f;delete p[n]}}});for(g in p){var kt=gt(p[g]),ut=kt[0],ri=kt[1],rt=kt[2];if(g=u.Names.camelCase(g),st=u.Hooks.getRoot(g),lt=!1,e(c).isSVG||"tween"===st||u.Names.prefixCheck(st)[1]!==!1||u.Normalizations.registered[st]!==r){if((n.display!==r&&null!==n.display&&"none"!==n.display||n.visibility!==r&&"hidden"!==n.visibility)&&/opacity|filter/.test(g)&&!rt&&0!==ut&&(rt=0),n._cacheValues&&ft&&ft[g]?(rt===r&&(rt=ft[g].endValue+ft[g].unitType),lt=e(c).rootPropertyValueCache[st]):u.Hooks.registered[g]?rt===r?(lt=u.getPropertyValue(c,st),rt=u.getPropertyValue(c,g,lt)):lt=u.Hooks.templates[st][1]:rt===r&&(rt=u.getPropertyValue(c,g)),pt=!1,at=ni(g,rt),rt=at[0],vt=at[1],at=ni(g,ut),ut=at[0].replace(/^([+-\/*])=/,function(n,t){return pt=t,""}),et=at[1],rt=parseFloat(rt)||0,ut=parseFloat(ut)||0,"%"===et&&(/^(fontSize|lineHeight)$/.test(g)?(ut/=100,et="em"):/^scale/.test(g)?(ut/=100,et=""):/(Red|Green|Blue)$/i.test(g)&&(ut=ut/100*255,et="")),/[\/*]/.test(pt))et=vt;else if(vt!==et&&0!==rt)if(0===ut)et=vt;else{b=b||function(){var s={myParent:c.parentNode||i.body,position:u.getPropertyValue(c,"position"),fontSize:u.getPropertyValue(c,"fontSize")},a=s.position===l.lastPosition&&s.myParent===l.lastParent,v=s.fontSize===l.lastFontSize,h,r,n;return l.lastParent=s.myParent,l.lastPosition=s.position,l.lastFontSize=s.fontSize,h=100,r={},v&&a?(r.emToPx=l.lastEmToPx,r.percentToPxWidth=l.lastPercentToPxWidth,r.percentToPxHeight=l.lastPercentToPxHeight):(n=e(c).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div"),f.init(n),s.myParent.appendChild(n),o.each(["overflow","overflowX","overflowY"],function(t,i){f.CSS.setPropertyValue(n,i,"hidden")}),f.CSS.setPropertyValue(n,"position",s.position),f.CSS.setPropertyValue(n,"fontSize",s.fontSize),f.CSS.setPropertyValue(n,"boxSizing","content-box"),o.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,i){f.CSS.setPropertyValue(n,i,h+"%")}),f.CSS.setPropertyValue(n,"paddingLeft",h+"em"),r.percentToPxWidth=l.lastPercentToPxWidth=(parseFloat(u.getPropertyValue(n,"width",null,!0))||1)/h,r.percentToPxHeight=l.lastPercentToPxHeight=(parseFloat(u.getPropertyValue(n,"height",null,!0))||1)/h,r.emToPx=l.lastEmToPx=(parseFloat(u.getPropertyValue(n,"paddingLeft"))||1)/h,s.myParent.removeChild(n)),null===l.remToPx&&(l.remToPx=parseFloat(u.getPropertyValue(i.body,"fontSize"))||16),null===l.vwToPx&&(l.vwToPx=parseFloat(t.innerWidth)/100,l.vhToPx=parseFloat(t.innerHeight)/100),r.remToPx=l.remToPx,r.vwToPx=l.vwToPx,r.vhToPx=l.vhToPx,f.debug>=1&&console.log("Unit ratios: "+JSON.stringify(r),c),r}();dt=/margin|padding|left|right|width|text|word|letter/i.test(g)||/X$/.test(g)||"x"===g?"x":"y";switch(vt){case"%":rt*="x"===dt?b.percentToPxWidth:b.percentToPxHeight;break;case"px":break;default:rt*=b[vt+"ToPx"]}switch(et){case"%":rt*=1/("x"===dt?b.percentToPxWidth:b.percentToPxHeight);break;case"px":break;default:rt*=1/b[et+"ToPx"]}}switch(pt){case"+":ut=rt+ut;break;case"-":ut=rt-ut;break;case"*":ut*=rt;break;case"/":ut=rt/ut}y[g]={rootPropertyValue:lt,startValue:rt,currentValue:rt,endValue:ut,unitType:et,easing:ri};f.debug&&console.log("tweensContainer ("+g+"): "+JSON.stringify(y[g]),c)}else f.debug&&console.log("Skipping ["+st+"] due to a lack of browser support.")}y.element=c}y.element&&(u.Values.addClass(c,"velocity-animating"),ct.push(y),""===n.queue&&(e(c).tweensContainer=y,e(c).opts=n),e(c).isAnimating=!0,tt===nt-1?(f.State.calls.push([ct,k,n,null,d.resolver]),f.State.isTicking===!1&&(f.State.isTicking=!0,a())):tt++)}var b,c=this,n=o.extend({},f.defaults,h),y={};switch(e(c)===r&&f.init(c),parseFloat(n.delay)&&n.queue!==!1&&o.queue(c,n.queue,function(t){f.velocityQueueEntryFlag=!0;e(c).delayTimer={setTimeout:setTimeout(t,parseFloat(n.delay)),next:t}}),n.duration.toString().toLowerCase()){case"fast":n.duration=200;break;case"normal":n.duration=v;break;case"slow":n.duration=600;break;default:n.duration=parseFloat(n.duration)||1}f.mock!==!1&&(f.mock===!0?n.duration=n.delay=1:(n.duration*=parseFloat(f.mock)||1,n.delay*=parseFloat(f.mock)||1));n.easing=w(n.easing,n.duration);n.begin&&!s.isFunction(n.begin)&&(n.begin=null);n.progress&&!s.isFunction(n.progress)&&(n.progress=null);n.complete&&!s.isFunction(n.complete)&&(n.complete=null);n.display!==r&&null!==n.display&&(n.display=n.display.toString().toLowerCase(),"auto"===n.display&&(n.display=f.CSS.Values.getDisplayType(c)));n.visibility!==r&&null!==n.visibility&&(n.visibility=n.visibility.toString().toLowerCase());n.mobileHA=n.mobileHA&&f.State.isMobile&&!f.State.isGingerbread;n.queue===!1?n.delay?setTimeout(g,n.delay):g():o.queue(c,n.queue,function(n,t){return t===!0?(d.promise&&d.resolver(k),!0):(f.velocityQueueEntryFlag=!0,void g(n))});""!==n.queue&&"fx"!==n.queue||"inprogress"===o.queue(c)[0]||o.dequeue(c)}var et,at,rt,k,p,h,vt=arguments[0]&&(arguments[0].p||o.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||s.isString(arguments[0].properties)),nt,tt,yt,g,d,it,st,ht,l,ct,lt,n,ot,ut;if(s.isWrapped(this)?(et=!1,rt=0,k=this,at=this):(et=!0,rt=1,k=vt?arguments[0].elements||arguments[0].e:arguments[0]),k=y(k)){if(vt?(p=arguments[0].properties||arguments[0].p,h=arguments[0].options||arguments[0].o):(p=arguments[rt],h=arguments[rt+1]),nt=k.length,tt=0,!/^(stop|finish)$/i.test(p)&&!o.isPlainObject(h))for(yt=rt+1,h={},g=yt;g<arguments.length;g++)s.isArray(arguments[g])||!/^(fast|normal|slow)$/i.test(arguments[g])&&!/^\d/.test(arguments[g])?s.isString(arguments[g])||s.isArray(arguments[g])?h.easing=arguments[g]:s.isFunction(arguments[g])&&(h.complete=arguments[g]):h.duration=arguments[g];d={promise:null,resolver:null,rejecter:null};et&&f.Promise&&(d.promise=new f.Promise(function(n,t){d.resolver=n;d.rejecter=t}));switch(p){case"scroll":it="scroll";break;case"reverse":it="reverse";break;case"finish":case"stop":return o.each(k,function(n,t){e(t)&&e(t).delayTimer&&(clearTimeout(e(t).delayTimer.setTimeout),e(t).delayTimer.next&&e(t).delayTimer.next(),delete e(t).delayTimer)}),st=[],o.each(f.State.calls,function(n,t){t&&o.each(t[1],function(i,u){var f=h===r?"":h;return f!==!0&&t[2].queue!==f&&(h!==r||t[2].queue!==!1)||void o.each(k,function(i,r){r===u&&((h===!0||s.isString(h))&&(o.each(o.queue(r,s.isString(h)?h:""),function(n,t){s.isFunction(t)&&t(null,!0)}),o.queue(r,s.isString(h)?h:"",[])),"stop"===p?(e(r)&&e(r).tweensContainer&&f!==!1&&o.each(e(r).tweensContainer,function(n,t){t.endValue=t.currentValue}),st.push(n)):"finish"===p&&(t[2].duration=1))})})}),"stop"===p&&(o.each(st,function(n,t){b(t,!0)}),d.promise&&d.resolver(k)),ft();default:if(!o.isPlainObject(p)||s.isEmptyObject(p)){if(s.isString(p)&&f.Redirects[p]){var n=o.extend({},h),bt=n.duration,pt=n.delay||0;return n.backwards===!0&&(k=o.extend(!0,[],k).reverse()),o.each(k,function(t,i){parseFloat(n.stagger)?n.delay=pt+parseFloat(n.stagger)*t:s.isFunction(n.stagger)&&(n.delay=pt+n.stagger.call(i,t,nt));n.drag&&(n.duration=parseFloat(bt)||(/^(callout|transition)/.test(p)?1e3:v),n.duration=Math.max(n.duration*(n.backwards?1-t/nt:(t+1)/nt),.75*n.duration,200));f.Redirects[p].call(i,i,n||{},t,nt,k,d.promise?d:r)}),ft()}return ht="Velocity: First argument ("+p+") was not a property map, a known action, or a registered redirect. Aborting.",d.promise?d.rejecter(new Error(ht)):console.log(ht),ft()}it="start"}if(l={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},ct=[],o.each(k,function(n,t){s.isNode(t)&&wt.call(t)}),n=o.extend({},f.defaults,h),n.loop=parseInt(n.loop),lt=2*n.loop-1,n.loop)for(ot=0;lt>ot;ot++)ut={delay:n.delay,progress:n.progress},ot===lt-1&&(ut.display=n.display,ut.visibility=n.visibility,ut.complete=n.complete),c(k,"reverse",ut);return ft()}},f=o.extend(c,f),f.animate=c,l=t.requestAnimationFrame||k,f.State.isMobile||i.hidden===r||i.addEventListener("visibilitychange",function(){i.hidden?(l=function(n){return setTimeout(function(){n(!0)},16)},a()):l=t.requestAnimationFrame||k}),n.Velocity=f,n!==t&&(n.fn.velocity=c,n.fn.velocity.defaults=f.defaults),o.each(["Down","Up"],function(n,t){f.Redirects["slide"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),v=c.begin,y=c.complete,a={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},l={};c.display===r&&(c.display="Down"===t?"inline"===f.CSS.Values.getDisplayType(n)?"inline-block":"block":"none");c.begin=function(){var i,r;v&&v.call(s,s);for(i in a)l[i]=n.style[i],r=f.CSS.getPropertyValue(n,i),a[i]="Down"===t?[r,0]:[0,r];l.overflow=n.style.overflow;n.style.overflow="hidden"};c.complete=function(){for(var t in l)n.style[t]=l[t];y&&y.call(s,s);h&&h.resolver(s)};f(n,a,c)}}),o.each(["In","Out"],function(n,t){f.Redirects["fade"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),a={opacity:"In"===t?1:0},l=c.complete;c.complete=u!==e-1?c.begin=null:function(){l&&l.call(s,s);h&&h.resolver(s)};c.display===r&&(c.display="In"===t?"auto":"none");f(this,a,c)}}),f}(window.jQuery||window.Zepto||window,window,document)})),function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.Chart=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(){},{}],2:[function(n,t){function r(n){var t;if(n){var u=[0,0,0],f=1,r=n.match(/^#([a-fA-F0-9]{3})$/);if(r)for(r=r[1],t=0;t<u.length;t++)u[t]=parseInt(r[t]+r[t],16);else if(r=n.match(/^#([a-fA-F0-9]{6})$/))for(r=r[1],t=0;t<u.length;t++)u[t]=parseInt(r.slice(2*t,2*t+2),16);else if(r=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<u.length;t++)u[t]=parseInt(r[t+1]);f=parseFloat(r[4])}else if(r=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<u.length;t++)u[t]=Math.round(2.55*parseFloat(r[t+1]));f=parseFloat(r[4])}else if(r=n.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(u=e[r[1]]))return}for(t=0;t<u.length;t++)u[t]=i(u[t],0,255);return f=f||0==f?i(f,0,1):1,u[3]=f,u}}function u(n){var t,r;if(n&&(t=n.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t))return r=parseFloat(t[4]),[i(parseInt(t[1]),0,360),i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}function h(n){var t,r;if(n&&(t=n.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t))return r=parseFloat(t[4]),[i(parseInt(t[1]),0,360),i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}function v(n){var t=r(n);return t&&t.slice(0,3)}function y(n){var t=u(n);return t&&t.slice(0,3)}function p(n){var t=r(n);return t?t[3]:(t=u(n))?t[3]:(t=h(n))?t[3]:void 0}function w(n){return"#"+f(n[0])+f(n[1])+f(n[2])}function b(n,t){return t<1||n[3]&&n[3]<1?c(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"}function c(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function k(n,t){return t<1||n[3]&&n[3]<1?l(n,t):"rgb("+Math.round(n[0]/255*100)+"%, "+Math.round(n[1]/255*100)+"%, "+Math.round(n[2]/255*100)+"%)"}function l(n,t){return"rgba("+Math.round(n[0]/255*100)+"%, "+Math.round(n[1]/255*100)+"%, "+Math.round(n[2]/255*100)+"%, "+(t||n[3]||1)+")"}function d(n,t){return t<1||n[3]&&n[3]<1?a(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"}function a(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function g(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function nt(n){return o[n.slice(0,3)]}function i(n,t,i){return Math.min(Math.max(t,n),i)}function f(n){var t=n.toString(16).toUpperCase();return t.length<2?"0"+t:t}var e=n(6),o,s;t.exports={getRgba:r,getHsla:u,getRgb:v,getHsl:y,getHwb:h,getAlpha:p,hexString:w,rgbString:b,rgbaString:c,percentString:k,percentaString:l,hslString:d,hslaString:a,hwbString:g,keyword:nt};o={};for(s in e)o[e[s]]=s},{6:6}],3:[function(n,t){var u=n(5),r=n(2),i=function(n){if(n instanceof i)return n;if(!(this instanceof i))return new i(n);this.valid=!1;this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;"string"==typeof n?(t=r.getRgba(n),t?this.setValues("rgb",t):(t=r.getHsla(n))?this.setValues("hsl",t):(t=r.getHwb(n))&&this.setValues("hwb",t)):"object"==typeof n&&(t=n,void 0!==t.r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t))};i.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var n=this.values;return 1!==n.alpha?n.hwb.concat([n.alpha]):n.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var n=this.values;return n.rgb.concat([n.alpha])},hslaArray:function(){var n=this.values;return n.hsl.concat([n.alpha])},alpha:function(n){return void 0===n?this.values.alpha:(this.setValues("alpha",n),this)},red:function(n){return this.setChannel("rgb",0,n)},green:function(n){return this.setChannel("rgb",1,n)},blue:function(n){return this.setChannel("rgb",2,n)},hue:function(n){return n&&(n%=360,n=n<0?360+n:n),this.setChannel("hsl",0,n)},saturation:function(n){return this.setChannel("hsl",1,n)},lightness:function(n){return this.setChannel("hsl",2,n)},saturationv:function(n){return this.setChannel("hsv",1,n)},whiteness:function(n){return this.setChannel("hwb",1,n)},blackness:function(n){return this.setChannel("hwb",2,n)},value:function(n){return this.setChannel("hsv",2,n)},cyan:function(n){return this.setChannel("cmyk",0,n)},magenta:function(n){return this.setChannel("cmyk",1,n)},yellow:function(n){return this.setChannel("cmyk",2,n)},black:function(n){return this.setChannel("cmyk",3,n)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var n=this.values.rgb;return n[0]<<16|n[1]<<8|n[2]},luminosity:function(){for(var i,r=this.values.rgb,n=[],t=0;t<r.length;t++)i=r[t]/255,n[t]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(n){var t=this.luminosity(),i=n.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(n){var t=this.contrast(n);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var n=this.values.rgb;return(299*n[0]+587*n[1]+114*n[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],n=0;n<3;n++)t[n]=255-this.values.rgb[n];return this.setValues("rgb",t),this},lighten:function(n){var t=this.values.hsl;return t[2]+=t[2]*n,this.setValues("hsl",t),this},darken:function(n){var t=this.values.hsl;return t[2]-=t[2]*n,this.setValues("hsl",t),this},saturate:function(n){var t=this.values.hsl;return t[1]+=t[1]*n,this.setValues("hsl",t),this},desaturate:function(n){var t=this.values.hsl;return t[1]-=t[1]*n,this.setValues("hsl",t),this},whiten:function(n){var t=this.values.hwb;return t[1]+=t[1]*n,this.setValues("hwb",t),this},blacken:function(n){var t=this.values.hwb;return t[2]+=t[2]*n,this.setValues("hwb",t),this},greyscale:function(){var n=this.values.rgb,t=.3*n[0]+.59*n[1]+.11*n[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(n){var t=this.values.alpha;return this.setValues("alpha",t-t*n),this},opaquer:function(n){var t=this.values.alpha;return this.setValues("alpha",t+t*n),this},rotate:function(n){var t=this.values.hsl,i=(t[0]+n)%360;return t[0]=i<0?360+i:i,this.setValues("hsl",t),this},mix:function(n,t){var i=this,r=n,e=void 0===t?.5:t,u=2*e-1,o=i.alpha()-r.alpha(),f=((u*o==-1?u:(u+o)/(1+u*o))+1)/2,s=1-f;return this.rgb(f*i.red()+s*r.red(),f*i.green()+s*r.green(),f*i.blue()+s*r.blue()).alpha(i.alpha()*e+r.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var n,r,f=new i,u=this.values,e=f.values;for(var t in u)u.hasOwnProperty(t)&&(n=u[t],r={}.toString.call(n),"[object Array]"===r?e[t]=n.slice(0):"[object Number]"===r?e[t]=n:console.error("unexpected color value:",n));return f}};i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};i.prototype.getValues=function(n){for(var i=this.values,r={},t=0;t<n.length;t++)r[n.charAt(t)]=i[n][t];return 1!==i.alpha&&(r.a=i.alpha),r};i.prototype.setValues=function(n,t){var i,r=this.values,o=this.spaces,c=this.maxes,f=1,s,h,e;if(this.valid=!0,"alpha"===n)f=t;else if(t.length)r[n]=t.slice(0,n.length),f=t[n.length];else if(void 0!==t[n.charAt(0)]){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];f=t.a}else if(void 0!==t[o[n][0]]){for(s=o[n],i=0;i<n.length;i++)r[n][i]=t[s[i]];f=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===f?r.alpha:f)),"alpha"===n)return!1;for(i=0;i<n.length;i++)h=Math.max(0,Math.min(c[n][i],r[n][i])),r[n][i]=Math.round(h);for(e in o)e!==n&&(r[e]=u[n][e](r[n]));return!0};i.prototype.setSpace=function(n,t){var i=t[0];return void 0===i?this.getValues(n):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)};i.prototype.setChannel=function(n,t,i){var r=this.values[n];return void 0===i?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)};"undefined"!=typeof window&&(window.Color=i);t.exports=i},{2:2,5:5}],4:[function(n,t){function u(n){var t,h,s,u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),i=Math.max(u,f,e),o=i-r;return i==r?t=0:u==i?t=(f-e)/o:f==i?t=2+(e-u)/o:e==i&&(t=4+(u-f)/o),t=Math.min(60*t,360),t<0&&(t+=360),s=(r+i)/2,h=i==r?0:s<=.5?o/(i+r):o/(2-i-r),[t,100*h,100*s]}function c(n){var t,o,s,r=n[0],u=n[1],f=n[2],h=Math.min(r,u,f),i=Math.max(r,u,f),e=i-h;return o=0==i?0:e/i*100,i==h?t=0:r==i?t=(u-f)/e:u==i?t=2+(f-r)/e:f==i&&(t=4+(r-u)/e),t=Math.min(60*t,360),t<0&&(t+=360),s=i/255*100,[t,o,s]}function f(n){var i=n[0],r=n[1],t=n[2],f=u(n)[0],e=1/255*Math.min(i,Math.min(r,t)),t=1-1/255*Math.max(i,Math.max(r,t));return[f,100*e,100*t]}function e(n){var i,r,u,t,f=n[0]/255,e=n[1]/255,o=n[2]/255;return t=Math.min(1-f,1-e,1-o),i=(1-f-t)/(1-t)||0,r=(1-e-t)/(1-t)||0,u=(1-o-t)/(1-t)||0,[100*i,100*r,100*u,100*t]}function o(n){return nt[JSON.stringify(n)]}function y(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;return t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,[100*(.4124*t+.3576*i+.1805*r),100*(.2126*t+.7152*i+.0722*r),100*(.0193*t+.1192*i+.9505*r)]}function p(n){var f,e,o,u=y(n),i=u[0],t=u[1],r=u[2];return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,f=116*t-16,e=500*(i-t),o=200*(t-r),[f,e,o]}function ft(n){return k(p(n))}function l(n){var i,f,t,s,r,h=n[0]/360,o=n[1]/100,u=n[2]/100,e;if(0==o)return r=255*u,[r,r,r];for(f=u<.5?u*(1+o):u+o-u*o,i=2*u-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,r=6*t<1?i+6*(f-i)*t:2*t<1?f:3*t<2?i+(f-i)*(2/3-t)*6:i,s[e]=255*r;return s}function et(n){var r,u,f=n[0],i=n[1]/100,t=n[2]/100;return 0===t?[0,0,0]:(t*=2,i*=t<=1?t:2-t,u=(t+i)/2,r=2*i/(t+i),[f,100*r,100*u])}function ot(n){return f(l(n))}function st(n){return e(l(n))}function ht(n){return o(l(n))}function a(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o)),t=255*t;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}}function ct(n){var i,t,f=n[0],r=n[1]/100,u=n[2]/100;return t=(2-r)*u,i=r*u,i/=t<=1?t:2-t,i=i||0,t/=2,[f,100*i,100*t]}function lt(n){return f(a(n))}function at(n){return e(a(n))}function vt(n){return o(a(n))}function s(n){var f,i,e,u,h=n[0]/360,t=n[1]/100,o=n[2]/100,s=t+o;switch(s>1&&(t/=s,o/=s),f=Math.floor(6*h),i=1-o,e=6*h-f,0!=(1&f)&&(e=1-e),u=t+e*(i-t),f){default:case 6:case 0:r=i;g=u;b=t;break;case 1:r=u;g=i;b=t;break;case 2:r=t;g=i;b=u;break;case 3:r=t;g=u;b=i;break;case 4:r=u;g=t;b=i;break;case 5:r=i;g=t;b=u}return[255*r,255*g,255*b]}function yt(n){return u(s(n))}function pt(n){return c(s(n))}function wt(n){return e(s(n))}function bt(n){return o(s(n))}function h(n){var i,r,u,f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[255*i,255*r,255*u]}function kt(n){return u(h(n))}function dt(n){return c(h(n))}function gt(n){return f(h(n))}function ni(n){return o(h(n))}function it(n){var t,i,r,u=n[0]/100,f=n[1]/100,e=n[2]/100;return t=3.2406*u+f*-1.5372+e*-.4986,i=u*-.9689+1.8758*f+.0415*e,r=.0557*u+f*-.204+1.057*e,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[255*t,255*i,255*r]}function rt(n){var u,f,e,i=n[0],t=n[1],r=n[2];return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]}function ti(n){return k(rt(n))}function w(n){var r,i,u,t,f=n[0],e=n[1],o=n[2];return f<=8?(i=100*f/903.3,t=i/100*7.787+16/116):(i=100*Math.pow((f+16)/116,3),t=Math.pow(i/100,1/3)),r=r/95.047<=.008856?r=95.047*(e/500+t-16/116)/7.787:95.047*Math.pow(e/500+t,3),u=u/108.883<=.008859?u=108.883*(t-o/200-16/116)/7.787:108.883*Math.pow(t-o/200,3),[r,i,u]}function k(n){var u,t,f,e=n[0],i=n[1],r=n[2];return u=Math.atan2(r,i),t=180*u/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]}function ut(n){return it(w(n))}function d(n){var i,r,t,f=n[0],u=n[1],e=n[2];return t=e/180*Math.PI,i=u*Math.cos(t),r=u*Math.sin(t),[f,i,r]}function ii(n){return w(d(n))}function ri(n){return ut(d(n))}function i(n){return v[n]}function ui(n){return u(i(n))}function fi(n){return c(i(n))}function ei(n){return f(i(n))}function oi(n){return e(i(n))}function si(n){return p(i(n))}function hi(n){return y(i(n))}var v,nt,tt;t.exports={rgb2hsl:u,rgb2hsv:c,rgb2hwb:f,rgb2cmyk:e,rgb2keyword:o,rgb2xyz:y,rgb2lab:p,rgb2lch:ft,hsl2rgb:l,hsl2hsv:et,hsl2hwb:ot,hsl2cmyk:st,hsl2keyword:ht,hsv2rgb:a,hsv2hsl:ct,hsv2hwb:lt,hsv2cmyk:at,hsv2keyword:vt,hwb2rgb:s,hwb2hsl:yt,hwb2hsv:pt,hwb2cmyk:wt,hwb2keyword:bt,cmyk2rgb:h,cmyk2hsl:kt,cmyk2hsv:dt,cmyk2hwb:gt,cmyk2keyword:ni,keyword2rgb:i,keyword2hsl:ui,keyword2hsv:fi,keyword2hwb:ei,keyword2cmyk:oi,keyword2lab:si,keyword2xyz:hi,xyz2rgb:it,xyz2lab:rt,xyz2lch:ti,lab2xyz:w,lab2rgb:ut,lab2lch:k,lch2lab:d,lch2xyz:ii,lch2rgb:ri};v={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};nt={};for(tt in v)nt[JSON.stringify(v[tt])]=tt},{}],5:[function(n,t){var f=n(4),i=function(){return new u},r,u;for(r in f){i[r+"Raw"]=function(n){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),f[n](t)}}(r);var o=/(\w+)2(\w+)/.exec(r),e=o[1],s=o[2];i[e]=i[e]||{};i[e][s]=i[r]=function(n){return function(t){var i,r;if("number"==typeof t&&(t=Array.prototype.slice.call(arguments)),i=f[n](t),"string"==typeof i||void 0===i)return i;for(r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(r)}u=function(){this.convs={}};u.prototype.routeSpace=function(n,t){var i=t[0];return void 0===i?this.getValues(n):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(n,i))};u.prototype.setValues=function(n,t){return this.space=n,this.convs={},this.convs[n]=t,this};u.prototype.getValues=function(n){var t=this.convs[n],r,u;return t||(r=this.space,u=this.convs[r],t=i[r][n](u),this.convs[n]=t),t};["rgb","hsl","hsv","cmyk","keyword"].forEach(function(n){u.prototype[n]=function(){return this.routeSpace(n,arguments)}});t.exports=i},{4:4}],6:[function(n,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(n,t){var i=n(28)(),r;n(26)(i);n(40)(i);n(22)(i);n(25)(i);n(30)(i);n(21)(i);n(23)(i);n(24)(i);n(29)(i);n(32)(i);n(33)(i);n(31)(i);n(27)(i);n(34)(i);n(35)(i);n(36)(i);n(37)(i);n(38)(i);n(46)(i);n(44)(i);n(45)(i);n(47)(i);n(48)(i);n(49)(i);n(15)(i);n(16)(i);n(17)(i);n(18)(i);n(19)(i);n(20)(i);n(8)(i);n(9)(i);n(10)(i);n(11)(i);n(12)(i);n(13)(i);n(14)(i);r=[];r.push(n(41)(i),n(42)(i),n(43)(i));i.plugins.register(r);t.exports=i;"undefined"!=typeof window&&(window.Chart=i)},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,8:8,9:9}],8:[function(n,t){"use strict";t.exports=function(n){n.Bar=function(t,i){return i.type="bar",new n(t,i)}}},{}],9:[function(n,t){"use strict";t.exports=function(n){n.Bubble=function(t,i){return i.type="bubble",new n(t,i)}}},{}],10:[function(n,t){"use strict";t.exports=function(n){n.Doughnut=function(t,i){return i.type="doughnut",new n(t,i)}}},{}],11:[function(n,t){"use strict";t.exports=function(n){n.Line=function(t,i){return i.type="line",new n(t,i)}}},{}],12:[function(n,t){"use strict";t.exports=function(n){n.PolarArea=function(t,i){return i.type="polarArea",new n(t,i)}}},{}],13:[function(n,t){"use strict";t.exports=function(n){n.Radar=function(t,i){return i.type="radar",new n(t,i)}}},{}],14:[function(n,t){"use strict";t.exports=function(n){var t={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}};n.defaults.scatter=t;n.controllers.scatter=n.controllers.line;n.Scatter=function(t,i){return i.type="scatter",new n(t,i)}}},{}],15:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}};n.controllers.bar=n.DatasetController.extend({dataElementType:n.elements.Rectangle,initialize:function(){var t,i=this;n.DatasetController.prototype.initialize.apply(i,arguments);t=i.getMeta();t.stack=i.getDataset().stack;t.bar=!0},update:function(n){var t,r,i=this,u=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,r=u.length;t<r;++t)i.updateElement(u[t],t,n)},updateElement:function(n,i,r){var f=this,s=f.chart,h=f.getMeta(),e=f.getDataset(),u=n.custom||{},o=s.options.elements.rectangle;n._xScale=f.getScaleForId(h.xAxisID);n._yScale=f.getScaleForId(h.yAxisID);n._datasetIndex=f.index;n._index=i;n._model={datasetLabel:e.label,label:s.data.labels[i],borderSkipped:u.borderSkipped?u.borderSkipped:o.borderSkipped,backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(e.borderColor,i,o.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)};f.updateElementGeometry(n,i,r);n.pivot()},updateElementGeometry:function(n,t,i){var r=this,u=n._model,h=r.getValueScale(),o=h.getBasePixel(),f=h.isHorizontal(),c=r._ruler||r.getRuler(),s=r.calculateBarValuePixels(r.index,t),e=r.calculateBarIndexPixels(r.index,t,c);u.horizontal=f;u.base=i?o:s.base;u.x=f?i?o:s.head:e.center;u.y=f?e.center:i?o:s.head;u.height=f?e.size:void 0;u.width=f?void 0:e.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(n){for(var t,e=this,u=e.chart,o=e.getIndexScale(),f=o.options.stacked,s=void 0===n?u.data.datasets.length:n+1,r=[],i=0;i<s;++i)t=u.getDatasetMeta(i),t.bar&&u.isDatasetVisible(i)&&(f===!1||f===!0&&r.indexOf(t.stack)===-1||void 0===f&&(void 0===t.stack||r.indexOf(t.stack)===-1))&&r.push(t.stack);return r.length},getStackIndex:function(n){return this.getStackCount(n)-1},getRuler:function(){var o=this,n=o.getIndexScale(),i=n.options,s=o.getStackCount(),h=n.isHorizontal()?n.width:n.height,u=h/n.ticks.length,f=u*i.categoryPercentage,e=f/s,r=e*i.barPercentage;return r=Math.min(t.getValueOrDefault(i.barThickness,r),t.getValueOrDefault(i.maxBarThickness,1/0)),{stackCount:s,tickSize:u,categorySize:f,categorySpacing:u-f,fullBarSize:e,barSize:r,barSpacing:e-r,scale:n}},calculateBarValuePixels:function(n,t){var i,r,u,o,f,s,h=this,c=h.chart,w=h.getMeta(),e=h.getValueScale(),v=c.data.datasets,l=Number(v[n].data[t]),y=e.options.stacked,p=w.stack,a=0;if(y||void 0===y&&void 0!==p)for(i=0;i<n;++i)r=c.getDatasetMeta(i),r.bar&&r.stack===p&&r.controller.getValueScaleId()===e.id&&c.isDatasetVisible(i)&&(u=Number(v[i].data[t]),(l<0&&u<0||l>=0&&u>0)&&(a+=u));return o=e.getPixelForValue(a),f=e.getPixelForValue(a+l),s=(f-o)/2,{size:s,base:o,head:f,center:f+s/2}},calculateBarIndexPixels:function(n,t,i){var f=this,o=i.scale,e=f.chart.isCombo,s=f.getStackIndex(n),r=o.getPixelForValue(null,t,n,e),u=i.barSize;return r-=e?i.tickSize/2:0,r+=i.fullBarSize*s,r+=i.categorySpacing/2,r+=i.barSpacing/2,{size:u,base:r,head:r+u,center:r+u/2}},draw:function(){var i,r=this,u=r.chart,f=r.getMeta().data,e=r.getDataset(),o=f.length,n=0;for(t.canvas.clipArea(u.ctx,u.chartArea);n<o;++n)null===(i=e.data[n])||void 0===i||isNaN(i)||f[n].draw();t.canvas.unclipArea(u.ctx)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.hoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.hoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.hoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,i=n.custom||{},f=n._model,e=this.chart.options.elements.rectangle;f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.backgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.borderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.borderWidth,u,e.borderWidth)}});n.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(n,t){var i="";return n.length>0&&(n[0].yLabel?i=n[0].yLabel:t.labels.length>0&&n[0].index<t.labels.length&&(i=t.labels[n[0].index])),i},label:function(n,t){return(t.datasets[n.datasetIndex].label||"")+": "+n.xLabel}}}};n.controllers.horizontalBar=n.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"",r=t.datasets[n.datasetIndex].data[n.index];return i+": ("+n.xLabel+", "+n.yLabel+", "+r.r+")"}}}};n.controllers.bubble=n.DatasetController.extend({dataElementType:n.elements.Point,update:function(n){var i=this,r=i.getMeta(),u=r.data;t.each(u,function(t,r){i.updateElement(t,r,n)})},updateElement:function(i,r,u){var f=this,a=f.getMeta(),h=f.getScaleForId(a.xAxisID),c=f.getScaleForId(a.yAxisID),e=i.custom||{},v=f.getDataset(),o=v.data[r],y=f.chart.options.elements.point,l=f.index,s;t.extend(i,{_xScale:h,_yScale:c,_datasetIndex:l,_index:r,_model:{x:u?h.getPixelForDecimal(.5):h.getPixelForValue("object"==typeof o?o:NaN,r,l,f.chart.isCombo),y:u?c.getBasePixel():c.getPixelForValue(o,r,l),radius:u?0:e.radius?e.radius:f.getRadius(o),hitRadius:e.hitRadius?e.hitRadius:t.getValueAtIndexOrDefault(v.hitRadius,r,y.hitRadius)}});n.DatasetController.prototype.removeHoverStyle.call(f,i,y);s=i._model;s.skip=e.skip?e.skip:isNaN(s.x)||isNaN(s.y);i.pivot()},getRadius:function(n){return n.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var r=this;n.DatasetController.prototype.setHoverStyle.call(r,i);var u=r.chart.data.datasets[i._datasetIndex],f=i._index,e=i.custom||{};i._model.radius=e.hoverRadius?e.hoverRadius:t.getValueAtIndexOrDefault(u.hoverRadius,f,r.chart.options.elements.point.hoverRadius)+r.getRadius(u.data[f])},removeHoverStyle:function(t){var i=this,u,r;n.DatasetController.prototype.removeHoverStyle.call(i,t,i.chart.options.elements.point);u=i.chart.data.datasets[t._datasetIndex].data[t._index];r=t.custom||{};t._model.radius=r.radius?r.radius:i.getRadius(u)}})}},{}],17:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c&&c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc;return{text:r,fillStyle:f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),strokeStyle:f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),lineWidth:f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth),hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var r,u=t.index,f=this.chart,i=0,e=(f.data.datasets||[]).length;i<e;++i)r=f.getDatasetMeta(i),r.data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(n,i){var r=i.labels[n.index],u=": "+i.datasets[n.datasetIndex].data[n.index];return t.isArray(r)?(r=r.slice(),r[0]+=u):r+=u,r}}}};i.pie=t.clone(i.doughnut);t.extend(i.pie,{cutoutPercentage:0});n.controllers.doughnut=n.controllers.pie=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,getRingIndex:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&++i;return i},update:function(n){var u=this,i=u.chart,h=i.chartArea,c=i.options,w=c.elements.arc,b=h.right-h.left-w.borderWidth,k=h.bottom-h.top-w.borderWidth,d=Math.min(b,k),v={x:0,y:0},y=u.getMeta(),p=c.cutoutPercentage,g=c.circumference,r;if(g<2*Math.PI){r=c.rotation%(2*Math.PI)+2*Math.PI*(r>=Math.PI?-1:r<-Math.PI?1:0);var f=r+g,e={x:Math.cos(r),y:Math.sin(r)},o={x:Math.cos(f),y:Math.sin(f)},tt=r<=0&&0<=f||r<=2*Math.PI&&2*Math.PI<=f,it=r<=.5*Math.PI&&.5*Math.PI<=f||r<=2.5*Math.PI&&2.5*Math.PI<=f,rt=r<=-Math.PI&&-Math.PI<=f||r<=Math.PI&&Math.PI<=f,ut=r<=.5*-Math.PI&&.5*-Math.PI<=f||r<=1.5*Math.PI&&1.5*Math.PI<=f,s=p/100,l={x:rt?-1:Math.min(e.x*(e.x<0?1:s),o.x*(o.x<0?1:s)),y:ut?-1:Math.min(e.y*(e.y<0?1:s),o.y*(o.y<0?1:s))},a={x:tt?1:Math.max(e.x*(e.x>0?1:s),o.x*(o.x>0?1:s)),y:it?1:Math.max(e.y*(e.y>0?1:s),o.y*(o.y>0?1:s))},nt={width:.5*(a.x-l.x),height:.5*(a.y-l.y)};d=Math.min(b/nt.width,k/nt.height);v={x:(a.x+l.x)*-.5,y:(a.y+l.y)*-.5}}i.borderWidth=u.getMaxBorderWidth(y.data);i.outerRadius=Math.max((d-i.borderWidth)/2,0);i.innerRadius=Math.max(p?i.outerRadius/100*p:0,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();i.offsetX=v.x*i.outerRadius;i.offsetY=v.y*i.outerRadius;y.total=u.calculateTotal();u.outerRadius=i.outerRadius-i.radiusLength*u.getRingIndex(u.index);u.innerRadius=Math.max(u.outerRadius-i.radiusLength,0);t.each(y.data,function(t,i){u.updateElement(t,i,n)})},updateElement:function(n,i,r){var u=this,f=u.chart,s=f.chartArea,e=f.options,h=e.animation,l=(s.left+s.right)/2,a=(s.top+s.bottom)/2,v=e.rotation,y=e.rotation,c=u.getDataset(),p=r&&h.animateRotate?0:n.hidden?0:u.calculateCircumference(c.data[i])*(e.circumference/(2*Math.PI)),w=r&&h.animateScale?0:u.innerRadius,b=r&&h.animateScale?0:u.outerRadius,k=t.getValueAtIndexOrDefault,o;t.extend(n,{_datasetIndex:u.index,_index:i,_model:{x:l+f.offsetX,y:a+f.offsetY,startAngle:v,endAngle:y,circumference:p,outerRadius:b,innerRadius:w,label:k(c.label,i,f.data.labels[i])}});o=n._model;this.removeHoverStyle(n);r&&h.animateRotate||(o.startAngle=0===i?e.rotation:u.getMeta().data[i-1]._model.endAngle,o.endAngle=o.startAngle+o.circumference);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,r=this.getDataset(),u=this.getMeta(),i=0;return t.each(u.data,function(t,u){n=r.data[u];isNaN(n)||t.hidden||(i+=Math.abs(n))}),i},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?2*Math.PI*(n/t):0},getMaxBorderWidth:function(n){for(var r,u,t=0,f=this.index,e=n.length,i=0;i<e;i++)r=n[i]._model?n[i]._model.borderWidth:0,u=n[i]._chart?n[i]._chart.config.data.datasets[f].hoverBorderWidth:0,t=r>t?r:t,t=u>t?u:t;return t}})}},{}],18:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.getValueOrDefault(n.showLine,i.showLines)}var t=n.helpers;n.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}};n.controllers.line=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,update:function(n){var e,c,r,o=this,l=o.getMeta(),s=l.dataset,h=l.data||[],a=o.chart.options,f=a.elements.line,y=o.getScaleForId(l.yAxisID),u=o.getDataset(),v=i(u,a);for(v&&(r=s.custom||{},void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),s._scale=y,s._datasetIndex=o.index,s._children=h,s._model={spanGaps:u.spanGaps?u.spanGaps:a.spanGaps,tension:r.tension?r.tension:t.getValueOrDefault(u.lineTension,f.tension),backgroundColor:r.backgroundColor?r.backgroundColor:u.backgroundColor||f.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:u.borderWidth||f.borderWidth,borderColor:r.borderColor?r.borderColor:u.borderColor||f.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:u.borderCapStyle||f.borderCapStyle,borderDash:r.borderDash?r.borderDash:u.borderDash||f.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:u.borderDashOffset||f.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:u.borderJoinStyle||f.borderJoinStyle,fill:r.fill?r.fill:void 0!==u.fill?u.fill:f.fill,steppedLine:r.steppedLine?r.steppedLine:t.getValueOrDefault(u.steppedLine,f.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:t.getValueOrDefault(u.cubicInterpolationMode,f.cubicInterpolationMode)},s.pivot()),e=0,c=h.length;e<c;++e)o.updateElement(h[e],e,n);for(v&&0!==s._model.tension&&o.updateBezierControlPoints(),e=0,c=h.length;e<c;++e)h[e].pivot()},getPointBackgroundColor:function(n,i){var r=this.chart.options.elements.point.backgroundColor,u=this.getDataset(),f=n.custom||{};return f.backgroundColor?r=f.backgroundColor:u.pointBackgroundColor?r=t.getValueAtIndexOrDefault(u.pointBackgroundColor,i,r):u.backgroundColor&&(r=u.backgroundColor),r},getPointBorderColor:function(n,i){var r=this.chart.options.elements.point.borderColor,u=this.getDataset(),f=n.custom||{};return f.borderColor?r=f.borderColor:u.pointBorderColor?r=t.getValueAtIndexOrDefault(u.pointBorderColor,i,r):u.borderColor&&(r=u.borderColor),r},getPointBorderWidth:function(n,i){var r=this.chart.options.elements.point.borderWidth,u=this.getDataset(),f=n.custom||{};return isNaN(f.borderWidth)?isNaN(u.pointBorderWidth)?isNaN(u.borderWidth)||(r=u.borderWidth):r=t.getValueAtIndexOrDefault(u.pointBorderWidth,i,r):r=f.borderWidth,r},updateElement:function(n,i,r){var s,h,f=this,e=f.getMeta(),o=n.custom||{},u=f.getDataset(),c=f.index,l=u.data[i],v=f.getScaleForId(e.yAxisID),y=f.getScaleForId(e.xAxisID),a=f.chart.options.elements.point,p=f.chart.data.labels||[],w=1===p.length||1===u.data.length||f.chart.isCombo;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius);void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius);s=y.getPixelForValue("object"==typeof l?l:NaN,i,c,w);h=r?v.getBasePixel():f.calculatePointY(l,i,c);n._xScale=y;n._yScale=v;n._datasetIndex=c;n._index=i;n._model={x:s,y:h,skip:o.skip||isNaN(s)||isNaN(h),radius:o.radius||t.getValueAtIndexOrDefault(u.pointRadius,i,a.radius),pointStyle:o.pointStyle||t.getValueAtIndexOrDefault(u.pointStyle,i,a.pointStyle),backgroundColor:f.getPointBackgroundColor(n,i),borderColor:f.getPointBorderColor(n,i),borderWidth:f.getPointBorderWidth(n,i),tension:e.dataset._model?e.dataset._model.tension:0,steppedLine:!!e.dataset._model&&e.dataset._model.steppedLine,hitRadius:o.hitRadius||t.getValueAtIndexOrDefault(u.pointHitRadius,i,a.hitRadius)}},calculatePointY:function(n,t,i){var u,c,o,s=this,h=s.chart,v=s.getMeta(),r=s.getScaleForId(v.yAxisID),l=0,a=0,f,e;if(r.options.stacked){for(u=0;u<i;u++)(c=h.data.datasets[u],o=h.getDatasetMeta(u),"line"===o.type&&o.yAxisID===r.id&&h.isDatasetVisible(u))&&(f=Number(r.getRightValue(c.data[t])),f<0?a+=f||0:l+=f||0);return e=Number(r.getRightValue(n)),e<0?r.getPixelForValue(a+e):r.getPixelForValue(l+e)}return r.getPixelForValue(n)},updateBezierControlPoints:function(){function e(n,t,i){return Math.max(Math.min(n,i),t)}var i,o,c,n,f,h=this,s=h.getMeta(),u=h.chart.chartArea,r=s.data||[];if(s.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),"monotone"===s.dataset._model.cubicInterpolationMode)t.splineCurveMonotone(r);else for(i=0,o=r.length;i<o;++i)c=r[i],n=c._model,f=t.splineCurve(t.previousItem(r,i)._model,n,t.nextItem(r,i)._model,s.dataset._model.tension),n.controlPointPreviousX=f.previous.x,n.controlPointPreviousY=f.previous.y,n.controlPointNextX=f.next.x,n.controlPointNextY=f.next.y;if(h.chart.options.elements.line.capBezierPoints)for(i=0,o=r.length;i<o;++i)n=r[i]._model,n.controlPointPreviousX=e(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=e(n.controlPointPreviousY,u.top,u.bottom),n.controlPointNextX=e(n.controlPointNextX,u.left,u.right),n.controlPointNextY=e(n.controlPointNextY,u.top,u.bottom)},draw:function(){var r=this,t=r.chart,f=r.getMeta(),e=f.data||[],o=t.chartArea,s=e.length,u=0;for(n.canvasHelpers.clipArea(t.ctx,o),i(r.getDataset(),t.options)&&f.dataset.draw(),n.canvasHelpers.unclipArea(t.ctx);u<s;++u)e[u].draw(o)},setHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,f=n.custom||{},i=n._model;i.radius=f.hoverRadius||t.getValueAtIndexOrDefault(r.pointHoverRadius,u,this.chart.options.elements.point.hoverRadius);i.backgroundColor=f.hoverBackgroundColor||t.getValueAtIndexOrDefault(r.pointHoverBackgroundColor,u,t.getHoverColor(i.backgroundColor));i.borderColor=f.hoverBorderColor||t.getValueAtIndexOrDefault(r.pointHoverBorderColor,u,t.getHoverColor(i.borderColor));i.borderWidth=f.hoverBorderWidth||t.getValueAtIndexOrDefault(r.pointHoverBorderWidth,u,i.borderWidth)},removeHoverStyle:function(n){var i=this,r=i.chart.data.datasets[n._datasetIndex],u=n._index,e=n.custom||{},f=n._model;void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius);f.radius=e.radius||t.getValueAtIndexOrDefault(r.pointRadius,u,i.chart.options.elements.point.radius);f.backgroundColor=i.getPointBackgroundColor(n,u);f.borderColor=i.getPointBorderColor(n,u);f.borderWidth=i.getPointBorderWidth(n,u)}})}},{}],19:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.polarArea={scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc;return{text:r,fillStyle:f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),strokeStyle:f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),lineWidth:f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth),hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var r,e=t.index,u=this.chart,i=0,f=(u.data.datasets||[]).length;i<f;++i)r=u.getDatasetMeta(i),r.data[e].hidden=!r.data[e].hidden;u.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}};n.controllers.polarArea=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,update:function(n){var r=this,i=r.chart,u=i.chartArea,e=r.getMeta(),f=i.options,o=f.elements.arc,s=Math.min(u.right-u.left,u.bottom-u.top);i.outerRadius=Math.max((s-o.borderWidth/2)/2,0);i.innerRadius=Math.max(f.cutoutPercentage?i.outerRadius/100*f.cutoutPercentage:1,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();r.outerRadius=i.outerRadius-i.radiusLength*r.index;r.innerRadius=r.outerRadius-i.radiusLength;e.count=r.countVisibleElements();t.each(e.data,function(t,i){r.updateElement(t,i,n)})},updateElement:function(n,i,r){for(var u=this,s=u.chart,e=u.getDataset(),l=s.options,h=l.animation,f=s.scale,w=t.getValueAtIndexOrDefault,a=s.data.labels,v=u.calculateCircumference(e.data[i]),b=f.xCenter,k=f.yCenter,y=0,d=u.getMeta(),o=0;o<i;++o)isNaN(e.data[o])||d.data[o].hidden||++y;var c=l.startAngle,g=n.hidden?0:f.getDistanceFromCenterForValue(e.data[i]),p=c+v*y,nt=p+(n.hidden?0:v),tt=h.animateScale?0:f.getDistanceFromCenterForValue(e.data[i]);t.extend(n,{_datasetIndex:u.index,_index:i,_scale:f,_model:{x:b,y:k,innerRadius:0,outerRadius:r?tt:g,startAngle:r&&h.animateRotate?c:p,endAngle:r&&h.animateRotate?c:nt,label:w(a,i,a[i])}});u.removeHoverStyle(n);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),r=this.getMeta(),n=0;return t.each(r.data,function(t,r){isNaN(i.data[r])||t.hidden||n++}),n},calculateCircumference:function(n){var t=this.getMeta().count;return t>0&&!isNaN(n)?2*Math.PI/t:0}})}},{}],20:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}};n.controllers.radar=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,linkScales:t.noop,update:function(n){var f=this,e=f.getMeta(),s=e.dataset,o=e.data,i=s.custom||{},r=f.getDataset(),u=f.chart.options.elements.line,h=f.chart.scale;void 0!==r.tension&&void 0===r.lineTension&&(r.lineTension=r.tension);t.extend(e.dataset,{_datasetIndex:f.index,_scale:h,_children:o,_loop:!0,_model:{tension:i.tension?i.tension:t.getValueOrDefault(r.lineTension,u.tension),backgroundColor:i.backgroundColor?i.backgroundColor:r.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:r.borderWidth||u.borderWidth,borderColor:i.borderColor?i.borderColor:r.borderColor||u.borderColor,fill:i.fill?i.fill:void 0!==r.fill?r.fill:u.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:r.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash?i.borderDash:r.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:r.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:r.borderJoinStyle||u.borderJoinStyle}});e.dataset.pivot();t.each(o,function(t,i){f.updateElement(t,i,n)},f);f.updateBezierControlPoints()},updateElement:function(n,i,r){var o=this,u=n.custom||{},f=o.getDataset(),s=o.chart.scale,e=o.chart.options.elements.point,h=s.getPointPositionForValue(i,f.data[i]);void 0!==f.radius&&void 0===f.pointRadius&&(f.pointRadius=f.radius);void 0!==f.hitRadius&&void 0===f.pointHitRadius&&(f.pointHitRadius=f.hitRadius);t.extend(n,{_datasetIndex:o.index,_index:i,_scale:s,_model:{x:r?s.xCenter:h.x,y:r?s.yCenter:h.y,tension:u.tension?u.tension:t.getValueOrDefault(f.lineTension,o.chart.options.elements.line.tension),radius:u.radius?u.radius:t.getValueAtIndexOrDefault(f.pointRadius,i,e.radius),backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(f.pointBackgroundColor,i,e.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(f.pointBorderColor,i,e.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(f.pointBorderWidth,i,e.borderWidth),pointStyle:u.pointStyle?u.pointStyle:t.getValueAtIndexOrDefault(f.pointStyle,i,e.pointStyle),hitRadius:u.hitRadius?u.hitRadius:t.getValueAtIndexOrDefault(f.pointHitRadius,i,e.hitRadius)}});n._model.skip=u.skip?u.skip:isNaN(n._model.x)||isNaN(n._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,i=this.getMeta();t.each(i.data,function(r,u){var f=r._model,e=t.splineCurve(t.previousItem(i.data,u,!0)._model,f,t.nextItem(i.data,u,!0)._model,f.tension);f.controlPointPreviousX=Math.max(Math.min(e.previous.x,n.right),n.left);f.controlPointPreviousY=Math.max(Math.min(e.previous.y,n.bottom),n.top);f.controlPointNextX=Math.max(Math.min(e.next.x,n.right),n.left);f.controlPointNextY=Math.max(Math.min(e.next.y,n.bottom),n.top);r.pivot()})},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},f=n._index,r=n._model;r.radius=i.hoverRadius?i.hoverRadius:t.getValueAtIndexOrDefault(u.pointHoverRadius,f,this.chart.options.elements.point.hoverRadius);r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.pointHoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.pointHoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.pointHoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},u=n._index,f=n._model,e=this.chart.options.elements.point;f.radius=i.radius?i.radius:t.getValueAtIndexOrDefault(r.pointRadius,u,e.radius);f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.pointBackgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.pointBorderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.pointBorderWidth,u,e.borderWidth)}})}},{}],21:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop};n.Animation=n.Element.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});n.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(n,t,i,r){var u,e,f=this.animations;for(t.chart=n,r||(n.animating=!0),u=0,e=f.length;u<e;++u)if(f[u].chart===n)return void(f[u]=t);f.push(t);1===f.length&&this.requestAnimationFrame()},cancelAnimation:function(n){var i=t.findIndex(this.animations,function(t){return t.chart===n});i!==-1&&(this.animations.splice(i,1),n.animating=!1)},requestAnimationFrame:function(){var n=this;null===n.request&&(n.request=t.requestAnimFrame.call(window,function(){n.request=null;n.startDigest()}))},startDigest:function(){var n=this,r=Date.now(),t=0,i;n.dropFrames>1&&(t=Math.floor(n.dropFrames),n.dropFrames=n.dropFrames%1);n.advance(1+t);i=Date.now();n.dropFrames+=(i-r)/n.frameDuration;n.animations.length>0&&n.requestAnimationFrame()},advance:function(n){for(var i,r,f=this.animations,u=0;u<f.length;)i=f[u],r=i.chart,i.currentStep=(i.currentStep||0)+n,i.currentStep=Math.min(i.currentStep,i.numSteps),t.callback(i.render,[r,i],r),t.callback(i.onAnimationProgress,[i],r),i.currentStep>=i.numSteps?(t.callback(i.onAnimationComplete,[i],r),r.animating=!1,f.splice(u,1)):++u}};Object.defineProperty(n.Animation.prototype,"animationObject",{get:function(){return this}});Object.defineProperty(n.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(n){this.chart=n}})}},{}],22:[function(n,t){"use strict";t.exports=function(n){var t=n.canvasHelpers={};t.drawPoint=function(t,i,r,u,f){var l,h,o,s,c,e;if("object"==typeof i&&("[object HTMLImageElement]"===(l=i.toString())||"[object HTMLCanvasElement]"===l))return void t.drawImage(i,u-i.width/2,f-i.height/2,i.width,i.height);if(!(isNaN(r)||r<=0)){switch(i){default:t.beginPath();t.arc(u,f,r,0,2*Math.PI);t.closePath();t.fill();break;case"triangle":t.beginPath();h=3*r/Math.sqrt(3);c=h*Math.sqrt(3)/2;t.moveTo(u-h/2,f+c/3);t.lineTo(u+h/2,f+c/3);t.lineTo(u,f-2*c/3);t.closePath();t.fill();break;case"rect":e=1/Math.SQRT2*r;t.beginPath();t.fillRect(u-e,f-e,2*e,2*e);t.strokeRect(u-e,f-e,2*e,2*e);break;case"rectRounded":var a=r/Math.SQRT2,y=u-a,p=f-a,v=Math.SQRT2*r;n.helpers.drawRoundedRectangle(t,y,p,v,v,r/2);t.fill();break;case"rectRot":e=1/Math.SQRT2*r;t.beginPath();t.moveTo(u-e,f);t.lineTo(u,f+e);t.lineTo(u+e,f);t.lineTo(u,f-e);t.closePath();t.fill();break;case"cross":t.beginPath();t.moveTo(u,f+r);t.lineTo(u,f-r);t.moveTo(u-r,f);t.lineTo(u+r,f);t.closePath();break;case"crossRot":t.beginPath();o=Math.cos(Math.PI/4)*r;s=Math.sin(Math.PI/4)*r;t.moveTo(u-o,f-s);t.lineTo(u+o,f+s);t.moveTo(u-o,f+s);t.lineTo(u+o,f-s);t.closePath();break;case"star":t.beginPath();t.moveTo(u,f+r);t.lineTo(u,f-r);t.moveTo(u-r,f);t.lineTo(u+r,f);o=Math.cos(Math.PI/4)*r;s=Math.sin(Math.PI/4)*r;t.moveTo(u-o,f-s);t.lineTo(u+o,f+s);t.moveTo(u-o,f+s);t.lineTo(u+o,f-s);t.closePath();break;case"line":t.beginPath();t.moveTo(u-r,f);t.lineTo(u+r,f);t.closePath();break;case"dash":t.beginPath();t.moveTo(u,f);t.lineTo(u+r,f);t.closePath()}t.stroke()}};t.clipArea=function(n,t){n.save();n.beginPath();n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top);n.clip()};t.unclipArea=function(n){n.restore()};t.lineTo=function(n,t,i,r){return i.steppedLine?("after"===i.steppedLine?n.lineTo(t.x,i.y):n.lineTo(i.x,t.y),void n.lineTo(i.x,i.y)):i.tension?void n.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?i.controlPointNextX:i.controlPointPreviousX,r?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):void n.lineTo(i.x,i.y)};n.helpers.canvas=t}},{}],23:[function(n,t){"use strict";t.exports=function(n){function f(i){i=i||{};var r=i.data=i.data||{};return r.datasets=r.datasets||[],r.labels=r.labels||[],i.options=t.configMerge(n.defaults.global,n.defaults[i.type],i.options||{}),i}function e(n){var t=n.options;t.scale?n.scale.options=t.scale:t.scales&&t.scales.xAxes.concat(t.scales.yAxes).forEach(function(t){n.scales[t.id].options=t});n.tooltip._options=t.tooltips}function u(n){return"top"===n||"bottom"===n}var t=n.helpers,i=n.plugins,r=n.platform;n.types={};n.instances={};n.controllers={};t.extend(n.prototype,{construct:function(i,u){var e=this;u=f(u);var s=r.acquireContext(i,u),o=s&&s.canvas,h=o&&o.height,c=o&&o.width;if(e.id=t.uid(),e.ctx=s,e.canvas=o,e.config=u,e.width=c,e.height=h,e.aspectRatio=h?c/h:null,e.options=u.options,e._bufferedRender=!1,e.chart=e,e.controller=e,n.instances[e.id]=e,Object.defineProperty(e,"data",{get:function(){return e.config.data},set:function(n){e.config.data=n}}),!s||!o)return void console.error("Failed to create chart: can't acquire context from the given item");e.initialize();e.update()},initialize:function(){var n=this;return i.notify(n,"beforeInit"),t.retinaScale(n),n.bindEvents(),n.options.responsive&&n.resize(!0),n.ensureScalesHaveIDs(),n.buildScales(),n.initToolTip(),i.notify(n,"afterInit"),n},clear:function(){return t.clear(this),this},stop:function(){return n.animationService.cancelAnimation(this),this},resize:function(n){var r=this,h=r.options,u=r.canvas,s=h.maintainAspectRatio&&r.aspectRatio||null,f=Math.floor(t.getMaximumWidth(u)),e=Math.floor(s?f/s:t.getMaximumHeight(u)),o;r.width===f&&r.height===e||(u.width=r.width=f,u.height=r.height=e,u.style.width=f+"px",u.style.height=e+"px",t.retinaScale(r),n)||(o={width:f,height:e},i.notify(r,"resize",[o]),r.options.onResize&&r.options.onResize(r,o),r.stop(),r.update(r.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var i=this.options,r=i.scales||{},n=i.scale;t.each(r.xAxes,function(n,t){n.id=n.id||"x-axis-"+t});t.each(r.yAxes,function(n,t){n.id=n.id||"y-axis-"+t});n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,r=i.options,e=i.scales={},f=[];r.scales&&(f=f.concat((r.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category",dposition:"bottom"}}),(r.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear",dposition:"left"}})));r.scale&&f.push({options:r.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"});t.each(f,function(r){var f=r.options,h=t.getValueOrDefault(f.type,r.dtype),s=n.scaleService.getScaleConstructor(h),o;s&&(u(f.position)!==u(r.dposition)&&(f.position=r.dposition),o=new s({id:f.id,options:f,ctx:i.ctx,chart:i}),e[o.id]=o,r.isDefault&&(i.scale=o))});n.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,r=[],f=[],u;if(t.each(i.data.datasets,function(t,u){var e=i.getDatasetMeta(u),o;if(e.type||(e.type=t.type||i.config.type),r.push(e.type),e.controller)e.controller.updateIndex(u);else{if(o=n.controllers[e.type],void 0===o)throw new Error('"'+e.type+'" is not a chart type.');e.controller=new o(i,u);f.push(e.controller)}},i),r.length>1)for(u=1;u<r.length;u++)if(r[u]!==r[u-1]){i.isCombo=!0;break}return f},resetElements:function(){var n=this;t.each(n.data.datasets,function(t,i){n.getDatasetMeta(i).controller.reset()},n)},reset:function(){this.resetElements();this.tooltip.initialize()},update:function(n,r){var u=this,f;(e(u),i.notify(u,"beforeUpdate")!==!1)&&(u.tooltip._data=u.data,f=u.buildOrUpdateControllers(),t.each(u.data.datasets,function(n,t){u.getDatasetMeta(t).controller.buildOrUpdateElements()},u),u.updateLayout(),t.each(f,function(n){n.reset()}),u.updateDatasets(),i.notify(u,"afterUpdate"),u._bufferedRender?u._bufferedRequest={lazy:r,duration:n}:u.render(n,r))},updateLayout:function(){var t=this;i.notify(t,"beforeLayout")!==!1&&(n.layoutService.update(this,this.width,this.height),i.notify(t,"afterScaleUpdate"),i.notify(t,"afterLayout"))},updateDatasets:function(){var n=this,t,r;if(i.notify(n,"beforeDatasetsUpdate")!==!1){for(t=0,r=n.data.datasets.length;t<r;++t)n.updateDataset(t);i.notify(n,"afterDatasetsUpdate")}},updateDataset:function(n){var t=this,r=t.getDatasetMeta(n),u={meta:r,index:n};i.notify(t,"beforeDatasetUpdate",[u])!==!1&&(r.controller.update(),i.notify(t,"afterDatasetUpdate",[u]))},render:function(r,u){var f=this,e,o,s;if(i.notify(f,"beforeRender")!==!1)return e=f.options.animation,o=function(n){i.notify(f,"afterRender");t.callback(e&&e.onComplete,[n],f)},e&&(void 0!==r&&0!==r||void 0===r&&0!==e.duration)?(s=new n.Animation({numSteps:(r||e.duration)/16.66,easing:e.easing,render:function(n,i){var f=t.easingEffects[i.easing],r=i.currentStep,u=r/i.numSteps;n.draw(f(u),u,r)},onAnimationProgress:e.onProgress,onAnimationComplete:o}),n.animationService.addAnimation(f,s,r,u)):(f.draw(),o(new n.Animation({numSteps:0,chart:f}))),f},draw:function(n){var r=this;r.clear();void 0!==n&&null!==n||(n=1);r.transition(n);i.notify(r,"beforeDraw",[n])!==!1&&(t.each(r.boxes,function(n){n.draw(r.chartArea)},r),r.scale&&r.scale.draw(),r.drawDatasets(n),r.tooltip.draw(),i.notify(r,"afterDraw",[n]))},transition:function(n){for(var t=this,i=0,r=(t.data.datasets||[]).length;i<r;++i)t.isDatasetVisible(i)&&t.getDatasetMeta(i).controller.transition(n);t.tooltip.transition(n)},drawDatasets:function(n){var t=this,r;if(i.notify(t,"beforeDatasetsDraw",[n])!==!1){for(r=(t.data.datasets||[]).length-1;r>=0;--r)t.isDatasetVisible(r)&&t.drawDataset(r,n);i.notify(t,"afterDatasetsDraw",[n])}},drawDataset:function(n,t){var r=this,u=r.getDatasetMeta(n),f={meta:u,index:n,easingValue:t};i.notify(r,"beforeDatasetDraw",[f])!==!1&&(u.controller.draw(t),i.notify(r,"afterDatasetDraw",[f]))},getElementAtEvent:function(t){return n.Interaction.modes.single(this,t)},getElementsAtEvent:function(t){return n.Interaction.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return n.Interaction.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,i,r){var u=n.Interaction.modes[i];return"function"==typeof u?u(this,t,r):[]},getDatasetAtEvent:function(t){return n.Interaction.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(n){var r=this,t=r.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[r.id],i||(i=t._meta[r.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,n=0,i=this.data.datasets.length;n<i;++n)this.isDatasetVisible(n)&&t++;return t},isDatasetVisible:function(n){var t=this.getDatasetMeta(n);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var f,e,o,u=this,s=u.canvas;for(u.stop(),e=0,o=u.data.datasets.length;e<o;++e)f=u.getDatasetMeta(e),f.controller&&(f.controller.destroy(),f.controller=null);s&&(u.unbindEvents(),t.clear(u),r.releaseContext(u.ctx),u.canvas=null,u.ctx=null);i.notify(u,"destroy");delete n.instances[u.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new n.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t);t.tooltip.initialize()},bindEvents:function(){var n=this,u=n._listeners={},i=function(){n.eventHandler.apply(n,arguments)};t.each(n.options.events,function(t){r.addEventListener(n,t,i);u[t]=i});n.options.responsive&&(i=function(){n.resize()},r.addEventListener(n,"resize",i),u.resize=i)},unbindEvents:function(){var n=this,i=n._listeners;i&&(delete n._listeners,t.each(i,function(t,i){r.removeEventListener(n,i,t)}))},updateHoverStyle:function(n,t,i){for(var u,e=i?"setHoverStyle":"removeHoverStyle",r=0,f=n.length;r<f;++r)(u=n[r])&&this.getDatasetMeta(u._datasetIndex).controller[e](u)},eventHandler:function(n){var t=this,f=t.tooltip,u,r;if(i.notify(t,"beforeEvent",[n])!==!1)return t._bufferedRender=!0,t._bufferedRequest=null,u=t.handleEvent(n),u|=f&&f.handleEvent(n),i.notify(t,"afterEvent",[n]),r=t._bufferedRequest,r?t.render(r.duration,r.lazy):u&&!t.animating&&(t.stop(),t.render(t.options.hover.animationDuration,!0)),t._bufferedRender=!1,t._bufferedRequest=null,t},handleEvent:function(n){var i=this,u=i.options||{},r=u.hover,f=!1;return i.lastActive=i.lastActive||[],i.active="mouseout"===n.type?[]:i.getElementsAtEventForMode(n,r.mode,r),r.onHover&&r.onHover.call(i,n.native,i.active),"mouseup"!==n.type&&"click"!==n.type||u.onClick&&u.onClick.call(i,n.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,r.mode,!1),i.active.length&&r.mode&&i.updateHoverStyle(i.active,r.mode,!0),f=!t.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,f}});n.Controller=n}},{}],24:[function(n,t){"use strict";t.exports=function(n){function u(n,i){if(n._chartjs)return void n._chartjs.listeners.push(i);Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}});r.forEach(function(i){var r="onData"+i.charAt(0).toUpperCase()+i.slice(1),u=n[i];Object.defineProperty(n,i,{configurable:!0,enumerable:!1,value:function(){var i=Array.prototype.slice.call(arguments),f=u.apply(this,i);return t.each(n._chartjs.listeners,function(n){"function"==typeof n[r]&&n[r].apply(n,i)}),f}})})}function i(n,t){var f=n._chartjs,i,u;f&&(i=f.listeners,u=i.indexOf(t),u!==-1&&i.splice(u,1),i.length>0||(r.forEach(function(t){delete n[t]}),delete n._chartjs))}var t=n.helpers,r=["push","pop","shift","splice","unshift"];n.DatasetController=function(n,t){this.initialize(n,t)};t.extend(n.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(n,t){var i=this;i.chart=n;i.index=t;i.linkScales();i.addElements()},updateIndex:function(n){this.index=n},linkScales:function(){var n=this,t=n.getMeta(),i=n.getDataset();null===t.xAxisID&&(t.xAxisID=i.xAxisID||n.chart.options.scales.xAxes[0].id);null===t.yAxisID&&(t.yAxisID=i.yAxisID||n.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(n){return this.chart.scales[n]},reset:function(){this.update(!0)},destroy:function(){this._data&&i(this._data,this)},createMetaDataset:function(){var n=this,t=n.datasetElementType;return t&&new t({_chart:n.chart,_datasetIndex:n.index})},createMetaData:function(n){var t=this,i=t.dataElementType;return i&&new i({_chart:t.chart,_datasetIndex:t.index,_index:n})},addElements:function(){for(var t=this,i=t.getMeta(),f=t.getDataset().data||[],u=i.data,n=0,r=f.length;n<r;++n)u[n]=u[n]||t.createMetaData(n);i.dataset=i.dataset||t.createMetaDataset()},addElementAndReset:function(n){var t=this.createMetaData(n);this.getMeta().data.splice(n,0,t);this.updateElement(t,n,!0)},buildOrUpdateElements:function(){var n=this,r=n.getDataset(),t=r.data||(r.data=[]);n._data!==t&&(n._data&&i(n._data,n),u(t,n),n._data=t);n.resyncElements()},update:t.noop,transition:function(n){for(var t=this.getMeta(),r=t.data||[],u=r.length,i=0;i<u;++i)r[i].transition(n);t.dataset&&t.dataset.transition(n)},draw:function(){var n=this.getMeta(),i=n.data||[],r=i.length,t=0;for(n.dataset&&n.dataset.draw();t<r;++t)i[t].draw()},removeHoverStyle:function(n,i){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,r=n.custom||{},e=t.getValueAtIndexOrDefault,o=n._model;o.backgroundColor=r.backgroundColor?r.backgroundColor:e(u.backgroundColor,f,i.backgroundColor);o.borderColor=r.borderColor?r.borderColor:e(u.borderColor,f,i.borderColor);o.borderWidth=r.borderWidth?r.borderWidth:e(u.borderWidth,f,i.borderWidth)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},e=t.getValueAtIndexOrDefault,o=t.getHoverColor,r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e(u.hoverBackgroundColor,f,o(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:e(u.hoverBorderColor,f,o(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e(u.hoverBorderWidth,f,r.borderWidth)},resyncElements:function(){var i=this,r=i.getMeta(),u=i.getDataset().data,n=r.data.length,t=u.length;t<n?r.data.splice(t,n-t):t>n&&i.insertElements(n,t-n)},insertElements:function(n,t){for(var i=0;i<t;++i)this.addElementAndReset(n+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(n,t){this.getMeta().data.splice(n,t);this.insertElements(n,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}});n.DatasetController.extend=t.inherits}},{}],25:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function r(n,t,r,u){for(var f,v,o,e,h,c,l,y=Object.keys(r),s=0,a=y.length;s<a;++s)if(f=y[s],e=r[f],t.hasOwnProperty(f)||(t[f]=e),(v=t[f])!==e&&"_"!==f[0]){if(n.hasOwnProperty(f)||(n[f]=v),o=n[f],(h=typeof e)==typeof o)if("string"===h){if(c=i(o),c.valid&&(l=i(e),l.valid)){t[f]=l.mix(c,u).rgbString();continue}}else if("number"===h&&isFinite(o)&&isFinite(e)){t[f]=o+(e-o)*u;continue}t[f]=e}}var t=n.helpers;n.elements={};n.Element=function(n){t.extend(this,n);this.initialize.apply(this,arguments)};t.extend(n.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var n=this;return n._view||(n._view=t.clone(n._model)),n._start={},n},transition:function(n){var t=this,i=t._model,u=t._start,f=t._view;return i&&1!==n?(f||(f=t._view={}),u||(u=t._start={}),r(u,f,i,n),t):(t._view=i,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}});n.Element.extend=t.inherits}},{3:3}],26:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function u(n,t,i){var r;return"string"==typeof n?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[i])):r=n,r}function f(n){return void 0!==n&&null!==n&&"none"!==n}function e(n,t,i){var r=document.defaultView,e=n.parentNode,o=r.getComputedStyle(n)[t],s=r.getComputedStyle(e)[t],h=f(o),c=f(s),l=Number.POSITIVE_INFINITY;return h||c?Math.min(h?u(o,n,i):l,c?u(s,e,i):l):"none"}var t=n.helpers={},r;t.each=function(n,i,r,u){var f,e,o;if(t.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)i.call(r,n[f],f);else for(f=0;f<e;f++)i.call(r,n[f],f);else if("object"==typeof n)for(o=Object.keys(n),e=o.length,f=0;f<e;f++)i.call(r,n[o[f]],o[f])};t.clone=function(n){var i={};return t.each(n,function(n,r){i[r]=t.isArray(n)?n.slice(0):"object"==typeof n&&null!==n?t.clone(n):n}),i};t.extend=function(n){for(var r=function(t,i){n[i]=t},i=1,u=arguments.length;i<u;i++)t.each(arguments[i],r);return n};t.configMerge=function(i){var r=t.clone(i);return t.each(Array.prototype.slice.call(arguments,1),function(i){t.each(i,function(i,u){var e=r.hasOwnProperty(u),f=e?r[u]:{};r[u]="scales"===u?t.scaleMerge(f,i):"scale"===u?t.configMerge(f,n.scaleService.getScaleDefaults(i.type),i):!e||"object"!=typeof f||t.isArray(f)||null===f||"object"!=typeof i||t.isArray(i)?i:t.configMerge(f,i)})}),r};t.scaleMerge=function(i,r){var u=t.clone(i);return t.each(r,function(i,r){"xAxes"===r||"yAxes"===r?u.hasOwnProperty(r)?t.each(i,function(i,f){var o=t.getValueOrDefault(i.type,"xAxes"===r?"category":"linear"),e=n.scaleService.getScaleDefaults(o);f>=u[r].length||!u[r][f].type?u[r].push(t.configMerge(e,i)):u[r][f]=i.type&&i.type!==u[r][f].type?t.configMerge(u[r][f],e,i):t.configMerge(u[r][f],i)}):(u[r]=[],t.each(i,function(i){var f=t.getValueOrDefault(i.type,"xAxes"===r?"category":"linear");u[r].push(t.configMerge(n.scaleService.getScaleDefaults(f),i))})):u[r]=u.hasOwnProperty(r)&&"object"==typeof u[r]&&null!==u[r]&&"object"==typeof i?t.configMerge(u[r],i):i}),u};t.getValueAtIndexOrDefault=function(n,i,r){return void 0===n||null===n?r:t.isArray(n)?i<n.length?n[i]:r:n};t.getValueOrDefault=function(n,t){return void 0===n?t:n};t.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i]===t)return i;return-1};t.where=function(n,i){if(t.isArray(n)&&Array.prototype.filter)return n.filter(i);var r=[];return t.each(n,function(n){i(n)&&r.push(n)}),r};t.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=void 0===i?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1};t.findNextWhere=function(n,t,i){var r,u;for(void 0!==i&&null!==i||(i=-1),r=i+1;r<n.length;r++)if(u=n[r],t(u))return u};t.findPreviousWhere=function(n,t,i){var r,u;for(void 0!==i&&null!==i||(i=n.length),r=i-1;r>=0;r--)if(u=n[r],t(u))return u};t.inherits=function(n){var r=this,i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return r.apply(this,arguments)},u=function(){this.constructor=i};return u.prototype=r.prototype,i.prototype=new u,i.extend=t.inherits,n&&t.extend(i.prototype,n),i.__super__=r.prototype,i};t.noop=function(){};t.uid=function(){var n=0;return function(){return n++}}();t.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};t.almostEquals=function(n,t,i){return Math.abs(n-t)<i};t.almostWhole=function(n,t){var i=Math.round(n);return i-t<n&&i+t>n};t.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)};t.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)};t.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return n=+n,0===n||isNaN(n)?n:n>0?1:-1};t.log10=Math.log10?function(n){return Math.log10(n)}:function(n){return Math.log(n)/Math.LN10};t.toRadians=function(n){return n*(Math.PI/180)};t.toDegrees=function(n){return n*(180/Math.PI)};t.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=Math.atan2(r,i);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:f}};t.distanceBetweenPoints=function(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))};t.aliasPixel=function(n){return n%2==0?0:.5};t.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,h=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),c=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),o=h/(h+c),s=c/(h+c),l,a;return o=isNaN(o)?0:o,s=isNaN(s)?0:s,l=r*o,a=r*s,{previous:{x:u.x-l*(e.x-f.x),y:u.y-l*(e.y-f.y)},next:{x:u.x+a*(e.x-f.x),y:u.y+a*(e.y-f.y)}}};t.EPSILON=Number.EPSILON||1e-14;t.splineCurveMonotone=function(n){for(var f,i,u,e=(n||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,h,c,l,a,v,o,r=0;r<s;++r)(i=e[r],i.model.skip)||((f=r>0?e[r-1]:null,(u=r<s-1?e[r+1]:null)&&!u.model.skip)&&(h=u.model.x-i.model.x,i.deltaK=0!==h?(u.model.y-i.model.y)/h:0),i.mK=!f||f.model.skip?i.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(i.deltaK)?0:(f.deltaK+i.deltaK)/2);for(r=0;r<s-1;++r)i=e[r],u=e[r+1],i.model.skip||u.model.skip||(t.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=u.mK=0:(c=i.mK/i.deltaK,l=u.mK/i.deltaK,(v=Math.pow(c,2)+Math.pow(l,2))<=9||(a=3/Math.sqrt(v),i.mK=c*a*i.deltaK,u.mK=l*a*i.deltaK)));for(r=0;r<s;++r)i=e[r],i.model.skip||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(i.model.x-f.model.x)/3,i.model.controlPointPreviousX=i.model.x-o,i.model.controlPointPreviousY=i.model.y-o*i.mK),u&&!u.model.skip&&(o=(u.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+o,i.model.controlPointNextY=i.model.y+o*i.mK))};t.nextItem=function(n,t,i){return i?t>=n.length-1?n[0]:n[t+1]:t>=n.length-1?n[n.length-1]:n[t+1]};t.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]};t.niceNum=function(n,i){var u=Math.floor(t.log10(n)),r=n/Math.pow(10,u);return(i?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,u)};r=t.easingEffects={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-1*n*(n-2)},easeInOutQuad:function(n){return(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1*((n=n/1-1)*n*n+1)},easeInOutCubic:function(n){return(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-1*((n=n/1-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},easeInQuint:function(n){return 1*(n/=1)*n*n*n*n},easeOutQuint:function(n){return 1*((n=n/1-1)*n*n*n*n+1)},easeInOutQuint:function(n){return(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-1*Math.cos(n/1*(Math.PI/2))+1},easeOutSine:function(n){return 1*Math.sin(n/1*(Math.PI/2))},easeInOutSine:function(n){return-.5*(Math.cos(Math.PI*n/1)-1)},easeInExpo:function(n){return 0===n?1:1*Math.pow(2,10*(n/1-1))},easeOutExpo:function(n){return 1===n?1:1*(1-Math.pow(2,-10*n))},easeInOutExpo:function(n){return 0===n?0:1===n?1:(n/=.5)<1?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*--n))},easeInCirc:function(n){return n>=1?n:-1*(Math.sqrt(1-(n/=1)*n)-1)},easeOutCirc:function(n){return 1*Math.sqrt(1-(n=n/1-1)*n)},easeInOutCirc:function(n){return(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1==(n/=1)?1:(t||(t=.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(n-=1))*Math.sin((1*n-r)*2*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1==(n/=1)?1:(t||(t=.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((1*n-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:2==(n/=.5)?1:(t||(t=.3*1.5*1),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1?-.5*i*Math.pow(2,10*(n-=1))*Math.sin((1*n-r)*2*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin((1*n-r)*2*Math.PI/t)*.5+1)},easeInBack:function(n){var t=1.70158;return 1*(n/=1)*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return 1*((n=n/1-1)*n*((t+1)*n+t)+1)},easeInOutBack:function(n){var t=1.70158;return(n/=.5)<1?n*n*((1+(t*=1.525))*n-t)*.5:.5*((n-=2)*n*((1+(t*=1.525))*n+t)+2)},easeInBounce:function(n){return 1-r.easeOutBounce(1-n)},easeOutBounce:function(n){return(n/=1)<1/2.75?7.5625*n*n*1:n<2/2.75?1*(7.5625*(n-=1.5/2.75)*n+.75):n<2.5/2.75?1*(7.5625*(n-=2.25/2.75)*n+.9375):1*(7.5625*(n-=2.625/2.75)*n+.984375)},easeInOutBounce:function(n){return n<.5?.5*r.easeInBounce(2*n):.5*r.easeOutBounce(2*n-1)+.5}};t.requestAnimFrame=function(){return"undefined"==typeof window?function(n){n()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}();t.getRelativePosition=function(n,i){var f,e,s=n.originalEvent||n,r=n.currentTarget||n.srcElement,u=r.getBoundingClientRect(),o=s.touches;o&&o.length>0?(f=o[0].clientX,e=o[0].clientY):(f=s.clientX,e=s.clientY);var h=parseFloat(t.getStyle(r,"padding-left")),c=parseFloat(t.getStyle(r,"padding-top")),l=parseFloat(t.getStyle(r,"padding-right")),a=parseFloat(t.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return f=Math.round((f-u.left-h)/v*r.width/i.currentDevicePixelRatio),e=Math.round((e-u.top-c)/y*r.height/i.currentDevicePixelRatio),{x:f,y:e}};t.addEvent=function(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};t.removeEvent=function(n,i,r){n.removeEventListener?n.removeEventListener(i,r,!1):n.detachEvent?n.detachEvent("on"+i,r):n["on"+i]=t.noop};t.getConstraintWidth=function(n){return e(n,"max-width","clientWidth")};t.getConstraintHeight=function(n){return e(n,"max-height","clientHeight")};t.getMaximumWidth=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-left"),10),e=parseInt(t.getStyle(i,"padding-right"),10),r=i.clientWidth-f-e,u=t.getConstraintWidth(n);return isNaN(u)?r:Math.min(r,u)};t.getMaximumHeight=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-top"),10),e=parseInt(t.getStyle(i,"padding-bottom"),10),r=i.clientHeight-f-e,u=t.getConstraintHeight(n);return isNaN(u)?r:Math.min(r,u)};t.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)};t.retinaScale=function(n){var t=n.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==t){var i=n.canvas,r=n.height,u=n.width;i.height=r*t;i.width=u*t;n.ctx.scale(t,t);i.style.height=r+"px";i.style.width=u+"px"}};t.clear=function(n){n.ctx.clearRect(0,0,n.width,n.height)};t.fontString=function(n,t,i){return t+" "+n+"px "+i};t.longestText=function(n,i,r,u){var o,f,e,s,h;if(u=u||{},o=u.data=u.data||{},f=u.garbageCollect=u.garbageCollect||[],u.font!==i&&(o=u.data={},f=u.garbageCollect=[],u.font=i),n.font=i,e=0,t.each(r,function(i){void 0!==i&&null!==i&&t.isArray(i)!==!0?e=t.measureText(n,o,f,e,i):t.isArray(i)&&t.each(i,function(i){void 0===i||null===i||t.isArray(i)||(e=t.measureText(n,o,f,e,i))})}),s=f.length/2,s>r.length){for(h=0;h<s;h++)delete o[f[h]];f.splice(0,s)}return e};t.measureText=function(n,t,i,r,u){var f=t[u];return f||(f=t[u]=n.measureText(u).width,i.push(u)),f>r&&(r=f),r};t.numberOfLabelLines=function(n){var i=1;return t.each(n,function(n){t.isArray(n)&&n.length>i&&(i=n.length)}),i};t.drawRoundedRectangle=function(n,t,i,r,u,f){n.beginPath();n.moveTo(t+f,i);n.lineTo(t+r-f,i);n.quadraticCurveTo(t+r,i,t+r,i+f);n.lineTo(t+r,i+u-f);n.quadraticCurveTo(t+r,i+u,t+r-f,i+u);n.lineTo(t+f,i+u);n.quadraticCurveTo(t,i+u,t,i+u-f);n.lineTo(t,i+f);n.quadraticCurveTo(t,i,t+f,i);n.closePath()};t.color=i?function(t){return t instanceof CanvasGradient&&(t=n.defaults.global.defaultColor),i(t)}:function(n){return console.error("Color.js not found!"),n};t.isArray=Array.isArray?function(n){return Array.isArray(n)}:function(n){return"[object Array]"===Object.prototype.toString.call(n)};t.arrayEquals=function(n,i){var r,e,u,f;if(!n||!i||n.length!==i.length)return!1;for(r=0,e=n.length;r<e;++r)if(u=n[r],f=i[r],u instanceof Array&&f instanceof Array){if(!t.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0};t.callback=function(n,t,i){n&&"function"==typeof n.call&&n.apply(i,t)};t.getHoverColor=function(n){return n instanceof CanvasPattern?n:t.color(n).saturate(.5).darken(.1).rgbString()};t.callCallback=t.callback}},{3:3}],27:[function(n,t){"use strict";t.exports=function(n){function t(n,t){return n.native?{x:n.x,y:n.y}:e.getRelativePosition(n,t)}function i(n,t){for(var u,r,o,s=n.data.datasets,f,i=0,e=s.length;i<e;++i)if(n.isDatasetVisible(i))for(u=n.getDatasetMeta(i),r=0,o=u.data.length;r<o;++r)f=u.data[r],f._view.skip||t(f)}function r(n,t){var r=[];return i(n,function(n){n.inRange(t.x,t.y)&&r.push(n)}),r}function u(n,t,r,u){var f=Number.POSITIVE_INFINITY,o=[];return u||(u=e.distanceBetweenPoints),i(n,function(n){if(!r||n.inRange(t.x,t.y)){var e=n.getCenterPoint(),i=u(t,e);i<f?(o=[n],f=i):i===f&&o.push(n)}}),o}function f(n,i,f){var e=t(i,n),h=function(n,t){return Math.abs(n.x-t.x)},o=f.intersect?r(n,e):u(n,e,!1,h),s=[];return o.length?(n.data.datasets.forEach(function(t,i){if(n.isDatasetVisible(i)){var u=n.getDatasetMeta(i),r=u.data[o[0]._index];r&&!r._view.skip&&s.push(r)}}),s):[]}var e=n.helpers;n.Interaction={modes:{single:function(n,r){var f=t(r,n),u=[];return i(n,function(n){if(n.inRange(f.x,f.y))return u.push(n),u}),u.slice(0,1)},label:f,index:f,dataset:function(n,i,f){var o=t(i,n),e=f.intersect?r(n,o):u(n,o,!1);return e.length>0&&(e=n.getDatasetMeta(e[0]._datasetIndex).data),e},"x-axis":function(n,t){return f(n,t,!0)},point:function(n,i){return r(n,t(i,n))},nearest:function(n,i,r){var e=t(i,n),f=u(n,e,r.intersect);return f.length>1&&f.sort(function(n,t){var r=n.getArea(),u=t.getArea(),i=r-u;return 0===i&&(i=n._datasetIndex-t._datasetIndex),i}),f.slice(0,1)},x:function(n,r,u){var f=t(r,n),e=[],o=!1;return i(n,function(n){n.inXRange(f.x)&&e.push(n);n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e},y:function(n,r,u){var f=t(r,n),e=[],o=!1;return i(n,function(n){n.inYRange(f.y)&&e.push(n);n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e}}}}},{}],28:[function(n,t){"use strict";t.exports=function(){var n=function(n,t){return this.construct(n,t),this};return n.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(n){var t=[],i;for(t.push('<ul class="'+n.id+'-legend">'),i=0;i<n.data.datasets.length;i++)t.push('<li><span style="background-color:'+n.data.datasets[i].backgroundColor+'"><\/span>'),n.data.datasets[i].label&&t.push(n.data.datasets[i].label),t.push("<\/li>");return t.push("<\/ul>"),t.join("")}}},n.Chart=n,n}},{}],29:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.where(n,function(n){return n.position===i})}function r(n,t){n.forEach(function(n,t){return n._tmpIndex_=t,n});n.sort(function(n,i){var r=t?i:n,u=t?n:i;return r.weight===u.weight?r._tmpIndex_-u._tmpIndex_:r.weight-u.weight});n.forEach(function(n){delete n._tmpIndex_})}var t=n.helpers;n.layoutService={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]);t.fullWidth=t.fullWidth||!1;t.position=t.position||"top";t.weight=t.weight||0;n.boxes.push(t)},removeBox:function(n,t){var i=n.boxes?n.boxes.indexOf(t):-1;i!==-1&&n.boxes.splice(i,1)},configure:function(n,t,i){for(var r,f=["fullWidth","position","weight"],e=f.length,u=0;u<e;++u)r=f[u],i.hasOwnProperty(r)&&(t[r]=i[r])},update:function(n,u,f){function bt(n){var t,i=n.isHorizontal();i?(t=n.update(n.fullWidth?ut:v,ti),y-=t.height):(t=n.update(ni,wt),v-=t.width);ht.push({horizontal:i,minSize:t,box:n})}function yt(n){var i=t.findNextWhere(ht,function(t){return t.box===n}),r;i&&(n.isHorizontal()?(r={left:Math.max(e,ft),right:Math.max(w,et),top:0,bottom:0},n.update(n.fullWidth?ut:v,st/2,r)):n.update(i.minSize.width,y))}function kt(n){var i=t.findNextWhere(ht,function(t){return t.box===n}),r={left:0,right:0,top:o,bottom:b};i&&n.update(i.minSize.width,y,r)}function ot(n){n.isHorizontal()?(n.left=n.fullWidth?p:e,n.right=n.fullWidth?u-k:e+v,n.top=rt,n.bottom=rt+n.height,rt=n.bottom):(n.left=it,n.right=it+n.width,n.top=o,n.bottom=o+y,it=n.right)}var at,vt,nt,tt,it,rt;if(n){var pt=n.options.layout,c=pt?pt.padding:null,p=0,k=0,d=0,g=0;isNaN(c)?(p=c.left||0,k=c.right||0,d=c.top||0,g=c.bottom||0):(p=c,k=c,d=c,g=c);var s=i(n.boxes,"left"),h=i(n.boxes,"right"),l=i(n.boxes,"top"),a=i(n.boxes,"bottom"),dt=i(n.boxes,"chartArea");r(s,!0);r(h,!1);r(l,!0);r(a,!1);var ut=u-p-k,st=f-d-g,gt=ut/2,wt=st/2,ni=(u-gt)/(s.length+h.length),ti=(f-wt)/(l.length+a.length),v=ut,y=st,ht=[];t.each(s.concat(h,l,a),bt);var ft=0,et=0,ct=0,lt=0;t.each(l.concat(a),function(n){if(n.getPadding){var t=n.getPadding();ft=Math.max(ft,t.left);et=Math.max(et,t.right)}});t.each(s.concat(h),function(n){if(n.getPadding){var t=n.getPadding();ct=Math.max(ct,t.top);lt=Math.max(lt,t.bottom)}});var e=p,w=k,o=d,b=g;t.each(s.concat(h),yt);t.each(s,function(n){e+=n.width});t.each(h,function(n){w+=n.width});t.each(l.concat(a),yt);t.each(l,function(n){o+=n.height});t.each(a,function(n){b+=n.height});t.each(s.concat(h),kt);e=p;w=k;o=d;b=g;t.each(s,function(n){e+=n.width});t.each(h,function(n){w+=n.width});t.each(l,function(n){o+=n.height});t.each(a,function(n){b+=n.height});at=Math.max(ft-e,0);e+=at;w+=Math.max(et-w,0);vt=Math.max(ct-o,0);o+=vt;b+=Math.max(lt-b,0);nt=f-o-b;tt=u-e-w;tt===v&&nt===y||(t.each(s,function(n){n.height=nt}),t.each(h,function(n){n.height=nt}),t.each(l,function(n){n.fullWidth||(n.width=tt)}),t.each(a,function(n){n.fullWidth||(n.width=tt)}),y=nt,v=tt);it=p+at;rt=d+vt;t.each(s.concat(l),ot);it+=v;rt+=y;t.each(h,ot);t.each(a,ot);n.chartArea={left:e,top:o,right:e+v,bottom:o+y};t.each(dt,function(t){t.left=n.chartArea.left;t.top=n.chartArea.top;t.right=n.chartArea.right;t.bottom=n.chartArea.bottom;t.update(v,y)})}}}}},{}],30:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.plugins={};n.plugins={_plugins:[],_cacheId:0,register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){t.indexOf(n)===-1&&t.push(n)});this._cacheId++},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)});this._cacheId++},clear:function(){this._plugins=[];this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t,i){for(var u,f,e,o,s=this.descriptors(n),h=s.length,r=0;r<h;++r)if(u=s[r],f=u.plugin,"function"==typeof(o=f[t])&&(e=[n].concat(i||[]),e.push(u.options),o.apply(f,e)===!1))return!1;return!0},descriptors:function(i){var r=i._plugins||(i._plugins={});if(r.id===this._cacheId)return r.descriptors;var e=[],u=[],f=i&&i.config||{},o=n.defaults.global.plugins,s=f.options&&f.options.plugins||{};return this._plugins.concat(f.plugins||[]).forEach(function(n){if(e.indexOf(n)===-1){var r=n.id,i=s[r];i!==!1&&(i===!0&&(i=t.clone(o[r])),e.push(n),u.push({plugin:n,options:i||{}}))}}),r.descriptors=u,r.id=this._cacheId,u}};n.pluginService=n.plugins;n.PluginBase=n.Element.extend({})}},{}],31:[function(n,t){"use strict";t.exports=function(n){function r(n,i,r){return t.isArray(i)?t.longestText(n,r,i):n.measureText(i).width}function i(i){var r=t.getValueOrDefault,u=n.defaults.global,f=r(i.fontSize,u.defaultFontSize),e=r(i.fontStyle,u.defaultFontStyle),o=r(i.fontFamily,u.defaultFontFamily);return{size:f,style:e,family:o,font:t.fontString(f,e,o)}}var t=n.helpers;n.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:n.Ticks.formatters.values}};n.Scale=n.Element.extend({getPadding:function(){var n=this;return{left:n.paddingLeft||0,top:n.paddingTop||0,right:n.paddingRight||0,bottom:n.paddingBottom||0}},beforeUpdate:function(){t.callback(this.options.beforeUpdate,[this])},update:function(n,i,r){var u=this;return u.beforeUpdate(),u.maxWidth=n,u.maxHeight=i,u.margins=t.extend({left:0,right:0,top:0,bottom:0},r),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),u.buildTicks(),u.afterBuildTicks(),u.beforeTickToLabelConversion(),u.convertTicksToLabels(),u.afterTickToLabelConversion(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){t.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){t.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0},afterSetDimensions:function(){t.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this,t=n.options.ticks;n.ticks=n.ticks.map(t.userCallback||t.callback)},afterTickToLabelConversion:function(){t.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var n=this,o=n.ctx,u=n.options.ticks,s=i(u),r,e;if(o.font=s.font,r=u.minRotation||0,n.options.display&&n.isHorizontal())for(var h,f=t.longestText(o,s.font,n.ticks,n.longestTextCache),c=f,l=n.getPixelForTick(1)-n.getPixelForTick(0)-6;c>l&&r<u.maxRotation;){if(e=t.toRadians(r),h=Math.cos(e),Math.sin(e)*f>n.maxHeight){r--;break}r++;c=h*f}n.labelRotation=r},afterCalculateTickRotation:function(){t.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callback(this.options.beforeFit,[this])},fit:function(){var n=this,u=n.minSize={width:0,height:0},e=n.options,l=e.ticks,v=e.scaleLabel,y=e.gridLines,s=e.display,h=n.isHorizontal(),f=i(l),p=1.5*i(v).size,w=e.gridLines.tickMarkLength;if(u.width=h?n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:s&&y.drawTicks?w:0,u.height=h?s&&y.drawTicks?w:0:n.maxHeight,v.display&&s&&(h?u.height+=p:u.width+=p),l.display&&s){var o=t.longestText(n.ctx,f.font,n.ticks,n.longestTextCache),b=t.numberOfLabelLines(n.ticks),a=.5*f.size;if(h){n.longestLabelWidth=o;var k=t.toRadians(n.labelRotation),c=Math.cos(k),nt=Math.sin(k),tt=nt*o+f.size*b+a*b;u.height=Math.min(n.maxHeight,u.height+tt);n.ctx.font=f.font;var it=n.ticks[0],d=r(n.ctx,it,f.font),rt=n.ticks[n.ticks.length-1],g=r(n.ctx,rt,f.font);0!==n.labelRotation?(n.paddingLeft="bottom"===e.position?c*d+3:c*a+3,n.paddingRight="bottom"===e.position?c*a+3:c*g+3):(n.paddingLeft=d/2+3,n.paddingRight=g/2+3)}else l.mirror?o=0:o+=n.options.ticks.padding,u.width=Math.min(n.maxWidth,u.width+o),n.paddingTop=f.size/2,n.paddingBottom=f.size/2}n.handleMargins();n.width=u.width;n.height=u.height},handleMargins:function(){var n=this;n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingTop=Math.max(n.paddingTop-n.margins.top,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0),n.paddingBottom=Math.max(n.paddingBottom-n.margins.bottom,0))},afterFit:function(){t.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){return null===n||void 0===n?NaN:"number"!=typeof n||isFinite(n)?"object"==typeof n?n instanceof Date||n.isValid?n:this.getRightValue(this.isHorizontal()?n.x:n.y):n:NaN},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(n,t){var i=this,f,e;if(i.isHorizontal()){var o=i.width-(i.paddingLeft+i.paddingRight),r=o/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),u=r*n+i.paddingLeft;return t&&(u+=r/2),f=i.left+Math.round(u),f+(i.isFullWidth()?i.margins.left:0)}return e=i.height-(i.paddingTop+i.paddingBottom),i.top+n*(e/(i.ticks.length-1))},getPixelForDecimal:function(n){var t=this;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i*n+t.paddingLeft,u=t.left+Math.round(r);return u+(t.isFullWidth()?t.margins.left:0)}return t.top+n*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var n=this,t=n.min,i=n.max;return n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0},draw:function(r){var u=this,o=u.options,k,d,g,nt,tt;if(o.display){var s,a,f=u.ctx,v=n.defaults.global,h=o.ticks,e=o.gridLines,y=o.scaleLabel,p=0!==u.labelRotation,ht=h.autoSkip,w=u.isHorizontal();h.maxTicksLimit&&(a=h.maxTicksLimit);var ct=t.getValueOrDefault(h.fontColor,v.defaultFontColor),et=i(h),c=e.drawTicks?e.tickMarkLength:0,lt=t.getValueOrDefault(y.fontColor,v.defaultFontColor),l=i(y),ot=t.toRadians(u.labelRotation),at=Math.cos(ot),st=u.longestLabelWidth*at;if(f.fillStyle=ct,k=[],w){if(s=!1,(st+h.autoSkipPadding)*u.ticks.length>u.width-(u.paddingLeft+u.paddingRight)&&(s=1+Math.floor((st+h.autoSkipPadding)*u.ticks.length/(u.width-(u.paddingLeft+u.paddingRight)))),a&&u.ticks.length>a)for(;!s||u.ticks.length/(s||1)>a;)s||(s=1),s+=1;ht||(s=!1)}var vt="right"===o.position?u.left:u.right-c,yt="right"===o.position?u.left+c:u.right,pt="bottom"===o.position?u.top:u.bottom-c,wt="bottom"===o.position?u.top+c:u.bottom;if((t.each(u.ticks,function(n,i){var kt,l,g,nt,tt,it,rt,ut,ft,et,st,ht,ct,lt,a,f,y,dt,b,d,at,bt;void 0!==n&&null!==n&&(kt=u.ticks.length===i+1,(s>1&&i%s>0||i%s==0&&i+s>=u.ticks.length)&&!kt||void 0===n||null===n||(i===(void 0!==u.zeroLineIndex?u.zeroLineIndex:0)?(l=e.zeroLineWidth,g=e.zeroLineColor,nt=e.zeroLineBorderDash,tt=e.zeroLineBorderDashOffset):(l=t.getValueAtIndexOrDefault(e.lineWidth,i),g=t.getValueAtIndexOrDefault(e.color,i),nt=t.getValueOrDefault(e.borderDash,v.borderDash),tt=t.getValueOrDefault(e.borderDashOffset,v.borderDashOffset)),f="middle",y="middle",w?("bottom"===o.position?(y=p?"middle":"top",f=p?"right":"center",a=u.top+c):(y=p?"middle":"bottom",f=p?"left":"center",a=u.bottom-c),dt=u.getPixelForTick(i)+t.aliasPixel(l),lt=u.getPixelForTick(i,e.offsetGridLines)+h.labelOffset,it=ut=et=ht=dt,rt=pt,ft=wt,st=r.top,ct=r.bottom):(d="left"===o.position,at=h.padding,h.mirror?(f=d?"left":"right",b=at):(f=d?"right":"left",b=c+at),lt=d?u.right-b:u.left+b,bt=u.getPixelForTick(i),bt+=t.aliasPixel(l),a=u.getPixelForTick(i,e.offsetGridLines),it=vt,ut=yt,et=r.left,ht=r.right,rt=ft=st=ct=bt),k.push({tx1:it,ty1:rt,tx2:ut,ty2:ft,x1:et,y1:st,x2:ht,y2:ct,labelX:lt,labelY:a,glWidth:l,glColor:g,glBorderDash:nt,glBorderDashOffset:tt,rotation:-1*ot,label:n,textBaseline:y,textAlign:f})))}),t.each(k,function(n){var i,r,u;if(e.display&&(f.save(),f.lineWidth=n.glWidth,f.strokeStyle=n.glColor,f.setLineDash&&(f.setLineDash(n.glBorderDash),f.lineDashOffset=n.glBorderDashOffset),f.beginPath(),e.drawTicks&&(f.moveTo(n.tx1,n.ty1),f.lineTo(n.tx2,n.ty2)),e.drawOnChartArea&&(f.moveTo(n.x1,n.y1),f.lineTo(n.x2,n.y2)),f.stroke(),f.restore()),h.display){if(f.save(),f.translate(n.labelX,n.labelY),f.rotate(n.rotation),f.font=et.font,f.textBaseline=n.textBaseline,f.textAlign=n.textAlign,i=n.label,t.isArray(i))for(r=0,u=0;r<i.length;++r)f.fillText(""+i[r],0,u),u+=1.5*et.size;else f.fillText(i,0,0);f.restore()}}),y.display)&&(nt=0,w?(d=u.left+(u.right-u.left)/2,g="bottom"===o.position?u.bottom-l.size/2:u.top+l.size/2):(tt="left"===o.position,d=tt?u.left+l.size/2:u.right-l.size/2,g=u.top+(u.bottom-u.top)/2,nt=tt?-.5*Math.PI:.5*Math.PI),f.save(),f.translate(d,g),f.rotate(nt),f.textAlign="center",f.textBaseline="middle",f.fillStyle=lt,f.font=l.font,f.fillText(y.labelString,0,0),f.restore()),e.drawBorder){f.lineWidth=t.getValueAtIndexOrDefault(e.lineWidth,0);f.strokeStyle=t.getValueAtIndexOrDefault(e.color,0);var it=u.left,rt=u.right,ut=u.top,ft=u.bottom,b=t.aliasPixel(f.lineWidth);w?(ut=ft="top"===o.position?u.bottom:u.top,ut+=b,ft+=b):(it=rt="left"===o.position?u.right:u.left,it+=b,rt+=b);f.beginPath();f.moveTo(it,ut);f.lineTo(rt,ft);f.stroke()}}}})}},{}],32:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.scaleService={constructors:{},defaults:{},registerScaleType:function(n,i,r){this.constructors[n]=i;this.defaults[n]=t.clone(r)},getScaleConstructor:function(n){if(this.constructors.hasOwnProperty(n))return this.constructors[n]},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?t.scaleMerge(n.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(n,i){var r=this.defaults;r.hasOwnProperty(n)&&(r[n]=t.extend(r[n],i))},addScalesToLayout:function(i){t.each(i.scales,function(t){t.fullWidth=t.options.fullWidth;t.position=t.options.position;t.weight=t.options.weight;n.layoutService.addBox(i,t)})}}}},{}],33:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.Ticks={generators:{linear:function(n,i){var r,e=[],h,f,o,u,s;for(n.stepSize&&n.stepSize>0?r=n.stepSize:(h=t.niceNum(i.max-i.min,!1),r=t.niceNum(h/(n.maxTicks-1),!0)),f=Math.floor(i.min/r)*r,o=Math.ceil(i.max/r)*r,n.min&&n.max&&n.stepSize&&t.almostWhole((n.max-n.min)/n.stepSize,r/1e3)&&(f=n.min,o=n.max),u=(o-f)/r,u=t.almostEquals(u,Math.round(u),r/1e3)?Math.round(u):Math.ceil(u),e.push(void 0!==n.min?n.min:f),s=1;s<u;++s)e.push(f+s*r);return e.push(void 0!==n.max?n.max:o),e},logarithmic:function(n,i){var r,u,e=[],s=t.getValueOrDefault,f=s(n.min,Math.pow(10,Math.floor(t.log10(i.min)))),o=Math.floor(t.log10(i.max)),c=Math.ceil(i.max/Math.pow(10,o)),h;0===f?(r=Math.floor(t.log10(i.minNotZero)),u=Math.floor(i.minNotZero/Math.pow(10,r)),e.push(f),f=u*Math.pow(10,r)):(r=Math.floor(t.log10(f)),u=Math.floor(f/Math.pow(10,r)));do e.push(f),++u,10===u&&(u=1,++r),f=u*Math.pow(10,r);while(r<o||r===o&&u<c);return h=s(n.max,f),e.push(h),e}},formatters:{values:function(n){return t.isArray(n)?n:""+n},linear:function(n,i,r){var e=r.length>3?r[2]-r[1]:r[1]-r[0],o,u,f;return Math.abs(e)>1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),o=t.log10(Math.abs(e)),u="",0!==n?(f=-1*Math.floor(o),f=Math.max(Math.min(f,20),0),u=n.toFixed(f)):u="0",u},logarithmic:function(n,i,r){var u=n/Math.pow(10,Math.floor(t.log10(n)));return 0===n?"0":1===u||2===u||5===u||0===i||i===r.length-1?n.toExponential():""}}}}},{}],34:[function(n,t){"use strict";t.exports=function(n){function r(n,i){var r=t.color(n);return r.alpha(i*r.alpha()).rgbaString()}function i(n,i){return i&&(t.isArray(i)?Array.prototype.push.apply(n,i):n.push(i)),n}function f(n){var r=n._xScale,u=n._yScale||n._scale,t=n._index,i=n._datasetIndex;return{xLabel:r?r.getLabelForIndex(t,i):"",yLabel:u?u.getLabelForIndex(t,i):"",index:t,datasetIndex:i,x:n._model.x,y:n._model.y}}function u(i){var r=n.defaults.global,u=t.getValueOrDefault;return{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:u(i.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:u(i.bodyFontStyle,r.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:u(i.bodyFontSize,r.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:u(i.titleFontFamily,r.defaultFontFamily),_titleFontStyle:u(i.titleFontStyle,r.defaultFontStyle),titleFontSize:u(i.titleFontSize,r.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:u(i.footerFontFamily,r.defaultFontFamily),_footerFontStyle:u(i.footerFontStyle,r.defaultFontStyle),footerFontSize:u(i.footerFontSize,r.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground,displayColors:i.displayColors,borderColor:i.borderColor,borderWidth:i.borderWidth}}function e(n,i){var f=n._chart.ctx,r=2*i.yPadding,e=0,a=i.body,o=a.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),c,u;o+=i.beforeBody.length+i.afterBody.length;var s=i.title.length,h=i.footer.length,v=i.titleFontSize,l=i.bodyFontSize,y=i.footerFontSize;return r+=s*v,r+=s?(s-1)*i.titleSpacing:0,r+=s?i.titleMarginBottom:0,r+=o*l,r+=o?(o-1)*i.bodySpacing:0,r+=h?i.footerMarginTop:0,r+=h*y,r+=h?(h-1)*i.footerSpacing:0,c=0,u=function(n){e=Math.max(e,f.measureText(n).width+c)},f.font=t.fontString(v,i._titleFontStyle,i._titleFontFamily),t.each(i.title,u),f.font=t.fontString(l,i._bodyFontStyle,i._bodyFontFamily),t.each(i.beforeBody.concat(i.afterBody),u),c=i.displayColors?l+2:0,t.each(a,function(n){t.each(n.before,u);t.each(n.lines,u);t.each(n.after,u)}),c=0,f.font=t.fontString(y,i._footerFontStyle,i._footerFontFamily),t.each(i.footer,u),e+=2*i.xPadding,{width:e,height:r}}function o(n,t){var i=n._model,o=n._chart,e=n._chart.chartArea,u="center",r="center",s,h,a,v,c,l,y,f;return i.y<t.height?r="top":i.y>o.height-t.height&&(r="bottom"),l=(e.left+e.right)/2,y=(e.top+e.bottom)/2,"center"===r?(s=function(n){return n<=l},h=function(n){return n>l}):(s=function(n){return n<=t.width/2},h=function(n){return n>=o.width-t.width/2}),a=function(n){return n+t.width>o.width},v=function(n){return n-t.width<0},c=function(n){return n<=y?"top":"bottom"},s(i.x)?(u="left",a(i.x)&&(u="center",r=c(i.y))):h(i.x)&&(u="right",v(i.x)&&(u="center",r=c(i.y))),f=n._options,{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:r}}function s(n,t,i){var r=n.x,e=n.y,c=n.caretSize,s=n.caretPadding,l=n.cornerRadius,u=i.xAlign,o=i.yAlign,f=c+s,h=l+s;return"right"===u?r-=t.width:"center"===u&&(r-=t.width/2),"top"===o?e+=f:e-="bottom"===o?t.height+f:t.height/2,"center"===o?"left"===u?r+=f:"right"===u&&(r-=f):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:e}}var t=n.helpers;n.defaults.global.tooltips={enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:t.noop,title:function(n,t){var r="",u=t.labels,f=u?u.length:0,i;return n.length>0&&(i=n[0],i.xLabel?r=i.xLabel:f>0&&i.index<f&&(r=u[i.index])),r},afterTitle:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i&&(i+=": "),i+n.yLabel},labelColor:function(n,t){var r=t.getDatasetMeta(n.datasetIndex),u=r.data[n.index],i=u._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}};n.Tooltip=n.Element.extend({initialize:function(){this._model=u(this._options)},getTitle:function(){var t=this,u=t._options,r=u.callbacks,f=r.beforeTitle.apply(t,arguments),e=r.title.apply(t,arguments),o=r.afterTitle.apply(t,arguments),n=[];return n=i(n,f),n=i(n,e),n=i(n,o)},getBeforeBody:function(){var n=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(n)?n:void 0!==n?[n]:[]},getBody:function(n,r){var u=this,f=u._options.callbacks,e=[];return t.each(n,function(n){var t={before:[],lines:[],after:[]};i(t.before,f.beforeLabel.call(u,n,r));i(t.lines,f.label.call(u,n,r));i(t.after,f.afterLabel.call(u,n,r));e.push(t)}),e},getAfterBody:function(){var n=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(n)?n:void 0!==n?[n]:[]},getFooter:function(){var t=this,r=t._options.callbacks,u=r.beforeFooter.apply(t,arguments),f=r.footer.apply(t,arguments),e=r.afterFooter.apply(t,arguments),n=[];return n=i(n,u),n=i(n,f),n=i(n,e)},update:function(i){var w,nt,h=this,l=h._options,a=h._model,r=h._model=u(l),b=h._active,v=h._data,k={xAlign:a.xAlign,yAlign:a.yAlign},d={x:a.x,y:a.y},y={width:a.width,height:a.height},p={x:a.caretX,y:a.caretY},g,c;if(b.length){for(r.opacity=1,g=[],p=n.Tooltip.positioners[l.position](b,h._eventPosition),c=[],w=0,nt=b.length;w<nt;++w)c.push(f(b[w]));l.filter&&(c=c.filter(function(n){return l.filter(n,v)}));l.itemSort&&(c=c.sort(function(n,t){return l.itemSort(n,t,v)}));t.each(c,function(n){g.push(l.callbacks.labelColor.call(h,n,h._chart))});r.title=h.getTitle(c,v);r.beforeBody=h.getBeforeBody(c,v);r.body=h.getBody(c,v);r.afterBody=h.getAfterBody(c,v);r.footer=h.getFooter(c,v);r.x=Math.round(p.x);r.y=Math.round(p.y);r.caretPadding=l.caretPadding;r.labelColors=g;r.dataPoints=c;y=e(this,r);k=o(this,y);d=s(r,y,k)}else r.opacity=0;return r.xAlign=k.xAlign,r.yAlign=k.yAlign,r.x=d.x,r.y=d.y,r.width=y.width,r.height=y.height,r.caretX=p.x,r.caretY=p.y,h._model=r,i&&l.custom&&l.custom.call(h,r),h},drawCaret:function(n,t){var r=this._chart.ctx,u=this._view,i=this.getCaretPosition(n,t,u);r.lineTo(i.x1,i.y1);r.lineTo(i.x2,i.y2);r.lineTo(i.x3,i.y3)},getCaretPosition:function(n,t,i){var u,f,o,e,s,h,r=i.caretSize,y=i.cornerRadius,l=i.xAlign,p=i.yAlign,c=n.x,a=n.y,v=t.width,w=t.height,b;return"center"===p?(s=a+w/2,"left"===l?(u=c,f=u-r,o=u,e=s+r,h=s-r):(u=c+v,f=u+r,o=u,e=s-r,h=s+r)):("left"===l?(f=c+y+r,u=f-r,o=f+r):"right"===l?(f=c+v-y-r,u=f-r,o=f+r):(f=c+v/2,u=f-r,o=f+r),"top"===p)?(e=a,s=e-r,h=e):(e=a+w,s=e+r,h=e,b=o,o=u,u=b),{x1:u,x2:f,x3:o,y1:e,y2:s,y3:h}},drawTitle:function(n,i,u,f){var o=i.title,s,h,e,c;if(o.length)for(u.textAlign=i._titleAlign,u.textBaseline="top",s=i.titleFontSize,h=i.titleSpacing,u.fillStyle=r(i.titleFontColor,f),u.font=t.fontString(s,i._titleFontStyle,i._titleFontFamily),e=0,c=o.length;e<c;++e)u.fillText(o[e],n.x,n.y),n.y+=s+h,e+1===o.length&&(n.y+=i.titleMarginBottom-h)},drawBody:function(n,i,u,f){var e=i.bodyFontSize,l=i.bodySpacing,a=i.body,h,s,o,c;u.textAlign=i._bodyAlign;u.textBaseline="top";h=r(i.bodyFontColor,f);u.fillStyle=h;u.font=t.fontString(e,i._bodyFontStyle,i._bodyFontFamily);s=0;o=function(t){u.fillText(t,n.x+s,n.y);n.y+=e+l};t.each(i.beforeBody,o);c=i.displayColors;s=c?e+2:0;t.each(a,function(s,l){t.each(s.before,o);t.each(s.lines,function(t){c&&(u.fillStyle=r(i.legendColorBackground,f),u.fillRect(n.x,n.y,e,e),u.strokeStyle=r(i.labelColors[l].borderColor,f),u.strokeRect(n.x,n.y,e,e),u.fillStyle=r(i.labelColors[l].backgroundColor,f),u.fillRect(n.x+1,n.y+1,e-2,e-2),u.fillStyle=h);o(t)});t.each(s.after,o)});s=0;t.each(i.afterBody,o);n.y-=l},drawFooter:function(n,i,u,f){var e=i.footer;e.length&&(n.y+=i.footerMarginTop,u.textAlign=i._footerAlign,u.textBaseline="top",u.fillStyle=r(i.footerFontColor,f),u.font=t.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),t.each(e,function(t){u.fillText(t,n.x,n.y);n.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(n,t,i,u,f){i.fillStyle=r(t.backgroundColor,f);i.strokeStyle=r(t.borderColor,f);i.lineWidth=t.borderWidth;var a=t.xAlign,l=t.yAlign,e=n.x,o=n.y,h=u.width,c=u.height,s=t.cornerRadius;i.beginPath();i.moveTo(e+s,o);"top"===l&&this.drawCaret(n,u);i.lineTo(e+h-s,o);i.quadraticCurveTo(e+h,o,e+h,o+s);"center"===l&&"right"===a&&this.drawCaret(n,u);i.lineTo(e+h,o+c-s);i.quadraticCurveTo(e+h,o+c,e+h-s,o+c);"bottom"===l&&this.drawCaret(n,u);i.lineTo(e+s,o+c);i.quadraticCurveTo(e,o+c,e,o+c-s);"center"===l&&"left"===a&&this.drawCaret(n,u);i.lineTo(e,o+s);i.quadraticCurveTo(e,o,e+s,o);i.closePath();i.fill();t.borderWidth>0&&i.stroke()},draw:function(){var i=this._chart.ctx,n=this._view;if(0!==n.opacity){var u={width:n.width,height:n.height},t={x:n.x,y:n.y},r=Math.abs(n.opacity<.001)?0:n.opacity,f=n.title.length||n.beforeBody.length||n.body.length||n.afterBody.length||n.footer.length;this._options.enabled&&f&&(this.drawBackground(t,n,i,u,r),t.x+=n.xPadding,t.y+=n.yPadding,this.drawTitle(t,n,i,r),this.drawBody(t,n,i,r),this.drawFooter(t,n,i,r))}},handleEvent:function(n){var i=this,r=i._options,u=!1,f;return(i._lastActive=i._lastActive||[],i._active="mouseout"===n.type?[]:i._chart.getElementsAtEventForMode(n,r.mode,r),!(u=!t.arrayEquals(i._active,i._lastActive)))?!1:((i._lastActive=i._active,r.enabled||r.custom)&&(i._eventPosition={x:n.x,y:n.y},f=i._model,i.update(!0),i.pivot(),u|=f.x!==i._model.x||f.y!==i._model.y),u)}});n.Tooltip.positioners={average:function(n){var i,u;if(!n.length)return!1;for(var e=0,o=0,r=0,t=0,f=n.length;t<f;++t)i=n[t],i&&i.hasValue()&&(u=i.tooltipPosition(),e+=u.x,o+=u.y,++r);return{x:Math.round(e/r),y:Math.round(o/r)}},nearest:function(n,i){for(var f,h=i.x,c=i.y,l=Number.POSITIVE_INFINITY,r,a,e,o,u=0,s=n.length;u<s;++u)r=n[u],r&&r.hasValue()&&(a=r.getCenterPoint(),e=t.distanceBetweenPoints(i,a),e<l&&(l=e,f=r));return f&&(o=f.tooltipPosition(),h=o.x,c=o.y),{x:h,y:c}}}}},{}],35:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;t.elements.arc={backgroundColor:t.defaultColor,borderColor:"#fff",borderWidth:2};n.elements.Arc=n.Element.extend({inLabelRange:function(n){var t=this._view;return!!t&&Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(n,t){var r=this._view,h,c;if(r){for(var o=i.getAngleFromPoint(r,{x:n,y:t}),u=o.angle,s=o.distance,e=r.startAngle,f=r.endAngle;f<e;)f+=2*Math.PI;for(;u>f;)u-=2*Math.PI;for(;u<e;)u+=2*Math.PI;return h=u>=e&&u<=f,c=s>=r.innerRadius&&s<=r.outerRadius,h&&c}return!1},getCenterPoint:function(){var n=this._view,t=(n.startAngle+n.endAngle)/2,i=(n.innerRadius+n.outerRadius)/2;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},getArea:function(){var n=this._view;return Math.PI*((n.endAngle-n.startAngle)/(2*Math.PI))*(Math.pow(n.outerRadius,2)-Math.pow(n.innerRadius,2))},tooltipPosition:function(){var n=this._view,t=n.startAngle+(n.endAngle-n.startAngle)/2,i=(n.outerRadius-n.innerRadius)/2+n.innerRadius;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},draw:function(){var t=this._chart.ctx,n=this._view,i=n.startAngle,r=n.endAngle;t.beginPath();t.arc(n.x,n.y,n.outerRadius,i,r);t.arc(n.x,n.y,n.innerRadius,r,i,!0);t.closePath();t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;t.fillStyle=n.backgroundColor;t.fill();t.lineJoin="bevel";n.borderWidth&&t.stroke()}})}},{}],36:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;n.defaults.global.elements.line={tension:.4,backgroundColor:t.defaultColor,borderWidth:3,borderColor:t.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0};n.elements.Line=n.Element.extend({draw:function(){var r,l,h,u,c=this,f=c._view,n=c._chart.ctx,a=f.spanGaps,e=c._children.slice(),s=t.elements.line,o=-1;for(c._loop&&e.length&&e.push(e[0]),n.save(),n.lineCap=f.borderCapStyle||s.borderCapStyle,n.setLineDash&&n.setLineDash(f.borderDash||s.borderDash),n.lineDashOffset=f.borderDashOffset||s.borderDashOffset,n.lineJoin=f.borderJoinStyle||s.borderJoinStyle,n.lineWidth=f.borderWidth||s.borderWidth,n.strokeStyle=f.borderColor||t.defaultColor,n.beginPath(),o=-1,r=0;r<e.length;++r)l=e[r],h=i.previousItem(e,r),u=l._view,0===r?u.skip||(n.moveTo(u.x,u.y),o=r):(h=o===-1?h:e[o],u.skip||(o!==r-1&&!a||o===-1?n.moveTo(u.x,u.y):i.canvas.lineTo(n,h._view,l._view),o=r));n.stroke();n.restore()}})}},{}],37:[function(n,t){"use strict";t.exports=function(n){function r(n){var t=this._view;return!!t&&Math.pow(n-t.x,2)<Math.pow(t.radius+t.hitRadius,2)}function u(n){var t=this._view;return!!t&&Math.pow(n-t.y,2)<Math.pow(t.radius+t.hitRadius,2)}var f=n.helpers,i=n.defaults.global,t=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:t,borderWidth:1,borderColor:t,hitRadius:1,hoverRadius:4,hoverBorderWidth:1};n.elements.Point=n.Element.extend({inRange:function(n,t){var i=this._view;return!!i&&Math.pow(n-i.x,2)+Math.pow(t-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:r,inXRange:r,inYRange:u,getCenterPoint:function(){var n=this._view;return{x:n.x,y:n.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(r){var e=this._view,u=this._model,o=this._chart.ctx,a=e.pointStyle,v=e.radius,h=e.x,c=e.y,l=n.helpers.color,s=0;e.skip||(o.strokeStyle=e.borderColor||t,o.lineWidth=f.getValueOrDefault(e.borderWidth,i.elements.point.borderWidth),o.fillStyle=e.backgroundColor||t,void 0!==r&&(u.x<r.left||1.01*r.right<u.x||u.y<r.top||1.01*r.bottom<u.y)&&(u.x<r.left?s=(h-u.x)/(r.left-u.x):1.01*r.right<u.x?s=(u.x-h)/(u.x-r.right):u.y<r.top?s=(c-u.y)/(r.top-u.y):1.01*r.bottom<u.y&&(s=(u.y-c)/(u.y-r.bottom)),s=Math.round(100*s)/100,o.strokeStyle=l(o.strokeStyle).alpha(s).rgbString(),o.fillStyle=l(o.fillStyle).alpha(s).rgbString()),n.canvasHelpers.drawPoint(o,a,v,h,c))}})}},{}],38:[function(n,t){"use strict";t.exports=function(n){function i(n){return void 0!==n._view.width}function t(n){var r,u,f,e,t=n._view,o,s;return i(n)?(o=t.width/2,r=t.x-o,u=t.x+o,f=Math.min(t.y,t.base),e=Math.max(t.y,t.base)):(s=t.height/2,r=Math.min(t.x,t.base),u=Math.max(t.x,t.base),f=t.y-s,e=t.y+s),{left:r,top:f,right:u,bottom:e}}var r=n.defaults.global;r.elements.rectangle={backgroundColor:r.defaultColor,borderWidth:0,borderColor:r.defaultColor,borderSkipped:"bottom"};n.elements.Rectangle=n.Element.extend({draw:function(){function p(n){return g[(y+n)%4]}var t,i,r,u,h,c,e,f=this._chart.ctx,n=this._view,o=n.borderWidth,v,s,a;if(n.horizontal?(t=n.base,i=n.x,r=n.y-n.height/2,u=n.y+n.height/2,h=i>t?1:-1,c=1,e=n.borderSkipped||"left"):(t=n.x-n.width/2,i=n.x+n.width/2,r=n.y,u=n.base,h=1,c=u>r?1:-1,e=n.borderSkipped||"bottom"),o){v=Math.min(Math.abs(t-i),Math.abs(r-u));o=o>v?v:o;var l=o/2,w=t+("left"!==e?l*h:0),b=i+("right"!==e?-l*h:0),k=r+("top"!==e?l*c:0),d=u+("bottom"!==e?-l*c:0);w!==b&&(r=k,u=d);k!==d&&(t=w,i=b)}f.beginPath();f.fillStyle=n.backgroundColor;f.strokeStyle=n.borderColor;f.lineWidth=o;var g=[[t,u],[t,r],[i,r],[i,u]],y=["bottom","left","top","right"].indexOf(e,0);for(y===-1&&(y=0),s=p(0),f.moveTo(s[0],s[1]),a=1;a<4;a++)s=p(a),f.lineTo(s[0],s[1]);f.fill();o&&f.stroke()},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,i){var u=!1,r;return this._view&&(r=t(this),u=n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom),u},inLabelRange:function(n,r){var f=this,u;return f._view?(u=t(f),i(f)?n>=u.left&&n<=u.right:r>=u.top&&r<=u.bottom):!1},inXRange:function(n){var i=t(this);return n>=i.left&&n<=i.right},inYRange:function(n){var i=t(this);return n>=i.top&&n<=i.bottom},getCenterPoint:function(){var t,r,n=this._view;return i(this)?(t=n.x,r=(n.y+n.base)/2):(t=(n.x+n.base)/2,r=n.y),{x:t,y:r}},getArea:function(){var n=this._view;return n.width*Math.abs(n.y-n.base)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}})}},{}],39:[function(n,t){"use strict";t.exports=function(n){function i(n,i){var r=t.getStyle(n,i),u=r&&r.match(/^(\d+)(\.\d+)?px$/);if(u)return Number(u[1])}function u(n,t){var r=n.style,f=n.getAttribute("height"),e=n.getAttribute("width"),u,o;return(n._chartjs={initial:{height:f,width:e,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===e||""===e)&&(u=i(n,"width"),void 0!==u&&(n.width=u)),(null===f||""===f)&&(""===n.style.height?n.height=n.width/(t.options.aspectRatio||2):(o=i(n,"height"),void 0!==u&&(n.height=o))),n}function r(n,t,i,r,u){return{type:n,chart:t,"native":u||null,x:void 0!==i?i:null,y:void 0!==r?r:null}}function f(n,i){var f=h[n.type]||n.type,u=t.getRelativePosition(n,i);return r(f,i,u.x,u.y,n)}function e(n){var i=document.createElement("iframe");return i.className="chartjs-hidden-iframe",i.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",i.tabIndex=-1,t.addEvent(i,"load",function(){t.addEvent(i.contentWindow||i,"resize",n);n()}),i}function o(n,i,u){var f=n._chartjs={ticking:!1},o=function(){f.ticking||(f.ticking=!0,t.requestAnimFrame.call(window,function(){if(f.resizer)return f.ticking=!1,i(r("resize",u))}))};f.resizer=e(o);n.insertBefore(f.resizer,n.firstChild)}function s(n){if(n&&n._chartjs){var t=n._chartjs.resizer;t&&(t.parentNode.removeChild(t),n._chartjs.resizer=null);delete n._chartjs}}var t=n.helpers,h={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(n,t){"string"==typeof n?n=document.getElementById(n):n.length&&(n=n[0]);n&&n.canvas&&(n=n.canvas);var i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(u(n,t),i):null},releaseContext:function(n){var i=n.canvas,r;i._chartjs&&(r=i._chartjs.initial,["height","width"].forEach(function(n){var t=r[n];void 0===t||null===t?i.removeAttribute(n):i.setAttribute(n,t)}),t.each(r.style||{},function(n,t){i.style[t]=n}),i.width=i.width,delete i._chartjs)},addEventListener:function(n,i,r){var u=n.canvas;if("resize"===i)return void o(u.parentNode,r,n);var e=r._chartjs||(r._chartjs={}),s=e.proxies||(e.proxies={}),h=s[n.id+"_"+i]=function(t){r(f(t,n))};t.addEvent(u,i,h)},removeEventListener:function(n,i,r){var u=n.canvas;if("resize"===i)return void s(u.parentNode);var e=r._chartjs||{},o=e.proxies||{},f=o[n.id+"_"+i];f&&t.removeEvent(u,i,f)}}}},{}],40:[function(n,t){"use strict";var i=n(39);t.exports=function(n){n.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}};n.helpers.extend(n.platform,i(n))}},{39:39}],41:[function(n,t){"use strict";t.exports=function(n){function u(n,t,i){var r,f=n._model||{},u=f.fill;if(void 0===u&&(u=!!f.backgroundColor),u===!1||null===u)return!1;if(u===!0)return"origin";if(r=parseFloat(u,10),isFinite(r)&&Math.floor(r)===r)return"-"!==u[0]&&"+"!==u[0]||(r=t+r),!(r===t||r<0||r>=i)&&r;switch(u){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return u;default:return!1}}function f(n){var u,r=n.el._model||{},i=n.el._scale||{},f=n.fill,t=null;if(isFinite(f))return null;if("start"===f?t=void 0===r.scaleBottom?i.bottom:r.scaleBottom:"end"===f?t=void 0===r.scaleTop?i.top:r.scaleTop:void 0!==r.scaleZero?t=r.scaleZero:i.getBasePosition?t=i.getBasePosition():i.getBasePixel&&(t=i.getBasePixel()),void 0!==t&&null!==t){if(void 0!==t.x&&void 0!==t.y)return t;if("number"==typeof t&&isFinite(t))return u=i.isHorizontal(),{x:u?t:null,y:u?null:t}}return null}function e(n,t,i){var u,e=n[t],r=e.fill,f=[t];if(!i)return r;for(;r!==!1&&f.indexOf(r)===-1;){if(!isFinite(r))return r;if(!(u=n[r]))return!1;if(u.visible)return r;f.push(r);r=u.fill}return!1}function o(n){var t=n.fill,i="dataset";return t===!1?null:(isFinite(t)||(i="boundary"),c[i](n))}function t(n){return n&&!n.skip}function i(n,t,i,u,f){var e;if(u&&f){for(n.moveTo(t[0].x,t[0].y),e=1;e<u;++e)r.canvas.lineTo(n,t[e-1],t[e]);for(n.lineTo(i[f-1].x,i[f-1].y),e=f-1;e>0;--e)r.canvas.lineTo(n,i[e],i[e-1],!0)}}function s(n,r,u,f,e,o){var v,k,p,s,y,w,b,d=r.length,g=f.spanGaps,h=[],c=[],l=0,a=0;for(n.beginPath(),v=0,k=d+!!o;v<k;++v)p=v%d,s=r[p]._view,y=u(s,p,f),w=t(s),b=t(y),w&&b?(l=h.push(s),a=c.push(y)):l&&a&&(g?(w&&h.push(s),b&&c.push(y)):(i(n,h,c,l,a),l=a=0,h=[],c=[]));i(n,h,c,l,a);n.closePath();n.fillStyle=e;n.fill()}n.defaults.global.plugins.filler={propagate:!0};var h=n.defaults,r=n.helpers,c={dataset:function(n){var t=n.fill,i=n.chart,r=i.getDatasetMeta(t),f=r&&i.isDatasetVisible(t),u=f&&r.dataset._children||[];return u.length?function(n,t){return u[t]._view||null}:null},boundary:function(n){var t=n.boundary,i=t?t.x:null,r=t?t.y:null;return function(n){return{x:null===i?n.x:i,y:null===r?n.y:r}}}};return{id:"filler",afterDatasetsUpdate:function(t,i){for(var c,h,s,l=(t.data.datasets||[]).length,v=i.propagate,a=[],r=0;r<l;++r)c=t.getDatasetMeta(r),h=c.dataset,s=null,h&&h._model&&h instanceof n.elements.Line&&(s={visible:t.isDatasetVisible(r),fill:u(h,r,l),chart:t,el:h}),c.$filler=s,a.push(s);for(r=0;r<l;++r)(s=a[r])&&(s.fill=e(a,r,v),s.boundary=f(s),s.mapper=o(s))},beforeDatasetDraw:function(n,t){var i=t.meta.$filler;if(i){var r=i.el,u=r._view,f=r._children||[],e=i.mapper,o=u.backgroundColor||h.global.defaultColor;e&&o&&f.length&&s(n.ctx,f,e,u,o,r._loop)}}}}},{}],42:[function(n,t){"use strict";t.exports=function(n){function u(n,t){return n.usePointStyle?t*Math.SQRT2:n.boxWidth}function f(t,i){var u=new n.Legend({ctx:t.ctx,options:i,chart:t});r.configure(t,u,i);r.addBox(t,u);t.legend=u}var t=n.helpers,r=n.layoutService,i=t.noop;return n.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=null===u.hidden?!i.data.datasets[r].hidden:null;i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data;return t.isArray(i.datasets)?i.datasets.map(function(i,r){return{text:i.label,fillStyle:t.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!n.isDatasetVisible(r),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:r}},this):[]}}},n.Legend=n.Element.extend({initialize:function(n){t.extend(this,n);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:i,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var n=this,i=n.options.labels,t=i.generateLabels.call(n,n.chart);i.filter&&(t=t.filter(function(t){return i.filter(t,n.chart.data)}));n.options.reverse&&t.reverse();n.legendItems=t},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,w=i.options,r=w.labels,c=w.display,h=i.ctx,l=n.defaults.global,a=t.getValueOrDefault,f=a(r.fontSize,l.defaultFontSize),nt=a(r.fontStyle,l.defaultFontStyle),tt=a(r.fontFamily,l.defaultFontFamily),it=t.fontString(f,nt,tt),b=i.legendHitBoxes=[],e=i.minSize,k=i.isHorizontal(),o,v;if(k?(e.width=i.maxWidth,e.height=c?10:0):(e.width=c?10:0,e.height=i.maxHeight),c)if(h.font=it,k)o=i.lineWidths=[0],v=i.legendItems.length?f+r.padding:0,h.textAlign="left",h.textBaseline="top",t.each(i.legendItems,function(n,t){var s=u(r,f),e=s+f/2+h.measureText(n.text).width;o[o.length-1]+e+r.padding>=i.width&&(v+=f+r.padding,o[o.length]=i.left);b[t]={left:0,top:0,width:e,height:f};o[o.length-1]+=e+r.padding}),e.height+=v;else{var rt=r.padding,d=i.columnWidths=[],y=r.padding,s=0,p=0,g=f+rt;t.each(i.legendItems,function(n,t){var o=u(r,f),i=o+f/2+h.measureText(n.text).width;p+g>e.height&&(y+=s+r.padding,d.push(s),s=0,p=0);s=Math.max(s,i);p+=g;b[t]={left:0,top:0,width:i,height:f}});y+=s;d.push(s);e.width+=y}i.width=e.width;i.height=e.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var r=this,a=r.options,e=a.labels,c=n.defaults.global,l=c.elements.line,y=r.width,w=r.lineWidths,v;if(a.display){var f,i=r.ctx,o=t.getValueOrDefault,b=o(e.fontColor,c.defaultFontColor),s=o(e.fontSize,c.defaultFontSize),d=o(e.fontStyle,c.defaultFontStyle),g=o(e.fontFamily,c.defaultFontFamily),nt=t.fontString(s,d,g);i.textAlign="left";i.textBaseline="top";i.lineWidth=.5;i.strokeStyle=b;i.fillStyle=b;i.font=nt;var h=u(e,s),k=r.legendHitBoxes,tt=function(t,r,u){var f;if(!(isNaN(h)||h<=0)){if(i.save(),i.fillStyle=o(u.fillStyle,c.defaultColor),i.lineCap=o(u.lineCap,l.borderCapStyle),i.lineDashOffset=o(u.lineDashOffset,l.borderDashOffset),i.lineJoin=o(u.lineJoin,l.borderJoinStyle),i.lineWidth=o(u.lineWidth,l.borderWidth),i.strokeStyle=o(u.strokeStyle,c.defaultColor),f=0===o(u.lineWidth,l.borderWidth),i.setLineDash&&i.setLineDash(o(u.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var e=s*Math.SQRT2/2,v=e/Math.SQRT2,y=t+v,p=r+v;n.canvasHelpers.drawPoint(i,u.pointStyle,e,y,p)}else f||i.strokeRect(t,r,h,s),i.fillRect(t,r,h,s);i.restore()}},it=function(n,t,r,u){i.fillText(r.text,h+s/2+n,t);r.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(h+s/2+n,t+s/2),i.lineTo(h+s/2+n+u,t+s/2),i.stroke())},p=r.isHorizontal();f=p?{x:r.left+(y-w[0])/2,y:r.top+e.padding,line:0}:{x:r.left+e.padding,y:r.top+e.padding,line:0};v=s+e.padding;t.each(r.legendItems,function(n,t){var c=i.measureText(n.text).width,l=h+s/2+c,u=f.x,o=f.y;p?u+l>=y&&(o=f.y+=v,f.line++,u=f.x=r.left+(y-w[f.line])/2):o+v>r.bottom&&(u=f.x=u+r.columnWidths[f.line]+e.padding,o=f.y=r.top+e.padding,f.line++);tt(u,o,n);k[t].left=u;k[t].top=o;it(u,o,n,c);p?f.x+=l+e.padding:f.y+=v})}},handleEvent:function(n){var t=this,e=t.options,o="mouseup"===n.type?"click":n.type,s=!1,u,f,h,r,i;if("mousemove"===o){if(!e.onHover)return}else{if("click"!==o)return;if(!e.onClick)return}if(u=n.x,f=n.y,u>=t.left&&u<=t.right&&f>=t.top&&f<=t.bottom)for(h=t.legendHitBoxes,r=0;r<h.length;++r)if(i=h[r],u>=i.left&&u<=i.left+i.width&&f>=i.top&&f<=i.top+i.height){if("click"===o){e.onClick.call(t,n.native,t.legendItems[r]);s=!0;break}if("mousemove"===o){e.onHover.call(t,n.native,t.legendItems[r]);s=!0;break}}return s}}),{id:"legend",beforeInit:function(n){var t=n.options.legend;t&&f(n,t)},beforeUpdate:function(i){var u=i.options.legend,e=i.legend;u?(u=t.configMerge(n.defaults.global.legend,u),e?(r.configure(i,e,u),e.options=u):f(i,u)):e&&(r.removeBox(i,e),delete i.legend)},afterEvent:function(n,t){var i=n.legend;i&&i.handleEvent(t)}}}},{}],43:[function(n,t){"use strict";t.exports=function(n){function u(t,i){var u=new n.Title({ctx:t.ctx,options:i,chart:t});r.configure(t,u,i);r.addBox(t,u);t.titleBlock=u}var i=n.helpers,r=n.layoutService,t=i.noop;return n.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},n.Title=n.Element.extend({initialize:function(n){var t=this;i.extend(t,n);t.legendHitBoxes=[]},beforeUpdate:t,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,o=i.getValueOrDefault,u=t.options,s=n.defaults.global,f=u.display,e=o(u.fontSize,s.defaultFontSize),r=t.minSize;t.isHorizontal()?(r.width=t.maxWidth,r.height=f?e+2*u.padding:0):(r.width=f?e+2*u.padding:0,r.height=t.maxHeight);t.width=r.width;t.height=r.height},afterFit:t,isHorizontal:function(){var n=this.options.position;return"top"===n||"bottom"===n},draw:function(){var u=this,t=u.ctx,e=i.getValueOrDefault,r=u.options,o=n.defaults.global;if(r.display){var h,c,l,a=e(r.fontSize,o.defaultFontSize),w=e(r.fontStyle,o.defaultFontStyle),b=e(r.fontFamily,o.defaultFontFamily),k=i.fontString(a,w,b),p=0,f=u.top,s=u.left,v=u.bottom,y=u.right;t.fillStyle=e(r.fontColor,o.defaultFontColor);t.font=k;u.isHorizontal()?(h=s+(y-s)/2,c=f+(v-f)/2,l=y-s):(h="left"===r.position?s+a/2:y-a/2,c=f+(v-f)/2,l=v-f,p=Math.PI*("left"===r.position?-.5:.5));t.save();t.translate(h,c);t.rotate(p);t.textAlign="center";t.textBaseline="middle";t.fillText(r.text,0,0,l);t.restore()}}}),{id:"title",beforeInit:function(n){var t=n.options.title;t&&u(n,t)},beforeUpdate:function(t){var f=t.options.title,e=t.titleBlock;f?(f=i.configMerge(n.defaults.global.title,f),e?(r.configure(t,e,f),e.options=f):u(t,f)):e&&(n.layoutService.removeBox(t,e),delete t.titleBlock)}}}},{}],44:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.Scale.extend({getLabels:function(){var n=this.chart.data;return(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels},determineDataLimits:function(){var n=this,r=n.getLabels(),i;n.minIndex=0;n.maxIndex=r.length-1;void 0!==n.options.ticks.min&&(i=t.indexOf(r,n.options.ticks.min),n.minIndex=i!==-1?i:n.minIndex);void 0!==n.options.ticks.max&&(i=t.indexOf(r,n.options.ticks.max),n.maxIndex=i!==-1?i:n.maxIndex);n.min=r[n.minIndex];n.max=r[n.maxIndex]},buildTicks:function(){var n=this,t=n.getLabels();n.ticks=0===n.minIndex&&n.maxIndex===t.length-1?t:t.slice(n.minIndex,n.maxIndex+1)},getLabelForIndex:function(n,t){var i=this,r=i.chart.data,u=i.isHorizontal();return r.yLabels&&!u?i.getRightValue(r.datasets[t].data[n]):i.ticks[n-i.minIndex]},getPixelForValue:function(n,t,i,r){var f,u=this,l=Math.max(u.maxIndex+1-u.minIndex-(u.options.gridLines.offsetGridLines?0:1),1),a,e,o,s,h,c;return((void 0!==n&&null!==n&&(f=u.isHorizontal()?n.x:n.y),void 0!==f||void 0!==n&&isNaN(t))&&(a=u.getLabels(),n=f||n,e=a.indexOf(n),t=e!==-1?e:t),u.isHorizontal())?(o=u.width/l,s=o*(t-u.minIndex),(u.options.gridLines.offsetGridLines&&r||u.maxIndex===u.minIndex&&r)&&(s+=o/2),u.left+Math.round(s)):(h=u.height/l,c=h*(t-u.minIndex),u.options.gridLines.offsetGridLines&&r&&(c+=h/2),u.top+Math.round(c))},getPixelForTick:function(n,t){return this.getPixelForValue(this.ticks[n],n+this.minIndex,null,t)},getValueForPixel:function(n){var t=this,u=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),i=t.isHorizontal(),r=(i?t.width:t.height)/u;return n-=i?t.left:t.top,t.options.gridLines.offsetGridLines&&(n-=r/2),n<=0?0:Math.round(n/r)},getBasePixel:function(){return this.bottom}});n.scaleService.registerScaleType("category",i,{position:"bottom"})}},{}],45:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:n.Ticks.formatters.linear}},r=n.LinearScaleBase.extend({determineDataLimits:function(){function e(t){return h?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,f=n.options,i=n.chart,s=i.data,o=s.datasets,h=n.isHorizontal(),u,r;n.min=null;n.max=null;u=f.stacked;(void 0===u&&t.each(o,function(n,t){if(!u){var r=i.getDatasetMeta(t);i.isDatasetVisible(t)&&e(r)&&void 0!==r.stack&&(u=!0)}}),f.stacked||u)?(r={},t.each(o,function(u,o){var s=i.getDatasetMeta(o),c=[s.type,void 0===f.stacked&&void 0===s.stack?o:"",s.stack].join("."),h,l;void 0===r[c]&&(r[c]={positiveValues:[],negativeValues:[]});h=r[c].positiveValues;l=r[c].negativeValues;i.isDatasetVisible(o)&&e(s)&&t.each(u.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||s.data[i].hidden||(h[i]=h[i]||0,l[i]=l[i]||0,f.relativePoints?h[i]=100:r<0?l[i]+=r:h[i]+=r)})}),t.each(r,function(i){var r=i.positiveValues.concat(i.negativeValues),u=t.min(r),f=t.max(r);n.min=null===n.min?u:Math.min(n.min,u);n.max=null===n.max?f:Math.max(n.max,f)})):t.each(o,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&e(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(null===n.min?n.min=r:r<n.min&&(n.min=r),null===n.max?n.max=r:r>n.max&&(n.max=r))})});n.min=isFinite(n.min)?n.min:0;n.max=isFinite(n.max)?n.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var u,r=this,i=r.options.ticks,f;return r.isHorizontal()?u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50)):(f=t.getValueOrDefault(i.fontSize,n.defaults.global.defaultFontSize),u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*f)))),u},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForValue:function(n){var i,t=this,r=t.start,u=+t.getRightValue(n),f=t.end-r;return t.isHorizontal()?(i=t.left+t.width/f*(u-r),Math.round(i)):(i=t.bottom-t.height/f*(u-r),Math.round(i))},getValueForPixel:function(n){var t=this,i=t.isHorizontal(),r=i?t.width:t.height,u=(i?n-t.left:t.bottom-n)/r;return t.start+(t.end-t.start)*u},getPixelForTick:function(n){return this.getPixelForValue(this.ticksAsNumbers[n])}});n.scaleService.registerScaleType("linear",r,i)}},{}],46:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.LinearScaleBase=n.Scale.extend({handleTickRangeOptions:function(){var n=this,f=n.options,i=f.ticks,r,u;i.beginAtZero&&(r=t.sign(n.min),u=t.sign(n.max),r<0&&u<0?n.max=0:r>0&&u>0&&(n.min=0));void 0!==i.min?n.min=i.min:void 0!==i.suggestedMin&&(n.min=null===n.min?i.suggestedMin:Math.min(n.min,i.suggestedMin));void 0!==i.max?n.max=i.max:void 0!==i.suggestedMax&&(n.max=null===n.max?i.suggestedMax:Math.max(n.max,i.suggestedMax));n.min===n.max&&(n.max++,i.beginAtZero||n.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var i=this,o=i.options,r=o.ticks,f=i.getTickLimit(),e,u;f=Math.max(2,f);e={maxTicks:f,min:r.min,max:r.max,stepSize:t.getValueOrDefault(r.fixedStepSize,r.stepSize)};u=i.ticks=n.Ticks.generators.linear(e,i);i.handleDirectionalChanges();i.max=t.max(u);i.min=t.min(u);r.reverse?(u.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice();t.zeroLineIndex=t.ticks.indexOf(0);n.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],47:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:n.Ticks.formatters.logarithmic}},r=n.Scale.extend({determineDataLimits:function(){function e(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,s=r.ticks,i=n.chart,c=i.data,o=c.datasets,h=t.getValueOrDefault,l=n.isHorizontal(),u,f;n.min=null;n.max=null;n.minNotZero=null;u=r.stacked;(void 0===u&&t.each(o,function(n,t){if(!u){var r=i.getDatasetMeta(t);i.isDatasetVisible(t)&&e(r)&&void 0!==r.stack&&(u=!0)}}),r.stacked||u)?(f={},t.each(o,function(u,o){var s=i.getDatasetMeta(o),h=[s.type,void 0===r.stacked&&void 0===s.stack?o:"",s.stack].join(".");i.isDatasetVisible(o)&&e(s)&&(void 0===f[h]&&(f[h]=[]),t.each(u.data,function(t,i){var u=f[h],e=+n.getRightValue(t);isNaN(e)||s.data[i].hidden||(u[i]=u[i]||0,r.relativePoints?u[i]=100:u[i]+=e)}))}),t.each(f,function(i){var r=t.min(i),u=t.max(i);n.min=null===n.min?r:Math.min(n.min,r);n.max=null===n.max?u:Math.max(n.max,u)})):t.each(o,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&e(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(null===n.min?n.min=r:r<n.min&&(n.min=r),null===n.max?n.max=r:r>n.max&&(n.max=r),0!==r&&(null===n.minNotZero||r<n.minNotZero)&&(n.minNotZero=r))})});n.min=h(s.min,n.min);n.max=h(s.max,n.max);n.min===n.max&&(0!==n.min&&null!==n.min?(n.min=Math.pow(10,Math.floor(t.log10(n.min))-1),n.max=Math.pow(10,Math.floor(t.log10(n.max))+1)):(n.min=1,n.max=10))},buildTicks:function(){var i=this,f=i.options,u=f.ticks,e={min:u.min,max:u.max},r=i.ticks=n.Ticks.generators.logarithmic(e,i);i.isHorizontal()||r.reverse();i.max=t.max(r);i.min=t.min(r);u.reverse?(r.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();n.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForTick:function(n){return this.getPixelForValue(this.tickValues[n])},getPixelForValue:function(n){var r,e,f,i=this,o=i.start,u=+i.getRightValue(n),h=i.options,s=h.ticks;return i.isHorizontal()?(f=t.log10(i.end)-t.log10(o),0===u?e=i.left:(r=i.width,e=i.left+r/f*(t.log10(u)-t.log10(o)))):(r=i.height,0!==o||s.reverse?0===i.end&&s.reverse?(f=t.log10(i.start)-t.log10(i.minNotZero),e=u===i.end?i.top:u===i.minNotZero?i.top+.02*r:i.top+.02*r+.98*r/f*(t.log10(u)-t.log10(i.minNotZero))):0===u?e=s.reverse?i.top:i.bottom:(f=t.log10(i.end)-t.log10(o),r=i.height,e=i.bottom-r/f*(t.log10(u)-t.log10(o))):(f=t.log10(i.end)-t.log10(i.minNotZero),e=u===o?i.bottom:u===i.minNotZero?i.bottom-.02*r:i.bottom-.02*r-.98*r/f*(t.log10(u)-t.log10(i.minNotZero)))),e},getValueForPixel:function(n){var u,r,i=this,f=t.log10(i.end)-t.log10(i.start);return i.isHorizontal()?(r=i.width,u=i.start*Math.pow(10,(n-i.left)*f/r)):(r=i.height,u=Math.pow(10,(i.bottom-n)*f/r)/i.start),u}});n.scaleService.registerScaleType("logarithmic",r,i)}},{}],48:[function(n,t){"use strict";t.exports=function(n){function r(n){var t=n.options;return t.angleLines.display||t.pointLabels.display?n.chart.data.labels.length:0}function f(n){var r=n.options.pointLabels,u=t.getValueOrDefault(r.fontSize,i.defaultFontSize),f=t.getValueOrDefault(r.fontStyle,i.defaultFontStyle),e=t.getValueOrDefault(r.fontFamily,i.defaultFontFamily);return{size:u,style:f,family:e,font:t.fontString(u,f,e)}}function o(n,i,r){return t.isArray(r)?{w:t.longestText(n,n.font,r),h:r.length*i+1.5*(r.length-1)*i}:{w:n.measureText(r).width,h:i}}function e(n,t,i,r,u){return n===r||n===u?{start:t-i/2,end:t+i/2}:n<r||n>u?{start:t-i-5,end:t}:{start:t,end:t+i+5}}function s(n){var u,c,v,y=f(n),p=Math.min(n.height/2,n.width/2),i={r:n.width,l:0,t:n.height,b:0},s={},w;for(n.ctx.font=y.font,n._pointLabelSizes=[],w=r(n),u=0;u<w;u++){v=n.getPointPosition(u,p);c=o(n.ctx,y.size,n.pointLabels[u]||"");n._pointLabelSizes[u]=c;var h=n.getIndexAngle(u),b=t.toDegrees(h)%360,l=e(b,v.x,c.w,0,180),a=e(b,v.y,c.h,90,270);l.start<i.l&&(i.l=l.start,s.l=h);l.end>i.r&&(i.r=l.end,s.r=h);a.start<i.t&&(i.t=a.start,s.t=h);a.end>i.b&&(i.b=a.end,s.b=h)}n.setReductions(p,i,s)}function h(n){var t=Math.min(n.height/2,n.width/2);n.drawingArea=Math.round(t);n.setCenterPoint(0,0,0,0)}function c(n){return 0===n||180===n?"center":n<180?"left":"right"}function l(n,i,r,u){if(t.isArray(i))for(var e=r.y,o=1.5*u,f=0;f<i.length;++f)n.fillText(i[f],r.x,e),e+=o;else n.fillText(i,r.x,r.y)}function a(n,t,i){90===n||270===n?i.y-=t.h/2:(n>270||n<90)&&(i.y-=t.h)}function v(n){var u=n.ctx,g=t.getValueOrDefault,o=n.options,s=o.angleLines,b=o.pointLabels,h,v,e,y,p,k,d,w;for(u.lineWidth=s.lineWidth,u.strokeStyle=s.color,h=n.getDistanceFromCenterForValue(o.reverse?n.min:n.max),v=f(n),u.textBaseline="top",e=r(n)-1;e>=0;e--)s.display&&(y=n.getPointPosition(e,h),u.beginPath(),u.moveTo(n.xCenter,n.yCenter),u.lineTo(y.x,y.y),u.stroke(),u.closePath()),b.display&&(p=n.getPointPosition(e,h+5),k=g(b.fontColor,i.defaultFontColor),u.font=v.font,u.fillStyle=k,d=n.getIndexAngle(e),w=t.toDegrees(d),u.textAlign=c(w),a(w,n._pointLabelSizes[e],p),l(u,n.pointLabels[e]||"",p,v.size))}function y(n,i,u,f){var e=n.ctx,h,o,s;if(e.strokeStyle=t.getValueAtIndexOrDefault(i.color,f-1),e.lineWidth=t.getValueAtIndexOrDefault(i.lineWidth,f-1),n.options.gridLines.circular)e.beginPath(),e.arc(n.xCenter,n.yCenter,u,0,2*Math.PI),e.closePath(),e.stroke();else{if(h=r(n),0===h)return;for(e.beginPath(),o=n.getPointPosition(0,u),e.moveTo(o.x,o.y),s=1;s<h;s++)o=n.getPointPosition(s,u),e.lineTo(o.x,o.y);e.closePath();e.stroke()}}function u(n){return t.isNumber(n)?n:0}var t=n.helpers,i=n.defaults.global,p={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:n.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(n){return n}}},w=n.LinearScaleBase.extend({setDimensions:function(){var n=this,u=n.options,f=u.ticks,r,e;n.width=n.maxWidth;n.height=n.maxHeight;n.xCenter=Math.round(n.width/2);n.yCenter=Math.round(n.height/2);r=t.min([n.height,n.width]);e=t.getValueOrDefault(f.fontSize,i.defaultFontSize);n.drawingArea=u.display?r/2-(e/2+f.backdropPaddingY):r/2},determineDataLimits:function(){var n=this,u=n.chart,i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;t.each(u.data.datasets,function(f,e){if(u.isDatasetVisible(e)){var o=u.getDatasetMeta(e);t.each(f.data,function(t,u){var f=+n.getRightValue(t);isNaN(f)||o.data[u].hidden||(i=Math.min(f,i),r=Math.max(f,r))})}});n.min=i===Number.POSITIVE_INFINITY?0:i;n.max=r===Number.NEGATIVE_INFINITY?0:r;n.handleTickRangeOptions()},getTickLimit:function(){var n=this.options.ticks,r=t.getValueOrDefault(n.fontSize,i.defaultFontSize);return Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var t=this;n.LinearScaleBase.prototype.convertTicksToLabels.call(t);t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},fit:function(){this.options.pointLabels.display?s(this):h(this)},setReductions:function(n,t,i){var r=this,f=t.l/Math.sin(i.l),e=Math.max(t.r-r.width,0)/Math.sin(i.r),o=-t.t/Math.cos(i.t),s=-Math.max(t.b-r.height,0)/Math.cos(i.b);f=u(f);e=u(e);o=u(o);s=u(s);r.drawingArea=Math.min(Math.round(n-(f+e)/2),Math.round(n-(o+s)/2));r.setCenterPoint(f,e,o,s)},setCenterPoint:function(n,t,i,r){var u=this,f=u.width-t-u.drawingArea,e=n+u.drawingArea,o=i+u.drawingArea,s=u.height-r-u.drawingArea;u.xCenter=Math.round((e+f)/2+u.left);u.yCenter=Math.round((o+s)/2+u.top)},getIndexAngle:function(n){return n*(2*Math.PI/r(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI/180},getDistanceFromCenterForValue:function(n){var t=this,i;return null===n?0:(i=t.drawingArea/(t.max-t.min),t.options.reverse?(t.max-n)*i:(n-t.min)*i)},getPointPosition:function(n,t){var i=this,r=i.getIndexAngle(n)-Math.PI/2;return{x:Math.round(Math.cos(r)*t)+i.xCenter,y:Math.round(Math.sin(r)*t)+i.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var n=this,t=n.min,i=n.max;return n.getPointPositionForValue(0,n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(){var r=this,f=r.options,s=f.gridLines,n=f.ticks,e=t.getValueOrDefault;if(f.display){var u=r.ctx,o=e(n.fontSize,i.defaultFontSize),h=e(n.fontStyle,i.defaultFontStyle),c=e(n.fontFamily,i.defaultFontFamily),l=t.fontString(o,h,c);t.each(r.ticks,function(t,h){var c,a,p,v;(h>0||f.reverse)&&(c=r.getDistanceFromCenterForValue(r.ticksAsNumbers[h]),a=r.yCenter-c,(s.display&&0!==h&&y(r,s,c,h),n.display)&&(p=e(n.fontColor,i.defaultFontColor),(u.font=l,n.showLabelBackdrop)&&(v=u.measureText(t).width,u.fillStyle=n.backdropColor,u.fillRect(r.xCenter-v/2-n.backdropPaddingX,a-o/2-n.backdropPaddingY,v+2*n.backdropPaddingX,o+2*n.backdropPaddingY)),u.textAlign="center",u.textBaseline="middle",u.fillStyle=p,u.fillText(t,r.xCenter,a)))});(f.angleLines.display||f.pointLabels.display)&&v(r)}}});n.scaleService.registerScaleType("radialLinear",w,p)}},{}],49:[function(n,t){"use strict";var i=n(1);i="function"==typeof i?i:window.moment;t.exports=function(n){function r(n,t){var r=n.options.time,u;return"string"==typeof r.parser?i(t,r.parser):"function"==typeof r.parser?r.parser(t):"function"==typeof t.getMonth||"number"==typeof t?i(t):t.isValid&&t.isValid()?t:(u=r.format,"string"!=typeof u&&u.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),u(t)):i(t,u))}function e(n,t,i,r){for(var f,h,e,o=Object.keys(u),c=o.length,s=o.indexOf(n);s<c;s++)if(e=o[s],f=u[e],h=f.steps&&f.steps[f.steps.length-1]||f.maxStep,void 0===h||Math.ceil((i-t)/(h*f.size))<=r)break;return e}function o(n,t,i,r){var e=u[i],h=e.size,o=Math.ceil((t-n)/h),f=1,c=t-n,l,s;if(e.steps)for(l=e.steps.length,s=0;s<l&&o>r;s++)f=e.steps[s],o=Math.ceil(c/(h*f));else for(;o>r&&r>0;)++f,o=Math.ceil(c/(h*f));return f}function s(n,t,r){var u=[],o,f,e;if(n.maxTicks){for(o=n.stepSize,u.push(void 0!==n.min?n.min:r.min),f=i(r.min);f.add(o,n.unit).valueOf()<r.max;)u.push(f.valueOf());e=n.max||r.max;u[u.length-1]!==e&&u.push(e)}return u}var t=n.helpers,u={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},f;n.Ticks.generators.time=function(n,t){var u,r,f=n.isoWeekday;return"week"===n.unit&&f!==!1?(u=i(t.min).startOf("isoWeek").isoWeekday(f).valueOf(),r=i(t.max).startOf("isoWeek").isoWeekday(f),t.max-r>0&&r.add(1,"week"),r=r.valueOf()):(u=i(t.min).startOf(n.unit).valueOf(),r=i(t.max).startOf(n.unit),t.max-r>0&&r.add(1,n.unit),r=r.valueOf()),s(n,t,{min:u,max:r})};f=n.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");n.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var i,n=this,e=n.options.time,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER,s=n.chart.data,o={labels:[],datasets:[]};t.each(s.labels,function(t,s){var h=r(n,t);h.isValid()&&(e.round&&h.startOf(e.round),i=h.valueOf(),u=Math.min(i,u),f=Math.max(i,f),o.labels[s]=i)});t.each(s.datasets,function(s,h){var c=[];"object"==typeof s.data[0]&&null!==s.data[0]&&n.chart.isDatasetVisible(h)?t.each(s.data,function(t,o){var s=r(n,n.getRightValue(t));s.isValid()&&(e.round&&s.startOf(e.round),i=s.valueOf(),u=Math.min(i,u),f=Math.max(i,f),c[o]=i)}):c=o.labels.slice();o.datasets[h]=c});n.dataMin=u;n.dataMax=f;n._parsedData=o},buildTicks:function(){var f,s,i=this,u=i.options.time,h=i.dataMin,a=i.dataMax,v,c,l,y;u.min&&(v=r(i,u.min),u.round&&v.round(u.round),f=v.valueOf());u.max&&(s=r(i,u.max).valueOf());c=i.getLabelCapacity(f||h);l=u.unit||e(u.minUnit,f||h,s||a,c);i.displayFormat=u.displayFormats[l];y=u.stepSize||o(f||h,s||a,l,c);i.ticks=n.Ticks.generators.time({maxTicks:c,min:f,max:s,stepSize:y,unit:l,isoWeekday:u.isoWeekday},{min:h,max:a});i.max=t.max(i.ticks);i.min=t.min(i.ticks)},getLabelForIndex:function(n,t){var i=this,u=i.chart.data.labels&&n<i.chart.data.labels.length?i.chart.data.labels[n]:"",f=i.chart.data.datasets[t].data[n];return null!==f&&"object"==typeof f&&(u=i.getRightValue(f)),i.options.time.tooltipFormat&&(u=r(i,u).format(i.options.time.tooltipFormat)),u},tickFormatFunction:function(n,i,r){var u=n.format(this.displayFormat),f=this.options.ticks,e=t.getValueOrDefault(f.callback,f.userCallback);return e?e(u,i,r):u},convertTicksToLabels:function(){var n=this;n.ticksAsTimestamps=n.ticks;n.ticks=n.ticks.map(function(n){return i(n)}).map(n.tickFormatFunction,n)},getPixelForOffset:function(n){var t=this,i=t.max-t.min,r=i?(n-t.min)/i:0,u,f;return t.isHorizontal()?(u=t.width*r,t.left+Math.round(u)):(f=t.height*r,t.top+Math.round(f))},getPixelForValue:function(n,t,i){var f=this,u=null;if(void 0!==t&&void 0!==i&&(u=f._parsedData.datasets[i][t]),null===u&&(n&&n.isValid||(n=r(f,f.getRightValue(n))),n&&n.isValid&&n.isValid()&&(u=n.valueOf())),null!==u)return f.getPixelForOffset(u)},getPixelForTick:function(n){return this.getPixelForOffset(this.ticksAsTimestamps[n])},getValueForPixel:function(n){var t=this,r=t.isHorizontal()?t.width:t.height,u=(n-(t.isHorizontal()?t.left:t.top))/r;return i(t.min+u*(t.max-t.min))},getLabelWidth:function(i){var u=this,r=u.options.ticks,f=u.ctx.measureText(i).width,e=Math.cos(t.toRadians(r.maxRotation)),o=Math.sin(t.toRadians(r.maxRotation));return f*e+t.getValueOrDefault(r.fontSize,n.defaults.global.defaultFontSize)*o},getLabelCapacity:function(n){var t=this,r,u;return t.displayFormat=t.options.time.displayFormats.millisecond,r=t.tickFormatFunction(i(n),0,[]),u=t.getLabelWidth(r),(t.isHorizontal()?t.width:t.height)/u}});n.scaleService.registerScaleType("time",f,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{1:1}]},{},[7])(7)});WOW=function(n){var t=n||{};this._boxClass=t.boxClass||"wow";this._animateClass=t.animateClass||"animated";this._offset=t.offset||0;this._mobile=void 0===t.mobile;this._live=void 0===t.live;this._seoFixEnabled=void 0===t.seoFixEnabled;this._animationDuration=t.animationDuration||"1s";this._animationDelay=t.animationDelay||"0s";this._initStorageVariables()};WOW.prototype._initStorageVariables=function(){this._animation=[];this._boxes=[];this._cleanupBoxListener=[];this._cleanupBoxVisibleListener=[]};WOW.prototype.init=function(){!this._mobile&&this._isMobile()||(this._eachBoxInit(this._prepareBox.bind(this)),this._startWow())};WOW.prototype._isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};WOW.prototype._eachBoxInit=function(n){for(var i=document.getElementsByClassName(this._boxClass),t=0;t<i.length;t++)!function(t){n(i[t],t)}(t)};WOW.prototype._prepareBox=function(n){var t=this._boxes.push(n)-1;this._animation[t]={animationName:n.style.animationName||window.getComputedStyle(n,null).animationName};n.style.animationName="none";n.style.visibility="hidden"};WOW.prototype._startWow=function(){this._live&&this._checkForChanges();0===this._scrollY()&&this._seoFixEnabled&&this._seoFix();this._appearInView();this._scrollHandler()};WOW.prototype._scrollY=function(){return this._isInt(window.pageYOffset)?window.pageYOffset:this._isInt(document.documentElement.scrollTop)?document.documentElement.scrollTop:this._isInt(document.body.scrollTop)?document.body.scrollTop:void 0};WOW.prototype._isInt=function(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n};WOW.prototype._seoFix=function(){this._showNotInView()};WOW.prototype._appear=function(n,t){n.style.animationPlayState||n.style.WebkitAnimationPlayState;n.className.indexOf(this._animateClass)===-1&&(delete this._boxes[t],this._onStartAnimation(n,t),this._onStopAnimation(n,t),this._animate(n,t,this._getAnimationConfig(n)))};WOW.prototype._onStartAnimation=function(n,t){this._cleanupBoxVisibleListener[t]=this._boxVisible.bind(this,n,t);n.addEventListener("animationstart",this._cleanupBoxVisibleListener[t]);n.addEventListener("webkitAnimationStart",this._cleanupBoxVisibleListener[t])};WOW.prototype._onStopAnimation=function(n,t){this._cleanupBoxListener[t]=this._cleanupBox.bind(this,n,t);n.addEventListener("animationend",this._cleanupBoxListener[t]);n.addEventListener("webkitAnimationEnd",this._cleanupBoxListener[t])};WOW.prototype._getAnimationConfig=function(n){return{delay:this._getDelay(n),duration:this._getDuration(n),iterations:this._getIterations(n)}};WOW.prototype._getDelay=function(n){return n.getAttribute("data-wow-delay")||this._animationDelay};WOW.prototype._getDuration=function(n){return n.getAttribute("data-wow-duration")||this._animationDuration};WOW.prototype._getIterations=function(n){return n.getAttribute("data-wow-iteration")||n.style.animationIterationCount||window.getComputedStyle(n,null).animationIterationCount||1};WOW.prototype._animate=function(n,t,i){n.style.animationDelay=i.delay;n.style.animationDuration=i.duration;n.style.animationIterationCount=i.iterations;n.style.animationName=this._animation[t].animationName;n.className+=" "+this._animateClass};WOW.prototype._boxVisible=function(n,t){n.style.visibility="visible";n.removeEventListener("animationstart",this._cleanupBoxVisibleListener[t]);n.removeEventListener("webkitAnimationStart",this._cleanupBoxVisibleListener[t]);delete this._cleanupBoxVisibleListener[t]};WOW.prototype._cleanupBox=function(n,t){n.style.animationDelay="";n.style.animationDuration="";n.style.animationIterationCount="";n.style.animationName="none";this._cleanupClass(n);n.removeEventListener("animationend",this._cleanupBoxListener[t]);n.removeEventListener("webkitAnimationEnd",this._cleanupBoxListener[t]);delete this._cleanupBoxListener[t]};WOW.prototype._cleanupClass=function(n){var t=n.className.split(" "),i=t.indexOf(this._animateClass);i!==-1&&(t.splice(i,1),n.className=t.join(" "))};WOW.prototype._eachBox=function(n){for(var t=0;t<this._boxes.length;t++)this._boxes[t]&&function(t){n(this._boxes[t],t)}.bind(this)(t)};WOW.prototype._scrollHandler=function(){this._hideSeoFixListener=this._hideSeoFix.bind(this);window.addEventListener("scroll",this._hideSeoFixListener);window.addEventListener("scroll",this._appearInView.bind(this));window.addEventListener("resize",this._appearInView.bind(this))};WOW.prototype._hideSeoFix=function(){window.removeEventListener("scroll",this._hideSeoFixListener);delete this._hideSeoFixListener;this._eachBox(function(n){this._isInView(n)||(n.style.visibility="hidden")}.bind(this))};WOW.prototype._appearInView=function(){this._eachBox(function(n,t){this._animateBox(n,t)}.bind(this))};WOW.prototype._animateBox=function(n,t){this._isInView(n)&&(delete this._boxes[t],this._appear(n,t))};WOW.prototype._showNotInView=function(){this._eachBox(function(n,t){this._makeVisible(n,t)}.bind(this))};WOW.prototype._makeVisible=function(n,t){this._isInView(n)||(this._boxes[t].style.visibility="visible")};WOW.prototype._isInView=function(n){var i=n.getAttribute("data-wow-offset")||this._offset,r=this._getElementOffset(n),t=r+~~i;return t<=window.innerHeight+this._scrollY()&&(0===t?10:t)>=this._scrollY()};WOW.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=document.body,r=this._scrollY(),u=document.documentElement.clientTop||i.clientTop||0,f=t.top+r-u;return Math.round(f)};WOW.prototype._checkForChanges=function(){var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,t=new n(this._mutations.bind(this));t.observe(document.body,{childList:!0,subtree:!0})};WOW.prototype._mutations=function(n){n.forEach(function(n){for(var t=0;t<n.addedNodes.length;t++)this.doSync(n.addedNodes[t])}.bind(this))};WOW.prototype.doSync=function(n){n.className&&n.className.split(" ").indexOf(this._boxClass)!==-1&&this._prepareBox(n)};OFFSET_TOP=50;$(window).scroll(function(){$(".navbar").length>0&&($(".navbar").offset().top>OFFSET_TOP?$(".scrolling-navbar").addClass("top-nav-collapse"):$(".scrolling-navbar").removeClass("top-nav-collapse"))}),function(n,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(n)}):"object"==typeof exports?module.exports=t.call(n):n.Waves=t.call(n)}("object"==typeof global?global:this,function(){"use strict";function c(n){return null!==n&&n===n.window}function l(n){return c(n)?n:9===n.nodeType&&n.defaultView}function f(n){var t=typeof n;return"function"===t||"object"===t&&!!n}function a(n){return f(n)&&n.nodeType>0}function r(n){var t=s.call(n);return"[object String]"===t?p(n):f(n)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(t)&&n.hasOwnProperty("length")?n:a(n)?[n]:[]}function e(n){var t,i,r={top:0,left:0},u=n&&n.ownerDocument;return t=u.documentElement,void 0!==n.getBoundingClientRect&&(r=n.getBoundingClientRect()),i=l(u),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}}function u(n){var i="";for(var t in n)n.hasOwnProperty(t)&&(i+=t+":"+n[t]+";");return i}function v(t,i,r){var f;if(r){r.classList.remove("waves-rippling");var h=r.getAttribute("data-x"),c=r.getAttribute("data-y"),e=r.getAttribute("data-scale"),o=r.getAttribute("data-translate"),l=Date.now()-Number(r.getAttribute("data-hold")),s=350-l;s<0&&(s=0);"mousemove"===t.type&&(s=150);f="mousemove"===t.type?2500:n.duration;setTimeout(function(){var n={top:c+"px",left:h+"px",opacity:"0","-webkit-transition-duration":f+"ms","-moz-transition-duration":f+"ms","-o-transition-duration":f+"ms","transition-duration":f+"ms","-webkit-transform":e+" "+o,"-moz-transform":e+" "+o,"-ms-transform":e+" "+o,"-o-transform":e+" "+o,transform:e+" "+o};r.setAttribute("style",u(n));setTimeout(function(){try{i.removeChild(r)}catch(n){return!1}},f)},s)}}function y(n){if(i.allowEvent(n)===!1)return null;for(var r=null,t=n.target||n.srcElement;null!==t.parentElement;){if(t.classList.contains("waves-effect")&&!(t instanceof SVGElement)){r=t;break}t=t.parentElement}return r}function o(t){var r=y(t);if(null!==r){if(r.disabled||r.getAttribute("disabled")||r.classList.contains("disabled"))return;if(i.registerEvent(t),"touchstart"===t.type&&n.delay){var e=!1,u=setTimeout(function(){u=null;n.show(t,r)},n.delay),f=function(i){u&&(clearTimeout(u),u=null,n.show(t,r));e||(e=!0,n.hide(i,r))},o=function(n){u&&(clearTimeout(u),u=null);f(n)};r.addEventListener("touchmove",o,!1);r.addEventListener("touchend",f,!1);r.addEventListener("touchcancel",f,!1)}else n.show(t,r),h&&(r.addEventListener("touchend",n.hide,!1),r.addEventListener("touchcancel",n.hide,!1)),r.addEventListener("mouseup",n.hide,!1),r.addEventListener("mouseleave",n.hide,!1)}}var t=t||{},p=document.querySelectorAll.bind(document),s=Object.prototype.toString,h="ontouchstart"in window,n={duration:750,delay:200,show:function(t,i,r){var o,l,s,f,a;if(2===t.button)return!1;i=i||this;o=document.createElement("div");o.className="waves-ripple waves-rippling";i.appendChild(o);var v=e(i),h=0,c=0;"touches"in t&&t.touches.length?(h=t.touches[0].pageY-v.top,c=t.touches[0].pageX-v.left):(h=t.pageY-v.top,c=t.pageX-v.left);c=c>=0?c:0;h=h>=0?h:0;l="scale("+i.clientWidth/100*3+")";s="translate(0,0)";r&&(s="translate("+r.x+"px, "+r.y+"px)");o.setAttribute("data-hold",Date.now());o.setAttribute("data-x",c);o.setAttribute("data-y",h);o.setAttribute("data-scale",l);o.setAttribute("data-translate",s);f={top:h+"px",left:c+"px"};o.classList.add("waves-notransition");o.setAttribute("style",u(f));o.classList.remove("waves-notransition");f["-webkit-transform"]=l+" "+s;f["-moz-transform"]=l+" "+s;f["-ms-transform"]=l+" "+s;f["-o-transform"]=l+" "+s;f.transform=l+" "+s;f.opacity="1";a="mousemove"===t.type?2500:n.duration;f["-webkit-transition-duration"]=a+"ms";f["-moz-transition-duration"]=a+"ms";f["-o-transition-duration"]=a+"ms";f["transition-duration"]=a+"ms";o.setAttribute("style",u(f))},hide:function(n,t){t=t||this;for(var r=t.getElementsByClassName("waves-rippling"),i=0,u=r.length;i<u;i++)v(n,t,r[i])}},w={input:function(n){var i=n.parentNode,t,r;"div"===i.tagName.toLowerCase()&&i.classList.contains("waves-effect")||(t=document.createElement("div"),t.className="waves-input-wrapper",i.replaceChild(t,n),t.appendChild(n),r=window.getComputedStyle(n,null),r.color,r.backgroundColor)},img:function(n){var t=n.parentNode,i;"i"===t.tagName.toLowerCase()&&t.classList.contains("waves-effect")||(i=document.createElement("i"),t.replaceChild(i,n),i.appendChild(n))}},i={touches:0,allowEvent:function(n){var t=!0;return/^(mousedown|mousemove)$/.test(n.type)&&i.touches&&(t=!1),t},registerEvent:function(n){var t=n.type;"touchstart"===t?i.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){i.touches&&(i.touches-=1)},500)}};return t.init=function(t){var r=document.body;t=t||{};"duration"in t&&(n.duration=t.duration);"delay"in t&&(n.delay=t.delay);h&&(r.addEventListener("touchstart",o,!1),r.addEventListener("touchcancel",i.registerEvent,!1),r.addEventListener("touchend",i.registerEvent,!1));r.addEventListener("mousedown",o,!1)},t.attach=function(n,t){n=r(n);"[object Array]"===s.call(t)&&(t=t.join(" "));t=t?" "+t:"";for(var i,u,f=0,e=n.length;f<e;f++)i=n[f],u=i.tagName.toLowerCase(),["input","img"].indexOf(u)!==-1&&(w[u](i),i=i.parentElement),i.className.indexOf("waves-effect")===-1&&(i.className+=" waves-effect"+t)},t.ripple=function(t,i){var o,a;if(t=r(t),o=t.length,i=i||{},i.wait=i.wait||0,i.position=i.position||null,o)for(var u,s,h,f={},c=0,l={type:"mousedown",button:1};c<o;c++)(u=t[c],s=i.position||{x:u.clientWidth/2,y:u.clientHeight/2},h=e(u),f.x=h.left+s.x,f.y=h.top+s.y,l.pageX=f.x,l.pageY=f.y,n.show(l,u),i.wait>=0&&null!==i.wait)&&(a={type:"mouseup",button:1},setTimeout(function(t,i){return function(){n.hide(t,i)}}(a,u),i.wait))},t.calm=function(t){t=r(t);for(var u={type:"mouseup",button:1},i=0,f=t.length;i<f;i++)n.hide(u,t[i])},t.displayEffect=function(n){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect");t.init(n)},t});Waves.attach(".btn:not(.btn-flat), .btn-floating",["waves-light"]);Waves.attach(".btn-flat",["waves-effect"]);Waves.attach(".view .mask",["waves-light"]);Waves.attach(".waves-light",["waves-light"]);Waves.attach(".navbar-nav a:not(.navbar-brand), .nav-icons li a, .navbar form, .nav-tabs .nav-item",["waves-light"]);Waves.attach(".pager li a",["waves-light"]);Waves.attach(".pagination .page-item .page-link",["waves-effect"]);Waves.init(),function(n){n(document).ready(function(){var t=["text","password","email","url","tel","number","search","search-md"].map(function(n){return"input[type="+n+"]"}).join(", ")+", textarea",i=function(n){var t=n.siblings("label, i"),i=n.val().length,r=n.attr("placeholder");t[(i||r?"add":"remove")+"Class"]("active")},r=function(n){var r,t;if(n.hasClass("validate")){var i=n.val(),u=!i.length,f=!n[0].validity.badInput;u&&f?n.removeClass("valid").removeClass("invalid"):(r=n.is(":valid"),t=Number(n.attr("length"))||0,r&&(!t||t>i.length)?n.removeClass("invalid").addClass("valid"):n.removeClass("valid").addClass("invalid"))}},u=function(){var t=n(void 0),f;if(t.val().length){var i=n(".hiddendiv"),r=t.css("font-family"),u=t.css("font-size");u&&i.css("font-size",u);r&&i.css("font-family",r);"off"===t.attr("wrap")&&i.css("overflow-wrap","normal").css("white-space","pre");i.text(t.val()+"\n");f=i.html().replace(/\n/g,"<br>");i.html(f);i.css("width",t.is(":visible")?t.width():n(window).width()/2);t.css("height",i.height())}};n(t).each(function(t,r){var u=n(r),f=u.siblings("label, i");i(u);r.validity.badInput&&f.addClass("active")});n(document).on("focus",t,function(t){n(t.target).siblings("label, i").addClass("active")});n(document).on("blur",t,function(t){var i=n(t.target),u=!i.val(),f=!t.target.validity.badInput,e=void 0===i.attr("placeholder");u&&f&&e&&i.siblings("label, i").removeClass("active");r(i)});n(document).on("change",t,function(t){var u=n(t.target);i(u);r(u)});n("input[autofocus]").siblings("label, i").addClass("active");n(document).on("reset",function(i){var r=n(i.target);r.is("form")&&(r.find(t).removeClass("valid").removeClass("invalid").each(function(t,i){var r=n(i),u=!r.val(),f=!r.attr("placeholder");u&&f&&r.siblings("label, i").removeClass("active")}),r.find("select.initialized").each(function(t,i){var r=n(i),f=r.siblings("input.select-dropdown"),u=r.children("[selected]").val();r.val(u);f.val(u)}))});n(".hiddendiv").first().length||($hiddenDiv=n('<div class="hiddendiv common"><\/div>'),n("body").append($hiddenDiv));n(".materialize-textarea").each(u);n("body").on("keyup keydown",".materialize-textarea",u)})}(jQuery);$(document).ready(function(){$("#preloader-markup").load("mdb-addons/preloader.html",function(){$(window).load(function(){$("#mdb-preloader").fadeOut("slow")})})}),function(n){n(document).ready(function(){n(document).on("click.card",".card",function(t){var r=n(this);if(r.find(".card-reveal").length){var i=n(t.target),u=i.is(".card-reveal .card-title"),f=i.is(".card-reveal .card-title i"),e=i.is(".card .activator"),o=i.is(".card .activator i");u||f?r.find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){n(this).css({display:"none"})}}):(e||o)&&r.find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"})}});n(".rotate-btn").on("click",function(){n("#"+n(this).attr("data-card")).toggleClass("flipped")})})}(jQuery);$(document).ready(function(n){n(".card-share > a").on("click",function(t){t.preventDefault();n(this).parent().find("div").toggleClass("social-reveal-active");n(this).toggleClass("share-expanded")})}),function(n){function t(){var t=Number(n(this).attr("length")),i=Number(n(this).val().length),r=i<=t;n(this).parent().find('span[class="character-counter"]').html(i+"/"+t);u(r,n(this))}function i(t){var i=n("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1);t.parent().append(i)}function r(){n(this).parent().find('span[class="character-counter"]').html("")}function u(n,t){var i=t.hasClass("invalid");n&&i?t.removeClass("invalid"):n||i||(t.removeClass("valid"),t.addClass("invalid"))}n.fn.characterCounter=function(){return this.each(function(){void 0!==n(this).attr("length")&&(n(this).on("input",t),n(this).on("focus",t),n(this).on("blur",r),i(n(this)))})};n(document).ready(function(){n("input, textarea").characterCounter()})}(jQuery),function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n,u){var f=i();t||r(f);h(n,f,u)||g(f)}function d(u){var f=i();if(t||r(f),u&&0===n(":focus",u).length)return void e(u);t.children().length&&t.remove()}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)h(n(u[r]),i)}function h(t,i,r){var u=!(!r||!r.force)&&r.force;return!(!t||!u&&0!==n(":focus",t).length)&&(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0)}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;<\/button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function c(n){o&&o(n)}function u(u){function g(){u.iconClass&&o.addClass(f.toastClass).addClass(p)}function nt(){f.newestOnTop?t.prepend(o):t.append(o)}function tt(){u.title&&(k.append(u.title).addClass(f.titleClass),o.append(k))}function it(){u.message&&(d.append(u.message).addClass(f.messageClass),o.append(d))}function rt(){f.closeButton&&(y.addClass("toast-close-button").attr("role","button"),o.prepend(y))}function ut(){f.progressBar&&(b.addClass("toast-progress"),o.prepend(b))}function v(t){if(!n(":focus",o).length||t)return clearTimeout(h.intervalId),o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&"hidden"!==a.state&&f.onHidden();a.state="hidden";a.endTime=new Date;c(a)}})}function ft(){(f.timeOut>0||f.extendedTimeOut>0)&&(w=setTimeout(v,f.extendedTimeOut),h.maxHideTime=parseFloat(f.extendedTimeOut),h.hideEta=(new Date).getTime()+h.maxHideTime)}function et(){clearTimeout(w);h.hideEta=0;o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function ot(){var n=(h.hideEta-(new Date).getTime())/h.maxHideTime*100;b.width(n+"%")}var f=i(),p=u.iconClass||f.iconClass;if(void 0!==u.optionsOverride&&(f=n.extend(f,u.optionsOverride),p=u.optionsOverride.iconClass||p),!function(n,t){if(n.preventDuplicates){if(t.message===s)return!0;s=t.message}return!1}(f,u)){l++;t=r(f,!0);var w=null,o=n("<div/>"),k=n("<div/>"),d=n("<div/>"),b=n("<div/>"),y=n(f.closeHtml),h={intervalId:null,hideEta:null,maxHideTime:null},a={toastId:l,state:"visible",startTime:new Date,options:f,map:u};return function(){g();tt();it();rt();ut();nt()}(),function(){o.hide();o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown});f.timeOut>0&&(w=setTimeout(v,f.timeOut),h.maxHideTime=parseFloat(f.timeOut),h.hideEta=(new Date).getTime()+h.maxHideTime,f.progressBar&&(h.intervalId=setInterval(ot,10)))}(),function(){o.hover(et,ft);!f.onclick&&f.tapToDismiss&&o.click(v);f.closeButton&&y&&y.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);v(!0)});f.onclick&&o.click(function(){f.onclick();v()})}(),c(a),f.debug&&console&&console.log(a),o}}function i(){return n.extend({},tt(),a.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&(t.remove(),s=void 0))}var t,o,s,l=0,f={error:"error",info:"info",success:"success",warning:"warning"},a={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.1",warning:b};return a}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)});$(".smooth-scroll").on("click","a",function(n){n.preventDefault();var t=$(this).attr("href"),r=$(this).attr("data-offset")?$(this).attr("data-offset"):0,i=$(this).closest("ul").attr("data-allow-hashes");$("body,html").animate({scrollTop:$(t).offset().top-r},700);void 0!==i&&i!==!1&&history.replaceState(null,null,t)}),function(n){n.fn.scrollTo=function(t){return n(this).scrollTop(n(this).scrollTop()-n(this).offset().top+n(t).offset().top),this};n.fn.dropdown=function(t){var i={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left"};this.each(function(){function c(){void 0!==r.data("induration")&&(f.inDuration=r.data("inDuration"));void 0!==r.data("outduration")&&(f.outDuration=r.data("outDuration"));void 0!==r.data("constrainwidth")&&(f.constrain_width=r.data("constrainwidth"));void 0!==r.data("hover")&&(f.hover=r.data("hover"));void 0!==r.data("gutter")&&(f.gutter=r.data("gutter"));void 0!==r.data("beloworigin")&&(f.belowOrigin=r.data("beloworigin"));void 0!==r.data("alignment")&&(f.alignment=r.data("alignment"))}function s(t){var y,e,b,k;"focus"===t&&(h=!0);c();u.addClass("active");r.addClass("active");f.constrain_width===!0?u.css("width",r.outerWidth()):u.css("white-space","nowrap");var p=window.innerHeight,l=r.innerHeight(),w=r.offset().left,a=r.offset().top-n(window).scrollTop(),o=f.alignment,s=0,v=0,i=0;f.belowOrigin===!0&&(i=l);y=0;e=r.parent();(!e.is("body")&&e[0].scrollHeight>e[0].clientHeight&&(y=e[0].scrollTop),w+u.innerWidth()>n(window).width()?o="right":w-u.innerWidth()+r.innerWidth()<0&&(o="left"),a+u.innerHeight()>p)&&(a+l-u.innerHeight()<0?(b=p-a-i,u.css("max-height",b)):(i||(i+=l),i-=u.innerHeight()));"left"===o?(s=f.gutter,v=r.position().left+s):"right"===o&&(k=r.position().left+r.outerWidth()-u.outerWidth(),s=-f.gutter,v=k+s);u.css({position:"absolute",top:r.position().top+i+y,left:v});u.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:f.inDuration,easing:"easeOutCubic",complete:function(){n(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:f.inDuration,easing:"easeOutSine"})}function e(){h=!1;u.fadeOut(f.outDuration);u.removeClass("active");r.removeClass("active");setTimeout(function(){u.css("max-height","")},f.outDuration)}var r=n(this),f=n.extend({},i,t),h=!1,u=n("#"+r.attr("data-activates")),o;(c(),r.after(u),f.hover)?(o=!1,r.unbind("click."+r.attr("id")),r.on("mouseenter",function(){o===!1&&(s(),o=!0)}),r.on("mouseleave",function(t){n(t.toElement||t.relatedTarget).closest(".dropdown-content").is(u)||(u.stop(!0,!0),e(),o=!1)}),u.on("mouseleave",function(t){n(t.toElement||t.relatedTarget).closest(".dropdown-button").is(r)||(u.stop(!0,!0),e(),o=!1)})):(r.unbind("click."+r.attr("id")),r.bind("click."+r.attr("id"),function(t){h||(r[0]!==t.currentTarget||r.hasClass("active")||0!==n(t.target).closest(".dropdown-content").length?r.hasClass("active")&&(e(),n(document).unbind("click."+u.attr("id")+" touchstart."+u.attr("id"))):(t.preventDefault(),s("click")),u.hasClass("active")&&n(document).bind("click."+u.attr("id")+" touchstart."+u.attr("id"),function(t){u.is(t.target)||r.is(t.target)||r.find(t.target).length||(e(),n(document).unbind("click."+u.attr("id")+" touchstart."+u.attr("id")))}))}));r.on("open",function(n,t){s(t)});r.on("close",e)})};n(document).ready(function(){n(".dropdown-button").dropdown()})}(jQuery);dropdownSelectors=$(".dropdown, .dropup");dropdownSelectors.on({"show.bs.dropdown":function(){var n=dropdownEffectData(this);dropdownEffectStart(n,n.effectIn)},"shown.bs.dropdown":function(){var n=dropdownEffectData(this);n.effectIn&&n.effectOut&&dropdownEffectEnd(n)},"hide.bs.dropdown":function(n){var t=dropdownEffectData(this);t.effectOut&&(n.preventDefault(),dropdownEffectStart(t,t.effectOut),dropdownEffectEnd(t,function(){t.dropdown.removeClass("open");t.dropdown.removeClass("show")}))}}),function(n){function r(t){if($this=t,$this.hasClass("active")===!1){$this.addClass("active");$this.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:"40px"},{duration:0});var i=0;$this.find("ul .btn-floating").reverse().each(function(){n(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0"},{duration:80,delay:i});i+=40})}else $this.removeClass("active"),$this.find("ul .btn-floating").velocity("stop",!0),$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:"40px"},{duration:80})}n(document).ready(function(){n.fn.reverse=[].reverse;n(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",function(){t(n(this))});n(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",function(){i(n(this))});n(document).on("click.fixedActionBtn",".fixed-action-btn.click-to-toggle > a",function(){var u=n(this),r=u.parent();r.hasClass("active")?i(r):t(r)})});n.fn.extend({openFAB:function(){t(n(this))},closeFAB:function(){i(n(this))}});var t=function(t){var i=t,r;if(i.hasClass("active")===!1){var e=i.hasClass("horizontal"),u=void 0,f=void 0;e===!0?f=40:u=40;i.addClass("active");i.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:u+"px",translateX:f+"px"},{duration:0});r=0;i.find("ul .btn-floating").reverse().each(function(){n(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:r});r+=40})}},i=function(n){$this=n;var r=$this.hasClass("horizontal"),t=void 0,i=void 0;r===!0?i=40:t=40;$this.removeClass("active");$this.find("ul .btn-floating").velocity("stop",!0);$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:t+"px",translateX:i+"px"},{duration:80})};n(".fixed-action-btn").on({click:function(t){return t.preventDefault(),r(n(".fixed-action-btn")),!1}})}(jQuery),function(n,t,i,r){"use strict";function oi(n,t,i){return setTimeout(si(n,i),t)}function it(n,t,i){return!!Array.isArray(n)&&(a(n,i[t],i),!0)}function a(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function tr(t,i,r){var u="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),f=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,u,f),t.apply(this,arguments)}}function o(n,t,i){var r,u=t.prototype;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&p(r,i)}function si(n,t){return function(){return n.apply(t,arguments)}}function hi(n,t){return typeof n==tf?n.apply(t?t[0]||r:r,t):n}function ir(n,t){return n===r?t:n}function vt(n,t,i){a(pt(t),function(t){n.addEventListener(t,i,!1)})}function yt(n,t,i){a(pt(t),function(t){n.removeEventListener(t,i,!1)})}function rr(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1}function k(n,t){return n.indexOf(t)>-1}function pt(n){return n.trim().split(/\s+/g)}function rt(n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function wt(n){return Array.prototype.slice.call(n,0)}function ur(n,t,i){for(var f,u=[],e=[],r=0;r<n.length;)f=t?n[r][t]:n[r],rt(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function bt(n,t){for(var i,f,e=t[0].toUpperCase()+t.slice(1),u=0;u<pr.length;){if(i=pr[u],(f=i?i+e:t)in n)return f;u++}return r}function ou(){return uf++}function fr(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){hi(n.options.enable,[n])&&i.handler(t)};this.init()}function su(n){var t=n.options.inputClass;return new(t?t:ff?li:ef?gt:br?ai:dt)(n,hu)}function hu(n,t,i){var r=i.pointers.length,o=i.changedPointers.length,s=t&f&&r-o==0,h=t&(u|e)&&r-o==0;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;cu(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function cu(n,t){var i=n.session,f=t.pointers,o=f.length,r,e;i.firstInput||(i.firstInput=er(t));o>1&&!i.firstMultiple?i.firstMultiple=er(t):1===o&&(i.firstMultiple=!1);var s=i.firstInput,u=i.firstMultiple,h=u?u.center:s.center,c=t.center=or(f);t.timeStamp=di();t.deltaTime=t.timeStamp-s.timeStamp;t.angle=ci(h,c);t.distance=kt(h,c);lu(i,t);t.offsetDirection=hr(t.deltaX,t.deltaY);r=sr(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=r.x;t.overallVelocityY=r.y;t.overallVelocity=d(r.x)>d(r.y)?r.x:r.y;t.scale=u?yu(u.pointers,f):1;t.rotation=u?vu(u.pointers,f):0;t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length;au(i,t);e=n.element;rr(t.srcEvent.target,e)&&(e=t.srcEvent.target);t.target=e}function lu(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};t.eventType!==f&&o.eventType!==u||(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function au(n,t){var f,o,s,h,i=n.lastInterval||t,c=t.timeStamp-i.timeStamp;if(t.eventType!=e&&(c>of||i.velocity===r)){var l=t.deltaX-i.deltaX,a=t.deltaY-i.deltaY,u=sr(c,l,a);o=u.x;s=u.y;f=d(u.x)>d(u.y)?u.x:u.y;h=hr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function er(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:ut(n.pointers[t].clientX),clientY:ut(n.pointers[t].clientY)},t++;return{timeStamp:di(),pointers:i,center:or(i),deltaX:n.deltaX,deltaY:n.deltaY}}function or(n){var t=n.length;if(1===t)return{x:ut(n[0].clientX),y:ut(n[0].clientY)};for(var r=0,u=0,i=0;i<t;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:ut(r/t),y:ut(u/t)}}function sr(n,t,i){return{x:t/n||0,y:i/n||0}}function hr(n,t){return n===t?ri:d(n)>=d(t)?n<0?et:ot:t<0?st:ht}function kt(n,t,i){i||(i=dr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function ci(n,t,i){i||(i=dr);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return 180*Math.atan2(u,r)/Math.PI}function vu(n,t){return ci(t[1],t[0],ui)+ci(n[1],n[0],ui)}function yu(n,t){return kt(t[0],t[1],ui)/kt(n[0],n[1],ui)}function dt(){this.evEl=hf;this.evWin=cf;this.pressed=!1;s.apply(this,arguments)}function li(){this.evEl=gr;this.evWin=nu;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function cr(){this.evTarget=yf;this.evWin=pf;this.started=!1;s.apply(this,arguments)}function pu(n,t){var i=wt(n.touches),r=wt(n.changedTouches);return t&(u|e)&&(i=ur(i.concat(r),"identifier",!0)),[i,r]}function gt(){this.evTarget=iu;this.targetIds={};s.apply(this,arguments)}function wu(n,t){var r=wt(n.touches),o=this.targetIds;if(t&(f|g)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var i,s,h=wt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return rr(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[ur(s.concat(c),"identifier",!0),c]}function ai(){s.apply(this,arguments);var n=si(this.handler,this);this.touch=new gt(this.manager,n);this.mouse=new dt(this.manager,n);this.primaryTouch=null;this.lastTouches=[]}function bu(n,t){n&f?(this.primaryTouch=t.changedPointers[0].identifier,lr.call(this,t)):n&(u|e)&&lr.call(this,t)}function lr(n){var t=n.changedPointers[0],i,r,u;t.identifier===this.primaryTouch&&(i={x:t.clientX,y:t.clientY},this.lastTouches.push(i),r=this.lastTouches,u=function(){var n=r.indexOf(i);n>-1&&r.splice(n,1)},setTimeout(u,ru))}function ku(n){for(var r=n.srcEvent.clientX,u=n.srcEvent.clientY,t=0;t<this.lastTouches.length;t++){var i=this.lastTouches[t],f=Math.abs(r-i.x),e=Math.abs(u-i.y);if(f<=gi&&e<=gi)return!0}return!1}function vi(n,t){this.manager=n;this.set(t)}function du(n){if(k(n,tt))return tt;var t=k(n,ct),i=k(n,lt);return t&&i?tt:t||i?t?ct:lt:k(n,nr)?nr:eu}function v(n){this.options=p({},this.defaults,n||{});this.id=ou();this.manager=null;this.options.enable=ir(this.options.enable,!0);this.state=ei;this.simultaneous={};this.requireFail=[]}function ar(n){return n&at?"cancel":n&b?"end":n&ft?"move":n&h?"start":""}function vr(n){return n==ht?"down":n==st?"up":n==et?"left":n==ot?"right":""}function ni(n,t){var i=t.manager;return i?i.get(n):n}function c(){v.apply(this,arguments)}function ti(){c.apply(this,arguments);this.pX=null;this.pY=null}function yi(){c.apply(this,arguments)}function pi(){v.apply(this,arguments);this._timer=null;this._input=null}function wi(){c.apply(this,arguments)}function bi(){c.apply(this,arguments)}function ii(){v.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function y(n,t){return t=t||{},t.recognizers=ir(t.recognizers,y.defaults.preset),new ki(n,t)}function ki(n,t){this.options=p({},y.defaults,t||{});this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=n;this.input=su(this);this.touchAction=new vi(this,this.options.touchAction);yr(this,!0);a(this.options.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function yr(n,t){var r=n.element,i;r.style&&(a(n.options.cssProps,function(u,f){i=bt(r.style,f);t?(n.oldCssProps[i]=r.style[i],r.style[i]=u):r.style[i]=n.oldCssProps[i]||""}),t||(n.oldCssProps={}))}function gu(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var p,pr=["","webkit","Moz","MS","ms","o"],nf=t.createElement("div"),tf="function",ut=Math.round,d=Math.abs,di=Date.now,tu,iu,ru,gi;p="function"!=typeof Object.assign?function(n){var f,i,t,u;if(n===r||null===n)throw new TypeError("Cannot convert undefined or null to object");for(f=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==r&&null!==t)for(u in t)t.hasOwnProperty(u)&&(f[u]=t[u]);return f}:Object.assign;var wr=tr(function(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n},"extend","Use `assign`."),rf=tr(function(n,t){return wr(n,t,!0)},"merge","Use `assign`."),uf=1,br="ontouchstart"in n,ff=bt(n,"PointerEvent")!==r,ef=br&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),of=25,f=1,g=2,u=4,e=8,ri=1,et=2,ot=4,st=8,ht=16,l=et|ot,nt=st|ht,kr=l|nt,dr=["x","y"],ui=["clientX","clientY"];s.prototype={handler:function(){},init:function(){this.evEl&&vt(this.element,this.evEl,this.domHandler);this.evTarget&&vt(this.target,this.evTarget,this.domHandler);this.evWin&&vt(fr(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&yt(this.element,this.evEl,this.domHandler);this.evTarget&&yt(this.target,this.evTarget,this.domHandler);this.evWin&&yt(fr(this.element),this.evWin,this.domHandler)}};var sf={mousedown:f,mousemove:g,mouseup:u},hf="mousedown",cf="mousemove mouseup";o(dt,s,{handler:function(n){var t=sf[n.type];t&f&&0===n.button&&(this.pressed=!0);t&g&&1!==n.which&&(t=u);this.pressed&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:"mouse",srcEvent:n}))}});var lf={pointerdown:f,pointermove:g,pointerup:u,pointercancel:e,pointerout:e},af={2:"touch",3:"pen",4:"mouse",5:"kinect"},gr="pointerdown",nu="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(gr="MSPointerDown",nu="MSPointerMove MSPointerUp MSPointerCancel");o(li,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=lf[h],s=af[n.pointerType]||n.pointerType,c="touch"==s,i=rt(t,n.pointerId,"pointerId");r&f&&(0===n.button||c)?i<0&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0);i<0||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var vf={touchstart:f,touchmove:g,touchend:u,touchcancel:e},yf="touchstart",pf="touchstart touchmove touchend touchcancel";o(cr,s,{handler:function(n){var i=vf[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=pu.call(this,n,i),i&(u|e)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:"touch",srcEvent:n}))}});tu={touchstart:f,touchmove:g,touchend:u,touchcancel:e};iu="touchstart touchmove touchend touchcancel";o(gt,s,{handler:function(n){var i=tu[n.type],t=wu.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:"touch",srcEvent:n})}});ru=2500;gi=25;o(ai,s,{handler:function(n,t,i){var u="touch"==i.pointerType,r="mouse"==i.pointerType;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(u)bu.call(this,t,i);else if(r&&ku.call(this,i))return;this.callback(n,t,i)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var uu=bt(nf.style,"touchAction"),fu=uu!==r,eu="auto",nr="manipulation",tt="none",ct="pan-x",lt="pan-y",fi=function(){if(!fu)return!1;var t={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=!i||n.CSS.supports("touch-action",r)}),t}();vi.prototype={set:function(n){"compute"==n&&(n=this.compute());fu&&this.manager.element.style&&fi[n]&&(this.manager.element.style[uu]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return a(this.manager.recognizers,function(t){hi(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),du(n.join(" "))},preventDefaults:function(n){var i=n.srcEvent,r=n.offsetDirection;if(this.manager.session.prevented)return void i.preventDefault();var t=this.actions,u=k(t,tt)&&!fi[tt],f=k(t,lt)&&!fi[lt],e=k(t,ct)&&!fi[ct];if(u){var o=1===n.pointers.length,s=n.distance<2,h=n.deltaTime<250;if(o&&s&&h)return}if(!e||!f)return u||f&&r&l||e&&r&nt?this.preventSrc(i):void 0},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var ei=1,h=2,ft=4,b=8,w=b,at=16;v.prototype={defaults:{},set:function(n){return p(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(it(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=ni(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return it(n,"dropRecognizeWith",this)?this:(n=ni(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(it(n,"requireFailure",this))return this;var t=this.requireFail;return n=ni(n,this),rt(t,n)===-1&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(it(n,"dropRequireFailure",this))return this;n=ni(n,this);var t=rt(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function t(t){i.manager.emit(t,n)}var i=this,r=this.state;r<b&&t(i.options.event+ar(r));t(i.options.event);n.additionalEvent&&t(n.additionalEvent);r>=b&&t(i.options.event+ar(r))},tryEmit:function(n){if(this.canEmit())return this.emit(n);this.state=32},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(32|ei)))return!1;n++}return!0},recognize:function(n){var t=p({},n);if(!hi(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(w|at|32)&&(this.state=ei);this.state=this.process(t);this.state&(h|ft|b|at)&&this.tryEmit(t)},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,v,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return 0===t||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|ft),f=this.attrTest(n);return r&&(i&e||!f)?t|at:r||f?i&u?t|b:t&h?t|ft:h:32}});o(ti,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:kr},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(lt),t&nt&&n.push(ct),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&l?(t=0===f?ri:f<0?et:ot,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=0===e?ri:e<0?st:ht,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=vr(n.direction);t&&(n.additionalEvent=this.options.event+t);this._super.emit.call(this,n)}});o(yi,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[tt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(1!==n.scale){var t=n.scale<1?"in":"out";n.additionalEvent=this.options.event+t}this._super.emit.call(this,n)}});o(pi,v,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[eu]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=oi(function(){this.state=w;this.tryEmit()},t.time,this);else if(n.eventType&u)return w;return 32},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===w&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=di(),this.manager.emit(this.options.event,this._input)))}});o(wi,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[tt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(bi,c,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:l|nt,pointers:1},getTouchAction:function(){return ti.prototype.getTouchAction.call(this)},attrTest:function(n){var t,i=this.options.direction;return i&(l|nt)?t=n.overallVelocity:i&l?t=n.overallVelocityX:i&nt&&(t=n.overallVelocityY),this._super.attrTest.call(this,n)&&i&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&n.eventType&u},emit:function(n){var t=vr(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(ii,v,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[nr]},process:function(n){var t=this.options,e=n.pointers.length===t.pointers,o=n.distance<t.threshold,s=n.deltaTime<t.time,i,r;if(this.reset(),n.eventType&f&&0===this.count)return this.failTimeout();if(o&&s&&e){if(n.eventType!=u)return this.failTimeout();if(i=!this.pTime||n.timeStamp-this.pTime<t.interval,r=!this.pCenter||kt(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=oi(function(){this.state=w;this.tryEmit()},t.interval,this),h):w}return 32},failTimeout:function(){return this._timer=oi(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==w&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});y.VERSION="2.0.7";y.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[wi,{enable:!1}],[yi,{enable:!1},["rotate"]],[bi,{direction:l}],[ti,{direction:l},["swipe"]],[ii],[ii,{event:"doubletap",taps:2},["tap"]],[pi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};ki.prototype={set:function(n){return p(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?2:1},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&w)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],2===r.stopped||t&&i!=t&&!i.canRecognizeWith(t)?i.reset():i.recognize(n),!t&&i.state&(h|ft|b)&&(t=r.curRecognizer=i),u++},get:function(n){if(n instanceof v)return n;for(var i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(it(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(it(n,"remove",this))return this;if(n=this.get(n)){var t=this.recognizers,i=rt(t,n);i!==-1&&(t.splice(i,1),this.touchAction.update())}return this},on:function(n,t){if(n!==r&&t!==r){var i=this.handlers;return a(pt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this}},off:function(n,t){if(n!==r){var i=this.handlers;return a(pt(n),function(n){t?i[n]&&i[n].splice(rt(i[n],t),1):delete i[n]}),this}},emit:function(n,t){var i,r;if(this.options.domEvents&&gu(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&yr(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};p(y,{INPUT_START:f,INPUT_MOVE:g,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:ei,STATE_BEGAN:h,STATE_CHANGED:ft,STATE_ENDED:b,STATE_RECOGNIZED:w,STATE_CANCELLED:at,STATE_FAILED:32,DIRECTION_NONE:ri,DIRECTION_LEFT:et,DIRECTION_RIGHT:ot,DIRECTION_UP:st,DIRECTION_DOWN:ht,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:nt,DIRECTION_ALL:kr,Manager:ki,Input:s,TouchAction:vi,TouchInput:gt,MouseInput:dt,PointerEventInput:li,TouchMouseInput:ai,SingleTouchInput:cr,Recognizer:v,AttrRecognizer:c,Tap:ii,Pan:ti,Swipe:bi,Pinch:yi,Rotate:wi,Press:pi,on:vt,off:yt,each:a,merge:rf,extend:wr,assign:p,inherit:o,bindFn:si,prefixed:bt});(void 0!==n?n:"undefined"!=typeof self?self:{}).Hammer=y;"function"==typeof define&&define.amd?define(function(){return y}):"undefined"!=typeof module&&module.exports?module.exports=y:n.Hammer=y}(window,document),function(n){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],n):"object"==typeof exports?n(require("jquery"),require("hammerjs")):n(jQuery,Hammer)}(function(n,t){function i(i,r){var u=n(i);u.data("hammer")||u.data("hammer",new t(u[0],r))}n.fn.hammer=function(n){return this.each(function(){i(this,n)})};t.Manager.prototype.emit=function(t){return function(i,r){t.call(this,i,r);n(this.element).trigger({type:i,gesture:r})}}(t.Manager.prototype.emit)});_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(n){var i=240,r=1440,t=2,u=.3,o=-.5,f=-.3,s=.5,e=10,h=function(){function h(c,l){var a=this,v,w,p,b,y;_classCallCheck(this,h);v=!1;w={MENU_WIDTH:i,edge:"left",closeOnClick:!1};l=n.extend(w,l);this.options=l;p=c;this.menu_id=n("#"+p.attr("data-activates"));b=n("#"+this.menu_id.attr("id")+"> .sidenav-bg");l.MENU_WIDTH!==i&&(this.menu_id.css("width",l.MENU_WIDTH),b.css("width",l.MENU_WIDTH));y=n('<div class="drag-target"><\/div>');n("body").append(y);"left"===l.edge?(this.menu_id.css("transform","translateX(-100%)"),y.css({left:0})):(this.menu_id.addClass("right-aligned").css("transform","translateX(100%)"),y.css({right:0}));this.menu_id.hasClass("fixed")&&(window.innerWidth>r&&this.menu_id.css("transform","translateX(0)"),n(window).resize(function(){window.innerWidth>r?n("#sidenav-overlay").length?a.removeMenu(!0):a.menu_id.css("transform","translateX(0%)"):v===!1&&("left"===l.edge?a.menu_id.css("transform","translateX(-100%)"):a.menu_id.css("transform","translateX(100%)"))}));this.options.closeOnClick===!0&&this.menu_id.on("click","a:not(.collapsible-header)",function(){a.removeMenu()});p.click(function(t){if(t.preventDefault(),v===!0)v=!1,a.removeMenu();else{var r=n("body"),i=n('<div id="sidenav-overlay"><\/div>');r.append(i);"left"===a.options.edge?a.menu_id.velocity({translateX:[0,-1*l.MENU_WIDTH]},{duration:300,queue:!1,easing:"easeOutQuad"}):a.menu_id.velocity({translateX:[0,l.MENU_WIDTH]},{duration:300,queue:!1,easing:"easeOutQuad"});i.click(function(){a.removeMenu()})}});y.click(function(){a.removeMenu()});y.hammer({prevent_default:!1}).bind("pan",function(i){var o,f,u;if("touch"===i.gesture.pointerType){var r=i.gesture.center.x,e=n("body"),s=e.innerWidth();(e.css("overflow","hidden"),e.width(s),0===n("#sidenav-overlay").length)&&(o=n('<div id="sidenav-overlay"><\/div>'),o.css("opacity",0).click(function(){a.removeMenu()}),n("body").append(o));("left"===l.edge&&(r>l.MENU_WIDTH?r=l.MENU_WIDTH:r<0&&(r=0)),"left"===l.edge)?(r<l.MENU_WIDTH/t?v=!1:r>=l.MENU_WIDTH/t&&(v=!0),a.menu_id.css("transform","translateX("+(r-l.MENU_WIDTH)+"px)")):(r<window.innerWidth-l.MENU_WIDTH/t?v=!0:r>=window.innerWidth-l.MENU_WIDTH/t&&(v=!1),f=r-l.MENU_WIDTH/t,f<0&&(f=0),a.menu_id.css("transform","translateX("+f+"px)"));u=void 0;"left"===l.edge?(u=r/l.MENU_WIDTH,n("#sidenav-overlay").velocity({opacity:u},{duration:10,queue:!1,easing:"easeOutQuad"})):(u=Math.abs((r-window.innerWidth)/l.MENU_WIDTH),n("#sidenav-overlay").velocity({opacity:u},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(i){if("touch"===i.gesture.pointerType){var r=i.gesture.velocityX,p=i.gesture.center.x,h=p-l.MENU_WIDTH,c=p-l.MENU_WIDTH/t;h>0&&(h=0);c<0&&(c=0);"left"===l.edge?v&&r<=u||r<o?(0!==h&&a.menu_id.velocity({translateX:[0,h]},{duration:300,queue:!1,easing:"easeOutQuad"}),n("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),y.css({width:"10px",right:"",left:0})):(!v||r>u)&&(n("body").css({overflow:"",width:""}),a.menu_id.velocity({translateX:[-1*l.MENU_WIDTH-e,h]},{duration:200,queue:!1,easing:"easeOutQuad"}),n("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){n(this).remove()}}),y.css({width:"10px",right:"",left:0})):v&&r>=f||r>s?(a.menu_id.velocity({translateX:[0,c]},{duration:300,queue:!1,easing:"easeOutQuad"}),n("#sidenav-overlay").velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),y.css({width:"50%",right:"",left:0})):(!v||r<f)&&(n("body").css({overflow:"",width:""}),a.menu_id.velocity({translateX:[l.MENU_WIDTH+e,c]},{duration:200,queue:!1,easing:"easeOutQuad"}),n("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){n(a).remove()}}),y.css({width:"10px",right:0,left:""}))}})}return _createClass(h,[{key:"removeMenu",value:function(t){var i=this;n("body").css({overflow:"",width:""});"left"===this.options.edge?this.menu_id.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){t===!0&&(i.menu_id.removeAttr("style"),i.menu_id.css("width",i.options.MENU_WIDTH))}}):this.menu_id.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){t===!0&&(i.menu_id.removeAttr("style"),i.menu_id.css("width",i.options.MENU_WIDTH))}});n("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){n("#sidenav-overlay").remove()}})}},{key:"show",value:function(){this.trigger("click")}},{key:"hide",value:function(){n("#sidenav-overlay").trigger("click")}}]),h}();n.fn.sideNav=function(t){return this.each(function(){new h(n(this),t)})}}(jQuery),function(n){n.fn.collapsible=function(t){return t=n.extend({accordion:void 0},t),this.each(function(){function f(t){i=r.find("> li > .collapsible-header");t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active");t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}});i.not(t).removeClass("active").parent().removeClass("active");i.not(t).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}})}function e(t){t.hasClass("active")?t.parent().addClass("active"):t.parent().removeClass("active");t.parent().hasClass("active")?t.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}}):t.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){n(this).css("height","")}})}function o(n){return u(n).length>0}function u(n){return n.closest("li > .collapsible-header")}var r=n(this),i=n(this).find("> li > .collapsible-header"),s=r.data("collapsible");r.off("click.collapse",".collapsible-header");i.off("click.collapse");t.accordion||"accordion"===s||void 0===s?(i=r.find("> li > .collapsible-header"),i.on("click.collapse",function(t){var i=n(t.target);o(i)&&(i=u(i));i.toggleClass("active");f(i)}),f(i.filter(".active").first())):i.each(function(){n(this).on("click.collapse",function(t){var i=n(t.target);o(i)&&(i=u(i));i.toggleClass("active");e(i)});n(this).hasClass("active")&&e(n(this))})})};n(document).ready(function(){n(".collapsible").collapsible()})}(jQuery),function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(n){var t=function(n,t){var f,r=document.createElement("canvas"),i,u,e;n.appendChild(r);"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(r);i=r.getContext("2d");r.width=r.height=t.size;u=1;window.devicePixelRatio>1&&(u=window.devicePixelRatio,r.style.width=r.style.height=[t.size,"px"].join(""),r.width=r.height=t.size*u,i.scale(u,u));i.translate(t.size/2,t.size/2);i.rotate((-.5+t.rotate/180)*Math.PI);e=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(e-=t.scaleLength+2);Date.now=Date.now||function(){return+new Date};var o=function(n,t,r){r=Math.min(Math.max(-1,r||0),1);var u=r<=0;i.beginPath();i.arc(0,0,e,0,2*Math.PI*r,u);i.strokeStyle=n;i.lineWidth=t;i.stroke()},c=function(){var u,n,r;for(i.lineWidth=1,i.fillStyle=t.scaleColor,i.save(),r=24;r>0;--r)r%6==0?(n=t.scaleLength,u=0):(n=.6*t.scaleLength,u=t.scaleLength-n),i.fillRect(-t.size/2+u,0,n,1),i.rotate(Math.PI/12);i.restore()},s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)}}(),h=function(){t.scaleColor&&c();t.trackColor&&o(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return r};this.getCtx=function(){return i};this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)};this.draw=function(n){t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?f?i.putImageData(f,0,0):(h(),f=i.getImageData(0,0,t.size*u,t.size*u)):(this.clear(),h()):this.clear();i.lineCap=t.lineCap;var r;r="function"==typeof t.barColor?t.barColor(n):t.barColor;o(r,t.lineWidth,n/100)}.bind(this);this.animate=function(n,i){var u=Date.now(),r;t.onStart(n,i);r=function(){var f=Math.min(Date.now()-u,t.animate.duration),e=t.easing(this,f,n,i-n,t.animate.duration);this.draw(e);t.onStep(n,i,e);f>=t.animate.duration?t.onStop(n,i):s(r)}.bind(this);s(r)}.bind(this)},i=function(n,i){var u={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(n,t,i,r,u){return t/=u/2,t<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},onStart:function(){},onStep:function(){},onStop:function(){}};if(void 0!==t)u.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");u.renderer=SVGRenderer}var r={},f=0,e=function(){this.el=n;this.options=r;for(var t in u)u.hasOwnProperty(t)&&(r[t]=i&&void 0!==i[t]?i[t]:u[t],"function"==typeof r[t]&&(r[t]=r[t].bind(this)));r.easing="string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?jQuery.easing[r.easing]:u.easing;"number"==typeof r.animate&&(r.animate={duration:r.animate,enabled:!0});"boolean"!=typeof r.animate||r.animate||(r.animate={duration:1e3,enabled:r.animate});this.renderer=new r.renderer(n,r);this.renderer.draw(f);n.dataset&&n.dataset.percent?this.update(parseFloat(n.dataset.percent)):n.getAttribute&&n.getAttribute("data-percent")&&this.update(parseFloat(n.getAttribute("data-percent")))}.bind(this);this.update=function(n){return n=parseFloat(n),r.animate.enabled?this.renderer.animate(f,n):this.renderer.draw(n),f=n,this}.bind(this);this.disableAnimation=function(){return r.animate.enabled=!1,this};this.enableAnimation=function(){return r.animate.enabled=!0,this};e()};n.fn.easyPieChart=function(t){return this.each(function(){var r;n.data(this,"easyPieChart")||(r=n.extend({},t,n(this).data()),n.data(this,"easyPieChart",new i(this,r)))})}}),function(n){var t=this,r="input[type=range]",u=!1,i=void 0,f=function(){var i=n('<span class="thumb"><span class="value"><\/span><\/span>');n(t).after(i)};n(r).each(f);n(document).on("change",r,function(){var i=n(t);i.siblings(".thumb").find(".value").html(i.val())});n(document).on("input mousedown touchstart",r,function(r){var o=n(t),e=o.siblings(".thumb"),s=o.outerWidth();(!e.length&&f(),e.find(".value").html(o.val()),u=!0,o.addClass("active"),e.hasClass("active")||e.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),"input"!==r.type)&&(i=void 0===r.pageX||null===r.pageX?r.originalEvent.touches[0].pageX-n(t).offset().left:r.pageX-n(t).offset().left,i<0?i=0:i>s&&(i=s),e.addClass("active").css("left",i));e.find(".value").html(o.val())});n(document).on("mouseup touchend",".range-field",function(){u=!1;n(t).removeClass("active")});n(document).on("mousemove touchmove",".range-field",function(t){var f=n(this).children(".thumb"),i=void 0,e;u&&(f.hasClass("active")||f.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),i=void 0===t.pageX||null===t.pageX?t.originalEvent.touches[0].pageX-n(this).offset().left:t.pageX-n(this).offset().left,e=n(this).outerWidth(),i<0?i=0:i>e&&(i=e),f.addClass("active").css("left",i),f.find(".value").html(f.siblings(r).val()))});n(document).on("mouseout touchleave",".range-field",function(){if(!u){var i=n(t).children(".thumb");i.hasClass("active")&&i.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100});i.removeClass("active")}})}(jQuery),function(n){n(document).on("change",'.file-field input[type="file"]',function(t){for(var o,r=n(t.target),s=r.closest(".file-field"),u=s.find("input.file-path"),f=r[0].files,e=[],i=0;i<f.length;i++)o=f[i].name,e.push(o);u.val(e.join(", "));u.trigger("change")})}(jQuery),function(n){n.fn.material_select=function(t){function i(n,t,i){var f=n.indexOf(t),u=f===-1;return u?n.push(t):n.splice(f,1),i.siblings("ul.dropdown-content").find("li").eq(t).toggleClass("active"),i.find("option").eq(t).prop("selected",u),r(n,i),u}function r(n,t){for(var u,i="",r=0,f=n.length;r<f;r++)u=t.find("option").eq(n[r]).text(),i+=0===r?u:", "+u;""===i&&(i=t.find("option:disabled").eq(0).text());t.siblings("input.select-dropdown").val(i)}function u(){var n=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var i=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==t?i:3&i|8).toString(16)})}n(this).each(function(){var f=n(this),o,a,h,v,l,p,d,e;if(!f.hasClass("browser-default")){if(o=Boolean(f.attr("multiple")),a=f.data("select-id"),a&&(f.parent().find("span.caret").remove(),f.parent().find("input").remove(),f.unwrap(),n("ul#select-options-"+a).remove()),"destroy"===t)return void f.data("select-id",null).removeClass("initialized");h=u();f.data("select-id",h);v=n('<div class="select-wrapper"><\/div>');v.addClass(f.attr("class"));var r=n('<ul id="select-options-'+h+'" class="dropdown-content select-dropdown '+(o?"multiple-select-dropdown":"")+'"><\/ul>'),b=f.children("option, optgroup"),k=[],y=!1,g=f.find("option:selected").html()||f.find("option:first").html()||"",nt=function(){var t=n(this).closest("ul"),i=n(this).val();t.find("li").find("span.filtrable").each(function(){"string"==typeof this.outerText&&(this.outerText.toLowerCase().indexOf(i.toLowerCase())===-1?(n(this).hide(),n(this).parent().hide()):(n(this).show(),n(this).parent().show()))})},c=Boolean(f.attr("searchable"));c&&function(){var i=f.attr("searchable"),t=n('<span class="search-wrap"><input type="text" class="search" placeholder="'+i+'"><\/span>');r.append(t);t.find(".search").keyup(nt)}();l=function(t,i,u){var f=i.is(":disabled")?"disabled ":"",s="optgroup-option"===u?"optgroup-option ":"",o=i.data("icon"),h=i.attr("class"),e;if(o)return e="",h&&(e=' class="'+h+'"'),"multiple"===u?r.append(n('<li class="'+f+'"><img alt="" src="'+o+'"'+e+'><span class="filtrable"><input type="checkbox"'+f+"/><label><\/label>"+i.html()+"<\/span><\/li>")):r.append(n('<li class="'+f+s+'"><img alt="" src="'+o+'"'+e+'><span class="filtrable">'+i.html()+"<\/span><\/li>")),!0;"multiple"===u?r.append(n('<li class="'+f+'"><span class="filtrable"><input type="checkbox"'+f+"/><label><\/label>"+i.html()+"<\/span><\/li>")):r.append(n('<li class="'+f+s+'"><span class="filtrable">'+i.html()+"<\/span><\/li>"))};b.length&&b.each(function(){if(n(this).is("option"))o?l(0,n(this),"multiple"):l(0,n(this));else if(n(this).is("optgroup")){var t=n(this).children("option");r.append(n('<li class="optgroup"><span>'+n(this).attr("label")+"<\/span><\/li>"));t.each(function(){l(0,n(this),"optgroup-option")})}});r.find("li:not(.optgroup)").each(function(u){n(this).click(function(h){if(!n(this).hasClass("disabled")&&!n(this).hasClass("optgroup")){var c=!0;o?(n('input[type="checkbox"]',this).prop("checked",function(n,t){return!t}),c=i(k,n(this).index()-1,f),e.trigger("focus")):(r.find("li").removeClass("active"),n(this).toggleClass("active"),e.val(n(this).text()));s(r,n(this));f.find("option").eq(u).prop("selected",c);f.trigger("change");void 0!==t&&t()}h.stopPropagation()})});f.wrap(v);p=n('<span class="caret">&#9660;<\/span>');f.is(":disabled")&&p.addClass("disabled");d=g.replace(/"/g,"&quot;");e=n('<input type="text" class="select-dropdown" readonly="true" '+(f.is(":disabled")?"disabled":"")+' data-activates="select-options-'+h+'" value="'+d+'"/>');f.before(e);e.before(p);e.after(r);f.is(":disabled")||e.dropdown({hover:!1,closeOnClick:!1});f.attr("tabindex")&&n(e[0]).attr("tabindex",f.attr("tabindex"));f.addClass("initialized");e.on({focus:function(){if(n("ul.select-dropdown").not(r[0]).is(":visible")&&n("input.select-dropdown").trigger("close"),!r.is(":visible")){n(this).trigger("open",["focus"]);var t=n(this).val();s(r,r.find("li").filter(function(){return n(this).text().toLowerCase()===t.toLowerCase()})[0])}},click:function(n){n.stopPropagation()}});e.on("blur",function(){o||c||n(this).trigger("close");r.find("li.selected").removeClass("selected")});!o&&c&&r.find("li").on("click",function(){e.trigger("close")});r.hover(function(){y=!0},function(){y=!1});n(window).on({click:function(){(o||c)&&(y||e.trigger("close"))}});o&&f.find("option:selected:not(:disabled)").each(function(){var t=n(this).index();i(k,t,f);r.find("li").eq(t).find(":checkbox").prop("checked",!0)});var s=function(t,i){if(i){t.find("li.selected").removeClass("selected");var u=n(i);u.addClass("selected");r.scrollTo(u)}},w=[],tt=function(t){var u,h,c,i,f;if(9==t.which)return void e.trigger("close");if(40==t.which&&!r.is(":visible"))return void e.trigger("open");(13!=t.which||r.is(":visible"))&&(t.preventDefault(),u=String.fromCharCode(t.which).toLowerCase(),h=[9,13,27,38,40],u&&h.indexOf(t.which)===-1&&(w.push(u),c=w.join(""),i=r.find("li").filter(function(){return 0===n(this).text().toLowerCase().indexOf(c)})[0],i&&s(r,i)),13==t.which&&(f=r.find("li.selected:not(.disabled)")[0],f&&(n(f).trigger("click"),o||e.trigger("close"))),40==t.which&&(i=r.find("li.selected").length?r.find("li.selected").next("li:not(.disabled)")[0]:r.find("li:not(.disabled)")[0],s(r,i)),27==t.which&&e.trigger("close"),38==t.which&&(i=r.find("li.selected").prev("li:not(.disabled)")[0])&&s(r,i),setTimeout(function(){w=[]},1e3))};e.on("keydown",tt)}})}}(jQuery);jQuery("select").siblings("input.select-dropdown").on("mousedown",function(n){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(n.clientX>=n.target.clientWidth||n.clientY>=n.target.clientHeight)&&n.preventDefault()}),function(n){"function"==typeof define&&define.amd?define("picker",["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):this.Picker=n(jQuery)}(function(n){function t(f,h,c,a){function g(){return t._.node("div",t._.node("div",t._.node("div",t._.node("div",v.component.nodes(y.open),w.box),w.wrap),w.frame),w.holder,'tabindex="-1"')}function rt(){b.data(h,v).addClass(w.input).val(b.data("value")?v.get("select",p.format):f.value);p.editable||b.on("focus."+y.id+" click."+y.id,function(n){n.preventDefault();v.open()}).on("keydown."+y.id,it);i(f,{haspopup:!0,expanded:!1,readonly:!1,owns:f.id+"_root"})}function ut(){i(v.$root[0],"hidden",!0)}function nt(){v.$holder.on({keydown:it,"focus.toOpen":tt,blur:function(){b.removeClass(w.target)},focusin:function(n){v.$root.removeClass(w.focused);n.stopPropagation()},"mousedown click":function(t){var i=t.target;i!=v.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||n(i).is("input, select, textarea, button, option")||(t.preventDefault(),v.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var r=n(this),t=r.data(),u=r.hasClass(w.navDisabled)||r.hasClass(w.disabled),i=e();i=i&&(i.type||i.href);(u||i&&!n.contains(v.$root[0],i))&&v.$holder[0].focus();!u&&t.nav?v.set("highlight",v.component.item.highlight,{nav:t.nav}):!u&&"pick"in t?(v.set("select",t.pick),p.closeOnSelect&&v.close(!0)):t.clear?(v.clear(),p.closeOnClear&&v.close(!0)):t.close&&v.close(!0)})}function ft(){var t;p.hiddenName===!0?(t=f.name,f.name=""):(t=["string"==typeof p.hiddenPrefix?p.hiddenPrefix:"","string"==typeof p.hiddenSuffix?p.hiddenSuffix:"_submit"],t=t[0]+f.name+t[1]);v._hidden=n('<input type=hidden name="'+t+'"'+(b.data("value")||f.value?' value="'+v.get("select",p.formatSubmit)+'"':"")+">")[0];b.on("change."+y.id,function(){v._hidden.value=f.value?v.get("select",p.formatSubmit):""})}function et(){k&&l?v.$holder.find("."+w.frame).one("transitionend",function(){v.$holder[0].focus()}):v.$holder[0].focus()}function tt(n){n.stopPropagation();b.addClass(w.target);v.$root.addClass(w.focused);v.open()}function it(n){var t=n.keyCode,i=/^(8|46)$/.test(t);if(27==t)return v.close(!0),!1;(32==t||i||!y.open&&v.component.key[t])&&(n.preventDefault(),n.stopPropagation(),i?v.clear().close():v.open())}if(!f)return t;var k=!1,y={id:f.id||"P"+Math.abs(~~(Math.random()*new Date))},p=c?n.extend(!0,{},c.defaults,a):a||{},w=n.extend({},t.klasses(),p.klass),b=n(f),d=function(){return this.start()},v=d.prototype={constructor:d,$node:b,start:function(){return y&&y.start?v:(y.methods={},y.start=!0,y.open=!1,y.type=f.type,f.autofocus=f==e(),f.readOnly=!p.editable,f.id=f.id||y.id,"text"!=f.type&&(f.type="text"),v.component=new c(v,p),v.$root=n('<div class="'+w.picker+'" id="'+f.id+'_root" />'),ut(),v.$holder=n(g()).appendTo(v.$root),nt(),p.formatSubmit&&ft(),rt(),p.containerHidden?n(p.containerHidden).append(v._hidden):b.after(v._hidden),p.container?n(p.container).append(v.$root):b.after(v.$root),v.on({start:v.component.onStart,render:v.component.onRender,stop:v.component.onStop,open:v.component.onOpen,close:v.component.onClose,set:v.component.onSet}).on({start:p.onStart,render:p.onRender,stop:p.onStop,open:p.onOpen,close:p.onClose,set:p.onSet}),k=s(v.$holder[0]),f.autofocus&&v.open(),v.trigger("start").trigger("render"))},render:function(t){return t?(v.$holder=n(g()),nt(),v.$root.html(v.$holder)):v.$root.find("."+w.box).html(v.component.nodes(y.open)),v.trigger("render")},stop:function(){return y.start?(v.close(),v._hidden&&v._hidden.parentNode.removeChild(v._hidden),v.$root.remove(),b.removeClass(w.input).removeData(h),setTimeout(function(){b.off("."+y.id)},0),f.type=y.type,f.readOnly=!1,v.trigger("stop"),y.methods={},y.start=!1,v):v},open:function(e){return y.open?v:(b.addClass(w.active),i(f,"expanded",!0),setTimeout(function(){v.$root.addClass(w.opened);i(v.$root[0],"hidden",!1)},0),e!==!1&&(y.open=!0,k&&r.css("overflow","hidden").css("padding-right","+="+u()),et(),o.on("click."+y.id+" focusin."+y.id,function(n){var t=n.target;t!=f&&t!=document&&3!=n.which&&v.close(t===v.$holder[0])}).on("keydown."+y.id,function(i){var r=i.keyCode,u=v.component.key[r],f=i.target;27==r?v.close(!0):f!=v.$holder[0]||!u&&13!=r?n.contains(v.$root[0],f)&&13==r&&(i.preventDefault(),f.click()):(i.preventDefault(),u?t._.trigger(v.component.key.go,v,[t._.trigger(u)]):v.$root.find("."+w.highlighted).hasClass(w.disabled)||(v.set("select",v.component.item.highlight),p.closeOnSelect&&v.close(!0)))})),v.trigger("open"))},close:function(n){return n&&(p.editable?f.focus():(v.$holder.off("focus.toOpen").focus(),setTimeout(function(){v.$holder.on("focus.toOpen",tt)},0))),b.removeClass(w.active),i(f,"expanded",!1),setTimeout(function(){v.$root.removeClass(w.opened+" "+w.focused);i(v.$root[0],"hidden",!0)},0),y.open?(y.open=!1,k&&r.css("overflow","").css("padding-right","-="+u()),o.off("."+y.id),v.trigger("close")):v},clear:function(n){return v.set("clear",null,n)},set:function(t,i,r){var u,f,o=n.isPlainObject(t),e=o?t:{};if(r=o&&n.isPlainObject(i)?i:r||{},t){o||(e[t]=i);for(u in e)f=e[u],u in v.component.item&&(void 0===f&&(f=null),v.component.set(u,f,r)),"select"!=u&&"clear"!=u||b.val("clear"==u?"":v.get(u,p.format)).trigger("change");v.render()}return r.muted?v:v.trigger("set",e)},get:function(n,i){if(n=n||"value",null!=y[n])return y[n];if("valueSubmit"==n){if(v._hidden)return v._hidden.value;n="value"}if("value"==n)return f.value;if(n in v.component.item){if("string"==typeof i){var r=v.component.get(n);return r?t._.trigger(v.component.formats.toString,v.component,[i,r]):""}return v.component.get(n)}},on:function(t,i,r){var u,e,o=n.isPlainObject(t),f=o?t:{};if(t){o||(f[t]=i);for(u in f)e=f[u],r&&(u="_"+u),y.methods[u]=y.methods[u]||[],y.methods[u].push(e)}return v},off:function(){var n,t,i=arguments;for(n=0,namesCount=i.length;n<namesCount;n+=1)(t=i[n])in y.methods&&delete y.methods[t];return v},trigger:function(n,i){var r=function(n){var r=y.methods[n];r&&r.map(function(n){t._.trigger(n,v,[i])})};return r("_"+n),r(n),v}};return new d}function s(n){var t;return n.currentStyle?t=n.currentStyle.position:window.getComputedStyle&&(t=getComputedStyle(n).position),"fixed"==t}function u(){var t,i,u,f;return r.height()<=c.height()?0:(t=n('<div style="visibility:hidden;width:100px" />').appendTo("body"),i=t[0].offsetWidth,t.css("overflow","scroll"),u=n('<div style="width:100%" />').appendTo(t),f=u[0].offsetWidth,t.remove(),i-f)}function i(t,i,r){if(n.isPlainObject(i))for(var u in i)f(t,u,i[u]);else f(t,i,r)}function f(n,t,i){n.setAttribute(("role"==t?"":"aria-")+t,i)}function h(t,i){var r,u;n.isPlainObject(t)||(t={attribute:i});i="";for(r in t)u=("role"==r?"":"aria-")+r,i+=null==t[r]?"":u+'="'+t[r]+'"';return i}function e(){try{return document.activeElement}catch(n){}}var c=n(window),o=n(document),r=n(document.documentElement),l=null!=document.documentElement.style.transition;return t.klasses=function(n){return n=n||"picker",{picker:n,opened:n+"--opened",focused:n+"--focused",input:n+"__input",active:n+"__input--active",target:n+"__input--target",holder:n+"__holder",frame:n+"__frame",wrap:n+"__wrap",box:n+"__box"}},t._={group:function(n){for(var i,u="",r=t._.trigger(n.min,n);r<=t._.trigger(n.max,n,[r]);r+=n.i)i=t._.trigger(n.item,n,[r]),u+=t._.node(n.node,i[0],i[1],i[2]);return u},node:function(t,i,r,u){return i?(i=n.isArray(i)?i.join(""):i,r=r?' class="'+r+'"':"",u=u?" "+u:"","<"+t+r+u+">"+i+"<\/"+t+">"):""},lead:function(n){return(n<10?"0":"")+n},trigger:function(n,t,i){return"function"==typeof n?n.apply(t,i||[]):n},digits:function(n){return/\d/.test(n[1])?2:1},isDate:function(n){return{}.toString.call(n).indexOf("Date")>-1&&this.isInteger(n.getDate())},isInteger:function(n){return{}.toString.call(n).indexOf("Number")>-1&&n%1==0},ariaAttr:h},t.extend=function(i,r){n.fn[i]=function(u,f){var e=this.data(i);return"picker"==u?e:e&&"string"==typeof u?t._.trigger(e[u],e,[f]):this.each(function(){n(this).data(i)||new t(this,i,r,u)})};n.fn[i].defaults=r.defaults},t}),function(n){"function"==typeof define&&define.amd?define(["picker","jquery"],n):"object"==typeof exports?module.exports=n(require("./picker.js"),require("jquery")):n(Picker,jQuery)}(function(n,t){function r(n,t){var i=this,r=n.$node[0],o=r.value,u=n.$node.data("value"),f=u||o,s=u?t.formatSubmit:t.format,e=function(){return r.currentStyle?"rtl"==r.currentStyle.direction:"rtl"==getComputedStyle(n.$root[0]).direction};i.settings=t;i.$node=n.$node;i.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"};i.item={};i.item.clear=null;i.item.disable=(t.disable||[]).slice(0);i.item.enable=-function(n){return n[0]===!0?n.shift():-1}(i.item.disable);i.set("min",t.min).set("max",t.max).set("now");f?i.set("select",f,{format:s,defaultValue:!0}):i.set("select",null).set("highlight",i.item.now);i.key={40:7,38:-7,39:function(){return e()?-1:1},37:function(){return e()?1:-1},go:function(n){var t=i.item.highlight,r=new Date(t.year,t.month,t.date+n);i.set("highlight",r,{interval:n});this.render()}};n.on("render",function(){n.$root.find("."+t.klass.selectMonth).on("change",function(){var i=this.value;i&&(n.set("highlight",[n.get("view").year,i,n.get("highlight").date]),n.$root.find("."+t.klass.selectMonth).trigger("focus"))});n.$root.find("."+t.klass.selectYear).on("change",function(){var i=this.value;i&&(n.set("highlight",[i,n.get("view").month,n.get("highlight").date]),n.$root.find("."+t.klass.selectYear).trigger("focus"))})},1).on("open",function(){var r="";i.disabled(i.get("now"))&&(r=":not(."+t.klass.buttonToday+")");n.$root.find("button"+r+", select").attr("disabled",!1)},1).on("close",function(){n.$root.find("button, select").attr("disabled",!0)},1)}var i=n._;r.prototype.set=function(n,t,i){var r=this,u=r.item;return null===t?("clear"==n&&(n="select"),u[n]=t,r):(u["enable"==n?"disable":"flip"==n?"enable":n]=r.queue[n].split(" ").map(function(u){return t=r[u](n,t,i)}).pop(),"select"==n?r.set("highlight",u.select,i):"highlight"==n?r.set("view",u.highlight,i):n.match(/^(flip|min|max|disable|enable)$/)&&(u.select&&r.disabled(u.select)&&r.set("select",u.select,i),u.highlight&&r.disabled(u.highlight)&&r.set("highlight",u.highlight,i)),r)};r.prototype.get=function(n){return this.item[n]};r.prototype.create=function(n,r,u){var f,e=this;return r=void 0===r?n:r,r==-(1/0)||r==1/0?f=r:t.isPlainObject(r)&&i.isInteger(r.pick)?r=r.obj:t.isArray(r)?(r=new Date(r[0],r[1],r[2]),r=i.isDate(r)?r:e.create().obj):r=i.isInteger(r)||i.isDate(r)?e.normalize(new Date(r),u):e.now(n,r,u),{year:f||r.getFullYear(),month:f||r.getMonth(),date:f||r.getDate(),day:f||r.getDay(),obj:f||r,pick:f||r.getTime()}};r.prototype.createRange=function(n,r){var f=this,u=function(n){return n===!0||t.isArray(n)||i.isDate(n)?f.create(n):n};return i.isInteger(n)||(n=u(n)),i.isInteger(r)||(r=u(r)),i.isInteger(n)&&t.isPlainObject(r)?n=[r.year,r.month,r.date+n]:i.isInteger(r)&&t.isPlainObject(n)&&(r=[n.year,n.month,n.date+r]),{from:u(n),to:u(r)}};r.prototype.withinRange=function(n,t){return n=this.createRange(n.from,n.to),t.pick>=n.from.pick&&t.pick<=n.to.pick};r.prototype.overlapRanges=function(n,t){var i=this;return n=i.createRange(n.from,n.to),t=i.createRange(t.from,t.to),i.withinRange(n,t.from)||i.withinRange(n,t.to)||i.withinRange(t,n.from)||i.withinRange(t,n.to)};r.prototype.now=function(n,t,i){return t=new Date,i&&i.rel&&t.setDate(t.getDate()+i.rel),this.normalize(t,i)};r.prototype.navigate=function(n,i,r){var s,f,u,e,c=t.isArray(i),h=t.isPlainObject(i),o=this.item.view;if(c||h){for(h?(f=i.year,u=i.month,e=i.date):(f=+i[0],u=+i[1],e=+i[2]),r&&r.nav&&o&&o.month!==u&&(f=o.year,u=o.month),s=new Date(f,u+(r&&r.nav?r.nav:0),1),f=s.getFullYear(),u=s.getMonth();new Date(f,u,e).getMonth()!==u;)e-=1;i=[f,u,e]}return i};r.prototype.normalize=function(n){return n.setHours(0,0,0,0),n};r.prototype.measure=function(n,t){var r=this;return t?"string"==typeof t?t=r.parse(n,t):i.isInteger(t)&&(t=r.now(n,t,{rel:t})):t="min"==n?-(1/0):1/0,t};r.prototype.viewset=function(n,t){return this.create([t.year,t.month,1])};r.prototype.validate=function(n,r,u){var c,l,v,y,f=this,a=r,e=u&&u.interval?u.interval:1,h=f.item.enable===-1,o=f.item.min,s=f.item.max,p=h&&f.item.disable.filter(function(n){if(t.isArray(n)){var u=f.create(n).pick;u<r.pick?c=!0:u>r.pick&&(l=!0)}return i.isInteger(n)}).length;if((!u||!u.nav&&!u.defaultValue)&&(!h&&f.disabled(r)||h&&f.disabled(r)&&(p||c||l)||!h&&(r.pick<=o.pick||r.pick>=s.pick)))for(h&&!p&&(!l&&e>0||!c&&e<0)&&(e*=-1);f.disabled(r)&&(Math.abs(e)>1&&(r.month<a.month||r.month>a.month)&&(r=a,e=e>0?1:-1),r.pick<=o.pick?(v=!0,e=1,r=f.create([o.year,o.month,o.date+(r.pick===o.pick?0:-1)])):r.pick>=s.pick&&(y=!0,e=-1,r=f.create([s.year,s.month,s.date+(r.pick===s.pick?0:1)])),!v||!y);)r=f.create([r.year,r.month,r.date+e]);return r};r.prototype.disabled=function(n){var r=this,u=r.item.disable.filter(function(u){return i.isInteger(u)?n.day===(r.settings.firstDay?u:u-1)%7:t.isArray(u)||i.isDate(u)?n.pick===r.create(u).pick:t.isPlainObject(u)?r.withinRange(u,n):void 0});return u=u.length&&!u.filter(function(n){return t.isArray(n)&&"inverted"==n[3]||t.isPlainObject(n)&&n.inverted}).length,r.item.enable===-1?!u:u||n.pick<r.item.min.pick||n.pick>r.item.max.pick};r.prototype.parse=function(n,t,r){var f=this,u={};return t&&"string"==typeof t?(r&&r.format||(r=r||{},r.format=f.settings.format),f.formats.toArray(r.format).map(function(n){var r=f.formats[n],e=r?i.trigger(r,f,[t,u]):n.replace(/^!/,"").length;r&&(u[n]=t.substr(0,e));t=t.substr(e)}),[u.yyyy||u.yy,+(u.mm||u.m)-1,u.dd||u.d]):t};r.prototype.formats=function(){function n(n,t,i){var r=n.match(/[^\x00-\x7F]+|\w+/)[0];return i.mm||i.m||(i.m=t.indexOf(r)+1),r.length}function t(n){return n.match(/\w+/)[0].length}return{d:function(n,t){return n?i.digits(n):t.date},dd:function(n,t){return n?2:i.lead(t.date)},ddd:function(n,i){return n?t(n):this.settings.weekdaysShort[i.day]},dddd:function(n,i){return n?t(n):this.settings.weekdaysFull[i.day]},m:function(n,t){return n?i.digits(n):t.month+1},mm:function(n,t){return n?2:i.lead(t.month+1)},mmm:function(t,i){var r=this.settings.monthsShort;return t?n(t,r,i):r[i.month]},mmmm:function(t,i){var r=this.settings.monthsFull;return t?n(t,r,i):r[i.month]},yy:function(n,t){return n?2:(""+t.year).slice(2)},yyyy:function(n,t){return n?4:t.year},toArray:function(n){return n.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(n,t){var r=this;return r.formats.toArray(n).map(function(n){return i.trigger(r.formats[n],r,[0,t])||n.replace(/^!/,"")}).join("")}}}();r.prototype.isDateExact=function(n,r){var u=this;return i.isInteger(n)&&i.isInteger(r)||"boolean"==typeof n&&"boolean"==typeof r?n===r:(i.isDate(n)||t.isArray(n))&&(i.isDate(r)||t.isArray(r))?u.create(n).pick===u.create(r).pick:!(!t.isPlainObject(n)||!t.isPlainObject(r))&&u.isDateExact(n.from,r.from)&&u.isDateExact(n.to,r.to)};r.prototype.isDateOverlap=function(n,r){var u=this,f=u.settings.firstDay?1:0;return i.isInteger(n)&&(i.isDate(r)||t.isArray(r))?(n=n%7+f)===u.create(r).day+1:i.isInteger(r)&&(i.isDate(n)||t.isArray(n))?(r=r%7+f)===u.create(n).day+1:!(!t.isPlainObject(n)||!t.isPlainObject(r))&&u.overlapRanges(n,r)};r.prototype.flipEnable=function(n){var t=this.item;t.enable=n||(t.enable==-1?1:-1)};r.prototype.deactivate=function(n,r){var f=this,u=f.item.disable.slice(0);return"flip"==r?f.flipEnable():r===!1?(f.flipEnable(1),u=[]):r===!0?(f.flipEnable(-1),u=[]):r.map(function(n){for(var e,r=0;r<u.length;r+=1)if(f.isDateExact(n,u[r])){e=!0;break}e||(i.isInteger(n)||i.isDate(n)||t.isArray(n)||t.isPlainObject(n)&&n.from&&n.to)&&u.push(n)}),u};r.prototype.activate=function(n,r){var f=this,u=f.item.disable,e=u.length;return"flip"==r?f.flipEnable():r===!0?(f.flipEnable(1),u=[]):r===!1?(f.flipEnable(-1),u=[]):r.map(function(n){for(var o,s,h,r=0;r<e;r+=1){if(s=u[r],f.isDateExact(s,n)){o=u[r]=null;h=!0;break}if(f.isDateOverlap(s,n)){t.isPlainObject(n)?(n.inverted=!0,o=n):t.isArray(n)?(o=n,o[3]||o.push("inverted")):i.isDate(n)&&(o=[n.getFullYear(),n.getMonth(),n.getDate(),"inverted"]);break}}if(o)for(r=0;r<e;r+=1)if(f.isDateExact(u[r],n)){u[r]=null;break}if(h)for(r=0;r<e;r+=1)if(f.isDateOverlap(u[r],n)){u[r]=null;break}o&&u.push(o)}),u.filter(function(n){return null!=n})};r.prototype.nodes=function(n){var r=this,t=r.settings,f=r.item,s=f.now,h=f.select,c=f.highlight,u=f.view,y=f.disable,e=f.min,o=f.max,p=function(n,r){return t.firstDay&&(n.push(n.shift()),r.push(r.shift())),i.node("thead",i.node("tr",i.group({min:0,max:6,i:1,node:"th",item:function(i){return[n[i],t.klass.weekdays,'scope=col title="'+r[i]+'"']}})))}((t.showWeekdaysFull?t.weekdaysFull:t.weekdaysShort).slice(0),t.weekdaysFull.slice(0)),l=function(n){return i.node("div"," ",t.klass["nav"+(n?"Next":"Prev")]+(n&&u.year>=o.year&&u.month>=o.month||!n&&u.year<=e.year&&u.month<=e.month?" "+t.klass.navDisabled:""),"data-nav="+(n||-1)+" "+i.ariaAttr({role:"button",controls:r.$node[0].id+"_table"})+' title="'+(n?t.labelMonthNext:t.labelMonthPrev)+'"')},a=function(){var f=t.showMonthsShort?t.monthsShort:t.monthsFull;return t.selectMonths?i.node("select",i.group({min:0,max:11,i:1,node:"option",item:function(n){return[f[n],0,"value="+n+(u.month==n?" selected":"")+(u.year==e.year&&n<e.month||u.year==o.year&&n>o.month?" disabled":"")]}}),t.klass.selectMonth,(n?"":"disabled")+" "+i.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+t.labelMonthSelect+'"'):i.node("div",f[u.month],t.klass.month)},v=function(){var h=u.year,l=t.selectYears===!0?5:~~(t.selectYears/2),v,y;if(l){var c=e.year,a=o.year,f=h-l,s=h+l;return(c>f&&(s+=c-f,f=c),a<s)&&(v=f-c,y=s-a,f-=v>y?y:v,s=a),i.node("select",i.group({min:f,max:s,i:1,node:"option",item:function(n){return[n,0,"value="+n+(h==n?" selected":"")]}}),t.klass.selectYear,(n?"":"disabled")+" "+i.ariaAttr({controls:r.$node[0].id+"_table"})+' title="'+t.labelYearSelect+'"')}return i.node("div",h,t.klass.year)};return i.node("div",(t.selectYears?v()+a():a()+v())+l()+l(1),t.klass.header)+i.node("table",p+i.node("tbody",i.group({min:0,max:5,i:1,node:"tr",item:function(n){var f=t.firstDay&&0===r.create([u.year,u.month,1]).day?-7:0;return[i.group({min:7*n-u.day+f+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(n){n=r.create([u.year,u.month,n+(t.firstDay?1:0)]);var f=h&&h.pick==n.pick,l=c&&c.pick==n.pick,a=y&&r.disabled(n)||n.pick<e.pick||n.pick>o.pick,v=i.trigger(r.formats.toString,r,[t.format,n]);return[i.node("div",n.date,function(i){return i.push(u.month==n.month?t.klass.infocus:t.klass.outfocus),s.pick==n.pick&&i.push(t.klass.now),f&&i.push(t.klass.selected),l&&i.push(t.klass.highlighted),a&&i.push(t.klass.disabled),i.join(" ")}([t.klass.day]),"data-pick="+n.pick+" "+i.ariaAttr({role:"gridcell",label:v,selected:!(!f||r.$node.val()!==v)||null,activedescendant:!!l||null,disabled:!!a||null})),"",i.ariaAttr({role:"presentation"})]}})]}})),t.klass.table,'id="'+r.$node[0].id+'_table" '+i.ariaAttr({role:"grid",controls:r.$node[0].id,readonly:!0}))+i.node("div",i.node("button",t.today,t.klass.buttonToday,"type=button data-pick="+s.pick+(n&&!r.disabled(s)?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id}))+i.node("button",t.clear,t.klass.buttonClear,"type=button data-clear=1"+(n?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id}))+i.node("button",t.close,t.klass.buttonClose,"type=button data-close=true "+(n?"":" disabled")+" "+i.ariaAttr({controls:r.$node[0].id})),t.klass.footer)};r.defaults=function(n){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:n+"table",header:n+"header",navPrev:n+"nav--prev",navNext:n+"nav--next",navDisabled:n+"nav--disabled",month:n+"month",year:n+"year",selectMonth:n+"select--month",selectYear:n+"select--year",weekdays:n+"weekday",day:n+"day",disabled:n+"day--disabled",selected:n+"day--selected",highlighted:n+"day--highlighted",now:n+"day--today",infocus:n+"day--infocus",outfocus:n+"day--outfocus",footer:n+"footer",buttonClear:n+"button--clear",buttonToday:n+"button--today",buttonClose:n+"button--close"}}}(n.klasses().picker+"__");n.extend("pickadate",r)});$.extend($.fn.pickadate.defaults,{selectMonths:!0,selectYears:15,onRender:function(){var n=this.$root,t=this.get("highlight","yyyy"),i=this.get("highlight","dd"),r=this.get("highlight","mmm"),u=this.get("highlight","dddd");n.find(".picker__header").prepend('<div class="picker__date-display"><div class="picker__weekday-display">'+u+'<\/div><div class="picker__month-display"><div>'+r+'<\/div><\/div><div class="picker__day-display"><div>'+i+'<\/div><\/div><div    class="picker__year-display"><div>'+t+"<\/div><\/div><\/div>")}}),function(){function o(n){return document.createElementNS(b,n)}function s(n){return(n<10?"0":"")+n}function g(n){var t=++tt+"";return n?n+t:t}function t(t,a){function lt(n,t){var b=ot.offset(),k=/^touch/.test(n.type),s=b.left+i,c=b.top+i,f=(k?n.originalEvent.touches[0]:n).pageX-s,o=(k?n.originalEvent.touches[0]:n).pageY-c,d=Math.sqrt(f*f+o*o),l=!1,g;t&&(d<u-r||d>u+r)||(n.preventDefault(),g=setTimeout(function(){w.popover.addClass("clockpicker-moving")},200),h&&ot.append(w.canvas),w.setHand(f,o,!t,!0),e.off(v).on(v,function(n){n.preventDefault();var t=/^touch/.test(n.type),i=(t?n.originalEvent.touches[0]:n).pageX-s,r=(t?n.originalEvent.touches[0]:n).pageY-c;(l||i!==f||r!==o)&&(l=!0,w.setHand(i,r,!1,!0))}),e.off(y).on(y,function(n){e.off(y);n.preventDefault();var i=/^touch/.test(n.type),r=(i?n.originalEvent.changedTouches[0]:n).pageX-s,u=(i?n.originalEvent.changedTouches[0]:n).pageY-c;(t||l)&&r===f&&u===o&&w.setHand(r,u);"hours"===w.currentView?w.toggleView("minutes",p/2):a.autoclose&&(w.minutesView.addClass("clockpicker-dial-out"),setTimeout(function(){w.done()},p/2));ot.prepend(vt);clearTimeout(g);w.popover.removeClass("clockpicker-moving");e.off(v)}))}var nt=n(it),ot=nt.find(".clockpicker-plate"),gt=nt.find(".picker__holder"),yt=nt.find(".clockpicker-hours"),bt=nt.find(".clockpicker-minutes"),ni=nt.find(".clockpicker-am-pm-block"),kt="INPUT"===t.prop("tagName"),pt=kt?t:t.find("input"),ti=n("label[for="+pt.attr("id")+"]"),w=this,dt,b,k,tt,ft,at,wt,vt,et,rt,ut,st,ht,ct;if((this.id=g("cp"),this.element=t,this.holder=gt,this.options=a,this.isAppended=!1,this.isShown=!1,this.currentView="hours",this.isInput=kt,this.input=pt,this.label=ti,this.popover=nt,this.plate=ot,this.hoursView=yt,this.minutesView=bt,this.amPmBlock=ni,this.spanHours=nt.find(".clockpicker-span-hours"),this.spanMinutes=nt.find(".clockpicker-span-minutes"),this.spanAmPm=nt.find(".clockpicker-span-am-pm"),this.footer=nt.find(".picker__footer"),this.amOrPm="PM",a.twelvehour)&&(dt='<div class="clockpicker-am-pm-block"><button type="button" class="btn-floating btn-flat clockpicker-button clockpicker-am-button">AM<\/button><button type="button" class="btn-floating btn-flat clockpicker-button clockpicker-pm-button">PM<\/button><\/div>',n(dt),a.ampmclickable?(this.spanAmPm.empty(),n('<div id="click-am">AM<\/div>').on("click",function(){w.spanAmPm.children("#click-am").addClass("text-primary");w.spanAmPm.children("#click-pm").removeClass("text-primary");w.amOrPm="AM"}).appendTo(this.spanAmPm),n('<div id="click-pm">PM<\/div>').on("click",function(){w.spanAmPm.children("#click-pm").addClass("text-primary");w.spanAmPm.children("#click-am").removeClass("text-primary");w.amOrPm="PM"}).appendTo(this.spanAmPm)):(n('<button type="button" class="btn-floating btn-flat clockpicker-button am-button" tabindex="1">AM<\/button>').on("click",function(){w.amOrPm="AM";w.amPmBlock.children(".pm-button").removeClass("active");w.amPmBlock.children(".am-button").addClass("active");w.spanAmPm.empty().append("AM")}).appendTo(this.amPmBlock),n('<button type="button" class="btn-floating btn-flat clockpicker-button pm-button" tabindex="2">PM<\/button>').on("click",function(){w.amOrPm="PM";w.amPmBlock.children(".am-button").removeClass("active");w.amPmBlock.children(".pm-button").addClass("active");w.spanAmPm.empty().append("PM")}).appendTo(this.amPmBlock))),a.darktheme&&nt.addClass("darktheme"),n('<button type="button" class="btn-flat clockpicker-button" tabindex="'+(a.twelvehour?"3":"1")+'">'+a.donetext+"<\/button>").click(n.proxy(this.done,this)).appendTo(this.footer),this.spanHours.click(n.proxy(this.toggleView,this,"hours")),this.spanMinutes.click(n.proxy(this.toggleView,this,"minutes")),pt.on("focus.clockpicker click.clockpicker",n.proxy(this.show,this)),at=n('<div class="clockpicker-tick"><\/div>'),a.twelvehour)for(b=1;b<13;b+=1)k=at.clone(),tt=b/6*Math.PI,ft=u,k.css("font-size","140%"),k.css({left:i+Math.sin(tt)*ft-r,top:i-Math.cos(tt)*ft-r}),k.html(0===b?"00":b),yt.append(k),k.on(c,lt);else for(b=0;b<24;b+=1)k=at.clone(),tt=b/6*Math.PI,wt=b>0&&b<13,ft=wt?l:u,k.css({left:i+Math.sin(tt)*ft-r,top:i-Math.cos(tt)*ft-r}),wt&&k.css("font-size","120%"),k.html(0===b?"00":b),yt.append(k),k.on(c,lt);for(b=0;b<60;b+=5)k=at.clone(),tt=b/30*Math.PI,k.css({left:i+Math.sin(tt)*u-r,top:i-Math.cos(tt)*u-r}),k.css("font-size","140%"),k.html(s(b)),bt.append(k),k.on(c,lt);(ot.on(c,function(t){0===n(t.target).closest(".clockpicker-tick").length&&lt(t,!0)}),h)&&(vt=nt.find(".clockpicker-canvas"),et=o("svg"),et.setAttribute("class","clockpicker-svg"),et.setAttribute("width",d),et.setAttribute("height",d),rt=o("g"),rt.setAttribute("transform","translate("+i+","+i+")"),ut=o("circle"),ut.setAttribute("class","clockpicker-canvas-bearing"),ut.setAttribute("cx",0),ut.setAttribute("cy",0),ut.setAttribute("r",2),st=o("line"),st.setAttribute("x1",0),st.setAttribute("y1",0),ht=o("circle"),ht.setAttribute("class","clockpicker-canvas-bg"),ht.setAttribute("r",r),ct=o("circle"),ct.setAttribute("class","clockpicker-canvas-fg"),ct.setAttribute("r",5),rt.appendChild(st),rt.appendChild(ht),rt.appendChild(ct),rt.appendChild(ut),et.appendChild(rt),vt.append(et),this.hand=st,this.bg=ht,this.fg=ct,this.bearing=ut,this.g=rt,this.canvas=vt);f(this.options.init)}function f(n){n&&"function"==typeof n&&n()}var n=window.jQuery,w=n(window),e=n(document),b="http://www.w3.org/2000/svg",h="SVGAngle"in window&&function(){var t,n=document.createElement("div");return n.innerHTML="<svg/>",t=(n.firstChild&&n.firstChild.namespaceURI)==b,n.innerHTML="",t}(),nt=function(){var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"OTransition"in n}(),a="ontouchstart"in window,c="mousedown"+(a?" touchstart":""),v="mousemove.clockpicker"+(a?" touchmove.clockpicker":""),y="mouseup.clockpicker"+(a?" touchend.clockpicker":""),k=navigator.vibrate?"vibrate":navigator.webkitVibrate?"webkitVibrate":null,tt=0,i=135,u=110,l=80,r=20,d=2*i,p=nt?350:1,it='<div class="clockpicker picker"><div class="picker__holder"><div class="picker__frame"><div class="picker__wrap"><div class="picker__box"><div class="picker__date-display"><div class="clockpicker-display"><div class="clockpicker-display-column"><span class="clockpicker-span-hours text-primary"><\/span>:<span class="clockpicker-span-minutes"><\/span><\/div><div class="clockpicker-display-column clockpicker-display-am-pm"><div class="clockpicker-span-am-pm"><\/div><\/div><\/div><\/div><div class="picker__calendar-container"><div class="clockpicker-plate"><div class="clockpicker-canvas"><\/div><div class="clockpicker-dial clockpicker-hours"><\/div><div class="clockpicker-dial clockpicker-minutes clockpicker-dial-out"><\/div><\/div><div class="clockpicker-am-pm-block"><\/div><\/div><div class="picker__footer"><\/div><\/div><\/div><\/div><\/div><\/div>';t.DEFAULTS={"default":"",fromnow:0,donetext:"Done",autoclose:!1,ampmclickable:!1,darktheme:!1,twelvehour:!0,vibrate:!0};t.prototype.toggle=function(){this[this.isShown?"hide":"show"]()};t.prototype.locate=function(){var n=this.element,t=this.popover;n.offset();n.outerWidth();n.outerHeight();this.options.align;t.show()};t.prototype.show=function(){var i,t,r;this.isShown||(f(this.options.beforeShow),n(":input").each(function(){n(this).attr("tabindex",-1)}),i=this,this.input.blur(),this.popover.addClass("picker--opened"),this.input.addClass("picker__input picker__input--active"),n(document.body).css("overflow","hidden"),this.isAppended||(this.popover.insertAfter(this.input),this.options.twelvehour&&(this.amOrPm="PM",this.options.ampmclickable?(this.spanAmPm.children("#click-pm").addClass("text-primary"),this.spanAmPm.children("#click-am").removeClass("text-primary")):(this.amPmBlock.children(".am-button").removeClass("active"),this.amPmBlock.children(".pm-button").addClass("active"),this.spanAmPm.empty().append("PM"))),w.on("resize.clockpicker"+this.id,function(){i.isShown&&i.locate()}),this.isAppended=!0),t=((this.input.prop("value")||this.options.default||"")+"").split(":"),(this.options.twelvehour&&void 0!==t[1]&&(t[1]=t[1].replace("AM","").replace("PM","")),"now"===t[0])&&(r=new Date(+new Date+this.options.fromnow),t=[r.getHours(),r.getMinutes()]),this.hours=+t[0]||0,this.minutes=+t[1]||0,this.spanHours.html(s(this.hours)),this.spanMinutes.html(s(this.minutes)),this.toggleView("hours"),this.locate(),this.isShown=!0,e.on("click.clockpicker."+this.id+" focusin.clockpicker."+this.id,function(t){var r=n(t.target);0===r.closest(i.popover.find(".picker__wrap")).length&&0===r.closest(i.input).length&&i.hide()}),e.on("keyup.clockpicker."+this.id,function(n){27===n.keyCode&&i.hide()}),f(this.options.afterShow))};t.prototype.hide=function(){f(this.options.beforeHide);this.input.removeClass("picker__input picker__input--active");this.popover.removeClass("picker--opened");n(document.body).css("overflow","visible");this.isShown=!1;n(":input").each(function(t){n(this).attr("tabindex",t+1)});e.off("click.clockpicker."+this.id+" focusin.clockpicker."+this.id);e.off("keyup.clockpicker."+this.id);this.popover.hide();f(this.options.afterHide)};t.prototype.toggleView=function(t,i){var u=!1;"minutes"===t&&"visible"===n(this.hoursView).css("visibility")&&(f(this.options.beforeHourSelect),u=!0);var r="hours"===t,o=r?this.hoursView:this.minutesView,e=r?this.minutesView:this.hoursView;this.currentView=t;this.spanHours.toggleClass("text-primary",r);this.spanMinutes.toggleClass("text-primary",!r);e.addClass("clockpicker-dial-out");o.css("visibility","visible").removeClass("clockpicker-dial-out");this.resetClock(i);clearTimeout(this.toggleViewTimer);this.toggleViewTimer=setTimeout(function(){e.css("visibility","hidden")},p);u&&f(this.options.afterHourSelect)};t.prototype.resetClock=function(n){var r=this.currentView,t=this[r],f="hours"===r,a=Math.PI/(f?6:30),e=t*a,o=f&&t>0&&t<13?l:u,s=Math.sin(e)*o,c=-Math.cos(e)*o,i=this;h&&n?(i.canvas.addClass("clockpicker-canvas-out"),setTimeout(function(){i.canvas.removeClass("clockpicker-canvas-out");i.setHand(s,c)},n)):this.setHand(s,c)};t.prototype.setHand=function(t,i,f,e){var o,c=Math.atan2(t,-i),a="hours"===this.currentView,y=Math.PI/(a||f?6:30),g=Math.sqrt(t*t+i*i),p=this.options,w=a&&g<(u+l)/2,v=w?l:u;if(p.twelvehour&&(v=u),c<0&&(c=2*Math.PI+c),o=Math.round(c/y),c=o*y,p.twelvehour?a?0===o&&(o=12):(f&&(o*=5),60===o&&(o=0)):a?(12===o&&(o=0),o=w?0===o?12:o:0===o?0:o+12):(f&&(o*=5),60===o&&(o=0)),a?this.fg.setAttribute("class","clockpicker-canvas-fg"):o%5==0?this.fg.setAttribute("class","clockpicker-canvas-fg"):this.fg.setAttribute("class","clockpicker-canvas-fg active"),this[this.currentView]!==o&&k&&this.options.vibrate&&(this.vibrateTimer||(navigator[k](10),this.vibrateTimer=setTimeout(n.proxy(function(){this.vibrateTimer=null},this),100))),this[this.currentView]=o,this[a?"spanHours":"spanMinutes"].html(s(o)),!h)return void this[a?"hoursView":"minutesView"].find(".clockpicker-tick").each(function(){var t=n(this);t.toggleClass("active",o===+t.html())});e||!a&&o%5?(this.g.insertBefore(this.hand,this.bearing),this.g.insertBefore(this.bg,this.fg),this.bg.setAttribute("class","clockpicker-canvas-bg clockpicker-canvas-bg-trans")):(this.g.insertBefore(this.hand,this.bg),this.g.insertBefore(this.fg,this.bg),this.bg.setAttribute("class","clockpicker-canvas-bg"));var nt=Math.sin(c)*(v-r),tt=-Math.cos(c)*(v-r),b=Math.sin(c)*v,d=-Math.cos(c)*v;this.hand.setAttribute("x2",nt);this.hand.setAttribute("y2",tt);this.bg.setAttribute("cx",b);this.bg.setAttribute("cy",d);this.fg.setAttribute("cx",b);this.fg.setAttribute("cy",d)};t.prototype.done=function(){f(this.options.beforeDone);this.hide();this.label.addClass("active");var t=this.input.prop("value"),n=s(this.hours)+":"+s(this.minutes);this.options.twelvehour&&(n+=this.amOrPm);this.input.prop("value",n);n!==t&&(this.input.triggerHandler("change"),this.isInput||this.element.trigger("change"));this.options.autoclose&&this.input.trigger("blur");f(this.options.afterDone)};t.prototype.remove=function(){this.element.removeData("clockpicker");this.input.off("focus.clockpicker click.clockpicker");this.isShown&&this.hide();this.isAppended&&(w.off("resize.clockpicker"+this.id),this.popover.remove())};n.fn.pickatime=function(i){var r=Array.prototype.slice.call(arguments,1);return this.each(function(){var u=n(this),f=u.data("clockpicker"),e;f?"function"==typeof f[i]&&f[i].apply(f,r):(e=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),u.data("clockpicker",new t(u,e)))})}}(),function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():n.PhotoSwipe=t()}(this,function(){"use strict";return function(n,t,i,r){var f={features:null,bind:function(n,t,i,r){var f=(r?"remove":"add")+"EventListener",u;for(t=t.split(" "),u=0;u<t.length;u++)t[u]&&n[f](t[u],i,!1)},isArray:function(n){return n instanceof Array},createEl:function(n,t){var i=document.createElement(t||"div");return n&&(i.className=n),i},getScrollY:function(){var n=window.pageYOffset;return void 0!==n?n:document.documentElement.scrollTop},unbind:function(n,t,i){f.bind(n,t,i,!0)},removeClass:function(n,t){var i=new RegExp("(\\s|^)"+t+"(\\s|$)");n.className=n.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(n,t){f.hasClass(n,t)||(n.className+=(n.className?" ":"")+t)},hasClass:function(n,t){return n.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n.className)},getChildByClass:function(n,t){for(var i=n.firstChild;i;){if(f.hasClass(i,t))return i;i=i.nextSibling}},arraySearch:function(n,t,i){for(var r=n.length;r--;)if(n[r][i]===t)return r;return-1},extend:function(n,t,i){for(var r in t)if(t.hasOwnProperty(r)){if(i&&n.hasOwnProperty(r))continue;n[r]=t[r]}},easing:{sine:{out:function(n){return Math.sin(n*(Math.PI/2))},inOut:function(n){return-(Math.cos(Math.PI*n)-1)/2}},cubic:{out:function(n){return--n*n*n+1}}},detectFeatures:function(){var o,i,s,r,e,l;if(f.features)return f.features;var a=f.createEl(),v=a.style,t="",n={};(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,n.pointerEvent)||(o=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(i=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i&&i.length>0&&(i=parseInt(i[1],10))>=1&&8>i&&(n.isOldIOSPhone=!0)),s=o.match(/Android\s([0-9\.]*)/),r=s?s[1]:0,r=parseFloat(r),r>=1&&(4.4>r&&(n.isOldAndroid=!0),n.androidVersion=r),n.isMobileOpera=/opera mini|opera mobi/i.test(o));for(var u,h,y=["transform","perspective","animationName"],p=["","webkit","Moz","ms","O"],c=0;4>c;c++){for(t=p[c],e=0;3>e;e++)u=y[e],h=t+(t?u.charAt(0).toUpperCase()+u.slice(1):u),!n[u]&&h in v&&(n[u]=h);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}return n.raf||(l=0,n.raf=function(n){var t=(new Date).getTime(),i=Math.max(0,16-(t-l)),r=window.setTimeout(function(){n(t+i)},i);return l=t+i,r},n.caf=function(n){clearTimeout(n)}),n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=n,n}},u,e,oi,rf,uf,et;f.detectFeatures();f.features.oldIE&&(f.bind=function(n,t,i,r){t=t.split(" ");for(var u,e=(r?"detach":"attach")+"Event",o=function(){i.handleEvent.call(i)},f=0;f<t.length;f++)if(u=t[f])if("object"==typeof i&&i.handleEvent){if(r){if(!i["oldIE"+u])return!1}else i["oldIE"+u]=o;n[e]("on"+u,i["oldIE"+u])}else n[e]("on"+u,i)});u=this;e={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(n){return"A"===n.tagName},getDoubleTapZoom:function(n,t){return n?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(e,r);var di,ae,ef,h,ve,vt,hr,fu,b,l,si,of,sf,hf,eu,y,ye,ou,su,cr,hu,gi,dt,yt,cu,cf,pe,we,lf,hi,a,be,lu,lr,af,ar,vr,ct,vf,ci,nr,au,li,ot,pt,ke,de,s,wt,it,gt,yf,vu,yu,pu,wu,ni=function(){return{x:0,y:0}},ti=ni(),tr=ni(),o=ni(),k={},ii=0,ir={},rt=ni(),ht=0,bu=!0,pf=[],yr={},ai=!1,pr=function(n,t){f.extend(u,t.publicMethods);pf.push(n)},ku=function(n){var t=ft();return n>t-1?n-t:0>n?t+n:n},wr={},v=function(n,t){return wr[n]||(wr[n]=[]),wr[n].push(t)},c=function(n){var i=wr[n],r,t;if(i)for(r=Array.prototype.slice.call(arguments),r.shift(),t=0;t<i.length;t++)i[t].apply(u,r)},lt=function(){return(new Date).getTime()},bt=function(n){yu=n;u.bg.style.opacity=n*e.bgOpacity},ge=function(n,t,i,r,f){(!ai||f&&f!==u.currItem)&&(r/=f?f.fitRatio:u.currItem.fitRatio);n[gi]=of+t+"px, "+i+"px"+sf+" scale("+r+")"},p=function(n){wt&&(n&&(l>u.currItem.fitRatio?ai||(ki(u.currItem,!1,!0),ai=!0):ai&&(ki(u.currItem),ai=!1)),ge(wt,o.x,o.y,l))},br=function(n){n.container&&ge(n.container.style,n.initialPosition.x,n.initialPosition.y,n.initialZoomLevel,n)},rr=function(n,t){t[gi]=of+n+"px, 0px"+sf},du=function(n,t){if(!e.loop&&t){var r=h+(rt.x*ii-n)/rt.x,i=Math.round(n-kt.x);(0>r&&i>0||r>=ft()-1&&0>i)&&(n=kt.x+i*e.mainScrollEndFriction)}kt.x=n;rr(n,ve)},wf=function(n,t){var i=nu[n]-ir[n];return tr[n]+ti[n]+i-i*(t/si)},d=function(n,t){n.x=t.x;n.y=t.y;t.id&&(n.id=t.id)},no=function(n){n.x=Math.round(n.x);n.y=Math.round(n.y)},bf=null,kf=function(){bf&&(f.unbind(document,"mousemove",kf),f.addClass(n,"pswp--has_mouse"),e.mouseUsed=!0,c("mouseUsed"));bf=setTimeout(function(){bf=null},100)},is=function(){f.bind(document,"keydown",u);a.transform&&f.bind(u.scrollWrap,"click",u);e.mouseUsed||f.bind(document,"mousemove",kf);f.bind(window,"resize scroll",u);c("bindEvents")},rs=function(){f.unbind(window,"resize",u);f.unbind(window,"scroll",b.scroll);f.unbind(document,"keydown",u);f.unbind(document,"mousemove",kf);a.transform&&f.unbind(u.scrollWrap,"click",u);ct&&f.unbind(window,hr,u);c("unbindEvents")},df=function(n,t){var i=ru(u.currItem,k,n);return t&&(s=i),i},to=function(n){return n||(n=u.currItem),n.initialZoomLevel},io=function(n){return n||(n=u.currItem),n.w>0?e.maxSpreadZoom:1},ro=function(n,t,i,r){return r===u.currItem.initialZoomLevel?(i[n]=u.currItem.initialPosition[n],!0):(i[n]=wf(n,r),i[n]>t.min[n]?(i[n]=t.min[n],!0):i[n]<t.max[n]&&(i[n]=t.max[n],!0))},us=function(){if(gi)return of="translate"+(a.perspective&&!yt?"3d(":"("),void(sf=a.perspective?", 0px)":")");gi="left";f.addClass(n,"pswp--ie");rr=function(n,t){t.left=n+"px"};br=function(n){var i=n.fitRatio>1?1:n.fitRatio,t=n.container.style,r=i*n.w,u=i*n.h;t.width=r+"px";t.height=u+"px";t.left=n.initialPosition.x+"px";t.top=n.initialPosition.y+"px"};p=function(){if(wt){var n=wt,t=u.currItem,i=t.fitRatio>1?1:t.fitRatio,r=i*t.w,f=i*t.h;n.width=r+"px";n.height=f+"px";n.left=o.x+"px";n.top=o.y+"px"}}},fs=function(n){var t="";e.escKey&&27===n.keyCode?t="close":e.arrowKeys&&(37===n.keyCode?t="prev":39===n.keyCode&&(t="next"));t&&(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||(n.preventDefault?n.preventDefault():n.returnValue=!1,u[t]()))},es=function(n){n&&(nr||ci||it||ar)&&(n.preventDefault(),n.stopPropagation())},uo=function(){u.setScrollOffset(0,f.getScrollY())},ut={},ur=0,kr=function(n){ut[n]&&(ut[n].raf&&cf(ut[n].raf),ur--,delete ut[n])},gf=function(n){ut[n]&&kr(n);ut[n]||(ur++,ut[n]={})},dr=function(){for(var n in ut)ut.hasOwnProperty(n)&&kr(n)},gr=function(n,t,i,r,u,f,e){var s,h=lt(),o;gf(n);o=function(){if(ut[n]){if((s=lt()-h)>=r)return kr(n),f(i),void(e&&e());f((i-t)*u(s/r)+t);ut[n].raf=cu(o)}};o()},os={shout:c,listen:v,viewportSize:k,options:e,isMainScrollAnimating:function(){return it},getZoomLevel:function(){return l},getCurrentIndex:function(){return h},isDragging:function(){return ct},isZooming:function(){return pt},setScrollOffset:function(n,t){ir.x=n;hi=ir.y=t;c("updateScrollOffset",ir)},applyZoomPan:function(n,t,i,r){o.x=t;o.y=i;l=n;p(r)},init:function(){var i,o,r;if(!di&&!ae){for(u.framework=f,u.template=n,u.bg=f.getChildByClass(n,"pswp__bg"),pe=n.className,di=!0,a=f.detectFeatures(),cu=a.raf,cf=a.caf,gi=a.transform,lf=a.oldIE,u.scrollWrap=f.getChildByClass(n,"pswp__scroll-wrap"),u.container=f.getChildByClass(u.scrollWrap,"pswp__container"),ve=u.container.style,u.itemHolders=y=[{el:u.container.children[0],wrap:0,index:-1},{el:u.container.children[1],wrap:0,index:-1},{el:u.container.children[2],wrap:0,index:-1}],y[0].el.style.display=y[2].el.style.display="none",us(),b={resize:u.updateSize,scroll:uo,keydown:fs,click:es},o=a.isOldIOSPhone||a.isOldAndroid||a.isMobileOpera,a.animationName&&a.transform&&!o||(e.showAnimationDuration=e.hideAnimationDuration=0),i=0;i<pf.length;i++)u["init"+pf[i]]();for(t&&(u.ui=new t(u,f)).init(),c("firstUpdate"),h=h||e.index||0,(isNaN(h)||0>h||h>=ft())&&(h=0),u.currItem=ei(h),(a.isOldIOSPhone||a.isOldAndroid)&&(bu=!1),n.setAttribute("aria-hidden","false"),e.modal&&(bu?n.style.position="fixed":(n.style.position="absolute",n.style.top=f.getScrollY()+"px")),void 0===hi&&(c("initialLayout"),hi=we=f.getScrollY()),r="pswp--open ",e.mainClass&&(r+=e.mainClass+" "),e.showHideOpacity&&(r+="pswp--animate_opacity "),r+=yt?"pswp--touch":"pswp--notouch",r+=a.animationName?" pswp--css_animation":"",r+=a.svg?" pswp--svg":"",f.addClass(n,r),u.updateSize(),vt=-1,ht=null,i=0;3>i;i++)rr((i+vt)*rt.x,y[i].el.style);lf||f.bind(u.scrollWrap,fu,u);v("initialZoomInEnd",function(){u.setContent(y[0],h-1);u.setContent(y[2],h+1);y[0].el.style.display=y[2].el.style.display="block";e.focus&&n.focus();is()});u.setContent(y[1],h);u.updateCurrItem();c("afterInit");bu||(hf=setInterval(function(){ur||ct||pt||l!==u.currItem.initialZoomLevel||u.updateSize()},1e3));f.addClass(n,"pswp--visible")}},close:function(){di&&(di=!1,ae=!0,c("close"),rs(),vo(u.currItem,null,!0,u.destroy))},destroy:function(){c("destroy");wi&&clearTimeout(wi);n.setAttribute("aria-hidden","true");n.className=pe;hf&&clearInterval(hf);f.unbind(u.scrollWrap,fu,u);f.unbind(window,"scroll",u);te();dr();wr=null},panTo:function(n,t,i){i||(n>s.min.x?n=s.min.x:n<s.max.x&&(n=s.max.x),t>s.min.y?t=s.min.y:t<s.max.y&&(t=s.max.y));o.x=n;o.y=t;p()},handleEvent:function(n){n=n||window.event;b[n.type]&&b[n.type](n)},goTo:function(n){n=ku(n);var t=n-h;ht=t;h=n;u.currItem=ei(h);ii-=t;du(rt.x*ii);dr();it=!1;u.updateCurrItem()},next:function(){u.goTo(h+1)},prev:function(){u.goTo(h-1)},updateCurrZoomItem:function(n){if(n&&c("beforeChange",0),y[1].el.children.length){var t=y[1].el.children[0];wt=f.hasClass(t,"pswp__zoom-wrap")?t.style:null}else wt=null;s=u.currItem.bounds;si=l=u.currItem.initialZoomLevel;o.x=s.center.x;o.y=s.center.y;n&&c("afterChange")},invalidateCurrItems:function(){eu=!0;for(var n=0;3>n;n++)y[n].item&&(y[n].item.needsUpdate=!0)},updateCurrItem:function(n){var t,i,r,f;if(0!==ht&&(i=Math.abs(ht),!(n&&2>i))){for(u.currItem=ei(h),ai=!1,c("beforeChange",ht),i>=3&&(vt+=ht+(ht>0?-3:3),i=3),r=0;i>r;r++)ht>0?(t=y.shift(),y[2]=t,vt++,rr((vt+2)*rt.x,t.el.style),u.setContent(t,h-i+r+1+1)):(t=y.pop(),y.unshift(t),vt--,rr(vt*rt.x,t.el.style),u.setContent(t,h+i-r-2));wt&&1===Math.abs(ht)&&(f=ei(ye),f.initialZoomLevel!==l&&(ru(f,k),ki(f),br(f)));ht=0;u.updateCurrZoomItem();ye=h;c("afterChange")}},updateSize:function(t){var w,v,i,r,a;if(!bu&&e.modal){if(w=f.getScrollY(),hi!==w&&(n.style.top=w+"px",hi=w),!t&&yr.x===window.innerWidth&&yr.y===window.innerHeight)return;yr.x=window.innerWidth;yr.y=window.innerHeight;n.style.height=yr.y+"px"}if(k.x=u.scrollWrap.clientWidth,k.y=u.scrollWrap.clientHeight,uo(),rt.x=k.x+Math.round(k.x*e.spacing),rt.y=k.y,du(rt.x*ii),c("beforeResize"),void 0!==vt){for(a=0;3>a;a++)v=y[a],rr((a+vt)*rt.x,v.el.style),r=h+a-1,e.loop&&ft()>2&&(r=ku(r)),i=ei(r),i&&(eu||i.needsUpdate||!i.bounds)?(u.cleanSlide(i),u.setContent(v,r),1===a&&(u.currItem=i,u.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===v.index&&r>=0&&u.setContent(v,r),i&&i.container&&(ru(i,k),ki(i),br(i));eu=!1}si=l=u.currItem.initialZoomLevel;s=u.currItem.bounds;s&&(o.x=s.center.x,o.y=s.center.y,p(!0));c("resize")},zoomTo:function(n,t,i,r,u){var h,e,c,s,a;t&&(si=l,nu.x=Math.abs(t.x)-o.x,nu.y=Math.abs(t.y)-o.y,d(tr,o));h=df(n,!1);e={};ro("x",h,e,n);ro("y",h,e,n);c=l;s={x:o.x,y:o.y};no(e);a=function(t){1===t?(l=n,o.x=e.x,o.y=e.y):(l=(n-c)*t+c,o.x=(e.x-s.x)*t+s.x,o.y=(e.y-s.y)*t+s.y);u&&u(t);p(1===t)};i?gr("customZoomTo",0,1,i,r||f.easing.sine.inOut,a):a(1)}},g={},vi={},nt={},tt={},fr={},ri=[],yi={},pi=[],er={},gu=0,nf=ni(),ne=0,kt=ni(),nu=ni(),or=ni(),ss=function(n,t){return n.x===t.x&&n.y===t.y},hs=function(n,t){return Math.abs(n.x-t.x)<25&&Math.abs(n.y-t.y)<25},fo=function(n,t){return er.x=Math.abs(n.x-t.x),er.y=Math.abs(n.y-t.y),Math.sqrt(er.x*er.x+er.y*er.y)},te=function(){au&&(cf(au),au=null)},eo=function(){ct&&(au=cu(eo),ps())},cs=function(){return!("fit"===e.scaleMode&&l===u.currItem.initialZoomLevel)},oo=function(n,t){return!(!n||n===document)&&!(n.getAttribute("class")&&n.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(n)?n:oo(n.parentNode,t))},ie={},so=function(n,t){return ie.prevent=!oo(n.target,e.isClickableElement),c("preventDragEvent",n,t,ie),ie.prevent},ho=function(n,t){return t.x=n.pageX,t.y=n.pageY,t.id=n.identifier,t},co=function(n,t,i){i.x=.5*(n.x+t.x);i.y=.5*(n.y+t.y)},ls=function(n,t,i){if(n-lu>50){var r=pi.length>2?pi.shift():{};r.x=t;r.y=i;pi.push(r);lu=n}},lo=function(){var n=o.y-u.currItem.initialPosition.y;return 1-Math.abs(n/(k.y/2))},tu={},as={},ui=[],re=function(n){for(;ui.length>0;)ui.pop();return dt?(wu=0,ri.forEach(function(n){0===wu?ui[0]=n:1===wu&&(ui[1]=n);wu++})):n.type.indexOf("touch")>-1?n.touches&&n.touches.length>0&&(ui[0]=ho(n.touches[0],tu),n.touches.length>1&&(ui[1]=ho(n.touches[1],as))):(tu.x=n.pageX,tu.y=n.pageY,tu.id="",ui[0]=tu),ui},ao=function(n,t){var f,c,a,i,r=o[n]+t[n],y=t[n]>0,h=kt.x+t.x,v=kt.x-yi.x;return f=r>s.min[n]||r<s.max[n]?e.panEndFriction:1,r=o[n]+t[n]*f,!e.allowPanToNext&&l!==u.currItem.initialZoomLevel||(wt?"h"!==gt||"x"!==n||ci||(y?(r>s.min[n]&&(f=e.panEndFriction,s.min[n]-r,c=s.min[n]-tr[n]),(0>=c||0>v)&&ft()>1?(i=h,0>v&&h>yi.x&&(i=yi.x)):s.min.x!==s.max.x&&(a=r)):(r<s.max[n]&&(f=e.panEndFriction,r-s.max[n],c=tr[n]-s.max[n]),(0>=c||v>0)&&ft()>1?(i=h,v>0&&h<yi.x&&(i=yi.x)):s.min.x!==s.max.x&&(a=r))):i=h,"x"!==n)?void(it||li||l>u.currItem.fitRatio&&(o[n]+=t[n]*f)):(void 0!==i&&(du(i,!0),li=i!==yi.x),s.min.x!==s.max.x&&(void 0!==a?o.x=a:li||(o.x+=t.x*f)),void 0!==i)},vs=function(n){var i,t,r;if(!("mousedown"===n.type&&n.button>0)){if(iu)return void n.preventDefault();vr&&"mousedown"===n.type||((so(n,!0)&&n.preventDefault(),c("pointerDown"),dt)&&(i=f.arraySearch(ri,n.pointerId,"id"),0>i&&(i=ri.length),ri[i]={x:n.pageX,y:n.pageY,id:n.pointerId}),t=re(n),r=t.length,ot=null,dr(),ct&&1!==r||(ct=yf=!0,f.bind(window,hr,u),af=pu=vu=ar=li=nr=vf=ci=!1,gt=null,c("firstTouchStart",t),d(tr,o),ti.x=ti.y=0,d(tt,t[0]),d(fr,tt),yi.x=rt.x*ii,pi=[{x:tt.x,y:tt.y}],lu=be=lt(),df(l,!0),te(),eo()),!pt&&r>1&&!it&&!li&&(si=l,ci=!1,pt=vf=!0,ti.y=ti.x=0,d(tr,o),d(g,t[0]),d(vi,t[1]),co(g,vi,or),nu.x=Math.abs(or.x)-o.x,nu.y=Math.abs(or.y)-o.y,ke=de=fo(g,vi)))}},ys=function(n){var i,r,t,u;(n.preventDefault(),dt)&&(i=f.arraySearch(ri,n.pointerId,"id"),i>-1&&(r=ri[i],r.x=n.pageX,r.y=n.pageY));ct&&(t=re(n),gt||nr||pt?ot=t:kt.x!==rt.x*ii?gt="h":(u=Math.abs(t[0].x-tt.x)-Math.abs(t[0].y-tt.y),Math.abs(u)>=10&&(gt=u>0?"h":"v",ot=t)))},ps=function(){var r,f,n,y,a,v,w;if(ot&&(r=ot.length,0!==r))if(d(g,ot[0]),nt.x=g.x-tt.x,nt.y=g.y-tt.y,pt&&r>1){if(tt.x=g.x,tt.y=g.y,!nt.x&&!nt.y&&ss(ot[1],vi))return;d(vi,ot[1]);ci||(ci=!0,c("zoomGestureStarted"));f=fo(g,vi);n=gs(f);n>u.currItem.initialZoomLevel+u.currItem.initialZoomLevel/15&&(pu=!0);var t=1,i=to(),h=io();i>n?e.pinchToClose&&!pu&&si<=u.currItem.initialZoomLevel?(y=i-n,a=1-y/(i/1.2),bt(a),c("onPinchClose",a),vu=!0):(t=(i-n)/i,t>1&&(t=1),n=i-t*(i/3)):n>h&&(t=(n-h)/(6*i),t>1&&(t=1),n=h+t*i);0>t&&(t=0);ke=f;co(g,vi,nf);ti.x+=nf.x-or.x;ti.y+=nf.y-or.y;d(or,nf);o.x=wf("x",n);o.y=wf("y",n);af=n>l;l=n;p()}else{if(!gt)return;if(yf&&(yf=!1,Math.abs(nt.x)>=10&&(nt.x-=ot[0].x-fr.x),Math.abs(nt.y)>=10&&(nt.y-=ot[0].y-fr.y)),tt.x=g.x,tt.y=g.y,0===nt.x&&0===nt.y)return;if("v"===gt&&e.closeOnVerticalDrag&&!cs())return ti.y+=nt.y,o.y+=nt.y,v=lo(),ar=!0,c("onVerticalDrag",v),bt(v),void p();ls(lt(),g.x,g.y);nr=!0;s=u.currItem.bounds;w=ao("x",nt);w||(ao("y",nt),no(o),p())}},ws=function(n){var i,h,b,r,v,t,s,k,y,w,g;if(a.isOldAndroid){if(vr&&"mouseup"===n.type)return;n.type.indexOf("touch")>-1&&(clearTimeout(vr),vr=setTimeout(function(){vr=0},600))}if(c("pointerUp"),so(n,!1)&&n.preventDefault(),dt&&(h=f.arraySearch(ri,n.pointerId,"id"),h>-1&&((i=ri.splice(h,1)[0],navigator.pointerEnabled)?i.type=n.pointerType||"mouse":(b={4:"mouse",2:"touch",3:"pen"},i.type=b[n.pointerType],i.type||(i.type=n.pointerType||"mouse")))),v=re(n),t=v.length,"mouseup"===n.type&&(t=0),2===t)return ot=null,!0;if(1===t&&d(fr,v[0]),0!==t||gt||it||(i||("mouseup"===n.type?i={x:n.pageX,y:n.pageY,type:"mouse"}:n.changedTouches&&n.changedTouches[0]&&(i={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY,type:"touch"})),c("touchRelease",n,i)),s=-1,0===t&&(ct=!1,f.unbind(window,hr,u),te(),pt?s=0:-1!==ne&&(s=lt()-ne)),ne=1===t?lt():-1,r=-1!==s&&150>s?"zoom":"swipe",pt&&2>t&&(pt=!1,1===t&&(r="zoomPointerUp"),c("zoomGestureEnded")),ot=null,nr||ci||it||ar)if(dr(),lr||(lr=bs()),lr.calculateSwipeSpeed("x"),ar)k=lo(),k<e.verticalDragRange?u.close():(y=o.y,w=yu,gr("verticalDrag",0,1,300,f.easing.cubic.out,function(n){o.y=(u.currItem.initialPosition.y-y)*n+y;bt((1-w)*n+w);p()}),c("onVerticalDrag",1));else{if((li||it)&&0===t){if(g=ds(r,lr),g)return;r="zoomPointerUp"}if(!it)return"swipe"!==r?void nh():void(!li&&l>u.currItem.fitRatio&&ks(lr))}},bs=function(){var t,i,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(r){pi.length>1?(t=lt()-lu+50,i=pi[pi.length-2][r]):(t=lt()-be,i=fr[r]);n.lastFlickOffset[r]=tt[r]-i;n.lastFlickDist[r]=Math.abs(n.lastFlickOffset[r]);n.lastFlickSpeed[r]=n.lastFlickDist[r]>20?n.lastFlickOffset[r]/t:0;Math.abs(n.lastFlickSpeed[r])<.1&&(n.lastFlickSpeed[r]=0);n.slowDownRatio[r]=.95;n.slowDownRatioReverse[r]=1-n.slowDownRatio[r];n.speedDecelerationRatio[r]=1},calculateOverBoundsAnimOffset:function(t,i){n.backAnimStarted[t]||(o[t]>s.min[t]?n.backAnimDestination[t]=s.min[t]:o[t]<s.max[t]&&(n.backAnimDestination[t]=s.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,gr("bounceZoomPan"+t,o[t],n.backAnimDestination[t],i||300,f.easing.sine.out,function(n){o[t]=n;p()}))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,o[t]+=n.distanceOffset[t])},panAnimLoop:function(){if(ut.zoomPan&&(ut.zoomPan.raf=cu(n.panAnimLoop),n.now=lt(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),p(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return(o.x=Math.round(o.x),o.y=Math.round(o.y),p(),void kr("zoomPan"))}};return n},ks=function(n){return n.calculateSwipeSpeed("y"),s=u.currItem.bounds,n.backAnimDestination={},n.backAnimStarted={},Math.abs(n.lastFlickSpeed.x)<=.05&&Math.abs(n.lastFlickSpeed.y)<=.05?(n.speedDecelerationRatioAbs.x=n.speedDecelerationRatioAbs.y=0,n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),!0):(gf("zoomPan"),n.lastNow=lt(),void n.panAnimLoop())},ds=function(n,t){var r,o,l,a,v,i,s,y;return it||(gu=h),"swipe"===n&&(l=tt.x-fr.x,a=t.lastFlickDist.x<10,l>30&&(a||t.lastFlickOffset.x>20)?o=-1:-30>l&&(a||t.lastFlickOffset.x<-20)&&(o=1)),o&&(h+=o,0>h?(h=e.loop?ft()-1:0,v=!0):h>=ft()&&(h=e.loop?0:ft()-1,v=!0),(!v||e.loop)&&(ht+=o,ii-=o,r=!0)),s=rt.x*ii,y=Math.abs(s-kt.x),r||s>kt.x==t.lastFlickSpeed.x>0?(i=Math.abs(t.lastFlickSpeed.x)>0?y/Math.abs(t.lastFlickSpeed.x):333,i=Math.min(i,400),i=Math.max(i,250)):i=333,gu===h&&(r=!1),it=!0,c("mainScrollAnimStart"),gr("mainScroll",kt.x,s,i,f.easing.cubic.out,du,function(){dr();it=!1;gu=-1;(r||gu!==h)&&u.updateCurrItem();c("mainScrollAnimComplete")}),r&&u.updateCurrItem(!0),r},gs=function(n){return 1/de*n*si},nh=function(){var n=l,t=to(),r=io(),e,i;return t>l?n=t:l>r&&(n=r),i=yu,vu&&!af&&!pu&&t>l?(u.close(),!0):(vu&&(e=function(n){bt((1-i)*n+i)}),u.zoomTo(n,0,200,f.easing.cubic.out,e),!0)};pr("Gestures",{publicMethods:{initGestures:function(){var n=function(n,t,i,r,u){ou=n+t;su=n+i;cr=n+r;hu=u?n+u:""};dt=a.pointerEvent;dt&&a.touch&&(a.touch=!1);dt?navigator.pointerEnabled?n("pointer","down","move","up","cancel"):n("MSPointer","Down","Move","Up","Cancel"):a.touch?(n("touch","start","move","end","cancel"),yt=!0):n("mouse","down","move","up");hr=su+" "+cr+" "+hu;fu=ou;dt&&!yt&&(yt=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1);u.likelyTouchDevice=yt;b[ou]=vs;b[su]=ys;b[cr]=ws;hu&&(b[hu]=b[cr]);a.touch&&(fu+=" mousedown",hr+=" mousemove mouseup",b.mousedown=b[ou],b.mousemove=b[su],b.mouseup=b[cr]);yt||(e.allowPanToNext=!1)}}});var wi,fi,ue,iu,ei,ft,th,vo=function(t,i,r,s){var a,v,y;if(wi&&clearTimeout(wi),iu=!0,ue=!0,t.initialLayout?(a=t.initialLayout,t.initialLayout=null):a=e.getThumbBoundsFn&&e.getThumbBoundsFn(h),v=r?e.hideAnimationDuration:e.showAnimationDuration,y=function(){kr("initialZoom");r?(u.template.removeAttribute("style"),u.bg.removeAttribute("style")):(bt(1),i&&(i.style.display="block"),f.addClass(n,"pswp--animated-in"),c("initialZoom"+(r?"OutEnd":"InEnd")));s&&s();iu=!1},!v||!a||void 0===a.x)return c("initialZoom"+(r?"Out":"In")),l=t.initialZoomLevel,d(o,t.initialPosition),p(),n.style.opacity=r?0:1,bt(1),void(v?setTimeout(function(){y()},v):y());!function(){var s=ef,i=!u.currItem.src||u.currItem.loadError||e.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden");r||(l=a.w/t.w,o.x=a.x,o.y=a.y-we,u[i?"template":"bg"].style.opacity=.001,p());gf("initialZoom");r&&!s&&f.removeClass(n,"pswp--animated-in");i&&(r?f[(s?"remove":"add")+"Class"](n,"pswp--animate_opacity"):setTimeout(function(){f.addClass(n,"pswp--animate_opacity")},30));wi=setTimeout(function(){if(c("initialZoom"+(r?"Out":"In")),r){var e=a.w/t.w,u={x:o.x,y:o.y},h=l,w=yu,b=function(t){1===t?(l=e,o.x=a.x,o.y=a.y-hi):(l=(e-h)*t+h,o.x=(a.x-u.x)*t+u.x,o.y=(a.y-hi-u.y)*t+u.y);p();i?n.style.opacity=1-t:bt(w-t*w)};s?gr("initialZoom",0,1,v,f.easing.cubic.out,b,y):(b(1),wi=setTimeout(y,v+20))}else l=t.initialZoomLevel,d(o,t.initialPosition),p(),bt(1),i?n.style.opacity=1:bt(1),wi=setTimeout(y,v+20)},r?25:90)}()},st={},bi=[],ih={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image<\/a> could not be loaded.<\/div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return fi.length}},yo=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},rh=function(n,t,i){var r=n.bounds;r.center.x=Math.round((st.x-t)/2);r.center.y=Math.round((st.y-i)/2)+n.vGap.top;r.max.x=t>st.x?Math.round(st.x-t):r.center.x;r.max.y=i>st.y?Math.round(st.y-i)+n.vGap.top:r.center.y;r.min.x=t>st.x?0:r.center.x;r.min.y=i>st.y?n.vGap.top:r.center.y},ru=function(n,t,i){var r,u,f,o;return n.src&&!n.loadError?(r=!i,(r&&(n.vGap||(n.vGap={top:0,bottom:0}),c("parseVerticalMargin",n)),st.x=t.x,st.y=t.y-n.vGap.top-n.vGap.bottom,r)&&(u=st.x/n.w,f=st.y/n.h,n.fitRatio=f>u?u:f,o=e.scaleMode,"orig"===o?i=1:"fit"===o&&(i=n.fitRatio),i>1&&(i=1),n.initialZoomLevel=i,n.bounds||(n.bounds=yo())),!i)?void 0:(rh(n,n.w*i,n.h*i),r&&i===n.initialZoomLevel&&(n.initialPosition=n.bounds.center),n.bounds):(n.w=n.h=0,n.initialZoomLevel=n.fitRatio=1,n.bounds=yo(),n.initialPosition=n.bounds.center,n.bounds)},tf=function(n,t,i,r,f,e){t.loadError||r&&(t.imageAppended=!0,ki(t,r,t===u.currItem&&ai),i.appendChild(r),e&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},po=function(n){n.loading=!0;n.loaded=!1;var t=n.img=f.createEl("pswp__img","img"),i=function(){n.loading=!1;n.loaded=!0;n.loadComplete?n.loadComplete(n):n.img=null;t.onload=t.onerror=null;t=null};return t.onload=i,t.onerror=function(){n.loadError=!0;i()},t.src=n.src,t},wo=function(n,t){if(n.src&&n.loadError&&n.container)return(t&&(n.container.innerHTML=""),n.container.innerHTML=e.errorMsg.replace("%url%",n.src),!0)},ki=function(n,t,i){if(n.src){t||(t=n.container.lastChild);var r=i?n.w:Math.round(n.w*n.fitRatio),u=i?n.h:Math.round(n.h*n.fitRatio);n.placeholder&&!n.loaded&&(n.placeholder.style.width=r+"px",n.placeholder.style.height=u+"px");t.style.width=r+"px";t.style.height=u+"px"}},bo=function(){if(bi.length){for(var n,t=0;t<bi.length;t++)n=bi[t],n.holder.index===n.index&&tf(n.index,n.item,n.baseDiv,n.img,0,n.clearPlaceholder);bi=[]}};pr("Controller",{publicMethods:{lazyLoadItem:function(n){n=ku(n);var t=ei(n);t&&(!t.loaded&&!t.loading||eu)&&(c("gettingData",n,t),t.src&&po(t))},initController:function(){f.extend(e,ih,!0);u.items=fi=i;ei=u.getItemAt;ft=e.getNumItemsFn;th=e.loop;ft()<3&&(e.loop=!1);v("beforeChange",function(n){for(var i=e.preload,r=null===n||n>=0,f=Math.min(i[0],ft()),o=Math.min(i[1],ft()),t=1;(r?o:f)>=t;t++)u.lazyLoadItem(h+t);for(t=1;(r?f:o)>=t;t++)u.lazyLoadItem(h-t)});v("initialLayout",function(){u.currItem.initialLayout=e.getThumbBoundsFn&&e.getThumbBoundsFn(h)});v("mainScrollAnimComplete",bo);v("initialZoomInEnd",bo);v("destroy",function(){for(var n,t=0;t<fi.length;t++)n=fi[t],n.container&&(n.container=null),n.placeholder&&(n.placeholder=null),n.img&&(n.img=null),n.preloader&&(n.preloader=null),n.loadError&&(n.loaded=n.loadError=!1);bi=null})},getItemAt:function(n){return n>=0&&void 0!==fi[n]&&fi[n]},allowProgressiveImg:function(){return e.forceProgressiveLoading||!yt||e.mouseUsed||screen.width>1200},setContent:function(n,t){var l,o,i,r,v,s;if(e.loop&&(t=ku(t)),l=u.getItemAt(n.index),l&&(l.container=null),i=u.getItemAt(t),!i)return void(n.el.innerHTML="");c("gettingData",t,i);n.index=t;n.item=i;r=i.container=f.createEl("pswp__zoom-wrap");(!i.src&&i.html&&(i.html.tagName?r.appendChild(i.html):r.innerHTML=i.html),wo(i),ru(i,k),!i.src||i.loadError||i.loaded)?i.src&&!i.loadError&&(o=f.createEl("pswp__img","img"),o.style.opacity=1,o.src=i.src,ki(i,o),tf(0,i,r,o)):((i.loadComplete=function(i){if(di){if(n&&n.index===t){if(wo(i,!0))return i.loadComplete=i.img=null,ru(i,k),br(i),void(n.index===h&&u.updateCurrZoomItem());i.imageAppended?!iu&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null):a.transform&&(it||iu)?bi.push({item:i,baseDiv:r,img:i.img,index:t,holder:n,clearPlaceholder:!0}):tf(0,i,r,i.img,0,!0)}i.loadComplete=null;i.img=null;c("imageLoadComplete",t,i)}},f.features.transform)&&(v="pswp__img pswp__img--placeholder",v+=i.msrc?"":" pswp__img--placeholder--blank",s=f.createEl(v,i.msrc?"img":""),i.msrc&&(s.src=i.msrc),ki(i,s),r.appendChild(s),i.placeholder=s),i.loading||po(i),u.allowProgressiveImg()&&(!ue&&a.transform?bi.push({item:i,baseDiv:r,img:i.img,index:t,holder:n}):tf(0,i,r,i.img,0,!0)));ue||t!==h?br(i):(wt=r.style,vo(i,o||i.img));n.el.innerHTML="";n.el.appendChild(r)},cleanSlide:function(n){n.img&&(n.img.onload=n.img.onerror=null);n.loaded=n.loading=n.img=n.imageAppended=!1}}});rf={};uf=function(n,t,i){var r=document.createEvent("CustomEvent"),u={origEvent:n,target:n.target,releasePoint:t,pointerType:i||"touch"};r.initCustomEvent("pswpTap",!0,!0,u);n.target.dispatchEvent(r)};pr("Tap",{publicMethods:{initTap:function(){v("firstTouchStart",u.onTapStart);v("touchRelease",u.onTapRelease);v("destroy",function(){rf={};oi=null})},onTapStart:function(n){n.length>1&&(clearTimeout(oi),oi=null)},onTapRelease:function(n,t){if(t&&!nr&&!vf&&!ur){var i=t;if(oi&&(clearTimeout(oi),oi=null,hs(i,rf)))return void c("doubleTap",i);if("mouse"===t.type)return void uf(n,t,"mouse");if("BUTTON"===n.target.tagName.toUpperCase()||f.hasClass(n.target,"pswp__single-tap"))return void uf(n,t);d(rf,i);oi=setTimeout(function(){uf(n,t);oi=null},300)}}}});pr("DesktopZoom",{publicMethods:{initDesktopZoom:function(){lf||(yt?v("mouseUsed",function(){u.setupDesktopZoom()}):u.setupDesktopZoom(!0))},setupDesktopZoom:function(t){var r,e,i,o;et={};r="wheel mousewheel DOMMouseScroll";v("bindEvents",function(){f.bind(n,r,u.handleMouseWheel)});v("unbindEvents",function(){et&&f.unbind(n,r,u.handleMouseWheel)});u.mouseZoomedIn=!1;i=function(){u.mouseZoomedIn&&(f.removeClass(n,"pswp--zoomed-in"),u.mouseZoomedIn=!1);1>l?f.addClass(n,"pswp--zoom-allowed"):f.removeClass(n,"pswp--zoom-allowed");o()};o=function(){e&&(f.removeClass(n,"pswp--dragging"),e=!1)};v("resize",i);v("afterChange",i);v("pointerDown",function(){u.mouseZoomedIn&&(e=!0,f.addClass(n,"pswp--dragging"))});v("pointerUp",o);t||i()},handleMouseWheel:function(n){if(l<=u.currItem.fitRatio)return e.modal&&(!e.closeOnScroll||ur||ct?n.preventDefault():gi&&Math.abs(n.deltaY)>2&&(ef=!0,u.close())),!0;if(n.stopPropagation(),et.x=0,"deltaX"in n)1===n.deltaMode?(et.x=18*n.deltaX,et.y=18*n.deltaY):(et.x=n.deltaX,et.y=n.deltaY);else if("wheelDelta"in n)n.wheelDeltaX&&(et.x=-.16*n.wheelDeltaX),et.y=n.wheelDeltaY?-.16*n.wheelDeltaY:-.16*n.wheelDelta;else{if(!("detail"in n))return;et.y=n.detail}df(l,!0);var t=o.x-et.x,i=o.y-et.y;(e.modal||t<=s.min.x&&t>=s.max.x&&i<=s.min.y&&i>=s.max.y)&&n.preventDefault();u.panTo(t,i)},toggleDesktopZoom:function(t){t=t||{x:k.x/2+ir.x,y:k.y/2+ir.y};var r=e.getDoubleTapZoom(!0,u.currItem),i=l===r;u.mouseZoomedIn=!i;u.zoomTo(i?u.currItem.initialZoomLevel:r,t,333);f[(i?"remove":"add")+"Class"](n,"pswp--zoomed-in")}}});var fe,ko,uu,ff,ee,go,w,sr,oe,se,at,he,uh={history:!0,galleryUID:1},ce=function(){return at.hash.substring(1)},ns=function(){fe&&clearTimeout(fe);uu&&clearTimeout(uu)},ts=function(){var u=ce(),n={},t,i,r,f;if(u.length<5)return n;for(i=u.split("&"),t=0;t<i.length;t++)i[t]&&(r=i[t].split("="),r.length<2||(n[r[0]]=r[1]));if(e.galleryPIDs){for(f=n.pid,n.pid=0,t=0;t<fi.length;t++)if(fi[t].pid===f){n.pid=t;break}}else n.pid=parseInt(n.pid,10)-1;return n.pid<0&&(n.pid=0),n},le=function(){var t,i,n,r;if(uu&&clearTimeout(uu),ur||ct)return void(uu=setTimeout(le,500));ff?clearTimeout(ko):ff=!0;t=h+1;i=ei(h);i.hasOwnProperty("pid")&&(t=i.pid);n=w+"&gid="+e.galleryUID+"&pid="+t;sr||-1===at.hash.indexOf(n)&&(se=!0);r=at.href.split("#")[0]+"#"+n;he?"#"+n!==window.location.hash&&history[sr?"replaceState":"pushState"]("",document.title,r):sr?at.replace(r):at.hash=n;sr=!0;ko=setTimeout(function(){ff=!1},60)};pr("History",{publicMethods:{initHistory:function(){var n,t;(f.extend(e,uh,!0),e.history)&&(at=window.location,se=!1,oe=!1,sr=!1,w=ce(),he="pushState"in history,w.indexOf("gid=")>-1&&(w=w.split("&gid=")[0],w=w.split("?gid=")[0]),v("afterChange",u.updateURL),v("unbindEvents",function(){f.unbind(window,"hashchange",u.onHashChange)}),n=function(){go=!0;oe||(se?history.back():w?at.hash=w:he?history.pushState("",document.title,at.pathname+at.search):at.hash="");ns()},v("unbindEvents",function(){ef&&n()}),v("destroy",function(){go||n()}),v("firstUpdate",function(){h=ts().pid}),t=w.indexOf("pid="),t>-1&&(w=w.substring(0,t),"&"===w.slice(-1)&&(w=w.slice(0,-1))),setTimeout(function(){di&&f.bind(window,"hashchange",u.onHashChange)},40))},onHashChange:function(){return ce()===w?(oe=!0,void u.close()):void(ff||(ee=!0,u.goTo(ts().pid),ee=!1))},updateURL:function(){ns();ee||(sr?fe=setTimeout(le,800):le())}}});f.extend(u,os)}}),function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():n.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(n,t){var e,u,a,c,it,rt,s,ut,b,f,ft,et,ot,st,i,y,yt,k,d,r=this,g=!1,h=!0,o=!0,pt={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(n,t){return n.title?(t.children[0].innerHTML=n.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return n.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return n.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},ht=function(n){var e;if(y)return!0;n=n||window.event;i.timeToIdle&&i.mouseUsed&&!b&&tt();for(var r,f,o=n.target||n.srcElement,s=o.getAttribute("class")||"",u=0;u<w.length;u++)r=w[u],r.onTap&&s.indexOf("pswp__"+r.name)>-1&&(r.onTap(),f=!0);f&&(n.stopPropagation&&n.stopPropagation(),y=!0,e=t.features.isOldAndroid?600:30,yt=setTimeout(function(){y=!1},e))},wt=function(){return!n.likelyTouchDevice||i.mouseUsed||screen.width>i.fitControlsWidth},l=function(n,i,r){t[(r?"add":"remove")+"Class"](n,"pswp__"+i)},ct=function(){var n=1===i.getNumItemsFn();n!==st&&(l(u,"ui--one-slide",n),st=n)},lt=function(){l(s,"share-modal--hidden",o)},v=function(){return o=!o,o?(t.removeClass(s,"pswp__share-modal--fade-in"),setTimeout(function(){o&&lt()},300)):(lt(),setTimeout(function(){o||t.addClass(s,"pswp__share-modal--fade-in")},30)),o||kt(),!1},bt=function(t){t=t||window.event;var i=t.target||t.srcElement;return n.shout("shareLinkClick",t,i),!!i.href&&(!!i.hasAttribute("download")||(window.open(i.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),o||v(),!1))},kt=function(){for(var n,f,r,e,o,t="",u=0;u<i.shareButtons.length;u++)n=i.shareButtons[u],r=i.getImageURLForShare(n),e=i.getPageURLForShare(n),o=i.getTextForShare(n),f=n.url.replace("{{url}}",encodeURIComponent(e)).replace("{{image_url}}",encodeURIComponent(r)).replace("{{raw_image_url}}",r).replace("{{text}}",encodeURIComponent(o)),t+='<a href="'+f+'" target="_blank" class="pswp__share--'+n.id+'"'+(n.download?"download":"")+">"+n.label+"<\/a>",i.parseShareButtonOut&&(t=i.parseShareButtonOut(n,t));s.children[0].innerHTML=t;s.children[0].onclick=bt},nt=function(n){for(var r=0;r<i.closeElClasses.length;r++)if(t.hasClass(n,"pswp__"+i.closeElClasses[r]))return!0},at=0,tt=function(){clearTimeout(d);at=0;b&&r.setIdle(!1)},vt=function(n){n=n?n:window.event;var t=n.relatedTarget||n.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(d),d=setTimeout(function(){r.setIdle(!0)},i.timeToIdleOutside))},dt=function(){i.fullscreenEl&&!t.features.isOldAndroid&&(e||(e=r.getFullscreenAPI()),e?(t.bind(document,e.eventK,r.updateFullscreen),r.updateFullscreen(),t.addClass(n.template,"pswp--supports-fs")):t.removeClass(n.template,"pswp--supports-fs"))},gt=function(){i.preloaderEl&&(p(!0),f("beforeChange",function(){clearTimeout(ot);ot=setTimeout(function(){n.currItem&&n.currItem.loading?(!n.allowProgressiveImg()||n.currItem.img&&!n.currItem.img.naturalWidth)&&p(!1):p(!0)},i.loadingIndicatorDelay)}),f("imageLoadComplete",function(t,i){n.currItem===i&&p(!0)}))},p=function(n){et!==n&&(l(ft,"preloader--active",!n),et=n)},ni=function(n){var r=n.vGap,f,e;wt()?(f=i.barsSize,i.captionEl&&"auto"===f.bottom?(c||(c=t.createEl("pswp__caption pswp__caption--fake"),c.appendChild(t.createEl("pswp__caption__center")),u.insertBefore(c,a),t.addClass(u,"pswp__ui--fit")),i.addCaptionHTMLFn(n,c,!0))?(e=c.clientHeight,r.bottom=parseInt(e,10)||44):r.bottom=f.top:r.bottom="auto"===f.bottom?0:f.bottom,r.top=f.top):r.top=r.bottom=0},ti=function(){i.timeToIdle&&f("mouseUsed",function(){t.bind(document,"mousemove",tt);t.bind(document,"mouseout",vt);k=setInterval(function(){2==++at&&r.setIdle(!0)},i.timeToIdle/2)})},ii=function(){f("onVerticalDrag",function(n){h&&.95>n?r.hideControls():!h&&n>=.95&&r.showControls()});var n;f("onPinchClose",function(t){h&&.9>t?(r.hideControls(),n=!0):n&&!h&&t>.9&&r.showControls()});f("zoomGestureEnded",function(){(n=!1)&&!h&&r.showControls()})},w=[{name:"caption",option:"captionEl",onInit:function(n){a=n}},{name:"share-modal",option:"shareEl",onInit:function(n){s=n},onTap:function(){v()}},{name:"button--share",option:"shareEl",onInit:function(n){rt=n},onTap:function(){v()}},{name:"button--zoom",option:"zoomEl",onTap:n.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(n){it=n}},{name:"button--close",option:"closeEl",onTap:n.close},{name:"button--arrow--left",option:"arrowEl",onTap:n.prev},{name:"button--arrow--right",option:"arrowEl",onTap:n.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){e.isFullscreen()?e.exit():e.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(n){ft=n}}],ri=function(){var n,e,r,o=function(u){var s,f,o;if(u)for(s=u.length,f=0;s>f;f++)for(n=u[f],e=n.className,o=0;o<w.length;o++)r=w[o],e.indexOf("pswp__"+r.name)>-1&&(i[r.option]?(t.removeClass(n,"pswp__element--disabled"),r.onInit&&r.onInit(n)):t.addClass(n,"pswp__element--disabled"))},f;o(u.children);f=t.getChildByClass(u,"pswp__top-bar");f&&o(f.children)};r.init=function(){t.extend(n.options,pt,!0);i=n.options;u=t.getChildByClass(n.scrollWrap,"pswp__ui");f=n.listen;ii();f("beforeChange",r.update);f("doubleTap",function(t){var r=n.currItem.initialZoomLevel;n.getZoomLevel()!==r?n.zoomTo(r,t,333):n.zoomTo(i.getDoubleTapZoom(!1,n.currItem),t,333)});f("preventDragEvent",function(n,t,i){var r=n.target||n.srcElement;r&&r.getAttribute("class")&&n.type.indexOf("mouse")>-1&&(r.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(r.tagName))&&(i.prevent=!1)});f("bindEvents",function(){t.bind(u,"pswpTap click",ht);t.bind(n.scrollWrap,"pswpTap",r.onGlobalTap);n.likelyTouchDevice||t.bind(n.scrollWrap,"mouseover",r.onMouseOver)});f("unbindEvents",function(){o||v();k&&clearInterval(k);t.unbind(document,"mouseout",vt);t.unbind(document,"mousemove",tt);t.unbind(u,"pswpTap click",ht);t.unbind(n.scrollWrap,"pswpTap",r.onGlobalTap);t.unbind(n.scrollWrap,"mouseover",r.onMouseOver);e&&(t.unbind(document,e.eventK,r.updateFullscreen),e.isFullscreen()&&(i.hideAnimationDuration=0,e.exit()),e=null)});f("destroy",function(){i.captionEl&&(c&&u.removeChild(c),t.removeClass(a,"pswp__caption--empty"));s&&(s.children[0].onclick=null);t.removeClass(u,"pswp__ui--over-close");t.addClass(u,"pswp__ui--hidden");r.setIdle(!1)});i.showAnimationDuration||t.removeClass(u,"pswp__ui--hidden");f("initialZoomIn",function(){i.showAnimationDuration&&t.removeClass(u,"pswp__ui--hidden")});f("initialZoomOut",function(){t.addClass(u,"pswp__ui--hidden")});f("parseVerticalMargin",ni);ri();i.shareEl&&rt&&s&&(o=!0);ct();ti();dt();gt()};r.setIdle=function(n){b=n;l(u,"ui--idle",n)};r.update=function(){h&&n.currItem?(r.updateIndexIndicator(),i.captionEl&&(i.addCaptionHTMLFn(n.currItem,a),l(a,"caption--empty",!n.currItem.title)),g=!0):g=!1;o||v();ct()};r.updateFullscreen=function(i){i&&setTimeout(function(){n.setScrollOffset(0,t.getScrollY())},50);t[(e.isFullscreen()?"add":"remove")+"Class"](n.template,"pswp--fs")};r.updateIndexIndicator=function(){i.counterEl&&(it.innerHTML=n.getCurrentIndex()+1+i.indexIndicatorSep+i.getNumItemsFn())};r.onGlobalTap=function(u){u=u||window.event;var f=u.target||u.srcElement;if(!y)if(u.detail&&"mouse"===u.detail.pointerType){if(nt(f))return void n.close();t.hasClass(f,"pswp__img")&&(1===n.getZoomLevel()&&n.getZoomLevel()<=n.currItem.fitRatio?i.clickToCloseNonZoomable&&n.close():n.toggleDesktopZoom(u.detail.releasePoint))}else if(i.tapToToggleControls&&(h?r.hideControls():r.showControls()),i.tapToClose&&(t.hasClass(f,"pswp__img")||nt(f)))return void n.close()};r.onMouseOver=function(n){n=n||window.event;l(u,"ui--over-close",nt(n.target||n.srcElement))};r.hideControls=function(){t.addClass(u,"pswp__ui--hidden");h=!1};r.showControls=function(){h=!0;g||r.update();t.removeClass(u,"pswp__ui--hidden")};r.supportsFullscreen=function(){var n=document;return!!(n.exitFullscreen||n.mozCancelFullScreen||n.webkitExitFullscreen||n.msExitFullscreen)};r.getFullscreenAPI=function(){var t,r=document.documentElement,u="fullscreenchange";return r.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:u}:r.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+u}:r.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+u}:r.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){return ut=i.closeOnScroll,i.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?n.template[this.enterK]():void n.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return i.closeOnScroll=ut,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}});initPhotoSwipeFromDOM=function(n){for(var i,f=function(n){for(var t,i,u,r,e=n.childNodes,s=e.length,o=[],f=0;f<s;f++)t=e[f],1===t.nodeType&&(i=t.children[0],u=i.getAttribute("data-size").split("x"),r={src:i.getAttribute("href"),w:parseInt(u[0],10),h:parseInt(u[1],10)},t.children.length>1&&(r.title=t.children[1].innerHTML),i.children.length>0&&(r.msrc=i.children[0].getAttribute("src")),r.el=t,o.push(r));return o},e=function n(t,i){return t&&(i(t)?t:n(t.parentNode,i))},o=function(n){var o,t;if(n=n||window.event,n.preventDefault?n.preventDefault():n.returnValue=!1,o=n.target||n.srcElement,t=e(o,function(n){return n.tagName&&"FIGURE"===n.tagName.toUpperCase()}),t){for(var r,h=t.parentNode,f=t.parentNode.childNodes,c=f.length,s=0,i=0;i<c;i++)if(1===f[i].nodeType){if(f[i]===t){r=s;break}s++}return r>=0&&u(r,h),!1}},u=function(n,t,i,r){var s,u,e,h=document.querySelectorAll(".pswp")[0],o;if(e=f(t),u={galleryUID:t.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(n){var i=e[n].el.getElementsByTagName("img")[0],r=window.pageYOffset||document.documentElement.scrollTop,t=i.getBoundingClientRect();return{x:t.left,y:t.top+r,w:t.width}}},r)if(u.galleryPIDs){for(o=0;o<e.length;o++)if(e[o].pid==n){u.index=o;break}}else u.index=parseInt(n,10)-1;else u.index=parseInt(n,10);isNaN(u.index)||(i&&(u.showAnimationDuration=0),s=new PhotoSwipe(h,PhotoSwipeUI_Default,e,u),s.init())},r=document.querySelectorAll(n),t=0,s=r.length;t<s;t++)r[t].setAttribute("data-pswp-uid",t+1),r[t].onclick=o;i=function(){var u=window.location.hash.substring(1),n={},i,t,r;if(u.length<5)return n;for(i=u.split("&"),t=0;t<i.length;t++)i[t]&&(r=i[t].split("="),r.length<2||(n[r[0]]=r[1]));return n.gid&&(n.gid=parseInt(n.gid,10)),n}();i.pid&&i.gid&&u(i.pid,r[i.gid-1],!0,!0)};initPhotoSwipeFromDOM(".mdb-lightbox"),function(n){n.fn.sticky=function(t){var i=n.extend({},{topSpacing:0,zIndex:"",stopper:".sticky-stopper",stickyClass:!1},t),u=function(){return"number"==typeof i.zIndex}(),r=function(){return 0<n(i.stopper).length||"number"==typeof i.stopper}();return this.each(function(){function o(){var o=f.scrollTop(),l=c,y=t.parent().width(),p;(h.width(y),r&&"string"==typeof c)&&(l=n(c).offset().top-s-e);v<o?(i.stickyClass&&t.addClass(i.stickyClass),t.after(h).css({position:"fixed",top:e,width:y}),u&&t.css({zIndex:a}),r&&l<o)&&(p=l-o+e,t.css({top:p})):(i.stickyClass&&t.removeClass(i.stickyClass),t.css({position:"static",top:null,left:null,width:"auto"}),h.remove())}var t=n(this),s=t.outerHeight(),l=t.outerWidth(),e=i.topSpacing,a=i.zIndex,v=t.offset().top-e,h=n("<div><\/div>").width(l).height(s).addClass("sticky-placeholder"),c=i.stopper,f=n(window);f.innerHeight()>s&&(f.bind("scroll",o),f.bind("load",o),f.bind("resize",o))})}}(jQuery),function t(n,t,i){function r(u,e){var s,h,o;if(!t[u]){if(!n[u]){if(s="function"==typeof require&&require,!e&&s)return s(u,!0);if(f)return f(u,!0);h=new Error("Cannot find module '"+u+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[u]={exports:{}};n[u][0].call(o.exports,function(t){var i=n[u][1][t];return r(i?i:t)},o,o.exports,t,n,t,i)}return t[u].exports}for(var f="function"==typeof require&&require,u=0;u<i.length;u++)r(i[u]);return r}({1:[function(n){"use strict";var t=n("../main");"function"==typeof define&&define.amd?define(t):(window.PerfectScrollbar=t,void 0===window.Ps&&(window.Ps=t))},{"../main":7}],2:[function(n,t,i){"use strict";function r(n,t){var i=n.className.split(" ");i.indexOf(t)<0&&i.push(t);n.className=i.join(" ")}function u(n,t){var i=n.className.split(" "),r=i.indexOf(t);r>=0&&i.splice(r,1);n.className=i.join(" ")}i.add=function(n,t){n.classList?n.classList.add(t):r(n,t)};i.remove=function(n,t){n.classList?n.classList.remove(t):u(n,t)};i.list=function(n){return n.classList?Array.prototype.slice.apply(n.classList):n.className.split(" ")}},{}],3:[function(n,t){"use strict";function r(n,t){return window.getComputedStyle(n)[t]}function u(n,t,i){return"number"==typeof i&&(i=i.toString()+"px"),n.style[t]=i,n}function f(n,t){var r,i;for(r in t)i=t[r],"number"==typeof i&&(i=i.toString()+"px"),n.style[r]=i;return n}var i={};i.e=function(n,t){var i=document.createElement(n);return i.className=t,i};i.appendTo=function(n,t){return t.appendChild(n),n};i.css=function(n,t,i){return"object"==typeof t?f(n,t):void 0===i?r(n,t):u(n,t,i)};i.matches=function(n,t){return void 0!==n.matches?n.matches(t):void 0!==n.matchesSelector?n.matchesSelector(t):void 0!==n.webkitMatchesSelector?n.webkitMatchesSelector(t):void 0!==n.mozMatchesSelector?n.mozMatchesSelector(t):void 0!==n.msMatchesSelector?n.msMatchesSelector(t):void 0};i.remove=function(n){void 0!==n.remove?n.remove():n.parentNode&&n.parentNode.removeChild(n)};i.queryChildren=function(n,t){return Array.prototype.filter.call(n.childNodes,function(n){return i.matches(n,t)})};t.exports=i},{}],4:[function(n,t){"use strict";var r=function(n){this.element=n;this.events={}},i;r.prototype.bind=function(n,t){void 0===this.events[n]&&(this.events[n]=[]);this.events[n].push(t);this.element.addEventListener(n,t,!1)};r.prototype.unbind=function(n,t){var i=void 0!==t;this.events[n]=this.events[n].filter(function(r){return!(!i||r===t)||(this.element.removeEventListener(n,r,!1),!1)},this)};r.prototype.unbindAll=function(){for(var n in this.events)this.unbind(n)};i=function(){this.eventElements=[]};i.prototype.eventElement=function(n){var t=this.eventElements.filter(function(t){return t.element===n})[0];return void 0===t&&(t=new r(n),this.eventElements.push(t)),t};i.prototype.bind=function(n,t,i){this.eventElement(n).bind(t,i)};i.prototype.unbind=function(n,t,i){this.eventElement(n).unbind(t,i)};i.prototype.unbindAll=function(){for(var n=0;n<this.eventElements.length;n++)this.eventElements[n].unbindAll()};i.prototype.once=function(n,t,i){var r=this.eventElement(n),u=function(n){r.unbind(t,u);i(n)};r.bind(t,u)};t.exports=i},{}],5:[function(n,t){"use strict";t.exports=function(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}}()},{}],6:[function(n,t,i){"use strict";function o(n){return function(t,i){n(t,"ps--in-scrolling");void 0!==i?n(t,"ps--"+i):(n(t,"ps--x"),n(t,"ps--y"))}}var f=n("./class"),r=n("./dom"),u=i.toInt=function(n){return parseInt(n,10)||0},e=i.clone=function(n){var t,i;if(n){if(Array.isArray(n))return n.map(e);if("object"==typeof n){t={};for(i in n)t[i]=e(n[i]);return t}return n}return null};i.extend=function(n,t){var i=e(n);for(var r in t)i[r]=e(t[r]);return i};i.isEditable=function(n){return r.matches(n,"input,[contenteditable]")||r.matches(n,"select,[contenteditable]")||r.matches(n,"textarea,[contenteditable]")||r.matches(n,"button,[contenteditable]")};i.removePsClasses=function(n){for(var r,i=f.list(n),t=0;t<i.length;t++)r=i[t],0===r.indexOf("ps-")&&f.remove(n,r)};i.outerWidth=function(n){return u(r.css(n,"width"))+u(r.css(n,"paddingLeft"))+u(r.css(n,"paddingRight"))+u(r.css(n,"borderLeftWidth"))+u(r.css(n,"borderRightWidth"))};i.startScrolling=o(f.add);i.stopScrolling=o(f.remove);i.env={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof window&&null!==window.navigator.msMaxTouchPoints}},{"./class":2,"./dom":3}],7:[function(n,t){"use strict";var i=n("./plugin/destroy"),r=n("./plugin/initialize"),u=n("./plugin/update");t.exports={initialize:r,update:u,destroy:i}},{"./plugin/destroy":9,"./plugin/initialize":17,"./plugin/update":21}],8:[function(n,t){"use strict";t.exports={handlers:["click-rail","drag-scrollbar","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1,theme:"default"}},{}],9:[function(n,t){"use strict";var u=n("../lib/helper"),i=n("../lib/dom"),r=n("./instances");t.exports=function(n){var t=r.get(n);t&&(t.event.unbindAll(),i.remove(t.scrollbarX),i.remove(t.scrollbarY),i.remove(t.scrollbarXRail),i.remove(t.scrollbarYRail),u.removePsClasses(n),r.remove(n))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18}],10:[function(n,t){"use strict";function u(n,t){function u(n){return n.getBoundingClientRect()}var f=function(n){n.stopPropagation()};t.event.bind(t.scrollbarY,"click",f);t.event.bind(t.scrollbarYRail,"click",function(f){var e=f.pageY-window.pageYOffset-u(t.scrollbarYRail).top,o=e>t.scrollbarYTop?1:-1;r(n,"top",n.scrollTop+o*t.containerHeight);i(n);f.stopPropagation()});t.event.bind(t.scrollbarX,"click",f);t.event.bind(t.scrollbarXRail,"click",function(f){var e=f.pageX-window.pageXOffset-u(t.scrollbarXRail).left,o=e>t.scrollbarXLeft?1:-1;r(n,"left",n.scrollLeft+o*t.containerWidth);i(n);f.stopPropagation()})}var f=n("../instances"),i=n("../update-geometry"),r=n("../update-scroll");t.exports=function(n){u(n,f.get(n))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(n,t){"use strict";function e(n,t){function h(r){var u=e+r*t.railXRatio,o=Math.max(0,t.scrollbarXRail.getBoundingClientRect().left)+t.railXRatio*(t.railXWidth-t.scrollbarXWidth);t.scrollbarXLeft=u<0?0:u>o?o:u;f(n,"left",i.toInt(t.scrollbarXLeft*(t.contentWidth-t.containerWidth)/(t.containerWidth-t.railXRatio*t.scrollbarXWidth))-t.negativeScrollAdjustment)}var e=null,o=null,s=function(t){h(t.pageX-o);u(n);t.stopPropagation();t.preventDefault()},c=function(){i.stopScrolling(n,"x");t.event.unbind(t.ownerDocument,"mousemove",s)};t.event.bind(t.scrollbarX,"mousedown",function(u){o=u.pageX;e=i.toInt(r.css(t.scrollbarX,"left"))*t.railXRatio;i.startScrolling(n,"x");t.event.bind(t.ownerDocument,"mousemove",s);t.event.once(t.ownerDocument,"mouseup",c);u.stopPropagation();u.preventDefault()})}function o(n,t){function h(r){var u=e+r*t.railYRatio,o=Math.max(0,t.scrollbarYRail.getBoundingClientRect().top)+t.railYRatio*(t.railYHeight-t.scrollbarYHeight);t.scrollbarYTop=u<0?0:u>o?o:u;f(n,"top",i.toInt(t.scrollbarYTop*(t.contentHeight-t.containerHeight)/(t.containerHeight-t.railYRatio*t.scrollbarYHeight)))}var e=null,o=null,s=function(t){h(t.pageY-o);u(n);t.stopPropagation();t.preventDefault()},c=function(){i.stopScrolling(n,"y");t.event.unbind(t.ownerDocument,"mousemove",s)};t.event.bind(t.scrollbarY,"mousedown",function(u){o=u.pageY;e=i.toInt(r.css(t.scrollbarY,"top"))*t.railYRatio;i.startScrolling(n,"y");t.event.bind(t.ownerDocument,"mousemove",s);t.event.once(t.ownerDocument,"mouseup",c);u.stopPropagation();u.preventDefault()})}var i=n("../../lib/helper"),r=n("../../lib/dom"),s=n("../instances"),u=n("../update-geometry"),f=n("../update-scroll");t.exports=function(n){var t=s.get(n);e(n,t);o(n,t)}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],12:[function(n,t){"use strict";function u(n,t){function s(i,r){var f=n.scrollTop,u;if(0===i){if(!t.scrollbarYActive)return!1;if(0===f&&r>0||f>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}if(u=n.scrollLeft,0===r){if(!t.scrollbarXActive)return!1;if(0===u&&i<0||u>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}var u=!1,e;t.event.bind(n,"mouseenter",function(){u=!0});t.event.bind(n,"mouseleave",function(){u=!1});e=!1;t.event.bind(t.ownerDocument,"keydown",function(h){var v,l,a,c;if(!(h.isDefaultPrevented&&h.isDefaultPrevented()||h.defaultPrevented)&&(v=i.matches(t.scrollbarX,":focus")||i.matches(t.scrollbarY,":focus"),u||v)){if(l=document.activeElement?document.activeElement:t.ownerDocument.activeElement,l){if("IFRAME"===l.tagName)l=l.contentDocument.activeElement;else for(;l.shadowRoot;)l=l.shadowRoot.activeElement;if(f.isEditable(l))return}a=0;c=0;switch(h.which){case 37:a=h.metaKey?-t.contentWidth:h.altKey?-t.containerWidth:-30;break;case 38:c=h.metaKey?t.contentHeight:h.altKey?t.containerHeight:30;break;case 39:a=h.metaKey?t.contentWidth:h.altKey?t.containerWidth:30;break;case 40:c=h.metaKey?-t.contentHeight:h.altKey?-t.containerHeight:-30;break;case 33:c=90;break;case 32:c=h.shiftKey?90:-90;break;case 34:c=-90;break;case 35:c=h.ctrlKey?-t.contentHeight:-t.containerHeight;break;case 36:c=h.ctrlKey?n.scrollTop:t.containerHeight;break;default:return}r(n,"top",n.scrollTop-c);r(n,"left",n.scrollLeft+a);o(n);(e=s(a,c))&&h.preventDefault()}})}var f=n("../../lib/helper"),i=n("../../lib/dom"),e=n("../instances"),o=n("../update-geometry"),r=n("../update-scroll");t.exports=function(n){u(n,e.get(n))}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],13:[function(n,t){"use strict";function r(n,t){function e(i,r){var f=n.scrollTop,u;if(0===i){if(!t.scrollbarYActive)return!1;if(0===f&&r>0||f>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}if(u=n.scrollLeft,0===r){if(!t.scrollbarXActive)return!1;if(0===u&&i<0||u>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}function o(n){var t=n.deltaX,i=-1*n.deltaY;return void 0!==t&&void 0!==i||(t=n.wheelDeltaX/-6,i=n.wheelDeltaY/6),n.deltaMode&&1===n.deltaMode&&(t*=10,i*=10),t!==t&&i!==i&&(t=0,i=n.wheelDelta),n.shiftKey?[-i,-t]:[t,i]}function s(t,i){var r=n.querySelector("textarea:hover, select[multiple]:hover, .ps-child:hover"),u,f,e;if(r){if(u=window.getComputedStyle(r),![u.overflow,u.overflowX,u.overflowY].join("").match(/(scroll|auto)/))return!1;if((f=r.scrollHeight-r.clientHeight,f>0&&!(0===r.scrollTop&&i>0||r.scrollTop===f&&i<0))||(e=r.scrollLeft-r.clientWidth,e>0&&!(0===r.scrollLeft&&t<0||r.scrollLeft===e&&t>0)))return!0}return!1}function u(u){var l=o(u),h=l[0],c=l[1];s(h,c)||(r=!1,t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(c?i(n,"top",n.scrollTop-c*t.settings.wheelSpeed):i(n,"top",n.scrollTop+h*t.settings.wheelSpeed),r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(h?i(n,"left",n.scrollLeft+h*t.settings.wheelSpeed):i(n,"left",n.scrollLeft-c*t.settings.wheelSpeed),r=!0):(i(n,"top",n.scrollTop-c*t.settings.wheelSpeed),i(n,"left",n.scrollLeft+h*t.settings.wheelSpeed)),f(n),(r=r||e(h,c))&&(u.stopPropagation(),u.preventDefault()))}var r=!1;void 0!==window.onwheel?t.event.bind(n,"wheel",u):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",u)}var u=n("../instances"),f=n("../update-geometry"),i=n("../update-scroll");t.exports=function(n){r(n,u.get(n))}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],14:[function(n,t){"use strict";function i(n,t){t.event.bind(n,"scroll",function(){u(n)})}var r=n("../instances"),u=n("../update-geometry");t.exports=function(n){i(n,r.get(n))}},{"../instances":18,"../update-geometry":19}],15:[function(n,t){"use strict";function f(n,t){function c(){var n=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"";return 0===n.toString().length?null:n.getRangeAt(0).commonAncestorContainer}function l(){s||(s=setInterval(function(){return r.get(n)?(u(n,"top",n.scrollTop+f.top),u(n,"left",n.scrollLeft+f.left),void e(n)):void clearInterval(s)},50))}function h(){s&&(clearInterval(s),s=null);i.stopScrolling(n)}var s=null,f={top:0,left:0},o=!1;t.event.bind(t.ownerDocument,"selectionchange",function(){n.contains(c())?o=!0:(o=!1,h())});t.event.bind(window,"mouseup",function(){o&&(o=!1,h())});t.event.bind(window,"keyup",function(){o&&(o=!1,h())});t.event.bind(window,"mousemove",function(t){if(o){var r={x:t.pageX,y:t.pageY},u={left:n.offsetLeft,right:n.offsetLeft+n.offsetWidth,top:n.offsetTop,bottom:n.offsetTop+n.offsetHeight};r.x<u.left+3?(f.left=-5,i.startScrolling(n,"x")):r.x>u.right-3?(f.left=5,i.startScrolling(n,"x")):f.left=0;r.y<u.top+3?(f.top=u.top+3-r.y<5?-5:-20,i.startScrolling(n,"y")):r.y>u.bottom-3?(f.top=r.y-u.bottom+3<5?5:20,i.startScrolling(n,"y")):f.top=0;0===f.top&&0===f.left?h():l()}})}var i=n("../../lib/helper"),r=n("../instances"),e=n("../update-geometry"),u=n("../update-scroll");t.exports=function(n){f(n,r.get(n))}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],16:[function(n,t){"use strict";function f(n,t,i,f){function nt(i,r){var u=n.scrollTop,f=n.scrollLeft,e=Math.abs(i),o=Math.abs(r);if(o>e){if(r<0&&u===t.contentHeight-t.containerHeight||r>0&&0===u)return!t.settings.swipePropagation}else if(e>o&&(i<0&&f===t.contentWidth-t.containerWidth||i>0&&0===f))return!t.settings.swipePropagation;return!0}function k(t,i){u(n,"top",n.scrollTop-i);u(n,"left",n.scrollLeft-t);e(n)}function v(){a=!0}function y(){a=!1}function d(n){return n.targetTouches?n.targetTouches[0]:n}function g(n){return!(!n.targetTouches||1!==n.targetTouches.length)||!(!n.pointerType||"mouse"===n.pointerType||n.pointerType===n.MSPOINTER_TYPE_MOUSE)}function l(n){if(g(n)){c=!0;var t=d(n);h.pageX=t.pageX;h.pageY=t.pageY;b=(new Date).getTime();null!==s&&clearInterval(s);n.stopPropagation()}}function p(n){var e,i;if(!c&&t.settings.swipePropagation&&l(n),!a&&c&&g(n)){var s=d(n),r={pageX:s.pageX,pageY:s.pageY},u=r.pageX-h.pageX,f=r.pageY-h.pageY;k(u,f);h=r;e=(new Date).getTime();i=e-b;i>0&&(o.x=u/i,o.y=f/i,b=e);nt(u,f)&&(n.stopPropagation(),n.preventDefault())}}function w(){!a&&c&&(c=!1,t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){return r.get(n)&&(o.x||o.y)?Math.abs(o.x)<.01&&Math.abs(o.y)<.01?void clearInterval(s):(k(30*o.x,30*o.y),o.x*=.8,void(o.y*=.8)):void clearInterval(s)},10)))}var h={},b=0,o={},s=null,a=!1,c=!1;i?(t.event.bind(window,"touchstart",v),t.event.bind(window,"touchend",y),t.event.bind(n,"touchstart",l),t.event.bind(n,"touchmove",p),t.event.bind(n,"touchend",w)):f&&(window.PointerEvent?(t.event.bind(window,"pointerdown",v),t.event.bind(window,"pointerup",y),t.event.bind(n,"pointerdown",l),t.event.bind(n,"pointermove",p),t.event.bind(n,"pointerup",w)):window.MSPointerEvent&&(t.event.bind(window,"MSPointerDown",v),t.event.bind(window,"MSPointerUp",y),t.event.bind(n,"MSPointerDown",l),t.event.bind(n,"MSPointerMove",p),t.event.bind(n,"MSPointerUp",w)))}var i=n("../../lib/helper"),r=n("../instances"),e=n("../update-geometry"),u=n("../update-scroll");t.exports=function(n){(i.env.supportsTouch||i.env.supportsIePointer)&&f(n,r.get(n),i.env.supportsTouch,i.env.supportsIePointer)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],17:[function(n,t){"use strict";var r=n("../lib/helper"),i=n("../lib/class"),u=n("./instances"),f=n("./update-geometry"),e={"click-rail":n("./handler/click-rail"),"drag-scrollbar":n("./handler/drag-scrollbar"),keyboard:n("./handler/keyboard"),wheel:n("./handler/mouse-wheel"),touch:n("./handler/touch"),selection:n("./handler/selection")},o=n("./handler/native-scroll");t.exports=function(n,t){t="object"==typeof t?t:{};i.add(n,"ps");var s=u.add(n);s.settings=r.extend(s.settings,t);i.add(n,"ps--theme_"+s.settings.theme);s.settings.handlers.forEach(function(t){e[t](n)});o(n);f(n)}},{"../lib/class":2,"../lib/helper":6,"./handler/click-rail":10,"./handler/drag-scrollbar":11,"./handler/keyboard":12,"./handler/mouse-wheel":13,"./handler/native-scroll":14,"./handler/selection":15,"./handler/touch":16,"./instances":18,"./update-geometry":19}],18:[function(n,t,i){"use strict";function s(n){function i(){o.add(n,"ps--focus")}function f(){o.remove(n,"ps--focus")}var t=this;t.settings=u.clone(l);t.containerWidth=null;t.containerHeight=null;t.contentWidth=null;t.contentHeight=null;t.isRtl="rtl"===r.css(n,"direction");t.isNegativeScroll=function(){var i=n.scrollLeft,t=null;return n.scrollLeft=-1,t=n.scrollLeft<0,n.scrollLeft=i,t}();t.negativeScrollAdjustment=t.isNegativeScroll?n.scrollWidth-n.clientWidth:0;t.event=new a;t.ownerDocument=n.ownerDocument||document;t.scrollbarXRail=r.appendTo(r.e("div","ps__scrollbar-x-rail"),n);t.scrollbarX=r.appendTo(r.e("div","ps__scrollbar-x"),t.scrollbarXRail);t.scrollbarX.setAttribute("tabindex",0);t.event.bind(t.scrollbarX,"focus",i);t.event.bind(t.scrollbarX,"blur",f);t.scrollbarXActive=null;t.scrollbarXWidth=null;t.scrollbarXLeft=null;t.scrollbarXBottom=u.toInt(r.css(t.scrollbarXRail,"bottom"));t.isScrollbarXUsingBottom=t.scrollbarXBottom===t.scrollbarXBottom;t.scrollbarXTop=t.isScrollbarXUsingBottom?null:u.toInt(r.css(t.scrollbarXRail,"top"));t.railBorderXWidth=u.toInt(r.css(t.scrollbarXRail,"borderLeftWidth"))+u.toInt(r.css(t.scrollbarXRail,"borderRightWidth"));r.css(t.scrollbarXRail,"display","block");t.railXMarginWidth=u.toInt(r.css(t.scrollbarXRail,"marginLeft"))+u.toInt(r.css(t.scrollbarXRail,"marginRight"));r.css(t.scrollbarXRail,"display","");t.railXWidth=null;t.railXRatio=null;t.scrollbarYRail=r.appendTo(r.e("div","ps__scrollbar-y-rail"),n);t.scrollbarY=r.appendTo(r.e("div","ps__scrollbar-y"),t.scrollbarYRail);t.scrollbarY.setAttribute("tabindex",0);t.event.bind(t.scrollbarY,"focus",i);t.event.bind(t.scrollbarY,"blur",f);t.scrollbarYActive=null;t.scrollbarYHeight=null;t.scrollbarYTop=null;t.scrollbarYRight=u.toInt(r.css(t.scrollbarYRail,"right"));t.isScrollbarYUsingRight=t.scrollbarYRight===t.scrollbarYRight;t.scrollbarYLeft=t.isScrollbarYUsingRight?null:u.toInt(r.css(t.scrollbarYRail,"left"));t.scrollbarYOuterWidth=t.isRtl?u.outerWidth(t.scrollbarY):null;t.railBorderYWidth=u.toInt(r.css(t.scrollbarYRail,"borderTopWidth"))+u.toInt(r.css(t.scrollbarYRail,"borderBottomWidth"));r.css(t.scrollbarYRail,"display","block");t.railYMarginHeight=u.toInt(r.css(t.scrollbarYRail,"marginTop"))+u.toInt(r.css(t.scrollbarYRail,"marginBottom"));r.css(t.scrollbarYRail,"display","");t.railYHeight=null;t.railYRatio=null}function e(n){return n.getAttribute("data-ps-id")}function h(n,t){n.setAttribute("data-ps-id",t)}function c(n){n.removeAttribute("data-ps-id")}var u=n("../lib/helper"),o=n("../lib/class"),l=n("./default-setting"),r=n("../lib/dom"),a=n("../lib/event-manager"),v=n("../lib/guid"),f={};i.add=function(n){var t=v();return h(n,t),f[t]=new s(n),f[t]};i.remove=function(n){delete f[e(n)];c(n)};i.get=function(n){return f[e(n)]}},{"../lib/class":2,"../lib/dom":3,"../lib/event-manager":4,"../lib/guid":5,"../lib/helper":6,"./default-setting":8}],19:[function(n,t){"use strict";function f(n,t){return n.settings.minScrollbarLength&&(t=Math.max(t,n.settings.minScrollbarLength)),n.settings.maxScrollbarLength&&(t=Math.min(t,n.settings.maxScrollbarLength)),t}function o(n,t){var r={width:t.railXWidth},u;r.left=t.isRtl?t.negativeScrollAdjustment+n.scrollLeft+t.containerWidth-t.contentWidth:n.scrollLeft;t.isScrollbarXUsingBottom?r.bottom=t.scrollbarXBottom-n.scrollTop:r.top=t.scrollbarXTop+n.scrollTop;i.css(t.scrollbarXRail,r);u={top:n.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?u.right=t.isRtl?t.contentWidth-(t.negativeScrollAdjustment+n.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:t.scrollbarYRight-n.scrollLeft:u.left=t.isRtl?t.negativeScrollAdjustment+n.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:t.scrollbarYLeft+n.scrollLeft;i.css(t.scrollbarYRail,u);i.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth});i.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}var r=n("../lib/helper"),u=n("../lib/class"),i=n("../lib/dom"),s=n("./instances"),e=n("./update-scroll");t.exports=function(n){var t=s.get(n),h;t.containerWidth=n.clientWidth;t.containerHeight=n.clientHeight;t.contentWidth=n.scrollWidth;t.contentHeight=n.scrollHeight;n.contains(t.scrollbarXRail)||(h=i.queryChildren(n,".ps__scrollbar-x-rail"),h.length>0&&h.forEach(function(n){i.remove(n)}),i.appendTo(t.scrollbarXRail,n));n.contains(t.scrollbarYRail)||(h=i.queryChildren(n,".ps__scrollbar-y-rail"),h.length>0&&h.forEach(function(n){i.remove(n)}),i.appendTo(t.scrollbarYRail,n));!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=f(t,r.toInt(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=r.toInt((t.negativeScrollAdjustment+n.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1;!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=f(t,r.toInt(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=r.toInt(n.scrollTop*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1;t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth);t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight);o(n,t);t.scrollbarXActive?u.add(n,"ps--active-x"):(u.remove(n,"ps--active-x"),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e(n,"left",0));t.scrollbarYActive?u.add(n,"ps--active-y"):(u.remove(n,"ps--active-y"),t.scrollbarYHeight=0,t.scrollbarYTop=0,e(n,"top",0))}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(n,t){"use strict";var r=n("./instances"),i=function(n){var t=document.createEvent("Event");return t.initEvent(n,!0,!0),t};t.exports=function(n,t,u){if(void 0===n)throw"You must provide an element to the update-scroll function";if(void 0===t)throw"You must provide an axis to the update-scroll function";if(void 0===u)throw"You must provide a value to the update-scroll function";"top"===t&&u<=0&&(n.scrollTop=u=0,n.dispatchEvent(i("ps-y-reach-start")));"left"===t&&u<=0&&(n.scrollLeft=u=0,n.dispatchEvent(i("ps-x-reach-start")));var f=r.get(n);"top"===t&&u>=f.contentHeight-f.containerHeight&&(u=f.contentHeight-f.containerHeight,u-n.scrollTop<=1?u=n.scrollTop:n.scrollTop=u,n.dispatchEvent(i("ps-y-reach-end")));"left"===t&&u>=f.contentWidth-f.containerWidth&&(u=f.contentWidth-f.containerWidth,u-n.scrollLeft<=1?u=n.scrollLeft:n.scrollLeft=u,n.dispatchEvent(i("ps-x-reach-end")));void 0===f.lastTop&&(f.lastTop=n.scrollTop);void 0===f.lastLeft&&(f.lastLeft=n.scrollLeft);"top"===t&&u<f.lastTop&&n.dispatchEvent(i("ps-scroll-up"));"top"===t&&u>f.lastTop&&n.dispatchEvent(i("ps-scroll-down"));"left"===t&&u<f.lastLeft&&n.dispatchEvent(i("ps-scroll-left"));"left"===t&&u>f.lastLeft&&n.dispatchEvent(i("ps-scroll-right"));"top"===t&&u!==f.lastTop&&(n.scrollTop=f.lastTop=u,n.dispatchEvent(i("ps-scroll-y")));"left"===t&&u!==f.lastLeft&&(n.scrollLeft=f.lastLeft=u,n.dispatchEvent(i("ps-scroll-x")))}},{"./instances":18}],21:[function(n,t){"use strict";var r=n("../lib/helper"),i=n("../lib/dom"),f=n("./instances"),e=n("./update-geometry"),u=n("./update-scroll");t.exports=function(n){var t=f.get(n);t&&(t.negativeScrollAdjustment=t.isNegativeScroll?n.scrollWidth-n.clientWidth:0,i.css(t.scrollbarXRail,"display","block"),i.css(t.scrollbarYRail,"display","block"),t.railXMarginWidth=r.toInt(i.css(t.scrollbarXRail,"marginLeft"))+r.toInt(i.css(t.scrollbarXRail,"marginRight")),t.railYMarginHeight=r.toInt(i.css(t.scrollbarYRail,"marginTop"))+r.toInt(i.css(t.scrollbarYRail,"marginBottom")),i.css(t.scrollbarXRail,"display","none"),i.css(t.scrollbarYRail,"display","none"),e(n),u(n,"top",n.scrollTop),u(n,"left",n.scrollLeft),i.css(t.scrollbarXRail,"display",""),i.css(t.scrollbarYRail,"display",""))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-geometry":19,"./update-scroll":20}]},{},[1]),function(n){var t=!1,i={data:[],placeholder:"",secondaryPlaceholder:""};n(document).ready(function(){n(document).on("click",".chip .close",function(){var t=n(this);t.closest(".chips").data("initialized")||t.closest(".chip").remove()})});n.fn.material_chip=function(r){var u=this;return this.$el=n(this),this.$document=n(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".fa",SELECTED_CHIP:".selected"},"data"===r?this.$el.data("chips"):"options"===r?this.$el.data("options"):(this.$el.data("options",n.extend({},i,r)),this.init=function(){var t=0;u.$el.each(function(){var i=n(this),r;i.data("initialized")||(r=i.data("options"),r.data&&r.data instanceof Array||(r.data=[]),i.data("chips",r.data),i.data("index",t),i.data("initialized",!0),i.hasClass(u.SELS.CHIPS)||i.addClass("chips"),u.chips(i),t++)})},this.handleEvents=function(){var t=u.SELS;u.$document.on("click",t.CHIPS,function(i){n(i.target).find(t.INPUT).focus()});u.$document.on("click",t.CHIP,function(){n(t.CHIP).removeClass("selected");n(this).toggleClass("selected")});u.$document.on("keydown",function(i){var h,e;if(!n(i.target).is("input, textarea")){var o=u.$document.find(t.CHIP+t.SELECTED_CHIP),f=o.closest(t.CHIPS),s=o.siblings(t.CHIP).length,r=void 0;if(o.length){var c=8===i.which||46===i.which,l=37===i.which,a=39===i.which;if(c)i.preventDefault(),h=f.data("index"),r=o.index(),u.deleteChip(h,r,f),e=null,r+1<s?e=r:r!==s&&r+1!==s||(e=s-1),e<0&&(e=null),null!==e&&u.selectChip(h,e,f),s||f.find("input").focus();else if(l){if((r=o.index()-1)<0)return;n(t.CHIP).removeClass("selected");u.selectChip(f.data("index"),r,f)}else if(a){if(r=o.index()+1,n(t.CHIP).removeClass("selected"),r>s)return void f.find("input").focus();u.selectChip(f.data("index"),r,f)}}}});u.$document.on("focusin",t.CHIPS+" "+t.INPUT,function(i){n(i.target).closest(t.CHIPS).addClass("focus");n(t.CHIP).removeClass("selected")});u.$document.on("focusout",t.CHIPS+" "+t.INPUT,function(i){n(i.target).closest(t.CHIPS).removeClass("focus")});u.$document.on("keydown",t.CHIPS+" "+t.INPUT,function(i){var r=n(i.target),f=r.closest(t.CHIPS),e=f.data("index"),o=f.children(t.CHIP).length,s,h;return 13===i.which?(i.preventDefault(),u.addChip(e,{tag:r.val()},f),void r.val("")):(s=8===i.keyCode||37===i.keyCode,h=""===r.val(),s&&h&&o?(u.selectChip(e,o-1,f),void r.blur()):void 0)});u.$document.on("click",t.CHIPS+" "+t.DELETE,function(i){var f=n(i.target),r=f.closest(t.CHIPS),e=f.closest(t.CHIP);i.stopPropagation();u.deleteChip(r.data("index"),e.index(),r);r.find("input").focus()})},this.chips=function(n){var t="";n.data("chips").forEach(function(n){t+=u.renderChip(n)});t+='<input class="input" placeholder="">';n.html(t);u.setPlaceholder(n)},this.renderChip=function(n){if(n.tag){var t='<div class="chip">'+n.tag;return n.image&&(t+=' <img src="'+n.image+'"> '),t+='<i class="close fa fa-times"><\/i>',t+"<\/div>"}},this.setPlaceholder=function(n){var t=n.data("options");n.data("chips").length&&t.placeholder?n.find("input").prop("placeholder",t.placeholder):!n.data("chips").length&&t.secondaryPlaceholder&&n.find("input").prop("placeholder",t.secondaryPlaceholder)},this.isValid=function(n,t){for(var r=n.data("chips"),u=!1,i=0;i<r.length;i++)if(r[i].tag===t.tag)return void(u=!0);return""!==t.tag&&!u},this.addChip=function(t,i,r){if(u.isValid(r,i)){var f=u.renderChip(i);r.data("chips").push(i);n(f).insertBefore(r.find("input"));r.trigger("chip.add",i);u.setPlaceholder(r)}},this.deleteChip=function(n,t,i){var r=i.data("chips")[t];i.find(".chip").eq(t).remove();i.data("chips").splice(t,1);i.trigger("chip.delete",r);u.setPlaceholder(i)},this.selectChip=function(n,t,i){var r=i.find(".chip").eq(t);r&&r.hasClass("selected")===!1&&(r.addClass("selected"),i.trigger("chip.select",i.data("chips")[t]))},this.getChipsElement=function(n,t){return t.eq(n)},this.init(),void(t||(this.handleEvents(),t=!0)))}}(jQuery),function(n){"use strict";function h(n){var i=["O","Moz","ms","Ms","Webkit"],t=i.length;if(void 0!==a.style[n])return!0;for(n=n.charAt(0).toUpperCase()+n.substr(1);--t>-1&&void 0===a.style[i[t]+n];);return t>=0}function c(){l=n.innerWidth||document.documentElement.clientWidth;t=n.innerHeight||document.documentElement.clientHeight}function f(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent("on"+t,function(){i.call(n)})}function o(t){n.requestAnimationFrame(function(){"scroll"!==t.type&&c();for(var n=0,i=r.length;n<i;n++)"scroll"!==t.type&&(r[n].coverImage(),r[n].clipContainer()),r[n].onScroll()})}var r,i,e,w,s,b;Date.now||(Date.now=function(){return(new Date).getTime()});n.requestAnimationFrame||function(){for(var i,u,r=["webkit","moz"],t=0;t<r.length&&!n.requestAnimationFrame;++t)i=r[t],n.requestAnimationFrame=n[i+"RequestAnimationFrame"],n.cancelAnimationFrame=n[i+"CancelAnimationFrame"]||n[i+"CancelRequestAnimationFrame"];!/iP(ad|hone|od).*OS 6/.test(n.navigator.userAgent)&&n.requestAnimationFrame&&n.cancelAnimationFrame||(u=0,n.requestAnimationFrame=function(n){var t=Date.now(),i=Math.max(u+16,t);return setTimeout(function(){n(u=i)},i-t)},n.cancelAnimationFrame=clearTimeout)}();var l,t,a=document.createElement("div"),k=h("transform"),v=h("perspective"),u=navigator.userAgent,y=u.toLowerCase().indexOf("android")>-1,p=/iPad|iPhone|iPod/.test(u)&&!n.MSStream,d=u.toLowerCase().indexOf("firefox")>-1,g=u.indexOf("MSIE ")>-1||u.indexOf("Trident/")>-1||u.indexOf("Edge/")>-1,nt=document.all&&!n.atob;c();r=[];i=function(){function n(n,i){var f,r=this,u;(r.$item=n,r.defaults={type:"scroll",speed:.5,imgSrc:null,imgWidth:null,imgHeight:null,elementInViewport:null,zIndex:-100,noAndroid:!1,noIos:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null},f=JSON.parse(r.$item.getAttribute("data-jarallax")||"{}"),r.options=r.extend({},r.defaults,f,i),!k||y&&r.options.noAndroid||p&&r.options.noIos)||(r.options.speed=Math.min(2,Math.max(-1,parseFloat(r.options.speed))),u=r.options.elementInViewport,u&&"object"==typeof u&&void 0!==u.length&&(u=u[0]),!u instanceof Element&&(u=null),r.options.elementInViewport=u,r.instanceID=t++,r.image={src:r.options.imgSrc||null,$container:null,$item:null,width:r.options.imgWidth||null,height:r.options.imgHeight||null,useImgTag:p||y||g,position:!v||d?"absolute":"fixed"},r.initImg()&&r.init())}var t=0;return n}();i.prototype.css=function(t,i){if("string"==typeof i)return n.getComputedStyle?n.getComputedStyle(t).getPropertyValue(i):t.style[i];i.transform&&(v&&(i.transform+=" translateZ(0)"),i.WebkitTransform=i.MozTransform=i.msTransform=i.OTransform=i.transform);for(var r in i)t.style[r]=i[r];return t};i.prototype.extend=function(n){var t,i;for(n=n||{},t=1;t<arguments.length;t++)if(arguments[t])for(i in arguments[t])arguments[t].hasOwnProperty(i)&&(n[i]=arguments[t][i]);return n};i.prototype.initImg=function(){var n=this;return null===n.image.src&&(n.image.src=n.css(n.$item,"background-image").replace(/^url\(['"]?/g,"").replace(/['"]?\)$/g,"")),!(!n.image.src||"none"===n.image.src)};i.prototype.init=function(){function o(){n.coverImage();n.clipContainer();n.onScroll(!0);n.options.onInit&&n.options.onInit.call(n);setTimeout(function(){n.$item&&n.css(n.$item,{"background-image":"none","background-attachment":"scroll","background-size":"auto"})},0)}var n=this,f={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},i={},u,t,e;for(n.$item.setAttribute("data-jarallax-original-styles",n.$item.getAttribute("style")),"static"===n.css(n.$item,"position")&&n.css(n.$item,{position:"relative"}),"auto"===n.css(n.$item,"z-index")&&n.css(n.$item,{zIndex:0}),n.image.$container=document.createElement("div"),n.css(n.image.$container,f),n.css(n.image.$container,{visibility:"hidden","z-index":n.options.zIndex}),n.image.$container.setAttribute("id","jarallax-container-"+n.instanceID),n.$item.appendChild(n.image.$container),n.image.useImgTag?(n.image.$item=document.createElement("img"),n.image.$item.setAttribute("src",n.image.src),i=n.extend({"max-width":"none"},f,i)):(n.image.$item=document.createElement("div"),i=n.extend({"background-position":"50% 50%","background-size":"100% auto","background-repeat":"no-repeat no-repeat","background-image":'url("'+n.image.src+'")'},f,i)),u=0,t=n.$item;null!==t&&t!==document&&0===u;)e=n.css(t,"-webkit-transform")||n.css(t,"-moz-transform")||n.css(t,"transform"),e&&"none"!==e&&(u=1,n.css(n.image.$container,{transform:"translateX(0) translateY(0)"})),t=t.parentNode;(u||"opacity"===n.options.type||"scale"===n.options.type||"scale-opacity"===n.options.type)&&(n.image.position="absolute");i.position=n.image.position;n.css(n.image.$item,i);n.image.$container.appendChild(n.image.$item);n.image.width&&n.image.height?o():n.getImageSize(n.image.src,function(t,i){n.image.width=t;n.image.height=i;o()});r.push(n)};i.prototype.destroy=function(){for(var i,u,n=this,t=0,f=r.length;t<f;t++)if(r[t].instanceID===n.instanceID){r.splice(t,1);break}i=n.$item.getAttribute("data-jarallax-original-styles");n.$item.removeAttribute("data-jarallax-original-styles");"null"===i?n.$item.removeAttribute("style"):n.$item.setAttribute("style",i);n.$clipStyles&&n.$clipStyles.parentNode.removeChild(n.$clipStyles);n.image.$container.parentNode.removeChild(n.image.$container);n.options.onDestroy&&n.options.onDestroy.call(n);delete n.$item.jarallax;for(u in n)delete n[u]};i.prototype.getImageSize=function(n,t){if(n&&t){var i=new Image;i.onload=function(){t(i.width,i.height)};i.src=n}};i.prototype.clipContainer=function(){var t;if(!nt){var n=this,i=n.image.$container.getBoundingClientRect(),r=i.width,u=i.height;n.$clipStyles||(n.$clipStyles=document.createElement("style"),n.$clipStyles.setAttribute("type","text/css"),n.$clipStyles.setAttribute("id","#jarallax-clip-"+n.instanceID),(document.head||document.getElementsByTagName("head")[0]).appendChild(n.$clipStyles));t=["#jarallax-container-"+n.instanceID+" {","   clip: rect(0 "+r+"px "+u+"px 0);","   clip: rect(0, "+r+"px, "+u+"px, 0);","}"].join("\n");n.$clipStyles.styleSheet?n.$clipStyles.styleSheet.cssText=t:n.$clipStyles.innerHTML=t}};i.prototype.coverImage=function(){var n=this;if(n.image.width&&n.image.height){var h=n.image.$container.getBoundingClientRect(),o=h.width,e=h.height,l=h.left,a=n.image.width,v=n.image.height,r=n.options.speed,y="scroll"===n.options.type||"scroll-opacity"===n.options.type,f=0,u=0,i=e,s=0,c=0;y&&(f=r<0?r*Math.max(e,t):r*(e+t),r>1?i=Math.abs(f-t):r<0?i=f/r+Math.abs(f):i+=Math.abs(t-e)*(1-r),f/=2);u=i*a/v;u<o&&(u=o,i=u*v/a);y?(s=l+(o-u)/2,c=(t-i)/2):(s=(o-u)/2,c=(e-i)/2);"absolute"===n.image.position&&(s-=l);n.parallaxScrollDistance=f;n.css(n.image.$item,{width:u+"px",height:i+"px",marginLeft:s+"px",marginTop:c+"px"});n.options.onCoverImage&&n.options.onCoverImage.call(n)}};i.prototype.isVisible=function(){return this.isElementInViewport||!1};i.prototype.onScroll=function(n){var i=this,h,v;if(i.image.width&&i.image.height){var s=i.$item.getBoundingClientRect(),r=s.top,u=s.height,e={visibility:"visible",backgroundPosition:"50% 50%"},o=s;if(i.options.elementInViewport&&(o=i.options.elementInViewport.getBoundingClientRect()),i.isElementInViewport=o.bottom>=0&&o.right>=0&&o.top<=t&&o.left<=l,n||i.isElementInViewport){var b=Math.max(0,r),c=Math.max(0,u+r),y=Math.max(0,-r),p=Math.max(0,r+u-t),a=Math.max(0,u-(r+u-t)),k=Math.max(0,-r+t-u),w=1-2*(t-r)/(t+u),f=1;(u<t?f=1-(y||p)/u:c<=t?f=c/t:a<=t&&(f=a/t),"opacity"!==i.options.type&&"scale-opacity"!==i.options.type&&"scroll-opacity"!==i.options.type||(e.transform="",e.opacity=f),"scale"===i.options.type||"scale-opacity"===i.options.type)&&(h=1,i.options.speed<0?h-=i.options.speed*f:h+=i.options.speed*(1-f),e.transform="scale("+h+")");("scroll"===i.options.type||"scroll-opacity"===i.options.type)&&(v=i.parallaxScrollDistance*w,"absolute"===i.image.position&&(v-=r),e.transform="translateY("+v+"px)");i.css(i.image.$item,e);i.options.onScroll&&i.options.onScroll.call(i,{section:s,beforeTop:b,beforeTopEnd:c,afterTop:y,beforeBottom:p,beforeBottomEnd:a,afterBottom:k,visiblePercent:f,fromViewportCenter:w})}}};f(n,"scroll",o);f(n,"resize",o);f(n,"orientationchange",o);f(n,"load",o);e=function(n){("object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName)&&(n=[n]);var u,r=arguments[1],f=Array.prototype.slice.call(arguments,2),e=n.length,t=0;for(t;t<e;t++)if("object"==typeof r||void 0===r?n[t].jarallax||(n[t].jarallax=new i(n[t],r)):n[t].jarallax&&(u=n[t].jarallax[r].apply(n[t].jarallax,f)),void 0!==u)return u;return n};e.constructor=i;w=n.jarallax;(n.jarallax=e,n.jarallax.noConflict=function(){return n.jarallax=w,this},"undefined"!=typeof jQuery)&&(s=function(){var i=arguments||[],t;return Array.prototype.unshift.call(i,this),t=e.apply(n,i),"object"!=typeof t?t:this},s.constructor=i,b=jQuery.fn.jarallax,jQuery.fn.jarallax=s,jQuery.fn.jarallax.noConflict=function(){return jQuery.fn.jarallax=b,this});f(n,"DOMContentLoaded",function(){e(document.querySelectorAll("[data-jarallax], [data-jarallax-video]"))})}(window),function(n){"use strict";function c(n){var t,i;for(n=n||{},t=1;t<arguments.length;t++)if(arguments[t])for(i in arguments[t])arguments[t].hasOwnProperty(i)&&(n[i]=arguments[t][i]);return n}function f(){this._done=[];this._fail=[]}function i(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent("on"+t,function(){i.call(n)})}var t,r,u;f.prototype={execute:function(n,t){var i=n.length;for(t=Array.prototype.slice.call(t);i--;)n[i].apply(null,t)},resolve:function(){this.execute(this._done,arguments)},reject:function(){this.execute(this._fail,arguments)},done:function(n){this._done.push(n)},fail:function(n){this._fail.push(n)}};t=function(){function n(n,i){var r=this;r.url=n;r.options_default={autoplay:1,loop:1,mute:1,controls:0,startTime:0,endTime:0};r.options=c({},r.options_default,i);r.videoID=r.parseURL(n);r.videoID&&(r.ID=t++,r.loadAPI(),r.init())}var t=0;return n}();t.prototype.parseURL=function(n){var t=function(n){var t=n.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/);return!(!t||11!==t[1].length)&&t[1]}(n),i=function(n){var t=n.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!(!t||!t[3])&&t[3]}(n),r=function(n){for(var t,r=n.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),u={},f=0,i=0;i<r.length;i++)t=r[i].match(/^(mp4|webm|ogv|ogg)\:(.*)/),t&&t[1]&&t[2]&&(u["ogv"===t[1]?"ogg":t[1]]=t[2],f=1);return!!f&&u}(n);return t?(this.type="youtube",t):i?(this.type="vimeo",i):!!r&&(this.type="local",r)};t.prototype.isValid=function(){return!!this.videoID};t.prototype.on=function(n,t){this.userEventsList=this.userEventsList||[];(this.userEventsList[n]||(this.userEventsList[n]=[])).push(t)};t.prototype.off=function(n,t){if(this.userEventsList&&this.userEventsList[n])if(t)for(var i=0;i<this.userEventsList[n].length;i++)this.userEventsList[n][i]===t&&(this.userEventsList[n][i]=!1);else delete this.userEventsList[n]};t.prototype.fire=function(n){var i=[].slice.call(arguments,1),t;if(this.userEventsList&&void 0!==this.userEventsList[n])for(t in this.userEventsList[n])this.userEventsList[n][t]&&this.userEventsList[n][t].apply(this,i)};t.prototype.play=function(n){var t=this;t.player&&("youtube"===t.type&&t.player.playVideo&&(void 0!==n&&t.player.seekTo(n||0),t.player.playVideo()),"vimeo"===t.type&&(void 0!==n&&t.player.setCurrentTime(n),t.player.getPaused().then(function(n){n&&t.player.play()})),"local"===t.type&&(void 0!==n&&(t.player.currentTime=n),t.player.play()))};t.prototype.pause=function(){this.player&&("youtube"===this.type&&this.player.pauseVideo&&this.player.pauseVideo(),"vimeo"===this.type&&this.player.pause(),"local"===this.type&&this.player.pause())};t.prototype.getImageURL=function(n){var t=this,r;if(t.videoImage)return void n(t.videoImage);if("youtube"===t.type){var u=["maxresdefault","sddefault","hqdefault","0"],i=0,f=new Image;f.onload=function(){120!==(this.naturalWidth||this.width)||i===u.length-1?(t.videoImage="https://img.youtube.com/vi/"+t.videoID+"/"+u[i]+".jpg",n(t.videoImage)):(i++,this.src="https://img.youtube.com/vi/"+t.videoID+"/"+u[i]+".jpg")};f.src="https://img.youtube.com/vi/"+t.videoID+"/"+u[i]+".jpg"}"vimeo"===t.type&&(r=new XMLHttpRequest,r.open("GET","https://vimeo.com/api/v2/video/"+t.videoID+".json",!0),r.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var i=JSON.parse(this.responseText);t.videoImage=i[0].thumbnail_large;n(t.videoImage)}},r.send(),r=null)};t.prototype.getIframe=function(t){var r=this;if(r.$iframe)return void t(r.$iframe);r.onAPIready(function(){var u,s,h,f,e,c,o,l;if((r.$iframe||(u=document.createElement("div"),u.style.display="none"),"youtube"===r.type)&&(r.playerOptions={},r.playerOptions.videoId=r.videoID,r.playerOptions.playerVars={autohide:1,rel:0,autoplay:0},r.options.controls||(r.playerOptions.playerVars.iv_load_policy=3,r.playerOptions.playerVars.modestbranding=1,r.playerOptions.playerVars.controls=0,r.playerOptions.playerVars.showinfo=0,r.playerOptions.playerVars.disablekb=1),r.playerOptions.events={onReady:function(n){r.options.mute&&n.target.mute();r.options.autoplay&&r.play(r.options.startTime);r.fire("ready",n)},onStateChange:function(n){r.options.loop&&n.data===YT.PlayerState.ENDED&&r.play(r.options.startTime);s||n.data!==YT.PlayerState.PLAYING||(s=1,r.fire("started",n));n.data===YT.PlayerState.PLAYING&&r.fire("play",n);n.data===YT.PlayerState.PAUSED&&r.fire("pause",n);n.data===YT.PlayerState.ENDED&&r.fire("end",n);r.options.endTime&&(n.data===YT.PlayerState.PLAYING?h=setInterval(function(){r.options.endTime&&r.player.getCurrentTime()>=r.options.endTime&&(r.options.loop?r.play(r.options.startTime):r.pause())},150):clearInterval(h))}},f=!r.$iframe,f&&(e=document.createElement("div"),e.setAttribute("id",r.playerID),u.appendChild(e),document.body.appendChild(u)),r.player=r.player||new n.YT.Player(r.playerID,r.playerOptions),f&&(r.$iframe=document.getElementById(r.playerID),r.videoWidth=parseInt(r.$iframe.getAttribute("width"),10)||1280,r.videoHeight=parseInt(r.$iframe.getAttribute("height"),10)||720)),"vimeo"===r.type&&(r.playerOptions="",r.playerOptions+="player_id="+r.playerID,r.playerOptions+="&autopause=0",r.options.controls||(r.playerOptions+="&badge=0&byline=0&portrait=0&title=0"),r.playerOptions+="&autoplay="+(r.options.autoplay?"1":"0"),r.playerOptions+="&loop="+(r.options.loop?1:0),r.$iframe||(r.$iframe=document.createElement("iframe"),r.$iframe.setAttribute("id",r.playerID),r.$iframe.setAttribute("src","https://player.vimeo.com/video/"+r.videoID+"?"+r.playerOptions),r.$iframe.setAttribute("frameborder","0"),u.appendChild(r.$iframe),document.body.appendChild(u)),r.player=r.player||new Vimeo.Player(r.$iframe),r.player.getVideoWidth().then(function(n){r.videoWidth=n||1280}),r.player.getVideoHeight().then(function(n){r.videoHeight=n||720}),r.player.setVolume(r.options.mute?0:100),r.player.on("timeupdate",function(n){c||r.fire("started",n);c=1;r.options.endTime&&r.options.endTime&&n.seconds>=r.options.endTime&&(r.options.loop?r.play(r.options.startTime):r.pause())}),r.player.on("play",function(n){r.fire("play",n);r.options.startTime&&0===n.seconds&&r.play(r.options.startTime)}),r.player.on("pause",function(n){r.fire("pause",n)}),r.player.on("ended",function(n){r.fire("end",n)}),r.player.on("loaded",function(n){r.fire("ready",n)})),"local"===r.type){if(!r.$iframe){r.$iframe=document.createElement("video");r.options.mute&&(r.$iframe.muted=!0);r.options.loop&&(r.$iframe.loop=!0);r.$iframe.setAttribute("id",r.playerID);u.appendChild(r.$iframe);document.body.appendChild(u);for(o in r.videoID)!function(n,t,i){var r=document.createElement("source");r.src=t;r.type=i;n.appendChild(r)}(r.$iframe,r.videoID[o],"video/"+o)}r.player=r.player||r.$iframe;i(r.player,"playing",function(n){l||r.fire("started",n);l=1});i(r.player,"timeupdate",function(){r.options.endTime&&r.options.endTime&&this.currentTime>=r.options.endTime&&(r.options.loop?r.play(r.options.startTime):r.pause())});i(r.player,"play",function(n){r.fire("play",n)});i(r.player,"pause",function(n){r.fire("pause",n)});i(r.player,"ended",function(n){r.fire("end",n)});i(r.player,"loadedmetadata",function(){r.videoWidth=this.videoWidth||1280;r.videoHeight=this.videoHeight||720;r.fire("ready");r.options.autoplay&&r.play(r.options.startTime)})}t(r.$iframe)})};t.prototype.init=function(){var n=this;n.playerID="VideoWorker-"+n.ID};r=0;u=0;t.prototype.loadAPI=function(){var e=this,t,i,f;r&&u||(t="",("youtube"!==e.type||r||(r=1,t="//www.youtube.com/iframe_api"),"vimeo"!==e.type||u||(u=1,t="//player.vimeo.com/api/player.js"),t)&&("file://"===n.location.origin&&(t="http:"+t),i=document.createElement("script"),f=document.getElementsByTagName("head")[0],i.src=t,f.appendChild(i),f=null,i=null))};var e=0,o=0,s=new f,h=new f;t.prototype.onAPIready=function(t){var i=this,r;("youtube"===i.type&&("undefined"!=typeof YT&&0!==YT.loaded||e?"object"==typeof YT&&1===YT.loaded?t():s.done(function(){t()}):(e=1,n.onYouTubeIframeAPIReady=function(){n.onYouTubeIframeAPIReady=null;s.resolve("done");t()})),"vimeo"===i.type)&&("undefined"!=typeof Vimeo||o?"undefined"!=typeof Vimeo?t():h.done(function(){t()}):(o=1,r=setInterval(function(){"undefined"!=typeof Vimeo&&(clearInterval(r),h.resolve("done"),t())},20)));"local"===i.type&&t()};n.VideoWorker=t}(window),function(){"use strict";var n,t,i,r,u;"undefined"!=typeof jarallax&&(n=jarallax.constructor,t=n.prototype.init,n.prototype.init=function(){var n=this;t.apply(n);n.video&&n.video.getIframe(function(t){var i=t.parentNode;n.css(t,{position:n.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",visibility:"hidden",margin:0,zIndex:-1});n.$video=t;n.image.$container.appendChild(t);i.parentNode.removeChild(i)})},i=n.prototype.coverImage,n.prototype.coverImage=function(){var n=this;i.apply(n);n.video&&"IFRAME"===n.image.$item.nodeName&&n.css(n.image.$item,{height:n.image.$item.getBoundingClientRect().height+400+"px",marginTop:-200+parseFloat(n.css(n.image.$item,"margin-top"))+"px"})},r=n.prototype.initImg,n.prototype.initImg=function(){var n=this,i=r.apply(n),t;if(n.options.videoSrc||(n.options.videoSrc=n.$item.getAttribute("data-jarallax-video")||!1),n.options.videoSrc){if(t=new VideoWorker(n.options.videoSrc,{startTime:n.options.videoStartTime||0,endTime:n.options.videoEndTime||0}),t.isValid()&&(n.image.useImgTag=!0,t.on("ready",function(){var i=n.onScroll;n.onScroll=function(){i.apply(n);n.isVisible()?t.play():t.pause()}}),t.on("started",function(){n.image.$default_item=n.image.$item;n.image.$item=n.$video;n.image.width=n.options.imgWidth=n.video.videoWidth||1280;n.image.height=n.options.imgHeight=n.video.videoHeight||720;n.coverImage();n.clipContainer();n.onScroll();n.image.$default_item&&(n.image.$default_item.style.display="none")}),n.video=t,"local"!==t.type&&t.getImageURL(function(t){n.image.src=t;n.init()})),"local"!==t.type)return!1;if(!i)return n.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",!0}return i},u=n.prototype.destroy,n.prototype.destroy=function(){var n=this;u.apply(n)})}();$.fn.mdb_autocomplete=function(n){return n=$.extend({data:{}},n),this.each(function(){var r=$(this),i=n.data,t;Object.keys(i).length&&($('<ul class="mdb-autocomplete-wrap"><\/ul>').insertAfter($(this)),t=$(this).parent().find(".mdb-autocomplete-wrap"));r.on("keyup",function(n){var u=r.val(),f,e;if(t.empty(),u.length)for(f in i)i[f].toLowerCase().indexOf(u.toLowerCase())!==-1&&(e=$("<li>"+i[f]+"<\/li>"),t.append(e));13==n.which&&(t.children(":first").trigger("click"),t.empty());0==u.length?$(this).parent().find(".mdb-autocomplete-clear").css("visibility","hidden"):$(this).parent().find(".mdb-autocomplete-clear").css("visibility","visible")});t.on("click","li",function(){r.val($(this).text());t.empty()});$(".mdb-autocomplete-clear").on("click",function(n){n.preventDefault();$(this).parent().find("input").val("");$(this).css("visibility","hidden");$(this).parent().find(".mdb-autocomplete-wrap").empty();$(this).parent().find("label").removeClass("active")})})};$("body").on("shown.bs.modal",".modal",function(){$(".modal-backdrop").length||($modal_dialog=$(this).children(".modal-dialog"),$modal_dialog.hasClass("modal-side")&&($(this).addClass("modal-scrolling"),$("body").addClass("scrollable")),$modal_dialog.hasClass("modal-frame")&&($(this).addClass("modal-content-clickable"),$("body").addClass("scrollable")))});$("body").on("hidden.bs.modal",".modal",function(){$("body").removeClass("scrollable")}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var e=Array.prototype.slice,h=Array.prototype.splice,u={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"inherit"},f=n(window),c=n(document),i=[],o=f.height(),r=function(){for(var r,u,h,y,e=f.scrollTop(),l=c.height(),a=l-o,v=e>a?a-e:0,s=0,p=i.length;s<p;s++){var t=i[s],w=t.stickyWrapper.offset().top,b=w-t.topSpacing-v;t.stickyWrapper.css("height",t.stickyElement.outerHeight());e<=b?t.currentTop!==null&&(t.stickyElement.css({width:"",position:"",top:"","z-index":""}),t.stickyElement.parent().removeClass(t.className),t.stickyElement.trigger("sticky-end",[t]),t.currentTop=null):(r=l-t.stickyElement.outerHeight()-t.topSpacing-t.bottomSpacing-e-v,r=r<0?r+t.topSpacing:t.topSpacing,t.currentTop!==r&&(t.getWidthFrom?(padding=t.stickyElement.innerWidth()-t.stickyElement.width(),u=n(t.getWidthFrom).width()-padding||null):t.widthFromWrapper&&(u=t.stickyWrapper.width()),u==null&&(u=t.stickyElement.width()),t.stickyElement.css("width",u).css("position","fixed").css("top",r).css("z-index",t.zIndex),t.stickyElement.parent().addClass(t.className),t.currentTop===null?t.stickyElement.trigger("sticky-start",[t]):t.stickyElement.trigger("sticky-update",[t]),t.currentTop===t.topSpacing&&t.currentTop>r||t.currentTop===null&&r<t.topSpacing?t.stickyElement.trigger("sticky-bottom-reached",[t]):t.currentTop!==null&&r===t.topSpacing&&t.currentTop<r&&t.stickyElement.trigger("sticky-bottom-unreached",[t]),t.currentTop=r),h=t.stickyWrapper.parent(),y=t.stickyElement.offset().top+t.stickyElement.outerHeight()>=h.offset().top+h.outerHeight()&&t.stickyElement.offset().top<=t.topSpacing,y?t.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):t.stickyElement.css("position","fixed").css("top",r).css("bottom","").css("z-index",t.zIndex))}},s=function(){var u,e,t,r;for(o=f.height(),u=0,e=i.length;u<e;u++)t=i[u],r=null,t.getWidthFrom?t.responsiveWidth&&(r=n(t.getWidthFrom).width()):t.widthFromWrapper&&(r=t.stickyWrapper.width()),r!=null&&t.stickyElement.css("width",r)},t={init:function(r){return this.each(function(){var e=n.extend({},u,r),f=n(this),s=f.attr("id"),h=s?s+"-"+u.wrapperClassName:u.wrapperClassName,c=n("<div><\/div>").attr("id",h).addClass(e.wrapperClassName),o;f.wrapAll(function(){if(n(this).parent("#"+h).length==0)return c});o=f.parent();e.center&&o.css({width:f.outerWidth(),marginLeft:"auto",marginRight:"auto"});f.css("float")==="right"&&f.css({float:"none"}).parent().css({float:"right"});e.stickyElement=f;e.stickyWrapper=o;e.currentTop=null;i.push(e);t.setWrapperHeight(this);t.setupChangeListeners(this)})},setWrapperHeight:function(t){var i=n(t),r=i.parent();r&&r.css("height",i.outerHeight())},setupChangeListeners:function(n){if(window.MutationObserver){var i=new window.MutationObserver(function(i){(i[0].addedNodes.length||i[0].removedNodes.length)&&t.setWrapperHeight(n)});i.observe(n,{subtree:!0,childList:!0})}else window.addEventListener?(n.addEventListener("DOMNodeInserted",function(){t.setWrapperHeight(n)},!1),n.addEventListener("DOMNodeRemoved",function(){t.setWrapperHeight(n)},!1)):window.attachEvent&&(n.attachEvent("onDOMNodeInserted",function(){t.setWrapperHeight(n)}),n.attachEvent("onDOMNodeRemoved",function(){t.setWrapperHeight(n)}))},update:r,unstick:function(){return this.each(function(){for(var r=this,u=n(r),f=-1,t=i.length;t-->0;)i[t].stickyElement.get(0)===r&&(h.call(i,t,1),f=t);f!==-1&&(u.unwrap(),u.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",r,!1),window.addEventListener("resize",s,!1)):window.attachEvent&&(window.attachEvent("onscroll",r),window.attachEvent("onresize",s));n.fn.sticky=function(i){if(t[i])return t[i].apply(this,e.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.sticky");else return t.init.apply(this,arguments)};n.fn.unstick=function(i){if(t[i])return t[i].apply(this,e.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.sticky");else return t.unstick.apply(this,arguments)};n(function(){setTimeout(r,0)})});typeof jwplayer=="undefined"&&(jwplayer=function(n){if(jwplayer.api)return jwplayer.api.selectPlayer(n)},$jw=jwplayer,jwplayer.version="5.6.1768",function(n){function t(n){if(n!==null){var t=n.indexOf("://"),i=n.indexOf("?");return t>0&&(i<0||i>t)}}n.utils=function(){};n.utils.typeOf=function(n){var t=typeof n;return t==="object"&&(n?n instanceof Array&&(t="array"):t="null"),t};n.utils.extend=function(){var t=n.utils.extend.arguments,i,r;if(t.length>1){for(i=1;i<t.length;i++)for(r in t[i])t[0][r]=t[i][r];return t[0]}return null};n.utils.clone=function(){var r,t=n.utils.clone.arguments,i;if(t.length==1)switch(n.utils.typeOf(t[0])){case"object":r={};for(i in t[0])r[i]=n.utils.clone(t[0][i]);break;case"array":r=[];for(i in t[0])r[i]=n.utils.clone(t[0][i]);break;default:return t[0]}return r};n.utils.extension=function(n){if(n=n.substring(n.lastIndexOf("/")+1,n.length),n=n.split("?")[0],n.lastIndexOf(".")>-1)return n.substr(n.lastIndexOf(".")+1,n.length).toLowerCase()};n.utils.html=function(n,t){n.innerHTML=t};n.utils.wrap=function(n,t){n.parentNode.replaceChild(t,n);t.appendChild(n)};n.utils.ajax=function(n,t,i){var r;r=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");r.onreadystatechange=function(){r.readyState===4&&(r.status===200?t&&t(r):i&&i(n))};try{r.open("GET",n,!0);r.send(null)}catch(u){i&&i(n)}return r};n.utils.load=function(n,t,i){n.onreadystatechange=function(){n.readyState===4&&(n.status===200?t&&t():i&&i())}};n.utils.find=function(n,t){return n.getElementsByTagName(t)};n.utils.append=function(n,t){n.appendChild(t)};n.utils.isIE=function(){return!+"\v1"||typeof ActiveXObject!="undefined"};n.utils.isLegacyAndroid=function(){var n=navigator.userAgent.toLowerCase();return n.match(/android 2.[012]/i)!==null};n.utils.isIOS=function(){var n=navigator.userAgent.toLowerCase();return n.match(/iP(hone|ad)/i)!==null};n.utils.getFirstPlaylistItemFromConfig=function(n){var t={},i;return i=n.playlist&&n.playlist.length?n.playlist[0]:n,t.file=i.file,t.levels=i.levels,t.streamer=i.streamer,t.playlistfile=i.playlistfile,t.provider=i.provider,t.provider||(t.file&&(t.file.toLowerCase().indexOf("youtube.com")>-1||t.file.toLowerCase().indexOf("youtu.be")>-1)&&(t.provider="youtube"),t.streamer&&t.streamer.toLowerCase().indexOf("rtmp://")==0&&(t.provider="rtmp"),i.type&&(t.provider=i.type.toLowerCase())),t};n.utils.getOuterHTML=function(n){var u;if(n.outerHTML)return n.outerHTML;var t=n.parentNode,i=document.createElement(t.tagName),r=document.createElement(n.tagName);return t.replaceChild(r,n),i.appendChild(n),u=i.innerHTML,t.replaceChild(n,r),u};n.utils.setOuterHTML=function(n,t){var i,r,u;n.outerHTML?n.outerHTML=t:(i=document.createElement("div"),i.innerHTML=t,r=document.createRange(),r.selectNodeContents(i),u=r.extractContents(),n.parentNode.insertBefore(u,n),n.parentNode.removeChild(n))};n.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(n){}return!1};n.utils.getPluginName=function(n){return n.lastIndexOf("/")>=0&&(n=n.substring(n.lastIndexOf("/")+1,n.length)),n.lastIndexOf("-")>=0&&(n=n.substring(0,n.lastIndexOf("-"))),n.lastIndexOf(".swf")>=0&&(n=n.substring(0,n.lastIndexOf(".swf"))),n.lastIndexOf(".js")>=0&&(n=n.substring(0,n.lastIndexOf(".js"))),n};n.utils.getPluginVersion=function(n){return n.lastIndexOf("-")>=0?n.lastIndexOf(".js")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".js")):n.lastIndexOf(".swf")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".swf")):n.substring(n.lastIndexOf("-")+1):""};n.utils.getAbsolutePath=function(n,i){var f,s,r,e,o,u;if(i===undefined&&(i=document.location.href),n===undefined)return undefined;if(t(n))return n;for(f=i.substring(0,i.indexOf("://")+3),s=i.substring(f.length,i.indexOf("/",f.length+1)),n.indexOf("/")===0?r=n.split("/"):(e=i.split("?")[0],e=e.substring(f.length+s.length+1,e.lastIndexOf("/")),r=e.split("/").concat(n.split("/"))),o=[],u=0;u<r.length;u++)if(r[u]&&r[u]!==undefined&&r[u]!=".")r[u]==".."?o.pop():o.push(r[u]);else continue;return f+s+"/"+o.join("/")};n.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};n.utils.getPluginPathType=function(t){var i,u,r;if(typeof t=="string")return(t=t.split("?")[0],i=t.indexOf("://"),i>0)?n.utils.pluginPathType.ABSOLUTE:(u=t.indexOf("/"),r=n.utils.extension(t),i<0&&u<0&&(!r||!isNaN(r)))?n.utils.pluginPathType.CDN:n.utils.pluginPathType.RELATIVE};n.utils.mapEmpty=function(n){for(var t in n)return!1;return!0};n.utils.mapLength=function(n){var t=0;for(var i in n)t++;return t};n.utils.log=function(n,t){typeof console!="undefined"&&typeof console.log!="undefined"&&(t?console.log(n,t):console.log(n))};n.utils.css=function(t,i){if(t!==undefined)for(var r in i)try{if(typeof i[r]=="undefined")continue;else if(typeof i[r]=="number"&&!(r=="zIndex"||r=="opacity")){if(isNaN(i[r]))continue;i[r]=r.match(/color/i)?"#"+n.utils.strings.pad(i[r].toString(16),6):Math.ceil(i[r])+"px"}t.style[r]=i[r]}catch(u){}};n.utils.isYouTube=function(n){return n.indexOf("youtube.com")>-1||n.indexOf("youtu.be")>-1};n.utils.transform=function(n,t){n.style.webkitTransform=t;n.style.MozTransform=t;n.style.OTransform=t};n.utils.stretch=function(t,i,r,u,f,e){var o;if(typeof r!="undefined"&&typeof u!="undefined"&&typeof f!="undefined"&&typeof e!="undefined"){var s=r/f,h=u/e;i.style.overflow="hidden";n.utils.transform(i,"");o={};switch(t.toUpperCase()){case n.utils.stretching.NONE:o.width=f;o.height=e;break;case n.utils.stretching.UNIFORM:s>h?(o.width=f*h,o.height=e*h):(o.width=f*s,o.height=e*s);break;case n.utils.stretching.FILL:s>h?(o.width=f*s,o.height=e*s):(o.width=f*h,o.height=e*h);break;case n.utils.stretching.EXACTFIT:n.utils.transform(i,["scale(",s,",",h,")"," translate(0px,0px)"].join(""));o.width=f;o.height=e}o.top=(u-o.height)/2;o.left=(r-o.width)/2;n.utils.css(i,o)}};n.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};n.utils.deepReplaceKeyName=function(t,i,r){var u,f,e;switch(n.utils.typeOf(t)){case"array":for(u=0;u<t.length;u++)t[u]=n.utils.deepReplaceKeyName(t[u],i,r);break;case"object":for(f in t)e=f.replace(new RegExp(i,"g"),r),t[e]=n.utils.deepReplaceKeyName(t[f],i,r),f!=e&&delete t[f]}return t};n.utils.isInArray=function(n,t){if(!n||!(n instanceof Array))return!1;for(var i=0;i<n.length;i++)if(t===n[i])return!0;return!1}}(jwplayer),function(n){n.events=function(){};n.events.COMPLETE="COMPLETE";n.events.ERROR="ERROR"}(jwplayer),function(n){n.events.eventdispatcher=function(t){var u=t,i,r;this.resetEventListeners=function(){i={};r=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{i[type]===undefined&&(i[type]=[]);typeof listener=="string"&&eval("listener = "+listener);i[type].push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1};this.removeEventListener=function(t,r){try{for(var u=0;u<i[t].length;u++)if(i[t][lisenterIndex].toString()==r.toString()){i[t].slice(lisenterIndex,lisenterIndex+1);break}}catch(f){n.utils.log("error",f)}return!1};this.addGlobalListener=function(listener,count){try{typeof listener=="string"&&eval("listener = "+listener);r.push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1};this.removeGlobalListener=function(t){try{for(var i=0;i<r.length;i++)if(r[i].toString()==t.toString()){r.slice(i,i+1);break}}catch(u){n.utils.log("error",u)}return!1};this.sendEvent=function(t,f){var e,o;if(f===undefined&&(f={}),u&&n.utils.log(t,f),typeof i[t]!="undefined")for(e=0;e<i[t].length;e++){try{i[t][e].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),i[t][e].listener)}i[t][e]&&(i[t][e].count===1?delete i[t][e]:i[t][e].count>0&&(i[t][e].count=i[t][e].count-1))}for(o=0;o<r.length;o++){try{r[o].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),r[o].listener)}r[o]&&(r[o].count===1?delete r[o]:r[o].count>0&&(r[o].count=r[o].count-1))}}}}(jwplayer),function(n){var t={};n.utils.animations=function(){};n.utils.animations.transform=function(n,t){n.style.webkitTransform=t;n.style.MozTransform=t;n.style.OTransform=t;n.style.msTransform=t};n.utils.animations.transformOrigin=function(n,t){n.style.webkitTransformOrigin=t;n.style.MozTransformOrigin=t;n.style.OTransformOrigin=t;n.style.msTransformOrigin=t};n.utils.animations.rotate=function(t,i){n.utils.animations.transform(t,["rotate(",i,"deg)"].join(""))};n.utils.cancelAnimation=function(n){delete t[n.id]};n.utils.fadeTo=function(i,r,u,f,e,o){var h,c,l,s;if(t[i.id]==o||o===undefined){if(h=(new Date).getTime(),o>h&&setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},o-h),i.style.display="block",f===undefined&&(f=i.style.opacity===""?1:i.style.opacity),i.style.opacity==r&&i.style.opacity!==""&&o!==undefined){r===0&&(i.style.display="none");return}if(o===undefined&&(o=h,t[i.id]=o),e===undefined&&(e=0),c=(h-o)/(u*1e3),c=c>1?1:c,l=r-f,s=f+c*l,s>1?s=1:s<0&&(s=0),i.style.opacity=s,e>0){t[i.id]=o+e*1e3;n.utils.fadeTo(i,r,u,f,0,t[i.id]);return}setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},10)}}}(jwplayer),function(n){n.utils.arrays=function(){};n.utils.arrays.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1};n.utils.arrays.remove=function(t,i){var r=n.utils.arrays.indexOf(t,i);r>-1&&t.splice(r,1)}}(jwplayer),function(n){n.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}}(jwplayer),function(n){function i(t,i){return i===undefined?i=f[t]:n.utils.extend(i,f[t]),i}function r(n,r){var e,u,o,f;if(t[n.tagName.toLowerCase()]&&r===undefined)return t[n.tagName.toLowerCase()](n);r=i("element",r);e={};for(u in r)u!="length"&&(o=n.getAttribute(u),o===""||o===undefined||o===null||(e[r[u]]=n.getAttribute(u)));return f=n.style["#background-color"],!f||f=="transparent"||f=="rgba(0, 0, 0, 0)"||(e.screencolor=f),e}function u(t,u){var o,s,h,f;u=i("media",u);o=[];s=n.utils.selectors("source",t);for(h in s)isNaN(h)||o.push(e(s[h]));return f=r(t,u),f.file!==undefined&&(o[0]={file:f.file}),f.levels=o,f}function e(n,t){t=i("source",t);var u=r(n,t);return u.width=u.width?u.width:0,u.bitrate=u.bitrate?u.bitrate:0,u}function o(n,t){t=i("video",t);return u(n,t)}n.utils.mediaparser=function(){};var f={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},t={};n.utils.mediaparser.parseMedia=function(n){return r(n)};t.media=u;t.audio=u;t.source=e;t.video=o}(jwplayer),function(n){n.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};n.utils.scriptloader=function(t){var i=n.utils.loaderstatus.NEW,r=new n.events.eventdispatcher;n.utils.extend(this,r);this.load=function(){if(i==n.utils.loaderstatus.NEW){i=n.utils.loaderstatus.LOADING;var u=document.createElement("script");u.onload=function(){i=n.utils.loaderstatus.COMPLETE;r.sendEvent(n.events.COMPLETE)};u.onerror=function(){i=n.utils.loaderstatus.ERROR;r.sendEvent(n.events.ERROR)};u.onreadystatechange=function(){(u.readyState=="loaded"||u.readyState=="complete")&&(i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE))};document.getElementsByTagName("head")[0].appendChild(u);u.src=t}};this.getStatus=function(){return i}}}(jwplayer),function(n){n.utils.selectors=function(t,i){i===undefined&&(i=document);t=n.utils.strings.trim(t);var r=t.charAt(0);return r=="#"?i.getElementById(t.substr(1)):r=="."?i.getElementsByClassName?i.getElementsByClassName(t.substr(1)):n.utils.selectors.getElementsByTagAndClass("*",t.substr(1)):t.indexOf(".")>0?(selectors=t.split("."),n.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])):i.getElementsByTagName(t)};n.utils.selectors.getElementsByTagAndClass=function(n,t,i){var u,r,e,f;for(elements=[],i===undefined&&(i=document),u=i.getElementsByTagName(n),r=0;r<u.length;r++)if(u[r].className!==undefined)for(e=u[r].className.split(" "),f=0;f<e.length;f++)e[f]==t&&elements.push(u[r]);return elements}}(jwplayer),function(n){n.utils.strings=function(){};n.utils.strings.trim=function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")};n.utils.strings.pad=function(n,t,i){for(i||(i="0");n.length<t;)n=i+n;return n};n.utils.strings.serialize=function(n){return n==null?null:n=="true"?!0:n=="false"?!1:isNaN(Number(n))||n.length>5||n.length==0?n:Number(n)};n.utils.strings.seconds=function(n){n=n.replace(",",".");var t=n.split(":"),i=0;return n.substr(-1)=="s"?i=Number(n.substr(0,n.length-1)):n.substr(-1)=="m"?i=Number(n.substr(0,n.length-1))*60:n.substr(-1)=="h"?i=Number(n.substr(0,n.length-1))*3600:t.length>1?(i=Number(t[t.length-1]),i+=Number(t[t.length-2])*60,t.length==3&&(i+=Number(t[t.length-3])*3600)):i=Number(n),i};n.utils.strings.xmlAttribute=function(n,t){for(var i in n.attributes)if(n.attributes[i].name&&n.attributes[i].name.toLowerCase()==t.toLowerCase())return n.attributes[i].value.toString();return""};n.utils.strings.jsonToString=function(t){var u=u||{},f,r,e,o,i;if(u&&u.stringify)return u.stringify(t);if(f=typeof t,f!="object"||t===null)if(f=="string")t='"'+t+'"';else return String(t);else{r=[];e=t&&t.constructor==Array;for(o in t){i=t[o];switch(typeof i){case"string":i='"'+i+'"';break;case"object":i!==null&&(i=n.utils.strings.jsonToString(i))}e?typeof i!="function"&&r.push(String(i)):typeof i!="function"&&r.push('"'+o+'":'+String(i))}return e?"["+String(r)+"]":"{"+String(r)+"}"}}}(jwplayer),function(n){function i(n){if(["true","false","t","f"].toString().indexOf(n.toLowerCase().replace(" ",""))>=0)return"boolean";if(t.test(n))return"color";if(isNaN(parseInt(n,10))||parseInt(n,10).toString().length!=n.length){if(!isNaN(parseFloat(n))&&parseFloat(n).toString().length==n.length)return"float"}else return"integer";return"string"}function r(n,t){if(t===null)return n;switch(t){case"color":return n.length>0?u(n):null;case"integer":return parseInt(n,10);case"float":return parseFloat(n);case"boolean":return n.toLowerCase()=="true"?!0:n=="1"?!0:!1}return n}function u(n){switch(n.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:return n=n.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2)),parseInt(n,16)}return parseInt("000000",16)}var t=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);n.utils.typechecker=function(n,t){return t=t===null?i(n):t,r(n,t)}}(jwplayer),function(n){var i={},t={};n.plugins=function(){};n.plugins.loadPlugins=function(r,u){return t[r]=new n.plugins.pluginloader(new n.plugins.model(i),u),t[r]};n.plugins.registerPlugin=function(r,u,f){var e=n.utils.getPluginName(r),o;if(i[e])i[e].registerPlugin(r,u,f);else{n.utils.log("A plugin ("+r+") was registered with the player that was not loaded. Please check your configuration.");for(o in t)t[o].pluginFailed()}}}(jwplayer),function(n){n.plugins.model=function(t){this.addPlugin=function(i){var r=n.utils.getPluginName(i);return t[r]||(t[r]=new n.plugins.plugin(i)),t[r]}}}(jwplayer),function(n){n.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};n.plugins.plugin=function(t){function o(){switch(n.utils.getPluginPathType(t)){case n.utils.pluginPathType.ABSOLUTE:return t;case n.utils.pluginPathType.RELATIVE:return n.utils.getAbsolutePath(t,window.location.href);case n.utils.pluginPathType.CDN:var i=n.utils.getPluginName(t),r=n.utils.getPluginVersion(t);return s+"/"+n.version.split(".")[0]+"/"+i+"/"+i+(r!==""?"-"+r:"")+".js"}}function h(){e=setTimeout(function(){r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE)},1e3)}function c(){r=n.utils.loaderstatus.ERROR;f.sendEvent(n.events.ERROR)}var s="http://plugins.longtailvideo.com",r=n.utils.loaderstatus.NEW,i,u,e,f=new n.events.eventdispatcher;n.utils.extend(this,f);this.load=function(){if(r==n.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){i=t;r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE);return}r=n.utils.loaderstatus.LOADING;var u=new n.utils.scriptloader(o());u.addEventListener(n.events.COMPLETE,h);u.addEventListener(n.events.ERROR,c);u.load()}};this.registerPlugin=function(t,o,s){e&&(clearTimeout(e),e=undefined);o&&s?(i=s,u=o):typeof o=="string"?i=o:typeof o=="function"?u=o:o||s||(i=t);r=n.utils.loaderstatus.COMPLETE;f.sendEvent(n.events.COMPLETE)};this.getStatus=function(){return r};this.getPluginName=function(){return n.utils.getPluginName(t)};this.getFlashPath=function(){if(i)switch(n.utils.getPluginPathType(i)){case n.utils.pluginPathType.ABSOLUTE:return i;case n.utils.pluginPathType.RELATIVE:return t.lastIndexOf(".swf")>0?n.utils.getAbsolutePath(i,window.location.href):n.utils.getAbsolutePath(i,o());case n.utils.pluginPathType.CDN:return i.indexOf("-")>-1?i+"h":i+"-h"}return null};this.getJS=function(){return u};this.getPluginmode=function(){return typeof i!="undefined"&&typeof u!="undefined"?n.plugins.pluginmodes.HYBRID:typeof i!="undefined"?n.plugins.pluginmodes.FLASH:typeof u!="undefined"?n.plugins.pluginmodes.JAVASCRIPT:void 0};this.getNewInstance=function(n,t,i){return new u(n,t,i)};this.getURL=function(){return t}}}(jwplayer),function(n){n.plugins.pluginloader=function(t,i){function h(){f||(f=!0,u=n.utils.loaderstatus.COMPLETE,s.sendEvent(n.events.COMPLETE))}function e(){var t,i;if(!f){t=0;for(plugin in r)i=r[plugin].getStatus(),(i==n.utils.loaderstatus.LOADING||i==n.utils.loaderstatus.NEW)&&t++;t==0&&h()}}var r={},u=n.utils.loaderstatus.NEW,o=!1,f=!1,s=new n.events.eventdispatcher;n.utils.extend(this,s);this.setupPlugins=function(n,t,i){var s={length:0,plugins:{}},f={length:0,plugins:{}},u,o,e;for(u in r)if(o=r[u].getPluginName(),r[u].getFlashPath()&&(s.plugins[r[u].getFlashPath()]=t.plugins[u],s.plugins[r[u].getFlashPath()].pluginmode=r[u].getPluginmode(),s.length++),r[u].getJS()&&(e=document.createElement("div"),e.id=n.id+"_"+o,e.style.position="absolute",e.style.zIndex=f.length+10,f.plugins[o]=r[u].getNewInstance(n,t.plugins[u],e),f.length++,typeof f.plugins[o].resize!="undefined")){n.onReady(i(f.plugins[o],e,!0));n.onResize(i(f.plugins[o],e))}return n.plugins=f.plugins,s};this.load=function(){u=n.utils.loaderstatus.LOADING;o=!0;for(var f in i)r[f]=t.addPlugin(f),r[f].addEventListener(n.events.COMPLETE,e),r[f].addEventListener(n.events.ERROR,e);for(f in i)r[f].load();o=!1;e()};this.pluginFailed=function(){h()};this.getStatus=function(){return u}}}(jwplayer),function(n){var t=[];n.api=function(t){function c(n){return function(t,r,f,e){var o;r?(u[t]=r,o="jwplayer('"+n+"').callback('"+t+"')"):!r&&u[t]&&delete u[t];i.jwDockSetButton(t,o,f,e)}}function l(n){return function(t){var u=t.newstate,e=t.oldstate,i,r;if(u==n&&(i=f[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:e,newstate:u})}}function a(t,i){var r=n.utils.extend({},i),u,f;t!=n.api.events.JWPLAYER_FULLSCREEN||r.fullscreen?typeof r.data=="object"&&(r=n.utils.extend(r,r.data),delete r.data):(r.fullscreen=r.message=="true"?!0:!1,delete r.message);u=["position","duration","offset"];for(f in u)r[u[f]]&&(r[u[f]]=Math.round(r[u[f]]*1e3)/1e3);return r}this.container=t;this.id=t.id;var r={},f={},i=undefined,o=!1,e=[],h=n.utils.getOuterHTML(t),s={},u={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(n){var t=this.callInternal;return n=="dock"?{setButton:c(this.id),show:function(){return t("jwShowDock")},hide:function(){return t("jwHideDock")}}:n=="controlbar"?{show:function(){return t("jwShowControlbar")},hide:function(){return t("jwHideControlbar")}}:n=="display"?{show:function(){return t("jwShowDisplay")},hide:function(){return t("jwHideDisplay")}}:this.plugins[n]},this.callback=function(n){if(u[n])return u[n]()},this.getDuration=function(){return this.callInternal("jwGetDuration")},this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")},this.getHeight=function(){return this.callInternal("jwGetHeight")},this.getLockState=function(){return this.callInternal("jwGetLockState")},this.getMeta=function(){return this.getItemMeta()},this.getMute=function(){return this.callInternal("jwGetMute")},this.getPlaylist=function(){var i=this.callInternal("jwGetPlaylist"),t;for(this.renderingMode=="flash"&&n.utils.deepReplaceKeyName(i,"__dot__","."),t=0;t<i.length;t++)i[t].index===undefined&&(i[t].index=t);return i},this.getPlaylistItem=function(n){return n===undefined&&(n=this.getCurrentItem()),this.getPlaylist()[n]},this.getPosition=function(){return this.callInternal("jwGetPosition")},this.getRenderingMode=function(){return this.renderingMode},this.getState=function(){return this.callInternal("jwGetState")},this.getVolume=function(){return this.callInternal("jwGetVolume")},this.getWidth=function(){return this.callInternal("jwGetWidth")},this.setFullscreen=function(n){return n===undefined?this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")):this.callInternal("jwSetFullscreen",n),this},this.setMute=function(n){return n===undefined?this.callInternal("jwSetMute",!this.callInternal("jwGetMute")):this.callInternal("jwSetMute",n),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(n){return this.callInternal("jwLoad",n),this},this.playlistItem=function(n){return this.callInternal("jwPlaylistItem",n),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(n,t){return this.renderingMode=="html5"?i.jwResize(n,t):(this.container.width=n,this.container.height=t),this},this.play=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",t),this},this.pause=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",t),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(n){return this.callInternal("jwSeek",n),this},this.setVolume=function(n){return this.callInternal("jwSetVolume",n),this},this.onBufferChange=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,t)},this.onBufferFull=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)},this.onError=function(t){return this.eventListener(n.api.events.JWPLAYER_ERROR,t)},this.onFullscreen=function(t){return this.eventListener(n.api.events.JWPLAYER_FULLSCREEN,t)},this.onMeta=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_META,t)},this.onMute=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_MUTE,t)},this.onPlaylist=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,t)},this.onPlaylistItem=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,t)},this.onReady=function(t){return this.eventListener(n.api.events.API_READY,t)},this.onResize=function(t){return this.eventListener(n.api.events.JWPLAYER_RESIZE,t)},this.onComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)},this.onSeek=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_SEEK,t)},this.onTime=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_TIME,t)},this.onVolume=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,t)},this.onBuffer=function(t){return this.stateListener(n.api.events.state.BUFFERING,t)},this.onPause=function(t){return this.stateListener(n.api.events.state.PAUSED,t)},this.onPlay=function(t){return this.stateListener(n.api.events.state.PLAYING,t)},this.onIdle=function(t){return this.stateListener(n.api.events.state.IDLE,t)},this.remove=function(){r={};e=[];n.utils.getOuterHTML(this.container)!=h&&n.api.destroyPlayer(this.id,h)},this.setup=function(t){var r,i;return n.embed?(r=this.id,this.remove(),i=n(r),i.config=t,new n.embed(i)):this},this.registerPlugin=function(t,i,r){n.plugins.registerPlugin(t,i,r)},this.setPlayer=function(n,t){i=n;this.renderingMode=t},this.stateListener=function(t,i){return f[t]||(f[t]=[],this.eventListener(n.api.events.JWPLAYER_PLAYER_STATE,l(t))),f[t].push(i),this},this.addInternalListener=function(n,t){n.jwAddEventListener(t,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+t+'", dat); }')},this.eventListener=function(n,t){return r[n]||(r[n]=[],i&&o&&this.addInternalListener(i,n)),r[n].push(t),this},this.dispatchEvent=function(n){var i,t;if(r[n])for(i=a(n,arguments[1]),t=0;t<r[n].length;t++)typeof r[n][t]=="function"&&r[n][t].call(this,i)},this.callInternal=function(n,t){if(o)return typeof i!="undefined"&&typeof i[n]=="function"?t!==undefined?i[n](t):i[n]():null;e.push({method:n,parameters:t})},this.playerReady=function(t){var f,u;o=!0;i||this.setPlayer(document.getElementById(t.id));this.container=document.getElementById(this.id);for(f in r)this.addInternalListener(i,f);for(this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,function(){s={}}),this.eventListener(n.api.events.JWPLAYER_MEDIA_META,function(t){n.utils.extend(s,t.metadata)}),this.dispatchEvent(n.api.events.API_READY);e.length>0;)u=e.shift(),this.callInternal(u.method,u.parameters)},this.getItemMeta=function(){return s},this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")},this};n.api.selectPlayer=function(t){var i,r;return(t===undefined&&(t=0),t.nodeType?i=t:typeof t=="string"&&(i=document.getElementById(t)),i)?(r=n.api.playerById(i.id),r?r:n.api.addPlayer(new n.api(i))):typeof t=="number"?n.getPlayers()[t]:null};n.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};n.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};n.api.playerById=function(n){for(var i=0;i<t.length;i++)if(t[i].id==n)return t[i];return null};n.api.addPlayer=function(n){for(var i=0;i<t.length;i++)if(t[i]==n)return n;return t.push(n),n};n.api.destroyPlayer=function(i,r){for(var u,o,s,f=-1,e=0;e<t.length;e++)if(t[e].id==i){f=e;continue}return f>=0&&(u=document.getElementById(t[f].id),document.getElementById(t[f].id+"_wrapper")&&(u=document.getElementById(t[f].id+"_wrapper")),u&&(r?n.utils.setOuterHTML(u,r):(o=document.createElement("div"),s=u.id,u.id.indexOf("_wrapper")==u.id.length-8&&(newID=u.id.substring(0,u.id.length-8)),o.setAttribute("id",s),u.parentNode.replaceChild(o,u))),t.splice(f,1)),null};n.getPlayers=function(){return t.slice(0)}}(jwplayer),_userPlayerReady=typeof playerReady=="function"?playerReady:undefined,playerReady=function(n){var t=jwplayer.api.playerById(n.id);t&&t.playerReady(n);_userPlayerReady&&_userPlayerReady.call(this,n)},function(n){function t(){var r,i,u;if(!document.body)return setTimeout(t,15);for(r=n.utils.selectors.getElementsByTagAndClass("video","jwplayer"),i=0;i<r.length;i++)u=r[i],n(u.id).setup({})}n.embed=function(t){function e(n,t){for(var i in t)typeof n[i]=="function"&&n[i].call(n,t[i])}function u(){var u,f,o;if(r.getStatus()==n.utils.loaderstatus.COMPLETE){for(u=0;u<i.modes.length;u++)if(i.modes[u].type&&n.embed[i.modes[u].type]&&(f=i,i.modes[u].config&&(f=n.utils.extend(n.utils.clone(i),i.modes[u].config)),o=new n.embed[i.modes[u].type](document.getElementById(t.id),i.modes[u],f,r,t),o.supportsConfig()))return o.embed(),e(t,i.events),t;n.utils.log("No suitable players found");new n.embed.logo(n.utils.extend({hide:!0},i.components.logo),"none",t.id)}}var f=n.utils.mediaparser.parseMedia(t.container),i=new n.embed.config(n.utils.extend({width:400,height:300,components:{controlbar:{position:"over"}}},f,t.config),this),r=n.plugins.loadPlugins(t.id,i.plugins);return r.addEventListener(n.events.COMPLETE,u),r.addEventListener(n.events.ERROR,u),r.load(),t};t()}(jwplayer),function(n){function i(){return[{type:"flash",src:"/Static/dist/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}function f(n){return n instanceof Array||typeof n=="object"&&!n.position&&!n.size}function r(n){return typeof n=="string"&&(parseInt(n).toString()==n||n.toLowerCase().indexOf("px")>-1)?parseInt(n):n}function e(t){var u={},f,r,i;switch(n.utils.typeOf(t.plugins)){case"object":for(f in t.plugins)u[n.utils.getPluginName(f)]=f;break;case"string":for(r=t.plugins.split(","),i=0;i<r.length;i++)u[n.utils.getPluginName(r[i])]=r[i]}return u}function u(t,i,r,u){var f,e;n.utils.typeOf(t[i])!="object"&&(t[i]={});f=t[i][r];n.utils.typeOf(f)!="object"&&(t[i][r]=f={});i=="plugins"?(e=n.utils.getPluginName(r),f[u]=t[e+"."+u],delete t[e+"."+u]):(f[u]=t[r+"."+u],delete t[r+"."+u])}var t=["playlist","dock","controlbar","logo"];n.embed.deserialize=function(i){var o=e(i);for(var r in i)if(r.indexOf(".")>-1){var s=r.split("."),f=s[0],r=s[1];n.utils.isInArray(t,f)?u(i,"components",f,r):o[f]&&u(i,"plugins",o[f],r)}return i};n.embed.config=function(u){var e=n.utils.extend({},u),a,c,h,l,o,s;if(f(e.playlist)&&(a=e.playlist,delete e.playlist),e=n.embed.deserialize(e),e.height=r(e.height),e.width=r(e.width),typeof e.plugins=="string")for(c=e.plugins.split(","),typeof e.plugins!="object"&&(e.plugins={}),h=0;h<c.length;h++)l=n.utils.getPluginName(c[h]),typeof e[l]=="object"?(e.plugins[c[h]]=e[l],delete e[l]):e.plugins[c[h]]={};for(o=0;o<t.length;o++)typeof e[t[o]]=="string"?(e.components[t[o]]||(e.components[t[o]]={}),t[o]=="logo"?e.components[t[o]].file=e[t[o]]:e.components[t[o]].position=e[t[o]],delete e[t[o]]):typeof e[t[o]]!="undefined"&&(e.components[t[o]]||(e.components[t[o]]={}),n.utils.extend(e.components[t[o]],e[t[o]]),delete e[t[o]]),typeof e[t[o]+"size"]!="undefined"&&(e.components[t[o]]||(e.components[t[o]]={}),e.components[t[o]].size=e[t[o]+"size"],delete e[t[o]+"size"]);return typeof e.icons!="undefined"&&(e.components.display||(e.components.display={}),e.components.display.icons=e.icons,delete e.icons),e.players&&(e.modes=e.players,delete e.players),e.flashplayer&&!e.modes?(s=i(),s[0].src=e.flashplayer,delete e.flashplayer):e.modes?(typeof e.modes=="string"?(s=i(),s[0].src=e.modes):e.modes instanceof Array?s=e.modes:typeof e.modes=="object"&&e.modes.type&&(s=[e.modes]),delete e.modes):s=i(),e.modes=s,a&&(e.playlist=a),e}}(jwplayer),function(n){n.embed.download=function(t,i,r,u,f){function e(t,i,r){var f,u;return r?!1:(f=["image","sound","youtube","http"],i&&f.toString().indexOf(i)>-1)?!0:(!i||i&&i=="video")&&(u=n.utils.extension(t),u&&n.utils.extensionmap[u])?!0:!1}this.embed=function(){function v(){_imageWidth=i.display_image.naturalWidth;_imageHeight=i.display_image.naturalHeight;y()}function y(){n.utils.stretch(n.utils.stretching.UNIFORM,i.display_image,o,e,_imageWidth,_imageHeight)}var w=n.utils.extend({},r),i={},o=r.width?r.width:480,e,s,h,c,u,a,l,p;typeof o!="number"&&(o=parseInt(o,10));e=r.height?r.height:320;typeof e!="number"&&(e=parseInt(e,10));u={};r.playlist&&r.playlist.length?(u.file=r.playlist[0].file,h=r.playlist[0].image,u.levels=r.playlist[0].levels):(u.file=r.file,h=r.image,u.levels=r.levels);u.file?s=u.file:u.levels&&u.levels.length&&(s=u.levels[0].file);c=s?"pointer":"auto";a={display:{style:{cursor:c,width:o,height:e,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:c,position:"absolute",display:s?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:c,position:"absolute",display:s?"block":"none",top:(e-50)/2,left:(o-50)/2,border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:o,height:e,display:h?"block":"none",position:"absolute",cursor:c,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};l=function(i,r,u){var f=document.createElement(i);return f.id=u?u:t.id+"_jwplayer_"+r,n.utils.css(f,a[r].style),f};i.display=l("a","display",t.id);s&&i.display.setAttribute("href",n.utils.getAbsolutePath(s));i.display_image=l("img","display_image");i.display_image.setAttribute("alt","Click to download...");h&&i.display_image.setAttribute("src",n.utils.getAbsolutePath(h));!0&&(i.display_icon=l("div","display_icon"),i.display_iconBackground=l("div","display_iconBackground"),i.display.appendChild(i.display_image),i.display_iconBackground.appendChild(i.display_icon),i.display.appendChild(i.display_iconBackground));_css=n.utils.css;_hide=function(n){_css(n,{display:"none"})};i.display_image.onerror=function(){_hide(i.display_image)};i.display_image.onload=v;t.parentNode.replaceChild(i.display,t);p=r.plugins&&r.plugins.logo?r.plugins.logo:{};i.display.appendChild(new n.embed.logo(r.components.logo,"download",t.id));f.container=document.getElementById(f.id);f.setPlayer(i.display,"download")};this.supportsConfig=function(){var t,i;if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return e(t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&e(t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0}}}(jwplayer),function(n){n.embed.flash=function(t,i,r,u,f){function e(n,t,i){var r=document.createElement("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function h(t,i,r){return function(){var u,e;r&&document.getElementById(f.id+"_wrapper").appendChild(i);u=document.getElementById(f.id).getPluginConfig("display");t.resize(u.width,u.height);e={left:u.x,top:u.y};n.utils.css(i,e)}}function o(n,t){var f,i,r,u;if(n[t]){f=n[t];for(i in f)if(r=f[i],typeof r=="string")n[i]||(n[i]=r);else for(u in r)n[i+"."+u]||(n[i+"."+u]=r[u]);delete n[t]}}function c(t){var i,u,r,o,f,e;if(!t)return{};i={};u=[];for(r in t){o=n.utils.getPluginName(r);f=t[r];u.push(r);for(e in f)i[o+"."+e]=f[e]}return i.plugins=u.join(","),i}function s(t){var r=t.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href)+"&";for(var i in t)r+=typeof t[i]=="object"?i+"="+encodeURIComponent("[[JSON]]"+n.utils.strings.jsonToString(t[i]))+"&":i+"="+encodeURIComponent(t[i])+"&";return r.substring(0,r.length-1)}this.embed=function(){var k,d,p,w,g,b,v,a;r.id=f.id;var y,l=n.utils.extend({},r),nt=l.width,tt=l.height;for(t.id+"_wrapper"==t.parentNode.id?y=document.getElementById(t.id+"_wrapper"):(y=document.createElement("div"),y.id=t.id+"_wrapper",n.utils.wrap(t,y),n.utils.css(y,{position:"relative",width:nt,height:tt})),k=u.setupPlugins(f,l,h),k.length>0?n.utils.extend(l,c(k.plugins)):delete l.plugins,d=["height","width","modes","events"],p=0;p<d.length;p++)delete l[d[p]];w="opaque";l.wmode&&(w=l.wmode);o(l,"components");o(l,"providers");typeof l["dock.position"]!="undefined"&&l["dock.position"].toString().toLowerCase()=="false"&&(l.dock=l["dock.position"],delete l["dock.position"]);g="#000000";n.utils.isIE()?(v='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+g+'" width="100%" height="100%" id="'+t.id+'" name="'+t.id+'" tabindex=0"">',v+='<param name="movie" value="'+i.src+'">',v+='<param name="allowfullscreen" value="true">',v+='<param name="allowscriptaccess" value="always">',v+='<param name="seamlesstabbing" value="true">',v+='<param name="wmode" value="'+w+'">',v+='<param name="flashvars" value="'+s(l)+'">',v+="<\/object>",n.utils.setOuterHTML(t,v),b=document.getElementById(t.id)):(a=document.createElement("object"),a.setAttribute("type","application/x-shockwave-flash"),a.setAttribute("data",i.src),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("bgcolor","#000000"),a.setAttribute("id",t.id),a.setAttribute("name",t.id),a.setAttribute("tabindex",0),e(a,"allowfullscreen","true"),e(a,"allowscriptaccess","always"),e(a,"seamlesstabbing","true"),e(a,"wmode",w),e(a,"flashvars",s(l)),t.parentNode.replaceChild(a,t),b=a);f.container=b;f.setPlayer(b,"flash")};this.supportsConfig=function(){var t,i;if(n.utils.hasFlash())if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return flashCanPlay(t.file,t.provider);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&flashCanPlay(t.levels[i].file,t.provider))return!0}else return!0;return!1};flashCanPlay=function(t,i){var r;return i&&["video","http","sound","image"].toString().indexOf(i<0)?!0:(r=n.utils.extension(t),!r)?!0:n.utils.extensionmap[r]!==undefined&&n.utils.extensionmap[r].flash===undefined?!1:!0}}}(jwplayer),function(n){n.embed.html5=function(t,i,r,u,f){function e(n,i,r){return function(){var f=document.getElementById(t.id+"_displayarea"),u;r&&f.appendChild(i);u=f.style;n.resize(parseInt(u.width.replace("px","")),parseInt(u.height.replace("px","")));i.left=u.left;i.top=u.top}}this.embed=function(){var i,s,o,h;if(n.html5){for(u.setupPlugins(f,r,e),t.innerHTML="",i=n.utils.extend({screencolor:"0x000000"},r),s=["plugins","modes","events"],o=0;o<s.length;o++)delete i[s[o]];i.levels&&!i.sources&&(i.sources=r.levels);i.skin&&i.skin.toLowerCase().indexOf(".zip")>0&&(i.skin=i.skin.replace(/\.zip/i,".xml"));h=new(n.html5(t).setup)(i);f.container=document.getElementById(f.id);f.setPlayer(h,"html5")}else return null};this.supportsConfig=function(){var u=document.createElement("video"),t,i;if(!!u.canPlayType)if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return html5CanPlay(u,t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&html5CanPlay(u,t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0;return!1};html5CanPlay=function(t,i,r,u){if(u)return!1;if(r&&r=="youtube")return!0;if(r&&r!="video"&&r!="http"&&r!="sound")return!1;var f=n.utils.extension(i);return!f||n.utils.extensionmap[f]===undefined?!0:n.utils.extensionmap[f].html5===undefined?!1:n.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(t,n.utils.extensionmap[f].html5)};browserCanPlay=function(n,t){return t?n.canPlayType(t):!0}}}(jwplayer),function(n){n.embed.logo=function(t,i,r){function s(){h();l();a()}function h(){if(e.prefix){var t=n.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(t)<0&&(e.prefix+=t+"/")}u=n.utils.extend({},e)}function c(){var n={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10},t,i;n.display=u.hide?"none":"block";t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=u.margin;return n}function l(){(f=document.createElement("img"),f.id=r+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,c());o()},u.file)&&(f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file)}function a(){u.link?(f.onmouseover=y,f.onmouseout=o,f.onclick=v):this.mouseEnabled=!1}function v(n){typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation());u.link&&window.open(u.link,"_blank");return}function o(){u.link&&(f.style.opacity=u.out);return}function y(){u.hide&&(f.style.opacity=u.over);return}var e={prefix:"http://l.longtailvideo.com/"+i+"/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:3,hide:!1,position:"bottom-left"},f,u;if(_css=n.utils.css,s(),u.file)return f}}(jwplayer),function(n){n.html5=function(t){var i=t;return this.setup=function(t){return n.utils.extend(this,new n.html5.api(i,t)),this},this}}(jwplayer),function(n){function i(t){return[n.html5.view.positions.TOP,n.html5.view.positions.RIGHT,n.html5.view.positions.BOTTOM,n.html5.view.positions.LEFT].toString().indexOf(t.toUpperCase())>-1}var t=n.utils.css;n.html5.view=function(r,u,f){function g(){function i(){return c.skin.getComponentSettings("display")&&c.skin.getComponentSettings("display").backgroundcolor?c.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}h=document.createElement("div");h.id=l.id;h.className=l.className;_videowrapper=document.createElement("div");_videowrapper.id=h.id+"_video_wrapper";l.id=h.id+"_video";t(h,{position:"relative",height:e.height,width:e.width,padding:0,backgroundColor:i(),zIndex:0});t(l,{width:e.width,height:e.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});t(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});n.utils.wrap(l,h);n.utils.wrap(l,_videowrapper);o=document.createElement("div");o.id=h.id+"_displayarea";h.appendChild(o)}function nt(){for(var n,t=0;t<e.plugins.order.length;t++)n=e.plugins.order[t],e.plugins.object[n].getDisplayElement!==undefined&&(e.plugins.object[n].height=s(e.plugins.object[n].getDisplayElement().style.height),e.plugins.object[n].width=s(e.plugins.object[n].getDisplayElement().style.width),e.plugins.config[n].currentPosition=e.plugins.config[n].position);b()}function b(){var t,i;if(e.getMedia()!==undefined)for(t=0;t<e.plugins.order.length;t++)i=e.plugins.order[t],e.plugins.object[i].getDisplayElement!==undefined&&(e.plugins.config[i].currentPosition=e.getMedia().hasChrome()?n.html5.view.positions.NONE:e.plugins.config[i].position);y(e.width,e.height)}function s(n){return typeof n=="string"?n===""?0:n.lastIndexOf("%")>-1?n:parseInt(n.replace("px",""),10):n}function tt(t){switch(t.keyCode){case 27:c.jwGetFullscreen()&&c.jwSetFullscreen(!1);break;case 32:c.jwGetState()!=n.api.events.state.IDLE&&c.jwGetState()!=n.api.events.state.PAUSED?c.jwPause():c.jwPlay()}}function y(n,i){var r,u;h.style.display!="none"&&(r=[].concat(e.plugins.order),r.reverse(),p=r.length+2,e.fullscreen?navigator.vendor.indexOf("Apple")!==0&&w(ut,r,!0):(e.width=n,e.height=i,a=n,v=i,t(o,{top:0,bottom:0,left:0,right:0,width:n,height:i}),t(h,{height:v,width:a}),u=w(it,r),u.length>0&&(p+=u.length,w(rt,u,!0))),k())}function w(i,r,u){for(var f,o,h=[],s=0;s<r.length;s++)f=r[s],e.plugins.object[f].getDisplayElement!==undefined&&(e.plugins.config[f].currentPosition!=n.html5.view.positions.NONE?(o=i(f,p--),o?(e.plugins.object[f].resize(o.width,o.height),u&&(delete o.width,delete o.height),t(e.plugins.object[f].getDisplayElement(),o)):h.push(f)):t(e.plugins.object[f].getDisplayElement(),{display:"none"}));return h}function it(n,t){if(e.plugins.object[n].getDisplayElement!==undefined&&e.plugins.config[n].position&&i(e.plugins.config[n].position)){e.plugins.object[n].getDisplayElement().parentNode===null&&h.appendChild(e.plugins.object[n].getDisplayElement());var r=ft(n);return r.zIndex=t,r}return!1}function rt(n,t){e.plugins.object[n].getDisplayElement().parentNode===null&&o.appendChild(e.plugins.object[n].getDisplayElement());var i=e.width,r=e.height;return typeof e.width=="string"&&e.width.lastIndexOf("%")>-1&&(percentage=parseFloat(e.width.substring(0,e.width.lastIndexOf("%")))/100,i=Math.round(window.innerWidth*percentage)),typeof e.height=="string"&&e.height.lastIndexOf("%")>-1&&(percentage=parseFloat(e.height.substring(0,e.height.lastIndexOf("%")))/100,r=Math.round(window.innerHeight*percentage)),{position:"absolute",width:i-s(o.style.left)-s(o.style.right),height:r-s(o.style.top)-s(o.style.bottom),zIndex:t}}function ut(n,t){return{position:"fixed",width:e.width,height:e.height,zIndex:t}}function k(){var i,r,t;(o.style.position="absolute",e.getMedia().getDisplayElement().style.position="absolute",e.getMedia().getDisplayElement().videoWidth!=0&&e.getMedia().getDisplayElement().videoHeight!=0)&&(o.style.width.toString().lastIndexOf("%")>-1||o.style.width.toString().lastIndexOf("%")>-1?(t=o.getBoundingClientRect(),i=Math.abs(t.left)+Math.abs(t.right),r=Math.abs(t.top)+Math.abs(t.bottom)):(i=s(o.style.width),r=s(o.style.height)),n.utils.stretch(c.jwGetStretching(),e.getMedia().getDisplayElement(),i,r,e.getMedia().getDisplayElement().videoWidth,e.getMedia().getDisplayElement().videoHeight))}function ft(t){var i={position:"absolute",margin:0,padding:0,top:null},r=e.plugins.config[t].currentPosition.toLowerCase();switch(r.toUpperCase()){case n.html5.view.positions.TOP:i.top=s(o.style.top);i.left=s(o.style.left);i.width=a-s(o.style.left)-s(o.style.right);i.height=e.plugins.object[t].height;o.style[r]=s(o.style[r])+e.plugins.object[t].height+"px";o.style.height=s(o.style.height)-i.height+"px";break;case n.html5.view.positions.RIGHT:i.top=s(o.style.top);i.right=s(o.style.right);i.width=i.width=e.plugins.object[t].width;i.height=v-s(o.style.top)-s(o.style.bottom);o.style[r]=s(o.style[r])+e.plugins.object[t].width+"px";o.style.width=s(o.style.width)-i.width+"px";break;case n.html5.view.positions.BOTTOM:i.bottom=s(o.style.bottom);i.left=s(o.style.left);i.width=a-s(o.style.left)-s(o.style.right);i.height=e.plugins.object[t].height;o.style[r]=s(o.style[r])+e.plugins.object[t].height+"px";o.style.height=s(o.style.height)-i.height+"px";break;case n.html5.view.positions.LEFT:i.top=s(o.style.top);i.left=s(o.style.left);i.width=e.plugins.object[t].width;i.height=v-s(o.style.top)-s(o.style.bottom);o.style[r]=s(o.style[r])+e.plugins.object[t].width+"px";o.style.width=s(o.style.width)-i.width+"px"}return i}var c=r,l=u,e=f,h,a,v,o,p,d;this.setup=function(t){l=t;g();nt();c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_LOADED,b);c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_META,function(){k()});var i;window.onresize!==null&&(i=window.onresize);window.onresize=function(n){if(i!==undefined)try{i(n)}catch(r){}if(c.jwGetFullscreen()){var t=document.body.getBoundingClientRect();e.width=Math.abs(t.left)+Math.abs(t.right);e.height=window.innerHeight}y(e.width,e.height)}};this.resize=y;this.fullscreen=function(n){var r,i;if(navigator.vendor.indexOf("Apple")===0){if(e.getMedia().getDisplayElement().webkitSupportsFullscreen)if(n)try{e.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(u){}else try{e.getMedia().getDisplayElement().webkitExitFullscreen()}catch(u){}}else n?(document.onkeydown=tt,clearInterval(d),r=document.body.getBoundingClientRect(),e.width=Math.abs(r.left)+Math.abs(r.right),e.height=window.innerHeight,i={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3},t(h,i),i.zIndex=1,t(e.getMedia().getDisplayElement(),i),i.zIndex=2,t(o,i)):(document.onkeydown="",e.width=a,e.height=v,t(h,{position:"relative",height:e.height,width:e.width,zIndex:0})),y(e.width,e.height)}};n.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(n){var t={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:n.html5.view.positions.BOTTOM,idlehide:!1,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_css=n.utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.controlbar=function(i,r){function h(){return k||(k=u.skin.getSkinElement("controlbar","background"),k||(k={width:0,height:0,src:null})),k}function ht(){var i,n,r,t;v=0;y=0;et=0;p||(i={height:h().height,backgroundColor:s.backgroundcolor},e=document.createElement("div"),e.id=u.id+"_jwplayer_controlbar",_css(e,i));n=u.skin.getSkinElement("controlbar","capLeft");r=u.skin.getSkinElement("controlbar","capRight");n&&o("capLeft","left",!1,e);t={position:"absolute",height:h().height,left:n?n.width:0,zIndex:0};d("background",e,t,"img");h().src&&(f.background.src=h().src);t.zIndex=1;d("elements",e,t);r&&o("capRight","right",!1,e)}function ct(){var t=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],i,n;for(i in t)n=t[i],typeof f[n]!="undefined"&&(l[n]=f[n].getBoundingClientRect())}function ut(){tt||(n.utils.cancelAnimation(e),dt()?n.utils.fadeTo(e,1,0,1,0):n.utils.fadeTo(e,0,.1,1,2))}function dt(){return tt?!1:u.jwGetState()==n.api.events.state.IDLE||u.jwGetState()==n.api.events.state.PAUSED?s.idlehide?!1:!0:u.jwGetFullscreen()?!1:s.position==n.html5.view.positions.OVER?!1:!0}function d(n,t,i,r){var u;return p?u=document.getElementById(e.id+"_"+n):(r||(r="div"),u=document.createElement(r),f[n]=u,u.id=e.id+"_"+n,t.appendChild(u)),i!==undefined&&_css(u,i),u}function lt(){ft(s.layout.left);ft(s.layout.right,-1);ft(s.layout.center)}function ft(t,i){var f=t.position=="right"?"right":"left",u=n.utils.extend([],t.elements),r;for(i!==undefined&&u.reverse(),r=0;r<u.length;r++)ni(u[r],f)}function gt(){return et++}function ni(n,t){var i,e,s,p,c,r,l;if(n.type=="divider"){o("divider"+gt(),t,!0,undefined,undefined,n.width,n.element);return}switch(n.name){case"play":o("playButton",t,!1);o("pauseButton",t,!0);a("playButton","jwPlay");a("pauseButton","jwPause");break;case"prev":o("prevButton",t,!0);a("prevButton","jwPlaylistPrev");break;case"next":o("nextButton",t,!0);a("nextButton","jwPlaylistNext");break;case"elapsed":o("elapsedText",t,!0);break;case"time":e=u.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:u.skin.getSkinElement("controlbar","timeSliderCapLeft").width;s=u.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:u.skin.getSkinElement("controlbar","timeSliderCapRight").width;i=t=="left"?e:s;p=u.skin.getSkinElement("controlbar","timeSliderRail").width+e+s;c={height:h().height,position:"absolute",top:0,width:p};c[t]=t=="left"?v:y;r=d("timeSlider",f.elements,c);o("timeSliderCapLeft",t,!0,r,t=="left"?0:i);o("timeSliderRail",t,!1,r,i);o("timeSliderBuffer",t,!1,r,i);o("timeSliderProgress",t,!1,r,i);o("timeSliderThumb",t,!1,r,i);o("timeSliderCapRight",t,!0,r,t=="right"?0:i);vt("time");break;case"fullscreen":o("fullscreenButton",t,!1);o("normalscreenButton",t,!0);a("fullscreenButton","jwSetFullscreen",!0);a("normalscreenButton","jwSetFullscreen",!1);break;case"volume":e=u.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;s=u.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:u.skin.getSkinElement("controlbar","volumeSliderCapRight").width;i=t=="left"?e:s;p=u.skin.getSkinElement("controlbar","volumeSliderRail").width+e+s;c={height:h().height,position:"absolute",top:0,width:p};c[t]=t=="left"?v:y;l=d("volumeSlider",f.elements,c);o("volumeSliderCapLeft",t,!0,l,t=="left"?0:i);o("volumeSliderRail",t,!0,l,i);o("volumeSliderProgress",t,!1,l,i);o("volumeSliderCapRight",t,!0,l,t=="right"?0:i);vt("volume");break;case"mute":o("muteButton",t,!1);o("unmuteButton",t,!0);a("muteButton","jwSetMute",!0);a("unmuteButton","jwSetMute",!1);break;case"duration":o("durationText",t,!0)}}function o(t,i,r,e,o,c,l){var a,w,k,b;(u.skin.getSkinElement("controlbar",t)!==undefined||t.indexOf("Text")>0||t.indexOf("divider")===0)&&(a={height:h().height,position:"absolute",display:"block",top:0},(t.indexOf("next")===0||t.indexOf("prev")===0)&&u.jwGetPlaylist().length<2&&(r=!1,a.display="none"),t.indexOf("Text")>0?(t.innerhtml="00:00",a.font=s.fontsize+"px/"+(h().height+1)+"px "+s.font,a.color=s.fontcolor,a.textAlign="center",a.fontWeight=s.fontweight,a.fontStyle=s.fontstyle,a.cursor="default",w=14+3*s.fontsize):t.indexOf("divider")===0?c?isNaN(parseInt(c))||(w=parseInt(c)):l?(k=u.skin.getSkinElement("controlbar",l),k&&(a.background="url("+k.src+") repeat-x center left",w=k.width)):(a.background="url("+u.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",w=u.skin.getSkinElement("controlbar","divider").width):(a.background="url("+u.skin.getSkinElement("controlbar",t).src+") repeat-x center left",w=u.skin.getSkinElement("controlbar",t).width),i=="left"?(a.left=isNaN(o)?v:o,r&&(v+=w)):i=="right"&&(a.right=isNaN(o)?y:o,r&&(y+=w)),n.utils.typeOf(e)=="undefined"&&(e=f.elements),a.width=w,p?_css(f[t],a):(b=d(t,e,a),u.skin.getSkinElement("controlbar",t+"Over")!==undefined&&(b.onmouseover=function(){b.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",t+"Over").src,")"].join("")},b.onmouseout=function(){b.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",t).src,")"].join("")})))}function ti(){u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ii);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,it);u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,pt);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_TIME,g);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,yt);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,kt);u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,ui)}function ii(){ht();lt();bt();at()}function at(){g({id:u.id,duration:u.jwGetDuration(),position:0});it({id:u.id,bufferProgress:0});yt({id:u.id,mute:u.jwGetMute()});pt({id:u.id,newstate:n.api.events.state.IDLE});kt({id:u.id,volume:u.jwGetVolume()})}function a(n,t,i){if(!p&&u.skin.getSkinElement("controlbar",n)!==undefined){var r=f[n];r!==null&&(_css(r,{cursor:"pointer"}),r.onmouseup=t=="fullscreen"?function(n){n.stopPropagation();u.jwSetFullscreen(!u.jwGetFullscreen())}:function(n){n.stopPropagation();i!==null?u[t](i):u[t]()})}}function vt(n){if(!p){var t=f[n+"Slider"];_css(f.elements,{cursor:"pointer"});_css(t,{cursor:"pointer"});t.onmousedown=function(){w=n};t.onmouseup=function(n){n.stopPropagation();ri(n.pageX)};t.onmousemove=function(t){if(w=="time"){rt=!0;var i=t.pageX-l[n+"Slider"].left-window.pageXOffset;_css(f.timeSliderThumb,{left:i})}}}}function ri(t){var f,i,r;rt=!1;w=="time"?(f=t-l.timeSliderRail.left+window.pageXOffset,i=f/l.timeSliderRail.width*c,i<0?i=0:i>c&&(i=c-3),(u.jwGetState()==n.api.events.state.PAUSED||u.jwGetState()==n.api.events.state.IDLE)&&u.jwPlay(),u.jwSeek(i)):w=="volume"&&(f=t-l.volumeSliderRail.left-window.pageXOffset,r=Math.round(f/l.volumeSliderRail.width*100),r<0?r=0:r>100&&(r=100),u.jwGetMute()&&u.jwSetMute(!1),u.jwSetVolume(r));w="none"}function it(n){if(n.bufferPercent!==null&&(nt=n.bufferPercent),l.timeSliderRail){var t=l.timeSliderRail.width,i=isNaN(Math.round(t*nt/100))?0:Math.round(t*nt/100);_css(f.timeSliderBuffer,{width:i})}}function yt(n){n.mute?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function pt(t){t.newstate==n.api.events.state.BUFFERING||t.newstate==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton));ut();t.newstate==n.api.events.state.IDLE?(_hide(f.timeSliderBuffer),_hide(f.timeSliderProgress),_hide(f.timeSliderThumb),g({id:u.id,duration:u.jwGetDuration(),position:0})):(_show(f.timeSliderBuffer),t.newstate!=n.api.events.state.BUFFERING&&(_show(f.timeSliderProgress),_show(f.timeSliderThumb)))}function ui(t){it({bufferPercent:0});g(n.utils.extend(t,{position:0,duration:c}))}function g(n){var i,t,r,u;n.position!==null&&(b=n.position);n.duration!==null&&(c=n.duration);i=b/c;t=l.timeSliderRail;t&&(r=isNaN(Math.round(t.width*i))?0:Math.round(t.width*i),u=r,f.timeSliderProgress&&(f.timeSliderProgress.style.width=r+"px",rt||f.timeSliderThumb&&(f.timeSliderThumb.style.left=u+"px")));f.durationText&&(f.durationText.innerHTML=wt(c));f.elapsedText&&(f.elapsedText.innerHTML=wt(b))}function wt(n){return str="00:00",n>0&&(str=(Math.floor(n/60)<10?"0"+Math.floor(n/60)+":":Math.floor(n/60)+":")+(Math.floor(n%60)<10?"0"+Math.floor(n%60):Math.floor(n%60))),str}function fi(){var r,i,t=document.getElementById(e.id+"_elements").childNodes;for(var n in document.getElementById(e.id+"_elements").childNodes)isNaN(parseInt(n,10))||(t[n].id.indexOf(e.id+"_divider")===0&&i&&i.id.indexOf(e.id+"_divider")===0&&t[n].style.backgroundImage==i.style.backgroundImage?t[n].style.display="none":t[n].id.indexOf(e.id+"_divider")===0&&r&&r.style.display!="none"&&(t[n].style.display="block"),t[n].style.display!="none"&&(i=t[n]),r=t[n])}function bt(){var t,i,r,o,c;return fi(),u.jwGetFullscreen()?(_show(f.normalscreenButton),_hide(f.fullscreenButton)):(_hide(f.normalscreenButton),_show(f.fullscreenButton)),t={width:ot},i={},s.position==n.html5.view.positions.OVER||u.jwGetFullscreen()?(t.left=s.margin,t.width-=2*s.margin,t.top=st-h().height-s.margin,t.height=h().height):t.left=0,r=u.skin.getSkinElement("controlbar","capLeft"),o=u.skin.getSkinElement("controlbar","capRight"),i.left=r?r.width:0,i.width=t.width-i.left-(o?o.width:0),c=u.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:u.skin.getSkinElement("controlbar","timeSliderCapLeft").width,_css(f.timeSliderRail,{width:i.width-v-y,left:c}),f.timeSliderCapRight!==undefined&&_css(f.timeSliderCapRight,{left:c+(i.width-v-y)}),_css(e,t),_css(f.elements,i),_css(f.background,i),ct(),t}function kt(n){if(f.volumeSliderRail!==undefined){var t=isNaN(n.volume/100)?1:n.volume/100,i=parseInt(f.volumeSliderRail.style.width.replace("px",""),10),r=isNaN(Math.round(i*t))?0:Math.round(i*t),o=parseInt(f.volumeSliderRail.style.right.replace("px",""),10),e=u.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(f.volumeSliderProgress,{width:r,left:e});f.volumeSliderCapLeft!==undefined&&_css(f.volumeSliderCapLeft,{left:0})}}function ei(){ht();lt();ct();p=!0;ti();at();e.style.opacity=s.idlehide?0:1}var u=i,s=n.utils.extend({},t,u.skin.getComponentSettings("controlbar"),r);if(s.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[s.position]!="undefined"){n.utils.mapLength(u.skin.getComponentLayout("controlbar"))>0&&(s.layout=u.skin.getComponentLayout("controlbar"));var e,et,v,y,w="none",rt,b,c,nt,ot,st,f={},p=!1,l={},k,tt=!1;return this.getDisplayElement=function(){return e},this.resize=function(t,i){n.utils.cancelAnimation(e);document.getElementById(u.id).onmousemove=ut;ot=t;st=i;ut();var r=bt();return g({id:u.id,duration:c,position:b}),it({id:u.id,bufferPercent:nt}),r},this.show=function(){tt=!1;_show(e)},this.hide=function(){tt=!0;_hide(e)},ei(),this}}}(jwplayer),function(n){n.html5.controller=function(t,i,r,u){function a(n){e.sendEvent(n.type,n)}function s(){try{return f.playlist[f.item].levels[0].file.length>0&&(l||f.state==n.api.events.state.IDLE?(f.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){f.getMedia().play()}),f.addEventListener(n.api.events.JWPLAYER_MEDIA_TIME,function(n){n.position>=f.playlist[f.item].start&&h>=0&&(f.playlist[f.item].start=h,h=-1)}),f.config.repeat&&f.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(ft,25)}),f.getMedia().load(f.playlist[f.item]),l=!1):f.state==n.api.events.state.PAUSED&&f.getMedia().play()),!0}catch(t){e.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function k(){try{if(f.playlist[f.item].levels[0].file.length>0)switch(f.state){case n.api.events.state.PLAYING:case n.api.events.state.BUFFERING:f.getMedia().pause()}return!0}catch(t){e.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function d(t){try{if(f.playlist[f.item].levels[0].file.length>0){typeof t!="number"&&(t=parseFloat(t));switch(f.state){case n.api.events.state.IDLE:h<0&&(h=f.playlist[f.item].start,f.playlist[f.item].start=t);s();break;case n.api.events.state.PLAYING:case n.api.events.state.PAUSED:case n.api.events.state.BUFFERING:f.seek(t)}}return!0}catch(i){e.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function v(){try{return f.playlist[f.item].levels[0].file.length>0&&f.state!=n.api.events.state.IDLE&&f.getMedia().stop(),!0}catch(t){e.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function y(){try{return f.playlist[f.item].levels[0].file.length>0&&(f.config.shuffle?o(p()):f.item+1==f.playlist.length?o(0):o(f.item+1)),f.state!=n.api.events.state.PLAYING&&f.state!=n.api.events.state.BUFFERING&&s(),!0}catch(t){e.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function g(){try{return f.playlist[f.item].levels[0].file.length>0&&(f.config.shuffle?o(p()):f.item===0?o(f.playlist.length-1):o(f.item-1)),f.state!=n.api.events.state.PLAYING&&f.state!=n.api.events.state.BUFFERING&&s(),!0}catch(t){e.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function p(){var n=null;if(f.playlist.length>1)while(n===null)n=Math.floor(Math.random()*f.playlist.length),n==f.item&&(n=null);else n=0;return n}function o(t){f.resetEventListeners();f.addGlobalListener(a);try{if(f.playlist[t].levels[0].file.length>0){var i=f.state;i!==n.api.events.state.IDLE&&v();f.item=t;l=!0;f.setActiveMediaProvider(f.playlist[f.item]);e.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:t});(i==n.api.events.state.PLAYING||i==n.api.events.state.BUFFERING||f.config.chromeless||r.config.autostart===!0)&&s()}return!0}catch(u){e.sendEvent(n.api.events.JWPLAYER_ERROR,u)}return!1}function nt(t){try{switch(typeof t){case"number":f.getMedia().volume(t);break;case"string":f.getMedia().volume(parseInt(t,10))}return!0}catch(i){e.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function tt(t){try{return typeof t=="undefined"?f.getMedia().mute(!f.mute):t.toString().toLowerCase()=="true"?f.getMedia().mute(!0):f.getMedia().mute(!1),!0}catch(i){e.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function it(t,i){try{return f.width=t,f.height=i,c.resize(t,i),e.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:f.width,height:f.height}),!0}catch(r){e.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function rt(t){try{return typeof t=="undefined"?(f.fullscreen=!f.fullscreen,c.fullscreen(!f.fullscreen)):t.toString().toLowerCase()=="true"?(f.fullscreen=!0,c.fullscreen(!0)):(f.fullscreen=!1,c.fullscreen(!1)),e.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:f.width,height:f.height}),e.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:t}),!0}catch(i){e.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function ut(t){try{return v(),f.loadPlaylist(t),o(f.item),!0}catch(i){e.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function ft(){f.resetEventListeners();f.addGlobalListener(a);switch(f.config.repeat.toUpperCase()){case n.html5.controller.repeatoptions.SINGLE:s();break;case n.html5.controller.repeatoptions.ALWAYS:f.item!=f.playlist.length-1||f.config.shuffle?y():(o(0),s());break;case n.html5.controller.repeatoptions.LIST:f.item!=f.playlist.length-1||f.config.shuffle?y():o(0)}}var et=t,f=r,c=u,w=i,l=!0,h=-1,b=f.config.debug!==undefined&&f.config.debug.toString().toLowerCase()=="console",e=new n.html5.eventdispatcher(w.id,b);n.utils.extend(this,e);f.addGlobalListener(a);n.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};this.play=s;this.pause=k;this.seek=d;this.stop=v;this.next=y;this.prev=g;this.item=o;this.setVolume=nt;this.setMute=tt;this.resize=it;this.setFullscreen=rt;this.load=ut}}(jwplayer),function(n){n.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/><\/settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><\/settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/><\/elements><\/component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/><\/elements><\/component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/><\/elements><\/component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/><\/elements><\/component><\/components><\/skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(n){_css=n.utils.css;_hide=function(n){_css(n,{display:"none"})};_show=function(n){_css(n,{display:"block"})};n.html5.display=function(t,i){function it(){r.display=e("div","display");r.display_text=e("div","display_text");r.display.appendChild(r.display_text);r.display_image=e("img","display_image");r.display_image.onerror=function(){_hide(r.display_image)};r.display_image.onload=d;r.display_icon=e("div","display_icon");r.display_iconBackground=e("div","display_iconBackground");r.display.appendChild(r.display_image);r.display_iconBackground.appendChild(r.display_icon);r.display.appendChild(r.display_iconBackground);rt()}function d(){b=r.display_image.naturalWidth;k=r.display_image.naturalHeight;g()}function g(){n.utils.stretch(u.jwGetStretching(),r.display_image,o,f,b,k)}function e(n,t){var i=document.createElement(n);return i.id=u.id+"_jwplayer_"+t,_css(i,v[t].style),i}function rt(){for(var n in r)v[n].click!==undefined&&(r[n].onclick=v[n].click)}function ut(t){typeof t.preventDefault!="undefined"?t.preventDefault():t.returnValue=!1;u.jwGetState()!=n.api.events.state.PLAYING?u.jwPlay():u.jwPause()}function s(n){if(c||!w.icons){y();return}_show(r.display_iconBackground);r.display_icon.style.backgroundImage=["url(",u.skin.getSkinElement("display",n).src,")"].join("");_css(r.display_icon,{display:"block",width:u.skin.getSkinElement("display",n).width,height:u.skin.getSkinElement("display",n).height,top:(u.skin.getSkinElement("display","background").height-u.skin.getSkinElement("display",n).height)/2,left:(u.skin.getSkinElement("display","background").width-u.skin.getSkinElement("display",n).width)/2});u.skin.getSkinElement("display",n+"Over")!==undefined?(r.display_icon.onmouseover=function(){r.display_icon.style.backgroundImage=["url(",u.skin.getSkinElement("display",n+"Over").src,")"].join("")},r.display_icon.onmouseout=function(){r.display_icon.style.backgroundImage=["url(",u.skin.getSkinElement("display",n).src,")"].join("")}):(r.display_icon.onmouseover=null,r.display_icon.onmouseout=null)}function y(){_hide(r.display_icon);_hide(r.display_iconBackground)}function ft(n){c=!0;y();r.display_text.innerHTML=n.error;_show(r.display_text);r.display_text.style.top=(f-r.display_text.getBoundingClientRect().height)/2+"px"}function p(){var n=r.display_image;r.display_image=e("img","display_image");r.display_image.onerror=function(){_hide(r.display_image)};r.display_image.onload=d;r.display.replaceChild(r.display_image,n)}function l(t){(t.type==n.api.events.JWPLAYER_PLAYER_STATE||t.type==n.api.events.JWPLAYER_PLAYLIST_ITEM)&&c&&(c=!1,_hide(r.display_text));h!==undefined&&(clearInterval(h),h=null,n.utils.animations.rotate(r.display_icon,0));switch(u.jwGetState()){case n.api.events.state.BUFFERING:s("bufferIcon");a=0;h=setInterval(function(){a+=nt;n.utils.animations.rotate(r.display_icon,a%360)},tt);s("bufferIcon");break;case n.api.events.state.PAUSED:u.jwGetPlaylist()[u.jwGetItem()].provider!="sound"&&_css(r.display_image,{background:"transparent no-repeat center center"});s("playIcon");break;case n.api.events.state.IDLE:u.jwGetPlaylist()[u.jwGetItem()].image?(_css(r.display_image,{display:"block"}),r.display_image.src=n.utils.getAbsolutePath(u.jwGetPlaylist()[u.jwGetItem()].image)):p();s("playIcon");break;default:u.jwGetMute()&&w.showmute?(u.jwGetPlaylist()[u.jwGetItem()].provider!="sound"&&p(),s("muteIcon")):(u.jwGetPlaylist()[u.jwGetItem()].provider!="sound"&&p(),_hide(r.display_iconBackground),_hide(r.display_icon))}}var w=n.utils.extend({},{icons:!0},i),u=t,r={},o,f,b,k,a,h,c,nt=u.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(u.skin.getComponentSettings("display").bufferrotation,10),tt=u.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(u.skin.getComponentSettings("display").bufferinterval,10),v={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:ut},display_icon:{style:{cursor:"pointer",position:"absolute",top:(u.skin.getSkinElement("display","background").height-u.skin.getSkinElement("display","playIcon").height)/2,left:(u.skin.getSkinElement("display","background").width-u.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(f-u.skin.getSkinElement("display","background").height)/2,left:(o-u.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",u.skin.getSkinElement("display","background").src,")"].join(""),width:u.skin.getSkinElement("display","background").width,height:u.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:o,height:f,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};return u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,l),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,l),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,l),u.jwAddEventListener(n.api.events.JWPLAYER_ERROR,ft),it(),this.getDisplayElement=function(){return r.display},this.resize=function(n,t){o=n;f=t;_css(r.display,{width:n,height:t});_css(r.display_text,{width:n-10,top:(f-r.display_text.getBoundingClientRect().height)/2});_css(r.display_iconBackground,{top:(f-u.skin.getSkinElement("display","background").height)/2,left:(o-u.skin.getSkinElement("display","background").width)/2});g();l({})},this.show=function(){_show(r.display_icon);_show(r.display_iconBackground)},this.hide=function(){y()},this}}(jwplayer),function(n){_css=n.utils.css;n.html5.dock=function(t,i){function c(){return{align:n.html5.view.positions.RIGHT}}function h(i,f){var l,a;if(o=i,s=f,u.length>0){var h=10,v=i-t.skin.getSkinElement("dock","button").width-h,c=h,y=-1;for(e.align==n.html5.view.positions.LEFT&&(y=1,v=h),l=0;l<u.length;l++)a=Math.floor(c/f),c+t.skin.getSkinElement("dock","button").height+h>(a+1)*f&&(c=(a+1)*f+h,a=Math.floor(c/f)),r[u[l]].div.style.top=c%f+"px",r[u[l]].div.style.left=v+(t.skin.getSkinElement("dock","button").width+h)*a*y+"px",c+=t.skin.getSkinElement("dock","button").height+h}}var e=n.utils.extend({},c(),i);if(e.align!="FALSE"){var r={},u=[],o,s,f=document.createElement("div");return f.id=t.id+"_jwplayer_dock",this.getDisplayElement=function(){return f},this.setButton=function(i,e,c,l){!e&&r[i]?(n.utils.arrays.remove(u,i),f.removeChild(r[i].div),delete r[i]):e&&(r[i]||(r[i]={}),r[i].handler=e,r[i].outGraphic=c,r[i].overGraphic=l,r[i].div||(u.push(i),r[i].div=document.createElement("div"),r[i].div.style.position="relative",f.appendChild(r[i].div),r[i].div.appendChild(document.createElement("img")),r[i].div.childNodes[0].style.position="absolute",r[i].div.childNodes[0].style.left=0,r[i].div.childNodes[0].style.top=0,r[i].div.childNodes[0].style.zIndex=10,r[i].div.childNodes[0].style.cursor="pointer",r[i].div.appendChild(document.createElement("img")),r[i].div.childNodes[1].style.position="absolute",r[i].div.childNodes[1].style.left=0,r[i].div.childNodes[1].style.top=0,t.skin.getSkinElement("dock","button")&&(r[i].div.childNodes[1].src=t.skin.getSkinElement("dock","button").src),r[i].div.childNodes[1].style.zIndex=9,r[i].div.childNodes[1].style.cursor="pointer",r[i].div.onmouseover=function(){r[i].overGraphic&&(r[i].div.childNodes[0].src=r[i].overGraphic);t.skin.getSkinElement("dock","buttonOver")&&(r[i].div.childNodes[1].src=t.skin.getSkinElement("dock","buttonOver").src)},r[i].div.onmouseout=function(){r[i].outGraphic&&(r[i].div.childNodes[0].src=r[i].outGraphic);t.skin.getSkinElement("dock","button")&&(r[i].div.childNodes[1].src=t.skin.getSkinElement("dock","button").src)},r[i].overGraphic&&(r[i].div.childNodes[0].src=r[i].overGraphic),r[i].outGraphic&&(r[i].div.childNodes[0].src=r[i].outGraphic),t.skin.getSkinElement("dock","button")&&(r[i].div.childNodes[1].src=t.skin.getSkinElement("dock","button").src)),e&&(r[i].div.onclick=function(u){u.preventDefault();n(t.id).callback(i);r[i].overGraphic&&(r[i].div.childNodes[0].src=r[i].overGraphic);t.skin.getSkinElement("dock","button")&&(r[i].div.childNodes[1].src=t.skin.getSkinElement("dock","button").src)}));h(o,s)},this.resize=h,this.show=function(){_css(f,{display:"block"})},this.hide=function(){_css(f,{display:"none"})},this}}}(jwplayer),function(n){n.html5.eventdispatcher=function(t,i){var r=new n.events.eventdispatcher(i);n.utils.extend(this,r);this.sendEvent=function(i,u){u===undefined&&(u={});n.utils.extend(u,{id:t,version:n.version,type:i});r.sendEvent(i,u)}}}(jwplayer),function(n){var t={prefix:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",margin:8,out:.5,over:1,timeout:3,hide:!0,position:"bottom-left"};_css=n.utils.css;n.html5.logo=function(i,r){function h(){c();l();a()}function c(){if(t.prefix){var f=i.version.split(/\W/).splice(0,2).join("/");t.prefix.indexOf(f)<0&&(t.prefix+=f+"/")}r.position==n.html5.view.positions.OVER&&(r.position=t.position);u=n.utils.extend({},t)}function l(){(f=document.createElement("img"),f.id=e.id+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,p());e.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,k);s()},u.file)&&(f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file)}function a(){u.link?(f.onmouseover=y,f.onmouseout=s,f.onclick=v):this.mouseEnabled=!1}function v(n){typeof n!="undefined"&&n.stopPropagation();e.jwPause();e.jwSetFullscreen(!1);u.link&&window.open(u.link,"_blank");return}function s(){u.link&&(f.style.opacity=u.out);return}function y(){u.hide&&(f.style.opacity=u.over);return}function p(){var n={textDecoration:"none",position:"absolute",cursor:"pointer"},t,i;n.display=u.hide?"none":"block";t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=u.margin;return n}function w(){u.hide&&(f.style.display="block",f.style.opacity=0,n.utils.fadeTo(f,u.out,.1,parseFloat(f.style.opacity)),o=setTimeout(function(){b()},u.timeout*1e3))}function b(){u.hide&&n.utils.fadeTo(f,0,.1,parseFloat(f.style.opacity))}function k(t){t.newstate==n.api.events.state.BUFFERING&&(clearTimeout(o),w())}var e=i,o,u,f;if(h(),u.file)return this.resize=function(){},this.getDisplayElement=function(){return f},this}}(jwplayer),function(n){var t={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},i=n.utils.css;n.html5.mediavideo=function(r,u){function et(){}function c(){}function s(n){t[n.type]&&l(t[n.type])}function l(t){var r,i;if(!nt&&(b&&(t=n.api.events.state.IDLE),t!=n.api.events.state.PAUSED||h!=n.api.events.state.IDLE)){if(t==n.api.events.state.PLAYING&&h==n.api.events.state.IDLE){l(n.api.events.state.BUFFERING);o.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:e.buffer});ot();return}h!=t&&(r=h,e.state=t,h=t,i=!1,t==n.api.events.state.IDLE&&(st(),e.position>=e.duration&&(e.position>0||e.duration>0)&&(i=!0),f.style.display=="none"||e.config.chromeless||(f.style.display="none")),o.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:r,newstate:t}),i&&o.sendEvent(n.api.events.JWPLAYER_MEDIA_COMPLETE));b=!1}}function it(t){var i={height:t.target.videoHeight,width:t.target.videoWidth,duration:Math.round(t.target.duration*10)/10};(e.duration===0||isNaN(e.duration))&&(e.duration=Math.round(t.target.duration*10)/10);e.playlist[e.item]=n.utils.extend(e.playlist[e.item],i);o.sendEvent(n.api.events.JWPLAYER_MEDIA_META,{metadata:i})}function tt(t){if(!b){if(t!==undefined&&t.target!==undefined&&((e.duration===0||isNaN(e.duration))&&(e.duration=Math.round(t.target.duration*10)/10),!k&&f.readyState>0&&l(n.api.events.state.PLAYING),h==n.api.events.state.PLAYING)){if(!k&&f.readyState>0){k=!0;try{f.currentTime=e.playlist[e.item].start}catch(i){}f.volume=e.volume/100;f.muted=e.mute}e.position=Math.round(t.target.currentTime*10)/10;o.sendEvent(n.api.events.JWPLAYER_MEDIA_TIME,{position:t.target.currentTime,duration:t.target.duration})}rt(t)}}function ot(){p===!1&&h==n.api.events.state.BUFFERING&&(o.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),p=!0)}function vt(){var n=(v[v.length-1]-v[0])/v.length;ft=setTimeout(function(){a||rt({lengthComputable:!0,loaded:1,total:1})},n*10)}function rt(t){var i,r;t!==undefined&&t.lengthComputable&&t.total?(lt(),i=t.loaded/t.total*100,r=i/100*(e.duration-f.currentTime),50<i&&!a&&(clearTimeout(ft),vt())):f.buffered!==undefined&&f.buffered.length>0&&(maxBufferIndex=0,maxBufferIndex>=0&&(i=f.buffered.end(maxBufferIndex)/f.duration*100,r=f.buffered.end(maxBufferIndex)-f.currentTime));ot();a||(i==100&&a===!1&&(a=!0),i!==null&&i>e.buffer&&(e.buffer=Math.round(i),o.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(i)})))}function yt(){w===null&&(w=setInterval(function(){tt()},100))}function st(){clearInterval(w);w=null}function pt(t){var i="There was an error: ",r;if(t.target.error&&t.target.tagName.toLowerCase()=="video"||t.target.parentNode.error&&t.target.parentNode.tagName.toLowerCase()=="video"){r=t.target.error===undefined?t.target.parentNode.error:t.target.error;switch(r.code){case r.MEDIA_ERR_ABORTED:i="You aborted the video playback: ";break;case r.MEDIA_ERR_NETWORK:i="A network error caused the video download to fail part-way: ";break;case r.MEDIA_ERR_DECODE:i="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case r.MEDIA_ERR_SRC_NOT_SUPPORTED:i="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:i="An unknown error occurred: "}}else if(t.target.tagName.toLowerCase()=="source"){if(y--,y>0)return;i="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{n.utils.log("Erroneous error received. Continuing...");return}ct();i+=ht();nt=!0;o.sendEvent(n.api.events.JWPLAYER_ERROR,{error:i});return}function ht(){var t="",i,r,u;for(i in g.levels)r=g.levels[i],u=f.ownerDocument.createElement("source"),t+=n.utils.getAbsolutePath(r.file),i<g.levels.length-1&&(t+=", ");return t}function ct(){var i,t;for(f.pause(),f.removeAttribute("src"),i=f.getElementsByTagName("source"),t=0;t<i.length;t++)f.removeChild(i[t]);typeof f.load=="function"&&f.load();st();e.position=0;b=!0;l(n.api.events.state.IDLE)}function lt(){var n=(new Date).getTime();v.push(n)}function at(n){switch(n.provider){case"youtube":bt(n);break;default:wt(n,document.createElement("video"))}}function wt(t,i){var h,u,r,s,c,l;for(e.duration=t.duration,d=!1,g=t,i.preload="none",i.setAttribute("x-webkit-airplay","allow"),nt=!1,y=0,h=0;h<t.levels.length;h++)u=t.levels[h],s=n.utils.extension(u.file),u.type===undefined?n.utils.extensionmap[s]!==undefined&&n.utils.extensionmap[s].html5!==undefined&&(r=n.utils.extensionmap[s].html5):r=u.type,(!r||i.canPlayType(r)||n.utils.isLegacyAndroid()&&s.match(/m4v|mp4/))&&(c=f.ownerDocument.createElement("source"),c.src=n.utils.getAbsolutePath(u.file),r&&!n.utils.isLegacyAndroid()&&(c.type=r),y++,i.appendChild(c));y===0&&(nt=!0,o.sendEvent(n.api.events.JWPLAYER_ERROR,{error:"The media could not be loaded because the format is not supported by your browser: "+ht()}));e.config.chromeless&&(i.poster=n.utils.getAbsolutePath(t.image),i.controls="controls");i.style.top=f.style.top;i.style.left=f.style.left;i.style.width=f.style.width;i.style.height=f.style.height;i.style.zIndex=f.style.zIndex;i.onload=et;i.volume=0;f.parentNode.replaceChild(i,f);i.id=f.id;f=i;for(l in ut)f.addEventListener(l,function(n){n.target.parentNode!==null&&ut[n.type](n)},!0)}function bt(n){var i=n.levels[0].file,t=document.createElement("object"),e,o,u,s,h,c;i=["http://www.youtube.com/v/",kt(i),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");e={movie:i,allowFullScreen:"true",allowscriptaccess:"always"};for(o in e)u=document.createElement("param"),u.name=o,u.value=e[o],t.appendChild(u);s=document.createElement("embed");h={src:i,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(r.id).style.width,height:document.getElementById(r.id).style.height};for(c in h)s[c]=h[c];t.appendChild(s);t.style.position=f.style.position;t.style.top=f.style.top;t.style.left=f.style.left;t.style.width=document.getElementById(r.id).style.width;t.style.height=document.getElementById(r.id).style.height;t.style.zIndex=2147483e3;f.parentNode.replaceChild(t,f);t.id=f.id;f=t;d=!0}function kt(n){for(var r=n.split(/\?|\#\!/),t="",i=0;i<r.length;i++)r[i].substr(0,2)=="v="&&(t=r[i].substr(2));return t==""&&(t=n.indexOf("/v/")>=0?n.substr(n.indexOf("/v/")+3):n.indexOf("youtu.be")>=0?n.substr(n.indexOf("youtu.be/")+9):n),t.indexOf("?")>-1&&(t=t.substr(0,t.indexOf("?"))),t.indexOf("&")>-1&&(t=t.substr(0,t.indexOf("&"))),t}var ut={abort:c,canplay:s,canplaythrough:s,durationchange:it,emptied:c,ended:s,error:pt,loadeddata:it,loadedmetadata:it,loadstart:s,pause:s,play:tt,playing:s,progress:rt,ratechange:c,seeked:s,seeking:s,stalled:s,suspend:s,timeupdate:tt,volumechange:c,waiting:s,canshowcurrentframe:c,dataunavailable:c,empty:c,load:et,loadedfirstframe:c},o=new n.html5.eventdispatcher;n.utils.extend(this,o);var e=r,f=u,p,a,h=n.api.events.state.IDLE,w=null,b,k=!1,d=!1,g,y,v=[],ft,nt=!1;return this.getDisplayElement=function(){return f},this.play=function(){h!=n.api.events.state.PLAYING&&(f.style.display!="block"&&(f.style.display="block"),f.play(),yt(),p&&l(n.api.events.state.PLAYING))},this.pause=function(){f.pause();l(n.api.events.state.PAUSED)},this.seek=function(n){e.duration===0||isNaN(e.duration)||e.position===0||isNaN(e.position)||(f.currentTime=n,f.play())},this.stop=ct,this.volume=function(t){f.volume=t/100;e.volume=t;o.sendEvent(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(t)})},this.mute=function(t){f.muted=t;e.mute=t;o.sendEvent(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t})},this.resize=function(t,r){!1&&i(f,{width:t,height:r});o.sendEvent(n.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:e.fullscreen,width:t,hieght:r})},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(e.config.width,e.config.height)},this.load=function(t){at(t);o.sendEvent(n.api.events.JWPLAYER_MEDIA_LOADED);p=!1;a=!1;k=!1;e.config.chromeless||d||(v=[],lt(),l(n.api.events.state.BUFFERING),setTimeout(function(){tt()},25))},this.hasChrome=function(){return d},this.embed=at,this}}(jwplayer),function(n){var t=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];n.html5.model=function(i,r,u){function ut(){var n=null;if(f.playlist.length>1)while(n===null)n=Math.floor(Math.random()*f.playlist.length),n==f.item&&(n=null);else n=0;return n}function ft(t){t.type==n.api.events.JWPLAYER_MEDIA_LOADED&&(p=o.getDisplayElement());a.sendEvent(t.type,t)}var rt=i,p=r,f={id:p.id,playlist:[],state:n.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:!1,fullscreen:!1,repeat:"none",stretching:n.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},o,a=new n.html5.eventdispatcher,s,g,c,h,l,nt,w,v,y,b,k,tt,e,d,it;n.utils.extend(f,a);for(s in u){typeof u[s]=="string"&&(g=/color$/.test(s)?"color":null,u[s]=n.utils.typechecker(u[s],g));c=f.config;h=s.split(".");for(l in h)l==h.length-1?c[h[l]]=u[s]:(c[h[l]]===undefined&&(c[h[l]]={}),c=c[h[l]])}for(nt in t)w=t[nt],f[w]=f.config[w];if(v=["display","logo","controlbar","dock"].concat([]),f.plugins!==undefined&&typeof f.plugins=="string"){y=f.plugins.split(",");for(b in y)typeof y[b]=="string"&&v.push(y[b].replace(/^\s+|\s+$/g,""))}if(typeof f.config.chromeless=="undefined"&&n.utils.isIOS()&&(f.config.chromeless=!0),f.config.chromeless&&(v=["logo"],(f.config.repeat===undefined||f.config.repeat=="none")&&(f.config.repeat="list")),f.plugins={order:v,config:{},object:{}},typeof f.config.components!="undefined")for(k in f.config.components)f.plugins.config[k]=f.config.components[k];for(tt in f.plugins.order)e=f.plugins.order[tt],d=f.config[e]===undefined?{}:f.config[e],f.plugins.config[e]=f.plugins.config[e]===undefined?d:n.utils.extend(f.plugins.config[e],d),f.plugins.config[e].position=typeof f.plugins.config[e].position=="undefined"?n.html5.view.positions.OVER:f.plugins.config[e].position.toString().toUpperCase();return typeof f.plugins.config.dock!="undefined"&&(typeof f.plugins.config.dock!="object"&&(it=f.plugins.config.dock.toString().toUpperCase(),f.plugins.config.dock={position:it}),typeof f.plugins.config.dock.position!="undefined"&&(f.plugins.config.dock.align=f.plugins.config.dock.position,f.plugins.config.dock.position=n.html5.view.positions.OVER)),f.loadPlaylist=function(arg,ready){var input,config;if(typeof arg=="string")try{input=eval(arg)}catch(err){input=arg}else input=arg;switch(n.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input}}f.playlist=new n.html5.playlist(config);f.config.shuffle?f.item=ut():(f.config.item>=f.playlist.length?f.config.item=f.playlist.length-1:f.config.item<0&&(f.config.item=0),f.item=f.config.item);ready||a.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:f.playlist});f.setActiveMediaProvider(f.playlist[f.item])},f.setActiveMediaProvider=function(t){return o!==undefined&&o.resetEventListeners(),o=new n.html5.mediavideo(f,p),o.addGlobalListener(ft),f.config.chromeless&&o.load(t),!0},f.getMedia=function(){return o},f.seek=function(t){return a.sendEvent(n.api.events.JWPLAYER_MEDIA_SEEK,{position:f.position,offset:t}),o.seek(t)},f.setupPlugins=function(){var i,t;for(i in f.plugins.order)try{t=f.plugins.order[i];n.html5[t]!==undefined?f.plugins.object[t]=new n.html5[t](rt,f.plugins.config[t]):f.plugins.order.splice(i,i+1)}catch(r){n.utils.log("Could not setup "+t)}},f}}(jwplayer),function(n){n.html5.playlist=function(t){var i=[],r;if(t.playlist&&t.playlist instanceof Array&&t.playlist.length>0)for(r in t.playlist)isNaN(parseInt(r))||i.push(new n.html5.playlistitem(t.playlist[r]));else i.push(new n.html5.playlistitem(t));return i}}(jwplayer),function(n){function t(t){var i,r,u;if(n.utils.isYouTube(t.file))return"youtube";if(i=n.utils.extension(t.file),i&&n.utils.extensionmap[i]?r=n.utils.extensionmap[i].html5:t.type&&(r=t.type),r){if(u=r.split("/")[0],u=="audio")return"sound";if(u=="video")return u}return""}n.html5.playlistitem=function(i){var r=n.utils.extend({},{author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},i);return r.type&&(r.provider=r.type,delete r.type),r.levels.length===0&&(r.levels[0]=new n.html5.playlistitemlevel(r)),r.provider=r.provider?r.provider.toLowerCase():t(r.levels[0]),r}}(jwplayer),function(n){n.html5.playlistitemlevel=function(n){var t={file:"",streamer:"",bitrate:0,width:0};for(var i in t)n[i]!==undefined&&(t[i]=n[i]);return t}}(jwplayer),function(n){n.html5.skin=function(){var t={},i=!1;this.load=function(r,u){new n.html5.skinloader(r,function(n){i=!0;t=n;u()},function(){new n.html5.skinloader("",function(n){i=!0;t=n;u()})})};this.getSkinElement=function(r,u){if(i)try{return t[r].elements[u]}catch(f){n.utils.log("No such skin component / element: ",[r,u])}return null};this.getComponentSettings=function(n){return i?t[n].settings:null};this.getComponentLayout=function(n){return i?t[n].layout:null}}}(jwplayer),function(n){n.html5.skinloader=function(t,i,r){function v(){typeof f!="string"||f===""?e(n.html5.defaultSkin().xml):n.utils.ajax(n.utils.getAbsolutePath(f),function(t){try{if(t.responseXML!==null){e(t.responseXML);return}}catch(i){}e(n.html5.defaultSkin().xml)},function(){e(n.html5.defaultSkin().xml)})}function e(t){var o=t.getElementsByTagName("component"),f,i,ut,g,a,v,p,c,w,nt,b,r,k,tt,it,e,l,d,rt;if(o.length!==0)for(f=0;f<o.length;f++){for(i=o[f].getAttribute("name"),ut={settings:{},elements:{},layout:{}},u[i]=ut,g=o[f].getElementsByTagName("elements")[0].getElementsByTagName("element"),a=0;a<g.length;a++)y(g[a],i);if(v=o[f].getElementsByTagName("settings")[0],v!==undefined&&v.childNodes.length>0)for(p=v.getElementsByTagName("setting"),c=0;c<p.length;c++){var ft=p[c].getAttribute("name"),et=p[c].getAttribute("value"),ot=/color$/.test(ft)?"color":null;u[i].settings[ft]=n.utils.typechecker(et,ot)}if(w=o[f].getElementsByTagName("layout")[0],w!==undefined&&w.childNodes.length>0)for(nt=w.getElementsByTagName("group"),b=0;b<nt.length;b++){for(r=nt[b],u[i].layout[r.getAttribute("position")]={elements:[]},k=0;k<r.attributes.length;k++)tt=r.attributes[k],u[i].layout[r.getAttribute("position")][tt.name]=tt.value;for(it=r.getElementsByTagName("*"),e=0;e<it.length;e++){for(l=it[e],u[i].layout[r.getAttribute("position")].elements.push({type:l.tagName}),d=0;d<l.attributes.length;d++)rt=l.attributes[d],u[i].layout[r.getAttribute("position")].elements[e][rt.name]=rt.value;u[i].layout[r.getAttribute("position")].elements[e].name===undefined&&(u[i].layout[r.getAttribute("position")].elements[e].name=l.tagName)}}h=!1;s()}}function s(){clearInterval(o);c||(o=setInterval(function(){p()},100))}function y(t,i){var r=new Image,l=t.getAttribute("name"),e=t.getAttribute("src"),o,h,v;e.indexOf("data:image/png;base64,")===0?o=e:(h=n.utils.getAbsolutePath(f),v=h.substr(0,h.lastIndexOf("/")),o=[v,i,e].join("/"));u[i].elements[l]={height:0,width:0,src:"",ready:!1};r.onload=function(){w(r,l,i)};r.onerror=function(){c=!0;s();a()};r.src=o}function p(){var n,t;for(n in u)if(n!="properties")for(t in u[n].elements)if(!u[n].elements[t].ready)return;h===!1&&(clearInterval(o),l(u))}function w(n,t,i){u[i].elements[t].height=n.height;u[i].elements[t].width=n.width;u[i].elements[t].src=n.src;u[i].elements[t].ready=!0;s()}var u={},l=i,a=r,h=!0,o,f=t,c=!1;v()}}(jwplayer),function(n){n.html5.api=function(t,i){function c(){f.state==n.api.events.state.PLAYING||f.state==n.api.events.state.BUFFERING?u.pause():u.play()}function e(n){return function(){return f[n]}}function s(n,t,i){return function(){var r=f.plugins.object[n];r&&r[t]&&typeof r[t]=="function"&&r[t].apply(r,i)}}function l(t,i,u){return function(){t.loadPlaylist(t.config,!0);t.setupPlugins();i.setup(t.getMedia().getDisplayElement());var f={id:r.id,version:r.version};u.sendEvent(n.api.events.JWPLAYER_READY,f);playerReady!==undefined&&playerReady(f);window[t.config.playerReady]!==undefined&&window[t.config.playerReady](f);t.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:t.playlist});u.item(t.item)}}var r={},o=document.createElement("div");t.parentNode.replaceChild(o,t);o.id=t.id;r.version=n.version;r.id=o.id;var f=new n.html5.model(r,o,i),h=new n.html5.view(r,o,f),u=new n.html5.controller(r,o,f,h);return r.skin=new n.html5.skin,r.jwPlay=function(n){typeof n=="undefined"?c():n.toString().toLowerCase()=="true"?u.play():u.pause()},r.jwPause=function(n){typeof n=="undefined"?c():n.toString().toLowerCase()=="true"?u.pause():u.play()},r.jwStop=u.stop,r.jwSeek=u.seek,r.jwPlaylistItem=u.item,r.jwPlaylistNext=u.next,r.jwPlaylistPrev=u.prev,r.jwResize=u.resize,r.jwLoad=u.load,r.jwGetItem=e("item"),r.jwGetPosition=e("position"),r.jwGetDuration=e("duration"),r.jwGetBuffer=e("buffer"),r.jwGetWidth=e("width"),r.jwGetHeight=e("height"),r.jwGetFullscreen=e("fullscreen"),r.jwSetFullscreen=u.setFullscreen,r.jwGetVolume=e("volume"),r.jwSetVolume=u.setVolume,r.jwGetMute=e("mute"),r.jwSetMute=u.setMute,r.jwGetStretching=e("stretching"),r.jwGetState=e("state"),r.jwGetVersion=function(){return r.version},r.jwGetPlaylist=function(){return f.playlist},r.jwGetPlaylistIndex=r.jwGetItem,r.jwAddEventListener=u.addEventListener,r.jwRemoveEventListener=u.removeEventListener,r.jwSendEvent=u.sendEvent,r.jwDockSetButton=function(n,t,i,r){f.plugins.object.dock&&f.plugins.object.dock.setButton&&f.plugins.object.dock.setButton(n,t,i,r)},r.jwShowControlbar=s("controlbar","show"),r.jwHideControlbar=s("controlbar","hide"),r.jwShowDock=s("dock","show"),r.jwHideDock=s("dock","hide"),r.jwShowDisplay=s("display","show"),r.jwHideDisplay=s("display","hide"),r.jwGetLevel=function(){},r.jwGetBandwidth=function(){},r.jwGetLockState=function(){},r.jwLock=function(){},r.jwUnlock=function(){},f.config.chromeless?setTimeout(l(f,h,u),25):r.skin.load(f.config.skin,l(f,h,u)),r}}(jwplayer)),function(){var t,n;t=this.jQuery||window.jQuery;n=t(window);t.fn.stick_in_parent=function(i){var s,a,e,v,h,c,y,r,u,o,l,f;for(i==null&&(i={}),f=i.sticky_class,c=i.inner_scrolling,l=i.recalc_every,o=i.parent,u=i.offset_top,r=i.spacer,e=i.bottoming,u==null&&(u=0),o==null&&(o=void 0),c==null&&(c=!0),f==null&&(f="is_stuck"),s=t(document),e==null&&(e=!0),v=function(i,h,a,v,y,p,w,b){var it,ot,nt,et,st,d,g,rt,ut,ft,k,tt;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),st=s.height(),g=i.parent(),o!=null&&(g=g.closest(o)),!g.length)throw"failed to find stick parent";if(nt=!1,it=!1,k=r!=null?r&&i.closest(r):t("<div />"),k&&k.css("position",i.css("position")),rt=function(){var n,t,e;if(!b)return st=s.height(),n=parseInt(g.css("border-top-width"),10),t=parseInt(g.css("padding-top"),10),h=parseInt(g.css("padding-bottom"),10),a=g.offset().top+n+t,v=g.height(),nt&&(nt=!1,it=!1,r==null&&(i.insertAfter(k),k.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(f),e=!0),y=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-u,p=i.outerHeight(!0),w=i.css("float"),k&&k.css({width:i.outerWidth(!0),height:p,display:i.css("display"),"vertical-align":i.css("vertical-align"),float:w}),e?tt():void 0},rt(),p!==v){et=void 0;d=u;ft=l;tt=function(){var o,ht,ut,t,tt,ot;if(!b)return ut=!1,ft!=null&&(ft-=1,ft<=0&&(ft=l,rt(),ut=!0)),ut||s.height()===st||(rt(),ut=!0),t=n.scrollTop(),et!=null&&(ht=t-et),et=t,nt?(e&&(tt=t+p+d>v+a,it&&!tt&&(it=!1,i.css({position:"fixed",bottom:"",top:d}).trigger("sticky_kit:unbottom"))),t<y&&(nt=!1,d=u,r==null&&((w==="left"||w==="right")&&i.insertAfter(k),k.detach()),o={position:"",width:"",top:""},i.css(o).removeClass(f).trigger("sticky_kit:unstick")),c&&(ot=n.height(),p+u>ot&&(it||(d-=ht,d=Math.max(ot-p,d),d=Math.min(u,d),nt&&i.css({top:d+"px"}))))):t>y&&(nt=!0,o={position:"fixed",top:d},o.width=i.css("box-sizing")==="border-box"?i.outerWidth()+"px":i.width()+"px",i.css(o).addClass(f),r==null&&(i.after(k),(w==="left"||w==="right")&&k.append(i)),i.trigger("sticky_kit:stick")),nt&&e&&(tt==null&&(tt=t+p+d>v+a),!it&&tt)?(it=!0,g.css("position")==="static"&&g.css({position:"relative"}),i.css({position:"absolute",bottom:h,top:"auto"}).trigger("sticky_kit:bottom")):void 0};ut=function(){return rt(),tt()};ot=function(){return b=!0,n.off("touchmove",tt),n.off("scroll",tt),n.off("resize",ut),t(document.body).off("sticky_kit:recalc",ut),i.off("sticky_kit:detach",ot),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),g.position("position",""),nt?(r==null&&((w==="left"||w==="right")&&i.insertAfter(k),k.remove()),i.removeClass(f)):void 0};n.on("touchmove",tt);n.on("scroll",tt);n.on("resize",ut);t(document.body).on("sticky_kit:recalc",ut);i.on("sticky_kit:detach",ot);return setTimeout(tt,0)}}},h=0,y=this.length;h<y;h++)a=this[h],v(t(a));return this}}.call(this),function(n,t,i){function r(i){var r=t.console;e[i]||(e[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function f(t,i,u,f){if(Object.defineProperty)try{Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get:function(){return r(f),u},set:function(n){r(f);u=n}});return}catch(e){}n._definePropertyBroken=!0;t[i]=u}var e,h,c,y,p,tt,it,rt,ut;n.migrateVersion="1.4.1";e={};n.migrateWarnings=[];t.console&&t.console.log&&t.console.log("JQMIGRATE: Migrate is installed"+(n.migrateMute?"":" with logging active")+", version "+n.migrateVersion);n.migrateTrace===i&&(n.migrateTrace=!0);n.migrateReset=function(){e={};n.migrateWarnings.length=0};document.compatMode==="BackCompat"&&r("jQuery is not compatible with Quirks Mode");var l=n("<input/>",{size:1}).attr("size")&&n.attrFn,a=n.attr,ft=n.attrHooks.value&&n.attrHooks.value.get||function(){return null},et=n.attrHooks.value&&n.attrHooks.value.set||function(){return i},ot=/^(?:input|button)$/i,st=/^[238]$/,ht=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ct=/^(?:checked|selected)$/i;f(n,"attrFn",l||{},"jQuery.attrFn is deprecated");n.attr=function(t,u,f,e){var o=u.toLowerCase(),s=t&&t.nodeType;return e&&(a.length<4&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!st.test(s)&&(l?u in l:n.isFunction(n.fn[u])))?n(t)[u](f):(u==="type"&&f!==i&&ot.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!n.attrHooks[o]&&ht.test(o)&&(n.attrHooks[o]={get:function(t,r){var u,f=n.prop(t,r);return f===!0||typeof f!="boolean"&&(u=t.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():i},set:function(t,i,r){var u;return i===!1?n.removeAttr(t,r):(u=n.propFix[r]||r,u in t&&(t[u]=!0),t.setAttribute(r,r.toLowerCase())),r}},ct.test(o)&&r("jQuery.fn.attr('"+o+"') might use property instead of attribute")),a.call(n,t,u,f))};n.attrHooks.value={get:function(n,t){var i=(n.nodeName||"").toLowerCase();return i==="button"?ft.apply(this,arguments):(i!=="input"&&i!=="option"&&r("jQuery.fn.attr('value') no longer gets properties"),t in n?n.value:null)},set:function(n,t){var i=(n.nodeName||"").toLowerCase();if(i==="button")return et.apply(this,arguments);i!=="input"&&i!=="option"&&r("jQuery.fn.attr('value', val) no longer sets properties");n.value=t}};var o,u,v=n.fn.init,s=n.find,lt=n.parseJSON,at=/^\s*</,vt=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,yt=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,pt=/^([^<]*)(<[\w\W]+>)([^>]*)$/;n.fn.init=function(t,u,f){var o,e;return t&&typeof t=="string"&&!n.isPlainObject(u)&&(o=pt.exec(n.trim(t)))&&o[0]&&(at.test(t)||r("$(html) HTML strings must start with '<' character"),o[3]&&r("$(html) HTML text after last tag is ignored"),o[0].charAt(0)==="#"&&(r("HTML string cannot start with a '#' character"),n.error("JQMIGRATE: Invalid selector string (XSS)")),u&&u.context&&u.context.nodeType&&(u=u.context),n.parseHTML)?v.call(this,n.parseHTML(o[2],u&&u.ownerDocument||u||document,!0),u,f):(e=v.apply(this,arguments),t&&t.selector!==i?(e.selector=t.selector,e.context=t.context):(e.selector=typeof t=="string"?t:"",t&&(e.context=t.nodeType?t:u||document)),e)};n.fn.init.prototype=n.fn;n.find=function(n){var t=Array.prototype.slice.call(arguments);if(typeof n=="string"&&vt.test(n))try{document.querySelector(n)}catch(i){n=n.replace(yt,function(n,t,i,r){return"["+t+i+'"'+r+'"]'});try{document.querySelector(n);r("Attribute selector with '#' must be quoted: "+t[0]);t[0]=n}catch(u){r("Attribute selector with '#' was not fixed: "+t[0])}}return s.apply(this,t)};for(h in s)Object.prototype.hasOwnProperty.call(s,h)&&(n.find[h]=s[h]);n.parseJSON=function(n){return n?lt.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)};n.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};n.browser||(o=n.uaMatch(navigator.userAgent),u={},o.browser&&(u[o.browser]=!0,u.version=o.version),u.chrome?u.webkit=!0:u.webkit&&(u.safari=!0),n.browser=u);f(n,"browser",n.browser,"jQuery.browser is deprecated");n.boxModel=n.support.boxModel=document.compatMode==="CSS1Compat";f(n,"boxModel",n.boxModel,"jQuery.boxModel is deprecated");f(n.support,"boxModel",n.support.boxModel,"jQuery.support.boxModel is deprecated");n.sub=function(){function t(n,i){return new t.fn.init(n,i)}n.extend(!0,t,this);t.superclass=this;t.fn=t.prototype=this();t.fn.constructor=t;t.sub=this.sub;t.fn.init=function(r,u){var f=n.fn.init.call(this,r,u,i);return f instanceof t?f:t(f)};t.fn.init.prototype=t.fn;var i=t(document);return r("jQuery.sub() is deprecated"),t};n.fn.size=function(){return r("jQuery.fn.size() is deprecated; use the .length property"),this.length};c=!1;n.swap&&n.each(["height","width","reliableMarginRight"],function(t,i){var r=n.cssHooks[i]&&n.cssHooks[i].get;r&&(n.cssHooks[i].get=function(){var n;return c=!0,n=r.apply(this,arguments),c=!1,n})});n.swap=function(n,t,i,u){var e,f,o={};c||r("jQuery.swap() is undocumented and deprecated");for(f in t)o[f]=n.style[f],n.style[f]=t[f];e=i.apply(n,u||[]);for(f in t)n.style[f]=o[f];return e};n.ajaxSetup({converters:{"text json":n.parseJSON}});y=n.fn.data;n.fn.data=function(t){var f,u,e=this[0];return e&&t==="events"&&arguments.length===1&&(f=n.data(e,t),u=n._data(e,t),(f===i||f===u)&&u!==i)?(r("Use of jQuery.fn.data('events') is deprecated"),u):y.apply(this,arguments)};p=/\/(java|ecma)script/i;n.clean||(n.clean=function(t,i,u,f){i=i||document;i=!i.nodeType&&i[0]||i;i=i.ownerDocument||i;r("jQuery.clean() is deprecated");var o,e,h,c,s=[];if(n.merge(s,n.buildFragment(t,i).childNodes),u)for(h=function(n){if(!n.type||p.test(n.type))return f?f.push(n.parentNode?n.parentNode.removeChild(n):n):u.appendChild(n)},o=0;(e=s[o])!=null;o++)n.nodeName(e,"script")&&h(e)||(u.appendChild(e),typeof e.getElementsByTagName!="undefined"&&(c=n.grep(n.merge([],e.getElementsByTagName("script")),h),s.splice.apply(s,[o+1,0].concat(c)),o+=c.length));return s});var wt=n.event.add,bt=n.event.remove,kt=n.event.trigger,dt=n.fn.toggle,w=n.fn.live,b=n.fn.die,gt=n.fn.load,k="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",d=new RegExp("\\b(?:"+k+")\\b"),g=/(?:^|\s)hover(\.\S+|)\b/,nt=function(t){return typeof t!="string"||n.event.special.hover?t:(g.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(g,"mouseenter$1 mouseleave$1"))};n.event.props&&n.event.props[0]!=="attrChange"&&n.event.props.unshift("attrChange","attrName","relatedNode","srcElement");n.event.dispatch&&f(n.event,"handle",n.event.dispatch,"jQuery.event.handle is undocumented and deprecated");n.event.add=function(n,t,i,u,f){n!==document&&d.test(t)&&r("AJAX events should be attached to document: "+t);wt.call(this,n,nt(t||""),i,u,f)};n.event.remove=function(n,t,i,r,u){bt.call(this,n,nt(t)||"",i,r,u)};n.each(["load","unload","error"],function(t,i){n.fn[i]=function(){var n=Array.prototype.slice.call(arguments,0);return i==="load"&&typeof n[0]=="string"?gt.apply(this,n):(r("jQuery.fn."+i+"() is deprecated"),n.splice(0,0,i),arguments.length)?this.bind.apply(this,n):(this.triggerHandler.apply(this,n),this)}});n.fn.toggle=function(t,i){if(!n.isFunction(t)||!n.isFunction(i))return dt.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var u=arguments,e=t.guid||n.guid++,f=0,o=function(i){var r=(n._data(this,"lastToggle"+t.guid)||0)%f;return n._data(this,"lastToggle"+t.guid,r+1),i.preventDefault(),u[r].apply(this,arguments)||!1};for(o.guid=e;f<u.length;)u[f++].guid=e;return this.click(o)};n.fn.live=function(t,i,u){if(r("jQuery.fn.live() is deprecated"),w)return w.apply(this,arguments);n(this.context).on(t,this.selector,i,u);return this};n.fn.die=function(t,i){return(r("jQuery.fn.die() is deprecated"),b)?b.apply(this,arguments):(n(this.context).off(t,this.selector||"**",i),this)};n.event.trigger=function(n,t,i,u){return i||d.test(n)||r("Global events are undocumented and deprecated"),kt.call(this,n,t,i||document,u)};n.each(k.split("|"),function(t,i){n.event.special[i]={setup:function(){var t=this;return t!==document&&(n.event.add(document,i+"."+n.guid,function(){n.event.trigger(i,Array.prototype.slice.call(arguments,1),t,!0)}),n._data(this,i,n.guid++)),!1},teardown:function(){return this!==document&&n.event.remove(document,i+"."+n._data(this,i)),!1}}});n.event.special.ready={setup:function(){this===document&&r("'ready' event is deprecated")}};tt=n.fn.andSelf||n.fn.addBack;it=n.fn.find;n.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),tt.apply(this,arguments)};n.fn.find=function(n){var t=it.apply(this,arguments);return t.context=this.context,t.selector=this.selector?this.selector+" "+n:n,t};n.Callbacks&&(rt=n.Deferred,ut=[["resolve","done",n.Callbacks("once memory"),n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory"),n.Callbacks("memory")]],n.Deferred=function(t){var i=rt(),u=i.promise();return i.pipe=u.pipe=function(){var t=arguments;return r("deferred.pipe() is deprecated"),n.Deferred(function(r){n.each(ut,function(f,e){var o=n.isFunction(t[f])&&t[f];i[e[1]](function(){var t=o&&o.apply(this,arguments);t&&n.isFunction(t.promise)?t.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[e[0]+"With"](this===u?r.promise():this,o?[t]:arguments)})});t=null}).promise()},i.isResolved=function(){return r("deferred.isResolved is deprecated"),i.state()==="resolved"},i.isRejected=function(){return r("deferred.isRejected is deprecated"),i.state()==="rejected"},t&&t.call(i,i),i})}(jQuery,window),function(n){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):typeof module!="undefined"&&module.exports?n(require("jquery")):n(jQuery)}(function(n){"use strict";function ft(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=o),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(c);i||(i=new et(this,t),r.data(c,i))})}function et(ft,et){function tr(t){var r,f,u,e;if(!pu())return n(t.target).closest(et.excludedElements,ot).length>0?void 0:(r=t.originalEvent?t.originalEvent:t,r.pointerType&&r.pointerType=="mouse"&&et.fallbackToMouseEvents==!1)?void 0:(u=r.touches,e=u?u[0]:r,st=rt,u?ct=u.length:et.preventDefaultEvents!==!1&&t.preventDefault(),at=0,vt=null,yt=null,kt=null,lt=0,dt=0,gt=0,pt=1,bt=0,ci=ku(),dr(),wi(0,e),!u||ct===et.fingers||et.fingers===a||vi()?(gi=ti(),ct==2&&(wi(1,u[1]),dt=gt=hr(ht[0].start,ht[1].start)),(et.swipeStatus||et.pinchStatus)&&(f=wt(r,st))):f=!1,f===!1)?(st=i,wt(r,st),f):(et.hold&&(ei=setTimeout(n.proxy(function(){ot.trigger("hold",[r.target]);et.hold&&(f=et.hold.call(ot,r,r.target))},this),et.longTapThreshold)),pi(!0),null)}function ir(n){var f=n.originalEvent?n.originalEvent:n,e,h;if(st!==t&&st!==i&&!yi()){var o,r=f.touches,c=r?r[0]:f,u=gr(c);li=ti();r&&(ct=r.length);et.hold&&clearTimeout(ei);st=s;ct==2&&(dt==0?(wi(1,r[1]),dt=gt=hr(ht[0].start,ht[1].start)):(gr(r[1]),gt=hr(ht[0].end,ht[1].end),kt=gu(ht[0].end,ht[1].end)),pt=du(dt,gt),bt=Math.abs(dt-gt));ct===et.fingers||et.fingers===a||!r||vi()?(vt=iu(u.start,u.end),yt=iu(u.last,u.end),uu(n,yt),at=nf(u.start,u.end),lt=tu(),bu(vt,at),o=wt(f,st),(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)&&(e=!0,et.triggerOnTouchLeave&&(h=rf(this),e=uf(u.end,h)),!et.triggerOnTouchEnd&&e?st=fr(s):et.triggerOnTouchLeave&&!e&&(st=fr(t)),(st==i||st==t)&&wt(f,st))):(st=i,wt(f,st));o===!1&&(st=i,wt(f,st))}}function rr(n){var r=n.originalEvent?n.originalEvent:n,u=r.touches;if(u){if(u.length&&!yi())return yu(r),!0;if(u.length&&yi())return!0}return yi()&&(ct=nr),li=ti(),lt=tu(),or()||!er()?(st=i,wt(r,st)):et.triggerOnTouchEnd||et.triggerOnTouchEnd===!1&&st===s?(et.preventDefaultEvents!==!1&&n.cancelable!==!1&&n.preventDefault(),st=t,wt(r,st)):!et.triggerOnTouchEnd&&br()?(st=t,ui(r,st,w)):st===s&&(st=i,wt(r,st)),pi(!1),null}function ri(){ct=0;li=0;gi=0;dt=0;gt=0;pt=1;dr();pi(!1)}function ur(n){var i=n.originalEvent?n.originalEvent:n;et.triggerOnTouchLeave&&(st=fr(t),wt(i,st))}function cr(){ot.off(si,tr);ot.off(hi,ri);ot.off(ki,ir);ot.off(di,rr);ii&&ot.off(ii,ur);pi(!1)}function fr(n){var r=n,f=lr(),u=er(),e=or();return!f||e?r=i:u&&n==s&&(!et.triggerOnTouchEnd||et.triggerOnTouchLeave)?r=t:!u&&n==t&&et.triggerOnTouchLeave&&(r=i),r}function wt(n,r){var u,f=n.touches;return(eu()||yr())&&(u=ui(n,r,g)),(fu()||vi())&&u!==!1&&(u=ui(n,r,nt)),au()&&u!==!1?u=ui(n,r,tt):vu()&&u!==!1?u=ui(n,r,it):lu()&&u!==!1&&(u=ui(n,r,w)),r===i&&ri(n),r===t&&(f?f.length||ri(n):ri(n)),u}function ui(o,s,h){var c;if(h==g){if(ot.trigger("swipeStatus",[s,vt||null,at||0,lt||0,ct,ht,yt]),et.swipeStatus&&(c=et.swipeStatus.call(ot,o,s,vt||null,at||0,lt||0,ct,ht,yt),c===!1))return!1;if(s==t&&vr()){if(clearTimeout(fi),clearTimeout(ei),ot.trigger("swipe",[vt,at,lt,ct,ht,yt]),et.swipe&&(c=et.swipe.call(ot,o,vt,at,lt,ct,ht,yt),c===!1))return!1;switch(vt){case r:ot.trigger("swipeLeft",[vt,at,lt,ct,ht,yt]);et.swipeLeft&&(c=et.swipeLeft.call(ot,o,vt,at,lt,ct,ht,yt));break;case u:ot.trigger("swipeRight",[vt,at,lt,ct,ht,yt]);et.swipeRight&&(c=et.swipeRight.call(ot,o,vt,at,lt,ct,ht,yt));break;case f:ot.trigger("swipeUp",[vt,at,lt,ct,ht,yt]);et.swipeUp&&(c=et.swipeUp.call(ot,o,vt,at,lt,ct,ht,yt));break;case e:ot.trigger("swipeDown",[vt,at,lt,ct,ht,yt]);et.swipeDown&&(c=et.swipeDown.call(ot,o,vt,at,lt,ct,ht,yt))}}}if(h==nt){if(ot.trigger("pinchStatus",[s,kt||null,bt||0,lt||0,ct,pt,ht]),et.pinchStatus&&(c=et.pinchStatus.call(ot,o,s,kt||null,bt||0,lt||0,ct,pt,ht),c===!1))return!1;if(s==t&&ar())switch(kt){case y:ot.trigger("pinchIn",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchIn&&(c=et.pinchIn.call(ot,o,kt||null,bt||0,lt||0,ct,pt,ht));break;case p:ot.trigger("pinchOut",[kt||null,bt||0,lt||0,ct,pt,ht]);et.pinchOut&&(c=et.pinchOut.call(ot,o,kt||null,bt||0,lt||0,ct,pt,ht))}}return h==w?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ei),sr()&&!su()?(ni=ti(),fi=setTimeout(n.proxy(function(){ni=null;ot.trigger("tap",[o.target]);et.tap&&(c=et.tap.call(ot,o,o.target))},this),et.doubleTapThreshold)):(ni=null,ot.trigger("tap",[o.target]),et.tap&&(c=et.tap.call(ot,o,o.target)))):h==tt?(s===i||s===t)&&(clearTimeout(fi),clearTimeout(ei),ni=null,ot.trigger("doubletap",[o.target]),et.doubleTap&&(c=et.doubleTap.call(ot,o,o.target))):h==it&&(s===i||s===t)&&(clearTimeout(fi),ni=null,ot.trigger("longtap",[o.target]),et.longTap&&(c=et.longTap.call(ot,o,o.target))),c}function er(){var n=!0;return et.threshold!==null&&(n=at>=et.threshold),n}function or(){var n=!1;return et.cancelThreshold!==null&&vt!==null&&(n=nu(vt)-at>=et.cancelThreshold),n}function ru(){return et.pinchThreshold!==null?bt>=et.pinchThreshold:!0}function lr(){return et.maxTimeThreshold?lt>=et.maxTimeThreshold?!1:!0:!0}function uu(n,t){if(et.preventDefaultEvents!==!1)if(et.allowPageScroll===o)n.preventDefault();else{var i=et.allowPageScroll===d;switch(t){case r:(et.swipeLeft&&i||!i&&et.allowPageScroll!=b)&&n.preventDefault();break;case u:(et.swipeRight&&i||!i&&et.allowPageScroll!=b)&&n.preventDefault();break;case f:(et.swipeUp&&i||!i&&et.allowPageScroll!=k)&&n.preventDefault();break;case e:(et.swipeDown&&i||!i&&et.allowPageScroll!=k)&&n.preventDefault()}}}function ar(){var n=pr(),t=wr(),i=ru();return n&&t&&i}function vi(){return!!(et.pinchStatus||et.pinchIn||et.pinchOut)}function fu(){return!!(ar()&&vi())}function vr(){var n=lr(),t=er(),i=pr(),r=wr(),u=or();return!u&&r&&i&&t&&n}function yr(){return!!(et.swipe||et.swipeStatus||et.swipeLeft||et.swipeRight||et.swipeUp||et.swipeDown)}function eu(){return!!(vr()&&yr())}function pr(){return ct===et.fingers||et.fingers===a||!l}function wr(){return ht[0].end.x!==0}function br(){return!!et.tap}function sr(){return!!et.doubleTap}function ou(){return!!et.longTap}function kr(){if(ni==null)return!1;var n=ti();return sr()&&n-ni<=et.doubleTapThreshold}function su(){return kr()}function hu(){return(ct===1||!l)&&(isNaN(at)||at<et.threshold)}function cu(){return lt>et.longTapThreshold&&at<ut}function lu(){return!!(hu()&&br())}function au(){return!!(kr()&&sr())}function vu(){return!!(cu()&&ou())}function yu(n){ai=ti();nr=n.touches.length+1}function dr(){ai=0;nr=0}function yi(){var n=!1,t;return ai&&(t=ti()-ai,t<=et.fingerReleaseThreshold&&(n=!0)),n}function pu(){return!!(ot.data(c+"_intouch")===!0)}function pi(n){if(ot){if(n===!0){ot.on(ki,ir);ot.on(di,rr);if(ii)ot.on(ii,ur)}else ot.off(ki,ir,!1),ot.off(di,rr,!1),ii&&ot.off(ii,ur,!1);ot.data(c+"_intouch",n===!0)}}function wi(n,t){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=t.pageX||t.clientX,i.start.y=i.last.y=i.end.y=t.pageY||t.clientY,ht[n]=i,i}function gr(n){var i=n.identifier!==undefined?n.identifier:0,t=wu(i);return t===null&&(t=wi(i,n)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function wu(n){return ht[n]||null}function bu(n,t){n!=o&&(t=Math.max(t,nu(n)),ci[n].distance=t)}function nu(n){return ci[n]?ci[n].distance:undefined}function ku(){var n={};return n[r]=bi(r),n[u]=bi(u),n[f]=bi(f),n[e]=bi(e),n}function bi(n){return{direction:n,distance:0}}function tu(){return li-gi}function hr(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function du(n,t){var i=t/n*1;return i.toFixed(2)}function gu(){return pt<1?p:y}function nf(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function tf(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function iu(n,t){if(ff(n,t))return o;var i=tf(n,t);return i<=45&&i>=0?r:i<=360&&i>=315?r:i>=135&&i<=225?u:i>45&&i<135?e:f}function ti(){var n=new Date;return n.getTime()}function rf(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function uf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}function ff(n,t){return n.x==t.x&&n.y==t.y}var et=n.extend({},et),oi=l||h||!et.fallbackToMouseEvents,si=oi?h?v?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ki=oi?h?v?"MSPointerMove":"pointermove":"touchmove":"mousemove",di=oi?h?v?"MSPointerUp":"pointerup":"touchend":"mouseup",ii=oi?h?"mouseleave":null:"mouseleave",hi=h?v?"MSPointerCancel":"pointercancel":"touchcancel",at=0,vt=null,yt=null,lt=0,dt=0,gt=0,pt=1,bt=0,kt=0,ci=null,ot=n(ft),st="start",ct=0,ht={},gi=0,li=0,ai=0,nr=0,ni=0,fi=null,ei=null;try{ot.on(si,tr);ot.on(hi,ri)}catch(ef){n.error("events not supported "+si+","+hi+" on jQuery.swipe")}this.enable=function(){this.disable();ot.on(si,tr);ot.on(hi,ri);return ot};this.disable=function(){return cr(),ot};this.destroy=function(){cr();ot.data(c,null);ot=null};this.option=function(t,i){if(typeof t=="object")et=n.extend(et,t);else if(et[t]!==undefined){if(i===undefined)return et[t];et[t]=i}else if(t)n.error("Option "+t+" does not exist on jQuery.swipe.options");else return et;return null}}var r="left",u="right",f="up",e="down",y="in",p="out",o="none",d="auto",g="swipe",nt="pinch",w="tap",tt="doubletap",it="longtap",b="horizontal",k="vertical",a="all",ut=10,rt="start",s="move",t="end",i="cancel",l="ontouchstart"in window,v=window.navigator.msPointerEnabled&&!window.PointerEvent&&!l,h=(window.PointerEvent||window.navigator.msPointerEnabled)&&!l,c="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(c);if(i&&typeof t=="string"){if(i[t])return i[t].apply(i,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&typeof t=="object")i.option.apply(i,arguments);else if(!i&&(typeof t=="object"||!t))return ft.apply(this,arguments);return r};n.fn.swipe.version="1.6.18";n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};n.fn.swipe.phases={PHASE_START:rt,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:r,RIGHT:u,UP:f,DOWN:e,IN:y,OUT:p};n.fn.swipe.pageScroll={NONE:o,HORIZONTAL:b,VERTICAL:k,AUTO:d};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:a}}),function(n){var r={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div><\/div>",buttonPrevHTML:"<div><\/div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},i=!1,t;n(window).bind("load.jcarousel",function(){i=!0});n.jcarousel=function(t,u){var h,c;this.options=n.extend({},r,u||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;u&&u.rtl!==void 0||(this.options.rtl=(n(t).attr("dir")||n("html").attr("dir")||"").toLowerCase()=="rtl");this.wh=this.options.vertical?"height":"width";this.lt=this.options.vertical?"top":this.options.rtl?"right":"left";for(var e="",s=t.className.split(" "),o=0;o<s.length;o++)if(s[o].indexOf("jcarousel-skin")!=-1){n(t).removeClass(s[o]);e=s[o];break}t.nodeName.toUpperCase()=="UL"||t.nodeName.toUpperCase()=="OL"?(this.list=n(t),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=n(t),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));this.clip.length===0&&(this.clip=this.list.wrap("<div><\/div>").parent());this.container.length===0&&(this.container=this.clip.wrap("<div><\/div>").parent());e!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+e+'"><\/div>');this.buttonPrev=n(".jcarousel-prev",this.container);this.buttonPrev.length===0&&this.options.buttonPrevHTML!==null&&(this.buttonPrev=n(this.options.buttonPrevHTML).appendTo(this.container));this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=n(".jcarousel-next",this.container);this.buttonNext.length===0&&this.options.buttonNextHTML!==null&&(this.buttonNext=n(this.options.buttonNextHTML).appendTo(this.container));this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var l=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,e=this.list.children("li"),f=this;e.length>0&&(h=0,c=this.options.offset,e.each(function(){f.format(this,c++);h+=f.dimension(this,l)}),this.list.css(this.wh,h+100+"px"),u&&u.size!==void 0||(this.options.size=e.length));this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){f.next()};this.funcPrev=function(){f.prev()};this.funcResize=function(){f.resizeTimer&&clearTimeout(f.resizeTimer);f.resizeTimer=setTimeout(function(){f.reload()},100)};this.options.initCallback!==null&&this.options.initCallback(this,"init");!i&&n.browser.safari?(this.buttons(!1,!1),n(window).bind("load.jcarousel",function(){f.setup()})):this.setup()};t=n.jcarousel;t.fn=t.prototype={jcarousel:"0.2.8"};t.fn.extend=t.extend=n.extend;t.fn.extend({setup:function(){if(this.prevLast=this.prevFirst=this.last=this.first=null,this.animating=!1,this.tail=this.resizeTimer=this.timer=null,this.inTail=!1,!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var t=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(t,!1);n(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this)}},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){if(this.tail!==null&&this.inTail&&this.list.css(this.lt,t.intval(this.list.css(this.lt))+this.tail),this.tail=null,this.inTail=!1,this.options.reloadCallback!==null&&this.options.reloadCallback(this),this.options.visible!==null){var i=this,u=Math.ceil(this.clipping()/this.options.visible),n=0,r=0;this.list.children("li").each(function(t){n+=i.dimension(this,u);t+1<i.first&&(r=n)});this.list.css(this.wh,n+"px");this.list.css(this.lt,-r+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0;this.buttons()},unlock:function(){this.locked=!1;this.buttons()},size:function(n){return n!==void 0&&(this.options.size=n,this.locked||this.buttons()),this.options.size},has:function(n,t){var i,r;for(t!==void 0&&t||(t=n),this.options.size!==null&&t>this.options.size&&(t=this.options.size),i=n;i<=t;i++)if(r=this.get(i),!r.length||r.hasClass("jcarousel-item-placeholder"))return!1;return!0},get:function(t){return n(">.jcarousel-item-"+t,this.list)},add:function(i,r){var u=this.get(i),f=0,e=n(r),s,o;if(u.length===0){for(o=t.intval(i),u=this.create(i);;)if(s=this.get(--o),o<=0||s.length){o<=0?this.list.prepend(u):s.after(u);break}}else f=this.dimension(u);return e.get(0).nodeName.toUpperCase()=="LI"?(u.replaceWith(e),u=e):u.empty().append(r),this.format(u.removeClass(this.className("jcarousel-item-placeholder")),i),e=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,f=this.dimension(u,e)-f,i>0&&i<this.first&&this.list.css(this.lt,t.intval(this.list.css(this.lt))-f+"px"),this.list.css(this.wh,t.intval(this.list.css(this.wh))+f+"px"),u},remove:function(n){var i=this.get(n),r;!i.length||n>=this.first&&n<=this.last||(r=this.dimension(i),n<this.first&&this.list.css(this.lt,t.intval(this.list.css(this.lt))+r+"px"),i.remove(),this.list.css(this.wh,t.intval(this.list.css(this.wh))-r+"px"))},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(!1):this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(!0):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(n){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var i=t.intval(this.list.css(this.lt)),i=n?i+this.tail:i-this.tail;this.inTail=!n;this.prevFirst=this.first;this.prevLast=this.last;this.animate(i)}},scroll:function(n,t){this.locked||this.animating||(this.pauseAuto(),this.animate(this.pos(n),t))},pos:function(n,i){var s=t.intval(this.list.css(this.lt));if(this.locked||this.animating)return s;this.options.wrap!="circular"&&(n=n<1?1:this.options.size&&n>this.options.size?this.options.size:n);for(var e=this.first>n,c=this.options.wrap!="circular"&&this.first<=1?1:this.first,o=e?this.get(c):this.get(this.last),r=e?c:c-1,u=null,f=0,v=!1,h=0;e?--r>=n:++r<n;)u=this.get(r),v=!u.length,u.length===0&&(u=this.create(r).addClass(this.className("jcarousel-item-placeholder")),o[e?"before":"after"](u),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(r<=0||r>this.options.size))&&(o=this.get(this.index(r)),o.length&&(u=this.add(r,o.clone(!0)))),o=u,h=this.dimension(u),v&&(f+=h),this.first!==null&&(this.options.wrap=="circular"||r>=1&&(this.options.size===null||r<=this.options.size))&&(s=e?s+h:s-h);for(var c=this.clipping(),y=[],a=0,l=0,o=this.get(n-1),r=n;++a;){if(u=this.get(r),v=!u.length,u.length===0&&(u=this.create(r).addClass(this.className("jcarousel-item-placeholder")),o.length===0?this.list.prepend(u):o[e?"before":"after"](u),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(r<=0||r>this.options.size)&&(o=this.get(this.index(r)),o.length&&(u=this.add(r,o.clone(!0))))),o=u,h=this.dimension(u),h===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if(this.options.wrap!="circular"&&this.options.size!==null&&r>this.options.size?y.push(u):v&&(f+=h),l+=h,l>=c)break;r++}for(u=0;u<y.length;u++)y[u].remove();if(f>0&&(this.list.css(this.wh,this.dimension(this.list)+f+"px"),e&&(s-=f,this.list.css(this.lt,t.intval(this.list.css(this.lt))-f+"px"))),f=n+a-1,this.options.wrap!="circular"&&this.options.size&&f>this.options.size&&(f=this.options.size),r>f)for(a=0,r=f,l=0;++a;){if(u=this.get(r--),!u.length)break;if(l+=this.dimension(u),l>=c)break}for(r=f-a+1,this.options.wrap!="circular"&&r<1&&(r=1),this.inTail&&e&&(s+=this.tail,this.inTail=!1),this.tail=null,this.options.wrap!="circular"&&f==this.options.size&&f-a+1>=1&&(e=t.intval(this.get(f).css(this.options.vertical?"marginBottom":"marginRight")),l-e>c)&&(this.tail=l-c-e),i&&n===this.options.size&&this.tail&&(s-=this.tail,this.inTail=!0);n-->r;)s+=this.dimension(this.get(n));return this.prevFirst=this.first,this.prevLast=this.last,this.first=r,this.last=f,s},animate:function(t,i){var r,f,u;this.locked||this.animating||(this.animating=!0,r=this,u=function(){if(r.animating=!1,t===0&&r.list.css(r.lt,0),!r.autoStopped&&(r.options.wrap=="circular"||r.options.wrap=="both"||r.options.wrap=="last"||r.options.size===null||r.last<r.options.size||r.last==r.options.size&&r.tail!==null&&!r.inTail)&&r.startAuto(),r.buttons(),r.notify("onAfterAnimation"),r.options.wrap=="circular"&&r.options.size!==null)for(var n=r.prevFirst;n<=r.prevLast;n++)n===null||n>=r.first&&n<=r.last||!(n<1||n>r.options.size)||r.remove(n)},this.notify("onBeforeAnimation"),this.options.animation&&i!==!1?(f=this.options.vertical?{top:t}:this.options.rtl?{right:t}:{left:t},u={duration:this.options.animation,easing:this.options.easing,complete:u},n.isFunction(this.options.animationStepCallback)&&(u.step=this.options.animationStepCallback),this.list.animate(f,u)):(this.list.css(this.lt,t+"px"),u()))},startAuto:function(n){if(n!==void 0&&(this.options.auto=n),this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped=!1;var t=this;this.timer=window.setTimeout(function(){t.next()},this.options.auto*1e3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){this.timer!==null&&(window.clearTimeout(this.timer),this.timer=null)},buttons:function(n,t){n==null&&(n=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size),!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&&this.last>=this.options.size)&&(n=this.tail!==null&&!this.inTail);t!=null||(t=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),this.locked||this.options.wrap&&this.options.wrap!="last"||this.options.size===null||this.first!=1)||(t=this.tail!==null&&this.inTail);var i=this;this.buttonNext.length>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),n&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext),this.buttonNext[n?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",n?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=n&&this.buttonNext.each(function(){i.options.buttonNextCallback(i,this,n)}).data("jcarouselstate",n)):this.options.buttonNextCallback!==null&&this.buttonNextState!=n&&this.options.buttonNextCallback(i,null,n);this.buttonPrev.length>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),t&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[t?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",t?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=t&&this.buttonPrev.each(function(){i.options.buttonPrevCallback(i,this,t)}).data("jcarouselstate",t)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=t&&this.options.buttonPrevCallback(i,null,t);this.buttonNextState=n;this.buttonPrevState=t},notify:function(n){var t=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",n,t);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",n,t,this.first),this.callback("itemFirstOutCallback",n,t,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",n,t,this.last),this.callback("itemLastOutCallback",n,t,this.prevLast));this.callback("itemVisibleInCallback",n,t,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",n,t,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(t,i,r,u,f,e,o){var h,c,t,s;if(!(this.options[t]==null||typeof this.options[t]!="object"&&i!="onAfterAnimation")&&(h=typeof this.options[t]=="object"?this.options[t][i]:this.options[t],n.isFunction(h)))if(c=this,u===void 0)h(c,r,i);else if(f===void 0)this.get(u).each(function(){h(c,this,u,r,i)});else for(t=function(n){c.get(n).each(function(){h(c,this,n,r,i)})},s=u;s<=f;s++)s===null||s>=e&&s<=o||t(s)},create:function(n){return this.format("<li><\/li>",n)},format:function(t,i){for(var t=n(t),u=t.get(0).className.split(" "),r=0;r<u.length;r++)u[r].indexOf("jcarousel-")!=-1&&t.removeClass(u[r]);return t.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+i)).css({float:this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",i),t},className:function(n){return n+" "+n+(this.options.vertical?"-vertical":"-horizontal")},dimension:function(i,r){var u=n(i),f;return r==null?this.options.vertical?u.outerHeight(!0)||t.intval(this.options.itemFallbackDimension):u.outerWidth(!0)||t.intval(this.options.itemFallbackDimension):(f=this.options.vertical?r-t.intval(u.css("marginTop"))-t.intval(u.css("marginBottom")):r-t.intval(u.css("marginLeft"))-t.intval(u.css("marginRight")),n(u).css(this.wh,f+"px"),this.dimension(u))},clipping:function(){return this.options.vertical?this.clip[0].offsetHeight-t.intval(this.clip.css("borderTopWidth"))-t.intval(this.clip.css("borderBottomWidth")):this.clip[0].offsetWidth-t.intval(this.clip.css("borderLeftWidth"))-t.intval(this.clip.css("borderRightWidth"))},index:function(n,t){return t==null&&(t=this.options.size),Math.round(((n-1)/t-Math.floor((n-1)/t))*t)+1}});t.extend({defaults:function(t){return n.extend(r,t||{})},intval:function(n){return n=parseInt(n,10),isNaN(n)?0:n},windowLoaded:function(){i=!0}});n.fn.jcarousel=function(i){if(typeof i=="string"){var r=n(this).data("jcarousel"),u=Array.prototype.slice.call(arguments,1);return r[i].apply(r,u)}return this.each(function(){var r=n(this).data("jcarousel");r?(i&&n.extend(r.options,i),r.reload()):n(this).data("jcarousel",new t(this,i))})}}(jQuery),function(n){var i={autoPlay:!0,speed:5e3,text:{play:"",stop:"",previous:"Previous",next:"Next"},transition:[1],showCaption:!0,IESafe:!1,showTooltips:!1,carousel:!1,carouselVertical:!1,animationFinished:null,buildFinished:null,bindFinished:null,startOn:0,thumbOpacity:.4,hoverPause:!1},t;n.fn.PikaChoose=function(i){return this.each(function(){n(this).data("pikachoose",new t(this,i))})};n.PikaChoose=function(t,r){var u,f,e,o;if(this.options=n.extend({},i,r||{}),this.list=null,this.image=null,this.anchor=null,this.caption=null,this.imgNav=null,this.imgPlay=null,this.imgPrev=null,this.imgNext=null,this.textNext=null,this.textPrev=null,this.previous=null,this.next=null,this.aniWrap=null,this.aniDiv=null,this.aniImg=null,this.thumbs=null,this.transition=null,this.active=null,this.tooltip=null,this.animating=!1,this.stillOut=null,this.counter=null,this.timeOut=null,typeof this.options.data!="undefined"&&(t=n("<ul><\/ul>").appendTo(t),n.each(this.options.data,function(){var i;typeof this.link!="undefined"?(i=n("<li><a href='"+this.link+"'><img><\/a><\/li>").appendTo(t),typeof this.title!="undefined"&&i.find("a").attr("title",this.title)):i=n("<li><img><\/li>").appendTo(t);typeof this.caption!="undefined"&&i.append("<span>"+this.caption+"<\/span>");typeof this.thumbnail!="undefined"?(i.find("img").attr("ref",this.image),i.find("img").attr("src",this.thumbnail)):i.find("img").attr("src",this.image)})),t.nodeName=="UL"||t.nodeName=="OL"||t instanceof jQuery)this.list=n(t),this.build(),this.bindEvents();else return;for(u=0,f=0,e=0;e<25;e++)o='<div col="'+u+'" row="'+f+'"><\/div>',this.aniDiv.append(o),u++,u==5&&(f++,u=0)};t=n.PikaChoose;t.fn=t.prototype={pikachoose:"4.3.1"};n.fn.pikachoose=n.fn.PikaChoose;t.fn.extend=t.extend=n.extend;t.fn.extend({build:function(){this.step=0;this.wrap=n("<div class='pika-stage'><\/div>").insertBefore(this.list);this.image=n("<img>").appendTo(this.wrap);this.imgNav=n("<div class='pika-imgnav'><\/div>").insertAfter(this.image);this.imgPlay=n("<a><\/a>").appendTo(this.imgNav);this.counter=n("<span class='pika-counter'><\/span>").appendTo(this.imgNav);this.options.autoPlay?this.imgPlay.addClass("pause"):this.imgPlay.addClass("play");this.imgPrev=n("<a class='previous'><\/a>").insertAfter(this.imgPlay);this.imgNext=n("<a class='next'><\/a>").insertAfter(this.imgPrev);this.caption=n("<div class='caption'><\/div>").insertAfter(this.imgNav).hide();this.tooltip=n("<div class='pika-tooltip'><\/div>").insertAfter(this.list).hide();this.aniWrap=n("<div class='pika-aniwrap'><\/div>").insertAfter(this.caption);this.aniImg=n("<img>").appendTo(this.aniWrap).hide();this.aniDiv=n("<div class='pika-ani'><\/div>").appendTo(this.aniWrap);this.textNav=n("<div class='pika-textnav'><\/div>").insertAfter(this.aniWrap);this.textPrev=n("<a class='previous'>"+this.options.text.previous+"<\/a>").appendTo(this.textNav);this.textNext=n("<a class='next'>"+this.options.text.next+"<\/a>").appendTo(this.textNav);this.list.addClass("pika-thumbs");this.list.children("li").wrapInner("<div class='clip' />");this.thumbs=this.list.find("img");this.active=this.thumbs.eq(this.options.startOn);this.finishAnimating({source:this.active.attr("ref")||this.active.attr("src"),caption:this.active.parents("li:first").find("span:first").html(),clickThrough:this.active.parent().attr("href")||"",clickThroughTitle:this.active.parent().attr("title")||""});var t=this;this.thumbs.each(function(){t.createThumb(n(this),t)});this.options.carousel&&this.list.jcarousel({vertical:this.options.carouselVertical,initCallback:function(n){jQuery(n.list).find("img").click(function(){var t=parseInt(jQuery(this).parents(".jcarousel-item").attr("jcarouselindex")),i=jQuery(this).parents("ul").find("li:last").index()==t-1?!0:!1;i||(t=t-2<=0?0:t-2);t++;n.scroll(t)})}});typeof this.options.buildFinished=="function"&&this.options.buildFinished(this)},createThumb:function(t){var i=t,r=this,u;i.hide();n.data(t[0],"clickThrough",i.parent("a").attr("href")||"");n.data(t[0],"clickThroughTitle",i.parent("a").attr("title")||"");i.parent("a").length>0&&i.unwrap();n.data(t[0],"caption",i.next("span").html()||"");i.next("span").remove();n.data(t[0],"source",i.attr("ref")||i.attr("src"));n.data(t[0],"order",i.closest("ul").find("li").index(i.parents("li")));u=n.data(t[0]);n("<img />").bind("load",{data:u},function(){var s,h,f,o,l,a,v;typeof r.options.buildThumbStart=="function"&&r.options.buildThumbStart(r);var c=n(this),t=this.width,e=this.height;t===0&&(t=c.attr("width"));e===0&&(e=c.attr("height"));s=parseInt(i.parents(".clip").css("width").slice(0,-2))/t;h=parseInt(i.parents(".clip").css("height").slice(0,-2))/e;s<h?(f=h,o=(t*f-parseInt(i.parents(".clip").css("width").slice(0,-2)))/-2,o=Math.round(o),i.css({left:o})):(f=s,i.css({top:0}));l=Math.round(t*f);a=Math.round(e*f);i.css("position","relative");v={width:l+"px",height:a+"px"};i.css(v);i.hover(function(){(clearTimeout(r.stillOut),n(this).stop(!0,!0).fadeTo(250,1),r.options.showTooltips)&&r.tooltip.show().stop(!0,!0).html(u.caption).animate({top:n(this).parent().position().top,left:n(this).parent().position().left,opacity:1},"fast")},function(){n(this).hasClass("active")||(n(this).stop(!0,!0).fadeTo(250,r.options.thumbOpacity),r.stillOut=setTimeout(r.hideTooltip,700))});u.order==r.options.startOn?(i.fadeTo(250,1),i.addClass("active"),i.parents("li").eq(0).addClass("active")):i.fadeTo(250,r.options.thumbOpacity);typeof r.options.buildThumbFinish=="function"&&r.options.buildThumbFinish(r)}).attr("src",i.attr("src"))},bindEvents:function(){this.thumbs.bind("click",{self:this},this.imgClick);this.imgNext.bind("click",{self:this},this.nextClick);this.textNext.bind("click",{self:this},this.nextClick);this.imgPrev.bind("click",{self:this},this.prevClick);this.textPrev.bind("click",{self:this},this.prevClick);this.imgPlay.bind("click",{self:this},this.playClick);this.wrap.bind("mouseenter",{self:this},function(n){n.data.self.imgNav.stop(!0,!0).fadeIn("slow");n.data.self.options.hoverPause==!0&&clearTimeout(n.data.self.timeOut)});this.wrap.bind("mouseleave",{self:this},function(n){n.data.self.imgNav.stop(!0,!0).fadeOut("slow");n.data.self.options.autoPlay==!0&&n.data.self.options.hoverPause&&(n.data.self.timeOut=setTimeout(function(n){return function(){n.nextClick()}}(n.data.self),n.data.self.options.speed))});this.tooltip.bind("mouseenter",{self:this},function(n){clearTimeout(n.data.self.stillOut)});this.tooltip.bind("mouseleave",{self:this},function(n){n.data.self.stillOut=setTimeout(n.data.self.hideTooltip,700)});typeof this.options.bindsFinished=="function"&&this.options.bindsFinished(this)},hideTooltip:function(){n(".pika-tooltip").animate({opacity:.01})},imgClick:function(t,i){var r=t.data.self,u=n.data(this);if(!r.animating){if(typeof i=="undefined"||i.how!="auto")r.options.autoPlay&&r.imgPlay.trigger("click");else if(r.options.autoPlay==!1)return!1;r.caption.fadeOut("slow");r.animating=!0;r.active.fadeTo(300,r.options.thumbOpacity).removeClass("active");r.active.parents(".active").eq(0).removeClass("active");r.active=n(this);r.active.addClass("active").fadeTo(200,1);r.active.parents("li").eq(0).addClass("active");n("<img />").bind("load",{self:r,data:u},function(){r.aniDiv.css({height:r.image.height(),width:r.image.width()}).fadeIn("fast");r.aniDiv.children("div").css({width:"20%",height:"20%",float:"left"});var t=0;r.options.transition[0]==-1?t=Math.floor(Math.random()*7)+1:(t=r.options.transition[r.step],r.step++,r.step>=r.options.transition.length&&(r.step=0));r.options.IESafe&&n.browser.msie&&(t=1);r.doAnimation(t,u)}).attr("src",n.data(this).source)}},doAnimation:function(t,i){var r=this;r.image.stop(!0,!1);r.caption.stop().fadeOut();var e=r.aniDiv.children("div").eq(0).width(),u=r.aniDiv.children("div").eq(0).height(),f=new Image;n(f).attr("src",i.source);(f.height!=r.image.height()||f.width!=r.image.width())&&t!=0&&t!=1&&t!=7&&(t=1);r.aniDiv.css({height:f.height,width:f.width});r.aniDiv.children().each(function(){var t=n(this),r=Math.floor(t.parent().width()/5)*t.attr("col"),u=Math.floor(t.parent().height()/5)*t.attr("row");t.css({background:"url("+i.source+") -"+r+"px -"+u+"px",width:"0px",height:"0px",position:"absolute",top:u+"px",left:r+"px",float:"none"})});r.aniDiv.hide();r.aniImg.hide();switch(t){case 0:r.image.stop(!0,!0).fadeOut("slow",function(){r.image.attr("src",i.source).fadeIn("slow",function(){r.finishAnimating(i)})});break;case 1:r.aniDiv.hide();r.aniImg.height(r.image.height()).hide().attr("src",i.source);n.when(r.image.fadeOut("slow"),r.aniImg.eq(0).fadeIn("slow")).done(function(){r.finishAnimating(i)});break;case 2:r.aniDiv.show().children().hide().each(function(t){var f=t*30;n(this).css({opacity:.1}).show().delay(f).animate({opacity:1,width:e,height:u},200,"linear",function(){r.aniDiv.find("div").index(this)==24&&r.finishAnimating(i)})});break;case 3:r.aniDiv.show().children("div:lt(5)").hide().each(function(){var t=n(this).attr("col")*100;n(this).css({opacity:.1,width:e}).show().delay(t).animate({opacity:1,height:r.image.height()},700,"linear",function(){r.aniDiv.find(" div").index(this)==4&&r.finishAnimating(i)})});break;case 4:r.aniDiv.show().children().hide().each(function(t){if(!(t>4)){var f=n(this).attr("col")*10;u=r.gapper(n(this),u);n(this).css({opacity:.1,height:"100%"}).show().animate({opacity:1,width:e},500,"linear",function(){r.aniDiv.find(" div").index(this)==4&&r.finishAnimating(i)})}});break;case 5:r.aniDiv.show().children().show().each(function(t){var f=t*Math.floor(Math.random()*5)*7;u=r.gapper(n(this),u);n(".animation div").index(this)==24&&(f=600);n(this).css({height:u,width:e,opacity:.01}).delay(f).animate({opacity:1},600,function(){r.aniDiv.find(" div").index(this)==24&&r.finishAnimating(i)})});break;case 6:r.aniDiv.height(r.image.height()).hide().css({background:"url("+i.source+") top left no-repeat"});r.aniDiv.children("div").hide();r.aniDiv.css({width:0}).show().animate({width:r.image.width()},"slow",function(){r.finishAnimating(i);r.aniDiv.css({background:"transparent"})});break;case 7:r.wrap.css({overflow:"hidden"});r.aniImg.height(r.image.height()).hide().attr("src",i.source);r.aniDiv.hide();r.image.css({position:"relative"}).animate({left:"-"+r.wrap.outerWidth()+"px"});r.aniImg.show();r.aniWrap.css({left:r.wrap.outerWidth()}).show().animate({left:"0px"},"slow",function(){r.finishAnimating(i)})}},finishAnimating:function(t){var r,u,i;this.animating=!1;this.image.attr("src",t.source);this.image.css({left:"0"});this.image.show();i=this;n("<img />").bind("load",function(){i.aniImg.hide();i.aniDiv.hide()}).attr("src",t.source);r=this.list.find("img").index(this.active);r++;u=this.list.find("img").length;this.counter.html(r+"/"+u);t.clickThrough!=""?(this.anchor==null&&(this.anchor=this.image.wrap("<a>").parent()),this.anchor.attr("href",t.clickThrough),this.anchor.attr("title",t.clickThroughTitle)):(this.image.parent("a").length>0&&this.image.unwrap(),this.anchor=null);this.options.showCaption&&t.caption!=""&&t.caption!=null&&this.caption.html(t.caption).fadeTo("slow",1);this.options.autoPlay==!0&&(i=this,this.timeOut=setTimeout(function(n){return function(){n.nextClick()}}(this),this.options.speed,this.timeOut));typeof this.options.animationFinished=="function"&&this.options.animationFinished(this)},gapper:function(n,t){return n.attr("row")==9&&n.attr("col")==0?ani_divs.height()-t*9:t},nextClick:function(n){var r="natural",t,i;try{t=n.data.self;typeof n.data.self.options.next=="function"&&n.data.self.options.next(this)}catch(u){t=this;r="auto"}i=t.active.parents("li:first").next().find("img");i.length==0&&(i=t.list.find("img").eq(0));i.trigger("click",{how:r})},prevClick:function(n){typeof n.data.self.options.previous=="function"&&n.data.self.options.previous(this);var i=n.data.self,t=i.active.parents("li:first").prev().find("img");t.length==0&&(t=i.list.find("img:last"));t.trigger("click")},playClick:function(n){var t=n.data.self;t.options.autoPlay=!t.options.autoPlay;t.imgPlay.toggleClass("play").toggleClass("pause");t.options.autoPlay&&t.nextClick()}})}(jQuery),function(){function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}return n}()({1:[function(n){"use strict";function i(){var n=t("#txtSearchStaff").val();window.location.href="https://www.montgomeryschoolsmd.org/directory/index.aspx?searchName="+n}var t=window.jQuery;n("./mod/global");var r=n("./mod/district/sticky-header"),u=n("./mod/calendar"),f=n("./mod/district/custom-calendar"),e=n("./mod/district/bookmarks-nav"),o=n("./mod/block-video"),s=n("./mod/district/primary-navigation"),h=n("./mod/district/secondary-navigation"),c=n("./mod/district/story-slider"),l=n("./mod/district/video-grid"),a=n("./mod/district/sticky-sidebar"),v=n("./mod/district/block-image-gallery");t(".NavigationBlock").length>0&&new e;new s;new r;new h("submenulist");t(".NewsSliderBlock").length>0&&t(".NewsSliderBlock").each(function(){new c(this)});t(".VideoBlock").length>0&&t(".VideoBlock").each(function(){new o(this)});t(".ImageGallerySchoolBlock").length>0&&t(".ImageGallerySchoolBlock").each(function(){new v(this)});t(".Home-VideoPosts").length>0&&t(".Home-VideoPosts").each(function(){new l(this)});t("#office-calendar").length>0&&new u("#office-calendar");t("#custom-calendar").length>0&&new f("#custom-calendar");(new WOW).init();t(".btSearchStaff").click(function(){i()});t(document).on("keypress","#txtSearchStaff",function(n){n.which===13&&i()});t("#StickySidebar").length>0&&new a("#StickySidebar")},{"./mod/block-video":2,"./mod/calendar":3,"./mod/district/block-image-gallery":4,"./mod/district/bookmarks-nav":5,"./mod/district/custom-calendar":6,"https://cdn.montgomeryschoolsmd.org/EpiServer/js/homepage.js":7,"./mod/district/primary-navigation":8,"./mod/district/secondary-navigation":9,"./mod/district/sticky-header":10,"./mod/district/sticky-sidebar":11,"./mod/district/story-slider":12,"./mod/district/video-grid":13,"./mod/global":14}],2:[function(n,t){"use strict";var i=window.jQuery,r=n("c2-debounce-af"),u=function(){var n=this;return function(t){var u={jwplayer:"jwplayer",youtube:"youtube"},o=i(t).find(".video-container > div").attr("id"),c=i("#"+o),s=i(t).attr("data-video-src"),l=i(t).attr("data-poster-image"),f=i(t).attr("data-video-player"),h=function(){var n=i(t).outerWidth();return n*.5625},e=null,a={flashplayer:"/Static/dist/jwplayer/player.swf",file:s,skin:"/Static/dist/jwplayer/glow/glow.xml",image:l,width:i(t).outerWidth(),height:h()},v=function(){var n='<iframe width="560" height="315"\n                src="https://www.youtube.com/embed/'+s+'" frameborder="0"\n                allow="autoplay; encrypted-media" allowfullscreen="true"><\/iframe>';c.append(n)},y=function(){if(f===u.jwplayer&&e!==null){var n=i(t).outerWidth(),r=h();e.resize(n,r)}};f===u.jwplayer&&(e=jwplayer(o).setup(a));f===u.youtube&&v();i(window).on("resize",r(y.bind(n),500))}}();t.exports=function(n){new u(n)}},{"c2-debounce-af":16}],3:[function(n,t){"use strict";var i=n("jquery"),e=n("moment"),r=n("query-string-handler"),u,f;n("fullcalendar");u=n("modal-handler");u.config({zIndexStart:9e3});f=function(){return function(n){var t=i(n),h=i("#calendar-details"),c=t.data("web-service"),f=i('input[name="category-filter"]'),o={category:r.getValue("category")},l="(max-width: 767.98px)",a=function(){f.click(function(){var n=i(this).val();o.category=n;r.replace({category:n});i(".calendar-container").each(function(){i(this).fullCalendar("refetchEvents")})})},v=function(){f.siblings("label").on("keydown",function(n){n.keyCode===13&&i(this).prev('input[type="radio"]').trigger("click")})},y=function(){var n=o.category,t=function(n,t){n.each(function(){if(i(this).val()===t)return i(this).trigger("click"),!1})},u=function(){var n=f.filter(":checked").val();return n!==undefined&&(o.category=n,r.replace({category:n}),i(".calendar-container").each(function(){i(this).fullCalendar("refetchEvents")})),!1};n!==undefined&&t(f,n);n===undefined&&u()},s=function(){window.matchMedia(l).matches?(i(".calendar-container").each(function(){i(this).fullCalendar("changeView","listMonth")}),t.find(".fc-toolbar .fc-right").hide()):t.find(".fc-toolbar .fc-right").show()},p=function(n){return n.displayDate+" "+n.displayTime},w=function(n,t,r){var f="",o,e,u,s,c,l,a,v,y;r.type==="month"&&i("#EventModal-"+n.occurrenceId).length>0||(r.type==="month"?(f=i("<div/>",{"class":"EventModal Modal "+n.categoryClass,id:"EventModal-"+n.occurrenceId}),h.append(f)):(f=i("<div/>",{"class":"EventDetails "+n.categoryClass}),i(t).find(".fc-list-item-title").append(f)),o=i("<button/>",{"class":"close",type:"button","aria-label":"Close"}),f.append(o),e=i("<div/>",{"class":"event-details"}),f.append(e),u=i("<div/>",{"class":"content"}),e.append(u),s=i("<h3/>",{text:n.title}),u.append(s),c=i("<div/>",{"class":"date",html:'<span class="label">'+n.dateLabelText+":<\/span> "+p(n)}),u.append(c),n.location&&(l=i("<div/>",{"class":"location",html:'<span class="label">'+n.locationLabelText+":<\/span> "+n.location}),u.append(l)),n.description&&(a=i("<div/>",{"class":"description",html:n.description}),u.append(a)),n.link&&(v=i("<a/>",{"class":"link",href:n.link,text:n.linkText}),u.append(v)),n.downloadLink&&(y=i("<a/>",{"class":"download-link",href:n.downloadLink,text:n.downloadLinkText}),u.append(y)))},b=function(n,t){var e,f,r;t.type==="month"?(e="#EventModal-"+n.attr("data-id"),f=u.create(e),f.open(),f.$el.find(".close").click(function(){f.close();f.$el.removeAttr("style")})):(r=n.find(".EventDetails"),r.hasClass("active")?r.find(".link").click(function(){var n=i(this).attr("href");window.location.href=n}):(r.addClass("active"),r.slideDown(),r.find(".close").click(function(n){n.stopPropagation();r.removeClass("active");r.slideUp()})))},k=function(n,t,r){n.fullCalendar({themeSystem:"bootstrap4",bootstrapFontAwesome:{listMonth:"fa-th-list",month:"fa-th"},events:{url:c,data:o},header:t,defaultView:"month",defaultDate:r,eventLimit:!0,lazyFetching:!0,displayEventTime:!0,eventRender:function(n,t,i){if(t.addClass(n.categoryClass),n.url===""||n.url===undefined)if(i.type==="month")t.attr("href","#");else{var r=t.children(".fc-list-item-title").children("a");r.attr("href","#")}t.attr("data-id",n.occurrenceId);w(n,t,i)},loading:function(n){i("#calendar-loading").toggle(n)},eventClick:function(n,t,r){if(n.url===""&&t.target.className!=="link"){t.preventDefault();var u=i(t.currentTarget);b(u,r)}}})};k(t,{left:"prev,next today",center:"title",right:"listMonth,month"},e());i(window).resize(function(){s()});y();a();v();s()}}();t.exports=function(n){new f(n)}},{fullcalendar:18,jquery:19,"modal-handler":20,moment:22,"query-string-handler":23}],4:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(n){var t=i(n),r=t.find(".jcarousel-skin-pika"),u;r.length>0&&(u=t.attr("data-carousel-speed"),r.find("li").length>1?(r.PikaChoose({carousel:!0,speed:u*1e3}),t.swipe({excludedElements:".jcarousel-container, .gallery-title",swipe:function(n){n==="left"&&t.find("a.next").click();n==="right"&&t.find("a.previous").click()}})):(t.addClass("oneSlide"),r.PikaChoose({autoPlay:!1})))}}();t.exports=function(n){new r(n)}},{}],5:[function(n,t){"use strict";var i=window.jQuery,u=n("c2-debounce-af"),r=function(){return function(){function u(n){var t=n.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop;return t.top+i}var r=document.querySelectorAll(".anchor-point"),t={},n=0;Array.prototype.forEach.call(r,function(n){t[n.id]=u(n)});i("ul > li.waves-light > aB").click(function(){i("ul > li.waves-light > a").removeClass("active-tab").addClass(" ")});i(".bookmark ul > li.waves-light > a").click(function(){var n=i(this).attr("href");if(!(i(n).length<1))return i(".bookmark ul > li.waves-light > a").removeClass("active-tab"),i(this).addClass("active-tab"),i("body, html").animate({scrollTop:i(n).offset().top},300),!1});window.onscroll=function(){var i=document.documentElement.scrollTop||document.body.scrollTop;for(n in t)t[n]<=i+300&&(document.querySelector(".active-tab")!==null&&document.querySelector(".active-tab").setAttribute("class"," "),document.querySelector('a[href*="'+n+'"]')!==null&&document.querySelector('a[href*="'+n+'"]').setAttribute("class","active-tab"))}}}();t.exports=function(){new r}},{"c2-debounce-af":16}],6:[function(n,t){"use strict";var i=n("jquery"),u=n("moment"),r=n("query-string-handler"),f,e;n("fullcalendar");f=n("modal-handler");f.config({zIndexStart:9e3});e=function(){return function(n){var t=i(n),s=i("#custom-calendar-2"),h=i("#custom-calendar-3"),b=i("#calendar-details"),k=t.data("web-service"),a=i('input[name="school-filter"]'),e=i('input[name="category-filter"]'),d=i('input[name="category-master-checkbox"]'),y=i("#RemoveCalendarCategory"),g=i("#CalendarMonthSelector"),p=1,c={school:r.getValue("school"),category:r.getValue("category")},o=[],nt="(max-width: 767.98px)",l=function(){rt();tt();r.replace({category:it()});i(".calendar-container").each(function(){i(this).fullCalendar("rerenderEvents")})},tt=function(){for(var t="",n=0;n<o.length;n++)t+='<span class="item">'+o[n].name+'\n                                <button type="button" class="close-btn" data-category-id="'+o[n].id+'" aria-label="Close">\n                                    <span class="icon-cancel-circle" aria-hidden="true"><\/span>\n                                <\/button>\n                            <\/span>';y.html(t)},it=function(){var n=[];return e.each(function(){var t=i(this);t.is(":checked")&&n.push(t.val())}),n.toString()},rt=function(){o=[];e.each(function(){var n=i(this),t=n.siblings("label").find(".category-title").text(),r=n.val();n.is(":checked")&&o.push({id:r,name:t})})},ut=function(n,t){for(var i,u=n.category.split(","),f=0,r=0;r<u.length;r++)for(i=0;i<o.length;i++)o[i].id===u[r]&&f++;f===0&&t.addClass("is-hidden")},ft=function(){a.click(function(){var n=i(this).val();c.school=n;r.replace({school:n});i(".calendar-container").each(function(){i(this).fullCalendar("refetchEvents")})});e.click(function(){l()});d.click(function(){i(this).is(":checked")?(e.prop("checked",!0),l()):(e.prop("checked",!1),l())});y.on("click",".close-btn",function(n){var t=n.currentTarget.attributes["data-category-id"].value;e.filter('[value="'+t+'"]').trigger("click")});t.on("click",".fc-listMonth-button",function(){var n=i(".calendar-container").not(":first-of-type");n.each(function(){i(this).fullCalendar("changeView","listMonth")})});t.on("click",".fc-month-button",function(){var n=i(".calendar-container").not(":first-of-type");n.each(function(){i(this).fullCalendar("changeView","month")})});g.on("change",function(){p=parseInt(i(this).val());switch(p){case 1:i(".calendar-container").hide();t.show();break;case 2:i(".calendar-container").hide();t.show();s.show();break;case 3:i(".calendar-container").hide();t.show();s.show();h.show();break;case 6:i(".calendar-container").hide();t.show();s.show();h.show();break;case 12:i(".calendar-container").hide();t.show();s.show();h.show();break;default:i(".calendar-container").hide();t.show()}})},et=function(){a.siblings("label").on("keydown",function(n){n.keyCode===13&&i(this).prev('input[type="radio"]').trigger("click")})},ot=function(){var n=c.school,t=c.category,u=function(n,t){n.each(function(){if(i(this).val()===t)return i(this).trigger("click"),!1})},f=function(n,t){var r=t.split(",");n.each(function(){var n=i(this);r.indexOf(n.val())!==-1&&n.prop("checked",!0)});l()},o=function(){var n=a.filter(":checked").val();return n!==undefined&&(c.school=n,r.replace({school:n}),i(".calendar-container").each(function(){i(this).fullCalendar("refetchEvents")})),!1};n!==undefined&&u(a,n);t!==undefined&&f(e,t);n===undefined&&o();t===undefined&&l()},w=function(){window.matchMedia(nt).matches?(i(".calendar-container").each(function(){i(this).fullCalendar("changeView","listMonth")}),t.find(".fc-toolbar .fc-right").hide()):t.find(".fc-toolbar .fc-right").show()},st=function(n){return n.displayDate+" "+n.displayTime},ht=function(n,t,r){var f="",o,e,s,u,h,c,l,a,v,y;r.type==="month"&&i("#EventModal-"+n.id).length>0||(r.type==="month"?(f=i("<div/>",{"class":"EventModal Modal "+n.categoryClass,id:"EventModal-"+n.id}),b.append(f)):(f=i("<div/>",{"class":"EventDetails "+n.categoryClass}),i(t).find(".fc-list-item-title").append(f)),o=i("<button/>",{"class":"close",type:"button","aria-label":"Close"}),f.append(o),e=i("<div/>",{"class":"event-details"}),f.append(e),s=i("<div/>",{"class":"image"}),e.append(s),u=i("<div/>",{"class":"content"}),e.append(u),h=i("<h3/>",{text:n.title}),u.append(h),c=i("<div/>",{"class":"date",html:'<span class="label">'+n.dateLabelText+":<\/span> "+st(n)}),u.append(c),n.location&&(l=i("<div/>",{"class":"location",html:'<span class="label">'+n.locationLabelText+":<\/span> "+n.location}),u.append(l)),n.description&&(a=i("<div/>",{"class":"description",html:n.description}),u.append(a)),n.link&&(v=i("<a/>",{"class":"link",href:n.link,text:n.linkText}),u.append(v)),n.downloadLink&&(y=i("<a/>",{"class":"download-link",href:n.downloadLink,text:n.downloadLinkText}),u.append(y)))},ct=function(n,t){var e,u,r;t.type==="month"?(e="#EventModal-"+n.attr("data-id"),u=f.create(e),u.open(),u.$el.find(".close").click(function(){u.close();u.$el.removeAttr("style")})):(r=n.find(".EventDetails"),r.hasClass("active")?r.find(".link").click(function(){var n=i(this).attr("href");window.location.href=n}):(r.addClass("active"),r.slideDown(),r.find(".close").click(function(n){n.stopPropagation();r.removeClass("active");r.slideUp()})))},v=function(n,t,r){n.fullCalendar({themeSystem:"bootstrap4",bootstrapFontAwesome:{listMonth:"fa-th-list",month:"fa-th"},events:{url:k,data:c},header:t,defaultView:"month",defaultDate:r,eventLimit:!0,lazyFetching:!0,displayEventTime:!0,eventRender:function(n,t,i){if(t.addClass(n.categoryClass),n.url===""||n.url===undefined)if(i.type==="month")t.attr("href","#");else{var r=t.children(".fc-list-item-title").children("a");r.attr("href","#")}t.attr("data-id",n.id);e.length>0&&ut(n,t);ht(n,t,i)},loading:function(n){i("#calendar-loading").toggle(n)},eventClick:function(n,t,r){if(n.url===""&&t.target.className!=="link"){t.preventDefault();var u=i(t.currentTarget);ct(u,r)}}})};v(t,{left:"prev,next today",center:"title",right:"listMonth,month"},u());s.length>0&&v(s,{left:"",center:"title",right:""},u().add(1,"months"));h.length>0&&v(h,{left:"",center:"title",right:""},u().add(2,"months"));i(window).resize(function(){w()});ot();ft();et();w()}}();t.exports=function(n){new e(n)}},{fullcalendar:18,jquery:19,"modal-handler":20,moment:22,"query-string-handler":23}],7:[function(){"use strict"},{}],8:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(){if(i("#full-nav-container").length>0){document.querySelector("#nav-toggle").addEventListener("click",function(){this.classList.toggle("active")});var n=function(){return"ontouchstart"in window||navigator.maxTouchPoints};i("ul.menuList").hide();i("#nav-toggle").trigger("click");i("#nav-toggle").click(function(){i("ul.nav-submenu").hide();i("#nav-toggle").hasClass("active")?(i("#full-nav-container").addClass("menu-overlay"),i("#header").addClass("overlay-top"),i("#full-nav").removeClass("hide-full-menu"),i("ul.menuList").slideDown(500),i("#nav-wrapper").hide()):(i("#full-nav").addClass("hide-full-menu"),i("ul.menuList").hide(),i("#nav-wrapper").show(),i("#full-nav-container").removeClass("menu-overlay"),i("#header").removeClass("overlay-top"))});n&&i(".menuList > li").click(function(){var n=i(this).find("ul.nav-submenu");n.toggle(800)});i(".menuList > li").hover(function(){var n=i(this).find("ul.nav-submenu");n.hasClass("nav-submenu")&&n.slideDown(800)},function(){var n=i(this).find("ul.nav-submenu");n.hasClass("nav-submenu")&&n.stop().hide()})}}}();t.exports=function(){new r}},{}],9:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(n){var t=n,r=i("#"+t);document.getElementById(t)&&r.find(".toggleButton").click(function(n){n.preventDefault();r.find(".menuButtonList").slideToggle()})}}();t.exports=function(n){new r(n)}},{}],10:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(){i("#header").length>0&&(i(document).scroll(function(){var n=i(window).scrollTop();n>=150?i(".header-fixed").addClass("move-header"):i(".header-fixed").removeClass("move-header")}),(i("div").hasClass("MSG_EMER")||i("div").hasClass("MSG_INFO"))&&(i("#header").removeClass("header-fixed"),i("#form-wrapper").removeClass("header-fixed"),i("#sticker").removeAttr("id")),i("div").hasClass("MSG_EMER")||i("div").hasClass("MSG_INFO")?i("#sticker").sticky({topSpacing:0,zIndex:100}):i("#sticker").sticky({topSpacing:56,zIndex:100}))}}();t.exports=function(){new r}},{}],11:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(n){function t(){return"ontouchstart"in window||"onmsgesturechange"in window}var r=i("#header").outerHeight();i(n).stick_in_parent({offset_top:r});(i(window).width()<768||t())&&i(n).trigger("sticky_kit:detach");i(window).on("resize",function(){i(this).width()<768&&i(n).trigger("sticky_kit:detach")})}}();t.exports=function(n){new r(n)}},{}],12:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(n){var f=i(n),e=f.find(".news"),t=f.find(".storyselector"),r=0,o,u,s=function(){var n=r===o-1?0:r+1;h(t.find("li a:eq("+n+")"))},h=function(n){var i=t.find("li a").index(n);t.find("li").removeClass("selected");t.find("li:eq("+i+")").addClass("selected");e.find(".tab").hide();e.find(".tab:eq("+i+")").show();r=i};o=t.find("li a").length;t.find("li a").click(function(){return h(i(this)),!1});u=setInterval(s,9e3);i('[id^="tabs-"]').hover(function(){clearInterval(u)},function(){u=setInterval(s,9e3)});t.find("li a:eq("+r+")").click()}}();t.exports=function(n){new r(n)}},{}],13:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(n){var t=i(n),f=t.find(".video-item"),r=function(n){var i=t.find(".video-item").eq(n);f.find(".now_playing").addClass("hide");i.find(".now_playing").removeClass("hide")},u=function(n){var i=t.find(".video-item").eq(n).find("a.video-link").data("post-id"),r='<iframe title="YouTube video player" width="670" height="377" src="https://www.youtube.com/embed/'+i+'?theme=dark&rel=0&wmode=transparent&autoplay=0" frameborder="0" allowfullscreen><\/iframe>';t.find(".video-container").html(r)};t.find("a.video-link").click(function(){var n=i(this).parents(".video-item").index();r(n);u(n)});r(0);u(0)}}();t.exports=function(n){new r(n)}},{}],14:[function(n){"use strict";var t=window.jQuery,i=n("./print");t("table").wrap('<div class="Responsive-Table"><\/div>');t(".print-page").length>0&&new i(".print-page");t(".sidebar_title").length>0&&t(".sidebar_title").each(function(){t(this).children("span").length>0||t(this).wrapInner("<span><\/span>")})},{"./print":15}],15:[function(n,t){"use strict";var i=window.jQuery,r=function(){return function(n){i(n).click(function(){return window.print(),!1})}}();t.exports=function(n){new r(n)}},{}],16:[function(n,t){"use strict";function i(n){if(typeof window!="undefined"&&!("requestAnimationFrame"in window))return n;var t=null;return function(){for(var r=arguments.length,u=Array(r),i=0;i<r;i++)u[i]=arguments[i];t!==null&&cancelAnimationFrame(t);t=requestAnimationFrame(function(){n.apply(undefined,u);t=null})}}t.exports=i},{}],17:[function(n,t){"use strict";var u=function(n,t){var i=this;if(typeof n=="string"&&n.length&&typeof t!="undefined"){if(n.indexOf(" ")>-1){n.split(" ").forEach(function(n){u.call(i,n,t)});return}this._events=this._events||{};this._events[n]=this._events[n]||[];this._events[n].push(t)}},f=function(n,t){var r=this,i;if(typeof n=="string"&&n.length){if(n.indexOf(" ")>-1){n.split(" ").forEach(function(n){f.call(r,n,t)});return}if(this._events=this._events||{},n in this._events!=!1){if(typeof t=="undefined"){delete this._events[n];return}i=this._events[n].indexOf(t);i>-1&&(this._events[n].length===1?delete this._events[n]:this._events[n].splice(i,1))}}},i=function(n){for(var f,e=this,r=arguments.length,u=Array(r>1?r-1:0),t=1;t<r;t++)u[t-1]=arguments[t];(f=n.lastIndexOf(":"),f>-1&&i.call.apply(i,[this,n.substring(0,f)].concat(u)),this._events=this._events||{},n in this._events!=!1)&&this._events[n].forEach(function(n){n.apply(e,u)})},e=function(){},r=e.prototype,o;r.on=u;r.off=f;r.emit=i;r.bind=u;r.unbind=f;r.trigger=i;o=function(n){return arguments.length===0?new e:(typeof n=="function"&&(n.prototype.on=u,n.prototype.off=f,n.prototype.emit=i),typeof n=="object"&&(n.on=u,n.off=f,n.emit=i),n)};o.EventConstructor=e;t.exports=o},{}],18:[function(n,t,i){(function(r,u){typeof i=="object"&&typeof t=="object"?t.exports=u(n("moment"),n("jquery")):typeof define=="function"&&define.amd?define(["moment","jquery"],u):typeof i=="object"?i.FullCalendar=u(n("moment"),n("jquery")):r.FullCalendar=u(r.moment,r.jQuery)})(typeof self!="undefined"?self:this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=236)}([function(t){t.exports=n},,function(n,t){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};t.__extends=function(n,t){function r(){this.constructor=n}i(n,t);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}},function(n){n.exports=t},function(n,t,i){function nt(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function tt(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function it(){r("body").addClass("fc-not-allowed")}function rt(){r("body").removeClass("fc-not-allowed")}function ut(n,t,i){var u=Math.floor(t/n.length),e=Math.floor(t-u*(n.length-1)),f=[],o=[],s=[],h=0;c(n);n.each(function(t,i){var l=t===n.length-1?e:u,c=r(i).outerHeight(!0);c<l?(f.push(i),o.push(c),s.push(r(i).height())):h+=c});i&&(t-=h,u=Math.floor(t/f.length),e=Math.floor(t-u*(f.length-1)));r(f).each(function(n,t){var i=n===f.length-1?e:u,h=o[n],c=s[n],l=i-(h-c);h<i&&r(t).height(l)})}function c(n){n.height("")}function ft(n){var t=0;return n.find("> *").each(function(n,i){var u=r(i).outerWidth();u>t&&(t=u)}),t++,n.width(t),t}function et(n,t){var i=n.add(t),r;return i.css({position:"relative",left:-1}),r=n.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),r}function ot(n){var i=n.css("position"),t=n.parents().filter(function(){var n=r(this);return/(auto|scroll)/.test(n.css("overflow")+n.css("overflow-y")+n.css("overflow-x"))}).eq(0);return i==="fixed"||!t.length?r(n[0].ownerDocument||document):t}function st(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function ht(n,t){var i=n.offset(),r=l(n),u=i.left+f(n,"border-left-width")+r.left-(t?t.left:0),e=i.top+f(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:e,bottom:e+n[0].clientHeight}}function ct(n,t){var i=n.offset(),r=i.left+f(n,"border-left-width")+f(n,"padding-left")-(t?t.left:0),u=i.top+f(n,"border-top-width")+f(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function l(n){var t=n[0].offsetWidth-n[0].clientWidth,r=n[0].offsetHeight-n[0].clientHeight,i;return t=a(t),r=a(r),i={left:0,right:0,top:0,bottom:r},lt()&&n.css("direction")==="rtl"?i.left=t:i.right=t,i}function a(n){return n=Math.max(0,n),Math.round(n)}function lt(){return s===null&&(s=at()),s}function at(){var n=r("<div><div/><\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),t=n.children(),i=t.offset().left>n.offset().left;return n.remove(),i}function f(n,t){return parseFloat(n.css(t))||0}function vt(n){return n.which===1&&!n.ctrlKey}function yt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageX:n.pageX}function pt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageY:n.pageY}function wt(n){return/^touch/.test(n.type)}function bt(n){n.addClass("fc-unselectable").on("selectstart",h)}function kt(n){n.removeClass("fc-unselectable").off("selectstart",h)}function h(n){n.preventDefault()}function dt(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom?i:!1}function gt(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function ni(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function ti(n,t){return{left:n.left-t.left,top:n.top-t.top}}function ii(n){var f=[],i=[],u,t;for(typeof n=="string"?i=n.split(/\s*,\s*/):typeof n=="function"?i=[n]:r.isArray(n)&&(i=n),u=0;u<i.length;u++)t=i[u],typeof t=="string"?f.push(t.charAt(0)==="-"?{field:t.substring(1),order:-1}:{field:t,order:1}):typeof t=="function"&&f.push({func:t});return f}function ri(n,t,i,r,u){for(var e,f=0;f<i.length;f++)if(e=v(n,t,i[f],r,u),e)return e;return 0}function v(n,t,i,r,u){if(i.func)return i.func(n,t);var f=n[i.field],e=t[i.field];return f==null&&r&&(f=r[i.field]),e==null&&u&&(e=u[i.field]),y(f,e)*(i.order||1)}function y(n,t){return!n&&!t?0:t==null?-1:n==null?1:r.type(n)==="string"||r.type(t)==="string"?String(n).localeCompare(String(t)):n-t}function ui(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:n.time()-t.time()})}function fi(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days")})}function ei(n,t,i){return u.duration(Math.round(n.diff(t,i,!0)),i)}function p(n,i){for(var u,f,r=0;r<t.unitsDesc.length;r++)if(u=t.unitsDesc[r],f=si(u,n,i),f>=1&&e(f))break;return u}function oi(n,t){var i=p(n);return i==="week"&&typeof t=="object"&&t.days&&(i="day"),i}function si(n,t,i){return i!=null?i.diff(t,n,!0):u.isDuration(t)?t.as(n):t.end.diff(t.start,n,!0)}function hi(n,t,i){var r;return o(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&e(r))?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays()}function ci(n,t){var i,r;return o(n)||o(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&e(i)&&Math.abs(r)>=1&&e(r))?i/r:n.asDays()/t.asDays()}function li(n,t){var i;return o(n)?u.duration(n*t):(i=n.asMonths(),Math.abs(i)>=1&&e(i))?u.duration({months:i*t}):u.duration({days:n.asDays()*t})}function o(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function ai(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function vi(n){return typeof n=="string"&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function w(){for(var n,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return n=window.console,n&&n.log?n.log.apply(n,i):void 0}function yi(){for(var n,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return n=window.console,n&&n.warn?n.warn.apply(n,i):w.apply(null,i)}function k(n,t){var u={},i,r,e,o,f,s;if(t)for(i=0;i<t.length;i++){for(r=t[i],e=[],o=n.length-1;o>=0;o--)if(f=n[o][r],typeof f=="object")e.unshift(f);else if(f!==undefined){u[r]=f;break}e.length&&(u[r]=k(e))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in u||(u[r]=s[r])}return u}function pi(n,t){for(var i in n)d(n,i)&&(t[i]=n[i])}function d(n,t){return b.call(n,t)}function wi(n,t,i){if(r.isFunction(n)&&(n=[n]),n){for(var u=void 0,f=void 0,u=0;u<n.length;u++)f=n[u].apply(t,i)||f;return f}}function bi(n,t){for(var r=0,i=0;i<n.length;)t(n[i])?(n.splice(i,1),r++):i++;return r}function ki(n,t){for(var r=0,i=0;i<n.length;)n[i]===t?(n.splice(i,1),r++):i++;return r}function di(n,t){var r=n.length,i;if(r==null||r!==t.length)return!1;for(i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function gi(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(n=0;n<t.length;n++)if(t[n]!==undefined)return t[n]}function g(n){return(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function nr(n){return n.replace(/&.*?;/g,"")}function tr(n){var t=[];return r.each(n,function(n,i){i!=null&&t.push(n+":"+i)}),t.join(";")}function ir(n){var t=[];return r.each(n,function(n,i){i!=null&&t.push(n+'="'+g(i)+'"')}),t.join(" ")}function rr(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ur(n,t){return n-t}function e(n){return n%1==0}function fr(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function er(n,t,i){i===void 0&&(i=!1);var r,u,f,o,e,s=function(){var h=+new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u),f=u=null))};return function(){f=this;u=arguments;o=+new Date;var h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u),f=u=null),e}}var u,r,s,b;Object.defineProperty(t,"__esModule",{value:!0});u=i(0);r=i(3);t.compensateScroll=nt;t.uncompensateScroll=tt;t.disableCursor=it;t.enableCursor=rt;t.distributeHeight=ut;t.undistributeHeight=c;t.matchCellWidths=ft;t.subtractInnerElHeight=et;t.getScrollParent=ot;t.getOuterRect=st;t.getClientRect=ht;t.getContentRect=ct;t.getScrollbarWidths=l;s=null;t.isPrimaryMouseButton=vt;t.getEvX=yt;t.getEvY=pt;t.getEvIsTouch=wt;t.preventSelection=bt;t.allowSelection=kt;t.preventDefault=h;t.intersectRects=dt;t.constrainPoint=gt;t.getRectCenter=ni;t.diffPoints=ti;t.parseFieldSpecs=ii;t.compareByFieldSpecs=ri;t.compareByFieldSpec=v;t.flexibleCompare=y;t.dayIDs=["sun","mon","tue","wed","thu","fri","sat"];t.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"];t.diffDayTime=ui;t.diffDay=fi;t.diffByUnit=ei;t.computeGreatestUnit=p;t.computeDurationGreatestUnit=oi;t.divideRangeByDuration=hi;t.divideDurationByDuration=ci;t.multiplyDuration=li;t.durationHasTime=o;t.isNativeDate=ai;t.isTimeString=vi;t.log=w;t.warn=yi;b={}.hasOwnProperty;t.mergeProps=k;t.copyOwnProps=pi;t.hasOwnProp=d;t.applyAll=wi;t.removeMatching=bi;t.removeExact=ki;t.isArraysEqual=di;t.firstDefined=gi;t.htmlEscape=g;t.stripHtmlEntities=nr;t.cssToStr=tr;t.attrsToStr=ir;t.capitaliseFirstLetter=rr;t.compareNumbers=ur;t.isInt=e;t.proxy=fr;t.debounce=er},function(n,t,i){function e(n,t){return n.startMs-t.startMs}Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(10),f=function(){function n(n,t){this.isStart=!0;this.isEnd=!0;r.isMoment(n)&&(n=n.clone().stripZone());r.isMoment(t)&&(t=t.clone().stripZone());n&&(this.startMs=n.valueOf());t&&(this.endMs=t.valueOf())}return n.invertRanges=function(t,i){var o=[],r=i.startMs,f,u;for(t.sort(e),f=0;f<t.length;f++)u=t[f],u.startMs>r&&o.push(new n(r,u.startMs)),u.endMs>r&&(r=u.endMs);return r<i.endMs&&o.push(new n(r,i.endMs)),o},n.prototype.intersect=function(t){var i=this.startMs,r=this.endMs,u=null;return t.startMs!=null&&(i=i==null?t.startMs:Math.max(i,t.startMs)),t.endMs!=null&&(r=r==null?t.endMs:Math.min(r,t.endMs)),(i==null||r==null||i<r)&&(u=new n(i,r),u.isStart=this.isStart&&i===this.startMs,u.isEnd=this.isEnd&&r===this.endMs),u},n.prototype.intersectsWith=function(n){return(this.endMs==null||n.startMs==null||this.endMs>n.startMs)&&(this.startMs==null||n.endMs==null||this.startMs<n.endMs)},n.prototype.containsRange=function(n){return(this.startMs==null||n.startMs!=null&&n.startMs>=this.startMs)&&(this.endMs==null||n.endMs!=null&&n.endMs<=this.endMs)},n.prototype.containsDate=function(n){var t=n.valueOf();return(this.startMs==null||t>=this.startMs)&&(this.endMs==null||t<this.endMs)},n.prototype.constrainDate=function(n){var t=n.valueOf();return this.startMs!=null&&t<this.startMs&&(t=this.startMs),this.endMs!=null&&t>=this.endMs&&(t=this.endMs-1),t},n.prototype.equals=function(n){return this.startMs===n.startMs&&this.endMs===n.endMs},n.prototype.clone=function(){var t=new n(this.startMs,this.endMs);return t.isStart=this.isStart,t.isEnd=this.isEnd,t},n.prototype.getStart=function(){return this.startMs!=null?u.default.utc(this.startMs).stripZone():null},n.prototype.getEnd=function(){return this.endMs!=null?u.default.utc(this.endMs).stripZone():null},n.prototype.as=function(n){return r.utc(this.endMs).diff(r.utc(this.startMs),n,!0)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(208),o=i(33),s=i(49),u=function(n){function t(i){var r=n.call(this)||this;return r.calendar=i,r.className=[],r.uid=String(t.uuid++),r}return f.__extends(t,n),t.parse=function(n,t){var i=new this(t);return typeof n=="object"&&i.applyProps(n)?i:!1},t.normalizeId=function(n){return n?String(n):null},t.prototype.fetch=function(){},t.prototype.removeEventDefsById=function(){},t.prototype.removeAllEventDefs=function(){},t.prototype.getPrimitive=function(){},t.prototype.parseEventDefs=function(n){for(var i,r=[],t=0;t<n.length;t++)i=this.parseEventDef(n[t]),i&&r.push(i);return r},t.prototype.parseEventDef=function(n){var t=this.calendar.opt("eventDataTransform"),i=this.eventDataTransform;return t&&(n=t(n,this.calendar)),i&&(n=i(n,this.calendar)),s.default.parse(n,this)},t.prototype.applyManualStandardProps=function(n){return n.id!=null&&(this.id=t.normalizeId(n.id)),e.isArray(n.className)?this.className=n.className:typeof n.className=="string"&&(this.className=n.className.split(/\s+/)),!0},t.uuid=0,t.defineStandardProps=r.default.defineStandardProps,t.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,t}(o.default);t.default=u;r.default.mixInto(u);u.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(14),e=0,o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.listenTo=function(n,t,i){if(typeof t=="object")for(var r in t)t.hasOwnProperty(r)&&this.listenTo(n,r,t[r]);else if(typeof t=="string")n.on(t+"."+this.getListenerNamespace(),u.proxy(i,this))},t.prototype.stopListeningTo=function(n,t){n.off((t||"")+"."+this.getListenerNamespace())},t.prototype.getListenerNamespace=function(){return this.listenerId==null&&(this.listenerId=e++),"_listener"+this.listenerId},t}(f.default);t.default=o},,,function(n,t,i){function v(n,t){return f.format.call(n,t)}function s(n,t,i){t===void 0&&(t=!1);i===void 0&&(i=!1);var u=n[0],s=n.length===1&&typeof u=="string",e,o,v,f;return r.isMoment(u)||c.isNativeDate(u)||u===undefined?f=r.apply(null,n):(e=!1,o=!1,s?l.test(u)?(u+="-01",n=[u],e=!0,o=!0):(v=a.exec(u))&&(e=!v[5],o=!0):h.isArray(u)&&(o=!0),f=t||e?r.utc.apply(r,n):r.apply(null,n),e?(f._ambigTime=!0,f._ambigZone=!0):i&&(o?f._ambigZone=!0:s&&f.utcOffset(u))),f._fullCalendar=!0,f}var f,e,o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),h=i(3),c=i(4),l=/^\s*\d{4}-\d\d$/,a=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,u=r.fn;t.newMomentProto=u;f=h.extend({},u);t.oldMomentProto=f;e=r.momentProperties;e.push("_fullCalendar");e.push("_ambigTime");e.push("_ambigZone");t.oldMomentFormat=v;o=function(){return s(arguments)};t.default=o;o.utc=function(){var n=s(arguments,!0);return n.hasTime()&&n.utc(),n};o.parseZone=function(){return s(arguments,!0,!0)};u.week=u.weeks=function(n){var t=this._locale._fullCalendar_weekCalc;return n==null&&typeof t=="function"?t(this):t==="ISO"?f.isoWeek.apply(this,arguments):f.week.apply(this,arguments)};u.time=function(n){if(!this._fullCalendar)return f.time.apply(this,arguments);if(n==null)return r.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1;r.isDuration(n)||r.isMoment(n)||(n=r.duration(n));var t=0;return r.isDuration(n)&&(t=Math.floor(n.asDays())*24),this.hours(t+n.hours()).minutes(n.minutes()).seconds(n.seconds()).milliseconds(n.milliseconds())};u.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this};u.hasTime=function(){return!this._ambigTime};u.stripZone=function(){var n;return this._ambigZone||(n=this._ambigTime,this.utc(!0),this._ambigTime=n||!1,this._ambigZone=!0),this};u.hasZone=function(){return!this._ambigZone};u.local=function(n){return f.local.call(this,this._ambigZone||n),this._ambigTime=!1,this._ambigZone=!1,this};u.utc=function(n){return f.utc.call(this,n),this._ambigTime=!1,this._ambigZone=!1,this};u.utcOffset=function(n){return n!=null&&(this._ambigTime=!1,this._ambigZone=!1),f.utcOffset.apply(this,arguments)}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(14),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.on=function(n,t){r(this).on(n,this._prepareIntercept(t));return this},t.prototype.one=function(n,t){r(this).one(n,this._prepareIntercept(t));return this},t.prototype._prepareIntercept=function(n){var t=function(t,i){return n.apply(i.context||this,i.args||[])};return n.guid||(n.guid=r.guid++),t.guid=n.guid,t},t.prototype.off=function(n,t){return r(this).off(n,t),this},t.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r(this).triggerHandler(n,{args:i}),this},t.prototype.triggerWith=function(n,t,i){return r(this).triggerHandler(n,{context:t,args:i}),this},t.prototype.hasHandlers=function(n){var t=r._data(this,"events");return t&&t[n]&&t[n].length>0},t}(f.default);t.default=e},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.isAllDay=!1;this.unzonedRange=n;this.isAllDay=t}return n.prototype.toLegacy=function(n){return{start:n.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:n.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(34),o=i(209),r=i(17),u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return f.__extends(t,n),t.prototype.buildInstances=function(){return[this.buildInstance()]},t.prototype.buildInstance=function(){return new o.default(this,this.dateProfile)},t.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.dateProfile=this.dateProfile,t},t.prototype.rezone=function(){var n=this.source.calendar,t=this.dateProfile;this.dateProfile=new r.default(n.moment(t.start),t.end?n.moment(t.end):null,n)},t.prototype.applyManualStandardProps=function(t){var u=n.prototype.applyManualStandardProps.call(this,t),i=r.default.parse(t,this.source);return i?(this.dateProfile=i,t.date!=null&&(this.miscProps.date=t.date),u):!1},t}(e.default);t.default=u;u.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.mixInto=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]||(n.prototype[i]=t.prototype[i])})},n.mixOver=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]=t.prototype[i]})},n}();t.default=i},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.view=n._getView();this.component=n}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.end=function(){},n}();t.default=i},function(n,t,i){var r,u,f,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,e,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai;Object.defineProperty(t,"__esModule",{value:!0});t.version="3.9.0";t.internalApiVersion=12;r=i(4);t.applyAll=r.applyAll;t.debounce=r.debounce;t.isInt=r.isInt;t.htmlEscape=r.htmlEscape;t.cssToStr=r.cssToStr;t.proxy=r.proxy;t.capitaliseFirstLetter=r.capitaliseFirstLetter;t.getOuterRect=r.getOuterRect;t.getClientRect=r.getClientRect;t.getContentRect=r.getContentRect;t.getScrollbarWidths=r.getScrollbarWidths;t.preventDefault=r.preventDefault;t.parseFieldSpecs=r.parseFieldSpecs;t.compareByFieldSpecs=r.compareByFieldSpecs;t.compareByFieldSpec=r.compareByFieldSpec;t.flexibleCompare=r.flexibleCompare;t.computeGreatestUnit=r.computeGreatestUnit;t.divideRangeByDuration=r.divideRangeByDuration;t.divideDurationByDuration=r.divideDurationByDuration;t.multiplyDuration=r.multiplyDuration;t.durationHasTime=r.durationHasTime;t.log=r.log;t.warn=r.warn;t.removeExact=r.removeExact;t.intersectRects=r.intersectRects;u=i(47);t.formatDate=u.formatDate;t.formatRange=u.formatRange;t.queryMostGranularFormatUnit=u.queryMostGranularFormatUnit;f=i(31);t.datepickerLocale=f.datepickerLocale;t.locale=f.locale;o=i(10);t.moment=o.default;s=i(11);t.EmitterMixin=s.default;h=i(7);t.ListenerMixin=h.default;c=i(48);t.Model=c.default;l=i(207);t.Constraints=l.default;a=i(5);t.UnzonedRange=a.default;v=i(12);t.ComponentFootprint=v.default;y=i(212);t.BusinessHourGenerator=y.default;p=i(34);t.EventDef=p.default;w=i(37);t.EventDefMutation=w.default;b=i(38);t.EventSourceParser=b.default;k=i(6);t.EventSource=k.default;d=i(51);t.defineThemeSystem=d.defineThemeSystem;g=i(18);t.EventInstanceGroup=g.default;nt=i(52);t.ArrayEventSource=nt.default;tt=i(215);t.FuncEventSource=tt.default;it=i(216);t.JsonFeedEventSource=it.default;rt=i(36);t.EventFootprint=rt.default;ut=i(33);t.Class=ut.default;ft=i(14);t.Mixin=ft.default;et=i(53);t.CoordCache=et.default;ot=i(54);t.DragListener=ot.default;st=i(20);t.Promise=st.default;ht=i(217);t.TaskQueue=ht.default;ct=i(218);t.RenderQueue=ct.default;lt=i(39);t.Scroller=lt.default;at=i(19);t.Theme=at.default;vt=i(219);t.DateComponent=vt.default;yt=i(40);t.InteractiveDateComponent=yt.default;pt=i(220);t.Calendar=pt.default;wt=i(41);t.View=wt.default;e=i(22);t.defineView=e.defineView;t.getViewConfig=e.getViewConfig;bt=i(55);t.DayTableMixin=bt.default;kt=i(56);t.BusinessHourRenderer=kt.default;dt=i(42);t.EventRenderer=dt.default;gt=i(57);t.FillRenderer=gt.default;ni=i(58);t.HelperRenderer=ni.default;ti=i(222);t.ExternalDropping=ti.default;ii=i(223);t.EventResizing=ii.default;ri=i(59);t.EventPointing=ri.default;ui=i(224);t.EventDragging=ui.default;fi=i(225);t.DateSelecting=fi.default;ei=i(60);t.StandardInteractionsMixin=ei.default;oi=i(226);t.AgendaView=oi.default;si=i(227);t.TimeGrid=si.default;hi=i(61);t.DayGrid=hi.default;ci=i(62);t.BasicView=ci.default;li=i(229);t.MonthView=li.default;ai=i(230);t.ListView=ai.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n,t,i){this.start=n;this.end=t||null;this.unzonedRange=this.buildUnzonedRange(i)}return n.parse=function(t,i){var o=t.start||t.date,s=t.end;if(!o)return!1;var f=i.calendar,u=f.moment(o),r=s?f.moment(s):null,e=t.allDay,h=f.opt("forceEventDuration");return u.isValid()?(!r||r.isValid()&&r.isAfter(u)||(r=null),e==null&&(e=i.allDayDefault,e==null&&(e=f.opt("allDayDefault"))),e===!0?(u.stripTime(),r&&r.stripTime()):e===!1&&(u.hasTime()||u.time(0),r&&!r.hasTime()&&r.time(0)),!r&&h&&(r=f.getDefaultEventEnd(!u.hasTime(),u)),new n(u,r,f)):!1},n.isStandardProp=function(n){return n==="start"||n==="date"||n==="end"||n==="allDay"},n.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},n.prototype.buildUnzonedRange=function(n){var t=this.start.clone().stripZone().valueOf(),i=this.getEnd(n).stripZone().valueOf();return new r.default(t,i)},n.prototype.getEnd=function(n){return this.end?this.end.clone():n.getDefaultEventEnd(this.isAllDay(),this.start)},n}();t.default=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),r=i(35),u=i(211),e=function(){function n(n){this.eventInstances=n||[]}return n.prototype.getAllEventRanges=function(n){return n?this.sliceNormalRenderRanges(n):this.eventInstances.map(r.eventInstanceToEventRange)},n.prototype.sliceRenderRanges=function(n){return this.isInverse()?this.sliceInverseRenderRanges(n):this.sliceNormalRenderRanges(n)},n.prototype.sliceNormalRenderRanges=function(n){for(var f=this.eventInstances,i,r,e=[],t=0;t<f.length;t++)i=f[t],r=i.dateProfile.unzonedRange.intersect(n),r&&e.push(new u.default(r,i.def,i));return e},n.prototype.sliceInverseRenderRanges=function(n){var t=this.eventInstances.map(r.eventInstanceToUnzonedRange),i=this.getEventDef();return t=f.default.invertRanges(t,n),t.map(function(n){return new u.default(n,i)})},n.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},n.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=function(){function n(n){this.optionsManager=n;this.processIconOverride()}return n.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},n.prototype.setIconOverride=function(n){var t,i;if(u.isPlainObject(n)){t=u.extend({},this.iconClasses);for(i in n)t[i]=this.applyIconOverridePrefix(n[i]);this.iconClasses=t}else n===!1&&(this.iconClasses={})},n.prototype.applyIconOverridePrefix=function(n){var t=this.iconOverridePrefix;return t&&n.indexOf(t)!==0&&(n=t+n),n},n.prototype.getClass=function(n){return this.classes[n]||""},n.prototype.getIconClass=function(n){var t=this.iconClasses[n];return t?this.baseIconClass+" "+t:""},n.prototype.getCustomButtonIconClass=function(n){var t;return this.iconOverrideCustomButtonOption&&(t=n[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},n}();t.default=r;r.prototype.classes={};r.prototype.iconClasses={};r.prototype.baseIconClass="";r.prototype.iconOverridePrefix=""},function(n,t,i){function f(n,t){n.then=function(i){return typeof i=="function"?u.resolve(i(t)):n}}function e(n){n.then=function(t,i){return typeof i=="function"&&i(),n}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u={construct:function(n){var t=r.Deferred(),i=t.promise();return typeof n=="function"&&n(function(n){t.resolve(n);f(i,n)},function(){t.reject();e(i)}),i},resolve:function(n){var i=r.Deferred().resolve(n),t=i.promise();return f(t,n),t},reject:function(){var t=r.Deferred().reject(),n=t.promise();return e(n),n}};t.default=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),o=i(16),s=i(11),h=i(7);o.touchMouseIgnoreWait=500;var r=null,f=0,e=function(){function n(){this.isTouching=!1;this.mouseIgnoreDepth=0}return n.get=function(){return r||(r=new n,r.bind()),r},n.needed=function(){n.get();f++},n.unneeded=function(){f--;f||(r.unbind(),r=null)},n.prototype.bind=function(){var n=this;this.listenTo(u(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu});window.addEventListener("touchmove",this.handleTouchMoveProxy=function(t){n.handleTouchMove(u.Event(t))},{passive:!1});window.addEventListener("scroll",this.handleScrollProxy=function(t){n.handleScroll(u.Event(t))},!0)},n.prototype.unbind=function(){this.stopListeningTo(u(document));window.removeEventListener("touchmove",this.handleTouchMoveProxy);window.removeEventListener("scroll",this.handleScrollProxy,!0)},n.prototype.handleTouchStart=function(n){this.stopTouch(n,!0);this.isTouching=!0;this.trigger("touchstart",n)},n.prototype.handleTouchMove=function(n){this.isTouching&&this.trigger("touchmove",n)},n.prototype.handleTouchCancel=function(n){this.isTouching&&(this.trigger("touchcancel",n),this.stopTouch(n))},n.prototype.handleTouchEnd=function(n){this.stopTouch(n)},n.prototype.handleMouseDown=function(n){this.shouldIgnoreMouse()||this.trigger("mousedown",n)},n.prototype.handleMouseMove=function(n){this.shouldIgnoreMouse()||this.trigger("mousemove",n)},n.prototype.handleMouseUp=function(n){this.shouldIgnoreMouse()||this.trigger("mouseup",n)},n.prototype.handleClick=function(n){this.shouldIgnoreMouse()||this.trigger("click",n)},n.prototype.handleSelectStart=function(n){this.trigger("selectstart",n)},n.prototype.handleContextMenu=function(n){this.trigger("contextmenu",n)},n.prototype.handleScroll=function(n){this.trigger("scroll",n)},n.prototype.stopTouch=function(n,t){t===void 0&&(t=!1);this.isTouching&&(this.isTouching=!1,this.trigger("touchend",n),t||this.startTouchMouseIgnore())},n.prototype.startTouchMouseIgnore=function(){var t=this,n=o.touchMouseIgnoreWait;n&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},n))},n.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},n}();t.default=e;h.default.mixInto(e);s.default.mixInto(e)},function(n,t,i){function u(n,i){t.viewHash[n]=i}function f(n){return t.viewHash[n]}Object.defineProperty(t,"__esModule",{value:!0});var r=i(16);t.viewHash={};r.views=t.viewHash;t.defineView=u;t.getViewConfig=f},function(n,t,i){function u(n,t){return!n&&!t?!0:n&&t?n.component===t.component&&f(n,t)&&f(t,n):!1}function f(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(54),s=function(n){function t(t,i){var r=n.call(this,i)||this;return r.component=t,r}return e.__extends(t,n),t.prototype.handleInteractionStart=function(t){var f=this.subjectEl,u,e,i;this.component.hitsNeeded();this.computeScrollBounds();t?(e={left:r.getEvX(t),top:r.getEvY(t)},i=e,f&&(u=r.getOuterRect(f),i=r.constrainPoint(i,u)),this.origHit=this.queryHit(i.left,i.top),f&&this.options.subjectCenter&&(this.origHit&&(u=r.intersectRects(this.origHit,u)||u),i=r.getRectCenter(u)),this.coordAdjust=r.diffPoints(i,e)):(this.origHit=null,this.coordAdjust=null);n.prototype.handleInteractionStart.call(this,t)},t.prototype.handleDragStart=function(t){var i;n.prototype.handleDragStart.call(this,t);i=this.queryHit(r.getEvX(t),r.getEvY(t));i&&this.handleHitOver(i)},t.prototype.handleDrag=function(t,i,f){var e;n.prototype.handleDrag.call(this,t,i,f);e=this.queryHit(r.getEvX(f),r.getEvY(f));u(e,this.hit)||(this.hit&&this.handleHitOut(),e&&this.handleHitOver(e))},t.prototype.handleDragEnd=function(t){this.handleHitDone();n.prototype.handleDragEnd.call(this,t)},t.prototype.handleHitOver=function(n){var t=u(n,this.origHit);this.hit=n;this.trigger("hitOver",this.hit,t,this.origHit)},t.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},t.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},t.prototype.handleInteractionEnd=function(t,i){n.prototype.handleInteractionEnd.call(this,t,i);this.origHit=null;this.hit=null;this.component.hitsNotNeeded()},t.prototype.handleScrollEnd=function(){n.prototype.handleScrollEnd.call(this);this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},t.prototype.queryHit=function(n,t){return this.coordAdjust&&(n+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(n,t)},t}(o.default);t.default=s},,,,,,,,function(n,t,i){function v(n){r.each(a,function(t,i){n[t]==null&&(n[t]=i(n))})}function y(n,i,u){var e=t.localeOptionHash[n]||(t.localeOptionHash[n]={}),f;e.isRTL=u.isRTL;e.weekNumberTitle=u.weekHeader;r.each(c,function(n,t){e[n]=t(u)});f=r.datepicker;f&&(f.regional[i]=f.regional[n]=u,f.regional.en=f.regional[""],f.setDefaults(u))}function o(n,i){var f,e;f=t.localeOptionHash[n]||(t.localeOptionHash[n]={});i&&(f=t.localeOptionHash[n]=u.mergeOptions([f,i]));e=s(n);r.each(l,function(n,t){f[n]==null&&(f[n]=t(e,f))});u.globalDefaults.locale=n}function s(n){return e.localeData(n)||e.localeData("en")}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),e=i(0),h=i(16),u=i(32),f=i(4);t.localeOptionHash={};h.locales=t.localeOptionHash;var c={buttonText:function(n){return{prev:f.stripHtmlEntities(n.prevText),next:f.stripHtmlEntities(n.nextText),today:f.stripHtmlEntities(n.currentText)}},monthYearFormat:function(n){return n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"}},l={dayOfMonthFormat:function(n,t){var i=n.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(n){return n.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"")}},a={smallDayDateFormat:function(n){return n.isRTL?"D dd":"dd D"},weekFormat:function(n){return n.isRTL?"w[ "+n.weekNumberTitle+"]":"["+n.weekNumberTitle+" ]w"},smallWeekFormat:function(n){return n.isRTL?"w["+n.weekNumberTitle+"]":"["+n.weekNumberTitle+"]w"}};t.populateInstanceComputableOptions=v;t.datepickerLocale=y;t.locale=o;t.getMomentLocaleData=s;o("en",u.englishDefaults)},function(n,t,i){function f(n){return r.mergeProps(n,u)}var r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(4);t.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3};t.englishDefaults={dayPopoverFormat:"dddd, MMMM D"};t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};u=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=function(){function n(){}return n.extend=function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(this);return r.copyOwnProps(n,t.prototype),t},n.mixin=function(n){r.copyOwnProps(n,this.prototype)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(208),f=function(){function n(n){this.source=n;this.className=[];this.miscProps={}}return n.parse=function(n,t){var i=new this(t);return i.applyProps(n)?i:!1},n.normalizeId=function(n){return String(n)},n.generateId=function(){return"_fc"+n.uuid++},n.prototype.clone=function(){var t=new this.constructor(this.source);return t.id=this.id,t.rawId=this.rawId,t.uid=this.uid,n.copyVerbatimStandardProps(this,t),t.className=this.className.slice(),t.miscProps=r.extend({},this.miscProps),t},n.prototype.hasInverseRendering=function(){return this.getRendering()==="inverse-background"},n.prototype.hasBgRendering=function(){var n=this.getRendering();return n==="inverse-background"||n==="background"},n.prototype.getRendering=function(){return this.rendering!=null?this.rendering:this.source.rendering},n.prototype.getConstraint=function(){return this.constraint!=null?this.constraint:this.source.constraint!=null?this.source.constraint:this.source.calendar.opt("eventConstraint")},n.prototype.getOverlap=function(){return this.overlap!=null?this.overlap:this.source.overlap!=null?this.source.overlap:this.source.calendar.opt("eventOverlap")},n.prototype.isStartExplicitlyEditable=function(){return this.startEditable!=null?this.startEditable:this.source.startEditable},n.prototype.isDurationExplicitlyEditable=function(){return this.durationEditable!=null?this.durationEditable:this.source.durationEditable},n.prototype.isExplicitlyEditable=function(){return this.editable!=null?this.editable:this.source.editable},n.prototype.toLegacy=function(){var t=r.extend({},this.miscProps);return t._id=this.uid,t.source=this.source,t.className=this.className.slice(),t.allDay=this.isAllDay(),this.rawId!=null&&(t.id=this.rawId),n.copyVerbatimStandardProps(this,t),t},n.prototype.applyManualStandardProps=function(t){return this.id=t.id!=null?n.normalizeId(this.rawId=t.id):n.generateId(),this.uid=t._id!=null?String(t._id):n.generateId(),r.isArray(t.className)&&(this.className=t.className),typeof t.className=="string"&&(this.className=t.className.split(/\s+/)),!0},n.prototype.applyMiscProps=function(n){r.extend(this.miscProps,n)},n.uuid=0,n.defineStandardProps=u.default.defineStandardProps,n.copyVerbatimStandardProps=u.default.copyVerbatimStandardProps,n}();t.default=f;u.default.mixInto(f);f.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(n,t,i){function e(n,t){for(var r=[],i=0;i<n.length;i++)r.push.apply(r,n[i].buildInstances(t));return r}function o(n){return new r.default(n.dateProfile.unzonedRange,n.def,n)}function s(n){return new u.default(new f.default(n.unzonedRange,n.eventDef.isAllDay()),n.eventDef,n.eventInstance)}function h(n){return n.dateProfile.unzonedRange}function c(n){return n.componentFootprint}Object.defineProperty(t,"__esModule",{value:!0});var r=i(211),u=i(36),f=i(12);t.eventDefsToEventInstances=e;t.eventInstanceToEventRange=o;t.eventRangeToEventFootprint=s;t.eventInstanceToUnzonedRange=h;t.eventFootprintToComponentFootprint=c},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.componentFootprint=n;this.eventDef=t;i&&(this.eventInstance=i)}return n.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(4),r=i(17),u=i(34),e=i(50),o=i(13),s=function(){function n(){}return n.createFromRawProps=function(t,i,o){var l=t.def,y={},c={},p={},w={},b=null,k=null,s,a,v,h;for(s in i)r.default.isStandardProp(s)?y[s]=i[s]:l.isStandardProp(s)?c[s]=i[s]:l.miscProps[s]!==i[s]&&(p[s]=i[s]);return a=r.default.parse(y,l.source),a&&(v=e.default.createFromDiff(t.dateProfile,a,o)),c.id!==l.id&&(b=c.id),f.isArraysEqual(c.className,l.className)||(k=c.className),u.default.copyVerbatimStandardProps(c,w),h=new n,h.eventDefId=b,h.className=k,h.verbatimStandardProps=w,h.miscProps=p,v&&(h.dateMutation=v),h},n.prototype.mutateSingle=function(n){var t;return this.dateMutation&&(t=n.dateProfile,n.dateProfile=this.dateMutation.buildNewDateProfile(t,n.source.calendar)),this.eventDefId!=null&&(n.id=u.default.normalizeId(n.rawId=this.eventDefId)),this.className&&(n.className=this.className),this.verbatimStandardProps&&o.default.copyVerbatimStandardProps(this.verbatimStandardProps,n),this.miscProps&&n.applyMiscProps(this.miscProps),t?function(){n.dateProfile=t}:function(){}},n.prototype.setDateMutation=function(n){this.dateMutation=n&&!n.isEmpty()?n:null},n.prototype.isEmpty=function(){return!this.dateMutation},n}();t.default=s},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={sourceClasses:[],registerClass:function(n){this.sourceClasses.unshift(n)},parse:function(n,t){for(var u=this.sourceClasses,r,i=0;i<u.length;i++)if(r=u[i].parse(n,t),r)return r}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(4),e=i(33),o=function(n){function t(t){var i=n.call(this)||this;return t=t||{},i.overflowX=t.overflowX||t.overflow||"auto",i.overflowY=t.overflowY||t.overflow||"auto",i}return r.__extends(t,n),t.prototype.render=function(){this.el=this.renderEl();this.applyOverflow()},t.prototype.renderEl=function(){return this.scrollEl=u('<div class="fc-scroller"><\/div>')},t.prototype.clear=function(){this.setHeight("auto");this.applyOverflow()},t.prototype.destroy=function(){this.el.remove()},t.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},t.prototype.lockOverflow=function(n){var t=this.overflowX,i=this.overflowY;n=n||this.getScrollbarWidths();t==="auto"&&(t=n.top||n.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden");i==="auto"&&(i=n.left||n.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden");this.scrollEl.css({"overflow-x":t,"overflow-y":i})},t.prototype.setHeight=function(n){this.scrollEl.height(n)},t.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},t.prototype.setScrollTop=function(n){this.scrollEl.scrollTop(n)},t.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},t.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},t.prototype.getScrollbarWidths=function(){return f.getScrollbarWidths(this.scrollEl)},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),u=i(3),r=i(4),e=i(219),o=i(21),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-event-container > *",r.dateSelectingClass&&(r.dateClicking=new r.dateClickingClass(r)),r.dateSelectingClass&&(r.dateSelecting=new r.dateSelectingClass(r)),r.eventPointingClass&&(r.eventPointing=new r.eventPointingClass(r)),r.eventDraggingClass&&r.eventPointing&&(r.eventDragging=new r.eventDraggingClass(r,r.eventPointing)),r.eventResizingClass&&r.eventPointing&&(r.eventResizing=new r.eventResizingClass(r,r.eventPointing)),r.externalDroppingClass&&(r.externalDropping=new r.externalDroppingClass(r)),r}return f.__extends(t,n),t.prototype.setElement=function(t){n.prototype.setElement.call(this,t);this.dateClicking&&this.dateClicking.bindToEl(t);this.dateSelecting&&this.dateSelecting.bindToEl(t);this.bindAllSegHandlersToEl(t)},t.prototype.removeElement=function(){this.endInteractions();n.prototype.removeElement.call(this)},t.prototype.executeEventUnrender=function(){this.endInteractions();n.prototype.executeEventUnrender.call(this)},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.bindToDocument()},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.unbindFromDocument()},t.prototype.bindDateHandlerToEl=function(n,t,i){var r=this;this.el.on(t,function(n){if(!u(n.target).is(r.segSelector+":not(.fc-helper),"+r.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return i.call(r,n)})},t.prototype.bindAllSegHandlersToEl=function(n){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.bindToEl(n)})},t.prototype.bindSegHandlerToEl=function(n,t,i){var r=this;n.on(t,this.segSelector,function(n){var f=u(n.currentTarget),t;if(!f.is(".fc-helper")&&(t=f.data("fc-seg"),t&&!r.shouldIgnoreEventPointing()))return i.call(r,t,n)})},t.prototype.shouldIgnoreMouse=function(){return o.default.get().shouldIgnoreMouse()},t.prototype.shouldIgnoreTouch=function(){var n=this._getView();return n.isSelected||n.selectedEvent},t.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},t.prototype.canStartSelection=function(n,t){return r.getEvIsTouch(t)&&!this.canStartResize(n,t)&&(this.isEventDefDraggable(n.footprint.eventDef)||this.isEventDefResizable(n.footprint.eventDef))},t.prototype.canStartDrag=function(n,t){return!this.canStartResize(n,t)&&this.isEventDefDraggable(n.footprint.eventDef)},t.prototype.canStartResize=function(n,t){var f=this._getView(),i=n.footprint.eventDef;return(!r.getEvIsTouch(t)||f.isEventDefSelected(i))&&this.isEventDefResizable(i)&&u(t.target).is(".fc-resizer")},t.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(n){n&&n.end()})},t.prototype.isEventDefDraggable=function(n){return this.isEventDefStartEditable(n)},t.prototype.isEventDefStartEditable=function(n){var t=n.isStartExplicitlyEditable();return t==null&&(t=this.opt("eventStartEditable"),t==null&&(t=this.isEventDefGenerallyEditable(n))),t},t.prototype.isEventDefGenerallyEditable=function(n){var t=n.isExplicitlyEditable();return t==null&&(t=this.opt("editable")),t},t.prototype.isEventDefResizableFromStart=function(n){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(n)},t.prototype.isEventDefResizableFromEnd=function(n){return this.isEventDefResizable(n)},t.prototype.isEventDefResizable=function(n){var t=n.isDurationExplicitlyEditable();return t==null&&(t=this.opt("eventDurationEditable"),t==null&&(t=this.isEventDefGenerallyEditable(n))),t},t.prototype.diffDates=function(n,t){return this.largeUnit?r.diffByUnit(n,t,this.largeUnit):r.diffDayTime(n,t)},t.prototype.isEventInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;return r.calendar.constraints.isEventInstanceGroupAllowed(n)},t.prototype.isExternalInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;for(t=0;t<i.length;t++)if(!r.calendar.constraints.isSelectionFootprintAllowed(i[t].componentFootprint))return!1;return!0},t}(e.default);t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),u=i(3),f=i(0),e=i(4),h=i(218),c=i(221),l=i(40),o=i(21),a=i(5),r=function(n){function t(t,i){var r=n.call(this,null,i.options)||this;return r.batchRenderDepth=0,r.isSelected=!1,r.calendar=t,r.viewSpec=i,r.type=i.type,r.name=r.type,r.initRenderQueue(),r.initHiddenDays(),r.dateProfileGenerator=new r.dateProfileGeneratorClass(r),r.bindBaseRenderHandlers(),r.eventOrderSpecs=e.parseFieldSpecs(r.opt("eventOrder")),r.initialize&&r.initialize(),r}return s.__extends(t,n),t.prototype._getView=function(){return this},t.prototype.opt=function(n){return this.options[n]},t.prototype.initRenderQueue=function(){this.renderQueue=new h.default({event:this.opt("eventRenderWait")});this.renderQueue.on("start",this.onRenderQueueStart.bind(this));this.renderQueue.on("stop",this.onRenderQueueStop.bind(this));this.on("before:change",this.startBatchRender);this.on("change",this.stopBatchRender)},t.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight();this.addScroll(this.queryScroll())},t.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll();this.calendar.thawContentHeight()},t.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},t.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},t.prototype.requestRender=function(n,t,i){this.renderQueue.queue(n,t,i)},t.prototype.whenSizeUpdated=function(n){if(this.renderQueue.isRunning)this.renderQueue.one("stop",n.bind(this));else n.call(this)},t.prototype.computeTitle=function(n){var t;return t=/^(year|month)$/.test(n.currentRangeUnit)?n.currentUnzonedRange:n.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(t.startMs,n.isRangeAllDay),end:this.calendar.msToMoment(t.endMs,n.isRangeAllDay)},n.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(n),this.opt("titleRangeSeparator"))},t.prototype.computeTitleFormat=function(n){var t=n.currentRangeUnit;return t==="year"?"YYYY":t==="month"?this.opt("monthYearFormat"):n.currentUnzonedRange.as("days")>1?"ll":"LL"},t.prototype.setDate=function(n){var t=this.get("dateProfile"),i=this.dateProfileGenerator.build(n,undefined,!0);t&&t.activeUnzonedRange.equals(i.activeUnzonedRange)||this.set("dateProfile",i)},t.prototype.unsetDate=function(){this.unset("dateProfile")},t.prototype.fetchInitialEvents=function(n){var t=this.calendar,i=n.isRangeAllDay&&!this.usesMinMaxTime;return t.requestEvents(t.msToMoment(n.activeUnzonedRange.startMs,i),t.msToMoment(n.activeUnzonedRange.endMs,i))},t.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},t.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},t.prototype.setEvents=function(n){this.set("currentEvents",n);this.set("hasEvents",!0)},t.prototype.unsetEvents=function(){this.unset("currentEvents");this.unset("hasEvents")},t.prototype.resetEvents=function(n){this.startBatchRender();this.unsetEvents();this.setEvents(n);this.stopBatchRender()},t.prototype.requestDateRender=function(n){var t=this;this.requestRender(function(){t.executeDateRender(n)},"date","init")},t.prototype.requestDateUnrender=function(){var n=this;this.requestRender(function(){n.executeDateUnrender()},"date","destroy")},t.prototype.executeDateRender=function(t){n.prototype.executeDateRender.call(this,t);this.render&&this.render();this.trigger("datesRendered");this.addScroll({isDateInit:!0});this.startNowIndicator()},t.prototype.executeDateUnrender=function(){this.unselect();this.stopNowIndicator();this.trigger("before:datesUnrendered");this.destroy&&this.destroy();n.prototype.executeDateUnrender.call(this)},t.prototype.bindBaseRenderHandlers=function(){var n=this;this.on("datesRendered",function(){n.whenSizeUpdated(n.triggerViewRender)});this.on("before:datesUnrendered",function(){n.triggerViewDestroy()})},t.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.requestEventsRender=function(n){var t=this;this.requestRender(function(){t.executeEventRender(n);t.whenSizeUpdated(t.triggerAfterEventsRendered)},"event","init")},t.prototype.requestEventsUnrender=function(){var n=this;this.requestRender(function(){n.triggerBeforeEventsDestroyed();n.executeEventUnrender()},"event","destroy")},t.prototype.requestBusinessHoursRender=function(n){var t=this;this.requestRender(function(){t.renderBusinessHours(n)},"businessHours","init")},t.prototype.requestBusinessHoursUnrender=function(){var n=this;this.requestRender(function(){n.unrenderBusinessHours()},"businessHours","destroy")},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.listenTo(o.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.stopListeningTo(o.default.get())},t.prototype.startNowIndicator=function(){var r=this,t,i,n;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit(),t&&(i=e.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){r.nowIndicatorTimeoutID=null;i();n=+f.duration(1,t);n=Math.max(100,n);r.nowIndicatorIntervalID=setInterval(i,n)},n)))},t.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.updateSize=function(t,i,r){this.setHeight?this.setHeight(t,i):n.prototype.updateSize.call(this,t,i,r);this.updateNowIndicator()},t.prototype.addScroll=function(n){var t=this.queuedScroll||(this.queuedScroll={});u.extend(t,n)},t.prototype.popScroll=function(){this.applyQueuedScroll();this.queuedScroll=null},t.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},t.prototype.queryScroll=function(){var n={};return this.isDatesRendered&&u.extend(n,this.queryDateScroll()),n},t.prototype.applyScroll=function(n){n.isDateInit&&this.isDatesRendered&&u.extend(n,this.computeInitialDateScroll());this.isDatesRendered&&this.applyDateScroll(n)},t.prototype.computeInitialDateScroll=function(){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(){},t.prototype.reportEventDrop=function(n,t,i,r){var e=this.calendar.eventManager,o=e.mutateEventsWithId(n.def.id,t),u=t.dateMutation;u&&(n.dateProfile=u.buildNewDateProfile(n.dateProfile,this.calendar));this.triggerEventDrop(n,u&&u.dateDelta||f.duration(),o,i,r)},t.prototype.triggerEventDrop=function(n,t,i,r,u){this.publiclyTrigger("eventDrop",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.reportExternalDrop=function(n,t,i,r,u,f){t&&this.calendar.eventManager.addEventDef(n,i);this.triggerExternalDrop(n,t,r,u,f)},t.prototype.triggerExternalDrop=function(n,t,i,r,u){this.publiclyTrigger("drop",{context:i[0],args:[n.dateProfile.start.clone(),r,u,this]});t&&this.publiclyTrigger("eventReceive",{context:this,args:[n.buildInstance().toLegacy(),this]})},t.prototype.reportEventResize=function(n,t,i,r){var u=this.calendar.eventManager,f=u.mutateEventsWithId(n.def.id,t);n.dateProfile=t.dateMutation.buildNewDateProfile(n.dateProfile,this.calendar);this.triggerEventResize(n,t.dateMutation.endDelta,f,i,r)},t.prototype.triggerEventResize=function(n,t,i,r,u){this.publiclyTrigger("eventResize",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.select=function(n,t){this.unselect(t);this.renderSelectionFootprint(n);this.reportSelection(n,t)},t.prototype.renderSelectionFootprint=function(t){this.renderSelection?this.renderSelection(t.toLegacy(this.calendar)):n.prototype.renderSelectionFootprint.call(this,t)},t.prototype.reportSelection=function(n,t){this.isSelected=!0;this.triggerSelect(n,t)},t.prototype.triggerSelect=function(n,t){var i=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("select",{context:this,args:[i.start,i.end,t,this]})},t.prototype.unselect=function(n){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[n,this]}))},t.prototype.selectEventInstance=function(n){this.selectedEventInstance&&this.selectedEventInstance===n||(this.unselectEventInstance(),this.getEventSegs().forEach(function(t){t.footprint.eventInstance===n&&t.el&&t.el.addClass("fc-selected")}),this.selectedEventInstance=n)},t.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(n){n.el&&n.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},t.prototype.isEventDefSelected=function(n){return this.selectedEventInstance&&this.selectedEventInstance.def.id===n.id},t.prototype.handleDocumentMousedown=function(n){e.isPrimaryMouseButton(n)&&this.processUnselect(n)},t.prototype.processUnselect=function(n){this.processRangeUnselect(n);this.processEventUnselect(n)},t.prototype.processRangeUnselect=function(n){var t;this.isSelected&&this.opt("unselectAuto")&&(t=this.opt("unselectCancel"),t&&u(n.target).closest(t).length||this.unselect(n))},t.prototype.processEventUnselect=function(n){this.selectedEventInstance&&(u(n.target).closest(".fc-selected").length||this.unselectEventInstance())},t.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.triggerDayClick=function(n,t,i){var r=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("dayClick",{context:t,args:[r.start,i,this]})},t.prototype.isDateInOtherMonth=function(){return!1},t.prototype.getUnzonedRangeOption=function(n){var t=this.opt(n);return typeof t=="function"&&(t=t.apply(null,Array.prototype.slice.call(arguments,1))),t?this.calendar.parseUnzonedRange(t):void 0},t.prototype.initHiddenDays=function(){var t=this.opt("hiddenDays")||[],i=[],r=0,n;for(this.opt("weekends")===!1&&t.push(0,6),n=0;n<7;n++)(i[n]=u.inArray(n,t)!==-1)||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},t.prototype.trimHiddenDays=function(n){var t=n.getStart(),i=n.getEnd();return(t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),t===null||i===null||t<i)?new a.default(t,i):null},t.prototype.isHiddenDay=function(n){return f.isMoment(n)&&(n=n.day()),this.isHiddenDayHash[n]},t.prototype.skipHiddenDays=function(n,t,i){t===void 0&&(t=1);i===void 0&&(i=!1);for(var r=n.clone();this.isHiddenDayHash[(r.day()+(i?t:0)+7)%7];)r.add(t,"days");return r},t}(l.default);t.default=r;r.prototype.usesMinMaxTime=!1;r.prototype.dateProfileGeneratorClass=c.default;r.watch("displayingDates",["isInDom","dateProfile"],function(n){this.requestDateRender(n.dateProfile)},function(){this.requestDateUnrender()});r.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(n){this.requestBusinessHoursRender(n.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()});r.watch("initialEvents",["dateProfile"],function(n){return this.fetchInitialEvents(n.dateProfile)});r.watch("bindingEvents",["initialEvents"],function(n){this.setEvents(n.initialEvents);this.bindEventChanges()},function(){this.unbindEventChanges();this.unsetEvents()});r.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()});r.watch("title",["dateProfile"],function(n){return this.title=this.computeTitle(n.dateProfile)});r.watch("legacyDateProps",["dateProfile"],function(n){var i=this.calendar,t=n.dateProfile;this.start=i.msToMoment(t.activeUnzonedRange.startMs,t.isRangeAllDay);this.end=i.msToMoment(t.activeUnzonedRange.endMs,t.isRangeAllDay);this.intervalStart=i.msToMoment(t.currentUnzonedRange.startMs,t.isRangeAllDay);this.intervalEnd=i.msToMoment(t.currentUnzonedRange.endMs,t.isRangeAllDay)})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.view=n._getView();this.component=n;this.fillRenderer=t}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.rangeUpdated=function(){var n,t;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat();n=this.opt("displayEventTime");n==null&&(n=this.computeDisplayEventTime());t=this.opt("displayEventEnd");t==null&&(t=this.computeDisplayEventEnd());this.displayEventTime=n;this.displayEventEnd=t},n.prototype.render=function(n){var e=this.component._getDateProfile(),f,t,i,r=[],u=[];for(f in n)t=n[f],i=t.sliceRenderRanges(e.activeUnzonedRange),t.getEventDef().hasBgRendering()?r.push.apply(r,i):u.push.apply(u,i);this.renderBgRanges(r);this.renderFgRanges(u)},n.prototype.unrender=function(){this.unrenderBgRanges();this.unrenderFgRanges()},n.prototype.renderFgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);t=this.renderFgSegEls(t);this.renderFgSegs(t)!==!1&&(this.fgSegs=t)},n.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]);this.fgSegs=null},n.prototype.renderBgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);this.renderBgSegs(t)!==!1&&(this.bgSegs=t)},n.prototype.unrenderBgRanges=function(){this.unrenderBgSegs();this.bgSegs=null},n.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},n.prototype.renderFgSegs=function(){return!1},n.prototype.unrenderFgSegs=function(){},n.prototype.renderBgSegs=function(n){var t=this;if(this.fillRenderer)this.fillRenderer.renderSegs("bgEvent",n,{getClasses:function(n){return t.getBgClasses(n.footprint.eventDef)},getCss:function(n){return{"background-color":t.getBgColor(n.footprint.eventDef)}},filterEl:function(n,i){return t.filterEventRenderEl(n.footprint,i)}});else return!1},n.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},n.prototype.renderFgSegEls=function(n,t){var e=this;t===void 0&&(t=!1);var o=this.view.hasPublicHandlers("eventRender"),u="",f=[],i;if(n.length){for(i=0;i<n.length;i++)this.beforeFgSegHtml(n[i]),u+=this.fgSegHtml(n[i],t);r(u).each(function(t,i){var s=n[t],u=r(i);o&&(u=e.filterEventRenderEl(s.footprint,u));u&&(u.data("fc-seg",s),s.el=u,f.push(s))})}return f},n.prototype.beforeFgSegHtml=function(){},n.prototype.fgSegHtml=function(){},n.prototype.getSegClasses=function(n,t,i){var r=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(n.footprint.eventDef));return t&&r.push("fc-draggable"),i&&r.push("fc-resizable"),this.view.isEventDefSelected(n.footprint.eventDef)&&r.push("fc-selected"),r},n.prototype.filterEventRenderEl=function(n,t){var u=n.getEventLegacy(),i=this.view.publiclyTrigger("eventRender",{context:u,args:[u,t,this.view]});return i===!1?t=null:i&&i!==!0&&(t=r(i)),t},n.prototype.getTimeText=function(n,t,i){return this._getTimeText(n.eventInstance.dateProfile.start,n.eventInstance.dateProfile.end,n.componentFootprint.isAllDay,t,i)},n.prototype._getTimeText=function(n,t,i,r,u){return(r==null&&(r=this.eventTimeFormat),u==null&&(u=this.displayEventEnd),this.displayEventTime&&!i)?u&&t?this.view.formatRange({start:n,end:t},!1,r):n.format(r):""},n.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},n.prototype.computeDisplayEventTime=function(){return!0},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.getBgClasses=function(n){var t=this.getClasses(n);return t.push("fc-bgevent"),t},n.prototype.getClasses=function(n){for(var i=this.getStylingObjs(n),r=[],t=0;t<i.length;t++)r.push.apply(r,i[t].eventClassName||i[t].className||[]);return r},n.prototype.getSkinCss=function(n){return{"background-color":this.getBgColor(n),"border-color":this.getBorderColor(n),color:this.getTextColor(n)}},n.prototype.getBgColor=function(n){for(var i=this.getStylingObjs(n),r,t=0;t<i.length&&!r;t++)r=i[t].eventBackgroundColor||i[t].eventColor||i[t].backgroundColor||i[t].color;return r||(r=this.opt("eventBackgroundColor")||this.opt("eventColor")),r},n.prototype.getBorderColor=function(n){for(var i=this.getStylingObjs(n),r,t=0;t<i.length&&!r;t++)r=i[t].eventBorderColor||i[t].eventColor||i[t].borderColor||i[t].color;return r||(r=this.opt("eventBorderColor")||this.opt("eventColor")),r},n.prototype.getTextColor=function(n){for(var r=this.getStylingObjs(n),i,t=0;t<r.length&&!i;t++)i=r[t].eventTextColor||r[t].textColor;return i||(i=this.opt("eventTextColor")),i},n.prototype.getStylingObjs=function(n){var t=this.getFallbackStylingObjs(n);return t.unshift(n),t},n.prototype.getFallbackStylingObjs=function(n){return[n.source]},n.prototype.sortEventSegs=function(n){n.sort(u.proxy(this,"compareEventSegs"))},n.prototype.compareEventSegs=function(n,t){var i=n.footprint,r=t.footprint,o=i.componentFootprint,s=r.componentFootprint,f=o.unzonedRange,e=s.unzonedRange;return f.startMs-e.startMs||e.endMs-e.startMs-(f.endMs-f.startMs)||s.isAllDay-o.isAllDay||u.compareByFieldSpecs(i.eventDef,r.eventDef,this.view.eventOrderSpecs,i.eventDef.miscProps,r.eventDef.miscProps)},n}();t.default=f},,,,,function(n,t,i){function u(n){return n.locale()!=="en"?n.clone().locale("en"):n}function v(n,t){return it(y(t).fakeFormatString,n)}function g(n,t,i,u,f){var e;return n=r.default.parseZone(n),t=r.default.parseZone(t),e=n.localeData(),i=e.longDateFormat(i)||i,nt(y(i),n,t,u||" - ",f)}function nt(n,t,i,r,u){for(var o=n.sameUnits,y=t.clone().stripZone(),p=i.clone().stripZone(),c=s(n.fakeFormatString,t),d=s(n.fakeFormatString,i),w="",e,v="",h,l="",a="",b="",f=0;f<o.length&&(!o[f]||y.isSame(p,o[f]));f++)w+=c[f];for(e=o.length-1;e>f&&(!o[e]||y.isSame(p,o[e]));e--){if(e-1===f&&c[e]===".")break;v=c[e]+v}for(h=f;h<=e;h++)l+=c[h],a+=d[h];return(l||a)&&(b=u?a+r+l:l+r+a),k(w+b+v)}function y(n){return e[n]||(e[n]=tt(n))}function tt(n){var t=o(n);return{fakeFormatString:w(t),sameUnits:b(t)}}function o(n){for(var i=[],t,r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=r.exec(n);)t[1]?i.push.apply(i,p(t[1])):t[2]?i.push({maybe:o(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push.apply(i,p(t[5]));return i}function p(n){return n===". "?["."," "]:[n]}function w(n){for(var i=[],t,r=0;r<n.length;r++)t=n[r],typeof t=="string"?i.push("["+t+"]"):t.token?t.token in l?i.push(c+"["+t.token+"]"):i.push(t.token):t.maybe&&i.push(f+w(t.maybe)+f);return i.join(h)}function b(n){for(var t=[],i,u,r=0;r<n.length;r++)i=n[r],i.token?(u=a[i.token.charAt(0)],t.push(u?u.unit:"second")):i.maybe?t.push.apply(t,b(i.maybe)):t.push(null);return t}function it(n,t){return k(s(n,t).join(""))}function s(n,t){for(var f=[],o=r.oldMomentFormat(t,n),e=o.split(h),u,i=0;i<e.length;i++)u=e[i],u.charAt(0)===c?f.push(l[u.substring(1)](t)):f.push(u);return f}function k(n){return n.replace(d,function(n,t){return t.match(/[1-9]/)?t:""})}function rt(n){for(var f=o(n),u,r,t,i=0;i<f.length;i++)u=f[i],u.token&&(r=a[u.token.charAt(0)],r&&(!t||r.value>t.value)&&(t=r));return t?t.unit:null}var r,e;Object.defineProperty(t,"__esModule",{value:!0});r=i(10);r.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?v(this,arguments[0]):this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentFormat(u(this)):r.oldMomentProto.format.apply(this,arguments)};r.newMomentProto.toISOString=function(){return this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentProto.toISOString.apply(u(this),arguments):r.oldMomentProto.toISOString.apply(this,arguments)};var h="\x0b",c="\x1f",f="\x1e",d=new RegExp(f+"([^"+f+"]*)"+f,"g"),l={t:function(n){return r.oldMomentFormat(n,"a").charAt(0)},T:function(n){return r.oldMomentFormat(n,"A").charAt(0)}},a={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};t.formatDate=v;t.formatRange=g;e={};t.queryMostGranularFormatUnit=rt},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(33),e=i(11),o=i(7),r=function(n){function t(){var t=n.call(this)||this;return t._watchers={},t._props={},t.applyGlobalWatchers(),t.constructed(),t}return u.__extends(t,n),t.watch=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs));this.prototype._globalWatchArgs[n]=i},t.prototype.constructed=function(){},t.prototype.applyGlobalWatchers=function(){var n=this._globalWatchArgs;for(var t in n)this.watch.apply(this,[t].concat(n[t]))},t.prototype.has=function(n){return n in this._props},t.prototype.get=function(n){return n===undefined?this._props:this._props[n]},t.prototype.set=function(n,t){var i;typeof n=="string"?(i={},i[n]=t===undefined?null:t):i=n;this.setProps(i)},t.prototype.reset=function(n){var r=this._props,i={};for(var t in r)i[t]=undefined;for(t in n)i[t]=n[t];this.setProps(i)},t.prototype.unset=function(n){for(var r={},i=typeof n=="string"?[n]:n,t=0;t<i.length;t++)r[i[t]]=undefined;this.setProps(r)},t.prototype.setProps=function(n){var r={},u=0,t,i;for(t in n)i=n[t],(typeof i=="object"||i!==this._props[t])&&(r[t]=i,u++);if(u){this.trigger("before:batchChange",r);for(t in r)i=r[t],this.trigger("before:change",t,i),this.trigger("before:change:"+t,i);for(t in r)i=r[t],i===undefined?delete this._props[t]:this._props[t]=i,this.trigger("change:"+t,i),this.trigger("change",t,i);this.trigger("batchChange",r)}},t.prototype.watch=function(n,t,i,r){var u=this;this.unwatch(n);this._watchers[n]=this._watchDeps(t,function(t){var r=i.call(u,t);r&&r.then?(u.unset(n),r.then(function(t){u.set(n,t)})):u.set(n,r)},function(t){u.unset(n);r&&r.call(u,t)})},t.prototype.unwatch=function(n){var t=this._watchers[n];t&&(delete this._watchers[n],t.teardown())},t.prototype._watchDeps=function(n,t,i){var o=this,s=0,f=n.length,r=0,u={},e=[],h=!1,l=function(){s++;s===1&&r===f&&(h=!0,i(u),h=!1)},a=function(n,i,e){i===undefined?(e||u[n]===undefined||r--,delete u[n]):(e||u[n]!==undefined||r++,u[n]=i);s--;s||r===f&&(h||t(u))},c=function(n,t){o.on(n,t);e.push([n,t])};return n.forEach(function(n){var t=!1;n.charAt(0)==="?"&&(n=n.substring(1),t=!0);c("before:change:"+n,function(i){l(n,i,t)});c("change:"+n,function(i){a(n,i,t)})}),n.forEach(function(n){var t=!1;n.charAt(0)==="?"&&(n=n.substring(1),t=!0);o.has(n)?(u[n]=o.get(n),r++):t&&r++}),r===f&&t(u),{teardown:function(){for(var n=0;n<e.length;n++)o.off(e[n][0],e[n][1]);e=null;r===f&&i()},flash:function(){r===f&&(i(),t(u))}}},t.prototype.flash=function(n){var t=this._watchers[n];t&&t.flash()},t}(f.default);t.default=r;r.prototype._globalWatchArgs={};e.default.mixInto(r);o.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(4),f=i(13),e=i(210);t.default={parse:function(n,t){return u.isTimeString(n.start)||r.isDuration(n.start)||u.isTimeString(n.end)||r.isDuration(n.end)?e.default.parse(n,t):f.default.parse(n,t)}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),u=i(17),f=function(){function n(){this.clearEnd=!1;this.forceTimed=!1;this.forceAllDay=!1}return n.createFromDiff=function(t,i,u){function h(n,t){return u?r.diffByUnit(n,t,u):i.isAllDay()?r.diffDay(n,t):r.diffDayTime(n,t)}var c=t.end&&!i.end,l=t.isAllDay()&&!i.isAllDay(),a=!t.isAllDay()&&i.isAllDay(),e,o,s,f;return e=h(i.start,t.start),i.end&&(o=h(i.unzonedRange.getEnd(),t.unzonedRange.getEnd()),s=o.subtract(e)),f=new n,f.clearEnd=c,f.forceTimed=l,f.forceAllDay=a,f.setDateDelta(e),f.setEndDelta(s),f},n.prototype.buildNewDateProfile=function(n,t){var r=n.start.clone(),i=null,f=!1;return n.end&&!this.clearEnd?i=n.end.clone():this.endDelta&&!i&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),this.forceTimed?(f=!0,r.hasTime()||r.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(r.hasTime()&&r.stripTime(),i&&i.hasTime()&&i.stripTime()),this.dateDelta&&(f=!0,r.add(this.dateDelta),i&&i.add(this.dateDelta)),this.endDelta&&(f=!0,i.add(this.endDelta)),this.startDelta&&(f=!0,r.add(this.startDelta)),f&&(r=t.applyTimezone(r),i&&(i=t.applyTimezone(i))),!i&&t.opt("forceEventDuration")&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),new u.default(r,i,t)},n.prototype.setDateDelta=function(n){this.dateDelta=n&&n.valueOf()?n:null},n.prototype.setStartDelta=function(n){this.startDelta=n&&n.valueOf()?n:null},n.prototype.setEndDelta=function(n){this.endDelta=n&&n.valueOf()?n:null},n.prototype.isEmpty=function(){return!this.clearEnd&&!this.forceTimed&&!this.forceAllDay&&!this.dateDelta&&!this.startDelta&&!this.endDelta},n}();t.default=f},function(n,t,i){function e(n,t){r[n]=t}function o(n){return n?n===!0?f.default:r[n]:u.default}Object.defineProperty(t,"__esModule",{value:!0});var u=i(213),f=i(214),r={};t.defineThemeSystem=e;t.getThemeSystemClass=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(4),s=i(20),u=i(6),h=i(13),f=function(n){function t(t){var i=n.call(this,t)||this;return i.eventDefs=[],i}return e.__extends(t,n),t.parse=function(n,t){var i;return(r.isArray(n.events)?i=n:r.isArray(n)&&(i={events:n}),i)?u.default.parse.call(this,i,t):!1},t.prototype.setRawEventDefs=function(n){this.rawEventDefs=n;this.eventDefs=this.parseEventDefs(n)},t.prototype.fetch=function(n,t,i){var u=this.eventDefs,r;if(this.currentTimezone!=null&&this.currentTimezone!==i)for(r=0;r<u.length;r++)u[r]instanceof h.default&&u[r].rezone();return this.currentTimezone=i,s.default.resolve(u)},t.prototype.addEventDef=function(n){this.eventDefs.push(n)},t.prototype.removeEventDefsById=function(n){return o.removeMatching(this.eventDefs,function(t){return t.id===n})},t.prototype.removeAllEventDefs=function(){this.eventDefs=[]},t.prototype.getPrimitive=function(){return this.rawEventDefs},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.setRawEventDefs(t.events),i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.isHorizontal=!1;this.isVertical=!1;this.els=r(n.els);this.isHorizontal=n.isHorizontal;this.isVertical=n.isVertical;this.forcedOffsetParentEl=n.offsetParent?r(n.offsetParent):null}return n.prototype.build=function(){var n=this.forcedOffsetParentEl;!n&&this.els.length>0&&(n=this.els.eq(0).offsetParent());this.origin=n?n.offset():null;this.boundingRect=this.queryBoundingRect();this.isHorizontal&&this.buildElHorizontals();this.isVertical&&this.buildElVerticals()},n.prototype.clear=function(){this.origin=null;this.boundingRect=null;this.lefts=null;this.rights=null;this.tops=null;this.bottoms=null},n.prototype.ensureBuilt=function(){this.origin||this.build()},n.prototype.buildElHorizontals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().left,o=f.outerWidth();n.push(e);t.push(e+o)});this.lefts=n;this.rights=t},n.prototype.buildElVerticals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().top,o=f.outerHeight();n.push(e);t.push(e+o)});this.tops=n;this.bottoms=t},n.prototype.getHorizontalIndex=function(n){this.ensureBuilt();for(var i=this.lefts,r=this.rights,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getVerticalIndex=function(n){this.ensureBuilt();for(var i=this.tops,r=this.bottoms,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getLeftOffset=function(n){return this.ensureBuilt(),this.lefts[n]},n.prototype.getLeftPosition=function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},n.prototype.getRightOffset=function(n){return this.ensureBuilt(),this.rights[n]},n.prototype.getRightPosition=function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},n.prototype.getWidth=function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},n.prototype.getTopOffset=function(n){return this.ensureBuilt(),this.tops[n]},n.prototype.getTopPosition=function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},n.prototype.getBottomOffset=function(n){return this.ensureBuilt(),this.bottoms[n]},n.prototype.getBottomPosition=function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},n.prototype.getHeight=function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]},n.prototype.queryBoundingRect=function(){var n;return this.els.length>0&&(n=u.getScrollParent(this.els.eq(0)),!n.is(document))?u.getClientRect(n):null},n.prototype.isPointInBounds=function(n,t){return this.isLeftInBounds(n)&&this.isTopInBounds(t)},n.prototype.isLeftInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.left&&n<this.boundingRect.right},n.prototype.isTopInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.top&&n<this.boundingRect.bottom},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),o=i(7),f=i(21),e=function(){function n(n){this.isInteracting=!1;this.isDistanceSurpassed=!1;this.isDelayEnded=!1;this.isDragging=!1;this.isTouch=!1;this.isGeneric=!1;this.shouldCancelTouchScroll=!0;this.scrollAlwaysKills=!1;this.isAutoScroll=!1;this.scrollSensitivity=30;this.scrollSpeed=200;this.scrollIntervalMs=50;this.options=n||{}}return n.prototype.startInteraction=function(n,t){if(t===void 0&&(t={}),n.type==="mousedown"){if(f.default.get().shouldIgnoreMouse())return;if(r.isPrimaryMouseButton(n))n.preventDefault();else return}this.isInteracting||(this.delay=r.firstDefined(t.delay,this.options.delay,0),this.minDistance=r.firstDefined(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,r.preventSelection(u("body")),this.isInteracting=!0,this.isTouch=r.getEvIsTouch(n),this.isGeneric=n.type==="dragstart",this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=r.getEvX(n),this.originY=r.getEvY(n),this.scrollEl=r.getScrollParent(u(n.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(n),this.startDelay(n),this.minDistance||this.handleDistanceSurpassed(n))},n.prototype.handleInteractionStart=function(n){this.trigger("interactionStart",n)},n.prototype.endInteraction=function(n,t){this.isInteracting&&(this.endDrag(n),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(n,t),r.allowSelection(u("body")))},n.prototype.handleInteractionEnd=function(n,t){this.trigger("interactionEnd",n,t||!1)},n.prototype.bindHandlers=function(){var n=f.default.get();this.isGeneric?this.listenTo(u(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(n,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(n,{mousemove:this.handleMouseMove,mouseup:this.endInteraction});this.listenTo(n,{selectstart:r.preventDefault,contextmenu:r.preventDefault})},n.prototype.unbindHandlers=function(){this.stopListeningTo(f.default.get());this.stopListeningTo(u(document))},n.prototype.startDrag=function(n,t){this.startInteraction(n,t);this.isDragging||(this.isDragging=!0,this.handleDragStart(n))},n.prototype.handleDragStart=function(n){this.trigger("dragStart",n)},n.prototype.handleMove=function(n){var t=r.getEvX(n)-this.originX,i=r.getEvY(n)-this.originY,u=this.minDistance,f;this.isDistanceSurpassed||(f=t*t+i*i,f>=u*u&&this.handleDistanceSurpassed(n));this.isDragging&&this.handleDrag(t,i,n)},n.prototype.handleDrag=function(n,t,i){this.trigger("drag",n,t,i);this.updateAutoScroll(i)},n.prototype.endDrag=function(n){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(n))},n.prototype.handleDragEnd=function(n){this.trigger("dragEnd",n)},n.prototype.startDelay=function(n){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},n.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.isDistanceSurpassed&&this.startDrag(n)},n.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.isDelayEnded&&this.startDrag(n)},n.prototype.handleTouchMove=function(n){this.isDragging&&this.shouldCancelTouchScroll&&n.preventDefault();this.handleMove(n)},n.prototype.handleMouseMove=function(n){this.handleMove(n)},n.prototype.handleTouchScroll=function(n){(!this.isDragging||this.scrollAlwaysKills)&&this.endInteraction(n,!0)},n.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.options[n]&&this.options[n].apply(this,i);this["_"+n]&&this["_"+n].apply(this,i)},n.prototype.initAutoScroll=function(){var n=this.scrollEl;this.isAutoScroll=this.options.scroll&&n&&!n.is(window)&&!n.is(document);this.isAutoScroll&&this.listenTo(n,"scroll",r.debounce(this.handleDebouncedScroll,100))},n.prototype.destroyAutoScroll=function(){this.endAutoScroll();this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},n.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=r.getOuterRect(this.scrollEl))},n.prototype.updateAutoScroll=function(n){var t=this.scrollSensitivity,i=this.scrollBounds,u,f,e,o,s=0,h=0;i&&(u=(t-(r.getEvY(n)-i.top))/t,f=(t-(i.bottom-r.getEvY(n)))/t,e=(t-(r.getEvX(n)-i.left))/t,o=(t-(i.right-r.getEvX(n)))/t,u>=0&&u<=1?s=u*this.scrollSpeed*-1:f>=0&&f<=1&&(s=f*this.scrollSpeed),e>=0&&e<=1?h=e*this.scrollSpeed*-1:o>=0&&o<=1&&(h=o*this.scrollSpeed));this.setScrollVel(s,h)},n.prototype.setScrollVel=function(n,t){this.scrollTopVel=n;this.scrollLeftVel=t;this.constrainScrollVel();(this.scrollTopVel||this.scrollLeftVel)&&!this.scrollIntervalId&&(this.scrollIntervalId=setInterval(r.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},n.prototype.constrainScrollVel=function(){var n=this.scrollEl;this.scrollTopVel<0?n.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&n.scrollTop()+n[0].clientHeight>=n[0].scrollHeight&&(this.scrollTopVel=0);this.scrollLeftVel<0?n.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&n.scrollLeft()+n[0].clientWidth>=n[0].scrollWidth&&(this.scrollLeftVel=0)},n.prototype.scrollIntervalFunc=function(){var n=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&n.scrollTop(n.scrollTop()+this.scrollTopVel*t);this.scrollLeftVel&&n.scrollLeft(n.scrollLeft()+this.scrollLeftVel*t);this.constrainScrollVel();this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},n.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},n.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},n.prototype.handleScrollEnd=function(){},n}();t.default=e;o.default.mixInto(e)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(14),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.updateDayTable=function(){for(var r=this,o=r.view,s=o.calendar,i=s.msToUtcMoment(r.dateProfile.renderUnzonedRange.startMs,!0),c=s.msToUtcMoment(r.dateProfile.renderUnzonedRange.endMs,!0),u=-1,f=[],n=[],t,h,e;i.isBefore(c);)o.isHiddenDay(i)?f.push(u+.5):(u++,f.push(u),n.push(i.clone())),i.add(1,"days");if(this.breakOnWeeks){for(h=n[0].day(),t=1;t<n.length;t++)if(n[t].day()===h)break;e=Math.ceil(n.length/t)}else e=1,t=n.length;this.dayDates=n;this.dayIndices=f;this.daysPerRow=t;this.rowCnt=e;this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt();this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(n,t){return this.dayDates[this.getCellDayIndex(n,t)].clone()},t.prototype.getCellRange=function(n,t){var i=this.getCellDate(n,t),r=i.clone().add(1,"days");return{start:i,end:r}},t.prototype.getCellDayIndex=function(n,t){return n*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(n){return this.isRTL?this.colCnt-1-n:n},t.prototype.getDateDayIndex=function(n){var t=this.dayIndices,i=n.diff(this.dayDates[0],"days");return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},t.prototype.sliceRangeByRow=function(n){for(var f=this.daysPerRow,e=this.view.computeDayRange(n),o=this.getDateDayIndex(e.start),s=this.getDateDayIndex(e.end.clone().subtract(1,"days")),h=[],u,c,t,i,r=0;r<this.rowCnt;r++)u=r*f,c=u+f-1,t=Math.max(o,u),i=Math.min(s,c),t=Math.ceil(t),i=Math.floor(i),t<=i&&h.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===o,isEnd:i===s});return h},t.prototype.sliceRangeByDay=function(n){for(var e=this.daysPerRow,o=this.view.computeDayRange(n),s=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),c=[],u,l,f,t,i,r=0;r<this.rowCnt;r++)for(u=r*e,l=u+e-1,f=u;f<=l;f++)t=Math.max(s,f),i=Math.min(h,f),t=Math.ceil(t),i=Math.floor(i),t<=i&&c.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===s,isEnd:i===h});return c},t.prototype.renderHeadHtml=function(){var n=this.view.calendar.theme;return'<div class="fc-row '+n.getClass("headerRow")+'"><table class="'+n.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"<\/thead><\/table><\/div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"<\/tr>"},t.prototype.renderHeadDateCellsHtml=function(){for(var t=[],i,n=0;n<this.colCnt;n++)i=this.getCellDate(0,n),t.push(this.renderHeadDateCellHtml(i));return t.join("")},t.prototype.renderHeadDateCellHtml=function(n,t,i){var u=this,o=u.view,s=u.dateProfile.activeUnzonedRange.containsDate(n),f=["fc-day-header",o.calendar.theme.getClass("widgetHeader")],e;return e=typeof u.opt("columnHeaderHtml")=="function"?u.opt("columnHeaderHtml")(n):typeof u.opt("columnHeaderText")=="function"?r.htmlEscape(u.opt("columnHeaderText")(n)):r.htmlEscape(n.format(u.colHeadFormat)),u.rowCnt===1?f=f.concat(u.getDayClasses(n,!0)):f.push("fc-"+r.dayIDs[n.day()]),'<th class="'+f.join(" ")+'"'+((s&&u.rowCnt)===1?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+(s?o.buildGotoAnchorHtml({date:n,forceOff:u.rowCnt>1||u.colCnt===1},e):e)+"<\/th>"},t.prototype.renderBgTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(n))+this.renderBgCellsHtml(n)+(this.isRTL?this.renderBgIntroHtml(n):"")+"<\/tr>"},t.prototype.renderBgIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderBgCellsHtml=function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderBgCellHtml(r));return i.join("")},t.prototype.renderBgCellHtml=function(n,t){var i=this,u=i.view,f=i.dateProfile.activeUnzonedRange.containsDate(n),r=i.getDayClasses(n);return r.unshift("fc-day",u.calendar.theme.getClass("widgetContent")),'<td class="'+r.join(" ")+'"'+(f?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"><\/td>"},t.prototype.renderIntroHtml=function(){},t.prototype.bookendCells=function(n){var t=this.renderIntroHtml();t&&(this.isRTL?n.append(t):n.prepend(t))},t}(f.default);t.default=e},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.component=n;this.fillRenderer=t}return n.prototype.render=function(n){var t=this.component,i=t._getDateProfile().activeUnzonedRange,r=n.buildEventInstanceGroup(t.hasAllDayBusinessHours,i),u=r?t.eventRangesToEventFootprints(r.sliceRenderRanges(i)):[];this.renderEventFootprints(u)},n.prototype.renderEventFootprints=function(n){var t=this.component.eventFootprintsToSegs(n);this.renderSegs(t);this.segs=t},n.prototype.renderSegs=function(n){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",n,{getClasses:function(){return["fc-nonbusiness","fc-bgevent"]}})},n.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours");this.segs=null},n.prototype.getSegs=function(){return this.segs||[]},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.fillSegTag="div";this.component=n;this.elsByFill={}}return n.prototype.renderFootprint=function(n,t,i){this.renderSegs(n,this.component.componentFootprintToSegs(t),i)},n.prototype.renderSegs=function(n,t,i){var r;return t=this.buildSegEls(n,t,i),r=this.attachSegEls(n,t),r&&this.reportEls(n,r),t},n.prototype.unrender=function(n){var t=this.elsByFill[n];t&&(t.remove(),delete this.elsByFill[n])},n.prototype.buildSegEls=function(n,t,i){var o=this,f="",e=[],u;if(t.length){for(u=0;u<t.length;u++)f+=this.buildSegHtml(n,t[u],i);r(f).each(function(n,u){var s=t[n],f=r(u);i.filterEl&&(f=i.filterEl(s,f));f&&(f=r(f),f.is(o.fillSegTag)&&(s.el=f,e.push(s)))})}return e},n.prototype.buildSegHtml=function(n,t,i){var r=i.getClasses?i.getClasses(t):[],f=u.cssToStr(i.getCss?i.getCss(t):{});return"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},n.prototype.attachSegEls=function(){},n.prototype.reportEls=function(n,t){this.elsByFill[n]=this.elsByFill[n]?this.elsByFill[n].add(t):r(t)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(13),u=i(36),f=i(6),e=function(){function n(n,t){this.view=n._getView();this.component=n;this.eventRenderer=t}return n.prototype.renderComponentFootprint=function(n){this.renderEventFootprints([this.fabricateEventFootprint(n)])},n.prototype.renderEventDraggingFootprints=function(n,t,i){this.renderEventFootprints(n,t,"fc-dragging",i?null:this.view.opt("dragOpacity"))},n.prototype.renderEventResizingFootprints=function(n,t){this.renderEventFootprints(n,t,"fc-resizing")},n.prototype.renderEventFootprints=function(n,t,i,r){for(var f=this.component.eventFootprintsToSegs(n),e="fc-helper "+(i||""),f=this.eventRenderer.renderFgSegEls(f),u=0;u<f.length;u++)f[u].el.addClass(e);if(r!=null)for(u=0;u<f.length;u++)f[u].el.css("opacity",r);this.helperEls=this.renderSegs(f,t)},n.prototype.renderSegs=function(){},n.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},n.prototype.fabricateEventFootprint=function(n){var i=this.view.calendar,o=i.footprintToDateProfile(n),t=new r.default(new f.default(i)),e;return t.dateProfile=o,e=t.buildInstance(),new u.default(n,t,e)},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(21),f=i(15),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"click",this.handleClick.bind(this));t.bindSegHandlerToEl(n,"mouseenter",this.handleMouseover.bind(this));t.bindSegHandlerToEl(n,"mouseleave",this.handleMouseout.bind(this))},t.prototype.handleClick=function(n,t){var i=this.component.publiclyTrigger("eventClick",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]});i===!1&&t.preventDefault()},t.prototype.handleMouseover=function(n,t){u.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=n,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]}))},t.prototype.handleMouseout=function(n,t){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:n.el[0],args:[n.footprint.getEventLegacy(),t||{},this.view]}))},t.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(14),e=i(245),o=i(225),s=i(59),h=i(224),c=i(223),l=i(222),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.dateClickingClass=e.default;r.prototype.dateSelectingClass=o.default;r.prototype.eventPointingClass=s.default;r.prototype.eventDraggingClass=h.default;r.prototype.eventResizingClass=c.default;r.prototype.externalDroppingClass=l.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),h=i(4),f=i(53),c=i(249),e=i(5),o=i(12),l=i(36),a=i(56),v=i(60),y=i(40),p=i(55),w=i(250),b=i(251),k=i(252),u=function(n){function t(t){var i=n.call(this,t)||this;return i.cellWeekNumbersVisible=!1,i.bottomCoordPadding=0,i.isRigid=!1,i.hasAllDayBusinessHours=!0,i}return s.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var r=this.sliceRangeByRow(n.unzonedRange),t,i=0;i<r.length;i++)t=r[i],this.isRTL?(t.leftCol=this.daysPerRow-1-t.lastRowDayIndex,t.rightCol=this.daysPerRow-1-t.firstRowDayIndex):(t.leftCol=t.firstRowDayIndex,t.rightCol=t.lastRowDayIndex);return r},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderGrid()},t.prototype.unrenderDates=function(){this.removeSegPopover()},t.prototype.renderGrid=function(){var i=this.view,r=this.rowCnt,e=this.colCnt,u="",n,t;for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),n=0;n<r;n++)u+=this.renderDayRowHtml(n,this.isRigid);for(this.el.html(u),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new f.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new f.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),n=0;n<r;n++)for(t=0;t<e;t++)this.publiclyTrigger("dayRender",{context:i,args:[this.getCellDate(n,t),this.getCellEl(n,t),i]})},t.prototype.renderDayRowHtml=function(n,t){var i=this.view.calendar.theme,r=["fc-row","fc-week",i.getClass("dayRow")];return t&&r.push("fc-rigid"),'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+i.getClass("tableGrid")+'">'+this.renderBgTrHtml(n)+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(n))+this.renderNumberCellsHtml(n)+(this.isRTL?this.renderNumberIntroHtml(n):"")+"<\/tr>"},t.prototype.renderNumberIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderNumberCellsHtml=function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderNumberCellHtml(r));return i.join("")},t.prototype.renderNumberCellHtml=function(n){var r=this.view,t="",u=this.dateProfile.activeUnzonedRange.containsDate(n),f=this.getIsDayNumbersVisible()&&u,i,e;return!f&&!this.cellWeekNumbersVisible?"<td/>":(i=this.getDayClasses(n),i.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(e=n._locale._fullCalendar_weekCalc==="ISO"?1:n._locale.firstDayOfWeek()),t+='<td class="'+i.join(" ")+'"'+(u?' data-date="'+n.format()+'"':"")+">",this.cellWeekNumbersVisible&&n.day()===e&&(t+=r.buildGotoAnchorHtml({date:n,type:"week"},{"class":"fc-week-number"},n.format("w"))),f&&(t+=r.buildGotoAnchorHtml(n,{"class":"fc-day-number"},n.format("D"))),t+"<\/td>")},t.prototype.prepareHits=function(){this.colCoordCache.build();this.rowCoordCache.build();this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.releaseHits=function(){this.colCoordCache.clear();this.rowCoordCache.clear()},t.prototype.queryHit=function(n,t){if(this.colCoordCache.isLeftInBounds(n)&&this.rowCoordCache.isTopInBounds(t)){var i=this.colCoordCache.getHorizontalIndex(n),r=this.rowCoordCache.getVerticalIndex(t);if(r!=null&&i!=null)return this.getCellHit(r,i)}},t.prototype.getHitFootprint=function(n){var t=this.getCellRange(n.row,n.col);return new o.default(new e.default(t.start,t.end),!0)},t.prototype.getHitEl=function(n){return this.getCellEl(n.row,n.col)},t.prototype.getCellHit=function(n,t){return{row:n,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(n),bottom:this.rowCoordCache.getBottomOffset(n)}},t.prototype.getCellEl=function(n,t){return this.cellEls.eq(n*this.colCnt+t)},t.prototype.executeEventUnrender=function(){this.removeSegPopover();n.prototype.executeEventUnrender.call(this)},t.prototype.getOwnEventSegs=function(){return n.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},t.prototype.renderDrag=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);if(n.length&&t&&t.component!==this)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(n){for(var r=this.eventRenderer.rowStructs||[],i,t=0;t<r.length;t++)this.unlimitRow(t),i=n?typeof n=="number"?n:this.computeRowLevelLimit(t):!1,i!==!1&&this.limitRow(t,i)},t.prototype.computeRowLevelLimit=function(n){function s(n,t){i=Math.max(i,r(t).outerHeight())}for(var e=this.rowEls.eq(n),o=e.height(),f=this.eventRenderer.rowStructs[n].tbodyEl.children(),u,i,t=0;t<f.length;t++)if(u=f.eq(t).removeClass("fc-limited"),i=0,u.find("> td > :first-child").each(s),u.position().top+i>o)return t;return!1},t.prototype.limitRow=function(n,t){var g=this,f=this.eventRenderer.rowStructs[n],y=[],i=0,p,w,b,c,e,u,k,l,o,nt,d,s,a,h,v,tt=function(f){while(i<f)u=g.getCellSegs(n,i,t),u.length&&(o=w[t-1][i],v=g.renderMoreLink(n,i,u),h=r("<div/>").append(v),o.append(h),y.push(h[0])),i++};if(t&&t<f.segLevels.length){for(p=f.segLevels[t-1],w=f.cellMatrix,b=f.tbodyEl.children().slice(t).addClass("fc-limited").get(),c=0;c<p.length;c++){for(e=p[c],tt(e.leftCol),l=[],k=0;i<=e.rightCol;)u=this.getCellSegs(n,i,t),l.push(u),k+=u.length,i++;if(k){for(o=w[t-1][e.leftCol],nt=o.attr("rowspan")||1,d=[],s=0;s<l.length;s++)a=r('<td class="fc-more-cell"/>').attr("rowspan",nt),u=l[s],v=this.renderMoreLink(n,e.leftCol+s,[e].concat(u)),h=r("<div/>").append(v),a.append(h),d.push(a[0]),y.push(a[0]);o.addClass("fc-limited").after(r(d));b.push(o[0])}}tt(this.colCnt);f.moreEls=r(y);f.limitedEls=r(b)}},t.prototype.unlimitRow=function(n){var t=this.eventRenderer.rowStructs[n];t.moreEls&&(t.moreEls.remove(),t.moreEls=null);t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},t.prototype.renderMoreLink=function(n,t,i){var u=this,f=this.view;return r('<a class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click",function(e){var o=u.opt("eventLimitClick"),s=u.getCellDate(n,t),h=r(e.currentTarget),l=u.getCellEl(n,t),a=u.getCellSegs(n,t),c=u.resliceDaySegs(a,s),v=u.resliceDaySegs(i,s);typeof o=="function"&&(o=u.publiclyTrigger("eventLimitClick",{context:f,args:[{date:s.clone(),dayEl:l,moreEl:h,segs:c,hiddenSegs:v},e,f]}));o==="popover"?u.showSegPopover(n,t,h,c):typeof o=="string"&&f.calendar.zoomTo(s,o)})},t.prototype.showSegPopover=function(n,t,i,r){var u=this,e=this.view,o=i.parent(),s,f;s=this.rowCnt===1?e.el:this.rowEls.eq(n);f={className:"fc-more-popover "+e.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(n,t,r),parentEl:e.el,top:s.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){u.popoverSegs&&u.triggerBeforeEventSegsDestroyed(u.popoverSegs);u.segPopover.removeElement();u.segPopover=null;u.popoverSegs=null}};this.isRTL?f.right=o.offset().left+o.outerWidth()+1:f.left=o.offset().left-1;this.segPopover=new c.default(f);this.segPopover.show();this.bindAllSegHandlersToEl(this.segPopover.el);this.triggerAfterEventSegsRendered(r)},t.prototype.renderSegPopoverContent=function(n,t,i){var o=this.view,f=o.calendar.theme,s=this.getCellDate(n,t).format(this.opt("dayPopoverFormat")),e=r('<div class="fc-header '+f.getClass("popoverHeader")+'"><span class="fc-close '+f.getIconClass("close")+'"><\/span><span class="fc-title">'+h.htmlEscape(s)+'<\/span><div class="fc-clear"/><\/div><div class="fc-body '+f.getClass("popoverContent")+'"><div class="fc-event-container"><\/div><\/div>'),c=e.find(".fc-event-container"),u;for(i=this.eventRenderer.renderFgSegEls(i,!0),this.popoverSegs=i,u=0;u<i.length;u++)this.hitsNeeded(),i[u].hit=this.getCellHit(n,t),this.hitsNotNeeded(),c.append(i[u].el);return e},t.prototype.resliceDaySegs=function(n,t){for(var h=t.clone(),c=h.clone().add(1,"days"),a=new e.default(h,c),s=[],i,u,f=0;f<n.length;f++)i=n[f],u=i.footprint.componentFootprint.unzonedRange.intersect(a),u&&s.push(r.extend({},i,{footprint:new l.default(new o.default(u,i.footprint.componentFootprint.isAllDay),i.footprint.eventDef,i.footprint.eventInstance),isStart:i.isStart&&u.isStart,isEnd:i.isEnd&&u.isEnd}));return this.eventRenderer.sortEventSegs(s),s},t.prototype.getMoreLinkText=function(n){var t=this.opt("eventLimitText");return typeof t=="function"?t(n):"+"+n+" "+t},t.prototype.getCellSegs=function(n,t,i){for(var f=this.eventRenderer.rowStructs[n].segMatrix,r=i||0,e=[],u;r<f.length;)u=f[r][t],u&&e.push(u),r++;return e},t}(y.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=a.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;v.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){function l(n){return function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.colWeekNumbersVisible=!1,t}return f.__extends(t,n),t.prototype.renderHeadIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+n.calendar.theme.getClass("widgetHeader")+'" '+n.weekNumberStyleAttr()+"><span>"+r.htmlEscape(this.opt("weekNumberTitle"))+"<\/span><\/th>":""},t.prototype.renderNumberIntroHtml=function(n){var t=this.view,i=this.getCellDate(n,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt===1},i.format("w"))+"<\/td>":""},t.prototype.renderBgIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+n.calendar.theme.getClass("widgetContent")+'" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.renderIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.getIsNumbersVisible=function(){return e.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},t}(n)}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),o=i(3),r=i(4),s=i(39),h=i(41),c=i(228),e=i(61),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=r.instantiateDayGrid(),r.dayGrid.isRigid=r.hasRigidRows(),r.opt("weekNumbers")&&(r.opt("weekNumbersWithinDays")?(r.dayGrid.cellWeekNumbersVisible=!0,r.dayGrid.colWeekNumbersVisible=!1):(r.dayGrid.cellWeekNumbersVisible=!1,r.dayGrid.colWeekNumbersVisible=!0)),r.addChild(r.dayGrid),r.scroller=new s.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.instantiateDayGrid=function(){var n=l(this.dayGridClass);return new n(this)},t.prototype.executeDateRender=function(t){this.dayGrid.breakOnWeeks=/year|month|week/.test(t.currentRangeUnit);n.prototype.executeDateRender.call(this,t)},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-day-grid-container");t=o('<div class="fc-day-grid" />').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.dayGrid.headContainerEl=this.el.find(".fc-head-container");this.dayGrid.setElement(t)},t.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'"><\/td><\/tr><\/tbody><\/table>'},t.prototype.weekNumberStyleAttr=function(){return this.weekNumberWidth!=null?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var n=this.opt("eventLimit");return n&&typeof n!="number"},t.prototype.updateSize=function(t,i,u){var e=this.opt("eventLimit"),s=this.dayGrid.headContainerEl.find(".fc-row"),f,o;if(!this.dayGrid.rowEls){i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f));return}n.prototype.updateSize.call(this,t,i,u);this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=r.matchCellWidths(this.el.find(".fc-week-number")));this.scroller.clear();r.uncompensateScroll(s);this.dayGrid.removeSegPopover();e&&typeof e=="number"&&this.dayGrid.limitRows(e);f=this.computeScrollerHeight(t);this.setGridHeight(f,i);e&&typeof e!="number"&&this.dayGrid.limitRows(e);i||(this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.setGridHeight=function(n,t){t?r.undistributeHeight(this.dayGrid.rowEls):r.distributeHeight(this.dayGrid.rowEls,n,!0)},t.prototype.computeInitialDateScroll=function(){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){n.top!==undefined&&this.scroller.setScrollTop(n.top)},t}(h.default);t.default=u;u.prototype.dateProfileGeneratorClass=c.default;u.prototype.dayGridClass=e.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){function h(n,t,i){for(var r=0;r<n.length;r++)if(!t(n[r].eventInstance.toLegacy(),i?i.toLegacy():null))return!1;return!0}function c(n,t){for(var e=t.toLegacy(),u,f,r,i=0;i<n.length;i++)if((u=n[i].eventInstance,f=u.def,r=f.getOverlap(),r===!1)||typeof r=="function"&&!r(u.toLegacy(),e))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),f=i(12),e=i(49),o=i(6),r=i(35),s=function(){function n(n,t){this.eventManager=n;this._calendar=t}return n.prototype.opt=function(n){return this._calendar.opt(n)},n.prototype.isEventInstanceGroupAllowed=function(n){for(var u=n.getEventDef(),i=this.eventRangesToEventFootprints(n.getAllEventRanges()),e=this.getPeerEventInstances(u),o=e.map(r.eventInstanceToEventRange),s=this.eventRangesToEventFootprints(o),h=u.getConstraint(),c=u.getOverlap(),f=this.opt("eventAllow"),t=0;t<i.length;t++)if(!this.isFootprintAllowed(i[t].componentFootprint,s,h,c,i[t].eventInstance))return!1;if(f)for(t=0;t<i.length;t++)if(f(i[t].componentFootprint.toLegacy(this._calendar),i[t].getEventLegacy())===!1)return!1;return!0},n.prototype.getPeerEventInstances=function(n){return this.eventManager.getEventInstancesWithoutId(n.id)},n.prototype.isSelectionFootprintAllowed=function(n){var i=this.eventManager.getEventInstances(),u=i.map(r.eventInstanceToEventRange),f=this.eventRangesToEventFootprints(u),t;return this.isFootprintAllowed(n,f,this.opt("selectConstraint"),this.opt("selectOverlap"))?(t=this.opt("selectAllow"),t?t(n.toLegacy(this._calendar))!==!1:!0):!1},n.prototype.isFootprintAllowed=function(n,t,i,r,u){var e,f;if(i!=null&&(e=this.constraintValToFootprints(i,n.isAllDay),!this.isFootprintWithinConstraints(n,e)))return!1;if(f=this.collectOverlapEventFootprints(t,n),r===!1){if(f.length)return!1}else if(typeof r=="function"&&!h(f,r,u))return!1;return u&&!c(f,u)?!1:!0},n.prototype.isFootprintWithinConstraints=function(n,t){for(var i=0;i<t.length;i++)if(this.footprintContainsFootprint(t[i],n))return!0;return!1},n.prototype.constraintValToFootprints=function(n,t){var i;return n==="businessHours"?this.buildCurrentBusinessFootprints(t):typeof n=="object"?(i=this.parseEventDefToInstances(n),i?this.eventInstancesToFootprints(i):this.parseFootprints(n)):n!=null?(i=this.eventManager.getEventInstancesWithId(n),this.eventInstancesToFootprints(i)):void 0},n.prototype.buildCurrentBusinessFootprints=function(n){var t=this._calendar.view,r=t.get("businessHourGenerator"),u=t.dateProfile.activeUnzonedRange,i=r.buildEventInstanceGroup(n,u);return i?this.eventInstancesToFootprints(i.eventInstances):[]},n.prototype.eventInstancesToFootprints=function(n){var t=n.map(r.eventInstanceToEventRange),i=this.eventRangesToEventFootprints(t);return i.map(r.eventFootprintToComponentFootprint)},n.prototype.collectOverlapEventFootprints=function(n,t){for(var r=[],i=0;i<n.length;i++)this.footprintsIntersect(t,n[i].componentFootprint)&&r.push(n[i]);return r},n.prototype.parseEventDefToInstances=function(n){var i=this.eventManager,t=e.default.parse(n,new o.default(this._calendar));return t?t.buildInstances(i.currentPeriod.unzonedRange):!1},n.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},n.prototype.eventRangeToEventFootprints=function(n){return[r.eventRangeToEventFootprint(n)]},n.prototype.parseFootprints=function(n){var t,i;return n.start&&(t=this._calendar.moment(n.start),t.isValid()||(t=null)),n.end&&(i=this._calendar.moment(n.end),i.isValid()||(i=null)),[new f.default(new u.default(t,i),t&&!t.hasTime()||i&&!i.hasTime())]},n.prototype.footprintContainsFootprint=function(n,t){return n.unzonedRange.containsRange(t.unzonedRange)},n.prototype.footprintsIntersect=function(n,t){return n.unzonedRange.intersectsWith(t.unzonedRange)},n}();t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(4),e=i(14),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.defineStandardProps=function(n){var t=this.prototype;t.hasOwnProperty("standardPropMap")||(t.standardPropMap=Object.create(t.standardPropMap));f.copyOwnProps(n,t.standardPropMap)},t.copyVerbatimStandardProps=function(n,t){var r=this.prototype.standardPropMap;for(var i in r)n[i]!=null&&r[i]===!0&&(t[i]=n[i])},t.prototype.applyProps=function(n){var i=this.standardPropMap,r={},u={};for(var t in n)i[t]===!0?this[t]=n[t]:i[t]===!1?r[t]=n[t]:u[t]=n[t];return this.applyMiscProps(u),this.applyManualStandardProps(r)},t.prototype.applyManualStandardProps=function(){return!0},t.prototype.applyMiscProps=function(){},t.prototype.isStandardProp=function(n){return n in this.standardPropMap},t}(e.default);t.default=r;r.prototype.standardPropMap={}},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.def=n;this.dateProfile=t}return n.prototype.toLegacy=function(){var n=this.dateProfile,t=this.def.toLegacy();return t.start=n.start.clone(),t.end=n.end?n.end.clone():null,t},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),r=i(0),f=i(34),s=i(209),h=i(17),u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},t.prototype.buildInstances=function(n){for(var f=this.source.calendar,t=n.getStart(),o=n.getEnd(),r,i,u,e=[];t.isBefore(o);)(!this.dowHash||this.dowHash[t.day()])&&(r=f.applyTimezone(t),i=r.clone(),u=null,this.startTime?i.time(this.startTime):i.stripTime(),this.endTime&&(u=r.clone().time(this.endTime)),e.push(new s.default(this,new h.default(i,u,f)))),t.add(1,"days");return e},t.prototype.setDow=function(n){this.dowHash||(this.dowHash={});for(var t=0;t<n.length;t++)this.dowHash[n[t]]=!0},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.startTime&&(t.startTime=r.duration(this.startTime)),t.endTime&&(t.endTime=r.duration(this.endTime)),this.dowHash&&(t.dowHash=o.extend({},this.dowHash)),t},t}(f.default);t.default=u;u.prototype.applyProps=function(n){var t=f.default.prototype.applyProps.call(this,n);return n.start&&(this.startTime=r.duration(n.start)),n.end&&(this.endTime=r.duration(n.end)),n.dow&&this.setDow(n.dow),t};u.defineStandardProps({start:!1,end:!1,dow:!1})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.unzonedRange=n;this.eventDef=t;i&&(this.eventInstance=i)}return n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(35),f=i(18),e=i(210),o=i(6),s={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},h=function(){function n(n,t){this.rawComplexDef=n;this.calendar=t}return n.prototype.buildEventInstanceGroup=function(n,t){var i=this.buildEventDefs(n),r;if(i.length)return r=new f.default(u.eventDefsToEventInstances(i,t)),r.explicitEventDef=i[0],r},n.prototype.buildEventDefs=function(n){var i=this.rawComplexDef,t=[],f=!1,u,e=[];for(i===!0?t=[{}]:r.isPlainObject(i)?t=[i]:r.isArray(i)&&(t=i,f=!0),u=0;u<t.length;u++)(!f||t[u].dow)&&e.push(this.buildEventDef(n,t[u]));return e},n.prototype.buildEventDef=function(n,t){var i=r.extend({},s,t);return n&&(i.start=null,i.end=null),e.default.parse(i,new o.default(this.calendar))},n}();t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"};r.prototype.baseIconClass="fc-icon";r.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"};r.prototype.iconOverrideOption="buttonIcons";r.prototype.iconOverrideCustomButtonOption="icon";r.prototype.iconOverridePrefix="fc-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"};r.prototype.baseIconClass="ui-icon";r.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"};r.prototype.iconOverrideOption="themeButtonIcons";r.prototype.iconOverrideCustomButtonOption="themeIcon";r.prototype.iconOverridePrefix="ui-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(20),u=i(6),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.parse=function(n,t){var i;return(r.isFunction(n.events)?i=n:r.isFunction(n)&&(i={events:n}),i)?u.default.parse.call(this,i,t):!1},t.prototype.fetch=function(n,t,i){var r=this;return this.calendar.pushLoading(),o.default.construct(function(u){r.func.call(r.calendar,n.clone(),t.clone(),i,function(n){r.calendar.popLoading();u(r.parseEventDefs(n))})})},t.prototype.getPrimitive=function(){return this.func},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.func=t.events,i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),s=i(20),f=i(6),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return o.__extends(t,n),t.parse=function(n,t){var i;return(typeof n.url=="string"?i=n:typeof n=="string"&&(i={url:n}),i)?f.default.parse.call(this,i,t):!1},t.prototype.fetch=function(n,i,f){var e=this,o=this.ajaxSettings,h=o.success,c=o.error,l=this.buildRequestParams(n,i,f);return this.calendar.pushLoading(),s.default.construct(function(n,i){r.ajax(r.extend({},t.AJAX_DEFAULTS,o,{url:e.url,data:l,success:function(t,f,o){var s;e.calendar.popLoading();t?(s=u.applyAll(h,e,[t,f,o]),r.isArray(s)&&(t=s),n(e.parseEventDefs(t))):i()},error:function(n,t,r){e.calendar.popLoading();u.applyAll(c,e,[n,t,r]);i()}}))})},t.prototype.buildRequestParams=function(n,t,i){var s=this.calendar,h=this.ajaxSettings,f,e,o,c,u={};return f=this.startParam,f==null&&(f=s.opt("startParam")),e=this.endParam,e==null&&(e=s.opt("endParam")),o=this.timezoneParam,o==null&&(o=s.opt("timezoneParam")),c=r.isFunction(h.data)?h.data():h.data||{},r.extend(u,c),u[f]=n.format(),u[e]=t.format(),i&&i!=="local"&&(u[o]=i),u},t.prototype.getPrimitive=function(){return this.url},t.prototype.applyMiscProps=function(n){this.ajaxSettings=n},t.AJAX_DEFAULTS={dataType:"json",cache:!1},t}(f.default);t.default=e;e.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(11),r=function(){function n(){this.q=[];this.isPaused=!1;this.isRunning=!1}return n.prototype.queue=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.q.push.apply(this.q,t);this.tryStart()},n.prototype.pause=function(){this.isPaused=!0},n.prototype.resume=function(){this.isPaused=!1;this.tryStart()},n.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},n.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},n.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},n.prototype.runRemaining=function(){var t=this,i,n;do if(i=this.q.shift(),n=this.runTask(i),n&&n.then){n.then(function(){t.canRunNext()&&t.runRemaining()});return}while(this.canRunNext());this.trigger("stop");this.isRunning=!1;this.tryStart()},n.prototype.runTask=function(n){return n()},n}();t.default=r;u.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(217),f=function(n){function t(t){var i=n.call(this)||this;return i.waitsByNamespace=t||{},i}return r.__extends(t,n),t.prototype.queue=function(n,t,i){var u={func:n,namespace:t,type:i},r;t&&(r=this.waitsByNamespace[t]);this.waitNamespace&&(t===this.waitNamespace&&r!=null?this.delayWait(r):(this.clearWait(),this.tryStart()));this.compoundTask(u)&&(this.waitNamespace||r==null?this.tryStart():this.startWait(t,r))},t.prototype.startWait=function(n,t){this.waitNamespace=n;this.spawnWait(t)},t.prototype.delayWait=function(n){clearTimeout(this.waitId);this.spawnWait(n)},t.prototype.spawnWait=function(n){var t=this;this.waitId=setTimeout(function(){t.waitNamespace=null;t.tryStart()},n)},t.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},t.prototype.canRunNext=function(){var i,t;if(!n.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(i=this.q,t=0;t<i.length;t++)if(i[t].namespace!==this.waitNamespace)return!0;return!1}return!0},t.prototype.runTask=function(n){n.func()},t.prototype.compoundTask=function(n){var i=this.q,r=!0,t,u;if(n.namespace&&n.type==="destroy")for(t=i.length-1;t>=0;t--){u=i[t];switch(u.type){case"init":r=!1;case"add":case"remove":i.splice(t,1)}}return r&&i.push(n),r},t}(u.default);t.default=f},function(n,t,i){function a(n){var r,i,u=[],t;for(r in n)for(i=n[r].eventInstances,t=0;t<i.length;t++)u.push(i[t].toLegacy());return u}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(3),e=i(0),r=i(4),o=i(10),s=i(47),h=i(237),c=i(35),l=function(n){function t(i,r){var u=n.call(this)||this;return u.isRTL=!1,u.hitsNeededDepth=0,u.hasAllDayBusinessHours=!1,u.isDatesRendered=!1,i&&(u.view=i),r&&(u.options=r),u.uid=String(t.guid++),u.childrenByUid={},u.nextDayThreshold=e.duration(u.opt("nextDayThreshold")),u.isRTL=u.opt("isRTL"),u.fillRendererClass&&(u.fillRenderer=new u.fillRendererClass(u)),u.eventRendererClass&&(u.eventRenderer=new u.eventRendererClass(u,u.fillRenderer)),u.helperRendererClass&&u.eventRenderer&&(u.helperRenderer=new u.helperRendererClass(u,u.eventRenderer)),u.businessHourRendererClass&&u.fillRenderer&&(u.businessHourRenderer=new u.businessHourRendererClass(u,u.fillRenderer)),u}return u.__extends(t,n),t.prototype.addChild=function(n){return this.childrenByUid[n.uid]?!1:(this.childrenByUid[n.uid]=n,!0)},t.prototype.removeChild=function(n){return this.childrenByUid[n.uid]?(delete this.childrenByUid[n.uid],!0):!1},t.prototype.updateSize=function(){this.callChildren("updateSize",arguments)},t.prototype.opt=function(n){return this._getView().opt(n)},t.prototype.publiclyTrigger=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=this._getCalendar(),t.publiclyTrigger.apply(t,i)},t.prototype.hasPublicHandlers=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=this._getCalendar(),t.hasPublicHandlers.apply(t,i)},t.prototype.executeDateRender=function(n){this.dateProfile=n;this.renderDates(n);this.isDatesRendered=!0;this.callChildren("executeDateRender",arguments)},t.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments);this.dateProfile=null;this.unrenderDates();this.isDatesRendered=!1},t.prototype.renderDates=function(){},t.prototype.unrenderDates=function(){},t.prototype.getNowIndicatorUnit=function(){},t.prototype.renderNowIndicator=function(){this.callChildren("renderNowIndicator",arguments)},t.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},t.prototype.renderBusinessHours=function(n){this.businessHourRenderer&&this.businessHourRenderer.render(n);this.callChildren("renderBusinessHours",arguments)},t.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments);this.businessHourRenderer&&this.businessHourRenderer.unrender()},t.prototype.executeEventRender=function(n){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(n)):this.renderEvents&&this.renderEvents(a(n));this.callChildren("executeEventRender",arguments)},t.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments);this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},t.prototype.getBusinessHourSegs=function(){var n=this.getOwnBusinessHourSegs();return this.iterChildren(function(t){n.push.apply(n,t.getBusinessHourSegs())}),n},t.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},t.prototype.getEventSegs=function(){var n=this.getOwnEventSegs();return this.iterChildren(function(t){n.push.apply(n,t.getEventSegs())}),n},t.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},t.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs());this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},t.prototype.triggerAfterEventSegsRendered=function(n){var t=this;this.hasPublicHandlers("eventAfterRender")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventAfterRender",{context:i,args:[i,n.el,t]}))})},t.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},t.prototype.triggerBeforeEventSegsDestroyed=function(n){var t=this;this.hasPublicHandlers("eventDestroy")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventDestroy",{context:i,args:[i,n.el,t]}))})},t.prototype.showEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","")});this.callChildren("showEventsWithId",arguments)},t.prototype.hideEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","hidden")});this.callChildren("hideEventsWithId",arguments)},t.prototype.renderDrag=function(n,t,i){var r=!1;return this.iterChildren(function(u){u.renderDrag(n,t,i)&&(r=!0)}),r},t.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},t.prototype.renderEventResize=function(){this.callChildren("renderEventResize",arguments)},t.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},t.prototype.renderSelectionFootprint=function(n){this.renderHighlight(n);this.callChildren("renderSelectionFootprint",arguments)},t.prototype.unrenderSelection=function(){this.unrenderHighlight();this.callChildren("unrenderSelection",arguments)},t.prototype.renderHighlight=function(n){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",n,{getClasses:function(){return["fc-highlight"]}});this.callChildren("renderHighlight",arguments)},t.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight");this.callChildren("unrenderHighlight",arguments)},t.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits();this.callChildren("hitsNeeded",arguments)},t.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits();this.callChildren("hitsNotNeeded",arguments)},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(n,t){var r=this.childrenByUid,u,i;for(u in r)if(i=r[u].queryHit(n,t),i)break;return i},t.prototype.getSafeHitFootprint=function(n){var t=this.getHitFootprint(n);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},t.prototype.getHitFootprint=function(){},t.prototype.getHitEl=function(){},t.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},t.prototype.eventRangeToEventFootprints=function(n){return[c.eventRangeToEventFootprint(n)]},t.prototype.eventFootprintsToSegs=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventFootprintToSegs(n[t]));return i},t.prototype.eventFootprintToSegs=function(n){for(var u=n.componentFootprint.unzonedRange,r,t=this.componentFootprintToSegs(n.componentFootprint),i=0;i<t.length;i++)r=t[i],u.isStart||(r.isStart=!1),u.isEnd||(r.isEnd=!1),r.footprint=n;return t},t.prototype.componentFootprintToSegs=function(){return[]},t.prototype.callChildren=function(n,t){this.iterChildren(function(i){i[n].apply(i,t)})},t.prototype.iterChildren=function(n){var t=this.childrenByUid;for(var i in t)n(t[i])},t.prototype._getCalendar=function(){var n=this;return n.calendar||n.view.calendar},t.prototype._getView=function(){return this.view},t.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},t.prototype.buildGotoAnchorHtml=function(n,t,i){var u,e,s,h;return f.isPlainObject(n)?(u=n.date,e=n.type,s=n.forceOff):u=n,u=o.default(u),h={date:u.format("YYYY-MM-DD"),type:e||"day"},typeof t=="string"&&(i=t,t=null),t=t?" "+r.attrsToStr(t):"",i=i||"",!s&&this.opt("navLinks")?"<a"+t+' data-goto="'+r.htmlEscape(JSON.stringify(h))+'">'+i+"<\/a>":"<span"+t+">"+i+"<\/span>"},t.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||r.htmlEscape(this.opt("allDayText"))},t.prototype.getDayClasses=function(n,t){var u=this._getView(),i=[],f;return this.dateProfile.activeUnzonedRange.containsDate(n)?(i.push("fc-"+r.dayIDs[n.day()]),u.isDateInOtherMonth(n,this.dateProfile)&&i.push("fc-other-month"),f=u.calendar.getNow(),n.isSame(f,"day")?(i.push("fc-today"),t!==!0&&i.push(u.calendar.theme.getClass("today"))):n<f?i.push("fc-past"):i.push("fc-future")):i.push("fc-disabled-day"),i},t.prototype.formatRange=function(n,t,i,r){var u=n.end;return t&&(u=u.clone().subtract(1)),s.formatRange(n.start,u,i,r,this.isRTL)},t.prototype.currentRangeAs=function(n){return this._getDateProfile().currentUnzonedRange.as(n)},t.prototype.computeDayRange=function(n){var r=this._getCalendar(),i=r.msToUtcMoment(n.startMs,!0),u=r.msToUtcMoment(n.endMs),f=+u.time(),t=u.clone().stripTime();return f&&f>=this.nextDayThreshold&&t.add(1,"days"),t<=i&&(t=i.clone().add(1,"days")),{start:i,end:t}},t.prototype.isMultiDayRange=function(n){var t=this.computeDayRange(n);return t.end.diff(t.start,"days")>1},t.guid=0,t}(h.default);t.default=l},function(n,t,i){function v(n,t){return t==null?n:r.isFunction(t)?n.filter(t):(t+="",n.filter(function(n){return n.id==t||n._id===t}))}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(0),s=i(4),e=i(32),y=i(238),h=i(21),p=i(11),w=i(7),c=i(239),b=i(240),k=i(241),d=i(207),g=i(31),u=i(10),l=i(5),nt=i(12),tt=i(17),it=i(242),rt=i(212),a=i(38),ut=i(49),ft=i(13),et=i(37),ot=i(6),st=i(51),o=function(){function n(n,t){this.loadingLevel=0;this.ignoreUpdateViewSize=0;this.freezeContentHeightDepth=0;h.default.needed();this.el=n;this.viewsByType={};this.optionsManager=new b.default(this,t);this.viewSpecManager=new k.default(this.optionsManager,this);this.initMomentInternals();this.initCurrentDate();this.initEventManager();this.constraints=new d.default(this.eventManager,this);this.constructed()}return n.prototype.constructed=function(){},n.prototype.getView=function(){return this.view},n.prototype.publiclyTrigger=function(n,t){var f=this.opt(n),u,i;return r.isPlainObject(t)?(u=t.context,i=t.args):r.isArray(t)&&(i=t),u==null&&(u=this.el[0]),i||(i=[]),this.triggerWith(n,u,i),f?f.apply(u,i):void 0},n.prototype.hasPublicHandlers=function(n){return this.hasHandlers(n)||this.opt(n)},n.prototype.option=function(n,t){var i;if(typeof n=="string"){if(t===undefined)return this.optionsManager.get(n);i={};i[n]=t;this.optionsManager.add(i)}else typeof n=="object"&&this.optionsManager.add(n)},n.prototype.opt=function(n){return this.optionsManager.get(n)},n.prototype.instantiateView=function(n){var t=this.viewSpecManager.getViewSpec(n);if(!t)throw new Error('View type "'+n+'" is not valid');return new t["class"](this,t)},n.prototype.isValidViewType=function(n){return Boolean(this.viewSpecManager.getViewSpec(n))},n.prototype.changeView=function(n,t){t&&(t.start&&t.end?this.optionsManager.recordOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone());this.renderView(n)},n.prototype.zoomTo=function(n,t){var i;t=t||"day";i=this.viewSpecManager.getViewSpec(t)||this.viewSpecManager.getUnitViewSpec(t);this.currentDate=n.clone();this.renderView(i?i.type:null)},n.prototype.initCurrentDate=function(){var n=this.opt("defaultDate");this.currentDate=n!=null?this.moment(n).stripZone():this.getNow()},n.prototype.prev=function(){var n=this.view,t=n.dateProfileGenerator.buildPrev(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.next=function(){var n=this.view,t=n.dateProfileGenerator.buildNext(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.prevYear=function(){this.currentDate.add(-1,"years");this.renderView()},n.prototype.nextYear=function(){this.currentDate.add(1,"years");this.renderView()},n.prototype.today=function(){this.currentDate=this.getNow();this.renderView()},n.prototype.gotoDate=function(n){this.currentDate=this.moment(n).stripZone();this.renderView()},n.prototype.incrementDate=function(n){this.currentDate.add(f.duration(n));this.renderView()},n.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},n.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},n.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},n.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},n.prototype.initialRender=function(){var n=this,t=this.el;t.addClass("fc");t.on("click.fc","a[data-goto]",function(t){var o=r(t.currentTarget),f=o.data("goto"),e=n.moment(f.date),u=f.type,i=n.view.opt("navLink"+s.capitaliseFirstLetter(u)+"Click");typeof i=="function"?i(e,t):(typeof i=="string"&&(u=i),n.zoomTo(e,u))});this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(i){var f=st.getThemeSystemClass(i.themeSystem||i.theme),r=new f(n.optionsManager),u=r.getClass("widget");n.theme=r;u&&t.addClass(u)},function(){var i=n.theme.getClass("widget");n.theme=null;i&&t.removeClass(i)});this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(t){n.businessHourGenerator=new rt.default(t.businessHours,n);n.view&&n.view.set("businessHourGenerator",n.businessHourGenerator)},function(){n.businessHourGenerator=null});this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(n){t.toggleClass("fc-ltr",!n.isRTL);t.toggleClass("fc-rtl",n.isRTL)});this.contentEl=r("<div class='fc-view-container'/>").prependTo(t);this.initToolbars();this.renderHeader();this.renderFooter();this.renderView(this.opt("defaultView"));this.opt("handleWindowResize")&&r(window).resize(this.windowResizeProxy=s.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},n.prototype.destroy=function(){this.view&&this.clearView();this.toolbarsManager.proxyCall("removeElement");this.contentEl.remove();this.el.removeClass("fc fc-ltr fc-rtl");this.optionsManager.unwatch("settingTheme");this.optionsManager.unwatch("settingBusinessHourGenerator");this.el.off(".fc");this.windowResizeProxy&&(r(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null);h.default.unneeded()},n.prototype.elementVisible=function(){return this.el.is(":visible")},n.prototype.bindViewHandlers=function(n){var t=this;n.watch("titleForCalendar",["title"],function(i){n===t.view&&t.setToolbarsTitle(i.title)});n.watch("dateProfileForCalendar",["dateProfile"],function(i){n===t.view&&(t.currentDate=i.dateProfile.date,t.updateToolbarButtons(i.dateProfile))})},n.prototype.unbindViewHandlers=function(n){n.unwatch("titleForCalendar");n.unwatch("dateProfileForCalendar")},n.prototype.renderView=function(n){var i=this.view,t;this.freezeContentHeight();i&&n&&i.type!==n&&this.clearView();!this.view&&n&&(t=this.view=this.viewsByType[n]||(this.viewsByType[n]=this.instantiateView(n)),this.bindViewHandlers(t),t.startBatchRender(),t.setElement(r("<div class='fc-view fc-"+n+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",n));this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),t&&t.stopBatchRender());this.thawContentHeight()},n.prototype.clearView=function(){var n=this.view;this.toolbarsManager.proxyCall("deactivateButton",n.type);this.unbindViewHandlers(n);n.removeElement();n.unsetDate();this.view=null},n.prototype.reinitView=function(){var n=this.view,t=n.queryScroll();this.freezeContentHeight();this.clearView();this.calcSize();this.renderView(n.type);this.view.applyScroll(t);this.thawContentHeight()},n.prototype.getSuggestedViewHeight=function(){return this.suggestedViewHeight==null&&this.calcSize(),this.suggestedViewHeight},n.prototype.isHeightAuto=function(){return this.opt("contentHeight")==="auto"||this.opt("height")==="auto"},n.prototype.updateViewSize=function(n){n===void 0&&(n=!1);var t=this.view,i;if(!this.ignoreUpdateViewSize&&t)return n&&(this.calcSize(),i=t.queryScroll()),this.ignoreUpdateViewSize++,t.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),n),this.ignoreUpdateViewSize--,n&&t.applyScroll(i),!0},n.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},n.prototype._calcSize=function(){var t=this.opt("contentHeight"),n=this.opt("height");this.suggestedViewHeight=typeof t=="number"?t:typeof t=="function"?t():typeof n=="number"?n-this.queryToolbarsHeight():typeof n=="function"?n()-this.queryToolbarsHeight():n==="parent"?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},n.prototype.windowResize=function(n){n.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},n.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},n.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},n.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--;this.contentEl.css({width:"",height:"",overflow:""});this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},n.prototype.initToolbars=function(){this.header=new c.default(this,this.computeHeaderOptions());this.footer=new c.default(this,this.computeFooterOptions());this.toolbarsManager=new y.default([this.header,this.footer])},n.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},n.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},n.prototype.renderHeader=function(){var n=this.header;n.setToolbarOptions(this.computeHeaderOptions());n.render();n.el&&this.el.prepend(n.el)},n.prototype.renderFooter=function(){var n=this.footer;n.setToolbarOptions(this.computeFooterOptions());n.render();n.el&&this.el.append(n.el)},n.prototype.setToolbarsTitle=function(n){this.toolbarsManager.proxyCall("updateTitle",n)},n.prototype.updateToolbarButtons=function(n){var i=this.getNow(),t=this.view,r=t.dateProfileGenerator.build(i),u=t.dateProfileGenerator.buildPrev(t.get("dateProfile")),f=t.dateProfileGenerator.buildNext(t.get("dateProfile"));this.toolbarsManager.proxyCall(r.isValid&&!n.currentUnzonedRange.containsDate(i)?"enableButton":"disableButton","today");this.toolbarsManager.proxyCall(u.isValid?"enableButton":"disableButton","prev");this.toolbarsManager.proxyCall(f.isValid?"enableButton":"disableButton","next")},n.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(n,t){var i=t.el?t.el.outerHeight(!0):0;return n+i},0)},n.prototype.select=function(){this.view.select(this.buildSelectFootprint.apply(this,arguments))},n.prototype.unselect=function(){this.view&&this.view.unselect()},n.prototype.buildSelectFootprint=function(n,t){var i=this.moment(n).stripZone(),r;return r=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),new nt.default(new l.default(i,r),!i.hasTime())},n.prototype.initMomentInternals=function(){var n=this;this.defaultAllDayEventDuration=f.duration(this.opt("defaultAllDayEventDuration"));this.defaultTimedEventDuration=f.duration(this.opt("defaultTimedEventDuration"));this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(t){var r=t.weekNumberCalculation,u=t.firstDay,f,i;r==="iso"&&(r="ISO");i=Object.create(g.getMomentLocaleData(t.locale));t.monthNames&&(i._months=t.monthNames);t.monthNamesShort&&(i._monthsShort=t.monthNamesShort);t.dayNames&&(i._weekdays=t.dayNames);t.dayNamesShort&&(i._weekdaysShort=t.dayNamesShort);u==null&&r==="ISO"&&(u=1);u!=null&&(f=Object.create(i._week),f.dow=u,i._week=f);(r==="ISO"||r==="local"||typeof r=="function")&&(i._fullCalendar_weekCalc=r);n.localeData=i;n.currentDate&&n.localizeMoment(n.currentDate)})},n.prototype.moment=function(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return this.opt("timezone")==="local"?(n=u.default.apply(null,t),n.hasTime()&&n.local()):n=this.opt("timezone")==="UTC"?u.default.utc.apply(null,t):u.default.parseZone.apply(null,t),this.localizeMoment(n),n},n.prototype.msToMoment=function(n,t){var i=u.default.utc(n);return t?i.stripTime():i=this.applyTimezone(i),this.localizeMoment(i),i},n.prototype.msToUtcMoment=function(n,t){var i=u.default.utc(n);return t&&i.stripTime(),this.localizeMoment(i),i},n.prototype.localizeMoment=function(n){n._locale=this.localeData},n.prototype.getIsAmbigTimezone=function(){return this.opt("timezone")!=="local"&&this.opt("timezone")!=="UTC"},n.prototype.applyTimezone=function(n){if(!n.hasTime())return n.clone();var t=this.moment(n.toArray()),r=n.time().asMilliseconds()-t.time().asMilliseconds(),i;return r&&(i=t.clone().add(r),n.time().asMilliseconds()-i.time().asMilliseconds()==0&&(t=i)),t},n.prototype.footprintToDateProfile=function(n,t){t===void 0&&(t=!1);var r=u.default.utc(n.unzonedRange.startMs),i;return t||(i=u.default.utc(n.unzonedRange.endMs)),n.isAllDay?(r.stripTime(),i&&i.stripTime()):(r=this.applyTimezone(r),i&&(i=this.applyTimezone(i))),new tt.default(r,i,this)},n.prototype.getNow=function(){var n=this.opt("now");return typeof n=="function"&&(n=n()),this.moment(n).stripZone()},n.prototype.humanizeDuration=function(n){return n.locale(this.opt("locale")).humanize()},n.prototype.parseUnzonedRange=function(n){var t=null,i=null;return(n.start&&(t=this.moment(n.start).stripZone()),n.end&&(i=this.moment(n.end).stripZone()),!t&&!i)?null:t&&i&&i.isBefore(t)?null:new l.default(t,i)},n.prototype.initEventManager=function(){var t=this,n=new it.default(this),i=this.opt("eventSources")||[],r=this.opt("events");this.eventManager=n;r&&i.unshift(r);n.on("release",function(n){t.trigger("eventsReset",n)});n.freeze();i.forEach(function(i){var r=a.default.parse(i,t);r&&n.addSource(r)});n.thaw()},n.prototype.requestEvents=function(n,t){return this.eventManager.requestEvents(n,t,this.opt("timezone"),!this.opt("lazyFetching"))},n.prototype.getEventEnd=function(n){return n.end?n.end.clone():this.getDefaultEventEnd(n.allDay,n.start)},n.prototype.getDefaultEventEnd=function(n,t){var i=t.clone();return n?i.stripTime().add(this.defaultAllDayEventDuration):i.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&i.stripZone(),i},n.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},n.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},n.prototype.renderEvents=function(n,t){this.eventManager.freeze();for(var i=0;i<n.length;i++)this.renderEvent(n[i],t);this.eventManager.thaw()},n.prototype.renderEvent=function(n,t){t===void 0&&(t=!1);var i=this.eventManager,r=ut.default.parse(n,n.source||i.stickySource);r&&i.addEventDef(r,t)},n.prototype.removeEvents=function(n){var i=this.eventManager,r=[],u={},f,t;if(n==null)i.removeAllEventDefs();else{for(i.getEventInstances().forEach(function(n){r.push(n.toLegacy())}),r=v(r,n),t=0;t<r.length;t++)f=this.eventManager.getEventDefByUid(r[t]._id),u[f.id]=!0;i.freeze();for(t in u)i.removeEventDefsById(t);i.thaw()}},n.prototype.clientEvents=function(n){var t=[];return this.eventManager.getEventInstances().forEach(function(n){t.push(n.toLegacy())}),v(t,n)},n.prototype.updateEvents=function(n){this.eventManager.freeze();for(var t=0;t<n.length;t++)this.updateEvent(n[t]);this.eventManager.thaw()},n.prototype.updateEvent=function(n){var t=this.eventManager.getEventDefByUid(n._id),i,r;t instanceof ft.default&&(i=t.buildInstance(),r=et.default.createFromRawProps(i,n,null),this.eventManager.mutateEventsWithId(t.id,r))},n.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},n.prototype.getEventSourceById=function(n){return this.eventManager.getSourceById(ot.default.normalizeId(n))},n.prototype.addEventSource=function(n){var t=a.default.parse(n,this);t&&this.eventManager.addSource(t)},n.prototype.removeEventSources=function(n){var t=this.eventManager,r,i;if(n==null)this.eventManager.removeAllSources();else{for(r=t.multiQuerySources(n),t.freeze(),i=0;i<r.length;i++)t.removeSource(r[i]);t.thaw()}},n.prototype.removeEventSource=function(n){var t=this.eventManager,r=t.querySources(n),i;for(t.freeze(),i=0;i<r.length;i++)t.removeSource(r[i]);t.thaw()},n.prototype.refetchEventSources=function(n){var t=this.eventManager,r=t.multiQuerySources(n),i;for(t.freeze(),i=0;i<r.length;i++)t.refetchSource(r[i]);t.thaw()},n.defaults=e.globalDefaults,n.englishDefaults=e.englishDefaults,n.rtlDefaults=e.rtlDefaults,n}();t.default=o;p.default.mixInto(o);w.default.mixInto(o)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=i(4),u=i(5),e=function(){function n(n){this._view=n}return n.prototype.opt=function(n){return this._view.opt(n)},n.prototype.trimHiddenDays=function(n){return this._view.trimHiddenDays(n)},n.prototype.msToUtcMoment=function(n,t){return this._view.calendar.msToUtcMoment(n,t)},n.prototype.buildPrev=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).subtract(n.dateIncrement);return this.build(t,-1)},n.prototype.buildNext=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).add(n.dateIncrement);return this.build(t,1)},n.prototype.build=function(n,t,i){i===void 0&&(i=!1);var l=!n.hasTime(),e,s=null,h=null,f,c,o,u,a;return e=this.buildValidRange(),e=this.trimHiddenDays(e),i&&(n=this.msToUtcMoment(e.constrainDate(n),l)),f=this.buildCurrentRangeInfo(n,t),c=/^(year|month|week|day)$/.test(f.unit),o=this.buildRenderRange(this.trimHiddenDays(f.unzonedRange),f.unit,c),o=this.trimHiddenDays(o),u=o.clone(),this.opt("showNonCurrentDates")||(u=u.intersect(f.unzonedRange)),s=r.duration(this.opt("minTime")),h=r.duration(this.opt("maxTime")),u=this.adjustActiveRange(u,s,h),u=u.intersect(e),u&&(n=this.msToUtcMoment(u.constrainDate(n),l)),a=f.unzonedRange.intersectsWith(e),{validUnzonedRange:e,currentUnzonedRange:f.unzonedRange,currentRangeUnit:f.unit,isRangeAllDay:c,activeUnzonedRange:u,renderUnzonedRange:o,minTime:s,maxTime:h,isValid:a,date:n,dateIncrement:this.buildDateIncrement(f.duration)}},n.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new u.default},n.prototype.buildCurrentRangeInfo=function(n,t){var e=this._view.viewSpec,u=null,i=null,r=null,o;return e.duration?(u=e.duration,i=e.durationUnit,r=this.buildRangeFromDuration(n,t,u,i)):(o=this.opt("dayCount"))?(i="day",r=this.buildRangeFromDayCount(n,t,o)):(r=this.buildCustomVisibleRange(n))?i=f.computeGreatestUnit(r.getStart(),r.getEnd()):(u=this.getFallbackDuration(),i=f.computeGreatestUnit(u),r=this.buildRangeFromDuration(n,t,u,i)),{duration:u,unit:i,unzonedRange:r}},n.prototype.getFallbackDuration=function(){return r.duration({days:1})},n.prototype.adjustActiveRange=function(n,t,i){var r=n.getStart(),f=n.getEnd();return this._view.usesMinMaxTime&&(t<0&&r.time(0).add(t),i>864e5&&f.time(i-864e5)),new u.default(r,f)},n.prototype.buildRangeFromDuration=function(n,t,i,e){function v(){o=n.clone().startOf(s);a=o.clone().add(i);l=new u.default(o,a)}var s=this.opt("dateAlignment"),h,c,o,a,l;return s||(h=this.opt("dateIncrement"),h?(c=r.duration(h),s=c<i?f.computeDurationGreatestUnit(c,h):e):s=e),i.as("days")<=1&&this._view.isHiddenDay(o)&&(o=this._view.skipHiddenDays(o,t),o.startOf("day")),v(),this.trimHiddenDays(l)||(n=this._view.skipHiddenDays(n,t),v()),l},n.prototype.buildRangeFromDayCount=function(n,t,i){var e=this.opt("dateAlignment"),o=0,r=n.clone(),f;e&&r.startOf(e);r.startOf("day");r=this._view.skipHiddenDays(r,t);f=r.clone();do f.add(1,"day"),this._view.isHiddenDay(f)||o++;while(o<i);return new u.default(r,f)},n.prototype.buildCustomVisibleRange=function(n){var t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(n));return t&&(t.startMs==null||t.endMs==null)?null:t},n.prototype.buildRenderRange=function(n){return n.clone()},n.prototype.buildDateIncrement=function(n){var t=this.opt("dateIncrement"),i;return t?r.duration(t):(i=this.opt("dateAlignment"))?r.duration(1,i):n?n:r.duration({days:1})},n}();t.default=e},function(n,t,i){function w(n){var e=f.dataAttrPrefix,t,i,o,s;return e&&(e+="-"),t=n.data(e+"event")||null,t&&(t=typeof t=="object"?r.extend({},t):{},i=t.start,i==null&&(i=t.time),o=t.duration,s=t.stick,delete t.start,delete t.time,delete t.duration,delete t.stick),i==null&&(i=n.data(e+"start")),i==null&&(i=n.data(e+"time")),o==null&&(o=n.data(e+"duration")),s==null&&(s=n.data(e+"stick")),i=i!=null?u.duration(i):null,o=o!=null?u.duration(o):null,s=Boolean(s),{eventProps:t,startTime:i,duration:o,stick:s}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),u=i(0),f=i(16),e=i(4),h=i(10),c=i(7),l=i(23),a=i(13),v=i(18),y=i(6),p=i(15),o=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.isDragging=!1,t}return s.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToDocument=function(){this.listenTo(r(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},t.prototype.unbindFromDocument=function(){this.stopListeningTo(r(document))},t.prototype.handleDragStart=function(n,t){var i,u;this.opt("droppable")&&(i=r((t?t.item:null)||n.target),u=this.opt("dropAccept"),(r.isFunction(u)?u.call(i[0],i):i.is(u))&&(this.isDragging||this.listenToExternalDrag(i,n,t)))},t.prototype.listenToExternalDrag=function(n,t,i){var f=this,u=this.component,s=this.view,o=w(n),r,h=this.dragListener=new l.default(u,{interactionStart:function(){f.isDragging=!0},hitOver:function(n){var t=!0,h=n.component.getSafeHitFootprint(n),i;h?(r=f.computeExternalDrop(h,o),r?(i=new v.default(r.buildInstances()),t=o.eventProps?u.isEventInstanceGroupAllowed(i):u.isExternalInstanceGroupAllowed(i)):t=!1):t=!1;t||(r=null,e.disableCursor());r&&u.renderDrag(u.eventRangesToEventFootprints(i.sliceRenderRanges(u.dateProfile.renderUnzonedRange,s.calendar)))},hitOut:function(){r=null},hitDone:function(){e.enableCursor();u.unrenderDrag()},interactionEnd:function(t){r&&s.reportExternalDrop(r,Boolean(o.eventProps),Boolean(o.stick),n,t,i);f.isDragging=!1;f.dragListener=null}});h.startDrag(t)},t.prototype.computeExternalDrop=function(n,t){var f=this.view.calendar,i=h.default.utc(n.unzonedRange.startMs).stripZone(),u;return n.isAllDay&&(t.startTime?i.time(t.startTime):i.stripTime()),t.duration&&(u=i.clone().add(t.duration)),i=f.applyTimezone(i),u&&(u=f.applyTimezone(u)),a.default.parse(r.extend({},t.eventProps,{start:i,end:u}),new y.default(f))},t}(p.default);t.default=o;c.default.mixInto(o);f.dataAttrPrefix=""},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),f=i(37),e=i(50),s=i(23),h=i(15),c=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isResizing=!1,r.eventPointing=i,r}return o.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMouseDown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMouseDown=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t)},t.prototype.buildDragListener=function(n,t){var r=this,f=this.component,e=this.view,h=e.calendar,l=h.eventManager,c=n.el,a=n.footprint.eventDef,v=n.footprint.eventInstance,o,i;return this.dragListener=new s.default(f,{scroll:this.opt("dragScroll"),subjectEl:c,interactionStart:function(){o=!1},dragStart:function(t){o=!0;r.eventPointing.handleMouseout(n,t);r.segResizeStart(n,t)},hitOver:function(o,s,c){var v=!0,y=f.getSafeHitFootprint(c),p=f.getSafeHitFootprint(o),w;y&&p?(i=t?r.computeEventStartResizeMutation(y,p,n.footprint):r.computeEventEndResizeMutation(y,p,n.footprint),i?(w=l.buildMutatedEventInstanceGroup(a.id,i),v=f.isEventInstanceGroupAllowed(w)):v=!1):v=!1;v?i.isEmpty()&&(i=null):(i=null,u.disableCursor());i&&(e.hideEventsWithId(n.footprint.eventDef.id),e.renderEventResize(f.eventRangesToEventFootprints(w.sliceRenderRanges(f.dateProfile.renderUnzonedRange,h)),n))},hitOut:function(){i=null},hitDone:function(){e.unrenderEventResize(n);e.showEventsWithId(n.footprint.eventDef.id);u.enableCursor()},interactionEnd:function(t){o&&r.segResizeStop(n,t);i&&e.reportEventResize(v,i,c,t);r.dragListener=null}})},t.prototype.segResizeStart=function(n,t){this.isResizing=!0;this.component.publiclyTrigger("eventResizeStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segResizeStop=function(n,t){this.isResizing=!1;this.component.publiclyTrigger("eventResizeStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventStartResizeMutation=function(n,t,i){var o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getStart(),n.unzonedRange.getStart()),r,u;return o.getStart().add(s)<o.getEnd()?(r=new e.default,r.setStartDelta(s),u=new f.default,u.setDateMutation(r),u):!1},t.prototype.computeEventEndResizeMutation=function(n,t,i){var o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getEnd(),n.unzonedRange.getEnd()),r,u;return o.getEnd().add(s)>o.getStart()?(r=new e.default,r.setEndDelta(s),u=new f.default,u.setDateMutation(r),u):!1},t}(h.default);t.default=c},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(37),e=i(50),o=i(54),s=i(23),h=i(244),c=i(15),l=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isDragging=!1,r.eventPointing=i,r}return u.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.getSelectionDelay=function(){var n=this.opt("eventLongPressDelay");return n==null&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMousedown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMousedown=function(n,t){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(n,t)&&this.buildDragListener(n).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){var i=this.component,r={delay:this.view.isEventDefSelected(n.footprint.eventDef)?0:this.getSelectionDelay()};i.canStartDrag(n,t)?this.buildDragListener(n).startInteraction(t,r):i.canStartSelection(n,t)&&this.buildSelectListener(n).startInteraction(t,r)},t.prototype.buildSelectListener=function(n){var u=this,t=this.view,f=n.footprint.eventDef,i=n.footprint.eventInstance,r;return this.dragListener?this.dragListener:r=this.dragListener=new o.default({dragStart:function(){r.isTouch&&!t.isEventDefSelected(f)&&i&&t.selectEventInstance(i)},interactionEnd:function(){u.dragListener=null}})},t.prototype.buildDragListener=function(n){var u=this,e=this.component,t=this.view,v=t.calendar,p=v.eventManager,y=n.el,c=n.footprint.eventDef,l=n.footprint.eventInstance,a,f,i,o;return this.dragListener?this.dragListener:o=this.dragListener=new s.default(t,{scroll:this.opt("dragScroll"),subjectEl:y,subjectCenter:!0,interactionStart:function(i){n.component=e;a=!1;f=new h.default(n.el,{additionalClass:"fc-dragging",parentEl:t.el,opacity:o.isTouch?null:u.opt("dragOpacity"),revertDuration:u.opt("dragRevertDuration"),zIndex:2});f.hide();f.start(i)},dragStart:function(i){o.isTouch&&!t.isEventDefSelected(c)&&l&&t.selectEventInstance(l);a=!0;u.eventPointing.handleMouseout(n,i);u.segDragStart(n,i);t.hideEventsWithId(n.footprint.eventDef.id)},hitOver:function(s,h,l){var a=!0,y,w,b;n.hit&&(l=n.hit);y=l.component.getSafeHitFootprint(l);w=s.component.getSafeHitFootprint(s);y&&w?(i=u.computeEventDropMutation(y,w,c),i?(b=p.buildMutatedEventInstanceGroup(c.id,i),a=e.isEventInstanceGroupAllowed(b)):a=!1):a=!1;a||(i=null,r.disableCursor());i&&t.renderDrag(e.eventRangesToEventFootprints(b.sliceRenderRanges(e.dateProfile.renderUnzonedRange,v)),n,o.isTouch)?f.hide():f.show();h&&(i=null)},hitOut:function(){t.unrenderDrag(n);f.show();i=null},hitDone:function(){r.enableCursor()},interactionEnd:function(r){delete n.component;f.stop(!i,function(){a&&(t.unrenderDrag(n),u.segDragStop(n,r));t.showEventsWithId(n.footprint.eventDef.id);i&&t.reportEventDrop(l,i,y,r)});u.dragListener=null}})},t.prototype.segDragStart=function(n,t){this.isDragging=!0;this.component.publiclyTrigger("eventDragStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segDragStop=function(n,t){this.isDragging=!1;this.component.publiclyTrigger("eventDragStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventDropMutation=function(n,t){var i=new f.default;return i.setDateMutation(this.computeEventDateMutation(n,t)),i},t.prototype.computeEventDateMutation=function(n,t){var r=n.unzonedRange.getStart(),h=t.unzonedRange.getStart(),u=!1,f=!1,o=!1,s,i;return n.isAllDay!==t.isAllDay&&(u=!0,t.isAllDay?(o=!0,r.stripTime()):f=!0),s=this.component.diffDates(h,r),i=new e.default,i.clearEnd=u,i.forceTimed=f,i.forceAllDay=o,i.setDateDelta(s),i},t}(c.default);t.default=l},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(23),e=i(12),o=i(5),s=i(15),h=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return u.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.getDelay=function(){var n=this.opt("selectLongPressDelay");return n==null&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this,i=this.component,u=this.dragListener;i.bindDateHandlerToEl(n,"mousedown",function(n){t.opt("selectable")&&!i.shouldIgnoreMouse()&&u.startInteraction(n,{distance:t.opt("selectMinDistance")})});i.bindDateHandlerToEl(n,"touchstart",function(n){t.opt("selectable")&&!i.shouldIgnoreTouch()&&u.startInteraction(n,{delay:t.getDelay()})});r.preventSelection(n)},t.prototype.buildDragListener=function(){var i=this,t=this.component,n;return new f.default(t,{scroll:this.opt("dragScroll"),interactionStart:function(){n=null},dragStart:function(n){i.view.unselect(n)},hitOver:function(u,f,e){var o,s;e&&(o=t.getSafeHitFootprint(e),s=t.getSafeHitFootprint(u),n=o&&s?i.computeSelection(o,s):null,n?t.renderSelectionFootprint(n):n===!1&&r.disableCursor())},hitOut:function(){n=null;t.unrenderSelection()},hitDone:function(){r.enableCursor()},interactionEnd:function(t,r){!r&&n&&i.view.reportSelection(n,t)}})},t.prototype.computeSelection=function(n,t){var i=this.computeSelectionFootprint(n,t);return i&&!this.isSelectionFootprintAllowed(i)?!1:i},t.prototype.computeSelectionFootprint=function(n,t){var i=[n.unzonedRange.startMs,n.unzonedRange.endMs,t.unzonedRange.startMs,t.unzonedRange.endMs];return i.sort(r.compareNumbers),new e.default(new o.default(i[0],i[3]),n.isAllDay)},t.prototype.isSelectionFootprintAllowed=function(n){return this.component.dateProfile.validUnzonedRange.containsRange(n.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(n)},t}(s.default);t.default=h},function(n,t,i){function o(n){for(var i=[],r=[],t=0;t<n.length;t++)n[t].componentFootprint.isAllDay?i.push(n[t]):r.push(n[t]);return{allDay:i,timed:r}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),h=i(0),c=i(3),r=i(4),l=i(39),a=i(41),v=i(227),y=i(61),p=5,f,e,u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.usesMinMaxTime=!0,r.timeGrid=r.instantiateTimeGrid(),r.addChild(r.timeGrid),r.opt("allDaySlot")&&(r.dayGrid=r.instantiateDayGrid(),r.addChild(r.dayGrid)),r.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),r}return s.__extends(t,n),t.prototype.instantiateTimeGrid=function(){var n=new this.timeGridClass(this);return r.copyOwnProps(f,n),n},t.prototype.instantiateDayGrid=function(){var n=new this.dayGridClass(this);return r.copyOwnProps(e,n),n},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-time-grid-container");t=c('<div class="fc-time-grid" />').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.timeGrid.headContainerEl=this.el.find(".fc-head-container");this.timeGrid.setElement(t);this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},t.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement();this.dayGrid&&this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'">&nbsp;<\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+n.getClass("widgetHeader")+'"/>':"")+"<\/td><\/tr><\/tbody><\/table>"},t.prototype.axisStyleAttr=function(){return this.axisWidth!=null?'style="width:'+this.axisWidth+'px"':""},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.updateSize=function(t,i,u){var e,f,o,s;if(n.prototype.updateSize.call(this,t,i,u),this.axisWidth=r.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls){i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f));return}s=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide();this.scroller.clear();r.uncompensateScroll(s);this.dayGrid&&(this.dayGrid.removeSegPopover(),e=this.opt("eventLimit"),e&&typeof e!="number"&&(e=p),e&&this.dayGrid.limitRows(e));i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<f&&this.timeGrid.bottomRuleEl.show())},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.computeInitialDateScroll=function(){var t=h.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(t);return n=Math.ceil(n),n&&n++,{top:n}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){n.top!==undefined&&this.scroller.setScrollTop(n.top)},t.prototype.getHitFootprint=function(n){return n.component.getHitFootprint(n)},t.prototype.getHitEl=function(n){return n.component.getHitEl(n)},t.prototype.executeEventRender=function(n){var r={},u={},t,i;for(t in n)i=n[t],i.getEventDef().isAllDay()?r[t]=i:u[t]=i;this.timeGrid.executeEventRender(u);this.dayGrid&&this.dayGrid.executeEventRender(r)},t.prototype.renderDrag=function(n,t,i){var u=o(n),r=!1;return r=this.timeGrid.renderDrag(u.timed,t,i),this.dayGrid&&(r=this.dayGrid.renderDrag(u.allDay,t,i)||r),r},t.prototype.renderEventResize=function(n,t,i){var r=o(n);this.timeGrid.renderEventResize(r.timed,t,i);this.dayGrid&&this.dayGrid.renderEventResize(r.allDay,t,i)},t.prototype.renderSelectionFootprint=function(n){n.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(n):this.timeGrid.renderSelectionFootprint(n)},t}(a.default);t.default=u;u.prototype.timeGridClass=v.default;u.prototype.dayGridClass=y.default;f={renderHeadIntroHtml:function(){var n=this.view,t=n.calendar,i=t.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0),u;return this.opt("weekNumbers")?(u=i.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+">"+n.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt>1},r.htmlEscape(u))+"<\/th>"):'<th class="fc-axis '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+"><\/th>"},renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}};e={renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><span>"+n.getAllDayHtml()+"<\/span><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var l=i(2),f=i(3),r=i(0),e=i(4),a=i(40),v=i(56),y=i(60),p=i(55),s=i(53),o=i(5),h=i(12),w=i(246),b=i(247),k=i(248),c=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],u=function(n){function t(t){var i=n.call(this,t)||this;return i.processOptions(),i}return l.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var i=this.sliceRangeByTimes(n.unzonedRange),t=0;t<i.length;t++)i[t].col=this.isRTL?this.daysPerRow-1-i[t].dayIndex:i[t].dayIndex;return i},t.prototype.sliceRangeByTimes=function(n){for(var r=[],t,i=0;i<this.daysPerRow;i++)t=n.intersect(this.dayRanges[i]),t&&r.push({startMs:t.startMs,endMs:t.endMs,isStart:t.isStart,isEnd:t.isEnd,dayIndex:i});return r},t.prototype.processOptions=function(){var t=this.opt("slotDuration"),i=this.opt("snapDuration"),n;t=r.duration(t);i=i?r.duration(i):t;this.slotDuration=t;this.snapDuration=i;this.snapsPerSlot=t/i;n=this.opt("slotLabelFormat");f.isArray(n)&&(n=n[n.length-1]);this.labelFormat=n||this.opt("smallTimeFormat");n=this.opt("slotLabelInterval");this.labelInterval=n?r.duration(n):this.computeLabelInterval(t)},t.prototype.computeLabelInterval=function(n){for(var i,u,t=c.length-1;t>=0;t--)if(i=r.duration(c[t]),u=e.divideDurationByDuration(i,n),e.isInt(u)&&u>1)return i;return r.duration(n)},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderSlats();this.renderColumns()},t.prototype.unrenderDates=function(){this.unrenderColumns()},t.prototype.renderSkeleton=function(){var n=this.view.calendar.theme;this.el.html('<div class="fc-bg"><\/div><div class="fc-slats"><\/div><hr class="fc-divider '+n.getClass("widgetHeader")+'" style="display:none" />');this.bottomRuleEl=this.el.find("hr")},t.prototype.renderSlats=function(){var n=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+n.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"<\/table>");this.slatEls=this.slatContainerEl.find("tr");this.slatCoordCache=new s.default({els:this.slatEls,isVertical:!0})},t.prototype.renderSlatRowHtml=function(){for(var o=this.view,s=o.calendar,h=s.theme,c=this.isRTL,n=this.dateProfile,l="",t=r.duration(+n.minTime),a=r.duration(0),i,u,f;t<n.maxTime;)i=s.msToUtcMoment(n.renderUnzonedRange.startMs).time(t),u=e.isInt(e.divideDurationByDuration(a,this.labelInterval)),f='<td class="fc-axis fc-time '+h.getClass("widgetContent")+'" '+o.axisStyleAttr()+">"+(u?"<span>"+e.htmlEscape(i.format(this.labelFormat))+"<\/span>":"")+"<\/td>",l+='<tr data-time="'+i.format("HH:mm:ss")+'"'+(u?"":' class="fc-minor"')+">"+(c?"":f)+'<td class="'+h.getClass("widgetContent")+'"/>'+(c?f:"")+"<\/tr>",t.add(this.slotDuration),a.add(this.slotDuration);return l},t.prototype.renderColumns=function(){var n=this.dateProfile,t=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(t){return new o.default(t.clone().add(n.minTime),t.clone().add(n.maxTime))});this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml());this.el.find("> .fc-bg").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"<\/table>");this.colEls=this.el.find(".fc-day, .fc-disabled-day");this.colCoordCache=new s.default({els:this.colEls,isHorizontal:!0});this.renderContentSkeleton()},t.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){for(var i="",n,t=0;t<this.colCnt;t++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"><\/div><div class="fc-event-container"><\/div><div class="fc-highlight-container"><\/div><div class="fc-bgevent-container"><\/div><div class="fc-business-container"><\/div><\/div><\/td>';n=this.contentSkeletonEl=f('<div class="fc-content-skeleton"><table><tr>'+i+"<\/tr><\/table><\/div>");this.colContainerEls=n.find(".fc-content-col");this.helperContainerEls=n.find(".fc-helper-container");this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)");this.bgContainerEls=n.find(".fc-bgevent-container");this.highlightContainerEls=n.find(".fc-highlight-container");this.businessContainerEls=n.find(".fc-business-container");this.bookendCells(n.find("tr"));this.el.append(n)},t.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},t.prototype.groupSegsByCol=function(n){for(var i=[],t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].col].push(n[t]);return i},t.prototype.attachSegsByCol=function(n,t){for(var u,r,i=0;i<this.colCnt;i++)for(u=n[i],r=0;r<u.length;r++)t.eq(i).append(u[r].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(n){if(this.colContainerEls){for(var i=this.componentFootprintToSegs(new h.default(new o.default(n,n.valueOf()+1),!1)),u=this.computeDateTop(n,n),r=[],t=0;t<i.length;t++)r.push(f('<div class="fc-now-indicator fc-now-indicator-line"><\/div>').css("top",u).appendTo(this.colContainerEls.eq(i[t].col))[0]);i.length>0&&r.push(f('<div class="fc-now-indicator fc-now-indicator-arrow"><\/div>').css("top",u).appendTo(this.el.find(".fc-content-skeleton"))[0]);this.nowIndicatorEls=f(r)}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);this.slatCoordCache.build();r&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},t.prototype.computeDateTop=function(n,t){return this.computeTimeTop(r.duration(n-t.clone().stripTime()))},t.prototype.computeTimeTop=function(n){var r=this.slatEls.length,f=this.dateProfile,t=(n-f.minTime)/this.slotDuration,i,u;return t=Math.max(0,t),t=Math.min(r,t),i=Math.floor(t),i=Math.min(i,r-1),u=t-i,this.slatCoordCache.getTopPosition(i)+this.slatCoordCache.getHeight(i)*u},t.prototype.updateSegVerticals=function(n){this.computeSegVerticals(n);this.assignSegVerticals(n)},t.prototype.computeSegVerticals=function(n){for(var u=this.opt("agendaEventMinHeight"),t,r,i=0;i<n.length;i++)t=n[i],r=this.dayDates[t.dayIndex],t.top=this.computeDateTop(t.startMs,r),t.bottom=Math.max(t.top+u,this.computeDateTop(t.endMs,r))},t.prototype.assignSegVerticals=function(n){for(var i,t=0;t<n.length;t++)i=n[t],i.el.css(this.generateSegVerticalCss(i))},t.prototype.generateSegVerticalCss=function(n){return{top:n.top,bottom:-n.bottom}},t.prototype.prepareHits=function(){this.colCoordCache.build();this.slatCoordCache.build()},t.prototype.releaseHits=function(){this.colCoordCache.clear()},t.prototype.queryHit=function(n,t){var u=this.snapsPerSlot,f=this.colCoordCache,e=this.slatCoordCache,i,r;if(f.isLeftInBounds(n)&&e.isTopInBounds(t)&&(i=f.getHorizontalIndex(n),r=e.getVerticalIndex(t),i!=null&&r!=null)){var o=e.getTopOffset(r),s=e.getHeight(r),c=(t-o)/s,h=Math.floor(c*u),l=r*u+h,a=o+h/u*s,v=o+(h+1)/u*s;return{col:i,snap:l,component:this,left:f.getLeftOffset(i),right:f.getRightOffset(i),top:a,bottom:v}}},t.prototype.getHitFootprint=function(n){var t=this.getCellDate(0,n.col),r=this.computeSnapTime(n.snap),i;return t.time(r),i=t.clone().add(this.snapDuration),new h.default(new o.default(t,i),!1)},t.prototype.computeSnapTime=function(n){return r.duration(this.dateProfile.minTime+this.snapDuration*n)},t.prototype.getHitEl=function(n){return this.colEls.eq(n.col)},t.prototype.renderDrag=function(n,t,i){var r;if(t){if(n.length)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0}else for(r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint)},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},t.prototype.renderSelectionFootprint=function(n){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(n):this.renderHighlight(n)},t.prototype.unrenderSelection=function(){this.helperRenderer.unrender();this.unrenderHighlight()},t}(a.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=v.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;y.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(5),f=i(221),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),f=this.msToUtcMoment(e.endMs,r);return/^(year|month)$/.test(i)&&(o.startOf("week"),f.weekday()&&f.add(1,"week").startOf("week")),new u.default(o,f)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(0),e=i(4),o=i(62),s=i(253),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.setGridHeight=function(n,t){t&&(n*=this.dayGrid.rowCnt/6);e.distributeHeight(this.dayGrid.rowEls,n,!t)},t.prototype.isDateInOtherMonth=function(n,t){return n.month()!==f.utc(t.currentUnzonedRange.startMs).month()},t}(o.default);t.default=r;r.prototype.dateProfileGeneratorClass=s.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(4),o=i(5),s=i(41),h=i(39),c=i(254),l=i(255),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-list-item",r.scroller=new h.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView"));this.scroller.render();this.scroller.el.appendTo(this.el);this.contentEl=this.scroller.scrollEl},t.prototype.unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);this.scroller.clear();i||this.scroller.setHeight(this.computeScrollerHeight(t))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.renderDates=function(n){for(var i=this.calendar,t=i.msToUtcMoment(n.renderUnzonedRange.startMs,!0),f=i.msToUtcMoment(n.renderUnzonedRange.endMs,!0),r=[],u=[];t<f;)r.push(t.clone()),u.push(new o.default(t,t.clone().add(1,"day"))),t.add(1,"day");this.dayDates=r;this.dayRanges=u},t.prototype.componentFootprintToSegs=function(n){for(var u=this.dayRanges,i,r,f=[],t=0;t<u.length;t++)if(i=n.unzonedRange.intersect(u[t]),i&&(r={startMs:i.startMs,endMs:i.endMs,isStart:i.isStart,isEnd:i.isEnd,dayIndex:t},f.push(r),!r.isEnd&&!n.isAllDay&&t+1<u.length&&n.unzonedRange.endMs<u[t+1].startMs+this.nextDayThreshold)){r.endMs=n.unzonedRange.endMs;r.isEnd=!0;break}return f},t.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"<\/div><\/div><\/div>")},t.prototype.renderSegList=function(n){for(var u=this.groupSegsByDay(n),i,r,f=e('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/><\/table>'),o=f.find("tbody"),t=0;t<u.length;t++)if(i=u[t],i)for(o.append(this.dayHeaderHtml(this.dayDates[t])),this.eventRenderer.sortEventSegs(i),r=0;r<i.length;r++)o.append(i[r].el);this.contentEl.empty().append(f)},t.prototype.groupSegsByDay=function(n){for(var r=[],i,t=0;t<n.length;t++)i=n[t],(r[i.dayIndex]||(r[i.dayIndex]=[])).push(i);return r},t.prototype.dayHeaderHtml=function(n){var t=this.opt("listDayFormat"),i=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+n.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(t?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-main"},r.htmlEscape(n.format(t))):"")+(i?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-alt"},r.htmlEscape(n.format(i))):"")+"<\/td><\/tr>"},t}(s.default);t.default=u;u.prototype.eventRendererClass=c.default;u.prototype.eventPointingClass=l.default},,,,,,function(n,t,i){var r=i(3),u=i(16),f=i(4),e=i(220);i(10);i(47);i(256);i(257);i(260);i(261);i(262);i(263);r.fullCalendar=u;r.fn.fullCalendar=function(n){var i=Array.prototype.slice.call(arguments,1),t=this;return this.each(function(u,o){var h=r(o),s=h.data("fullCalendar"),c;typeof n=="string"?n==="getCalendar"?u||(t=s):n==="destroy"?s&&(s.destroy(),h.removeData("fullCalendar")):s?r.isFunction(s[n])?(c=s[n].apply(s,i),u||(t=c),n==="destroy"&&h.removeData("fullCalendar")):f.warn("'"+n+"' is an unknown FullCalendar method."):f.warn("Attempting to call a FullCalendar method on an element with no calendar."):s||(s=new e.default(h,n),h.data("fullCalendar",s),s.render())}),t};n.exports=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(48),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.setElement=function(n){this.el=n;this.bindGlobalHandlers();this.renderSkeleton();this.set("isInDom",!0)},t.prototype.removeElement=function(){this.unset("isInDom");this.unrenderSkeleton();this.unbindGlobalHandlers();this.el.remove()},t.prototype.bindGlobalHandlers=function(){},t.prototype.unbindGlobalHandlers=function(){},t.prototype.renderSkeleton=function(){},t.prototype.unrenderSkeleton=function(){},t}(u.default);t.default=f},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.items=n||[]}return n.prototype.proxyCall=function(n){for(var i,r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return i=[],this.items.forEach(function(t){i.push(t[n].apply(t,r))}),i},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.el=null;this.viewsWithButtons=[];this.calendar=n;this.toolbarOptions=t}return n.prototype.setToolbarOptions=function(n){this.toolbarOptions=n},n.prototype.render=function(){var t=this.toolbarOptions.layout,n=this.el;t?(n?n.empty():n=this.el=r("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),n.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.renderSection=function(n){var s=this,i=this.calendar,t=i.theme,f=i.optionsManager,h=i.viewSpecManager,e=r('<div class="fc-'+n+'"/>'),o=this.toolbarOptions.layout[n],c=f.get("customButtons")||{},l=f.overrides.buttonText||{},a=f.get("buttonText")||{};return o&&r.each(o.split(" "),function(n,f){var o=r(),y=!0,v;r.each(f.split(","),function(n,f){var w,k,b,p,v,d,nt,e,g;f==="title"?(o=o.add(r("<h2>&nbsp;<\/h2>")),y=!1):((w=c[f])?(b=function(n){w.click&&w.click.call(e[0],n)},(p=t.getCustomButtonIconClass(w))||(p=t.getIconClass(f))||(v=w.text)):(k=h.getViewSpec(f))?(s.viewsWithButtons.push(f),b=function(){i.changeView(f)},(v=k.buttonTextOverride)||(p=t.getIconClass(f))||(v=k.buttonTextDefault)):i[f]&&(b=function(){i[f]()},(v=l[f])||(p=t.getIconClass(f))||(v=a[f])),b&&(nt=["fc-"+f+"-button",t.getClass("button"),t.getClass("stateDefault")],v?(d=u.htmlEscape(v),g=""):p&&(d="<span class='"+p+"'><\/span>",g=' aria-label="'+f+'"'),e=r('<button type="button" class="'+nt.join(" ")+'"'+g+">"+d+"<\/button>").click(function(n){e.hasClass(t.getClass("stateDisabled"))||(b(n),(e.hasClass(t.getClass("stateActive"))||e.hasClass(t.getClass("stateDisabled")))&&e.removeClass(t.getClass("stateHover")))}).mousedown(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateDown"))}).mouseup(function(){e.removeClass(t.getClass("stateDown"))}).hover(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateHover"))},function(){e.removeClass(t.getClass("stateHover")).removeClass(t.getClass("stateDown"))}),o=o.add(e)))});y&&o.first().addClass(t.getClass("cornerLeft")).end().last().addClass(t.getClass("cornerRight")).end();o.length>1?(v=r("<div/>"),y&&v.addClass(t.getClass("buttonGroup")),v.append(o),e.append(v)):e.append(o)}),e},n.prototype.updateTitle=function(n){this.el&&this.el.find("h2").text(n)},n.prototype.activateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").addClass(this.calendar.theme.getClass("stateActive"))},n.prototype.deactivateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},n.prototype.disableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.enableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),f=i(4),r=i(32),u=i(31),s=i(48),h=function(n){function t(t,i){var r=n.call(this)||this;return r._calendar=t,r.overrides=o.extend({},i),r.dynamicOverrides={},r.compute(),r}return e.__extends(t,n),t.prototype.add=function(n){var i=0,t;this.recordOverrides(n);for(t in n)i++;if(i===1){if(t==="height"||t==="contentHeight"||t==="aspectRatio"){this._calendar.updateViewSize(!0);return}if(t==="defaultDate")return;if(t==="businessHours")return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(t))return;if(t==="timezone"){this._calendar.view.flash("initialEvents");return}}this._calendar.renderHeader();this._calendar.renderFooter();this._calendar.viewsByType={};this._calendar.reinitView()},t.prototype.compute=function(){var t,n,o,i,e;t=f.firstDefined(this.dynamicOverrides.locale,this.overrides.locale);n=u.localeOptionHash[t];n||(t=r.globalDefaults.locale,n=u.localeOptionHash[t]||{});o=f.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,n.isRTL,r.globalDefaults.isRTL);i=o?r.rtlDefaults:{};this.dirDefaults=i;this.localeDefaults=n;e=r.mergeOptions([r.globalDefaults,i,n,this.overrides,this.dynamicOverrides]);u.populateInstanceComputableOptions(e);this.reset(e)},t.prototype.recordOverrides=function(n){for(var t in n)this.dynamicOverrides[t]=n[t];this._calendar.viewSpecManager.clearCache();this.compute()},t}(s.default);t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),f=i(3),e=i(22),u=i(4),r=i(32),s=i(31),h=function(){function n(n,t){this.optionsManager=n;this._calendar=t;this.clearCache()}return n.prototype.clearCache=function(){this.viewSpecCache={}},n.prototype.getViewSpec=function(n){var t=this.viewSpecCache;return t[n]||(t[n]=this.buildViewSpec(n))},n.prototype.getUnitViewSpec=function(n){var t,i,r;if(f.inArray(n,u.unitsDesc)!==-1)for(t=this._calendar.header.getViewsWithButtons(),f.each(e.viewHash,function(n){t.push(n)}),i=0;i<t.length;i++)if(r=this.getViewSpec(t[i]),r&&r.singleUnit===n)return r},n.prototype.buildViewSpec=function(n){for(var a=this.optionsManager.overrides.views||{},v=[],y=[],l=[],f=n,t,s,i,h,c;f;)t=e.viewHash[f],s=a[f],f=null,typeof t=="function"&&(t={"class":t}),t&&(v.unshift(t),y.unshift(t.defaults||{}),i=i||t.duration,f=f||t.type),s&&(l.unshift(s),i=i||s.duration,f=f||s.type);return(t=u.mergeProps(v),t.type=n,!t["class"])?!1:(i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,i&&(h=o.duration(i),h.valueOf()&&(c=u.computeDurationGreatestUnit(h,i),t.duration=h,t.durationUnit=c,h.as(c)===1&&(t.singleUnit=c,l.unshift(a[c]||{})))),t.defaults=r.mergeOptions(y),t.overrides=r.mergeOptions(l),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,n),t)},n.prototype.buildViewSpecOptions=function(n){var t=this.optionsManager;n.options=r.mergeOptions([r.globalDefaults,n.defaults,t.dirDefaults,t.localeDefaults,t.overrides,n.overrides,t.dynamicOverrides]);s.populateInstanceComputableOptions(n.options)},n.prototype.buildViewSpecButtonText=function(n,t){function i(i){var r=i.buttonText||{};return r[t]||(n.buttonTextKey?r[n.buttonTextKey]:null)||(n.singleUnit?r[n.singleUnit]:null)}var u=this.optionsManager;n.buttonTextOverride=i(u.dynamicOverrides)||i(u.overrides)||n.overrides.buttonText;n.buttonTextDefault=i(u.localeDefaults)||i(u.dirDefaults)||n.defaults.buttonText||i(r.globalDefaults)||(n.duration?this._calendar.humanizeDuration(n.duration):null)||t},n}();t.default=h},function(n,t,i){function y(n,t){return n.getPrimitive()===t.getPrimitive()}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(243),o=i(52),s=i(6),h=i(38),c=i(13),l=i(18),a=i(11),v=i(7),u=function(){function n(n){this.calendar=n;this.stickySource=new o.default(n);this.otherSources=[]}return n.prototype.requestEvents=function(n,t,i,r){return!r&&this.currentPeriod&&this.currentPeriod.isWithinRange(n,t)&&i===this.currentPeriod.timezone||this.setPeriod(new e.default(n,t,i)),this.currentPeriod.whenReleased()},n.prototype.addSource=function(n){this.otherSources.push(n);this.currentPeriod&&this.currentPeriod.requestSource(n)},n.prototype.removeSource=function(n){f.removeExact(this.otherSources,n);this.currentPeriod&&this.currentPeriod.purgeSource(n)},n.prototype.removeAllSources=function(){this.otherSources=[];this.currentPeriod&&this.currentPeriod.purgeAllSources()},n.prototype.refetchSource=function(n){var t=this.currentPeriod;t&&(t.freeze(),t.purgeSource(n),t.requestSource(n),t.thaw())},n.prototype.refetchAllSources=function(){var n=this.currentPeriod;n&&(n.freeze(),n.purgeAllSources(),n.requestSources(this.getSources()),n.thaw())},n.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},n.prototype.multiQuerySources=function(n){n?r.isArray(n)||(n=[n]):n=[];for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.querySources(n[t]));return i},n.prototype.querySources=function(n){for(var u=this.otherSources,t,i=0;i<u.length;i++)if(t=u[i],t===n)return[t];return(t=this.getSourceById(s.default.normalizeId(n)),t)?[t]:(n=h.default.parse(n,this.calendar),n?r.grep(u,function(t){return y(n,t)}):void 0)},n.prototype.getSourceById=function(n){return r.grep(this.otherSources,function(t){return t.id&&t.id===n})[0]},n.prototype.setPeriod=function(n){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null);this.currentPeriod=n;this.bindPeriod(n);n.requestSources(this.getSources())},n.prototype.bindPeriod=function(n){this.listenTo(n,"release",function(n){this.trigger("release",n)})},n.prototype.unbindPeriod=function(n){this.stopListeningTo(n)},n.prototype.getEventDefByUid=function(n){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(n)},n.prototype.addEventDef=function(n,t){t&&this.stickySource.addEventDef(n);this.currentPeriod&&this.currentPeriod.addEventDef(n)},n.prototype.removeEventDefsById=function(n){this.getSources().forEach(function(t){t.removeEventDefsById(n)});this.currentPeriod&&this.currentPeriod.removeEventDefsById(n)},n.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(n){n.removeAllEventDefs()});this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},n.prototype.mutateEventsWithId=function(n,t){var i=this.currentPeriod,r,u=[];return i?(i.freeze(),r=i.getEventDefsById(n),r.forEach(function(n){i.removeEventDef(n);u.push(t.mutateSingle(n));i.addEventDef(n)}),i.thaw(),function(){i.freeze();for(var n=0;n<r.length;n++)i.removeEventDef(r[n]),u[n](),i.addEventDef(r[n]);i.thaw()}):function(){}},n.prototype.buildMutatedEventInstanceGroup=function(n,t){for(var f=this.getEventDefsById(n),r,u=[],i=0;i<f.length;i++)r=f[i].clone(),r instanceof c.default&&(t.mutateSingle(r),u.push.apply(u,r.buildInstances()));return new l.default(u)},n.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},n.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},n.prototype.getEventDefsById=function(n){return this.currentPeriod.getEventDefsById(n)},n.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},n.prototype.getEventInstancesWithId=function(n){return this.currentPeriod.getEventInstancesWithId(n)},n.prototype.getEventInstancesWithoutId=function(n){return this.currentPeriod.getEventInstancesWithoutId(n)},n}();t.default=u;a.default.mixInto(u);v.default.mixInto(u)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(3),r=i(4),u=i(20),o=i(11),s=i(5),h=i(18),f=function(){function n(n,t,i){this.pendingCnt=0;this.freezeDepth=0;this.stuntedReleaseCnt=0;this.releaseCnt=0;this.start=n;this.end=t;this.timezone=i;this.unzonedRange=new s.default(n.clone().stripZone(),t.clone().stripZone());this.requestsByUid={};this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={}}return n.prototype.isWithinRange=function(n,t){return!n.isBefore(this.start)&&!t.isAfter(this.end)},n.prototype.requestSources=function(n){this.freeze();for(var t=0;t<n.length;t++)this.requestSource(n[t]);this.thaw()},n.prototype.requestSource=function(n){var i=this,t={source:n,status:"pending",eventDefs:null};this.requestsByUid[n.uid]=t;this.pendingCnt+=1;n.fetch(this.start,this.end,this.timezone).then(function(n){t.status!=="cancelled"&&(t.status="completed",t.eventDefs=n,i.addEventDefs(n),i.pendingCnt--,i.tryRelease())},function(){t.status!=="cancelled"&&(t.status="failed",i.pendingCnt--,i.tryRelease())})},n.prototype.purgeSource=function(n){var t=this.requestsByUid[n.uid];t&&(delete this.requestsByUid[n.uid],t.status==="pending"?(t.status="cancelled",this.pendingCnt--,this.tryRelease()):t.status==="completed"&&t.eventDefs.forEach(this.removeEventDef.bind(this)))},n.prototype.purgeAllSources=function(){var t=this.requestsByUid,i,n,r=0;for(i in t)n=t[i],n.status==="pending"?n.status="cancelled":n.status==="completed"&&r++;this.requestsByUid={};this.pendingCnt=0;r&&this.removeAllEventDefs()},n.prototype.getEventDefByUid=function(n){return this.eventDefsByUid[n]},n.prototype.getEventDefsById=function(n){var t=this.eventDefsById[n];return t?t.slice():[]},n.prototype.addEventDefs=function(n){for(var t=0;t<n.length;t++)this.addEventDef(n[t])},n.prototype.addEventDef=function(n){var r=this.eventDefsById,i=n.id,f=r[i]||(r[i]=[]),u=n.buildInstances(this.unzonedRange),t;for(f.push(n),this.eventDefsByUid[n.uid]=n,t=0;t<u.length;t++)this.addEventInstance(u[t],i)},n.prototype.removeEventDefsById=function(n){var t=this;this.getEventDefsById(n).forEach(function(n){t.removeEventDef(n)})},n.prototype.removeAllEventDefs=function(){var n=e.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={};n||this.tryRelease()},n.prototype.removeEventDef=function(n){var i=this.eventDefsById,t=i[n.id];delete this.eventDefsByUid[n.uid];t&&(r.removeExact(t,n),t.length||delete i[n.id],this.removeEventInstancesForDef(n))},n.prototype.getEventInstances=function(){var t=this.eventInstanceGroupsById,n=[];for(var i in t)n.push.apply(n,t[i].eventInstances);return n},n.prototype.getEventInstancesWithId=function(n){var t=this.eventInstanceGroupsById[n];return t?t.eventInstances.slice():[]},n.prototype.getEventInstancesWithoutId=function(n){var i=this.eventInstanceGroupsById,t=[];for(var r in i)r!==n&&t.push.apply(t,i[r].eventInstances);return t},n.prototype.addEventInstance=function(n,t){var i=this.eventInstanceGroupsById,r=i[t]||(i[t]=new h.default);r.eventInstances.push(n);this.tryRelease()},n.prototype.removeEventInstancesForDef=function(n){var i=this.eventInstanceGroupsById,t=i[n.id],u;t&&(u=r.removeMatching(t.eventInstances,function(t){return t.def===n}),t.eventInstances.length||delete i[n.id],u&&this.tryRelease())},n.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},n.prototype.release=function(){this.releaseCnt++;this.trigger("release",this.eventInstanceGroupsById)},n.prototype.whenReleased=function(){var n=this;return this.releaseCnt?u.default.resolve(this.eventInstanceGroupsById):u.default.construct(function(t){n.one("release",t)})},n.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},n.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},n}();t.default=f;o.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),e=i(7),f=function(){function n(n,t){this.isFollowing=!1;this.isHidden=!1;this.isAnimating=!1;this.options=t=t||{};this.sourceEl=n;this.parentEl=t.parentEl?u(t.parentEl):n.parent()}return n.prototype.start=function(n){this.isFollowing||(this.isFollowing=!0,this.y0=r.getEvY(n),this.x0=r.getEvX(n),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),r.getEvIsTouch(n)?this.listenTo(u(document),"touchmove",this.handleMove):this.listenTo(u(document),"mousemove",this.handleMove))},n.prototype.stop=function(n,t){var i=this,r=this.options.revertDuration,f=function(){i.isAnimating=!1;i.removeElement();i.top0=i.left0=null;t&&t()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(u(document)),n&&r&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:r,complete:f})):f())},n.prototype.getEl=function(){var n=this.el;return n||(n=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),n.addClass("fc-unselectable"),n.appendTo(this.parentEl)),n},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.updatePosition=function(){var n,t;this.getEl();this.top0==null&&(n=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=n.top-t.top,this.left0=n.left-t.left);this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},n.prototype.handleMove=function(n){this.topDelta=r.getEvY(n)-this.y0;this.leftDelta=r.getEvX(n)-this.x0;this.isHidden||this.updatePosition()},n.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},n.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},n}();t.default=f;e.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(23),f=i(15),e=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return r.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component,i=this.dragListener;t.bindDateHandlerToEl(n,"mousedown",function(n){t.shouldIgnoreMouse()||i.startInteraction(n)});t.bindDateHandlerToEl(n,"touchstart",function(n){t.shouldIgnoreTouch()||i.startInteraction(n)})},t.prototype.buildDragListener=function(){var r=this,i=this.component,n,t=new u.default(i,{scroll:this.opt("dragScroll"),interactionStart:function(){n=t.origHit},hitOver:function(t,i){i||(n=null)},hitOut:function(){n=null},interactionEnd:function(t,u){var f;!u&&n&&(f=i.getSafeHitFootprint(n),f&&r.view.triggerDayClick(f,i.getHitEl(n),t))}});return t.shouldCancelTouchScroll=!1,t.scrollAlwaysKills=!0,t},t}(f.default);t.default=e},function(n,t,i){function h(n){for(var i=[],u,t,r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!f(u,i[t]).length)break;u.level=t;(i[t]||(i[t]=[])).push(u)}return i}function c(n){for(var e,i,r,u,t=0;t<n.length;t++)for(e=n[t],i=0;i<e.length;i++)for(r=e[i],r.forwardSegs=[],u=t+1;u<n.length;u++)f(r,n[u],r.forwardSegs)}function u(n){var f=n.forwardSegs,i=0,t,r;if(n.forwardPressure===undefined){for(t=0;t<f.length;t++)r=f[t],u(r),i=Math.max(i,1+r.forwardPressure);n.forwardPressure=i}}function f(n,t,i){i===void 0&&(i=[]);for(var r=0;r<t.length;r++)l(n,t[r])&&i.push(t[r]);return i}function l(n,t){return n.bottom>t.top&&n.top<t.bottom}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(42),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.timeGrid=t,r}return e.__extends(t,n),t.prototype.renderFgSegs=function(n){this.renderFgSegsIntoContainers(n,this.timeGrid.fgContainerEls)},t.prototype.renderFgSegsIntoContainers=function(n,t){for(var r=this.timeGrid.groupSegsByCol(n),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(r[i]);this.timeGrid.attachSegsByCol(r,t)},t.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(n){n.el.remove()})},t.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.fgSegHtml=function(n,t){var u=this.view,l=u.calendar,a=n.footprint.componentFootprint,s=a.isAllDay,i=n.footprint.eventDef,w=u.isEventDefDraggable(i),b=!t&&n.isStart&&u.isEventDefResizableFromStart(i),v=!t&&n.isEnd&&u.isEventDefResizableFromEnd(i),y=this.getSegClasses(n,w,b||v),p=r.cssToStr(this.getSkinCss(i)),f,h,c,e,o;return y.unshift("fc-time-grid-event","fc-v-event"),u.isMultiDayRange(a.unzonedRange)?(n.isStart||n.isEnd)&&(e=l.msToMoment(n.startMs),o=l.msToMoment(n.endMs),f=this._getTimeText(e,o,s),h=this._getTimeText(e,o,s,"LT"),c=this._getTimeText(e,o,s,null,!1)):(f=this.getTimeText(n.footprint),h=this.getTimeText(n.footprint,"LT"),c=this.getTimeText(n.footprint,null,!1)),'<a class="'+y.join(" ")+'"'+(i.url?' href="'+r.htmlEscape(i.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+(f?'<div class="fc-time" data-start="'+r.htmlEscape(c)+'" data-full="'+r.htmlEscape(h)+'"><span>'+r.htmlEscape(f)+"<\/span><\/div>":"")+(i.title?'<div class="fc-title">'+r.htmlEscape(i.title)+"<\/div>":"")+'<\/div><div class="fc-bg"/>'+(v?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},t.prototype.updateFgSegCoords=function(n){this.timeGrid.computeSegVerticals(n);this.computeFgSegHorizontals(n);this.timeGrid.assignSegVerticals(n);this.assignFgSegHorizontals(n)},t.prototype.computeFgSegHorizontals=function(n){var r,i,t;if(this.sortEventSegs(n),r=h(n),c(r),i=r[0]){for(t=0;t<i.length;t++)u(i[t]);for(t=0;t<i.length;t++)this.computeFgSegForwardBack(i[t],0,0)}},t.prototype.computeFgSegForwardBack=function(n,t,i){var r=n.forwardSegs,u;if(n.forwardCoord===undefined)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,i),n.forwardCoord=r[0].backwardCoord):n.forwardCoord=1,n.backwardCoord=n.forwardCoord-(n.forwardCoord-i)/(t+1),u=0;u<r.length;u++)this.computeFgSegForwardBack(r[u],0,n.forwardCoord)},t.prototype.sortForwardSegs=function(n){n.sort(r.proxy(this,"compareForwardSegs"))},t.prototype.compareForwardSegs=function(n,t){return t.forwardPressure-n.forwardPressure||(n.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(n,t)},t.prototype.assignFgSegHorizontals=function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateFgSegHorizontalCss(t)),t.bottom-t.top<30&&t.el.addClass("fc-short")},t.prototype.generateFgSegHorizontalCss=function(n){var e=this.opt("slotEventOverlap"),i=n.backwardCoord,r=n.forwardCoord,t=this.timeGrid.generateSegVerticalCss(n),o=this.timeGrid.isRTL,u,f;return e&&(r=Math.min(1,i+(r-i)*2)),o?(u=1-r,f=i):(u=i,f=1-r),t.zIndex=n.level+1,t.left=u*100+"%",t.right=f*100+"%",e&&n.forwardPressure&&(t[o?"marginLeft":"marginRight"]=20),t},t}(o.default);t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(58),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.renderSegs=function(n,t){var e=[],r,f,i;for(this.eventRenderer.renderFgSegsIntoContainers(n,this.component.helperContainerEls),r=0;r<n.length;r++)f=n[r],t&&t.col===f.col&&(i=t.el,f.el.css({left:i.css("left"),right:i.css("right"),"margin-left":i.css("margin-left"),"margin-right":i.css("margin-right")})),e.push(f.el[0]);return u(e)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(57),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){var i=this.component,r;return n==="bgEvent"?r=i.bgContainerEls:n==="businessHours"?r=i.businessContainerEls:n==="highlight"&&(r=i.highlightContainerEls),i.updateSegVerticals(t),i.attachSegsByCol(i.groupSegsByCol(t),r),t.map(function(n){return n.el[0]})},t}(u.default);t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(7),u=function(){function n(n){this.isHidden=!0;this.margin=10;this.options=n||{}}return n.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},n.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},n.prototype.render=function(){var t=this,n=this.options;this.el=r('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl);this.el.on("click",".fc-close",function(){t.hide()});n.autoHide&&this.listenTo(r(document),"mousedown",this.documentMousedown)},n.prototype.documentMousedown=function(n){this.el&&!r(n.target).closest(this.el).length&&this.hide()},n.prototype.removeElement=function(){this.hide();this.el&&(this.el.remove(),this.el=null);this.stopListeningTo(r(document),"mousedown")},n.prototype.position=function(){var n=this.options,c=this.el.offsetParent().offset(),l=this.el.outerWidth(),a=this.el.outerHeight(),s=r(window),t=f.getScrollParent(this.el),e,o,h,i,u;i=n.top||0;u=n.left!==undefined?n.left:n.right!==undefined?n.right-l:0;t.is(window)||t.is(document)?(t=s,e=0,o=0):(h=t.offset(),e=h.top,o=h.left);e+=s.scrollTop();o+=s.scrollLeft();n.viewportConstrain!==!1&&(i=Math.min(i,e+t.outerHeight()-a-this.margin),i=Math.max(i,e+this.margin),u=Math.min(u,o+t.outerWidth()-l-this.margin),u=Math.max(u,o+this.margin));this.el.css({top:i-c.top,left:u-c.left})},n.prototype.trigger=function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))},n}();t.default=u;e.default.mixInto(u)},function(n,t,i){function s(n,t){for(var r,i=0;i<t.length;i++)if(r=t[i],r.leftCol<=n.rightCol&&r.rightCol>=n.leftCol)return!0;return!1}function h(n,t){return n.leftCol-t.leftCol}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),r=i(3),u=i(4),e=i(42),o=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=t,r}return f.__extends(t,n),t.prototype.renderBgRanges=function(t){t=r.grep(t,function(n){return n.eventDef.isAllDay()});n.prototype.renderBgRanges.call(this,t)},t.prototype.renderFgSegs=function(n){var t=this.rowStructs=this.renderSegRows(n);this.dayGrid.rowEls.each(function(n,i){r(i).find(".fc-content-skeleton > table").append(t[n].tbodyEl)})},t.prototype.unrenderFgSegs=function(){for(var t=this.rowStructs||[],n;n=t.pop();)n.tbodyEl.remove();this.rowStructs=null},t.prototype.renderSegRows=function(n){for(var r=[],i=this.groupSegRows(n),t=0;t<i.length;t++)r.push(this.renderSegRow(t,i[t]));return r},t.prototype.renderSegRow=function(n,t){function p(n){while(u<n)i=(h[f-1]||[])[u],i?i.attr("rowspan",parseInt(i.attr("rowspan")||1,10)+1):(i=r("<td/>"),o.append(i)),s[f][u]=i,h[f][u]=i,u++}for(var w=this.dayGrid.colCnt,a=this.buildSegLevels(t),b=Math.max(1,a.length),y=r("<tbody/>"),v=[],s=[],h=[],c,u,o,l,e,i,f=0;f<b;f++){if(c=a[f],u=0,o=r("<tr/>"),v.push([]),s.push([]),h.push([]),c)for(l=0;l<c.length;l++){for(e=c[l],p(e.leftCol),i=r('<td class="fc-event-container"/>').append(e.el),e.leftCol!==e.rightCol?i.attr("colspan",e.rightCol-e.leftCol+1):h[f][u]=i;u<=e.rightCol;)s[f][u]=i,v[f][u]=e,u++;o.append(i)}p(w);this.dayGrid.bookendCells(o);y.append(o)}return{row:n,tbodyEl:y,cellMatrix:s,segMatrix:v,segLevels:a,segs:t}},t.prototype.buildSegLevels=function(n){var i=[],r,u,t;for(this.sortEventSegs(n),r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!s(u,i[t]))break;u.level=t;(i[t]||(i[t]=[])).push(u)}for(t=0;t<i.length;t++)i[t].sort(h);return i},t.prototype.groupSegRows=function(n){for(var i=[],t=0;t<this.dayGrid.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i},t.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return this.dayGrid.colCnt===1},t.prototype.fgSegHtml=function(n,t){var r=this.view,i=n.footprint.eventDef,s=n.footprint.componentFootprint.isAllDay,v=r.isEventDefDraggable(i),h=!t&&s&&n.isStart&&r.isEventDefResizableFromStart(i),c=!t&&s&&n.isEnd&&r.isEventDefResizableFromEnd(i),l=this.getSegClasses(n,v,h||c),a=u.cssToStr(this.getSkinCss(i)),f="",e,o;return l.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(e=this.getTimeText(n.footprint),e&&(f='<span class="fc-time">'+u.htmlEscape(e)+"<\/span>")),o='<span class="fc-title">'+(u.htmlEscape(i.title||"")||"&nbsp;")+"<\/span>",'<a class="'+l.join(" ")+'"'+(i.url?' href="'+u.htmlEscape(i.url)+'"':"")+(a?' style="'+a+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?o+" "+f:f+" "+o)+"<\/div>"+(h?'<div class="fc-resizer fc-start-resizer" />':"")+(c?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(58),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderSegs=function(n,t){var i=[],u;return u=this.eventRenderer.renderSegRows(n),this.component.rowEls.each(function(n,f){var o=r(f),s=r('<div class="fc-helper-skeleton"><table/><\/div>'),e,h;t&&t.row===n?h=t.el.position().top:(e=o.find(".fc-content-skeleton tbody"),e.length||(e=o.find(".fc-content-skeleton table")),h=e.position().top);s.css("top",h).find("table").append(u[n].tbodyEl);o.append(s);i.push(s[0])}),r(i)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(57),e=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.fillSegTag="td",t}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){for(var f=[],r,u,i=0;i<t.length;i++)r=t[i],u=this.renderFillRow(n,r),this.component.rowEls.eq(r.row).append(u),f.push(u[0]);return f},t.prototype.renderFillRow=function(n,t){var o=this.component.colCnt,r=t.leftCol,f=t.rightCol+1,s,e,i;return s=n==="businessHours"?"bgevent":n.toLowerCase(),e=u('<div class="fc-'+s+'-skeleton"><table><tr/><\/table><\/div>'),i=e.find("tr"),r>0&&i.append('<td colspan="'+r+'"/>'),i.append(t.el.attr("colspan",f-r)),f<o&&i.append('<td colspan="'+(o-f)+'"/>'),this.component.bookendCells(i),e},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(228),f=i(5),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),u=this.msToUtcMoment(e.endMs,r),s;return this.opt("fixedWeekCount")&&(s=Math.ceil(u.diff(o,"weeks",!0)),u.add(6-s,"weeks")),new f.default(o,u)},t}(u.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(42),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderFgSegs=function(n){n.length?this.component.renderSegList(n):this.component.renderEmptyMessage()},t.prototype.fgSegHtml=function(n){var t=this.view,u=t.calendar,f=u.theme,e=n.footprint,i=e.eventDef,o=e.componentFootprint,s=i.url,h=["fc-list-item"].concat(this.getClasses(i)),c=this.getBgColor(i),l;return l=o.isAllDay?t.getAllDayHtml():t.isMultiDayRange(o.unzonedRange)?n.isStart||n.isEnd?r.htmlEscape(this._getTimeText(u.msToMoment(n.startMs),u.msToMoment(n.endMs),o.isAllDay)):t.getAllDayHtml():r.htmlEscape(this.getTimeText(e)),s&&h.push("fc-has-url"),'<tr class="'+h.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+f.getClass("widgetContent")+'">'+(l||"")+"<\/td>":"")+'<td class="fc-list-item-marker '+f.getClass("widgetContent")+'"><span class="fc-event-dot"'+(c?' style="background-color:'+c+'"':"")+'><\/span><\/td><td class="fc-list-item-title '+f.getClass("widgetContent")+'"><a'+(s?' href="'+r.htmlEscape(s)+'"':"")+">"+r.htmlEscape(i.title||"")+"<\/a><\/td><\/tr>"},t.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(59),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.handleClick=function(t,i){var r;n.prototype.handleClick.call(this,t,i);u(i.target).closest("a[href]").length||(r=t.footprint.eventDef.url,r&&!i.isDefaultPrevented()&&(window.location.href=r))},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(38),u=i(52),f=i(215),e=i(216);r.default.registerClass(u.default);r.default.registerClass(f.default);r.default.registerClass(e.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(51),u=i(213),f=i(214),e=i(258),o=i(259);r.defineThemeSystem("standard",u.default);r.defineThemeSystem("jquery-ui",f.default);r.defineThemeSystem("bootstrap3",e.default);r.defineThemeSystem("bootstrap4",o.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"};r.prototype.baseIconClass="glyphicon";r.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"};r.prototype.iconOverrideOption="bootstrapGlyphicons";r.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon";r.prototype.iconOverridePrefix="glyphicon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(19),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"};r.prototype.baseIconClass="fa";r.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"};r.prototype.iconOverrideOption="bootstrapFontAwesome";r.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome";r.prototype.iconOverridePrefix="fa-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(22),u=i(62),f=i(229);r.defineView("basic",{"class":u.default});r.defineView("basicDay",{type:"basic",duration:{days:1}});r.defineView("basicWeek",{type:"basic",duration:{weeks:1}});r.defineView("month",{"class":f.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(22),u=i(226);r.defineView("agenda",{"class":u.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}});r.defineView("agendaDay",{type:"agenda",duration:{days:1}});r.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(22),u=i(230);r.defineView("list",{"class":u.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}});r.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}});r.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}});r.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}});r.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0})}])})},{jquery:19,moment:22}],19:[function(n,t){(function(n,i){"use strict";typeof t=="object"&&typeof t.exports=="object"?t.exports=n.document?i(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return i(n)}:i(n)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function hr(n,t,i){t=t||f;var r,u=t.createElement("script");if(u.text=n,i)for(r in ne)i[r]&&(u[r]=i[r]);t.head.appendChild(u).parentNode.removeChild(u)}function it(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?bt[or.call(n)]||"object":typeof n}function hi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return u(n)||tt(n)?!1:i==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function v(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function li(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):typeof t!="string"?i.grep(n,function(n){return wt.call(t,n)>-1!==r}):i.filter(t,n,r)}function kr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ie(n){var t={};return i.each(n.match(l)||[],function(n,i){t[i]=!0}),t}function ut(n){return n}function dt(n){throw n;}function dr(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(undefined,[n].slice(r))}catch(n){i.apply(undefined,[n])}}function ni(){f.removeEventListener("DOMContentLoaded",ni);n.removeEventListener("load",ni);i.ready()}function fe(n,t){return t.toUpperCase()}function y(n){return n.replace(re,"ms-").replace(ue,fe)}function at(){this.expando=i.expando+at.uid++}function se(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:ee.test(n)?JSON.parse(n):n}function nu(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(oe,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=se(i)}catch(u){}o.set(n,t,i)}else i=undefined;return i}function ru(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||e!=="px"&&+o)&&vt.exec(i.css(n,t));if(f&&f[3]!==e){for(o=o/2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f=f/h;f=f*2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function he(n){var r,f=n.ownerDocument,u=n.nodeName,t=ai[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),ai[u]=t,t)}function ft(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&ti(u)&&(f[i]=he(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&v(n,t))?i.merge([n],r):r}function vi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function su(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(it(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(ou.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(fu.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);o=h.firstChild;o.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),o=s(h.appendChild(e),"script"),w&&vi(o),r)for(v=0;e=o[v++];)eu.test(e.type||"")&&r.push(e)}return h}function ri(){return!0}function et(){return!1}function cu(){try{return f.activeElement}catch(n){}}function yi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)yi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=et;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function lu(n,t){return v(n,"table")&&v(t.nodeType!==11?t:t.firstChild,"tr")?i(n).children("tbody")[0]||n:n}function we(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function be(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function au(n,t){var f,c,e,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(e in u)for(f=0,c=u[e].length;f<c;f++)i.event.add(t,e,u[e][f])}o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ke(n,t){var i=t.nodeName.toLowerCase();i==="input"&&uu.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function ot(n,t,f,o){t=er.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||y>1&&typeof p=="string"&&!e.checkClone&&ye.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ot(r,t,f,o)});if(y&&(a=su(t,n[0].ownerDocument,!1,n,o),w=a.firstChild,a.childNodes.length===1&&(a=w),w||o)){for(l=i.map(s(a,"script"),we),v=l.length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,be),c=0;c<v;c++)h=l[c],eu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&(h.type||"").toLowerCase()!=="module"?i._evalUrl&&i._evalUrl(h.src):hr(h.textContent.replace(pe,""),b,h))}return n}function vu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(s(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&vi(s(u,"script")),u.parentNode.removeChild(u));return n}function yt(n,t,r){var o,s,h,u,f=n.style;return r=r||ui(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!e.pixelBoxStyles()&&pi.test(u)&&de.test(t)&&(o=f.width,s=f.minWidth,h=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=o,f.minWidth=s,f.maxWidth=h)),u!==undefined?u+"":u}function yu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function to(n){if(n in ku)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=bu.length;t--;)if(n=bu[t]+i,n in ku)return n}function du(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=to(n)||n),t}function gu(n,t,i){var r=vt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function wi(n,t,r,u,f,e){var o=t==="width"?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)r==="margin"&&(s+=i.css(n,r+w[o],!0,f)),u?(r==="content"&&(s-=i.css(n,"padding"+w[o],!0,f)),r!=="margin"&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),r!=="padding"?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))),s}function nf(n,t,r){var f=ui(n),u=yt(n,t,f),s=i.css(n,"boxSizing",!1,f)==="border-box",o=s;if(pi.test(u)){if(!r)return u;u="auto"}return o=o&&(e.boxSizingReliable()||u===n.style[t]),u!=="auto"&&(parseFloat(u)||i.css(n,"display",!1,f)!=="inline")||(u=n["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),u=parseFloat(u)||0,u+wi(n,t,r||(s?"border":"content"),o,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function bi(){fi&&(f.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(bi):n.setTimeout(bi,i.fx.interval),i.fx.tick())}function uf(){return n.setTimeout(function(){st=undefined}),st=Date.now()}function ei(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function ff(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function io(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&ti(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],tf.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(ft([n],!0),o=n.style.display||o,l=i.css(n,"display"),ft([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ft([n],!0),v.done(function(){a||ft([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=ff(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function ro(n,t){var r,f,e,u,o;for(r in n)if(f=y(r),e=t[f],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function a(n,t,r){var o,s,h=0,v=a.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=st||uf(),t=Math.max(0,f.startTime+f.duration-o),h=t/f.duration||0,i=1-h,r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return(e.notifyWith(n,[f,i,t]),i<1&&u)?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:st||uf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(ro(c,f.opts.specialEasing);h<v;h++)if(o=a.prefilters[h].call(f,n,c,f.opts),o)return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,ff,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){var t=n.match(l)||[];return t.join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function ki(n){return Array.isArray(n)?n:typeof n=="string"?n.match(l)||[]:[]}function tr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||uo.test(n)?u(n,i):tr(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||it(t)!=="object")u(n,t);else for(f in t)tr(n+"["+f+"]",t[f],r,u)}function yf(n){return function(t,i){typeof t!="string"&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])r[0]==="+"?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function pf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===ir;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ur(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function vo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function yo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}var k=[],f=n.document,df=Object.getPrototypeOf,d=k.slice,er=k.concat,si=k.push,wt=k.indexOf,bt={},or=bt.toString,kt=bt.hasOwnProperty,sr=kt.toString,gf=sr.call(Object),e={},u=function(n){return typeof n=="function"&&typeof n.nodeType!="number"},tt=function(n){return n!=null&&n===n.window},ne={type:!0,src:!0,noModule:!0},cr="3.3.1",i=function(n,t){return new i.fn.init(n,t)},te=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b,ci,vr,yr,pr,wr,br,l,gr,gt,lt,ai,ou,st,fi,tf,rf,ef,ht,of,sf,hf,di,gi,wf,ct,fr,oi,bf,kf;i.fn=i.prototype={jquery:cr,constructor:i,length:0,toArray:function(){return d.call(this)},get:function(n){return n==null?d.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:si,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var o,e,r,t,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[f]||{},f++),typeof n=="object"||u(n)||(n={}),f===l&&(n=this,f--);f<l;f++)if((o=arguments[f])!=null)for(e in o)(r=n[e],t=o[e],n!==t)&&(c&&t&&(i.isPlainObject(t)||(s=Array.isArray(t)))?(s?(s=!1,h=r&&Array.isArray(r)?r:[]):h=r&&i.isPlainObject(r)?r:{},n[e]=i.extend(c,h,t)):t!==undefined&&(n[e]=t));return n};i.extend({expando:"jQuery"+(cr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!n||or.call(n)!=="[object Object]"?!1:(t=df(n),!t)?!0:(i=kt.call(t,"constructor")&&t.constructor,typeof i=="function"&&sr.call(i)===gf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n){hr(n)},each:function(n,t){var r,i=0;if(hi(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(te,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(hi(Object(n))?i.merge(r,typeof n=="string"?[n]:n):si.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:wt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(hi(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return er.apply([],f)},guid:1,support:e});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=k[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){bt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!e.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=b;i.expr=b.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=b.uniqueSort;i.text=b.getText;i.isXMLDoc=b.isXML;i.contains=b.contains;i.escapeSelector=b.escape;var rt=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},lr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ar=i.expr.match.needsContext;ci=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return(r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(li(this,n||[],!1))},not:function(n){return this.pushStack(li(this,n||[],!0))},is:function(n){return!!li(this,typeof n=="string"&&ar.test(n)?i(n):n||[],!1).length}});yr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;pr=i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||vr,typeof n=="string"){if(e=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:yr.exec(n),e&&(e[1]||!t)){if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),ci.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return o=f.getElementById(e[2]),o&&(this[0]=o,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};pr.prototype=i.fn;vr=i(f);wr=/^(?:parents|prev(?:Until|All))/;br={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!ar.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?wt.call(i(n),this[0]):wt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return lr((n.parentNode||{}).firstChild,n)},children:function(n){return lr(n.firstChild)},contents:function(n){return v(n,"iframe")?n.contentDocument:(v(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(br[n]||i.uniqueSort(f),wr.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n=typeof n=="string"?ie(n):i.extend({},n);var o,r,c,f,t=[],s=[],e=-1,l=function(){for(f=f||n.once,c=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)t[e].apply(r[0],r[1])===!1&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},h={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&h.has(r)||t.push(r):r&&r.length&&it(r)!=="string"&&f(r)})}(arguments),r&&!o&&l()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],s.push(t),o||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if(n=f.apply(h,c),n===r.promise())throw new TypeError("Thenable self-resolution");i=n&&(typeof n=="object"||typeof n=="function")&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,dt,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,dt,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=undefined,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==dt&&(h=undefined,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:dt))}).promise()},promise:function(n){return n!=null?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=d.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?d.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(dr(n,r.done(s(t)).resolve,r.reject,!e),r.state()==="pending"||u(f[t]&&f[t].then)))return r.then();while(t--)dr(f[t],s(t),r.reject);return r.promise()}});gr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&gr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};gt=i.Deferred();i.fn.ready=function(n){return gt.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||gt.resolveWith(f,[i])}});i.ready.then=gt.then;f.readyState!=="complete"&&(f.readyState==="loading"||f.documentElement.doScroll)?(f.addEventListener("DOMContentLoaded",ni),n.addEventListener("load",ni)):n.setTimeout(i.ready);var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=r==null;if(it(r)==="object"){e=!0;for(h in r)p(n,t,h,r[h],!0,o,s)}else if(f!==undefined&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},re=/^-ms-/,ue=/-([a-z])/g;lt=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};at.uid=1;at.prototype={cache:function(n){var t=n[this.expando];return t||(t={},lt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if(typeof t=="string")u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(Array.isArray(t)?t=t.map(y):(t=y(t),t=t in r?[t]:t.match(l)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new at,o=new at,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(n===undefined){if(this.length&&(e=o.get(i),i.nodeType===1&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&(u=s[f].name,u.indexOf("data-")===0&&(u=y(u.slice(5)),nu(i,u,e[u])));r.set(i,"hasDataAttrs",!0)}return e}return typeof n=="object"?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&t===undefined)return(r=o.get(i,n),r!==undefined)?r:(r=nu(i,n),r!==undefined)?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var tu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+tu+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ti=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},iu=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};ai={};i.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ti(this)?i(this).show():i(this).hide()})}});var uu=/^(?:checkbox|radio)$/i,fu=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,eu=/^$|^module$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;ou=/<|&#?\w+;/,function(){var i=f.createDocumentFragment(),n=i.appendChild(f.createElement("div")),t=f.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);e.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var ii=f.documentElement,ce=/^key/,le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,h,s,c,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(ii,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(l)||[""],b=t.length;b--;)(w=hu.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(c=p[o])||(c=p[o]=[],c.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,h,v,p,s,c,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(l)||[""],p=t.length;p--;){if(h=hu.exec(t[p])||[],o=d=h[1],b=(h[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(c=i.event.special[o]||{},o=(f?c.delegateType:c.bindType)||o,a=v[o]||[],h=h[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!h||h.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,c.remove&&c.remove.call(n,s));k&&!a.length&&(c.teardown&&c.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===cu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&v(this,"input"))return this.click(),!1},_default:function(n){return v(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?ri:et,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ri;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ri;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ri;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return n.which==null&&ce.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&le.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return yi(this,n,t,i,r)},one:function(n,t,i,r){return yi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=et),this.each(function(){i.event.remove(this,n,r,t)})}});var ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ve=/<script|<style|<link/i,ye=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ae,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!e.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=s(h),o=s(n),u=0,c=o.length;u<c;u++)ke(o[u],f[u]);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)au(o[u],f[u]);else au(n,h);return f=s(h,"script"),f.length>0&&vi(f,!l&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;(t=n[e])!==undefined;e++)if(lt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[o.expando]&&(t[o.expando]=undefined)}}});i.fn.extend({detach:function(n){return vu(this,n,!0)},remove:function(n){return vu(this,n)},text:function(n){return p(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return ot(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lu(this,n);t.appendChild(n)}})},prepend:function(){return ot(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=lu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!ve.test(n)&&!c[(fu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ot(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),si.apply(f,u.get());return this.pushStack(f)}});var pi=new RegExp("^("+tu+")(?!px)[a-z%]+$","i"),ui=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},de=new RegExp(w.join("|"),"i");(function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ii.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s=i.top!=="1%";a=u(i.marginLeft)===12;t.style.right="60%";l=u(i.right)===36;h=u(i.width)===36;t.style.position="absolute";c=t.offsetWidth===36||"absolute";ii.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=t.style.backgroundClip==="content-box",i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))})();var ge=/^(none|table(?!-c[ea]).+)/,pu=/^--/,no={position:"absolute",visibility:"hidden",display:"block"},wu={letterSpacing:"0",fontWeight:"400"},bu=["Webkit","Moz","ms"],ku=f.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=yt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var f,s,o,c=y(t),l=pu.test(t),h=n.style;if(l||(t=du(c)),o=i.cssHooks[t]||i.cssHooks[c],r!==undefined){if(s=typeof r,s==="string"&&(f=vt.exec(r))&&f[1]&&(r=ru(n,t,f),s="number"),r==null||r!==r)return;s==="number"&&(r+=f&&f[3]||(i.cssNumber[c]?"":"px"));e.clearCloneStyle||r!==""||t.indexOf("background")!==0||(h[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(l?h.setProperty(t,r):h[t]=r)}else return o&&"get"in o&&(f=o.get(n,!1,u))!==undefined?f:h[t]}},css:function(n,t,r,u){var f,o,e,s=y(t),h=pu.test(t);return(h||(t=du(s)),e=i.cssHooks[t]||i.cssHooks[s],e&&"get"in e&&(f=e.get(n,!0,r)),f===undefined&&(f=yt(n,t,u)),f==="normal"&&t in wu&&(f=wu[t]),r===""||r)?(o=parseFloat(f),r===!0||isFinite(o)?o||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ge.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?iu(n,no,function(){return nf(n,t,u)}):nf(n,t,u)},set:function(n,r,u){var s,f=ui(n),h=i.css(n,"boxSizing",!1,f)==="border-box",o=u&&wi(n,t,u,h,f);return h&&e.scrollboxSize()===f.position&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-wi(n,t,"border",!1,f)-.5)),o&&(s=vt.exec(r))&&(s[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),gu(n,r,o)}}});i.cssHooks.marginLeft=yu(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(yt(n,"marginLeft"))||n.getBoundingClientRect().left-iu(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};n!=="margin"&&(i.cssHooks[n+t].set=gu)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ui(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};h.propHooks.scrollTop=h.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=h.prototype.init;i.fx.step={};tf=/^(?:toggle|show|hide)$/;rf=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,vt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],a.tweeners[i]=a.tweeners[i]||[],a.tweeners[i].unshift(t)},prefilters:[io],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:typeof f.duration!="number"&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),(f.queue==null||f.queue===!0)&&(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ti).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&rf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ei(t,!0),n,i,u)}});i.each({slideDown:ei("show"),slideUp:ei("hide"),slideToggle:ei("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(st=Date.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();st=undefined};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){fi||(fi=!0,bi())};i.fx.stop=function(){fi=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=f.createElement("input"),t=f.createElement("select"),i=t.appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=n.value!=="";e.optSelected=i.selected;n=f.createElement("input");n.value="t";n.type="radio";e.radioValue=n.value==="t"}();ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?ef:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&t==="radio"&&v(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});ef={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ht[t]||i.find.attr;ht[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ht[u],ht[u]=f,f=r(n,t,i)!=null?u:null,ht[u]=e),f}});of=/^(?:input|select|textarea|button)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if(f=ki(n),f.length)while(r=this[c++])if(e=nt(r),t=r.nodeType===1&&" "+g(e)+" ",t){for(h=0;o=f[h++];)t.indexOf(" "+o+" ")<0&&(t+=o+" ");s=g(t);e!==s&&r.setAttribute("class",s)}return this},removeClass:function(n){var f,r,t,e,o,h,s,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if(f=ki(n),f.length)while(r=this[c++])if(e=nt(r),t=r.nodeType===1&&" "+g(e)+" ",t){for(h=0;o=f[h++];)while(t.indexOf(" "+o+" ")>-1)t=t.replace(" "+o+" "," ");s=g(t);e!==s&&r.setAttribute("class",s)}return this},toggleClass:function(n,t){var f=typeof n,e=f==="string"||Array.isArray(n);return typeof t=="boolean"&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=ki(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(n===undefined||f==="boolean")&&(t=nt(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+g(nt(t))+" ").indexOf(i)>-1)return!0;return!1}});hf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;this.nodeType===1&&(u=e?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(f,"value"))!==undefined)?r:(r=f.value,typeof r=="string")?r.replace(hf,""):r==null?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!v(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};e.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});e.focusin="onfocusin"in n;di=/^(?:focusinfocus|focusoutblur)$/;gi=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,w,b=[o||f],h=kt.call(t,"type")?t.type:t,p=kt.call(t,"namespace")?t.namespace.split("."):[];if((c=w=l=o=o||f,o.nodeType!==3&&o.nodeType!==8)&&!di.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(p=h.split("."),h=p.shift(),p.sort()),v=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=s?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=o),e=e==null?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||a.trigger.apply(o,e)!==!1)){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,di.test(d+h)||(c=c.parentNode);c;c=c.parentNode)b.push(c),l=c;l===(o.ownerDocument||f)&&b.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=b[k++])&&!t.isPropagationStopped();)w=c,t.type=k>1?d:a.bindType||h,y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"),y&&y.apply(c,e),y=v&&c[v],y&&y.apply&&lt(c)&&(t.result=y.apply(c,e),t.result===!1&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||(!a._default||a._default.apply(b.pop(),e)===!1)&&lt(o)&&v&&u(o[h])&&!tt(o)&&(l=o[v],l&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&w.addEventListener(h,gi),o[h](),t.isPropagationStopped()&&w.removeEventListener(h,gi),i.event.triggered=undefined,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var pt=n.location,cf=Date.now(),nr=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var uo=/\[\]$/,lf=/\r?\n/g,fo=/^(?:submit|button|image|reset|file)$/i,eo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(i==null?"":i)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)tr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&eo.test(this.nodeName)&&!fo.test(n)&&(this.checked||!uu.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(lf,"\r\n")}}):{name:t.name,value:r.replace(lf,"\r\n")}}).get()}});var oo=/%20/g,so=/#.*$/,ho=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)$/mg,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,af={},ir={},vf="*/".concat("*"),rr=f.createElement("a");return rr.href=pt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vf,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ur(ur(n,i.ajaxSettings),t):ur(i.ajaxSettings,n)},ajaxPrefilter:yf(af),ajaxTransport:yf(ir),ajax:function(t,r){function b(t,r,f,l){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),c=undefined,k=l||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,f&&(p=vo(u,e,f)),p=yo(u,p,e,y),y?(u.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||u.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(h,[rt,a,e]):tt.rejectWith(h,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,u,y?rt:g]),it.fireWith(h,[e,a]),v&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var c,o,k,y,d,a,s,v,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=co.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return c&&c.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||pt.href)+"").replace(ao,pt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],u.crossDomain==null){a=f.createElement("a");try{a.href=u.url;a.href=a.href;u.crossDomain=rr.protocol+"//"+rr.host!=a.protocol+"//"+a.host}catch(et){u.crossDomain=!0}}if(u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),pf(af,u,r,e),s)return e;v=i.event&&u.global;v&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!lo.test(u.type);o=u.url.replace(so,"");u.hasContent?u.data&&u.processData&&(u.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(u.data=u.data.replace(oo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||typeof u.data=="string")&&(o+=(nr.test(o)?"&":"?")+u.data,delete u.data),u.cache===!1&&(o=o.replace(ho,"$1"),p=(nr.test(o)?"&":"?")+"_="+cf+++p),u.url=o+p);u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType);e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+vf+"; q=0.01":""):u.accepts["*"]);for(g in u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(u.beforeSend.call(h,e,u)===!1||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),c=pf(ir,u,r,e),c){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;c.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},wf={0:200,1223:204},ct=i.ajaxSettings.xhr(),e.cors=!!ct&&"withCredentials"in ct,e.ajax=ct=!!ct,i.ajaxTransport(function(t){var i,r;if(e.cors||ct&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(wf[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(u,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}}),fr=[],oi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=fr.pop()||i.expando+"_"+cf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=t.jsonp!==!1&&(oi.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&oi.test(t.data)&&"data");if(h||t.dataTypes[0]==="jsonp")return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(oi,"$1"+e):t.jsonp!==!1&&(t.url+=(nr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){o===undefined?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,fr.push(e));s&&u(o)&&o(s[0]);s=o=undefined}),"script"}),e.createHTMLDocument=function(){var n=f.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,u,o;return(t||(e.createHTMLDocument?(t=f.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=f.location.href,t.head.appendChild(s)):t=f),u=ci.exec(n),o=!r&&[],u)?[t.createElement(u[1])]:(u=su([n],t,o),o&&o.length&&i(o).remove(),i.merge([],u.childNodes))},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=undefined):t&&typeof t=="object"&&(s="POST"),e.length>0&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var o,s,h,c,f,l,y,a=i.css(n,"position"),v=i(n),e={};a==="static"&&(n.style.position="relative");f=v.offset();h=i.css(n,"top");l=i.css(n,"left");y=(a==="absolute"||a==="fixed")&&(h+l).indexOf("auto")>-1;y?(o=v.position(),c=o.top,s=o.left):(c=parseFloat(h)||0,s=parseFloat(l)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));t.top!=null&&(e.top=t.top-f.top+c);t.left!=null&&(e.left=t.left-f.left+s);"using"in t?t.using.call(n,e):v.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,u,f,t=this[0],r={top:0,left:0};if(i.css(t,"position")==="fixed")u=t.getBoundingClientRect();else{for(u=this.offset(),f=t.ownerDocument,n=t.offsetParent||f.documentElement;n&&(n===f.body||n===f.documentElement)&&i.css(n,"position")==="static";)n=n.parentNode;n&&n!==t&&n.nodeType===1&&(r=i(n).offset(),r.top+=i.css(n,"borderTopWidth",!0),r.left+=i.css(n,"borderLeftWidth",!0))}return{top:u.top-r.top-i.css(t,"marginTop",!0),left:u.left-r.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ii})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:n.nodeType===9&&(f=n.defaultView),u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=yu(e.pixelPosition,function(n,r){if(r)return r=yt(n,t),pi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var f,e,r;return(typeof t=="string"&&(f=n[t],t=n,n=f),!u(n))?undefined:(e=d.call(arguments,2),r=function(){return n.apply(t||this,e.concat(d.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=v,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),bf=n.jQuery,kf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=kf),t&&n.jQuery===i&&(n.jQuery=bf),i},t||(n.jQuery=n.$=i),i})},{}],20:[function(n,t){"use strict";var r=n("jquery"),h=n("c2-event-handler"),s=h({}),i={},y=0,u=[],c=[],e={zIndexStart:1e3,appendTo:document.forms.length>0&&document.forms[0].parentElement===document.body?document.forms[0]:document.body},l={overlayHTML:'<div class="Overlay" data-state="off"><\/div>',attr:"data-state",onState:"on",offState:"off",verticallyCenterModal:!0},a=function(n){var t=r(window).height(),i=n.outerHeight(),u=r(window).scrollTop();return Math.max((t-i)/2,0)+u},o=function(){return u.length===0?null:u[u.length-1]},f=function(n,t,i){this.$el=n;this.el=n[0];this.id=t;this.opts=r.extend({},l,i);this.isOpen=!1;this.opts.overlayHTML&&(this.$overlay=r(this.opts.overlayHTML),this.$overlay.appendTo(e.appendTo));this.$el.appendTo(e.appendTo);this.$el.attr({tabindex:"-1",role:"dialog"})},v;h(f);f.prototype.open=function(){if(!this.isOpen){this.isOpen=!0;u.push(this);c.push(document.activeElement);var n={zIndex:e.zIndexStart+u.length};this.opts.overlayHTML&&this.$overlay.css(n).attr(this.opts.attr,this.opts.onState);this.opts.verticallyCenterModal&&(n.top=a(this.$el));this.$el.css(n).attr(this.opts.attr,this.opts.onState);this.emit("open");s.emit("open",this)}};f.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var n=u.indexOf(this),t;n>-1&&(u.splice(n,1),t=c.splice(n,1)[0]);this.opts.overlayHTML&&this.$overlay.attr(this.opts.attr,this.opts.offState);this.$el.attr(this.opts.attr,this.opts.offState);t.focus();this.emit("close");s.emit("close",this)}};f.prototype.verticallyCenter=function(){this.$el.css({top:a(this.$el)})};var p=function(n){r.extend(e,n)},w=function(n){r.extend(l,n)},b=function(n,t){var u,e,o;return typeof n=="string"&&(u=n.indexOf("#")===0?n.substr(1):n,i.hasOwnProperty(u))?i[u]:(e=r(n),!e.length)?void 0:(u=e[0].id||"_"+ ++y,i.hasOwnProperty(u))?i[u]:(o=new f(e,u,t),i[u]=o,o)},k=function(){while(u.length>0)o().close()},d=function(){var n=o();n&&n.close()},g=function(n){i.hasOwnProperty(n)&&i[n].open()},nt=function(n){i.hasOwnProperty(n)&&i[n].close()},tt=function(n){i.hasOwnProperty(n)&&i[n].verticallyCenter()};r(document).on("keydown",function(n){if(n.which===27){var t=o();t&&t.close()}}).on("focus","body",function(n){var t=o();t&&!t.el.contains(n.target)&&(n.stopPropagation(),t.el.focus())});v=r.extend(s,{config:p,setDefaults:w,create:b,closeAll:k,closeActive:d,open:g,close:nt,verticallyCenter:tt});t.exports=v},{"c2-event-handler":17,jquery:21}],21:[function(n,t){(function(n,i){"use strict";typeof t=="object"&&typeof t.exports=="object"?t.exports=n.document?i(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return i(n)}:i(n)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function gi(n,t){t=t||u;var i=t.createElement("script");i.text=n;t.head.appendChild(i).parentNode.removeChild(i)}function ui(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(gf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return lt.call(t,n)>-1!==r&&n.nodeType===1})}function hr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function ne(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function d(n){return n}function yt(n){throw n;}function cr(n,t,r){var u;try{n&&i.isFunction(u=n.promise)?u.call(n).done(t).fail(r):n&&i.isFunction(u=n.then)?u.call(n,t,r):t.call(undefined,n)}catch(n){r.call(undefined,n)}}function wt(){u.removeEventListener("DOMContentLoaded",wt);n.removeEventListener("load",wt);i.ready()}function ot(){this.expando=i.expando+ot.uid++}function ar(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(ie,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=i==="true"?!0:i==="false"?!1:i==="null"?null:+i+""===i?+i:te.test(i)?JSON.parse(i):i}catch(u){}e.set(n,t,i)}else i=undefined;return i}function pr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&st.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function re(n){var r,f=n.ownerDocument,u=n.nodeName,t=ei[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),ei[u]=t,t)}function g(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&bt(u)&&(f[i]=re(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function o(n,t){var r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[];return t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function oi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function gr(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(dr.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(br.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&oi(s),r)for(v=0;e=s[v++];)kr.test(e.type||"")&&r.push(e)}return h}function dt(){return!0}function nt(){return!1}function tu(){try{return u.activeElement}catch(n){}}function si(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)si(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=nt;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function iu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n:n}function le(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ae(n){var t=he.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ru(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ve(n,t){var i=t.nodeName.toLowerCase();i==="input"&&wr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function tt(n,t,u,e){t=bi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&typeof y=="string"&&!f.checkClone&&se.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html()));tt(r,t,u,e)});if(v&&(l=gr(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),le),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ae),h=0;h<a;h++)s=c[h],kr.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):gi(s.textContent.replace(ce,""),w))}return n}function uu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&oi(o(u,"script")),u.parentNode.removeChild(u));return n}function ht(n,t,r){var o,s,h,u,e=n.style;return r=r||gt(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&hi.test(u)&&fu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function eu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function cu(n){if(n in hu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=su.length;t--;)if(n=su[t]+i,n in hu)return n}function lu(n,t,i){var r=st.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function au(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function vu(n,t,r){var u,o=!0,e=gt(n),s=i.css(n,"boxSizing",!1,e)==="border-box";if(n.getClientRects().length&&(u=n.getBoundingClientRect()[t]),u<=0||u==null){if(u=ht(n,t,e),(u<0||u==null)&&(u=n.style[t]),hi.test(u))return u;o=s&&(f.boxSizingReliable()||u===n.style[t]);u=parseFloat(u)||0}return u+au(n,t,r||(s?"border":"content"),o,e)+"px"}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function wu(){rt&&(n.requestAnimationFrame(wu),i.fx.tick())}function bu(){return n.setTimeout(function(){it=undefined}),it=i.now()}function ni(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function ku(n,t,i){for(var u,f=(l.tweeners[t]||[]).concat(l.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function we(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&bt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],yu.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(g([n],!0),o=n.style.display||o,l=i.css(n,"display"),g([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block"));u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0];h.overflowX=u.overflow[1];h.overflowY=u.overflow[2]}));s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&g([n],!0),v.done(function(){a||g([n]);r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=ku(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function be(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function l(n,t,r){var f,o,s=0,a=l.prefilters.length,e=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||bu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,f=u.tweens.length;r<f;r++)u.tweens[r].run(i);return e.notifyWith(n,[u,i,t]),i<1&&f?t:(e.resolveWith(n,[u]),!1)},u=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:it||bu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(e.notifyWith(n,[u,1,0]),e.resolveWith(n,[u,t])):e.rejectWith(n,[u,t]),this}}),h=u.props;for(be(h,u.opts.specialEasing);s<a;s++)if(f=l.prefilters[s].call(u,n,h,u.opts),f)return i.isFunction(f.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(f.stop,f)),f;return i.map(h,ku,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function b(n){return n.getAttribute&&n.getAttribute("class")||""}function ai(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||ke.test(n)?u(n,i):ai(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)ai(n+"["+f+"]",t[f],r,u)}function sf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function hf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===vi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function eo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function oo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function lf(n){return i.isWindow(n)?n:n.nodeType===9&&n.defaultView}var y=[],u=n.document,yf=Object.getPrototypeOf,p=y.slice,bi=y.concat,ri=y.push,lt=y.indexOf,at={},ki=at.toString,vt=at.hasOwnProperty,di=vt.toString,pf=di.call(Object),f={},nr="3.0.0",i=function(n,t){return new i.fn.init(n,t)},wf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bf=/^-ms-/,kf=/-([a-z])/g,df=function(n,t){return t.toUpperCase()},v,ur,fr,er,or,sr,h,lr,pt,a,et,ei,dr,it,rt,yu,pu,du,ut,gu,nf,ti,tf,rf,ci,cf,ft,wi,ii,af,vf;i.fn=i.prototype={jquery:nr,constructor:i,length:0,toArray:function(){return p.call(this)},get:function(n){return n!=null?n<0?this[n+this.length]:this[n]:p.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ri,sort:y.sort,splice:y.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(nr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray,isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!n||ki.call(n)!=="[object Object]"?!1:(t=yf(n),!t)?!0:(i=vt.call(t,"constructor")&&t.constructor,typeof i=="function"&&di.call(i)===pf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?at[ki.call(n)]||"object":typeof n},globalEval:function(n){gi(n)},camelCase:function(n){return n.replace(bf,"ms-").replace(kf,df)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ui(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(wf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ui(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ri.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:lt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ui(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return bi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=p.call(arguments,2),r=function(){return n.apply(t||this,f.concat(p.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=y[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){at["[object "+t+"]"]=t.toLowerCase()});v=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:h)!==i&&b(t),t=t||i,c)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=e),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(",");p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"label"in t&&t.disabled===n||"form"in t&&t.disabled===n||"form"in t&&t.disabled===!1&&(t.isDisabled===n||t.isDisabled!==!n&&("label"in t||!lr(t))!==n)}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&f==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u)}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[e]||(t[e]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[f]=y,y[2]=n(t,i,h))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[pt(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}f.push(u)}return ui(f)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,h,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),h=!c);d=n[nt++];)if(d(y,s||i,h)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,h);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,c,o,d,ct,et,e="sizzle"+1*new Date,h=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(h.childNodes),h.childNodes);g[h.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:h;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,c=!oi(i),h!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&c){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&c)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!f.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===h&&et(h,n)?-1:t===i||t.ownerDocument===h&&et(h,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===h?-1:e[u]===h?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),f.matchesSelector&&c&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&gi.call(t.attrHandle,r.toLowerCase())?e(n,r,!c):undefined;return u!==undefined?u:f.attributes||!c?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.escape=function(n){return(n+"").replace(vi,yi)};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=c?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,pr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l=typeof n=="function"&&n,h=!u&&ft(n=l.selector||n);if(r=r||[],h.length===1){if(e=h[0]=h[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&f.getById&&i.nodeType===9&&c&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],i)l&&(i=i.parentNode);else return r;n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),ni.test(e[0].type)&&ri(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||bt(n,h))(u,i,!c,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(kt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=v;i.expr=v.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=v.uniqueSort;i.text=v.getText;i.isXMLDoc=v.isXML;i.contains=v.contains;i.escapeSelector=v.escape;var k=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},tr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ir=i.expr.match.needsContext,rr=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,gf=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(fi(this,n||[],!1))},not:function(n){return this.pushStack(fi(this,n||[],!0))},is:function(n){return!!fi(this,typeof n=="string"&&ir.test(n)?i(n):n||[],!1).length}});fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;er=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ur,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:fr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),rr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)};er.prototype=i.fn;ur=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!ir.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?lt.call(i(n),this[0]):lt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return k(n,"parentNode")},parentsUntil:function(n,t,i){return k(n,"parentNode",i)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return k(n,"nextSibling")},prevAll:function(n){return k(n,"previousSibling")},nextUntil:function(n,t,i){return k(n,"nextSibling",i)},prevUntil:function(n,t,i){return k(n,"previousSibling",i)},siblings:function(n){return tr((n.parentNode||{}).firstChild,n)},children:function(n){return tr(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||i.uniqueSort(f),or.test(n)&&f.reverse()),this.pushStack(f)}});h=/\S+/g;i.Callbacks=function(n){n=typeof n=="string"?ne(n):i.extend({},n);var f,r,h,e,t=[],o=[],u=-1,c=function(){for(e=n.once,h=f=!0;o.length;u=-1)for(r=o.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);f=!1;e&&(t=r?[]:"")},s={add:function(){return t&&(r&&!f&&(u=t.length-1,o.push(r)),function e(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&i.type(u)!=="string"&&e(u)})}(arguments),r&&!f&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),f<=u&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return e=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return e=o=[],r||f||(t=r=""),this},locked:function(){return!!e},fireWith:function(n,t){return e||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),f||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&(typeof n=="object"||typeof n=="function")&&n.then;i.isFunction(c)?f?c.call(n,o(e,r,d,f),o(e,r,yt,f)):(e++,c.call(n,o(e,r,d,f),o(e,r,yt,f),o(e,r,d,r.notifyWith))):(u!==d&&(s=undefined,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace);t+1>=e&&(u!==yt&&(s=undefined,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:d,n.notifyWith));u[1][3].add(o(0,n,i.isFunction(t)?t:d));u[2][3].add(o(0,n,i.isFunction(r)?r:yt))}).promise()},promise:function(n){return n!=null?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add;o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this};r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=p.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this;u[n]=arguments.length>1?p.call(arguments):t;--f||r.resolveWith(e,u)}};if(f<=1&&(cr(n,r.done(o(t)).resolve,r.reject),r.state()==="pending"||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)cr(u[t],o(t),r.reject);return r.promise()}});lr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&lr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};pt=i.Deferred();i.fn.ready=function(n){return pt.then(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||pt.resolveWith(u,[i])}});i.ready.then=pt.then;u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",wt),n.addEventListener("load",wt)):n.setTimeout(i.ready);a=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)a(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};et=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};ot.uid=1;ot.prototype={cache:function(n){var t=n[this.expando];return t||(t={},et(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if(typeof t=="string")f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(i.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=t in r?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ot,e=new ot,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),ar(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):a(this,function(t){var i;if(u&&t===undefined)return(i=e.get(u,n),i!==undefined)?i:(i=ar(u,n),i!==undefined)?i:void 0;this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var vr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=new RegExp("^(?:([+-])=|)("+vr+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],bt=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},yr=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};ei={};i.fn.extend({show:function(){return g(this,!0)},hide:function(){return g(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){bt(this)?i(this).show():i(this).hide()})}});var wr=/^(?:checkbox|radio)$/i,br=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,kr=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;dr=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var kt=u.documentElement,ue=/^key/,fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,nu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(kt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=nu.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=nu.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(n.type!=="click"||isNaN(n.button)||n.button<1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&(r.disabled!==!0||n.type!=="click")){for(u=[],e=0;e<s;e++)o=t[e],f=o.selector+" ",u[f]===undefined&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==tu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===tu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&i.nodeName(this,"input"))return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?dt:nt,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=dt;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=dt;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=dt;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return n.which==null&&ue.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&fe.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return si(this,n,t,i,r)},one:function(n,t,i,r){return si(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=nt),this.each(function(){i.event.remove(this,n,r,t)})}});var ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,oe=/<script|<style|<link/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,ce=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ee,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ve(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)ru(s[u],e[u]);else ru(n,h);return e=o(h,"script"),e.length>0&&oi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(et(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({detach:function(n){return uu(this,n,!0)},remove:function(n){return uu(this,n)},text:function(n){return a(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return tt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=iu(this,n);t.appendChild(n)}})},prepend:function(){return tt(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=iu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return tt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return tt(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return a(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!oe.test(n)&&!c[(br.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return tt(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ri.apply(f,u.get());return this.pushStack(f)}});var fu=/^margin/,hi=new RegExp("^("+vr+")(?!px)[a-z%]+$","i"),gt=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};(function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";kt.appendChild(e);var i=n.getComputedStyle(t);o=i.top!=="1%";c=i.marginLeft==="2px";s=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";kt.removeChild(e);t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))})();var ye=/^(none|table(?!-c[ea]).+)/,pe={position:"absolute",visibility:"hidden",display:"block"},ou={letterSpacing:"0",fontWeight:"400"},su=["Webkit","Moz","ms"],hu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ht(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=cu(s)||s),o=i.cssHooks[t]||i.cssHooks[s],r!==undefined){if(h=typeof r,h==="string"&&(e=st.exec(r))&&e[1]&&(r=pr(n,t,e),h="number"),r==null||r!==r)return;h==="number"&&(r+=e&&e[3]||(i.cssNumber[s]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(c[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(c[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:c[t]}},css:function(n,t,r,u){var f,s,o,e=i.camelCase(t);return(t=i.cssProps[e]||(i.cssProps[e]=cu(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),f===undefined&&(f=ht(n,t,u)),f==="normal"&&t in ou&&(f=ou[t]),r===""||r)?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ye.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?yr(n,pe,function(){return vu(n,t,u)}):vu(n,t,u)},set:function(n,r,u){var f,e=u&&gt(n),o=u&&au(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=st.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),lu(n,r,o)}}});i.cssHooks.marginLeft=eu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ht(n,"marginLeft"))||n.getBoundingClientRect().left-yr(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};fu.test(n)||(i.cssHooks[n+t].set=lu)});i.fn.extend({css:function(n,t){return a(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=gt(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};yu=/^(?:toggle|show|hide)$/;pu=/queueHooks$/;i.Animation=i.extend(l,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return pr(i.elem,n,st.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],l.tweeners[r]=l.tweeners[r]||[],l.tweeners[r].unshift(t)},prefilters:[we],prefilter:function(n,t){t?l.prefilters.unshift(n):l.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return f.duration=i.fx.off||u.hidden?0:typeof f.duration=="number"?f.duration:f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default,(f.queue==null||f.queue===!0)&&(f.queue="fx"),f.old=f.complete,f.complete=function(){i.isFunction(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(bt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=l(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&pu.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ni(t,!0),n,i,u)}});i.each({slideDown:ni("show"),slideUp:ni("hide"),slideToggle:ni("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(it=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();it=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){rt||(rt=n.requestAnimationFrame?n.requestAnimationFrame(wu):n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.cancelAnimationFrame?n.cancelAnimationFrame(rt):n.clearInterval(rt);rt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=n.value!=="";f.optSelected=i.selected;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();ut=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return a(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?du:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}});du={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ut[t]||i.find.attr;ut[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ut[u],ut[u]=f,f=r(n,t,i)!=null?u:null,ut[u]=e),f}});gu=/^(?:input|select|textarea|button)$/i;nf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return a(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):gu.test(n.nodeName)||nf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});ti=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,b(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=b(r),t=r.nodeType===1&&(" "+u+" ").replace(ti," "),t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,b(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=b(r),t=r.nodeType===1&&(" "+u+" ").replace(ti," "),t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,b(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=b(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+b(t)+" ").replace(ti," ").indexOf(i)>-1)return!0;return!1}});tf=/\r/g;rf=/[\x20\t\r\n\f]+/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(tf,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:i.trim(i.text(n)).replace(rf," ")}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u=n.type==="select-one",s=u?null:[],h=u?r+1:o.length,f=r<0?h:u?r:0;f<h;f++)if(t=o[f],(t.selected||f===r)&&!t.disabled&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});ci=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=vt.call(t,"type")?t.type:t,y=vt.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!ci.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,ci.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&et(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&et(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ct=n.location,uf=i.now(),li=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ke=/\[\]$/,ff=/\r?\n/g,de=/^(?:submit|button|image|reset|file)$/i,ge=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(r==null?"":r)};if(i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ai(r,n[r],t,f);return u.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ge.test(this.nodeName)&&!de.test(n)&&(this.checked||!wr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ff,"\r\n")}}):{name:t.name,value:r.replace(ff,"\r\n")}}).get()}});var no=/%20/g,to=/#.*$/,io=/([?&])_=[^&]*/,ro=/^(.*?):[ \t]*([^\r\n]*)$/mg,uo=/^(?:GET|HEAD)$/,fo=/^\/\//,ef={},vi={},of="*/".concat("*"),yi=u.createElement("a");return yi.href=ct.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":of,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:sf(ef),ajaxTransport:sf(vi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,u&&(p=eo(f,e,u)),p=oo(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(c,[rt,a,e]):tt.rejectWith(c,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,a]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,y,d,a,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=ro.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return l&&l.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||ct.href)+"").replace(fo,ct.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=yi.protocol+"//"+yi.host!=a.protocol+"//"+a.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),hf(ef,f,r,e),s)return e;v=i.event&&f.global;v&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!uo.test(f.type);o=f.url.replace(to,"");f.hasContent?f.data&&f.processData&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(f.data=f.data.replace(no,"+")):(p=f.url.slice(o.length),f.data&&(o+=(li.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(io,""),p=(li.test(o)?"&":"?")+"_="+uf+++p),f.url=o+p);f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+of+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),l=hf(vi,f,r,e),l){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1;l.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},cf={0:200,1223:204},ft=i.ajaxSettings.xhr(),f.cors=!!ft&&"withCredentials"in ft,f.ajax=ft=!!ft,i.ajaxTransport(function(t){var i,r;if(f.cors||ft&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(cf[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),wi=[],ii=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+uf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ii.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ii.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ii,"$1"+f):t.jsonp!==!1&&(t.url+=(li.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,wi.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,e,o;return(t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=rr.exec(n),o=!r&&[],e)?[t.createElement(e[1])]:(e=gr([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var u,f,t,e,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),t.width||t.height)?(e=r.ownerDocument,f=lf(e),u=e.documentElement,{top:t.top+f.pageYOffset-u.clientTop,left:t.left+f.pageXOffset-u.clientLeft}):t:{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),i.nodeName(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||kt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return a(this,function(n,i,u){var f=lf(n);if(u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=eu(f.pixelPosition,function(n,r){if(r)return r=ht(n,t),hi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return a(this,function(t,r,f){var e;return i.isWindow(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.parseJSON=JSON.parse,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),af=n.jQuery,vf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=vf),t&&n.jQuery===i&&(n.jQuery=af),i},t||(n.jQuery=n.$=i),i})},{}],22:[function(n,t,i){(function(n,r){typeof i=="object"&&typeof t!="undefined"?t.exports=r():typeof define=="function"&&define.amd?define(r):n.moment=r()})(this,function(){"use strict";function r(){return yf.apply(null,arguments)}function th(n){yf=n}function rt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function vi(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function ih(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function b(n){return n===void 0}function ni(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function tr(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function pf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function v(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function wt(n,t){for(var i in t)v(t,i)&&(n[i]=t[i]);return v(t,"toString")&&(n.toString=t.toString),v(t,"valueOf")&&(n.valueOf=t.valueOf),n}function st(n,t,i,r){return wo(n,t,i,r,!0).utc()}function rh(){return{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}}function e(n){return n._pf==null&&(n._pf=rh()),n._pf}function ru(n){if(n._isValid==null){var t=e(n),r=wf.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function ir(n){var t=st(NaN);return n!=null?wt(e(t),n):e(t).userInvalidated=!0,t}function uu(n,t){var i,r,u;if(b(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),b(t._i)||(n._i=t._i),b(t._f)||(n._f=t._f),b(t._l)||(n._l=t._l),b(t._strict)||(n._strict=t._strict),b(t._tzm)||(n._tzm=t._tzm),b(t._isUTC)||(n._isUTC=t._isUTC),b(t._offset)||(n._offset=t._offset),b(t._pf)||(n._pf=e(t)),b(t._locale)||(n._locale=t._locale),rr.length>0)for(i=0;i<rr.length;i++)r=rr[i],u=t[r],b(u)||(n[r]=u);return n}function yi(n){uu(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));ur===!1&&(ur=!0,r.updateOffset(this),ur=!1)}function bt(n){return n instanceof yi||n!=null&&n._isAMomentObject!=null}function nt(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function o(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=nt(t)),i}function bf(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&o(n[r])!==o(t[r]))&&u++;return u+e}function kf(n){r.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function tt(n,t){var i=!0;return wt(function(){var e,u,f,o;if(r.deprecationHandler!=null&&r.deprecationHandler(null,n),i){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}kf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);i=!1}return t.apply(this,arguments)},t)}function df(n,t){r.deprecationHandler!=null&&r.deprecationHandler(n,t);fu[n]||(kf(t),fu[n]=!0)}function ht(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function uh(n){var t;for(var i in n)t=n[i],ht(t)?this[i]=t:this["_"+i]=t;this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function gf(n,t){var r=wt({},n);for(var i in t)v(t,i)&&(vi(n[i])&&vi(t[i])?(r[i]={},wt(r[i],n[i]),wt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)v(n,i)&&!v(t,i)&&vi(n[i])&&(r[i]=wt({},r[i]));return r}function eu(n){n!=null&&this.set(n)}function fh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return ht(r)?r.call(t,i):r}function eh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function oh(){return this._invalidDate}function sh(n){return this._ordinal.replace("%d",n)}function hh(n,t,i,r){var u=this._relativeTime[i];return ht(u)?u(n,t,i,r):u.replace(/%d/i,n)}function ch(n,t){var i=this._relativeTime[n>0?"future":"past"];return ht(i)?i(t):i.replace(/%s/i,t)}function k(n,t){var i=n.toLowerCase();ei[i]=ei[i+"s"]=ei[t]=n}function it(n){return typeof n=="string"?ei[n]||ei[n.toLowerCase()]:undefined}function ou(n){var r={},t;for(var i in n)v(n,i)&&(t=it(i),t&&(r[t]=n[i]));return r}function d(n,t){su[n]=t}function lh(n){var t=[];for(var i in n)t.push({unit:i,priority:su[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function at(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function f(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(oi[n]=u);t&&(oi[t[0]]=function(){return at(u.apply(this,arguments),t[1],t[2])});i&&(oi[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ah(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function vh(n){for(var t=n.match(oe),i=0,r=t.length;i<r;i++)t[i]=oi[t[i]]?oi[t[i]]:ah(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=ht(t[u])?t[u].call(i,n):t[u];return f}}function er(n,t){return n.isValid()?(t=se(t,n.localeData()),hu[t]=hu[t]||vh(t),hu[t](n)):n.localeData().invalidDate()}function se(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(fr.lastIndex=0;i>=0&&fr.test(n);)n=n.replace(fr,r),fr.lastIndex=0,i-=1;return n}function u(n,t,i){au[n]=ht(t)?t:function(n){return n&&i?i:t}}function ph(n,t){return v(au,n)?au[n](t._strict,t._locale):new RegExp(wh(n))}function wh(n){return ti(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function ti(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),ni(t)&&(r=function(n,i){i[t]=o(n)}),i=0;i<n.length;i++)ar[n[i]]=r}function wi(n,t){l(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function bh(n,t,i){t!=null&&v(ar,n)&&ar[n](t,i._a,i,n)}function bi(n){return vr(n)?366:365}function vr(n){return n%4==0&&n%100!=0||n%400==0}function gh(){return vr(this.year())}function si(n,t){return function(i){return i!=null?(ve(this,n,i),r.updateOffset(this,t),this):yr(this,n)}}function yr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function ve(n,t,i){n.isValid()&&!isNaN(i)&&(t==="FullYear"&&vr(n.year())&&n.month()===1&&n.date()===29?n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),pr(i,n.month())):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function nc(n){return(n=it(n),ht(this[n]))?this[n]():this}function tc(n,t){var r,i;if(typeof n=="object")for(n=ou(n),r=lh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=it(n),ht(this[n]))return this[n](t);return this}function ic(n,t){return(n%t+t)%t}function pr(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=ic(t,12);return n+=(t-i)/12,i===1?vr(n)?29:28:31-i%7%2}function rc(n,t){return n?rt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||yu).test(t)?"format":"standalone"][n.month()]:rt(this._months)?this._months:this._months.standalone}function uc(n,t){return n?rt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[yu.test(t)?"format":"standalone"][n.month()]:rt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=st([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=y.call(this._shortMonthsParse,f),r!==-1?r:null):(r=y.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=y.call(this._shortMonthsParse,f),r!==-1)?r:(r=y.call(this._longMonthsParse,f),r!==-1?r:null):(r=y.call(this._longMonthsParse,f),r!==-1)?r:(r=y.call(this._shortMonthsParse,f),r!==-1?r:null)}function ec(n,t,i){var r,u,f;if(this._monthsParseExact)return fc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=st([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function pe(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=o(t);else if(t=n.localeData().monthsParse(t),!ni(t))return n;return i=Math.min(n.date(),pr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function we(n){return n!=null?(pe(this,n),r.updateOffset(this,!0),this):yr(this,"Month")}function oc(){return pr(this.year(),this.month())}function sc(n){return this._monthsParseExact?(v(this,"_monthsRegex")||de.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=be),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function hc(n){return this._monthsParseExact?(v(this,"_monthsRegex")||de.call(this),n?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function de(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=st([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=ti(i[n]),r[n]=ti(r[n]);for(n=0;n<24;n++)t[n]=ti(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function cc(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function ki(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function wr(n,t,i){var r=7+t-i,u=(7+ki(n,0,r).getUTCDay()-t)%7;return-u+r-1}function ge(n,t,i,r,u){var s=(7+i-r)%7,h=wr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=bi(e)+f):f>bi(n)?(e=n+1,o=f-bi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function di(n,t,i){var e=wr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ri(u,t,i)):r>ri(n.year(),t,i)?(f=r-ri(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ri(n,t,i){var r=wr(n,t,i),u=wr(n+1,t,i);return(bi(n)-r+u)/7}function lc(n){return di(n,this._week.dow,this._week.doy).week}function ac(){return this._week.dow}function vc(){return this._week.doy}function yc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function pc(n){var t=di(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function wc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function bc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function kc(n,t){return n?rt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:rt(this._weekdays)?this._weekdays:this._weekdays.standalone}function dc(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function gc(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function nl(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=st([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=y.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=y.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=y.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=y.call(this._minWeekdaysParse,u),r!==-1)?r:(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function tl(n,t,i){var r,u,f;if(this._weekdaysParseExact)return nl.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=st([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function il(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=wc(n,this.localeData()),this.add(n-t,"d")):t}function rl(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function ul(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=bc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function fl(n){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||bu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ro),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function el(n){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||bu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=uo),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ol(n){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||bu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fo),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function bu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=st([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=ti(i[n]),r[n]=ti(r[n]),t[n]=ti(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function ku(){return this.hours()%12||12}function sl(){return this.hours()||24}function eo(n,t){f(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function oo(n,t){return t._meridiemParse}function hl(n){return(n+"").toLowerCase().charAt(0)==="p"}function cl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function co(n){return n?n.toLowerCase().replace("_","-"):n}function al(n){for(var r=0,i,t,f,u;r<n.length;){for(u=co(n[r]).split("-"),i=u.length,t=co(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=br(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&bf(u,t,!0)>=i-1)break;i--}r++}return nr}function br(i){var r=null,u;if(!w[i]&&typeof t!="undefined"&&t&&t.exports)try{r=nr._abbr;u=n;u("./locale/"+i);hi(r)}catch(f){}return w[i]}function hi(n,t){var i;return n&&(i=b(t)?kt(n):du(n,t),i?nr=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),nr._abbr}function du(n,t){if(t!==null){var r,i=ho;if(t.abbr=n,w[n]!=null)df("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=w[n]._config;else if(t.parentLocale!=null)if(w[t.parentLocale]!=null)i=w[t.parentLocale]._config;else if(r=br(t.parentLocale),r!=null)i=r._config;else return gi[t.parentLocale]||(gi[t.parentLocale]=[]),gi[t.parentLocale].push({name:n,config:t}),null;return w[n]=new eu(gf(i,t)),gi[n]&&gi[n].forEach(function(n){du(n.name,n.config)}),hi(n),w[n]}return delete w[n],null}function vl(n,t){if(t!=null){var i,r,u=ho;r=br(n);r!=null&&(u=r._config);t=gf(u,t);i=new eu(t);i.parentLocale=w[n];w[n]=i;hi(n)}else w[n]!=null&&(w[n].parentLocale!=null?w[n]=w[n].parentLocale:w[n]!=null&&delete w[n]);return w[n]}function kt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return nr;if(!rt(n)){if(t=br(n),t)return t;n=[n]}return al(n)}function yl(){return ne(w)}function gu(n){var i,t=n._a;return t&&e(n).overflow===-2&&(i=t[vt]<0||t[vt]>11?vt:t[ct]<1||t[ct]>pr(t[ut],t[vt])?ct:t[p]<0||t[p]>24||t[p]===24&&(t[ft]!==0||t[yt]!==0||t[ii]!==0)?p:t[ft]<0||t[ft]>59?ft:t[yt]<0||t[yt]>59?yt:t[ii]<0||t[ii]>999?ii:-1,e(n)._overflowDayOfYear&&(i<ut||i>ct)&&(i=ct),e(n)._overflowWeeks&&i===-1&&(i=kh),e(n)._overflowWeekday&&i===-1&&(i=dh),e(n).overflow=i),n}function ci(n,t,i){return n!=null?n:t!=null?t:i}function pl(n){var t=new Date(r.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function nf(n){var t,i,r=[],u,o,f;if(!n._d){for(u=pl(n),n._w&&n._a[ct]==null&&n._a[vt]==null&&wl(n),n._dayOfYear!=null&&(f=ci(n._a[ut],u[ut]),(n._dayOfYear>bi(f)||n._dayOfYear===0)&&(e(n)._overflowDayOfYear=!0),i=ki(f,0,n._dayOfYear),n._a[vt]=i.getUTCMonth(),n._a[ct]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[p]===24&&n._a[ft]===0&&n._a[yt]===0&&n._a[ii]===0&&(n._nextDay=!0,n._a[p]=0);n._d=(n._useUTC?ki:cc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[p]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(e(n).weekdayMismatch=!0)}}function wl(n){var t,o,u,i,r,f,h,s,c;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,f=4,o=ci(t.GG,n._a[ut],di(a(),1,4).year),u=ci(t.W,1),i=ci(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,f=n._locale._week.doy,c=di(a(),r,f),o=ci(t.gg,n._a[ut],c.year),u=ci(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);u<1||u>ri(o,r,f)?e(n)._overflowWeeks=!0:s!=null?e(n)._overflowWeekday=!0:(h=ge(o,u,i,r,f),n._a[ut]=h.year,n._dayOfYear=h.dayOfYear)}function lo(n){var t,r,o=n._i,i=bl.exec(o)||kl.exec(o),s,f,u,h;if(i){for(e(n).iso=!0,t=0,r=kr.length;t<r;t++)if(kr[t][1].exec(i[1])){f=kr[t][0];s=kr[t][2]!==!1;break}if(f==null){n._isValid=!1;return}if(i[3]){for(t=0,r=tf.length;t<r;t++)if(tf[t][1].exec(i[3])){u=(i[2]||" ")+tf[t][0];break}if(u==null){n._isValid=!1;return}}if(!s&&u!=null){n._isValid=!1;return}if(i[4])if(dl.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=f+(u||"")+(h||"");rf(n)}else n._isValid=!1}function na(n,t,i,r,u,f){var e=[ta(n),pu.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10)];return f&&e.push(parseInt(f,10)),e}function ta(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function ia(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ra(n,t,i){if(n){var r=wu.indexOf(n),u=new Date(t[0],t[1],t[2]).getDay();if(r!==u)return e(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function ua(n,t,i){if(n)return vo[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function yo(n){var t=ao.exec(ia(n._i)),i;if(t){if(i=na(t[4],t[3],t[2],t[5],t[6],t[7]),!ra(t[1],i,n))return;n._a=i;n._tzm=ua(t[8],t[9],t[10]);n._d=ki.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);e(n).rfc2822=!0}else n._isValid=!1}function fa(n){var t=gl.exec(n._i);if(t!==null){n._d=new Date(+t[1]);return}if(lo(n),n._isValid===!1)delete n._isValid;else return;if(yo(n),n._isValid===!1)delete n._isValid;else return;r.createFromInputFallback(n)}function rf(n){if(n._f===r.ISO_8601){lo(n);return}if(n._f===r.RFC_2822){yo(n);return}n._a=[];e(n).empty=!0;for(var t=""+n._i,i,u,s,c=t.length,h=0,o=se(n._f,n._locale).match(oe)||[],f=0;f<o.length;f++)u=o[f],i=(t.match(ph(u,n))||[])[0],i&&(s=t.substr(0,t.indexOf(i)),s.length>0&&e(n).unusedInput.push(s),t=t.slice(t.indexOf(i)+i.length),h+=i.length),oi[u]?(i?e(n).empty=!1:e(n).unusedTokens.push(u),bh(u,i,n)):n._strict&&!i&&e(n).unusedTokens.push(u);e(n).charsLeftOver=c-h;t.length>0&&e(n).unusedInput.push(t);n._a[p]<=12&&e(n).bigHour===!0&&n._a[p]>0&&(e(n).bigHour=undefined);e(n).parsedDateParts=n._a.slice(0);e(n).meridiem=n._meridiem;n._a[p]=ea(n._locale,n._a[p],n._meridiem);nf(n);gu(n)}function ea(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function oa(n){var t,f,u,r,i;if(n._f.length===0){e(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=uu({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],rf(t),ru(t))&&(i+=e(t).charsLeftOver,i+=e(t).unusedTokens.length*10,e(t).score=i,(u==null||i<u)&&(u=i,f=t));wt(n,f||t)}function sa(n){if(!n._d){var t=ou(n._i);n._a=pf([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});nf(n)}}function ha(n){var t=new yi(gu(po(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function po(n){var t=n._i,i=n._f;return(n._locale=n._locale||kt(n._l),t===null||i===undefined&&t==="")?ir({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),bt(t))?new yi(gu(t)):(tr(t)?n._d=t:rt(i)?oa(n):i?rf(n):ca(n),ru(n)||(n._d=null),n)}function ca(n){var t=n._i;b(t)?n._d=new Date(r.now()):tr(t)?n._d=new Date(t.valueOf()):typeof t=="string"?fa(n):rt(t)?(n._a=pf(t.slice(0),function(n){return parseInt(n,10)}),nf(n)):vi(t)?sa(n):ni(t)?n._d=new Date(t):r.createFromInputFallback(n)}function wo(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(vi(n)&&ih(n)||rt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ha(f)}function a(n,t,i,r){return wo(n,t,i,r,!1)}function go(n,t){var r,i;if(t.length===1&&rt(t[0])&&(t=t[0]),!t.length)return a();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function la(){var n=[].slice.call(arguments,0);return go("isBefore",n)}function aa(){var n=[].slice.call(arguments,0);return go("isAfter",n)}function va(n){var i,r,t;for(i in n)if(!(y.call(li,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(r=!1,t=0;t<li.length;++t)if(n[li[t]]){if(r)return!1;parseFloat(n[li[t]])!==o(n[li[t]])&&(r=!0)}return!0}function ya(){return this._isValid}function pa(){return et(NaN)}function dr(n){var t=ou(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=va(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=kt();this._bubble()}function uf(n){return n instanceof dr}function ff(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function ts(n,t){f(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+at(~~(n/60),2)+t+at(~~n%60,2)})}function ef(n,t){var i=(t||"").match(n);if(i===null)return null;var f=i[i.length-1]||[],r=(f+"").match(is)||["-",0,0],u=+(r[1]*60)+o(r[2]);return u===0?0:r[0]==="+"?u:-u}function of(n,t){var i,u;return t._isUTC?(i=t.clone(),u=(bt(n)||tr(n)?n.valueOf():a(n).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+u),r.updateOffset(i,!1),i):a(n).local()}function sf(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function wa(n,t,i){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=ef(lr,n),n===null)return this}else Math.abs(n)<16&&!i&&(n=n*60);return!this._isUTC&&t&&(f=sf(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!t||this._changeInProgress?ss(this,et(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:sf(this)}function ba(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ka(n){return this.utcOffset(0,n)}function da(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(sf(this),"m")),this}function ga(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=ef(yh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function nv(n){return this.isValid()?(n=n?a(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function tv(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function iv(){var n,t;return b(this._isDSTShifted)?(n={},uu(n,this),n=po(n),n._a?(t=n._isUTC?st(n._a):a(n._a),this._isDSTShifted=this.isValid()&&bf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function rv(){return this.isValid()?!this._isUTC:!1}function uv(){return this.isValid()?this._isUTC:!1}function rs(){return this.isValid()?this._isUTC&&this._offset===0:!1}function et(n,t){var i=n,r=null,u,f,e;return uf(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:ni(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=us.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:o(r[ct])*u,h:o(r[p])*u,m:o(r[ft])*u,s:o(r[yt])*u,ms:o(ff(r[ii]*1e3))*u}):(r=fs.exec(n))?(u=r[1]==="-"?-1:r[1]==="+"?1:1,i={y:ui(r[2],u),M:ui(r[3],u),w:ui(r[4],u),d:ui(r[5],u),h:ui(r[6],u),m:ui(r[7],u),s:ui(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(e=fv(a(i.from),a(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new dr(i),uf(n)&&v(n,"_locale")&&(f._locale=n._locale),f}function ui(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function es(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function fv(n,t){var i;return(n.isValid()&&t.isValid())?(t=of(t,n),n.isBefore(t)?i=es(n,t):(i=es(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function os(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(df(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=et(i,r),ss(this,u,n),this}}function ss(n,t,i,u){var o=t._milliseconds,f=ff(t._days),e=ff(t._months);n.isValid()&&(u=u==null?!0:u,e&&pe(n,yr(n,"Month")+e*i),f&&ve(n,"Date",yr(n,"Date")+f*i),o&&n._d.setTime(n._d.valueOf()+o*i),u&&r.updateOffset(n,f||e))}function ev(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ov(n,t){var u=n||a(),f=of(u,this).startOf("day"),i=r.calendarFormat(this,f)||"sameElse",e=t&&(ht(t[i])?t[i].call(this,u):t[i]);return this.format(e||this.localeData().calendar(i,this,a(u)))}function sv(){return new yi(this)}function hv(n,t){var i=bt(n)?n:a(n);return(this.isValid()&&i.isValid())?(t=it(b(t)?"millisecond":t),t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function cv(n,t){var i=bt(n)?n:a(n);return(this.isValid()&&i.isValid())?(t=it(b(t)?"millisecond":t),t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function lv(n,t,i,r){return r=r||"()",(r[0]==="("?this.isAfter(n,i):!this.isBefore(n,i))&&(r[1]===")"?this.isBefore(t,i):!this.isAfter(t,i))}function av(n,t){var i=bt(n)?n:a(n),r;return(this.isValid()&&i.isValid())?(t=it(t||"millisecond"),t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function vv(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function yv(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function pv(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=of(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=it(t);switch(t){case"year":u=hf(this,r)/12;break;case"month":u=hf(this,r);break;case"quarter":u=hf(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:nt(u)}function hf(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function wv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function bv(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?er(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ht(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",er(t,"Z")):er(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function kv(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment";t="";this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function dv(n){n||(n=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=er(this,n);return this.localeData().postformat(t)}function gv(n,t){return this.isValid()&&(bt(n)&&n.isValid()||a(n).isValid())?et({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ny(n){return this.from(a(),n)}function ty(n,t){return this.isValid()&&(bt(n)&&n.isValid()||a(n).isValid())?et({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function iy(n){return this.to(a(),n)}function ls(n){var t;return n===undefined?this._locale._abbr:(t=kt(n),t!=null&&(this._locale=t),this)}function as(){return this._locale}function ry(n){n=it(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function uy(n){return(n=it(n),n===undefined||n==="millisecond")?this:(n==="date"&&(n="day"),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms"))}function fy(){return this._d.valueOf()-(this._offset||0)*6e4}function ey(){return Math.floor(this.valueOf()/1e3)}function oy(){return new Date(this.valueOf())}function sy(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function hy(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function cy(){return this.isValid()?this.toISOString():null}function ly(){return ru(this)}function ay(){return wt({},e(this))}function vy(){return e(this).overflow}function yy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function gr(n,t){f(0,[n,n.length],0,t)}function py(n){return vs.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function wy(n){return vs.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function by(){return ri(this.year(),1,4)}function ky(){var n=this.localeData()._week;return ri(this.year(),n.dow,n.doy)}function vs(n,t,i,r,u){var f;return n==null?di(this,r,u).year:(f=ri(n,r,u),t>f&&(t=f),dy.call(this,n,t,i,r,u))}function dy(n,t,i,r,u){var e=ge(n,t,i,r,u),f=ki(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function gy(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function np(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function tp(n,t){t[ii]=o(("0."+n)*1e3)}function ip(){return this._isUTC?"UTC":""}function rp(){return this._isUTC?"Coordinated Universal Time":""}function up(n){return a(n*1e3)}function fp(){return a.apply(null,arguments).parseZone()}function bs(n){return n}function nu(n,t,i,r){var u=kt(),f=st().set(r,t);return u[i](f,n)}function ks(n,t,i){if(ni(n)&&(t=n,n=undefined),n=n||"",t!=null)return nu(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=nu(n,r,i,"month");return u}function af(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(ni(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,ni(t)&&(i=t,t=undefined),t=t||""),o=kt(),f=n?o._week.dow:0,i!=null)return nu(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=nu(t,(u+f)%7,r,"day");return e}function ep(n,t){return ks(n,t,"months")}function op(n,t){return ks(n,t,"monthsShort")}function sp(n,t,i){return af(n,t,i,"weekdays")}function hp(n,t,i){return af(n,t,i,"weekdaysShort")}function cp(n,t,i){return af(n,t,i,"weekdaysMin")}function lp(){var n=this._data;return this._milliseconds=lt(this._milliseconds),this._days=lt(this._days),this._months=lt(this._months),n.milliseconds=lt(n.milliseconds),n.seconds=lt(n.seconds),n.minutes=lt(n.minutes),n.hours=lt(n.hours),n.months=lt(n.months),n.years=lt(n.years),this}function ds(n,t,i,r){var u=et(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ap(n,t){return ds(this,n,t,1)}function vp(n,t){return ds(this,n,t,-1)}function gs(n){return n<0?Math.floor(n):Math.ceil(n)}function yp(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=gs(vf(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=nt(r/1e3),i.seconds=u%60,f=nt(u/60),i.minutes=f%60,e=nt(f/60),i.hours=e%24,n+=nt(e/24),o=nt(nh(n)),t+=o,n-=gs(vf(o)),s=nt(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function nh(n){return n*4800/146097}function vf(n){return n*146097/4800}function pp(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=it(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+nh(t),n==="month"?r:r/12;t=this._days+Math.round(vf(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function wp(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+o(this._months/12)*31536e6:NaN}function gt(n){return function(){return this.as(n)}}function uw(){return et(this)}function fw(n){return n=it(n),this.isValid()?this[n+"s"]():NaN}function fi(n){return function(){return this.isValid()?this._data[n]:NaN}}function vw(){return nt(this.days()/7)}function yw(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function pw(n,t,i){var r=et(n).abs(),u=pt(r.as("s")),e=pt(r.as("m")),o=pt(r.as("h")),s=pt(r.as("d")),h=pt(r.as("M")),c=pt(r.as("y")),f=u<=ot.ss&&["s",u]||u<ot.s&&["ss",u]||e<=1&&["m"]||e<ot.m&&["mm",e]||o<=1&&["h"]||o<ot.h&&["hh",o]||s<=1&&["d"]||s<ot.d&&["dd",s]||h<=1&&["M"]||h<ot.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,yw.apply(null,f)}function ww(n){return n===undefined?pt:typeof n=="function"?(pt=n,!0):!1}function bw(n,t){return ot[n]===undefined?!1:t===undefined?ot[n]:(ot[n]=t,n==="s"&&(ot.ss=t-1),!0)}function kw(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=pw(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function ai(n){return(n>0)-(n<0)||+n}function iu(){if(!this.isValid())return this.localeData().invalidDate();var t=tu(this._milliseconds)/1e3,y=tu(this._days),r=tu(this._months),i,s,h;i=nt(t/60);s=nt(i/60);t%=60;i%=60;h=nt(r/12);r%=12;var c=h,l=r,a=y,u=s,f=i,e=t?t.toFixed(3).replace(/\.?0+$/,""):"",n=this.asSeconds();if(!n)return"P0D";var p=n<0?"-":"",v=ai(this._months)!==ai(n)?"-":"",w=ai(this._days)!==ai(n)?"-":"",o=ai(this._milliseconds)!==ai(n)?"-":"";return p+"P"+(c?v+c+"Y":"")+(l?v+l+"M":"")+(a?w+a+"D":"")+(u||f||e?"T":"")+(u?o+u+"H":"")+(f?o+f+"M":"")+(e?o+e+"S":"")}var yf,wf,rr,ur,fu,ne,te,ie,re,ue,fe,ee,ei,su,ar,vu,y,yu,ye,pu,be,ke,no,to,wu,io,ro,uo,fo,so,ao,vo,bo,ko,ns,li,is,us,fs,hs,cs,cf,lf,ys,ps,dt,ws,i,h,lt,pt,ot,tu,s;wf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};rr=r.momentProperties=[];ur=!1;fu={};r.suppressDeprecationWarnings=!1;r.deprecationHandler=null;ne=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)v(n,t)&&i.push(t);return i};te={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};ie={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"};re="Invalid date";ue="%d";fe=/\d{1,2}/;ee={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"};ei={};su={};var oe=/(\[[^\[]*\])|(\\)?([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,fr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hu={},oi={};var he=/\d/,g=/\d\d/,ce=/\d{3}/,cu=/\d{4}/,or=/[+-]?\d{6}/,c=/\d\d?/,le=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,sr=/\d{1,3}/,lu=/\d{1,4}/,hr=/[+-]?\d{1,6}/,cr=/[+-]?\d+/,yh=/Z|[+-]\d\d:?\d\d/gi,lr=/Z|[+-]\d\d(?::?\d\d)?/gi,pi=/[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,au={};ar={};var ut=0,vt=1,ct=2,p=3,ft=4,yt=5,ii=6,kh=7,dh=8;f("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n});f(0,["YY",2],0,function(){return this.year()%100});f(0,["YYYY",4],0,"year");f(0,["YYYYY",5],0,"year");f(0,["YYYYYY",6,!0],0,"year");k("year","y");d("year",1);u("Y",cr);u("YY",c,g);u("YYYY",lu,cu);u("YYYYY",hr,or);u("YYYYYY",hr,or);l(["YYYYY","YYYYYY"],ut);l("YYYY",function(n,t){t[ut]=n.length===2?r.parseTwoDigitYear(n):o(n)});l("YY",function(n,t){t[ut]=r.parseTwoDigitYear(n)});l("Y",function(n,t){t[ut]=parseInt(n,10)});r.parseTwoDigitYear=function(n){return o(n)+(o(n)>68?1900:2e3)};vu=si("FullYear",!0);y=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};f("M",["MM",2],"Mo",function(){return this.month()+1});f("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});f("MMMM",0,0,function(n){return this.localeData().months(this,n)});k("month","M");d("month",8);u("M",c);u("MM",c,g);u("MMM",function(n,t){return t.monthsShortRegex(n)});u("MMMM",function(n,t){return t.monthsRegex(n)});l(["M","MM"],function(n,t){t[vt]=o(n)-1});l(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);u!=null?t[vt]=u:e(i).invalidMonth=n});yu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;ye="January_February_March_April_May_June_July_August_September_October_November_December".split("_");pu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");be=pi;ke=pi;f("w",["ww",2],"wo","week");f("W",["WW",2],"Wo","isoWeek");k("week","w");k("isoWeek","W");d("week",5);d("isoWeek",5);u("w",c);u("ww",c,g);u("W",c);u("WW",c,g);wi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=o(n)});no={dow:0,doy:6};f("d",0,"do","day");f("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});f("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});f("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});f("e",0,0,"weekday");f("E",0,0,"isoWeekday");k("day","d");k("weekday","e");k("isoWeekday","E");d("day",11);d("weekday",11);d("isoWeekday",11);u("d",c);u("e",c);u("E",c);u("dd",function(n,t){return t.weekdaysMinRegex(n)});u("ddd",function(n,t){return t.weekdaysShortRegex(n)});u("dddd",function(n,t){return t.weekdaysRegex(n)});wi(["dd","ddd","dddd"],function(n,t,i,r){var u=i._locale.weekdaysParse(n,r,i._strict);u!=null?t.d=u:e(i).invalidWeekday=n});wi(["d","e","E"],function(n,t,i,r){t[r]=o(n)});to="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");wu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");io="Su_Mo_Tu_We_Th_Fr_Sa".split("_");ro=pi;uo=pi;fo=pi;f("H",["HH",2],0,"hour");f("h",["hh",2],0,ku);f("k",["kk",2],0,sl);f("hmm",0,0,function(){return""+ku.apply(this)+at(this.minutes(),2)});f("hmmss",0,0,function(){return""+ku.apply(this)+at(this.minutes(),2)+at(this.seconds(),2)});f("Hmm",0,0,function(){return""+this.hours()+at(this.minutes(),2)});f("Hmmss",0,0,function(){return""+this.hours()+at(this.minutes(),2)+at(this.seconds(),2)});eo("a",!0);eo("A",!1);k("hour","h");d("hour",13);u("a",oo);u("A",oo);u("H",c);u("h",c);u("k",c);u("HH",c,g);u("hh",c,g);u("kk",c,g);u("hmm",le);u("hmmss",ae);u("Hmm",le);u("Hmmss",ae);l(["H","HH"],p);l(["k","kk"],function(n,t){var i=o(n);t[p]=i===24?0:i});l(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});l(["h","hh"],function(n,t,i){t[p]=o(n);e(i).bigHour=!0});l("hmm",function(n,t,i){var r=n.length-2;t[p]=o(n.substr(0,r));t[ft]=o(n.substr(r));e(i).bigHour=!0});l("hmmss",function(n,t,i){var r=n.length-4,u=n.length-2;t[p]=o(n.substr(0,r));t[ft]=o(n.substr(r,2));t[yt]=o(n.substr(u));e(i).bigHour=!0});l("Hmm",function(n,t){var i=n.length-2;t[p]=o(n.substr(0,i));t[ft]=o(n.substr(i))});l("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[p]=o(n.substr(0,i));t[ft]=o(n.substr(i,2));t[yt]=o(n.substr(r))});so=/[ap]\.?m?\.?/i;var ll=si("Hours",!0),ho={calendar:te,longDateFormat:ie,invalidDate:re,ordinal:ue,dayOfMonthOrdinalParse:fe,relativeTime:ee,months:ye,monthsShort:pu,week:no,weekdays:to,weekdaysMin:io,weekdaysShort:wu,meridiemParse:so},w={},gi={},nr;var bl=/^\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)?)?$/,kl=/^\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)?)?$/,dl=/Z|[+-]\d\d(?::?\d\d)?/,kr=[["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}/]],tf=[["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/]],gl=/^\/?Date\((\-?\d+)/i;for(ao=/^(?:(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}))$/,vo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},r.createFromInputFallback=tt("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){},bo=tt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=a.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:ir()}),ko=tt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=a.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:ir()}),ns=function(){return Date.now?Date.now():+new Date},li=["year","quarter","month","week","day","hour","minute","second","millisecond"],ts("Z",":"),ts("ZZ",""),u("Z",lr),u("ZZ",lr),l(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=ef(lr,n)}),is=/([\+\-]|\d\d)/gi,r.updateOffset=function(){},us=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,fs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,et.fn=dr.prototype,et.invalid=pa,hs=os(1,"add"),cs=os(-1,"subtract"),r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",cf=tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),f(0,["gg",2],0,function(){return this.weekYear()%100}),f(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gr("gggg","weekYear"),gr("ggggg","weekYear"),gr("GGGG","isoWeekYear"),gr("GGGGG","isoWeekYear"),k("weekYear","gg"),k("isoWeekYear","GG"),d("weekYear",1),d("isoWeekYear",1),u("G",cr),u("g",cr),u("GG",c,g),u("gg",c,g),u("GGGG",lu,cu),u("gggg",lu,cu),u("GGGGG",hr,or),u("ggggg",hr,or),wi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=o(n)}),wi(["gg","GG"],function(n,t,i,u){t[u]=r.parseTwoDigitYear(n)}),f("Q",0,"Qo","quarter"),k("quarter","Q"),d("quarter",7),u("Q",he),l("Q",function(n,t){t[vt]=(o(n)-1)*3}),f("D",["DD",2],"Do","date"),k("date","D"),d("date",9),u("D",c),u("DD",c,g),u("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),l(["D","DD"],ct),l("Do",function(n,t){t[ct]=o(n.match(c)[0])}),lf=si("Date",!0),f("DDD",["DDDD",3],"DDDo","dayOfYear"),k("dayOfYear","DDD"),d("dayOfYear",4),u("DDD",sr),u("DDDD",ce),l(["DDD","DDDD"],function(n,t,i){i._dayOfYear=o(n)}),f("m",["mm",2],0,"minute"),k("minute","m"),d("minute",14),u("m",c),u("mm",c,g),l(["m","mm"],ft),ys=si("Minutes",!1),f("s",["ss",2],0,"second"),k("second","s"),d("second",15),u("s",c),u("ss",c,g),l(["s","ss"],yt),ps=si("Seconds",!1),f("S",0,0,function(){return~~(this.millisecond()/100)}),f(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),f(0,["SSS",3],0,"millisecond"),f(0,["SSSS",4],0,function(){return this.millisecond()*10}),f(0,["SSSSS",5],0,function(){return this.millisecond()*100}),f(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),f(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),f(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),f(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),k("millisecond","ms"),d("millisecond",16),u("S",sr,he),u("SS",sr,g),u("SSS",sr,ce),dt="SSSS";dt.length<=9;dt+="S")u(dt,/\d+/);for(dt="S";dt.length<=9;dt+="S")l(dt,tp);ws=si("Milliseconds",!1);f("z",0,0,"zoneAbbr");f("zz",0,0,"zoneName");i=yi.prototype;i.add=hs;i.calendar=ov;i.clone=sv;i.diff=pv;i.endOf=uy;i.format=dv;i.from=gv;i.fromNow=ny;i.to=ty;i.toNow=iy;i.get=nc;i.invalidAt=vy;i.isAfter=hv;i.isBefore=cv;i.isBetween=lv;i.isSame=av;i.isSameOrAfter=vv;i.isSameOrBefore=yv;i.isValid=ly;i.lang=cf;i.locale=ls;i.localeData=as;i.max=ko;i.min=bo;i.parsingFlags=ay;i.set=tc;i.startOf=ry;i.subtract=cs;i.toArray=sy;i.toObject=hy;i.toDate=oy;i.toISOString=bv;i.inspect=kv;i.toJSON=cy;i.toString=wv;i.unix=ey;i.valueOf=fy;i.creationData=yy;i.year=vu;i.isLeapYear=gh;i.weekYear=py;i.isoWeekYear=wy;i.quarter=i.quarters=gy;i.month=we;i.daysInMonth=oc;i.week=i.weeks=yc;i.isoWeek=i.isoWeeks=pc;i.weeksInYear=ky;i.isoWeeksInYear=by;i.date=lf;i.day=i.days=il;i.weekday=rl;i.isoWeekday=ul;i.dayOfYear=np;i.hour=i.hours=ll;i.minute=i.minutes=ys;i.second=i.seconds=ps;i.millisecond=i.milliseconds=ws;i.utcOffset=wa;i.utc=ka;i.local=da;i.parseZone=ga;i.hasAlignedHourOffset=nv;i.isDST=tv;i.isLocal=rv;i.isUtcOffset=uv;i.isUtc=rs;i.isUTC=rs;i.zoneAbbr=ip;i.zoneName=rp;i.dates=tt("dates accessor is deprecated. Use date instead.",lf);i.months=tt("months accessor is deprecated. Use month instead",we);i.years=tt("years accessor is deprecated. Use year instead",vu);i.zone=tt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ba);i.isDSTShifted=tt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",iv);h=eu.prototype;h.calendar=fh;h.longDateFormat=eh;h.invalidDate=oh;h.ordinal=sh;h.preparse=bs;h.postformat=bs;h.relativeTime=hh;h.pastFuture=ch;h.set=uh;h.months=rc;h.monthsShort=uc;h.monthsParse=ec;h.monthsRegex=hc;h.monthsShortRegex=sc;h.week=lc;h.firstDayOfYear=vc;h.firstDayOfWeek=ac;h.weekdays=kc;h.weekdaysMin=gc;h.weekdaysShort=dc;h.weekdaysParse=tl;h.weekdaysRegex=fl;h.weekdaysShortRegex=el;h.weekdaysMinRegex=ol;h.isPM=hl;h.meridiem=cl;hi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=o(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});r.lang=tt("moment.lang is deprecated. Use moment.locale instead.",hi);r.langData=tt("moment.langData is deprecated. Use moment.localeData instead.",kt);lt=Math.abs;var bp=gt("ms"),kp=gt("s"),dp=gt("m"),gp=gt("h"),nw=gt("d"),tw=gt("w"),iw=gt("M"),rw=gt("y");var ew=fi("milliseconds"),ow=fi("seconds"),sw=fi("minutes"),hw=fi("hours"),cw=fi("days"),lw=fi("months"),aw=fi("years");return pt=Math.round,ot={ss:44,s:45,m:45,h:22,d:26,M:11},tu=Math.abs,s=dr.prototype,s.isValid=ya,s.abs=lp,s.add=ap,s.subtract=vp,s.as=pp,s.asMilliseconds=bp,s.asSeconds=kp,s.asMinutes=dp,s.asHours=gp,s.asDays=nw,s.asWeeks=tw,s.asMonths=iw,s.asYears=rw,s.valueOf=wp,s._bubble=yp,s.clone=uw,s.get=fw,s.milliseconds=ew,s.seconds=ow,s.minutes=sw,s.hours=hw,s.days=cw,s.weeks=vw,s.months=lw,s.years=aw,s.humanize=kw,s.toISOString=iu,s.toString=iu,s.toJSON=iu,s.locale=ls,s.localeData=as,s.toIsoString=tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iu),s.lang=cf,f("X",0,0,"unix"),f("x",0,0,"valueOf"),u("x",cr),u("X",/[+-]?\d+(\.\d{1,3})?/),l("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),l("x",function(n,t,i){i._d=new Date(o(n))}),r.version="2.22.2",th(a),r.fn=i,r.min=la,r.max=aa,r.now=ns,r.utc=st,r.unix=up,r.months=ep,r.isDate=tr,r.locale=hi,r.invalid=ir,r.duration=et,r.isMoment=bt,r.weekdays=sp,r.parseZone=fp,r.localeData=kt,r.isDuration=uf,r.monthsShort=op,r.weekdaysMin=cp,r.defineLocale=du,r.updateLocale=vl,r.locales=yl,r.weekdaysShort=hp,r.normalizeUnits=it,r.relativeTimeRounding=ww,r.relativeTimeThreshold=bw,r.calendarFormat=ev,r.prototype=i,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},r})},{}],23:[function(n,t){"use strict";var e=n("c2-event-handler"),u;e="default"in e?e["default"]:e;u={};u.typeof=function(n){return n&&typeof Symbol!="undefined"&&n.constructor===Symbol?"symbol":typeof n};u;var r=e({}),o=typeof history.pushState!="undefined",h={},s=undefined,i=undefined,f=function f(n,t){if((n===null||(typeof n=="undefined"?"undefined":u.typeof(n))!=="object")&&(n={}),t===null||(typeof t=="undefined"?"undefined":u.typeof(t))!=="object")return n;Object.keys(t).forEach(function(i){n[i]=u.typeof(t[i])==="object"&&t[i]!==null?f({},t[i]):t[i]});for(var e=arguments.length,i=Array(e>2?e-2:0),r=2;r<e;r++)i[r-2]=arguments[r];return i.length?(i.unshift(n),f.apply(this,i)):n},a=function(n){s&&Object.keys(s).forEach(function(t){if(typeof n[t]=="string")switch(s[t]){case"object":n[t]=JSON.parse(n[t]);break;case"boolean":n[t]=Boolean(n[t]);break;case"number":n[t]=Number(n[t]);break;case"float":n[t]=parseFloat(n[t]);break;case"int":n[t]=parseInt(n[t],10)}})},c=function(){var n=f({},h);return location.search.substring(1).split("&").forEach(function(t){var i=t.split("=");i.length>1&&(n[i[0]]=decodeURIComponent(i[1]))}),a(n),n},v=function(){if(window.location.pathname)return window.location.pathname;var n=window.location.href,t=n.indexOf("?");return t===-1?n:n.substring(0,t)},l=function(n){for(var o,s,c,r=arguments.length,e=Array(r>1?r-1:0),t=1;t<r;t++)e[t-1]=arguments[t];return(o=e.length?f.apply(undefined,[{},i].concat(e)):i,s=Object.keys(o),s.length===0)?v():(c=s.map(function(n){var t=o[n],i="";if(t!==h[n])switch(typeof t=="undefined"?"undefined":u.typeof(t)){case"object":i=t===null?"":JSON.stringify(t);break;case"number":case"boolean":i=String(t);break;case"string":i=t}return i&&n+"="+encodeURIComponent(i)}).filter(function(n){return n}).join(n?"&amp;":"&"),c?"?"+c:v())},y=function(){var n=!1;return document.readyState==="complete"?n=!0:window.addEventListener("load",function(){setTimeout(function(){n=!0},0)}),function(){n&&(i=c(),r.emit("pop"))}}();o&&window.addEventListener("popstate",y);i=c();r.update=function(){i=c()};r.setDefaults=function(n){h=n;i=f({},n,i)};r.setTypes=function(n){s=n;a(i)};r.getValue=function(n){return u.typeof(i[n])==="object"&&i[n]!==null?f({},i[n]):i[n]};r.toString=l;r.push=function(n,t){if((typeof n=="undefined"?"undefined":u.typeof(n))==="object"){var e=f(i,n);o&&history.pushState(e,t||null,l());r.emit("push")}};r.replace=function(n,t){if((typeof n=="undefined"?"undefined":u.typeof(n))==="object"){var e=f(i,n);o&&history.replaceState(e,t||null,l());r.emit("replace")}};r.clone=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return f.apply(undefined,[{},i].concat(r))};r.clear=function(){var n=arguments.length<=0||arguments[0]===undefined?"push":arguments[0],t=arguments.length<=1||arguments[1]===undefined?undefined:arguments[1];(i={},o&&["replace","push"].indexOf(n)!==-1)&&this[n]({},t)};t.exports=r},{"c2-event-handler":17}]},{},[1])