function whichTransitionEvent(){var n,i=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(void 0!==i.style[n])return t[n]}function whichAnimationEvent(){var n,i=document.createElement("fakeelement"),t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(n in t)if(void 0!==i.style[n])return t[n]}function isHidden(n){return null===n.offsetParent}function debounce(n,t,i){var r;return function(){var u=this,f=arguments,e=i&&!r;clearTimeout(r);r=setTimeout(function(){r=null;i||n.apply(u,f)},t);e&&n.apply(u,f)}}function offset(n){var t=n.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n,left:t.left+i}}function unwrap(n){for(var t=n.parentNode;n.firstChild;)t.insertBefore(n.firstChild,n);t.removeChild(n)}function getAjax(n,t){var i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");return i.open("GET",n),i.onreadystatechange=function(){3<i.readyState&&200===i.status&&t(JSON.parse(i.responseText))},i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(),i}function postAjax(n,t,i){var t=JSON.stringify(t),r=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");return r.open("POST",n),r.onreadystatechange=function(){3<r.readyState&&200===r.status&&i(JSON.parse(r.responseText))},r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(t),r}function postAjaxJson(n,t,i){var t=JSON.stringify(t),r=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");return r.open("POST",n),r.onreadystatechange=function(){3<r.readyState&&200===r.status&&i(JSON.parse(r.responseText))},r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","application/json; charset=UTF-8"),r.send(t),r}function fadeOut(n,t,i,r){var u,f,e;n&&(t=t||400,i=i||function(){},(r=r||function(){})(),u=null,f=+new Date,(e=function(){n.style.opacity=(n.style.opacity||1)-(new Date-f)/t;f=+new Date;u=0<n.style.opacity?window.requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,16):(n.style.opacity=0,n.style.display="none",i(),(window.requestAnimationFrame?cancelAnimationFrame:clearTimeout)(u),null)})())}function fadeIn(n,t,i,r,u){var f,e,o;n&&(t=t||400,r=r||function(){},u=u||function(){},n.style.display=i||"block",n.style.opacity=0,u(),f=null,e=+new Date,(o=function(){n.style.opacity=+n.style.opacity+(new Date-e)/t;e=+new Date;f=+n.style.opacity<1?window.requestAnimationFrame?requestAnimationFrame(o):setTimeout(o,16):(n.style.opacity=1,r(),(window.requestAnimationFrame?cancelAnimationFrame:clearTimeout)(f),null)})())}function getSiblings(n){for(var i=[],t=n.parentNode.firstChild;t;)1===t.nodeType&&t!==n&&i.push(t),t=t.nextSibling;return i}function toggleScroll(){(document.getElementsByTagName("html")[0].classList.contains("no-scroll")?enableScrolling:disableScrolling)()}function enableScrolling(){document.getElementsByTagName("html")[0].classList.remove("no-scroll");document.ontouchmove=function(){return!0}}function disableScrolling(){document.getElementsByTagName("html")[0].classList.add("no-scroll");document.ontouchmove=function(n){n.preventDefault()}}function scrollToElementBasedOnID(n){n=document.getElementById(n);n&&n.scrollIntoView({behavior:"smooth",block:"start"})}function replacePlaceholdersInText(n,t){n&&(t=getAndReplacePlaceholders(n.innerHTML,t),n.innerHTML=t)}function getAndReplacePlaceholders(n,t){var i=n;return t&&t.forEach(function(n){i=i.replace(n.placeholderRegex,n.value)}),i}function pdrOdiQuery(n,t){postAjaxJson("/Odi/ReaderWriter",{DataType:"json",ReadWrites:n},function(n){null!==t&&t(n)})}function getMediaItems(n,t){pdrOdiQuery([{Name:"sitecore.getmediaitems",Parameters:{DatabaseName:"web",Query:n}}],t)}function imageFallbackOnError(n){this.onerror=null;this.src=n}function strictParseInt(n){return/^[-+]?(\d+|Infinity)$/.test(n)?Number(n):NaN}function setBackground(n,t){if(n=n.currentSrc||n.src)return n='url("'+(n=n.replace(/^.*\/\/[^\/]+:?[0-9]?/i,""))+'")',t.style.backgroundImage!==n&&(t.style.backgroundImage=n),t.classList.add("bgfill-active"),!0}function checkResize(){window.clearTimeout(void 0);window.setTimeout(function(){bgfill()},1e3/60)}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var i=0;i<this.length;i++)n.call(t,this[i],i,this)});Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(n,t){var u,i,f,e,t,r;if(null===this)throw new TypeError('"this" is null or not defined');if(u=Object(this),i=u.length>>>0,0==i)return!1;for(t=0|t,r=Math.max(0<=t?t:i-Math.abs(t),0);r<i;){if((f=u[r])===(e=n)||"number"==typeof f&&"number"==typeof e&&isNaN(f)&&isNaN(e))return!0;r++}return!1}}),function(){var t,i,n=window.String.prototype;(t="trimStart")in(n=n)&&n[t]||(i=/^\s+/,n[t]=n.trimLeft||function(){return this.replace(i,"")})}();String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(n,t){return!((t="number"!=typeof t?0:t)+n.length>this.length)&&-1!==this.indexOf(n,t)}});window.URLSearchParams||(window.URLSearchParams=function(n){var t=this;t.searchString=n;t.get=function(n){return n?(n=new RegExp("[?&]"+n+"=([^&#]*)").exec(t.searchString),null==n?null:decodeURI(n[1])||0):null}});String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(n,t){return this.substring(t=!t||t<0?0:+t,t+n.length)===n}});this.Element&&function(n){n.matches=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.msMatchesSelector||function(n){for(var t=(this.parentNode||this.document).querySelectorAll(n),i=-1;t[++i]&&t[i]!==this;);return!!t[i]}}(Element.prototype);this.Element&&function(n){n.closest=n.closest||function(n){for(var t=this;t.matches&&!t.matches(n);)t=t.parentNode;return t.matches?t:null}}(Element.prototype);window.URLSearchParams||(window.URLSearchParams=function(n){var t=this;t.searchString=n;t.get=function(n){return n?(n=new RegExp("[?&]"+n+"=([^&#]*)").exec(t.searchString),null==n?null:decodeURI(n[1])||0):null}});[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(n){n.hasOwnProperty("remove")||Object.defineProperty(n,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})});Array.from||(Array.from=function(){function n(n){return"function"==typeof n||"[object Function]"===i.call(n)}function t(n){return n=function(n){return n=Number(n),isNaN(n)?0:0!==n&&isFinite(n)?(0<n?1:-1)*Math.floor(Math.abs(n)):n}(n),Math.min(Math.max(n,0),r)}var i=Object.prototype.toString,r=Math.pow(2,53)-1;return function(i){var h=Object(i),o,r;if(null==i)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(r=1<arguments.length?arguments[1]:void 0,void 0!==r){if(!n(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(o=arguments[2])}for(var f,e=t(h.length),s=n(this)?Object(new this(e)):new Array(e),u=0;u<e;)f=h[u],s[u]=r?void 0===o?r(f,u):r.call(o,f,u):f,u+=1;return s.length=e,s}}()),function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?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)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function tt(n){return null!=n&&n===n.window}function ur(n,t,i){var r,e,f=(i=i||u).createElement("script");if(f.text=n,t)for(r in uf)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&f.setAttribute(r,e);i.head.appendChild(f).parentNode.removeChild(f)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?bt[ir.call(n)]||"object":typeof n}function si(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!f(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function rt(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u}function fr(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}function a(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function li(n,t,r){return f(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}):"string"!=typeof t?i.grep(n,function(n){return-1<wt.call(t,n)!==r}):i.filter(t,n,r)}function or(n,t){for(;(n=n[t])&&1!==n.nodeType;);return n}function ut(n){return n}function dt(n){throw n;}function sr(n,t,i,r){var u;try{n&&f(u=n.promise)?u.call(n).done(t).fail(i):n&&f(u=n.then)?u.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function ni(){u.removeEventListener("DOMContentLoaded",ni);n.removeEventListener("load",ni);i.ready()}function cf(n,t){return t.toUpperCase()}function w(n){return n.replace(sf,"ms-").replace(hf,cf)}function lt(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function at(){this.expando=i.expando+at.uid++}function cr(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(af,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:lf.test(r)?JSON.parse(r):r)}catch(n){}s.set(n,t,i)}else i=void 0;return i}function lr(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&ft(n)&&"none"===i.css(n,"display")}function ar(n,t){for(var c,f,o,e,h,s=[],u=0,l=n.length;u<l;u++)(f=n[u]).style&&(c=f.style.display,t?("none"===c&&(s[u]=r.get(f,"display")||null,s[u]||(f.style.display="")),""===f.style.display&&lr(f)&&(s[u]=(h=e=void 0,e=(o=f).ownerDocument,h=o.nodeName,(o=ai[h])||(e=e.body.appendChild(e.createElement(h)),o=i.css(e,"display"),e.parentNode.removeChild(e),ai[h]=o="none"===o?"block":o)))):"none"!==c&&(s[u]="none",r.set(f,"display",c)));for(u=0;u<l;u++)null!=s[u]&&(n[u].style.display=s[u]);return n}function h(n,t){var r=void 0!==n.getElementsByTagName?n.getElementsByTagName(t||"*"):void 0!==n.querySelectorAll?n.querySelectorAll(t||"*"):[];return void 0===t||t&&a(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 wr(n,t,r,u,f){for(var e,o,s,p,v,l=t.createDocumentFragment(),y=[],a=0,w=n.length;a<w;a++)if((e=n[a])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(pr.test(e)){for(o=o||l.appendChild(t.createElement("div")),s=(vr.exec(e)||["",""])[1].toLowerCase(),s=c[s]||c._default,o.innerHTML=s[1]+i.htmlPrefilter(e)+s[2],v=s[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=l.firstChild).textContent=""}else y.push(t.createTextNode(e));for(l.textContent="",a=0;e=y[a++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(p=ft(e),o=h(l.appendChild(e),"script"),p&&vi(o),r)for(v=0;e=o[v++];)yr.test(e.type||"")&&r.push(e);return l}function et(){return!0}function ot(){return!1}function yf(n,t){return n===function(){try{return u.activeElement}catch(n){}}()==("focus"===t)}function pi(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)pi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=ot;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function ri(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=b.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e&&e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,et)}function br(n,t){return a(n,"table")&&a(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function kf(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function df(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function kr(n,t){var u,o,f,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,o=e[f].length;u<o;u++)i.event.add(t,f,e[f][u]);s.hasData(n)&&(n=s.access(n),n=i.extend({},n),s.set(t,n))}}function st(n,t,u,o){t=tr(t);var a,b,l,v,s,y,c=0,p=n.length,d=p-1,w=t[0],k=f(w);if(k||1<p&&"string"==typeof w&&!e.checkClone&&wf.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));st(r,t,u,o)});if(p&&(b=(a=wr(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(l=i.map(h(a,"script"),kf)).length;c<p;c++)s=a,c!==d&&(s=i.clone(s,!0,!0),v&&i.merge(l,h(s,"script"))),u.call(n[c],s,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,df),c=0;c<v;c++)s=l[c],yr.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(y,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?i._evalUrl&&!s.noModule&&i._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},y):ur(s.textContent.replace(bf,""),s,y))}return n}function dr(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(h(u)),u.parentNode&&(r&&ft(u)&&vi(h(u,"script")),u.parentNode.removeChild(u));return n}function gr(n,t,i){var r,u={};for(r in t)u[r]=n.style[r],n.style[r]=t[r];for(r in i=i.call(n),t)n.style[r]=u[r];return i}function yt(){var t;v&&(ui.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",v.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",g.appendChild(ui).appendChild(v),t=n.getComputedStyle(v),nu="1%"!==t.top,uu=12===ei(t.marginLeft),v.style.right="60%",ru=36===ei(t.right),tu=36===ei(t.width),v.style.position="absolute",iu=12===ei(v.offsetWidth/3),g.removeChild(ui),v=null)}function ei(n){return Math.round(parseFloat(n))}function pt(n,t,r){var o,f,u=n.style;return(r=r||fi(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||ft(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&bi.test(f)&&gf.test(t)&&(o=u.width,n=u.minWidth,t=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=n,u.maxWidth=t)),void 0!==f?f+"":f}function fu(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function hu(n){var t=i.cssProps[n]||su[n];return t||(n in ou?n:su[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=eu.length;t--;)if((n=eu[t]+i)in ou)return n}(n)||n)}function au(n,t,i){var r=ii.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function ki(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+d[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+d[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+d[o]+"Width",!0,f))):(s+=i.css(n,"padding"+d[o],!0,f),"padding"!==r?s+=i.css(n,"border"+d[o]+"Width",!0,f):h+=i.css(n,"border"+d[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function vu(n,t,r){var f=fi(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=pt(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(bi.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&a(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+ki(n,t,r||(o?"border":"content"),s,f,u)+"px"}function ct(n){return(n.match(k)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function di(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(k)||[]}function ku(n){n.stopPropagation()}var y=[],nr=Object.getPrototypeOf,b=y.slice,tr=y.flat?function(n){return y.flat.call(n)}:function(n){return y.concat.apply([],n)},oi=y.push,wt=y.indexOf,bt={},ir=bt.toString,kt=bt.hasOwnProperty,rr=kt.toString,rf=rr.call(Object),e={},f=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType&&"function"!=typeof n.item},u=n.document,uf={type:!0,src:!0,nonce:!0,noModule:!0},o="3.6.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector",i=function(n,t){return new i.fn.init(n,t)},l,hi,ci,er,k,hr,gt,ai,c,pr,yi,yu,ht,pu,wu,bu,gi,gu,nf,tf;i.fn=i.prototype={jquery:o,constructor:i,length:0,toArray:function(){return b.call(this)},get:function(n){return null==n?b.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){return n=i.merge(this.constructor(),n),n.prevObject=this,n},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(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var t=this.length,n=+n+(n<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:oi,sort:y.sort,splice:y.splice};i.extend=i.fn.extend=function(){var s,u,t,o,e,n=arguments[0]||{},r=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||f(n)||(n={}),r===c&&(n=this,r--);r<c;r++)if(null!=(s=arguments[r]))for(u in s)t=s[u],"__proto__"!==u&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[u],e=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[u]=i.extend(h,e,t)):void 0!==t&&(n[u]=t));return n};i.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){return!(!n||"[object Object]"!==ir.call(n))&&(!(n=nr(n))||"function"==typeof(n=kt.call(n,"constructor")&&n.constructor)&&rr.call(n)===rf)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n,t,i){ur(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(si(n))for(r=n.length;i<r&&!1!==t.call(n[i],i,n[i]);i++);else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},makeArray:function(n,t){return t=t||[],null!=n&&(si(Object(n))?i.merge(t,"string"==typeof n?[n]:n):oi.call(t,n)),t},inArray:function(n,t,i){return null==t?-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=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!=e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(si(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return tr(f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=y[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){bt["[object "+t+"]"]=t.toLowerCase()});l=function(n){function v(n,t){return n="0x"+n.slice(1)-65536,t||(n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320))}function ei(){b()}function u(n,t,r,u){var y,c,l,p,w,s,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&(b(t),t=t||i,h)){if(11!==a&&(p=lr.exec(n)))if(s=p[1]){if(9===a){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(p[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=p[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(s=n,v=t,1===a&&(fr.test(n)||yi.test(n))){for((v=ti.test(n)&&ri(t.parentNode)||t)===t&&f.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=(w=ft(n)).length;y--;)w[y]=(l?"#"+l:":scope")+" "+pt(w[y]);s=w.join(",")}try{return k.apply(r,v.querySelectorAll(s)),r}catch(t){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){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(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function ki(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&ar(t)===n:t.disabled===n:"label"in t&&t.disabled===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&&void 0!==n.getElementsByTagName&&n}function di(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,s=gi++;return t.first?function(t,i,u){for(;t=t[r];)if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var l,c,a=[y,s];if(h){for(;t=t[r];)if((1===t.nodeType||o)&&n(t,i,h))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(l=(c=t[e]||(t[e]={}))[t.uniqueID]||(c[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===y&&c[1]===s)return a[2]=c[2];if((l[f]=a)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;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,f,o){return r&&!r[e]&&(r=fi(r)),f&&!f[e]&&(f=fi(f,o)),l(function(e,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=e||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!e&&t?d:bt(d,w,n,s,h),c=i?f||(e?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(e){if(f||n){if(f){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);f(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=f?nt(e,v):w[l])&&(e[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),f?f(null,o,c,h):k.apply(o,c)})}function vr(n,r){function e(e,s,c,l,a){var v,nt,d,g=0,p="0",tt=e&&[],w=[],it=ht,rt=e||o&&t.find.TAG("*",a),ut=y+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s==i||s||a);p!==ft&&null!=(v=rt[p]);p++){if(o&&v){for(nt=0,s||v.ownerDocument==i||(b(v),c=!h);d=n[nt++];)if(d(v,s||i,c)){l.push(v);break}a&&(y=ut)}f&&((v=!d&&v)&&g--,e&&tt.push(v))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(e){if(0<g)for(;p--;)tt[p]||w[p]||(w[p]=tr.call(l));w=bt(w)}k.apply(l,w);a&&!e&&0<w.length&&1<g+r.length&&u.uniqueSort(l)}return a&&(y=ut,ht=it),tt}var f=0<r.length,o=0<n.length;return f?l(e):e}var rt,f,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+ +new Date,c=n.document,y=0,gi=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},nr={}.hasOwnProperty,g=[],tr=g.pop,ir=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",rr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ur=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp(r+"|>"),er=new RegExp(ni),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),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("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/HTML$/i,hr=/^(?:input|select|textarea|button)$/i,cr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,lr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,p=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},ar=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){ir.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in f=u.support={},oi=u.isXML=function(n){var t=n&&n.namespaceURI,n=n&&(n.ownerDocument||n).documentElement;return!sr.test(t||n&&n.nodeName||"HTML")},b=u.setDocument=function(n){var u,n=n?n.ownerDocument||n:c;return n!=i&&9===n.nodeType&&n.documentElement&&(s=(i=n).documentElement,h=!oi(i),c!=i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",ei,!1):u.attachEvent&&u.attachEvent("onunload",ei)),f.scope=a(function(n){return s.appendChild(n).appendChild(i.createElement("div")),void 0!==n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length}),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.filter.ID=function(n){var t=n.replace(p,v);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(void 0!==t.getElementById&&h)return n=t.getElementById(n),n?[n]:[]}):(t.filter.ID=function(n){var t=n.replace(p,v);return function(n){return n=void 0!==n.getAttributeNode&&n.getAttributeNode("id"),n&&n.value===t}},t.find.ID=function(n,t){if(void 0!==t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=f.getElementsByTagName?function(n,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"!==n)return u;for(;i=u[f++];)1===i.nodeType&&r.push(i);return r},t.find.CLASS=f.getElementsByClassName&&function(n,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){var t;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|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");(t=i.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),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+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&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("!=",ni)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),u=ot.test(s.compareDocumentPosition),et=u||ot.test(s.contains)?function(n,t){var i=9===n.nodeType?n.documentElement:n,t=t&&t.parentNode;return n===t||!(!t||1!==t.nodeType||!(i.contains?i.contains(t):n.compareDocumentPosition&&16&n.compareDocumentPosition(t)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},dt=u?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!f.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:4&r?-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)return n==i?-1:t==i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);for(;f[u]===e[u];)u++;return u?bi(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(b(n),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},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 u=t.attrHandle[r.toLowerCase()],u=u&&nr.call(t.attrHandle,r.toLowerCase())?u(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(pi,wi)},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(dt),ut){for(;r=n[i++];)r===n[i]&&(t=u.push(i));for(;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(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else for(;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(p,v),n[3]=(n[3]||n[4]||n[5]||"").replace(p,v),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):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(p,v).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("string"==typeof n.className&&n.className||void 0!==n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){return r=u.attr(r,n),null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&-1<r.indexOf(i):"$="===t?i&&r.slice(-i.length)===i:"~="===t?-1<(" "+r.replace(rr," ")+" ").indexOf(i):"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,v,c,a,w,b=s!=o?"nextSibling":"previousSibling",k=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(k){if(s){for(;b;){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(v=(c=k)[e]||(c[e]={}))[c.uniqueID]||(v[c.uniqueID]={}))[n]||[])[0]===y&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[y,a,l];break}}else if(!1===(l=g?a=(p=(d=(v=(c=t)[e]||(c[e]={}))[c.uniqueID]||(v[c.uniqueID]={}))[n]||[])[0]===y&&p[1]:l))for(;(c=++a&&c&&c[b]||(l=a=0)||w.pop())&&((f?c.nodeName.toLowerCase()!==nt:1!==c.nodeType)||!++l||(g&&((d=(v=c[e]||(c[e]={}))[c.uniqueID]||(v[c.uniqueID]={}))[n]=[y,l]),c!==t)););return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):1<r.length?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(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 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(p,v),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(p,v).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);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:ki(!1),disabled:ki(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},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 cr.test(n.nodeName)},input:function(n){return hr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(n=n.getAttribute("type"))||"text"===n.toLowerCase())},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:t<i?t:i;0<=--r;)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})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=function(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=function(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}(rt);return di.prototype=t.filters=t.pseudos,t.setFilters=new di,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;){for(o in e&&!(f=ur.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=yi.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),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)},kt=u.compile=function(n,i){var u,f=[],o=[],r=li[n+" "];if(!r){for(u=(i=i||ft(n)).length;u--;)((r=function n(i){for(var s,f,u,h=i.length,c=t.relative[i[0].type],l=c||t.relative[" "],r=c?1:0,a=wt(function(n){return n===s},l,!0),v=wt(function(n){return-1<nt(s,n)},l,!0),o=[function(n,t,i){return i=!c&&(i||t!==ht)||((s=t).nodeType?a:v)(n,t,i),s=null,i}];r<h;r++)if(f=t.relative[i[r].type])o=[wt(ui(o),f)];else{if((f=t.filter[i[r].type].apply(null,i[r].matches))[e]){for(u=++r;u<h&&!t.relative[i[u].type];u++);return fi(1<r&&ui(o),1<r&&pt(i.slice(0,r-1).concat({value:" "===i[r-2].type?"*":""})).replace(at,"$1"),f,r<u&&n(i.slice(r,u)),u<h&&n(i=i.slice(u)),u<h&&pt(i))}o.push(f)}return ui(o)}(i[u]))[e]?f:o).push(r);(r=li(n,vr(o,f))).selector=n}return r},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(p,v),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--&&(e=f[o],!t.relative[l=e.type]);)if((a=t.find[l])&&(u=a(e.matches[0].replace(p,v),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(dt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),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,"type"===t.toLowerCase()?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&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){if(!i)return!0===n[t]?t.toLowerCase():(t=n.getAttributeNode(t))&&t.specified?t.value:null}),u}(n);i.find=l;i.expr=l.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=l.uniqueSort;i.text=l.getText;i.isXMLDoc=l.isXML;i.contains=l.contains;i.escapeSelector=l.escape;hi=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+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)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 1<u?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,"string"==typeof n&&hi.test(n)?i(n):n||[],!1).length}});er=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){if(!n)return this;if(r=r||ff,"string"!=typeof n)return n.nodeType?(this[0]=n,this.length=1,this):f(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this);if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:er.exec(n))||!e[1]&&t)return(!t||t.jquery?t||r:this.constructor(t)).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),ci.test(e[1])&&i.isPlainObject(t))for(var e in t)f(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(n=u.getElementById(e[2]))&&(this[0]=n,this.length=1),this}).prototype=i.fn;var ff=i(u),ef=/^(?:parents|prev(?:Until|All))/,of={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="string"!=typeof n&&i(n);if(!hi.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?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(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){return n=n.parentNode,n&&11!==n.nodeType?n:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return or(n,"nextSibling")},prev:function(n){return or(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 fr((n.parentNode||{}).firstChild,n)},children:function(n){return fr(n.firstChild)},contents:function(n){return null!=n.contentDocument&&nr(n.contentDocument)?n.contentDocument:(a(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(u="Until"!==n.slice(-5)?r:u)&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(of[n]||i.uniqueSort(f),ef.test(n)&&f.reverse()),this.pushStack(f)}});k=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){function a(){for(u=u||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;u&&(t=r?[]:"")}var l,h;n="string"==typeof n?(l=n,h={},i.each(l.match(k)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,u,t=[],s=[],e=-1,c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function u(r){i.each(r,function(i,r){f(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&u(r)})}(arguments),r&&!o&&a()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t=t&&[],this},disable:function(){return u=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return u=s=[],r||o||(t=r=""),this},locked:function(){return!!u},fireWith:function(n,t){return u||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||a()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};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"]],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(u,function(i,u){var e=f(n[u[4]])&&n[u[4]];r[u[1]](function(){var n=e&&e.apply(this,arguments);n&&f(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[u[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,u,e){return function(){function l(){var n,i;if(!(t<o)){if((n=u.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;f(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))):(u!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}}var h=this,c=arguments,a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(u!==dt&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){u[0][3].add(s(0,n,f(e)?e:ut,n.notifyWith));u[1][3].add(s(0,n,f(t)?t:ut));u[2][3].add(s(0,n,f(r)?r:dt))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(u,function(n,t){var i=t[2],f=t[5];e[t[1]]=i.add;f&&i.add(function(){o=f},u[3-n][2].disable,u[3-n][3].disable,u[0][2].lock,u[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){function o(n){return function(t){s[n]=this;u[n]=1<arguments.length?b.call(arguments):t;--e||r.resolveWith(s,u)}}var e=arguments.length,t=e,s=Array(t),u=b.call(arguments),r=i.Deferred();if(e<=1&&(sr(n,r.done(o(t)).resolve,r.reject,!e),"pending"===r.state()||f(u[t]&&u[t].then)))return r.then();for(;t--;)sr(u[t],o(t),r.reject);return r.promise()}});hr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&hr.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){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||gt.resolveWith(u,[i])}});i.ready.then=gt.then;"complete"===u.readyState||"loading"!==u.readyState&&!u.documentElement.doScroll?n.setTimeout(i.ready):(u.addEventListener("DOMContentLoaded",ni),n.addEventListener("load",ni));var p=function(n,t,r,u,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r))for(h in e=!0,r)p(n,t,h,r[h],!0,o,s);else if(void 0!==u&&(e=!0,f(u)||(s=!0),t=c?s?(t.call(n,u),null):(c=t,function(n,t,r){return c.call(i(n),r)}):t))for(;h<l;h++)t(n[h],r,s?u:u.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},sf=/^-ms-/,hf=/-([a-z])/g;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("string"==typeof t)u[w(t)]=i;else for(r in t)u[w(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][w(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(w):(t=w(t))in r?[t]:t.match(k)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){return n=n[this.expando],void 0!==n&&!i.isEmptyObject(n)}};var r=new at,s=new at,lf=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,af=/[A-Z]/g;i.extend({hasData:function(n){return s.hasData(n)||r.hasData(n)},data:function(n,t,i){return s.access(n,t,i)},removeData:function(n,t){s.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],o=i&&i.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){s.set(this,n)}):p(this,function(t){var r;return i&&void 0===t?void 0!==(r=s.get(i,n))||void 0!==(r=cr(i,n))?r:void 0:void this.each(function(){s.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(e=s.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=o.length;f--;)o[f]&&0===(u=o[f].name).indexOf("data-")&&(u=w(u.slice(5)),cr(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e},removeData:function(n){return this.each(function(){s.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return f=r.get(n,t=(t||"fx")+"queue"),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);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},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"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&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){function e(){--o||s.resolveWith(f,[f])}var u,o=1,s=i.Deferred(),f=this,h=this.length;for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";h--;)(u=r.get(f[h],n+"queueHooks"))&&u.empty&&(o++,u.empty.add(e));return e(),s.promise(t)}});var ti=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ii=new RegExp("^(?:([+-])=|)("+ti+")([a-z%]*)$","i"),d=["Top","Right","Bottom","Left"],g=u.documentElement,ft=function(n){return i.contains(n.ownerDocument,n)},vf={composed:!0};g.getRootNode&&(ft=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(vf)===n.ownerDocument});ai={};i.fn.extend({show:function(){return ar(this,!0)},hide:function(){return ar(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){lr(this)?i(this).show():i(this).hide()})}});var vt=/^(?:checkbox|radio)$/i,vr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yr=/^$|^module$|\/(?:java|ecma)script/i;o=u.createDocumentFragment().appendChild(u.createElement("div"));(l=u.createElement("input")).setAttribute("type","radio");l.setAttribute("checked","checked");l.setAttribute("name","t");o.appendChild(l);e.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked;o.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!o.cloneNode(!0).lastChild.defaultValue;o.innerHTML="<option><\/option>";e.option=!!o.lastChild;c={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.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;e.option||(c.optgroup=c.option=[1,"<select multiple='multiple'>","<\/select>"]);pr=/<|&#?\w+;/;yi=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var y,l,a,p,s,h,o,w,c,v=r.get(n);if(lt(n))for(u.handler&&(u=(y=u).handler,e=y.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(a=v.events)||(a=v.events=Object.create(null)),(l=v.handle)||(l=v.handle=function(t){if(void 0!==i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),p=(t=(t||"").match(k)||[""]).length;p--;)o=c=(s=yi.exec(t[p])||[])[1],w=(s[2]||"").split(".").sort(),o&&(h=i.event.special[o]||{},o=(e?h.delegateType:h.bindType)||o,h=i.event.special[o]||{},s=i.extend({type:o,origType:c,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:w.join(".")},y),(c=a[o])||((c=a[o]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(n,f,w,l)||n.addEventListener&&n.addEventListener(o,l)),h.add&&(h.add.call(n,s),s.handler.guid||(s.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,s):c.push(s),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var v,b,c,a,y,s,h,l,o,w,d,p=r.hasData(n)&&r.get(n);if(p&&(a=p.events)){for(y=(t=(t||"").match(k)||[""]).length;y--;)if(o=d=(c=yi.exec(t[y])||[])[1],w=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},l=a[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=v=l.length;v--;)s=l[v],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(l.splice(v,1),s.selector&&l.delegateCount--,h.remove&&h.remove.call(n,s));b&&!l.length&&(h.teardown&&!1!==h.teardown.call(n,w,p.handle)||i.removeEvent(n,o,p.handle),delete a[o])}else for(o in a)i.event.remove(n,o+t[y],u,f,!0);i.isEmptyObject(a)&&r.remove(n,"handle events")}},dispatch:function(n){var f,s,e,u,h,o=new Array(arguments.length),t=i.event.fix(n),c=(r.get(this,"events")||Object.create(null))[t.type]||[],n=i.event.special[t.type]||{};for(o[0]=t,f=1;f<arguments.length;f++)o[f]=arguments[f];if(t.delegateTarget=this,!n.preDispatch||!1!==n.preDispatch.call(this,t)){for(h=i.event.handlers.call(this,t,c),f=0;(e=h[f++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,s=0;(u=e.handlers[s++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==u.namespace&&!t.rnamespace.test(u.namespace)||(t.handleObj=u,t.data=u.data,void 0!==(u=((i.event.special[u.origType]||{}).handle||u.handler).apply(e.elem,o))&&!1===(t.result=u)&&(t.preventDefault(),t.stopPropagation()));return n.postDispatch&&n.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:f(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},click:{setup:function(n){return n=this||n,vt.test(n.type)&&n.click&&a(n,"input")&&ri(n,"click",et),!1},trigger:function(n){return n=this||n,vt.test(n.type)&&n.click&&a(n,"input")&&ri(n,"click"),!0},_default:function(n){return n=n.target,vt.test(n.type)&&n.click&&a(n,"input")&&r.get(n,"click")||a(n,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&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||void 0===n.defaultPrevented&&!1===n.returnValue?et:ot,this.target=n.target&&3===n.target.nodeType?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:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=et;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=et;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=et;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,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return ri(this,n,yf),!1},trigger:function(){return ri(this,n),!0},_default:function(){return!0},delegateType:t}});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,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return pi(this,n,t,i,r)},one:function(n,t,i,r){return pi(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("object"!=typeof n)return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=ot),this.each(function(){i.event.remove(this,n,r,t)});for(f in n)this.off(f,t,n[f]);return this}});var pf=/<script|<style|<link/i,wf=/checked\s*(?:[^=]|=\s*.checked.)/i,bf=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,l,a,v,s=n.cloneNode(!0),y=ft(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=h(s),u=0,c=(o=h(n)).length;u<c;u++)l=o[u],a=f[u],v=void 0,"input"===(v=a.nodeName.toLowerCase())&&vt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||h(n),f=f||h(s),u=0,c=o.length;u<c;u++)kr(o[u],f[u]);else kr(n,s);return 0<(f=h(s,"script")).length&&vi(f,!y&&h(n,"script")),s},cleanData:function(n){for(var u,t,f,o=i.event.special,e=0;void 0!==(t=n[e]);e++)if(lt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)o[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[s.expando]&&(t[s.expando]=void 0)}}});i.fn.extend({detach:function(n){return dr(this,n,!0)},remove:function(n){return dr(this,n)},text:function(n){return p(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return st(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||br(this,n).appendChild(n)})},prepend:function(){return st(this,arguments,function(n){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=br(this,n)).insertBefore(n,t.firstChild)})},before:function(){return st(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return st(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(h(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?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(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!pf.test(n)&&!c[(vr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(h(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return st(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(h(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),oi.apply(f,u.get());return this.pushStack(f)}});var nu,tu,iu,ru,wi,uu,ui,v,bi=new RegExp("^("+ti+")(?!px)[a-z%]+$","i"),fi=function(t){var i=t.ownerDocument.defaultView;return(i=!i||!i.opener?n:i).getComputedStyle(t)},gf=new RegExp(d.join("|"),"i");ui=u.createElement("div");(v=u.createElement("div")).style&&(v.style.backgroundClip="content-box",v.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===v.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return yt(),tu},pixelBoxStyles:function(){return yt(),ru},pixelPosition:function(){return yt(),nu},reliableMarginLeft:function(){return yt(),uu},scrollboxSize:function(){return yt(),iu},reliableTrDimensions:function(){var r,i,t;return null==wi&&(r=u.createElement("table"),i=u.createElement("tr"),t=u.createElement("div"),r.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="border:1px solid",i.style.height="1px",t.style.height="9px",t.style.display="block",g.appendChild(r).appendChild(i).appendChild(t),t=n.getComputedStyle(i),wi=parseInt(t.height,10)+parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)===i.offsetHeight,g.removeChild(r)),wi}}));var eu=["Webkit","Moz","ms"],ou=u.createElement("div").style,su={};var ne=/^(none|table(?!-c[ea]).+)/,cu=/^--/,te={position:"absolute",visibility:"hidden",display:"block"},lu={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t)return n=pt(n,"opacity"),""===n?"1":n}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=w(t),l=cu.test(t),s=n.style;if(l||(t=hu(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=ii.exec(r))&&f[1]&&(r=function(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=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&ii.exec(i.css(n,t));if(f&&f[3]!==e){for(e=e||f[3],f=+(o/=2)||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;i.style(n,t,(f*=2)+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}(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e=w(t);return cu.test(t)||(t=hu(e)),"normal"===(f=void 0===(f=(e=i.cssHooks[t]||i.cssHooks[e])&&"get"in e?e.get(n,!0,r):f)?pt(n,t,u):f)&&t in lu&&(f=lu[t]),""===r||r?(t=parseFloat(f),!0===r||isFinite(t)?t||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!ne.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?vu(n,t,u):gr(n,te,function(){return vu(n,t,u)})},set:function(n,r,u){var o,f=fi(n),s=!e.scrollboxSize()&&"absolute"===f.position,h=(s||u)&&"border-box"===i.css(n,"boxSizing",!1,f),u=u?ki(n,t,u,h,f):0;return h&&s&&(u-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-ki(n,t,"border",!1,f)-.5)),u&&(o=ii.exec(r))&&"px"!==(o[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),au(0,r,u)}}});i.cssHooks.marginLeft=fu(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(pt(n,"marginLeft"))||n.getBoundingClientRect().left-gr(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="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+d[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=au)});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=fi(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,this.queue(r=r||"fx",function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};o=u.createElement("input");ti=u.createElement("select").appendChild(u.createElement("option"));o.type="checkbox";e.checkOn=""!==o.value;e.optSelected=ti.selected;(o=u.createElement("input")).value="t";o.type="radio";e.radioValue="t"===o.value;ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return void 0===n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?yu:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):!(u&&"get"in u&&null!==(f=u.get(n,t)))&&null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&a(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(k);if(r&&1===n.nodeType)for(;i=r[u++];)n.removeAttribute(i)}});yu={set:function(n,t,r){return!1===t?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=null!=r(n,t,i)?u:null,ht[u]=e),f}});pu=/^(?:input|select|textarea|button)$/i;wu=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,1<arguments.length)},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(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):pu.test(n.nodeName)||wu.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){return n=n.parentNode,n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(n){n=n.parentNode;n&&(n.selectedIndex,n.parentNode&&n.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,u,e,s,t,h=0;if(f(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=di(n)).length)for(;r=this[h++];)if(t=nt(r),u=1===r.nodeType&&" "+ct(t)+" "){for(s=0;e=o[s++];)u.indexOf(" "+e+" ")<0&&(u+=e+" ");t!==(t=ct(u))&&r.setAttribute("class",t)}return this},removeClass:function(n){var o,u,t,e,s,r,h=0;if(f(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=di(n)).length)for(;u=this[h++];)if(r=nt(u),t=1===u.nodeType&&" "+ct(r)+" "){for(s=0;e=o[s++];)for(;-1<t.indexOf(" "+e+" ");)t=t.replace(" "+e+" "," ");r!==(r=ct(t))&&u.setAttribute("class",r)}return this},toggleClass:function(n,t){var u=typeof n,e="string"==u||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):f(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,f,s;if(e)for(o=0,f=i(this),s=di(n);t=s[o++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else void 0!==n&&"boolean"!=u||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==n&&r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,i=0,r=" "+n+" ";t=this[i++];)if(1===t.nodeType&&-1<(" "+ct(nt(t))+" ").indexOf(r))return!0;return!1}});bu=/\r/g;i.fn.extend({val:function(n){var t,r,e,u=this[0];return arguments.length?(e=f(n),this.each(function(r){1===this.nodeType&&(null==(r=e?n.call(this,r,i(this).val()):n)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=i.map(r,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:"string"==typeof(r=u.value)?r.replace(bu,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:ct(i.text(n))}},select:{get:function(n){for(var t,e=n.options,r=n.selectedIndex,u="select-one"===n.type,o=u?null:[],s=u?r+1:e.length,f=r<0?s:u?r:0;f<s;f++)if(((t=e[f]).selected||f===r)&&!t.disabled&&(!t.parentNode.disabled||!a(t.parentNode,"optgroup"))){if(t=i(t).val(),u)return t;o.push(t)}return o},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;gi=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,e,o,s){var k,l,d,v,y,a,p,w=[o||u],h=kt.call(t,"type")?t.type:t,b=kt.call(t,"namespace")?t.namespace.split("."):[],c=p=l=o=o||u;if(3!==o.nodeType&&8!==o.nodeType&&!gi.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,gi.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||u)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&lt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!lt(o)||v&&f(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,ku),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,ku),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){n=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(n,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){function u(n){i.event.simulate(t,n.target,i.event.fix(n))}i.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||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.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return u=r&&r.getElementsByTagName("parsererror")[0],r&&!u||i.error("Invalid XML: "+(u?i.map(u.childNodes,function(n){return n.textContent}).join("\n"):t)),r};var ie=/\[\]$/,du=/\r?\n/g,re=/^(?:submit|button|image|reset|file)$/i,ue=/^(?:input|select|textarea|keygen)/i;return i.param=function(n,t){function r(n,t){t=f(t)?t():t;e[e.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==t?"":t)}var u,e=[];if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){r(this.name,this.value)});else for(u in n)!function r(n,t,u,f){if(Array.isArray(t))i.each(t,function(t,i){u||ie.test(n)?f(n,i):r(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,u,f)});else if(u||"object"!==it(t))f(n,t);else for(var e in t)r(n+"["+e+"]",t[e],u,f)}(u,n[u],t,r);return e.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")&&ue.test(this.nodeName)&&!re.test(n)&&(this.checked||!vt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(du,"\r\n")}}):{name:t.name,value:r.replace(du,"\r\n")}}).get()}}),i.fn.extend({wrapAll:function(n){return this[0]&&(f(n)&&(n=n.call(this[0])),n=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return f(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=f(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)},e.createHTMLDocument=((o=u.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===o.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((f=(t=u.implementation.createHTMLDocument("")).createElement("base")).href=u.location.href,t.head.appendChild(f)):t=u),f=!r&&[],(r=ci.exec(n))?[t.createElement(r[1])]:(r=wr([n],t,f),f&&f.length&&i(f).remove(),i.merge([],r.childNodes)));var f},i.offset={setOffset:function(n,t,r){var h,c,o,u,e=i.css(n,"position"),l=i(n),s={};"static"===e&&(n.style.position="relative");o=l.offset();h=i.css(n,"top");u=i.css(n,"left");u=("absolute"===e||"fixed"===e)&&-1<(h+u).indexOf("auto")?(c=(e=l.position()).top,e.left):(c=parseFloat(h)||0,parseFloat(u)||0);null!=(t=f(t)?t.call(n,r,i.extend({},o)):t).top&&(s.top=t.top-o.top+c);null!=t.left&&(s.left=t.left-o.left+u);"using"in t?t.using.call(n,s):l.css(s)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),t=t.ownerDocument.defaultView,{top:r.top+t.pageYOffset,left:r.left+t.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||g})}}),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;return tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u?f?f[t]:n[i]:void(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]=fu(e.pixelPosition,function(n,r){if(r)return r=pt(n,t),bi.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||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,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 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),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 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),gu=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var u,r;if("string"==typeof t&&(r=n[t],t=n,n=r),f(n))return u=b.call(arguments,2),(r=function(){return n.apply(t||this,u.concat(b.call(arguments)))}).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=a,i.isFunction=f,i.isWindow=tt,i.camelCase=w,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(gu,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),nf=n.jQuery,tf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=tf),t&&n.jQuery===i&&(n.jQuery=nf),i},void 0===t&&(n.jQuery=n.$=i),i}),function(n){"use strict";function t(t){n(t).on("click",i,this.close)}var i='[data-dismiss="alert"]',r;t.VERSION="3.4.1";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u="#"===(u=u||(u=f.attr("href"))&&u.replace(/.*(?=#[^\s]*$)/,""))?[]:u;r=n(document).find(u);i&&i.preventDefault();(r=r.length?r:f.closest(".alert")).trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery),function(n){"use strict";function t(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}function r(t){var r=n(this),u=(u=r.attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,""),f=r.attr("data-target")||u;(u=n(document).find(f)).hasClass("carousel")&&(f=n.extend({},u.data(),r.data()),(r=r.attr("data-slide-to"))&&(f.interval=!1),i.call(u,f),r&&u.data("bs.carousel").to(r),t.preventDefault())}t.VERSION="3.4.1";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t);return("prev"==n&&0===i||"next"==n&&i==this.$items.length-1)&&!this.options.wrap?t:(n=(i+("prev"==n?-1:1))%this.$items.length,this.$items.eq(n))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1||n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(t<n?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),h=this.interval,f="next"==i?"left":"right",c=this,o,r,s;return u.hasClass("active")?this.sliding=!1:(o=u[0],r=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(r),!r.isDefaultPrevented())?(this.sliding=!0,h&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(r=n(this.$indicators.children()[this.getItemIndex(u)]))&&r.addClass("active")),s=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),"object"==typeof u&&u.length&&u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));c.sliding=!1;setTimeout(function(){c.$element.trigger(s)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(s)),h&&this.cycle(),this):void 0)};var u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),function(n){"use strict";function r(t){var i=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(document).find(i)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.4.1";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"};t.prototype.show=function(){var r,e,f,u;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(u=r.data("bs.collapse"))&&u.transitioning)&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),u||r.data("bs.collapse",null)),f=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[f](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,u=function(){this.$element.removeClass("collapsing").addClass("collapse in")[f]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return u.call(this);r=n.camelCase(["scroll",f].join("-"));this.$element.one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[f](this.$element[0][r])}};t.prototype.hide=function(){var i,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(r=this.dimension(),this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,i=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return i.call(this);this.$element[r](0).one("bsTransitionEnd",n.proxy(i,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){i=n(i);this.addAriaAndCollapsedClass(r(i),i)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();t=r(u);u=t.data("bs.collapse")?"toggle":u.data();i.call(t,u)})}(jQuery),function(n){"use strict";function t(t){n(t).on("click.bs.dropdown",this.toggle)}function r(t){var i=t.attr("data-target"),i="#"!==(i=i||(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""))?n(document).find(i):null;return i&&i.length?i:t.parent()}function u(t){t&&3===t.which||(n(".dropdown-backdrop").remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f)))))}))}var i='[data-toggle="dropdown"]',f;t.VERSION="3.4.1";t.prototype.toggle=function(t){var e=n(this),i,f;if(!e.is(".disabled, :disabled")){if(i=r(e),f=i.hasClass("open"),u(),!f){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),f={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",f)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",f))}return!1}};t.prototype.keydown=function(t){var f,u,e;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(f=n(this),t.preventDefault(),t.stopPropagation(),!f.is(".disabled, :disabled"))){if(u=r(f),e=u.hasClass("open"),!e&&27!=t.which||e&&27==t.which)return 27==t.which&&u.find(i).trigger("focus"),f.trigger("click");f=u.find(".dropdown-menu li:not(.disabled):visible a");f.length&&(u=f.index(t.target),38==t.which&&0<u&&u--,40==t.which&&u<f.length-1&&u++,f.eq(u=~u?u:0).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery),function(n){"use strict";function t(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom";this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}t.VERSION="3.4.1";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var r,f=this,u=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(r=n.support.transition&&u,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+u).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i&&(r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),r=function(){f.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):r()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var t,n=window.innerWidth;n||(n=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var i=parseInt(this.$body.css("padding-right")||0,10),t;this.originalBodyPad=document.body.style.paddingRight||"";t=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",i+t),n(this.fixedContent).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+"px")}))};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad);n(this.fixedContent).each(function(t,i){var r=n(i).data("padding-right");n(i).removeData("padding-right");i.style.paddingRight=r||""})};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};var r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),u=r.attr("href"),e=r.attr("data-target")||u&&u.replace(/.*(?=#[^\s]+$)/,""),f=n(document).find(e),u=f.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(u)&&u},f.data(),r.data());r.is("a")&&t.preventDefault();f.one("show.bs.modal",function(n){n.isDefaultPrevented()||f.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(f,u,this)})}(jQuery),function(n){"use strict";function t(t){this.element=n(t)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}function r(t){t.preventDefault();i.call(n(this),"show")}t.VERSION="3.4.1";t.TRANSITION_DURATION=150;t.prototype.show=function(){var r,u,f,t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=(i=t.data("target"))||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"");t.parent("li").hasClass("active")||(r=e.find(".active:last a"),u=n.Event("hide.bs.tab",{relatedTarget:t[0]}),f=n.Event("show.bs.tab",{relatedTarget:r[0]}),r.trigger(u),t.trigger(f),f.isDefaultPrevented()||u.isDefaultPrevented()||(i=n(document).find(i),this.activate(t.closest("li"),e),this.activate(i,i.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})))};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};var u=n.fn.tab;n.fn.tab=i;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(n){"use strict";n.fn.emulateTransitionEnd=function(t){var i=!1,r=this;n(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||n(r).trigger(n.support.transition.end)},t),this};n(function(){n.support.transition=function(){var n,i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).flatpickr=t()}(this,function(){"use strict";function d(n,t,i){var r;return void 0===i&&(i=!1),function(){var u=this,f=arguments;null!==r&&clearTimeout(r);r=window.setTimeout(function(){r=null;i||n.apply(u,f)},t);i&&!r&&n.apply(u,f)}}function r(n,t,i){if(!0===i)return n.classList.add(t);n.classList.remove(t)}function n(n,t,i){return n=window.document.createElement(n),i=i||"",n.className=t=t||"",void 0!==i&&(n.textContent=i),n}function l(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function a(t,i){var u=n("div","numInputWrapper"),r=n("input","numInput "+t),e=n("span","arrowUp"),t=n("span","arrowDown"),f;if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==i)for(f in i)r.setAttribute(f,i[f]);return u.appendChild(r),u.appendChild(e),u.appendChild(t),u}function p(){}function f(n,t,i){return!1!==(i=void 0===i?!0:i)?new Date(n.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):n.getTime()-t.getTime()}function ut(o,h){function hi(n){return n.bind(c)}function ci(){var n=c.config;!1===n.weekNumbers&&1===n.showMonths||!0!==n.noCalendar&&window.requestAnimationFrame(function(){var t;void 0!==c.calendarContainer&&(c.calendarContainer.style.visibility="hidden",c.calendarContainer.style.display="block");void 0!==c.daysContainer&&(t=(c.days.offsetWidth+1)*n.showMonths,c.daysContainer.style.width=t+"px",c.calendarContainer.style.width=t+(void 0!==c.weekWrapper?c.weekWrapper.offsetWidth:0)+"px",c.calendarContainer.style.removeProperty("visibility"),c.calendarContainer.style.removeProperty("display"))})}function ot(n){0===c.selectedDates.length&&bi();void 0!==n&&"blur"!==n.type&&function(n){var t,r;n.preventDefault();t="keydown"===n.type;r=n.target;void 0!==c.amPM&&n.target===c.amPM&&(c.amPM.textContent=c.l10n.amPM[u(c.amPM.textContent===c.l10n.amPM[0])]);var h=parseFloat(r.getAttribute("min")),e=parseFloat(r.getAttribute("max")),o=parseFloat(r.getAttribute("step")),s=parseInt(r.value,10),f=n.delta||(t?38===n.which?1:-1:0),t=s+o*f;void 0!==r.value&&2===r.value.length&&(n=r===c.hourElement,f=r===c.minuteElement,t<h?(t=e+t+u(!n)+(u(n)&&u(!c.amPM)),f&&dt(void 0,-1,c.hourElement)):e<t&&(t=r===c.hourElement?t-e-u(!c.amPM):h,f&&dt(void 0,1,c.hourElement)),c.amPM&&n&&(1===o?t+s===23:Math.abs(t-s)>o)&&(c.amPM.textContent=c.l10n.amPM[u(c.amPM.textContent===c.l10n.amPM[0])]),r.value=i(t))}(n);n=c._input.value;ct();ut();c._input.value!==n&&c._debouncedChange()}function ct(){var t,e,i,r,n;void 0!==c.hourElement&&void 0!==c.minuteElement&&(r=(parseInt(c.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(c.minuteElement.value,10)||0)%60,e=void 0!==c.secondElement?(parseInt(c.secondElement.value,10)||0)%60:0,void 0!==c.amPM&&(n=r,i=c.amPM.textContent,r=n%12+12*u(i===c.l10n.amPM[1])),n=void 0!==c.config.minTime||c.config.minDate&&c.minDateHasTime&&c.latestSelectedDateObj&&0===f(c.latestSelectedDateObj,c.config.minDate,!0),(void 0!==c.config.maxTime||c.config.maxDate&&c.maxDateHasTime&&c.latestSelectedDateObj&&0===f(c.latestSelectedDateObj,c.config.maxDate,!0))&&(i=void 0!==c.config.maxTime?c.config.maxTime:c.config.maxDate,(t=(r=Math.min(r,i.getHours()))===i.getHours()?Math.min(t,i.getMinutes()):t)===i.getMinutes()&&(e=Math.min(e,i.getSeconds()))),n&&(n=void 0!==c.config.minTime?c.config.minTime:c.config.minDate,(t=(r=Math.max(r,n.getHours()))===n.getHours()?Math.max(t,n.getMinutes()):t)===n.getMinutes()&&(e=Math.max(e,n.getSeconds()))),bt(r,t,e))}function lt(n){n=n||c.latestSelectedDateObj;n&&bt(n.getHours(),n.getMinutes(),n.getSeconds())}function li(){var n,r,t=c.config.defaultHour,i=c.config.defaultMinute,u=c.config.defaultSeconds;void 0!==c.config.minDate&&(n=c.config.minDate.getHours(),r=c.config.minDate.getMinutes(),(t=Math.max(t,n))===n&&(i=Math.max(r,i)),t===n&&i===r&&(u=c.config.minDate.getSeconds()));void 0!==c.config.maxDate&&(n=c.config.maxDate.getHours(),r=c.config.maxDate.getMinutes(),(t=Math.min(t,n))===n&&(i=Math.min(r,i)),t===n&&i===r&&(u=c.config.maxDate.getSeconds()));bt(t,i,u)}function bt(n,t,r){void 0!==c.latestSelectedDateObj&&c.latestSelectedDateObj.setHours(n%24,t,r||0,0);c.hourElement&&c.minuteElement&&!c.isMobile&&(c.hourElement.value=i(c.config.time_24hr?n:(12+n)%12+12*u(n%12==0)),c.minuteElement.value=i(t),void 0!==c.amPM&&(c.amPM.textContent=c.l10n.amPM[u(12<=n)]),void 0!==c.secondElement&&(c.secondElement.value=i(r)))}function ur(n){var t=parseInt(n.target.value)+(n.delta||0);(1<t/1e3||"Enter"===n.key&&!/[^\d]/.test(t.toString()))&&ri(t)}function p(n,t,i,r){return t instanceof Array?t.forEach(function(t){return p(n,t,i,r)}):n instanceof Array?n.forEach(function(n){return p(n,t,i,r)}):(n.addEventListener(t,i,r),void c._handlers.push({element:n,event:t,handler:i,options:r}))}function et(n){return function(t){1===t.which&&n(t)}}function kt(){tt("onChange")}function ai(n){n=void 0!==n?c.parseDate(n):c.latestSelectedDateObj||(c.config.minDate&&c.config.minDate>c.now?c.config.minDate:c.config.maxDate&&c.config.maxDate<c.now?c.config.maxDate:c.now);try{void 0!==n&&(c.currentYear=n.getFullYear(),c.currentMonth=n.getMonth())}catch(t){t.message="Invalid date supplied: "+n;c.config.errorHandler(t)}c.redraw()}function fr(n){~n.target.className.indexOf("arrow")&&dt(n,n.target.classList.contains("arrowUp")?1:-1)}function dt(n,t,i){n=n&&n.target;i=i||n&&n.parentNode&&n.parentNode.firstChild;n=oi("increment");n.delta=t;i&&i.dispatchEvent(n)}function gt(t,i,u,e){var s=ft(i,!0),o=n("span","flatpickr-day "+t,i.getDate().toString());return o.dateObj=i,o.$i=e,o.setAttribute("aria-label",c.formatDate(i,c.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===f(i,c.now)&&((c.todayDateElem=o).classList.add("today"),o.setAttribute("aria-current","date")),s?(o.tabIndex=-1,si(i)&&(o.classList.add("selected"),c.selectedDateElem=o,"range"===c.config.mode&&(r(o,"startRange",c.selectedDates[0]&&0===f(i,c.selectedDates[0],!0)),r(o,"endRange",c.selectedDates[1]&&0===f(i,c.selectedDates[1],!0)),"nextMonthDay"===t&&o.classList.add("inRange")))):o.classList.add("disabled"),"range"===c.config.mode&&(s=i,"range"!==c.config.mode||c.selectedDates.length<2||!(0<=f(s,c.selectedDates[0])&&f(s,c.selectedDates[1])<=0)||si(i)||o.classList.add("inRange")),c.weekNumbers&&1===c.config.showMonths&&"prevMonthDay"!==t&&u%7==1&&c.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+c.config.getWeek(i)+"<\/span>"),tt("onDayCreate",o),o}function ni(n){n.focus();"range"===c.config.mode&&ui(n)}function at(n){for(var t,f=0<n?0:c.config.showMonths-1,e=0<n?c.config.showMonths:-1,i=f;i!=e;i+=n)for(var r=c.daysContainer.children[i],o=0<n?0:r.children.length-1,s=0<n?r.children.length:-1,u=o;u!=s;u+=n)if(t=r.children[u],-1===t.className.indexOf("hidden")&&ft(t.dateObj))return t}function st(n,t){var i=pt(document.activeElement||document.body),n=void 0!==n?n:i?document.activeElement:void 0!==c.selectedDateElem&&pt(c.selectedDateElem)?c.selectedDateElem:void 0!==c.todayDateElem&&pt(c.todayDateElem)?c.todayDateElem:at(0<t?1:-1);return void 0===n?c._input.focus():i?void function(n,t){for(var f,o=-1===n.className.indexOf("Month")?n.dateObj.getMonth():c.currentMonth,h=0<t?c.config.showMonths:-1,r=0<t?1:-1,u=o-c.currentMonth;u!=h;u+=r)for(var e=c.daysContainer.children[u],l=o-c.currentMonth===u?n.$i+t:t<0?e.children.length-1:0,s=e.children.length,i=l;0<=i&&i<s&&i!=(0<t?s:-1);i+=r)if(f=e.children[i],-1===f.className.indexOf("hidden")&&ft(f.dateObj)&&Math.abs(n.$i-i)>=Math.abs(t))return ni(f);c.changeMonth(r);st(at(r),0)}(n,t):(ni(n),0)}function vt(){var r,t,i;if(void 0!==c.daysContainer){for(l(c.daysContainer),c.weekNumbers&&l(c.weekNumbers),r=document.createDocumentFragment(),t=0;t<c.config.showMonths;t++)i=new Date(c.currentYear,c.currentMonth,1),i.setMonth(c.currentMonth+t),r.appendChild(function(t,i){for(var f,h=(new Date(t,i,1).getDay()-c.l10n.firstDayOfWeek+7)%7,l=c.utils.getDaysInMonth((i- -11)%12),s=c.utils.getDaysInMonth(i),e=window.document.createDocumentFragment(),o=1<c.config.showMonths,a=o?"prevMonthDay hidden":"prevMonthDay",v=o?"nextMonthDay hidden":"nextMonthDay",r=l+1-h,u=0;r<=l;r++,u++)e.appendChild(gt(a,new Date(t,i-1,r),r,u));for(r=1;r<=s;r++,u++)e.appendChild(gt("",new Date(t,i,r),r,u));for(f=s+1;f<=42-h&&(1===c.config.showMonths||u%7!=0);f++,u++)e.appendChild(gt(v,new Date(t,i+1,f%s),f,u));return(o=n("div","dayContainer")).appendChild(e),o}(i.getFullYear(),i.getMonth()));c.daysContainer.appendChild(r);c.days=c.daysContainer.firstChild;"range"===c.config.mode&&1===c.selectedDates.length&&ui()}}function vi(){var i,t;for(l(c.monthNav),c.monthNav.appendChild(c.prevMonthNav),c.config.showMonths&&(c.yearElements=[],c.monthElements=[]),i=c.config.showMonths;i--;)t=function(){var r=n("div","flatpickr-month"),u=window.document.createDocumentFragment(),f=n("span","cur-month"),e=a("cur-year",{tabindex:"-1"}),t=e.getElementsByTagName("input")[0],i;return t.setAttribute("aria-label",c.l10n.yearAriaLabel),c.config.minDate&&t.setAttribute("min",c.config.minDate.getFullYear().toString()),c.config.maxDate&&(t.setAttribute("max",c.config.maxDate.getFullYear().toString()),t.disabled=!!c.config.minDate&&c.config.minDate.getFullYear()===c.config.maxDate.getFullYear()),i=n("div","flatpickr-current-month"),i.appendChild(f),i.appendChild(e),u.appendChild(i),r.appendChild(u),{container:r,yearElement:t,monthElement:f}}(),c.yearElements.push(t.yearElement),c.monthElements.push(t.monthElement),c.monthNav.appendChild(t.container);c.monthNav.appendChild(c.nextMonthNav)}function yi(){var t,i;for(c.weekdayContainer?l(c.weekdayContainer):c.weekdayContainer=n("div","flatpickr-weekdays"),t=c.config.showMonths;t--;)i=n("div","flatpickr-weekdaycontainer"),c.weekdayContainer.appendChild(i);return pi(),c.weekdayContainer}function pi(){var t=c.l10n.firstDayOfWeek,n=c.l10n.weekdays.shorthand.slice(),i;for(0<t&&t<n.length&&(n=n.splice(t,n.length).concat(n.splice(0,t))),i=c.config.showMonths;i--;)c.weekdayContainer.children[i].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+n.join("<\/span><span class='flatpickr-weekday'>")+"\n      <\/span>\n      "}function ti(n,t){n=(t=void 0===t?!0:t)?n:n-c.currentMonth;n<0&&!0===c._hidePrevMonthArrow||0<n&&!0===c._hideNextMonthArrow||(c.currentMonth+=n,(c.currentMonth<0||11<c.currentMonth)&&(c.currentYear+=11<c.currentMonth?1:-1,c.currentMonth=(c.currentMonth+12)%12,tt("onYearChange")),vt(),tt("onMonthChange"),wt())}function yt(n){return!(!c.config.appendTo||!c.config.appendTo.contains(n))||c.calendarContainer.contains(n)}function ii(n){var i,r,t;c.isOpen&&!c.config.inline&&(r=yt(i="function"!=typeof(t=n).composedPath?t.target:t.composedPath()[0]),t=i===c.input||i===c.altInput||c.element.contains(i)||n.path&&n.path.indexOf&&(~n.path.indexOf(c.input)||~n.path.indexOf(c.altInput)),r="blur"===n.type?t&&n.relatedTarget&&!yt(n.relatedTarget):!t&&!r&&!yt(n.relatedTarget),n=!c.config.ignoredFocusElements.some(function(n){return n.contains(i)}),r&&n&&(c.close(),"range"===c.config.mode&&1===c.selectedDates.length&&(c.clear(!1),c.redraw())))}function ri(n){var t;!n||c.config.minDate&&n<c.config.minDate.getFullYear()||c.config.maxDate&&n>c.config.maxDate.getFullYear()||(t=c.currentYear!==n,c.currentYear=n||c.currentYear,c.config.maxDate&&c.currentYear===c.config.maxDate.getFullYear()?c.currentMonth=Math.min(c.config.maxDate.getMonth(),c.currentMonth):c.config.minDate&&c.currentYear===c.config.minDate.getFullYear()&&(c.currentMonth=Math.max(c.config.minDate.getMonth(),c.currentMonth)),t&&(c.redraw(),tt("onYearChange")))}function ft(n,t){var i=c.parseDate(n,void 0,t=void 0===t?!0:t),o;if(c.config.minDate&&i&&f(i,c.config.minDate,void 0!==t?t:!c.minDateHasTime)<0||c.config.maxDate&&i&&0<f(i,c.config.maxDate,void 0!==t?t:!c.maxDateHasTime))return!1;if(0===c.config.enable.length&&0===c.config.disable.length)return!0;if(void 0===i)return!1;for(var u=0<c.config.enable.length,s=u?c.config.enable:c.config.disable,e=0,r=void 0;e<s.length;e++){if("function"==typeof(r=s[e])&&r(i)||r instanceof Date&&void 0!==i&&r.getTime()===i.getTime())return u;if("string"==typeof r&&void 0!==i)return o=c.parseDate(r,void 0,!0),o&&o.getTime()===i.getTime()?u:!u;if("object"==typeof r&&void 0!==i&&r.from&&r.to&&i.getTime()>=r.from.getTime()&&i.getTime()<=r.to.getTime())return u}return!u}function pt(n){return void 0!==c.daysContainer&&-1===n.className.indexOf("hidden")&&c.daysContainer.contains(n)}function wi(n){var u=n.target===c._input,f=c.config.allowInput,e=c.isOpen&&(!f||!u),o=c.config.inline&&u&&!f,r,i,t;if(13===n.keyCode&&u){if(f)return c.setDate(c._input.value,!0,n.target===c.altInput?c.config.altFormat:c.config.dateFormat),n.target.blur();c.open()}else if(yt(n.target)||e||o){i=!!c.timeContainer&&c.timeContainer.contains(n.target);switch(n.keyCode){case 13:i?(ot(),fi()):nr(n);break;case 27:n.preventDefault();fi();break;case 8:case 46:u&&!c.config.allowInput&&(n.preventDefault(),c.clear());break;case 37:case 39:i?c.hourElement&&c.hourElement.focus():(n.preventDefault(),void 0!==c.daysContainer&&(!1===f||document.activeElement&&pt(document.activeElement))&&(r=39===n.keyCode?1:-1,n.ctrlKey?(n.stopPropagation(),ti(r),st(at(1),0)):st(void 0,r)));break;case 38:case 40:n.preventDefault();t=40===n.keyCode?1:-1;c.daysContainer&&void 0!==n.target.$i||n.target===c.input?n.ctrlKey?(n.stopPropagation(),ri(c.currentYear-t),st(at(1),0)):i||st(void 0,7*t):c.config.enableTime&&(!i&&c.hourElement&&c.hourElement.focus(),ot(n),c._debouncedChange());break;case 9:i&&-1!==(t=(r=[c.hourElement,c.minuteElement,c.secondElement,c.amPM].filter(function(n){return n})).indexOf(n.target))&&(void 0!==(t=r[t+(n.shiftKey?-1:1)])?(n.preventDefault(),t.focus()):n.shiftKey&&(n.preventDefault(),c._input.focus()))}}if(void 0!==c.amPM&&n.target===c.amPM)switch(n.key){case c.l10n.amPM[0].charAt(0):case c.l10n.amPM[0].charAt(0).toLowerCase():c.amPM.textContent=c.l10n.amPM[0];ct();ut();break;case c.l10n.amPM[1].charAt(0):case c.l10n.amPM[1].charAt(0).toLowerCase():c.amPM.textContent=c.l10n.amPM[1];ct();ut()}tt("onKeyDown",n)}function ui(n){var e;if(1===c.selectedDates.length&&(!n||n.classList.contains("flatpickr-day")&&!n.classList.contains("disabled"))){for(var u=(n||c.days.firstElementChild).dateObj.getTime(),i=c.parseDate(c.selectedDates[0],void 0,!0).getTime(),l=Math.min(u,c.selectedDates[0].getTime()),v=Math.max(u,c.selectedDates[0].getTime()),y=c.daysContainer.lastChild.lastChild.dateObj.getTime(),o=!1,f=0,r=0,t=l;t<y;t+=rt.DAY)ft(new Date(t),!0)||(o=o||l<t&&t<v,t<i&&(!f||f<t)?f=t:i<t&&(!r||t<r)&&(r=t));for(e=0;e<c.config.showMonths;e++)for(var s=c.daysContainer.children[e],a=c.daysContainer.children[e-1],h=0,p=s.children.length;h<p;h++)!function(t){var l=s.children[t],h=l.dateObj.getTime(),t=0<f&&h<f||0<r&&r<h;t?(l.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(n){l.classList.remove(n)})):o&&!t||(["startRange","inRange","endRange","notAllowed"].forEach(function(n){l.classList.remove(n)}),void 0!==n&&(n.classList.add(u<c.selectedDates[0].getTime()?"startRange":"endRange"),!s.contains(n)&&0<e&&a&&a.lastChild.dateObj.getTime()>=h||(i<u&&h===i?l.classList.add("startRange"):u<i&&h===i&&l.classList.add("endRange"),f<=h&&(0===r||h<=r)&&it(h,i,u)&&l.classList.add("inRange"))))}(h)}}function er(){!c.isOpen||c.config.static||c.config.inline||ht()}function bi(){c.setDate(void 0!==c.config.minDate?new Date(c.config.minDate.getTime()):new Date,!1);li();ut()}function ki(n){return function(t){var i=c.config["_"+n+"Date"]=c.parseDate(t,c.config.dateFormat),t=c.config["_"+("min"===n?"max":"min")+"Date"];void 0!==i&&(c["min"===n?"minDateHasTime":"maxDateHasTime"]=0<i.getHours()||0<i.getMinutes()||0<i.getSeconds());c.selectedDates&&(c.selectedDates=c.selectedDates.filter(function(n){return ft(n)}),c.selectedDates.length||"min"!==n||lt(i),ut());c.daysContainer&&(gi(),void 0!==i?c.currentYearElement[n]=i.getFullYear().toString():c.currentYearElement.removeAttribute(n),c.currentYearElement.disabled=!!t&&void 0!==i&&t.getFullYear()===i.getFullYear())}}function di(){"object"!=typeof c.config.locale&&void 0===t.l10ns[c.config.locale]&&c.config.errorHandler(new Error("flatpickr: invalid locale "+c.config.locale));c.l10n=e({},t.l10ns.default,"object"==typeof c.config.locale?c.config.locale:"default"!==c.config.locale?t.l10ns[c.config.locale]:void 0);b.K="("+c.l10n.amPM[0]+"|"+c.l10n.amPM[1]+"|"+c.l10n.amPM[0].toLowerCase()+"|"+c.l10n.amPM[1].toLowerCase()+")";c.formatDate=g(c);c.parseDate=k({config:c.config,l10n:c.l10n})}function ht(n){var u,f,o,t,i,e;void 0!==c.calendarContainer&&(tt("onPreCalendarPosition"),o=n||c._positionElement,f=Array.prototype.reduce.call(c.calendarContainer.children,function(n,t){return n+t.offsetHeight},0),e=c.calendarContainer.offsetWidth,t=(u=c.config.position.split(" "))[0],i=1<u.length?u[1]:null,n=o.getBoundingClientRect(),u=window.innerHeight-n.bottom,t="above"===t||"below"!==t&&u<f&&n.top>f,u=window.pageYOffset+n.top+(t?-f-2:o.offsetHeight+2),r(c.calendarContainer,"arrowTop",!t),r(c.calendarContainer,"arrowBottom",t),c.config.inline||(f=window.pageXOffset+n.left-(null!=i&&"center"===i?(e-n.width)/2:0),o=window.document.body.offsetWidth-n.right,t=f+e>window.document.body.offsetWidth,i=o+e>window.document.body.offsetWidth,r(c.calendarContainer,"rightMost",t),c.config.static||(c.calendarContainer.style.top=u+"px",t?i?void 0!==(t=document.styleSheets[0])&&(i=window.document.body.offsetWidth,i=Math.max(0,i/2-e/2),e=t.cssRules.length,n="{left:"+n.left+"px;right:auto;}",r(c.calendarContainer,"rightMost",!1),r(c.calendarContainer,"centerMost",!0),t.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+n,e),c.calendarContainer.style.left=i+"px",c.calendarContainer.style.right="auto"):(c.calendarContainer.style.left="auto",c.calendarContainer.style.right=o+"px"):(c.calendarContainer.style.left=f+"px",c.calendarContainer.style.right="auto"))))}function gi(){c.config.noCalendar||c.isMobile||(wt(),vt())}function fi(){c._input.focus();-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(c.close,0):c.close()}function nr(n){n.preventDefault();n.stopPropagation();var r,i,t=function n(t,i){return i(t)?t:t.parentNode?n(t.parentNode,i):void 0}(n.target,function(n){return n.classList&&n.classList.contains("flatpickr-day")&&!n.classList.contains("disabled")&&!n.classList.contains("notAllowed")});void 0!==t&&(i=t,t=((n=c.latestSelectedDateObj=new Date(i.dateObj.getTime())).getMonth()<c.currentMonth||n.getMonth()>c.currentMonth+c.config.showMonths-1)&&"range"!==c.config.mode,c.selectedDateElem=i,"single"===c.config.mode?c.selectedDates=[n]:"multiple"===c.config.mode?(r=si(n))?c.selectedDates.splice(parseInt(r),1):c.selectedDates.push(n):"range"===c.config.mode&&(2===c.selectedDates.length&&c.clear(!1,!1),c.latestSelectedDateObj=n,c.selectedDates.push(n),0!==f(n,c.selectedDates[0],!0)&&c.selectedDates.sort(function(n,t){return n.getTime()-t.getTime()})),ct(),t&&(r=c.currentYear!==n.getFullYear(),c.currentYear=n.getFullYear(),c.currentMonth=n.getMonth(),r&&tt("onYearChange"),tt("onMonthChange")),wt(),vt(),ut(),c.config.enableTime&&setTimeout(function(){return c.showTimeInput=!0},50),t||"range"===c.config.mode||1!==c.config.showMonths?void 0!==c.selectedDateElem&&void 0===c.hourElement&&c.selectedDateElem&&c.selectedDateElem.focus():ni(i),void 0!==c.hourElement&&void 0!==c.hourElement&&c.hourElement.focus(),c.config.closeOnSelect&&(t="single"===c.config.mode&&!c.config.enableTime,i="range"===c.config.mode&&2===c.selectedDates.length&&!c.config.enableTime,(t||i)&&fi()),kt())}function tr(n,t){var i=[];if(n instanceof Array)i=n.map(function(n){return c.parseDate(n,t)});else if(n instanceof Date||"number"==typeof n)i=[c.parseDate(n,t)];else if("string"==typeof n)switch(c.config.mode){case"single":case"time":i=[c.parseDate(n,t)];break;case"multiple":i=n.split(c.config.conjunction).map(function(n){return c.parseDate(n,t)});break;case"range":i=n.split(c.l10n.rangeSeparator).map(function(n){return c.parseDate(n,t)})}else c.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(n)));c.selectedDates=i.filter(function(n){return n instanceof Date&&ft(n,!1)});"range"===c.config.mode&&c.selectedDates.sort(function(n,t){return n.getTime()-t.getTime()})}function ir(n){return n.slice().map(function(n){return"string"==typeof n||"number"==typeof n||n instanceof Date?c.parseDate(n,void 0,!0):n&&"object"==typeof n&&n.from&&n.to?{from:c.parseDate(n.from,void 0),to:c.parseDate(n.to,void 0)}:n}).filter(function(n){return n})}function tt(n,t){var i,r;if(void 0!==c.config){if(i=c.config[n],void 0!==i&&0<i.length)for(r=0;i[r]&&r<i.length;r++)i[r](c.selectedDates,c.input.value,c,t);"onChange"===n&&(c.input.dispatchEvent(oi("change")),c.input.dispatchEvent(oi("input")))}}function oi(n){var t=document.createEvent("Event");return t.initEvent(n,!0,!0),t}function si(n){for(var t=0;t<c.selectedDates.length;t++)if(0===f(c.selectedDates[t],n))return""+t;return!1}function wt(){c.config.noCalendar||c.isMobile||!c.monthNav||(c.yearElements.forEach(function(n,t){var i=new Date(c.currentYear,c.currentMonth,1);i.setMonth(c.currentMonth+t);c.monthElements[t].textContent=w(i.getMonth(),c.config.shorthandCurrentMonth,c.l10n)+" ";n.value=i.getFullYear().toString()}),c._hidePrevMonthArrow=void 0!==c.config.minDate&&(c.currentYear===c.config.minDate.getFullYear()?c.currentMonth<=c.config.minDate.getMonth():c.currentYear<c.config.minDate.getFullYear()),c._hideNextMonthArrow=void 0!==c.config.maxDate&&(c.currentYear===c.config.maxDate.getFullYear()?c.currentMonth+1>c.config.maxDate.getMonth():c.currentYear>c.config.maxDate.getFullYear()))}function rr(n){return c.selectedDates.map(function(t){return c.formatDate(t,n)}).filter(function(n,t,i){return"range"!==c.config.mode||c.config.enableTime||i.indexOf(n)===t}).join("range"!==c.config.mode?c.config.conjunction:c.l10n.rangeSeparator)}function ut(n){if(void 0===n&&(n=!0),0===c.selectedDates.length)return c.clear(n);void 0!==c.mobileInput&&c.mobileFormatStr&&(c.mobileInput.value=void 0!==c.latestSelectedDateObj?c.formatDate(c.latestSelectedDateObj,c.mobileFormatStr):"");c.input.value=rr(c.config.dateFormat);void 0!==c.altInput&&(c.altInput.value=rr(c.config.altFormat));!1!==n&&tt("onValueUpdate")}function or(n){n.preventDefault();var t=c.prevMonthNav.contains(n.target),i=c.nextMonthNav.contains(n.target);t||i?ti(t?-1:1):0<=c.yearElements.indexOf(n.target)?n.target.select():n.target.classList.contains("arrowUp")?c.changeYear(c.currentYear+1):n.target.classList.contains("arrowDown")&&c.changeYear(c.currentYear-1)}var c={config:e({},t.defaultConfig),l10n:s},ei;return c.parseDate=k({config:c.config,l10n:c.l10n}),c._handlers=[],c._bind=p,c._setHoursFromDate=lt,c._positionCalendar=ht,c.changeMonth=ti,c.changeYear=ri,c.clear=function(n,t){void 0===n&&(n=!0);void 0===t&&(t=!0);c.input.value="";void 0!==c.altInput&&(c.altInput.value="");void 0!==c.mobileInput&&(c.mobileInput.value="");c.selectedDates=[];!(c.latestSelectedDateObj=void 0)===t&&(c.currentYear=c._initialDate.getFullYear(),c.currentMonth=c._initialDate.getMonth());!(c.showTimeInput=!1)===c.config.enableTime&&li();c.redraw();n&&tt("onChange")},c.close=function(){c.isOpen=!1;c.isMobile||(void 0!==c.calendarContainer&&c.calendarContainer.classList.remove("open"),void 0!==c._input&&c._input.classList.remove("active"));tt("onClose")},c._createElement=n,c.destroy=function(){var i,t,n;for(void 0!==c.config&&tt("onDestroy"),i=c._handlers.length;i--;)t=c._handlers[i],t.element.removeEventListener(t.event,t.handler,t.options);if(c._handlers=[],c.mobileInput)c.mobileInput.parentNode&&c.mobileInput.parentNode.removeChild(c.mobileInput),c.mobileInput=void 0;else if(c.calendarContainer&&c.calendarContainer.parentNode)if(c.config.static&&c.calendarContainer.parentNode){if(n=c.calendarContainer.parentNode,n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else c.calendarContainer.parentNode.removeChild(c.calendarContainer);c.altInput&&(c.input.type="text",c.altInput.parentNode&&c.altInput.parentNode.removeChild(c.altInput),delete c.altInput);c.input&&(c.input.type=c.input._type,c.input.classList.remove("flatpickr-input"),c.input.removeAttribute("readonly"),c.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(n){try{delete c[n]}catch(n){}})},c.isEnabled=ft,c.jumpToDate=ai,c.open=function(n,t){void 0===t&&(t=c._positionElement);var i;!0!==c.isMobile?c._input.disabled||c.config.inline||(i=c.isOpen,c.isOpen=!0,i||(c.calendarContainer.classList.add("open"),c._input.classList.add("active"),tt("onOpen"),ht(t)),!0===c.config.enableTime&&!0===c.config.noCalendar&&(0===c.selectedDates.length&&bi(),!1!==c.config.allowInput||void 0!==n&&c.timeContainer.contains(n.relatedTarget)||setTimeout(function(){return c.hourElement.select()},50))):(n&&(n.preventDefault(),n.target&&n.target.blur()),void 0!==c.mobileInput&&(c.mobileInput.focus(),c.mobileInput.click()),tt("onOpen"))},c.redraw=gi,c.set=function(n,t){null!==n&&"object"==typeof n?Object.assign(c.config,n):(c.config[n]=t,void 0!==ei[n]?ei[n].forEach(function(n){return n()}):-1<v.indexOf(n)&&(c.config[n]=y(t)));c.redraw();ut(!1)},c.setDate=function(n,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=c.config.dateFormat),0!==n&&!n||n instanceof Array&&0===n.length)return c.clear(t);tr(n,i);c.showTimeInput=0<c.selectedDates.length;c.latestSelectedDateObj=c.selectedDates[0];c.redraw();ai();lt();ut(t);t&&tt("onChange")},c.toggle=function(n){if(!0===c.isOpen)return c.close();c.open(n)},ei={locale:[di,pi],showMonths:[vi,ci,yi]},function(){c.element=c.input=o;c.isOpen=!1,function(){var f=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=e({},h,JSON.parse(JSON.stringify(o.dataset||{}))),l={},r,i,u,s;for(c.config.parseDate=n.parseDate,c.config.formatDate=n.formatDate,Object.defineProperty(c.config,"enable",{get:function(){return c.config._enable},set:function(n){c.config._enable=ir(n)}}),Object.defineProperty(c.config,"disable",{get:function(){return c.config._disable},set:function(n){c.config._disable=ir(n)}}),r="time"===n.mode,!n.dateFormat&&(n.enableTime||r)&&(l.dateFormat=n.noCalendar||r?"H:i"+(n.enableSeconds?":S":""):t.defaultConfig.dateFormat+" H:i"+(n.enableSeconds?":S":"")),n.altInput&&(n.enableTime||r)&&!n.altFormat&&(l.altFormat=n.noCalendar||r?"h:i"+(n.enableSeconds?":S K":" K"):t.defaultConfig.altFormat+(" h:i"+(n.enableSeconds?":S":""))+" K"),Object.defineProperty(c.config,"minDate",{get:function(){return c.config._minDate},set:ki("min")}),Object.defineProperty(c.config,"maxDate",{get:function(){return c.config._maxDate},set:ki("max")}),r=function(n){return function(t){c.config["min"===n?"_minTime":"_maxTime"]=c.parseDate(t,"H:i")}},Object.defineProperty(c.config,"minTime",{get:function(){return c.config._minTime},set:r("min")}),Object.defineProperty(c.config,"maxTime",{get:function(){return c.config._maxTime},set:r("max")}),"time"===n.mode&&(c.config.noCalendar=!0,c.config.enableTime=!0),Object.assign(c.config,l,n),i=0;i<f.length;i++)c.config[f[i]]=!0===c.config[f[i]]||"true"===c.config[f[i]];for(v.filter(function(n){return void 0!==c.config[n]}).forEach(function(n){c.config[n]=y(c.config[n]||[]).map(hi)}),c.isMobile=!c.config.disableMobile&&!c.config.inline&&"single"===c.config.mode&&!c.config.disable.length&&!c.config.enable.length&&!c.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),i=0;i<c.config.plugins.length;i++){s=c.config.plugins[i](c)||{};for(u in s)-1<v.indexOf(u)?c.config[u]=y(s[u]).map(hi).concat(c.config[u]):void 0===n[u]&&(c.config[u]=s[u])}tt("onParseConfig")}();di();c.input=c.config.wrap?o.querySelector("[data-input]"):o;c.input?(c.input._type=c.input.type,c.input.type="text",c.input.classList.add("flatpickr-input"),c._input=c.input,c.config.altInput&&(c.altInput=n(c.input.nodeName,c.input.className+" "+c.config.altInputClass),c._input=c.altInput,c.altInput.placeholder=c.input.placeholder,c.altInput.disabled=c.input.disabled,c.altInput.required=c.input.required,c.altInput.tabIndex=c.input.tabIndex,c.altInput.type="text",c.input.setAttribute("type","hidden"),!c.config.static&&c.input.parentNode&&c.input.parentNode.insertBefore(c.altInput,c.input.nextSibling)),c.config.allowInput||c._input.setAttribute("readonly","readonly"),c._positionElement=c.config.positionElement||c._input):c.config.errorHandler(new Error("Invalid input element specified")),function(){c.selectedDates=[];c.now=c.parseDate(c.config.now)||new Date;var n=c.config.defaultDate||("INPUT"!==c.input.nodeName&&"TEXTAREA"!==c.input.nodeName||!c.input.placeholder||c.input.value!==c.input.placeholder?c.input.value:null);n&&tr(n,c.config.dateFormat);c._initialDate=0<c.selectedDates.length?c.selectedDates[0]:c.config.minDate&&c.config.minDate.getTime()>c.now.getTime()?c.config.minDate:c.config.maxDate&&c.config.maxDate.getTime()<c.now.getTime()?c.config.maxDate:c.now;c.currentYear=c._initialDate.getFullYear();c.currentMonth=c._initialDate.getMonth();0<c.selectedDates.length&&(c.latestSelectedDateObj=c.selectedDates[0]);void 0!==c.config.minTime&&(c.config.minTime=c.parseDate(c.config.minTime,"H:i"));void 0!==c.config.maxTime&&(c.config.maxTime=c.parseDate(c.config.maxTime,"H:i"));c.minDateHasTime=!!c.config.minDate&&(0<c.config.minDate.getHours()||0<c.config.minDate.getMinutes()||0<c.config.minDate.getSeconds());c.maxDateHasTime=!!c.config.maxDate&&(0<c.config.maxDate.getHours()||0<c.config.maxDate.getMinutes()||0<c.config.maxDate.getSeconds());Object.defineProperty(c,"showTimeInput",{get:function(){return c._showTimeInput},set:function(n){c._showTimeInput=n;c.calendarContainer&&r(c.calendarContainer,"showTimeInput",n);c.isOpen&&ht()}})}();c.utils={getDaysInMonth:function(n,t){return void 0===n&&(n=c.currentMonth),void 0===t&&(t=c.currentYear),1===n&&(t%4==0&&t%100!=0||t%400==0)?29:c.l10n.daysInMonth[n]}};c.isMobile||function(){var t=window.document.createDocumentFragment(),e,f;c.calendarContainer=n("div","flatpickr-calendar");c.calendarContainer.tabIndex=-1;c.config.noCalendar||(t.appendChild((c.monthNav=n("div","flatpickr-months"),c.yearElements=[],c.monthElements=[],c.prevMonthNav=n("span","flatpickr-prev-month"),c.prevMonthNav.innerHTML=c.config.prevArrow,c.nextMonthNav=n("span","flatpickr-next-month"),c.nextMonthNav.innerHTML=c.config.nextArrow,vi(),Object.defineProperty(c,"_hidePrevMonthArrow",{get:function(){return c.__hidePrevMonthArrow},set:function(n){c.__hidePrevMonthArrow!==n&&(r(c.prevMonthNav,"disabled",n),c.__hidePrevMonthArrow=n)}}),Object.defineProperty(c,"_hideNextMonthArrow",{get:function(){return c.__hideNextMonthArrow},set:function(n){c.__hideNextMonthArrow!==n&&(r(c.nextMonthNav,"disabled",n),c.__hideNextMonthArrow=n)}}),c.currentYearElement=c.yearElements[0],wt(),c.monthNav)),c.innerContainer=n("div","flatpickr-innerContainer"),c.config.weekNumbers&&(f=function(){var t,i;return c.calendarContainer.classList.add("hasWeeks"),t=n("div","flatpickr-weekwrapper"),t.appendChild(n("span","flatpickr-weekday",c.l10n.weekAbbreviation)),i=n("div","flatpickr-weeks"),t.appendChild(i),{weekWrapper:t,weekNumbers:i}}(),e=f.weekWrapper,f=f.weekNumbers,c.innerContainer.appendChild(e),c.weekNumbers=f,c.weekWrapper=e),c.rContainer=n("div","flatpickr-rContainer"),c.rContainer.appendChild(yi()),c.daysContainer||(c.daysContainer=n("div","flatpickr-days"),c.daysContainer.tabIndex=-1),vt(),c.rContainer.appendChild(c.daysContainer),c.innerContainer.appendChild(c.rContainer),t.appendChild(c.innerContainer));c.config.enableTime&&t.appendChild(function(){var f,r,t;return c.calendarContainer.classList.add("hasTime"),c.config.noCalendar&&c.calendarContainer.classList.add("noCalendar"),c.timeContainer=n("div","flatpickr-time"),c.timeContainer.tabIndex=-1,f=n("span","flatpickr-time-separator",":"),r=a("flatpickr-hour"),c.hourElement=r.getElementsByTagName("input")[0],t=a("flatpickr-minute"),c.minuteElement=t.getElementsByTagName("input")[0],c.hourElement.tabIndex=c.minuteElement.tabIndex=-1,c.hourElement.value=i(c.latestSelectedDateObj?c.latestSelectedDateObj.getHours():c.config.time_24hr?c.config.defaultHour:function(n){switch(n%24){case 0:case 12:return 12;default:return n%12}}(c.config.defaultHour)),c.minuteElement.value=i(c.latestSelectedDateObj?c.latestSelectedDateObj.getMinutes():c.config.defaultMinute),c.hourElement.setAttribute("step",c.config.hourIncrement.toString()),c.minuteElement.setAttribute("step",c.config.minuteIncrement.toString()),c.hourElement.setAttribute("min",c.config.time_24hr?"0":"1"),c.hourElement.setAttribute("max",c.config.time_24hr?"23":"12"),c.minuteElement.setAttribute("min","0"),c.minuteElement.setAttribute("max","59"),c.timeContainer.appendChild(r),c.timeContainer.appendChild(f),c.timeContainer.appendChild(t),c.config.time_24hr&&c.timeContainer.classList.add("time24hr"),c.config.enableSeconds&&(c.timeContainer.classList.add("hasSeconds"),t=a("flatpickr-second"),c.secondElement=t.getElementsByTagName("input")[0],c.secondElement.value=i(c.latestSelectedDateObj?c.latestSelectedDateObj.getSeconds():c.config.defaultSeconds),c.secondElement.setAttribute("step",c.minuteElement.getAttribute("step")),c.secondElement.setAttribute("min","0"),c.secondElement.setAttribute("max","59"),c.timeContainer.appendChild(n("span","flatpickr-time-separator",":")),c.timeContainer.appendChild(t)),c.config.time_24hr||(c.amPM=n("span","flatpickr-am-pm",c.l10n.amPM[u(11<(c.latestSelectedDateObj?c.hourElement.value:c.config.defaultHour))]),c.amPM.title=c.l10n.toggleTitle,c.amPM.tabIndex=-1,c.timeContainer.appendChild(c.amPM)),c.timeContainer}());r(c.calendarContainer,"rangeMode","range"===c.config.mode);r(c.calendarContainer,"animate",!0===c.config.animate);r(c.calendarContainer,"multiMonth",1<c.config.showMonths);c.calendarContainer.appendChild(t);t=void 0!==c.config.appendTo&&void 0!==c.config.appendTo.nodeType;(c.config.inline||c.config.static)&&(c.calendarContainer.classList.add(c.config.inline?"inline":"static"),c.config.inline&&(!t&&c.element.parentNode?c.element.parentNode.insertBefore(c.calendarContainer,c._input.nextSibling):void 0!==c.config.appendTo&&c.config.appendTo.appendChild(c.calendarContainer)),c.config.static&&(t=n("div","flatpickr-wrapper"),c.element.parentNode&&c.element.parentNode.insertBefore(t,c.element),t.appendChild(c.element),c.altInput&&t.appendChild(c.altInput),t.appendChild(c.calendarContainer)));c.config.static||c.config.inline||(void 0!==c.config.appendTo?c.config.appendTo:window.document.body).appendChild(c.calendarContainer)}(),function(){c.config.wrap&&["open","close","toggle","clear"].forEach(function(n){Array.prototype.forEach.call(c.element.querySelectorAll("[data-"+n+"]"),function(t){return p(t,"click",c[n])})});var t;c.isMobile?function(){var t=c.config.enableTime?c.config.noCalendar?"time":"datetime-local":"date";c.mobileInput=n("input",c.input.className+" flatpickr-mobile");c.mobileInput.step=c.input.getAttribute("step")||"any";c.mobileInput.tabIndex=1;c.mobileInput.type=t;c.mobileInput.disabled=c.input.disabled;c.mobileInput.required=c.input.required;c.mobileInput.placeholder=c.input.placeholder;c.mobileFormatStr="datetime-local"==t?"Y-m-d\\TH:i:S":"date"==t?"Y-m-d":"H:i:S";0<c.selectedDates.length&&(c.mobileInput.defaultValue=c.mobileInput.value=c.formatDate(c.selectedDates[0],c.mobileFormatStr));c.config.minDate&&(c.mobileInput.min=c.formatDate(c.config.minDate,"Y-m-d"));c.config.maxDate&&(c.mobileInput.max=c.formatDate(c.config.maxDate,"Y-m-d"));c.input.type="hidden";void 0!==c.altInput&&(c.altInput.type="hidden");try{c.input.parentNode&&c.input.parentNode.insertBefore(c.mobileInput,c.input.nextSibling)}catch(t){}p(c.mobileInput,"change",function(n){c.setDate(n.target.value,!1,c.mobileFormatStr);tt("onChange");tt("onClose")})}():(t=d(er,50),c._debouncedChange=d(kt,nt),c.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&p(c.daysContainer,"mouseover",function(n){"range"===c.config.mode&&ui(n.target)}),p(window.document.body,"keydown",wi),c.config.static||p(c._input,"keydown",wi),c.config.inline||c.config.static||p(window,"resize",t),void 0!==window.ontouchstart?p(window.document,"click",ii):p(window.document,"mousedown",et(ii)),p(window.document,"focus",ii,{capture:!0}),!0===c.config.clickOpens&&(p(c._input,"focus",c.open),p(c._input,"mousedown",et(c.open))),void 0!==c.daysContainer&&(p(c.monthNav,"mousedown",et(or)),p(c.monthNav,["keyup","increment"],ur),p(c.daysContainer,"mousedown",et(nr))),void 0!==c.timeContainer&&void 0!==c.minuteElement&&void 0!==c.hourElement&&(p(c.timeContainer,["increment"],ot),p(c.timeContainer,"blur",ot,{capture:!0}),p(c.timeContainer,"mousedown",et(fr)),p([c.hourElement,c.minuteElement],["focus","click"],function(n){return n.target.select()}),void 0!==c.secondElement&&p(c.secondElement,"focus",function(){return c.secondElement&&c.secondElement.select()}),void 0!==c.amPM&&p(c.amPM,"mousedown",et(function(n){ot(n);kt()}))))}();(c.selectedDates.length||c.config.noCalendar)&&(c.config.enableTime&&lt(c.config.noCalendar?c.latestSelectedDateObj||c.config.minDate:void 0),ut(!1));ci();c.showTimeInput=0<c.selectedDates.length||c.config.noCalendar;var f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!c.isMobile&&f&&ht();tt("onReady")}(),c}function o(n,t){for(var i,f=Array.prototype.slice.call(n).filter(function(n){return n instanceof HTMLElement}),r=[],u=0;u<f.length;u++){i=f[u];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0);i._flatpickr=ut(i,t||{});r.push(i._flatpickr)}catch(n){console.error(n)}}return 1===r.length?r[0]:r}var e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],c={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(n){return"undefined"!=typeof console&&console.warn(n)},getWeek:function(n){var t=new Date(n.getTime());return t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7),n=new Date(t.getFullYear(),0,4),1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g><\/g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /><\/svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g><\/g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /><\/svg>",shorthandCurrentMonth:!1,showMonths:1,"static":!1,time_24hr:!1,weekNumbers:!1,wrap:!1},s={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){if(n%=100,3<n&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},i=function(n){return("0"+n).slice(-2)},u=function(n){return!0===n?1:0},y=function(n){return n instanceof Array?n:[n]},w=function(n,t,i){return i.months[t?"shorthand":"longhand"][n]},tt={D:p,F:function(n,t,i){n.setMonth(i.months.longhand.indexOf(t))},G:function(n,t){n.setHours(parseFloat(t))},H:function(n,t){n.setHours(parseFloat(t))},J:function(n,t){n.setDate(parseFloat(t))},K:function(n,t,i){n.setHours(n.getHours()%12+12*u(new RegExp(i.amPM[1],"i").test(t)))},M:function(n,t,i){n.setMonth(i.months.shorthand.indexOf(t))},S:function(n,t){n.setSeconds(parseFloat(t))},U:function(n,t){return new Date(1e3*parseFloat(t))},W:function(n,t){return t=parseInt(t),new Date(n.getFullYear(),0,2+7*(t-1),0,0,0,0)},Y:function(n,t){n.setFullYear(parseFloat(t))},Z:function(n,t){return new Date(t)},d:function(n,t){n.setDate(parseFloat(t))},h:function(n,t){n.setHours(parseFloat(t))},i:function(n,t){n.setMinutes(parseFloat(t))},j:function(n,t){n.setDate(parseFloat(t))},l:p,m:function(n,t){n.setMonth(parseFloat(t)-1)},n:function(n,t){n.setMonth(parseFloat(t)-1)},s:function(n,t){n.setSeconds(parseFloat(t))},u:function(n,t){return new Date(parseFloat(t))},w:p,y:function(n,t){n.setFullYear(2e3+parseFloat(t))}},b={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},h={Z:function(n){return n.toISOString()},D:function(n,t,i){return t.weekdays.shorthand[h.w(n,t,i)]},F:function(n,t,i){return w(h.n(n,t,i)-1,!1,t)},G:function(n,t,r){return i(h.h(n,t,r))},H:function(n){return i(n.getHours())},J:function(n,t){return void 0!==t.ordinal?n.getDate()+t.ordinal(n.getDate()):n.getDate()},K:function(n,t){return t.amPM[u(11<n.getHours())]},M:function(n,t){return w(n.getMonth(),!0,t)},S:function(n){return i(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,t,i){return i.getWeek(n)},Y:function(n){return n.getFullYear()},d:function(n){return i(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return i(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,t){return t.weekdays.longhand[n.getDay()]},m:function(n){return i(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},g=function(n){var i=n.config,t=void 0===i?c:i,n=n.l10n,r=void 0===n?s:n;return function(n,i,u){var f=u||r;return void 0!==t.formatDate?t.formatDate(n,i,f):i.split("").map(function(i,r,u){return h[i]&&"\\"!==u[r-1]?h[i](n,f,t):"\\"!==i?i:""}).join("")}},k=function(n){var i=n.config,t=void 0===i?c:i,n=n.l10n,r=void 0===n?s:n;return function(n,i,u,f){var v,f,o,i;if(0===n||n){if(v=f||r,f=n,n instanceof Date)e=new Date(n.getTime());else if("string"!=typeof n&&void 0!==n.toFixed)e=new Date(n);else if("string"==typeof n)if(o=i||(t||c).dateFormat,i=String(n).trim(),"today"===i)e=new Date,u=!0;else if(/Z$/.test(i)||/GMT$/.test(i))e=new Date(n);else if(t&&t.parseDate)e=t.parseDate(n,o);else{for(var e=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),y=void 0,p=[],h=0,k=0,l="";h<o.length;h++){var s=o[h],w="\\"===s,a="\\"===o[h-1]||w;b[s]&&!a?(l+=b[s],(a=new RegExp(l).exec(n))&&(y=!0)&&p["Y"!==s?"push":"unshift"]({fn:tt[s],val:a[++k]})):w||(l+=".");p.forEach(function(n){var t=n.fn,n=n.val;return e=t(e,n,v)||e})}e=y?e:void 0}if(e instanceof Date&&!isNaN(e.getTime()))return!0===u&&e.setHours(0,0,0,0),e;t.errorHandler(new Error("Invalid date provided: "+f))}}},it=function(n,t,i){return n>Math.min(t,i)&&n<Math.max(t,i)},rt={DAY:864e5},nt,t;return"function"!=typeof Object.assign&&(Object.assign=function(n){for(var i,u,r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(i=0,u=r;i<u.length;i++)!function(t){t&&Object.keys(t).forEach(function(i){return n[i]=t[i]})}(u[i]);return n}),nt=300,"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return o(this,n)},HTMLElement.prototype.flatpickr=function(n){return o([this],n)}),t=function(n,t){return"string"==typeof n?o(window.document.querySelectorAll(n),t):n instanceof Node?o([n],t):o(n,t)},t.defaultConfig=c,t.l10ns={en:e({},s),"default":e({},s)},t.localize=function(n){t.l10ns.default=e({},t.l10ns.default,n)},t.setDefaults=function(n){t.defaultConfig=e({},t.defaultConfig,n)},t.parseDate=k({}),t.formatDate=g({}),t.compareDates=f,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(n){return o(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof n?parseInt(n,10):n))},"undefined"!=typeof window&&(window.flatpickr=t),t}),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function it(n){return n&&"[object Function]"==={}.toString.call(n)}function i(n,t){return 1!==n.nodeType?[]:(n=n.ownerDocument.defaultView.getComputedStyle(n,null),t?n[t]:n)}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function h(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=i(n),r=t.overflow,u=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(r+t+u)?n:h(y(n))}function rt(n){return n&&n.referenceNode?n.referenceNode:n}function r(n){return 11===n?ut:10!==n&&ut||ti}function u(n){var e,t,f;if(!n)return document.documentElement;for(e=r(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return f=t&&t.nodeName,f&&"BODY"!==f&&"HTML"!==f?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===i(t,"position")?u(t):t:(n?n.ownerDocument:document).documentElement}function p(n){return null!==n.parentNode?p(n.parentNode):n}function a(n,t){if(!(n&&n.nodeType&&t&&t.nodeType))return document.documentElement;var i=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=i?n:t,f=i?t:n,i=document.createRange();return(i.setStart(r,0),i.setEnd(f,0),i=i.commonAncestorContainer,n!==i&&t!==i||r.contains(f))?"BODY"===(f=(r=i).nodeName)||"HTML"!==f&&u(r.firstElementChild)!==r?u(i):i:(i=p(n),i.host?a(i.host,t):a(n,p(t).host))}function f(n,t){var i="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",t=n.nodeName;return"BODY"!==t&&"HTML"!==t?n[i]:(t=n.ownerDocument.documentElement,(n.ownerDocument.scrollingElement||t)[i])}function ft(n,t){var i="x"===t?"Left":"Top",t="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"])+parseFloat(n["border"+t+"Width"])}function et(n,t,i,u){return Math.max(t["offset"+n],t["scroll"+n],i["client"+n],i["offset"+n],i["scroll"+n],r(10)?parseInt(i["offset"+n])+parseInt(u["margin"+("Height"===n?"Top":"Left")])+parseInt(u["margin"+("Height"===n?"Bottom":"Right")]):0)}function ot(n){var i=n.body,t=n.documentElement,n=r(10)&&getComputedStyle(t);return{height:et("Height",i,t,n),width:et("Width",i,t,n)}}function st(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 e(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function t(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function w(n){var u={};try{r(10)?(u=n.getBoundingClientRect(),o=f(n,"top"),e=f(n,"left"),u.top+=o,u.left+=e,u.bottom+=o,u.right+=e):u=n.getBoundingClientRect()}catch(n){}var o={left:u.left,top:u.top,width:u.right-u.left,height:u.bottom-u.top},e="HTML"===n.nodeName?ot(n.ownerDocument):{},u=e.width||n.clientWidth||o.width,e=e.height||n.clientHeight||o.height,u=n.offsetWidth-u,e=n.offsetHeight-e;return(u||e)&&(u-=ft(n=i(n),"x"),e-=ft(n,"y"),o.width-=u,o.height-=e),t(o)}function b(n,u,e){var v=2<arguments.length&&void 0!==e&&e,y=r(10),c="HTML"===u.nodeName,o=w(n),l=w(u),a=h(n),s=i(u),e=parseFloat(s.borderTopWidth),n=parseFloat(s.borderLeftWidth);return v&&c&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0)),o=t({top:o.top-l.top-e,left:o.left-l.left-n,width:o.width,height:o.height}),o.marginTop=0,o.marginLeft=0,!y&&c&&(c=parseFloat(s.marginTop),s=parseFloat(s.marginLeft),o.top-=e-c,o.bottom-=e-c,o.left-=n-s,o.right-=n-s,o.marginTop=c,o.marginLeft=s),o=(y&&!v?u.contains(a):u===a&&"BODY"!==a.nodeName)?function(n,t,i){var r=2<arguments.length&&void 0!==i&&i,i=f(t,"top"),t=f(t,"left"),r=r?-1:1;return n.top+=i*r,n.bottom+=i*r,n.left+=t*r,n.right+=t*r,n}(o,u):o}function ht(n){if(!n||!n.parentElement||r())return document.documentElement;for(var t=n.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(n,r,u,e,o){var v=4<arguments.length&&void 0!==o&&o,c={top:0,left:0},l=v?ht(n):a(n,rt(r)),s;return"viewport"===e?c=function(n,i){var e=1<arguments.length&&void 0!==i&&i,r=n.ownerDocument.documentElement,u=b(n,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),n=e?0:f(r),r=e?0:f(r,"left");return t({top:n-u.top+u.marginTop,left:r-u.left+u.marginLeft,width:o,height:i})}(l,v):(o=void 0,"scrollParent"===e?"BODY"===(o=h(y(r))).nodeName&&(o=n.ownerDocument.documentElement):o="window"===e?n.ownerDocument.documentElement:e,s=b(o,l,v),"HTML"!==o.nodeName||function n(t){var r=t.nodeName;return"BODY"===r||"HTML"===r?!1:"fixed"===i(t,"position")?!0:(t=y(t),!!t&&n(t))}(l)?c=s:(n=(l=ot(n.ownerDocument)).height,l=l.width,c.top+=s.top-s.marginTop,c.bottom=n+s.top,c.left+=s.left-s.marginLeft,c.right=l+s.left)),s="number"==typeof(u=u||0),c.left+=s?u:u.left||0,c.top+=s?u:u.top||0,c.right-=s?u:u.right||0,c.bottom-=s?u:u.bottom||0,c}function ct(t,i,r,u,f,e){if(e=5<arguments.length&&void 0!==e?e:0,-1===t.indexOf("auto"))return t;var f=k(r,u,e,f),o={top:{width:f.width,height:i.top-f.top},right:{width:f.right-i.right,height:f.height},bottom:{width:f.width,height:f.bottom-i.bottom},left:{width:i.left-f.left,height:f.height}},i=Object.keys(o).map(function(t){return n({key:t},o[t],{area:(t=o[t]).width*t.height})}).sort(function(n,t){return t.area-n.area}),f=i.filter(function(n){var t=n.width,n=n.height;return t>=r.clientWidth&&n>=r.clientHeight}),i=(0<f.length?f:i)[0].key,t=t.split("-")[1];return i+(t?"-"+t:"")}function lt(n,t,i,r){return r=3<arguments.length&&void 0!==r?r:null,b(i,r?ht(t):a(t,rt(i)),r)}function at(n){var t=n.ownerDocument.defaultView.getComputedStyle(n),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+t,height:n.offsetHeight+i}}function v(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 vt(n,t,i){i=i.split("-")[0];var u=at(n),e={width:u.width,height:u.height},r=-1!==["right","left"].indexOf(i),o=r?"top":"left",f=r?"left":"top",n=r?"height":"width",r=r?"width":"height";return e[o]=t[o]+t[n]/2-u[n]/2,e[f]=i===f?t[f]-u[r]:t[v(f)],e}function l(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function yt(n,i,r){return(void 0===r?n:n.slice(0,function(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=l(n,function(n){return n[t]===i});return n.indexOf(r)}(n,"name",r))).forEach(function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n.function||n.fn;n.enabled&&it(r)&&(i.offsets.popper=t(i.offsets.popper),i.offsets.reference=t(i.offsets.reference),i=r(i,n))}),i}function pt(n,t){return n.some(function(n){var i=n.name;return n.enabled&&i===t})}function d(n){for(var t,r=[!1,"ms","Webkit","Moz","O"],u=n.charAt(0).toUpperCase()+n.slice(1),i=0;i<r.length;i++)if(t=r[i],t=t?""+t+u:n,void 0!==document.body.style[t])return t;return null}function wt(n){return n=n.ownerDocument,n?n.defaultView:window}function ri(n,t,i,r){return i.updateBound=r,wt(n).addEventListener("resize",i.updateBound,{passive:!0}),n=h(n),function n(t,i,r,u){var f="BODY"===t.nodeName,t=f?t.ownerDocument.defaultView:t;t.addEventListener(i,r,{passive:!0});f||n(h(t.parentNode),i,r,u);u.push(t)}(n,"scroll",i.updateBound,i.scrollParents),i.scrollElement=n,i.eventsEnabled=!0,i}function ui(){var t,n;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,n=this.state,wt(t).removeEventListener("resize",n.updateBound),n.scrollParents.forEach(function(t){t.removeEventListener("scroll",n.updateBound)}),n.updateBound=null,n.scrollParents=[],n.scrollElement=null,n.eventsEnabled=!1,n))}function g(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function nt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&g(t[i])&&(r="px");n.style[i]=t[i]+r})}function bt(n,t,i){var r=l(n,function(n){return n.name===t}),u=!!r&&n.some(function(n){return n.name===i&&n.enabled&&n.order<r.order});return u||(n="`"+t+"`",console.warn("`"+i+"` modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")),u}function dt(n,t){return t=1<arguments.length&&void 0!==t&&t,n=tt.indexOf(n),n=tt.slice(n+1).concat(tt.slice(0,n)),t?n.reverse():n}function hi(n,i,r,u){var e=[0,0],o=-1!==["right","left"].indexOf(u),f=n.split(/(\+|\-)/).map(function(n){return n.trim()}),u=f.indexOf(l(f,function(n){return-1!==n.search(/,|\s/)}));return f[u]&&-1===f[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),n=/\s*,\s*|\s+/,(-1!==u?[f.slice(0,u).concat([f[u].split(n)[0]]),[f[u].split(n)[1]].concat(f.slice(u+1))]:[f]).map(function(n,u){var e=(1===u?!o:o)?"height":"width",f=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,f=!0,n):f?(n[n.length-1]+=t,f=!1,n):n.concat(t)},[]).map(function(n){return o=e,s=i,h=r,n=+(u=(f=n).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],u=u[2],n?0===u.indexOf("%")?t("%p"===u?s:h)[o]/100*n:"vh"!==u&&"vw"!==u?n:("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*n:f;var f,o,s,h,u})}).forEach(function(n,t){n.forEach(function(i,r){g(i)&&(e[t]+=i*("-"===n[r-1]?-1:1))})}),e}function o(t,i){var r=this,u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ii(this,o);this.scheduleUpdate=function(){return requestAnimationFrame(r.update)};this.update=ni(this.update.bind(this));this.options=n({},o.Defaults,u);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=i&&i.jquery?i[0]:i;this.options.modifiers={};Object.keys(n({},o.Defaults.modifiers,u.modifiers)).forEach(function(t){r.options.modifiers[t]=n({},o.Defaults.modifiers[t]||{},u.modifiers?u.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},r.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&it(n.onLoad)&&n.onLoad(r.reference,r.popper,r.options,n,r.state)});this.update();i=this.options.eventsEnabled;i&&this.enableEventListeners();this.state.eventsEnabled=i}var s="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,gt=function(){for(var t=["Edge","Trident","Firefox"],n=0;n<t.length;n+=1)if(s&&0<=navigator.userAgent.indexOf(t[n]))return 1;return 0}(),ni=s&&window.Promise?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},gt))}},ut=s&&!(!window.MSInputMethodContext||!document.documentMode),ti=s&&/MSIE 10/.test(navigator.userAgent),ii=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},c=function(n,t,i){return t&&st(n.prototype,t),i&&st(n,i),n},n=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},fi=s&&/Firefox/i.test(navigator.userAgent),kt=["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"],tt=kt.slice(3),ei="flip",oi="clockwise",si="counterclockwise",ci={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var f,i,u=t.placement,r=u.split("-")[0],o=u.split("-")[1];return o&&(f=(i=t.offsets).reference,u=i.popper,r=(i=-1!==["bottom","top"].indexOf(r))?"width":"height",r={start:e({},i=i?"left":"top",f[i]),end:e({},i,f[i]+f[r]-u[r])},t.offsets.popper=n({},u,r[o])),t}},offset:{order:200,enabled:!0,fn:function(n,t){var f=t.offset,r=n.placement,i=(u=n.offsets).popper,t=u.reference,u=r.split("-")[0],r=void 0,r=g(+f)?[+f,0]:hi(f,i,t,u);return"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,i){var s=i.boundariesElement||u(t.instance.popper),o;t.instance.reference===s&&(s=u(s));var h=d("transform"),f=t.instance.popper.style,l=f.top,a=f.left,c=f[h];f.top="";f.left="";f[h]="";o=k(t.instance.popper,t.instance.reference,i.padding,s,t.positionFixed);f.top=l;f.left=a;f[h]=c;i.boundaries=o;var c=i.priority,r=t.offsets.popper,v={primary:function(n){var t=r[n];return r[n]<o[n]&&!i.escapeWithReference&&(t=Math.max(r[n],o[n])),e({},n,t)},secondary:function(n){var t="right"===n?"left":"top",u=r[t];return r[n]>o[n]&&!i.escapeWithReference&&(u=Math.min(r[t],o[n]-("right"===n?r.width:r.height))),e({},t,u)}};return c.forEach(function(t){var i=-1!==["left","top"].indexOf(t)?"primary":"secondary";r=n({},r,v[i](t))}),t.offsets.popper=r,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var e=(i=n.offsets).popper,r=i.reference,t=n.placement.split("-")[0],u=Math.floor,i=(f=-1!==["top","bottom"].indexOf(t))?"right":"bottom",t=f?"left":"top",f=f?"width":"height";return e[i]<u(r[t])&&(n.offsets.popper[t]=u(r[t])-e[f]),e[t]>u(r[i])&&(n.offsets.popper[t]=u(r[i])),n}},arrow:{order:500,enabled:!0,fn:function(n,r){var u;if(!bt(n.instance.modifiers,"arrow","keepTogether"))return n;if(u=r.element,"string"==typeof u){if(!(u=n.instance.popper.querySelector(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 c=n.placement.split("-")[0],a=(s=n.offsets).popper,h=s.reference,l=-1!==["left","right"].indexOf(c),v=l?"height":"width",f=l?"Top":"Left",o=f.toLowerCase(),r=l?"left":"top",s=l?"bottom":"right",c=at(u)[v];return h[s]-c<a[o]&&(n.offsets.popper[o]-=a[o]-(h[s]-c)),h[o]+c>a[s]&&(n.offsets.popper[o]+=h[o]+c-a[s]),n.offsets.popper=t(n.offsets.popper),l=h[o]+h[v]/2-c/2,s=i(n.instance.popper),h=parseFloat(s["margin"+f]),f=parseFloat(s["border"+f+"Width"]),f=l-n.offsets.popper[o]-h-f,f=Math.max(Math.min(a[v]-c,f),0),n.arrowElement=u,n.offsets.arrow=(e(u={},o,Math.round(f)),e(u,r,""),u),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(pt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=v(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case ei:f=[r,o];break;case oi:f=dt(r);break;case si:f=dt(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=v(r);var l=t.offsets.popper,y=t.offsets.reference,c=Math.floor,b="left"===r&&c(l.right)>c(y.left)||"right"===r&&c(l.left)<c(y.right)||"top"===r&&c(l.bottom)>c(y.top)||"bottom"===r&&c(l.top)<c(y.bottom),p=c(l.left)<c(e.left),w=c(l.right)>c(e.right),a=c(l.top)<c(e.top),s=c(l.bottom)>c(e.bottom),y="left"===r&&p||"right"===r&&w||"top"===r&&a||"bottom"===r&&s,l=-1!==["top","bottom"].indexOf(r),c=!!i.flipVariations&&(l&&"start"===u&&p||l&&"end"===u&&w||!l&&"start"===u&&a||!l&&"end"===u&&s),a=!!i.flipVariationsByContent&&(l&&"start"===u&&w||l&&"end"===u&&p||!l&&"start"===u&&s||!l&&"end"===u&&a),a=c||a;(b||y||a)&&(t.flipped=!0,(b||y)&&(r=f[h+1]),a&&(u="end"===(a=u)?"start":"start"===a?"end":a),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,vt(t.instance.popper,t.offsets.reference,t.placement)),t=yt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(n){var f=n.placement,i=f.split("-")[0],r=(u=n.offsets).popper,o=u.reference,e=-1!==["left","right"].indexOf(i),u=-1===["top","left"].indexOf(i);return r[e?"left":"top"]=o[i]-(u?r[e?"width":"height"]:0),n.placement=v(f),n.offsets.popper=t(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!bt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=l(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var p=i.x,b=i.y,v=t.offsets.popper;void 0!==(r=l(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,y,h,c,g=void 0!==r?r:i.gpuAcceleration,a=u(t.instance.popper),k=w(a),o={position:v.position},e=(s=t,e=window.devicePixelRatio<2||!fi,f=(c=s.offsets).popper,y=c.reference,h=Math.round,r=Math.floor,i=function(n){return n},v=h(y.width),c=h(f.width),y=-1!==["left","right"].indexOf(s.placement),s=-1!==s.placement.indexOf("-"),r=e?y||s||v%2==c%2?h:r:i,i=e?h:i,{left:r(v%2==1&&c%2==1&&!s&&e?f.left-1:f.left),top:i(f.top),bottom:i(f.bottom),right:r(f.right)}),i="bottom"===p?"top":"bottom",r="right"===b?"left":"right",f=d("transform"),p=void 0,b=void 0,b="bottom"==i?"HTML"===a.nodeName?-a.clientHeight+e.bottom:-k.height+e.bottom:e.top,p="right"==r?"HTML"===a.nodeName?-a.clientWidth+e.right:-k.width+e.right:e.left;return g&&f?(o[f]="translate3d("+p+"px, "+b+"px, 0)",o[i]=0,o[r]=0,o.willChange="transform"):(f="right"==r?-1:1,o[i]=b*("bottom"==i?-1:1),o[r]=p*f,o.willChange=i+", "+r),r={"x-placement":t.placement},t.attributes=n({},r,t.attributes),t.styles=n({},o,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){var i,t;return nt(n.instance.popper,n.styles),i=n.instance.popper,t=n.attributes,Object.keys(t).forEach(function(n){!1!==t[n]?i.setAttribute(n,t[n]):i.removeAttribute(n)}),n.arrowElement&&Object.keys(n.arrowStyles).length&&nt(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){return u=lt(u,t,n,i.positionFixed),n=ct(i.placement,u,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding),t.setAttribute("x-placement",n),nt(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},c=(c(o,[{key:"update",value:function(){return function(){var n;this.state.isDestroyed||((n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=lt(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=ct(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.positionFixed=this.options.positionFixed,n.offsets.popper=vt(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=yt(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,pt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[d("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=ri(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return ui.call(this)}}]),o);return c.Utils=("undefined"!=typeof window?window:global).PopperUtils,c.placements=kt,c.Defaults=ci,c}),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],t):n.Tooltip=t(n.Popper)}(this,function(n){"use strict";function f(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 r(n,i){u(this,r);e.call(this);i=t({},o,i);n.jquery&&(n=n[0]);this.reference=n;var f="string"==typeof(this.options=i).trigger?i.trigger.split(" ").filter(function(n){return-1!==["click","hover","focus"].indexOf(n)}):[];this._isOpen=!1;this._popperOptions={};this._setEventListeners(n,f,i)}var u,i,e;n=n&&n.hasOwnProperty("default")?n.default:n;u=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");};i=function(n,t,i){return t&&f(n.prototype,t),i&&f(n,i),n};var t=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},o={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},i=(i(r,[{key:"_create",value:function(n,t,i,r){var u=window.document.createElement("div");return u.innerHTML=t.trim(),t=u.childNodes[0],t.id="tooltip_"+Math.random().toString(36).substr(2,10),t.setAttribute("aria-hidden","false"),u=u.querySelector(this.options.innerSelector),this._addTitleContent(n,i,r,u),t}},{key:"_addTitleContent",value:function(n,t,i,r){var u;1===t.nodeType||11===t.nodeType?i&&r.appendChild(t):(u=t)&&"[object Function]"==={}.toString.call(u)?this._addTitleContent(n,t.call(n),i,r):i?r.innerHTML=t:r.textContent=t}},{key:"_show",value:function(i,r){var u,f;return this._isOpen&&!this._isOpening?this:(this._isOpen=!0,this._tooltipNode)?(this._tooltipNode.style.visibility="visible",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this):(u=i.getAttribute("title")||r.title,!u)?this:(f=this._create(i,r.template,u,r.html),i.setAttribute("aria-describedby",f.id),u=this._findContainer(r.container,i),this._append(f,u),this._popperOptions=t({},r.popperOptions,{placement:r.placement}),this._popperOptions.modifiers=t({},this._popperOptions.modifiers,{arrow:t({},this._popperOptions.modifiers&&this._popperOptions.modifiers.arrow,{element:r.arrowSelector}),offset:t({},this._popperOptions.modifiers&&this._popperOptions.modifiers.offset,{offset:r.offset||this._popperOptions.modifiers&&this._popperOptions.modifiers.offset&&this._popperOptions.modifiers.offset.offset||r.offset})}),r.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:r.boundariesElement}),this.popperInstance=new n(i,f,this._popperOptions),this._tooltipNode=f,this)}},{key:"_hide",value:function(){return this._isOpen&&(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true")),this}},{key:"_dispose",value:function(){var n=this;return this._events.forEach(function(t){var i=t.func,t=t.event;n.reference.removeEventListener(t,i)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(n,t){return"string"==typeof n?n=window.document.querySelector(n):!1===n&&(n=t.parentNode),n}},{key:"_append",value:function(n,t){t.appendChild(n)}},{key:"_setEventListeners",value:function(n,t,i){var r=this,u=[],f=[];t.forEach(function(n){switch(n){case"hover":u.push("mouseenter");f.push("mouseleave");break;case"focus":u.push("focus");f.push("blur");break;case"click":u.push("click");f.push("click")}});u.forEach(function(t){function u(t){!0!==r._isOpening&&(t.usedByTooltip=!0,r._scheduleShow(n,i.delay,i,t))}r._events.push({event:t,func:u});n.addEventListener(t,u)});f.forEach(function(t){function u(t){!0!==t.usedByTooltip&&r._scheduleHide(n,i.delay,i,t)}r._events.push({event:t,func:u});n.addEventListener(t,u);"click"===t&&i.closeOnClickOutside&&document.addEventListener("mousedown",function(t){var i;r._isOpening&&(i=r.popperInstance.popper,n.contains(t.target)||i.contains(t.target)||u(t))},!0)})}},{key:"_scheduleShow",value:function(n,t,i){var r=this;this._isOpening=!0;t=t&&t.show||t||0;this._showTimeout=window.setTimeout(function(){return r._show(n,i)},t)}},{key:"_scheduleHide",value:function(n,t,i,r){var u=this,f;this._isOpening=!1;f=t&&t.hide||t||0;window.clearTimeout(this._showTimeout);window.setTimeout(function(){if(!1!==u._isOpen&&document.body.contains(u._tooltipNode)){if("mouseleave"===r.type&&u._setTooltipNodeEvent(r,n,t,i))return;u._hide(n,i)}},f)}},{key:"_updateTitleContent",value:function(n){var t;void 0!==this._tooltipNode?(t=this._tooltipNode.querySelector(this.options.innerSelector),this._clearTitleContent(t,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,n,this.options.html,t),this.options.title=n,this.popperInstance.update()):void 0!==this.options.title&&(this.options.title=n)}},{key:"_clearTitleContent",value:function(n,t,i){1===i.nodeType||11===i.nodeType?t&&n.removeChild(i):t?n.innerHTML="":n.textContent=""}}]),r);return e=function(){var n=this;this.show=function(){return n._show(n.reference,n.options)};this.hide=function(){return n._hide()};this.dispose=function(){return n._dispose()};this.toggle=function(){return n._isOpen?n.hide():n.show()};this.updateTitleContent=function(t){return n._updateTitleContent(t)};this._events=[];this._setTooltipNodeEvent=function(t,i,r,u){function f(r){var e=r.relatedreference||r.toElement||r.relatedTarget;n._tooltipNode.removeEventListener(t.type,f);i.contains(e)||n._scheduleHide(i,u.delay,u,r)}var e=t.relatedreference||t.toElement||t.relatedTarget;return!!n._tooltipNode.contains(e)&&(n._tooltipNode.addEventListener(t.type,f),!0)}},i}),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).stickybits=t()}(this,function(){"use strict";function n(){return(n=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n}).apply(this,arguments)}var t=function(){function i(n,t){var s=this,i=void 0!==t?t:{},f,u,e;this.version="3.7.9";this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser";this.props={customStickyChangeNumber:i.customStickyChangeNumber||null,noStyles:i.noStyles||!1,stickyBitStickyOffset:i.stickyBitStickyOffset||0,parentClass:i.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof i.scrollEl?document.querySelector(i.scrollEl):i.scrollEl||window,stickyClass:i.stickyClass||"js-is-sticky",stuckClass:i.stuckClass||"js-is-stuck",stickyChangeClass:i.stickyChangeClass||"js-is-sticky--change",useStickyClasses:i.useStickyClasses||!1,useFixed:i.useFixed||!1,useGetBoundingClientRect:i.useGetBoundingClientRect||!1,verticalPosition:i.verticalPosition||"top",applyStyle:i.applyStyle||function(n,t){return s.applyStyle(n,t)}};this.props.positionVal=this.definePosition()||"fixed";this.instances=[];var r=this.props,t=r.positionVal,o=r.verticalPosition,i=r.noStyles,r=r.stickyBitStickyOffset,h="top"!==o||i?"":r+"px",c="fixed"!==t?t:"";for(this.els="string"==typeof n?document.querySelectorAll(n):n,("length"in this.els)||(this.els=[this.els]),f=0;f<this.els.length;f++)u=this.els[f],e=this.addInstance(u,this.props),this.props.applyStyle({styles:((u={})[o]=h,u.position=c,u),classes:{}},e),this.manageState(e),this.instances.push(e)}var t=i.prototype;return t.definePosition=function(){var n;if(this.props.useFixed)n="fixed";else{for(var r=["","-o-","-webkit-","-moz-","-ms-"],t=document.head.style,i=0;i<r.length;i+=1)t.position=r[i]+"sticky";n=t.position||"fixed";t.position=""}return n},t.addInstance=function(n,t){var r=this,i={el:n,parent:n.parentNode,props:t};return"fixed"!==t.positionVal&&!t.useStickyClasses||(this.isWin=this.props.scrollEl===window,n=this.isWin?window:this.getClosestParent(i.el,i.props.scrollEl),this.computeScrollOffsets(i),this.toggleClasses(i.parent,"",t.parentClass),i.state="default",i.stateChange="default",i.stateContainer=function(){return r.manageState(i)},n.addEventListener("scroll",i.stateContainer)),i},t.getClosestParent=function(n,t){var i=t,r=n;if(r.parentElement===i)return i;for(;r.parentElement!==i;)r=r.parentElement;return i},t.getTopPosition=function(n){if(this.props.useGetBoundingClientRect)return n.getBoundingClientRect().top+(this.props.scrollEl.pageYOffset||document.documentElement.scrollTop);for(var t=0;t=n.offsetTop+t,n=n.offsetParent;);return t},t.computeScrollOffsets=function(n){var t=n,i=t.props,f=t.el,r=t.parent,u=!this.isWin&&"fixed"===i.positionVal,e="bottom"!==i.verticalPosition,o=u?this.getTopPosition(i.scrollEl):0,s=u?this.getTopPosition(r)-o:this.getTopPosition(r),n=null!==i.customStickyChangeNumber?i.customStickyChangeNumber:f.offsetHeight,r=s+r.offsetHeight;t.offset=u?0:o+i.stickyBitStickyOffset;t.stickyStart=e?s-t.offset:0;t.stickyChange=t.stickyStart+n;t.stickyStop=e?r-(f.offsetHeight+t.offset):r-window.innerHeight},t.toggleClasses=function(n,t,i){var r=n,n=r.className.split(" ");i&&-1===n.indexOf(i)&&n.push(i);t=n.indexOf(t);-1!==t&&n.splice(t,1);r.className=n.join(" ")},t.manageState=function(t){var w=this,i=t,r=i.props,f=i.state,b=i.stateChange,a=i.stickyStart,v=i.stickyChange,e=i.stickyStop,s=r.positionVal,y=r.scrollEl,h=r.stickyClass,k=r.stickyChangeClass,c=r.stuckClass,o=r.verticalPosition,d=r.applyStyle,g=r.noStyles,p=function(n){n()},nt=this.isWin&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame)||p,u=this.isWin?window.scrollY||window.pageYOffset:y.scrollTop,p="bottom"!==o&&u<=a&&("sticky"===f||"stuck"===f),y=e<=u&&"sticky"===f,l;a<u&&u<e&&("default"===f||"stuck"===f)?i.state="sticky":p?i.state="default":y&&(i.state="stuck");l=v<=u&&u<=e;u<v/2||e<u?i.stateChange="default":l&&(i.stateChange="sticky");f===i.state&&b===i.stateChange||nt(function(){var f={sticky:{styles:((u={position:s,top:"",bottom:""})[o]=r.stickyBitStickyOffset+"px",u),classes:((f={})[h]=!0,f)},"default":{styles:((u={})[o]="",u),classes:{}},stuck:{styles:n(((f={})[o]="",f),"fixed"===s&&!g||!w.isWin?{position:"absolute",top:"",bottom:"0"}:{}),classes:((u={})[c]=!0,u)}},u;"fixed"===s&&(f.default.styles.position="");u=f[i.state];u.classes=((f={})[c]=!!u.classes[c],f[h]=!!u.classes[h],f[k]=l,f);d(u,t)})},t.applyStyle=function(n,t){var i,e,u=n.styles,o=n.classes,n=t.el,t=t.props,s=n.style,t=t.noStyles,r=n.className.split(" "),f;for(i in o)o[i]?-1===r.indexOf(i)&&r.push(i):-1!==(e=r.indexOf(i))&&r.splice(e,1);if(n.className=r.join(" "),u.position&&(s.position=u.position),!t)for(f in u)s[f]=u[f]},t.update=function(n){var t=this;return void 0===n&&(n=null),this.instances.forEach(function(i){if(t.computeScrollOffsets(i),n)for(var r in n)i.props[r]=n[r]}),this},t.removeInstance=function(n){var t,r=n.el,i=n.props;this.applyStyle({styles:((t={position:""})[i.verticalPosition]="",t),classes:((t={})[i.stickyClass]="",t[i.stuckClass]="",t)},n);this.toggleClasses(r.parentNode,i.parentClass)},t.cleanup=function(){for(var n,t=0;t<this.instances.length;t+=1)n=this.instances[t],n.stateContainer&&n.props.scrollEl.removeEventListener("scroll",n.stateContainer),this.removeInstance(n);this.manageState=!1;this.instances=[]},i}();return function(n,i){return new t(n,i)}}),function(n){function o(){for(var t=document.querySelectorAll("picture > img, img[srcset][sizes]"),n=0;n<t.length;n++)!function(n){var r,u,t=n.parentNode;"PICTURE"===t.nodeName.toUpperCase()?(r=i.cloneNode(),t.insertBefore(r,t.firstElementChild),setTimeout(function(){t.removeChild(r)})):(!n._pfLastSize||n.offsetWidth>n._pfLastSize)&&(n._pfLastSize=n.offsetWidth,u=n.sizes,n.sizes+=",100vw",setTimeout(function(){n.sizes=u}))}(t[n])}function r(){clearTimeout(u);u=setTimeout(o,99)}function e(){r();t&&t.addListener&&t.addListener(r)}var u,i,t,f=navigator.userAgent;n.HTMLPictureElement&&/ecko/.test(f)&&f.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(i=document.createElement("source"),t=n.matchMedia&&matchMedia("(orientation: landscape)"),i.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?e():document.addEventListener("DOMContentLoaded",e),r))}(window),function(n,t,i){"use strict";function w(){}function bt(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent&&n.attachEvent("on"+t,i)}function g(n){return" "===n||"\t"===n||"\n"===n||"\f"===n||"\r"===n}function ct(n,t){return n.w?(n.cWidth=r.calcListLength(t||"100vw"),n.res=n.w/n.cWidth):n.res=n.d,n}function gi(n,t){return n.res-t.res}function ci(n,t){var i,f,u;if(n&&t)for(u=r.parseSet(t),n=r.makeUrl(n),i=0;i<u.length;i++)if(n===r.makeUrl(u[i].url)){f=u[i];break}return f}function nr(n,t){function h(t){var t=t.exec(n.substring(e));if(t)return t=t[0],e+=t.length,t}function s(){for(var e,r,s,a,h,l,u,n=!1,i={},v=0;v<f.length;v++)a=(u=f[v])[u.length-1],h=u.substring(0,u.length-1),l=parseInt(h,10),u=parseFloat(h),ii.test(h)&&"w"===a?((e||r)&&(n=!0),0===l?n=!0:e=l):di.test(h)&&"x"===a?((e||r||s)&&(n=!0),u<0?n=!0:r=u):ii.test(h)&&"h"===a?((s||r)&&(n=!0),0===l?n=!0:s=l):n=!0;n||(i.url=o,e&&(i.w=e),r&&(i.d=r),s&&(i.h=s),s||r||e||(i.d=1),1===i.d&&(t.has1x=!0),i.set=t,c.push(i))}for(var o,f,i,u,r,l=n.length,e=0,c=[];;){if(h(wi),l<=e)return c;o=h(bi);f=[];","===o.slice(-1)?(o=o.replace(ki,""),s()):function(){for(h(pi),i="",u="in descriptor";;){if(r=n.charAt(e),"in descriptor"===u)if(g(r))i&&(f.push(i),i="",u="after descriptor");else{if(","===r)return e+=1,i&&f.push(i),s();if("("===r)i+=r,u="in parens";else{if(""===r)return i&&f.push(i),s();i+=r}}else if("in parens"===u)if(")"===r)i+=r,u="in descriptor";else{if(""===r)return f.push(i),s();i+=r}else if("after descriptor"===u&&!g(r)){if(""===r)return s();u="in descriptor";--e}e+=1}}()}}function tr(n){for(var e,t,u,i,o=(e=function(n){function f(){r&&(u.push(r),r="")}function h(){u[0]&&(s.push(u),u=[])}for(var i,r="",u=[],s=[],e=0,t=0,o=!1;;){if(""===(i=n.charAt(t)))return f(),h(),s;if(o)"*"!==i||"/"!==n[t+1]?t+=1:(o=!1,t+=2,f());else{if(g(i)){if(n.charAt(t-1)&&g(n.charAt(t-1))||!r){t+=1;continue}if(0===e){f();t+=1;continue}i=" "}else if("("===i)e+=1;else if(")"===i)--e;else{if(","===i){f();h();t+=1;continue}if("/"===i&&"*"===n.charAt(t+1)){o=!0;t+=2;continue}}r+=i;t+=1}}}(n)).length,f=0;f<o;f++)if((u=(t=e[f])[t.length-1],i=u,/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i.test(i)&&0<=parseFloat(i)||/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i.test(i)||"0"===i||"-0"===i||"+0"===i)&&((u=u,t.pop(),0===t.length)||(t=t.join(" "),r.matchesMedia(t))))return u;return"100vw"}function li(){2===a.width&&(r.supSizes=!0);wt=r.supSrcset&&!r.supSizes;ut=!0;setTimeout(f)}var v,wt,p,ri,ui,l,a,fi,ei,nt,tt,oi,lt,si,it,at,vt,yt,hi,rt,pt,f;t.createElement("picture");var r={},ut=!1,s=t.createElement("img"),ft=s.getAttribute,kt=s.setAttribute,dt=s.removeAttribute,e=t.documentElement,o={},b={algorithm:""},et="data-pfsrc",gt=et+"set",h=navigator.userAgent,ai=/rident/.test(h)||/ecko/.test(h)&&h.match(/rv\:(\d+)/)&&35<RegExp.$1,ot="currentSrc",vi=/\s+\+?\d+(e\d+)?w/,yi=/(\([^)]+\))?\s*(.+)/,st=n.picturefillCFG,ni="font-size:100%!important;",k=!0,c={},d={},y=n.devicePixelRatio,u={px:1,"in":96},ti=t.createElement("a"),ht=!1,pi=/^[ \t\n\r\u000c]+/,wi=/^[, \t\n\r\u000c]+/,bi=/^[^ \t\n\r\u000c]+/,ki=/[,]+$/,ii=/^\d+$/,di=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h=function(n){var t={};return function(i){return i in t||(t[i]=n(i)),t[i]}};for(pt=(ri=/^([\d\.]+)(em|vw|px)$/,ui=h(function(n){return"return "+function(){for(var n=arguments,t=0,i=n[0];++t in n;)i=i.replace(n[t],n[++t]);return i}((n||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(n,t){var i;if(!(n in c))if(c[n]=!1,t&&(i=n.match(ri)))c[n]=i[1]*u[i[2]];else try{c[n]=new Function("e",ui(n))(u)}catch(n){}return c[n]}),f=function(n){if(ut){var f,u,e,i=n||{};if(i.elements&&1===i.elements.nodeType&&("IMG"===i.elements.nodeName.toUpperCase()?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),e=(f=i.elements||r.qsa(i.context||t,i.reevaluate||i.reselect?r.sel:r.selShort)).length){for(r.setupRun(i),ht=!0,u=0;u<e;u++)r.fillImg(f[u],i);r.teardownRun(i)}}},n.console&&console.warn,(ot in s)||(ot="src"),o["image/jpeg"]=!0,o["image/gif"]=!0,o["image/png"]=!0,o["image/svg+xml"]=t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r.ns=("pf"+(new Date).getTime()).substr(0,9),r.supSrcset=("srcset"in s),r.supSizes=("sizes"in s),r.supPicture=!!n.HTMLPictureElement,r.supSrcset&&r.supPicture&&!r.supSizes&&(l=t.createElement("img"),s.srcset="data:,a",l.src="data:,a",r.supSrcset=s.complete===l.complete,r.supPicture=r.supSrcset&&r.supPicture),r.supSrcset&&!r.supSizes?(l="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",(a=t.createElement("img")).onload=li,a.onerror=li,a.setAttribute("sizes","9px"),a.srcset=l+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",a.src=l):ut=!0,r.selShort="picture>img,img[srcset]",r.sel=r.selShort,r.cfg=b,r.DPR=y||1,r.u=u,r.types=o,r.setSize=w,r.makeUrl=h(function(n){return ti.href=n,ti.href}),r.qsa=function(n,t){return"querySelector"in n?n.querySelectorAll(t):[]},r.matchesMedia=function(){return r.matchesMedia=n.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?function(n){return!n||matchMedia(n).matches}:r.mMQ,r.matchesMedia.apply(this,arguments)},r.mMQ=function(n){return!n||pt(n)},r.calcLength=function(n){return n=pt(n,!0)||!1,n<0?!1:n},r.supportsType=function(n){return!n||o[n]},r.parseSize=h(function(n){return n=(n||"").match(yi),{media:n&&n[1],length:n&&n[2]}}),r.parseSet=function(n){return n.cands||(n.cands=nr(n.srcset,n)),n.cands},r.getEmValue=function(){var n,i,r,u;return!v&&(n=t.body)&&(i=t.createElement("div"),r=e.style.cssText,u=n.style.cssText,i.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",e.style.cssText=ni,n.style.cssText=ni,n.appendChild(i),v=i.offsetWidth,n.removeChild(i),v=parseFloat(v,10),e.style.cssText=r,n.style.cssText=u),v||16},r.calcListLength=function(n){var t;return n in d&&!b.uT||(t=r.calcLength(tr(n)),d[n]=t||u.width),d[n]},r.setRes=function(n){if(n)for(var t,i=0,u=(t=r.parseSet(n)).length;i<u;i++)ct(t[i],n.sizes);return t},r.setRes.res=ct,r.applySetCandidate=function(n,t){if(n.length){var h,o,c,d,u,g,l,e,f,p,s,nt,w,a,v=t[r.ns],y=r.DPR,k=v.curSrc||t[ot],i=v.curCan||(l=t,e=k,i=n[0].set,(i=ci(e,i=!i&&e?(i=l[r.ns].sets)&&i[i.length-1]:i))&&(e=r.makeUrl(e),l[r.ns].curSrc=e,(l[r.ns].curCan=i).res||ct(i,i.set.sizes)),i);if(i&&i.set===n[0].set&&((g=ai&&!t.complete&&i.res-.1>y)||(i.cached=!0,i.res>=y&&(u=i))),!u)for(n.sort(gi),u=n[(d=n.length)-1],o=0;o<d;o++)if((h=n[o]).res>=y){u=n[c=o-1]&&(g||k!==r.makeUrl(h.url))&&(f=n[c].res,p=h.res,s=y,nt=n[c].cached,a=w=void 0,f="saveData"===b.algorithm?2.7<f?s+1:(a=(p-s)*(w=Math.pow(f-.6,1.5)),nt&&(a+=.1*w),f+a):1<s?Math.sqrt(f*p):f,s<f)?n[c]:h;break}u&&(i=r.makeUrl(u.url),v.curSrc=i,v.curCan=u,i!==k&&r.setSrc(t,u),r.setSize(t))}},r.setSrc=function(n,t){n.src=t.url;"image/svg+xml"===t.set.type&&(t=n.style.width,n.style.width=n.offsetWidth+1+"px",n.offsetWidth+1&&(n.style.width=t))},r.getSet=function(n){for(var t,i,u=!1,e=n[r.ns].sets,f=0;f<e.length&&!u;f++)if((t=e[f]).srcset&&r.matchesMedia(t.media)&&(i=r.supportsType(t.type))){u=t="pending"===i?i:t;break}return u},r.parseSets=function(n,t,u){var o,e,s,h,c=t&&"PICTURE"===t.nodeName.toUpperCase(),f=n[r.ns];(f.src===i||u.src)&&(f.src=ft.call(n,"src"),f.src?kt.call(n,et,f.src):dt.call(n,et));f.srcset!==i&&!u.srcset&&r.supSrcset&&!n.srcset||(o=ft.call(n,"srcset"),f.srcset=o,h=!0);f.sets=[];c&&(f.pic=!0,function(n,t){for(var i,f,e=n.getElementsByTagName("source"),u=0,o=e.length;u<o;u++)(i=e[u])[r.ns]=!0,(f=i.getAttribute("srcset"))&&t.push({srcset:f,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}(t,f.sets));f.srcset?(e={srcset:f.srcset,sizes:ft.call(n,"sizes")},f.sets.push(e),(s=(wt||f.src)&&vi.test(f.srcset||""))||!f.src||ci(f.src,e)||e.has1x||(e.srcset+=", "+f.src,e.cands.push({url:f.src,d:1,set:e}))):f.src&&f.sets.push({srcset:f.src,sizes:null});f.curCan=null;f.curSrc=i;f.supported=!(c||e&&!r.supSrcset||s&&!r.supSizes);h&&r.supSrcset&&!f.supported&&(o?(kt.call(n,gt,o),n.srcset=""):dt.call(n,gt));f.supported&&!f.srcset&&(!f.src&&n.src||n.src!==r.makeUrl(f.src))&&(null===f.src?n.removeAttribute("src"):n.src=f.src);f.parsed=!0},r.fillImg=function(n,t){var i,u=t.reselect||t.reevaluate;n[r.ns]||(n[r.ns]={});i=n[r.ns];!u&&i.evaled===p||(i.parsed&&!t.reevaluate||r.parseSets(n,n.parentNode,t),i.supported?i.evaled=p:(t=n,i=r.getSet(t),n=!1,"pending"!==i&&(n=p,i&&(i=r.setRes(i),r.applySetCandidate(i,t))),t[r.ns].evaled=n))},r.setupRun=function(){ht&&!k&&y===n.devicePixelRatio||(k=!1,y=n.devicePixelRatio,c={},d={},r.DPR=y||1,u.width=Math.max(n.innerWidth||0,e.clientWidth),u.height=Math.max(n.innerHeight||0,e.clientHeight),u.vw=u.width/100,u.vh=u.height/100,p=[u.height,u.width,y].join("-"),u.em=r.getEmValue(),u.rem=u.em)},r.supPicture?(f=w,r.fillImg=w):(si=n.attachEvent?/d$|^c/:/d$|^c|^i/,it=function(){var n=t.readyState||"";at=setTimeout(it,"loading"===n?200:999);t.body&&(r.fillImgs(),(fi=fi||si.test(n))&&clearTimeout(at))},at=setTimeout(it,t.body?9:99),vt=e.clientHeight,bt(n,"resize",(ei=function(){k=Math.max(n.innerWidth||0,e.clientWidth)!==u.width||e.clientHeight!==vt;vt=e.clientHeight;k&&r.fillImgs()},nt=99,lt=function(){var n=new Date-oi;n<nt?tt=setTimeout(lt,nt-n):(tt=null,ei())},function(){oi=new Date;tt=tt||setTimeout(lt,nt)})),bt(t,"readystatechange",it)),r.picturefill=f,r.fillImgs=f,r.teardownRun=w,f._=r,n.picturefillCFG={pf:r,push:function(n){var t=n.shift();"function"==typeof r[t]?r[t].apply(r,n):(b[t]=n[0],ht&&r.fillImgs({reselect:!0}))}};st&&st.length;)n.picturefillCFG.push(st.shift());n.picturefill=f;"object"==typeof module&&"object"==typeof module.exports?module.exports=f:"function"==typeof define&&define.amd&&define("picturefill",function(){return f});r.supPicture||(o["image/webp"]=(yt="image/webp",hi="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",(rt=new n.Image).onerror=function(){o[yt]=!1;f()},rt.onload=function(){o[yt]=1===rt.width;f()},rt.src=hi,"pending"))}(window,document),function(n){"use strict";n.loadCSS||(n.loadCSS=function(){});var i,t=loadCSS.relpreload={};t.support=function(){var t;try{t=n.document.createElement("link").relList.supports("preload")}catch(i){t=!1}return function(){return t}}();t.bindMediaToggle=function(n){function t(){n.addEventListener?n.removeEventListener("load",t):n.attachEvent&&n.detachEvent("onload",t);n.setAttribute("onload",null);n.media=i}var i=n.media||"all";n.addEventListener?n.addEventListener("load",t):n.attachEvent&&n.attachEvent("onload",t);setTimeout(function(){n.rel="stylesheet";n.media="only x"});setTimeout(t,3e3)};t.poly=function(){var u,r,i;if(!t.support())for(u=n.document.getElementsByTagName("link"),r=0;r<u.length;r++)i=u[r],"preload"!==i.rel||"style"!==i.getAttribute("as")||i.getAttribute("data-loadcss")||(i.setAttribute("data-loadcss",!0),t.bindMediaToggle(i))};t.support()||(t.poly(),i=n.setInterval(t.poly,500),n.addEventListener?n.addEventListener("load",function(){t.poly();n.clearInterval(i)}):n.attachEvent&&n.attachEvent("onload",function(){t.poly();n.clearInterval(i)}));"undefined"!=typeof exports?exports.loadCSS=loadCSS:n.loadCSS=loadCSS}("undefined"!=typeof global?global:this),function(n,t){"use strict";function o(n){this.time=n.time;this.target=n.target;this.rootBounds=n.rootBounds;this.boundingClientRect=n.boundingClientRect;this.intersectionRect=n.intersectionRect||f();this.isIntersecting=!!n.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,t=this.intersectionRect,t=t.width*t.height;this.intersectionRatio=n?Number((t/n).toFixed(4)):this.isIntersecting?1:0}function i(n,t){var r,u,i,t=t||{};if("function"!=typeof n)throw new Error("callback must be a function");if(t.root&&1!=t.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),u=this.THROTTLE_TIMEOUT,i=null,function(){i=i||setTimeout(function(){r();i=null},u)});this._callback=n;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(t.rootMargin);this.thresholds=this._initThresholds(t.threshold);this.root=t.root||null;this.rootMargin=this._rootMarginValues.map(function(n){return n.value+n.unit}).join(" ")}function s(n,t,i,r){"function"==typeof n.addEventListener?n.addEventListener(t,i,r||!1):"function"==typeof n.attachEvent&&n.attachEvent("on"+t,i)}function h(n,t,i,r){"function"==typeof n.removeEventListener?n.removeEventListener(t,i,r||!1):"function"==typeof n.detatchEvent&&n.detatchEvent("on"+t,i)}function u(n){var t;try{t=n.getBoundingClientRect()}catch(n){}return t?t.width&&t.height?t:{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}:f()}function f(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(n,t){for(var i=t;i;){if(i==n)return!0;i=e(i)}return!1}function e(n){return n=n.parentNode,n&&11==n.nodeType&&n.host?n.host:n}var r;"IntersectionObserver"in n&&"IntersectionObserverEntry"in n&&"intersectionRatio"in n.IntersectionObserverEntry.prototype?"isIntersecting"in n.IntersectionObserverEntry.prototype||Object.defineProperty(n.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(r=[],i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(n){if(!this._observationTargets.some(function(t){return t.element==n})){if(!n||1!=n.nodeType)throw new Error("target must be an Element");this._registerInstance();this._observationTargets.push({element:n,entry:null});this._monitorIntersections();this._checkForIntersections()}},i.prototype.unobserve=function(n){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=n});this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorIntersections();this._unregisterInstance()},i.prototype.takeRecords=function(){var n=this._queuedEntries.slice();return this._queuedEntries=[],n},i.prototype._initThresholds=function(n){return n=n||[0],(n=Array.isArray(n)?n:[n]).sort().filter(function(n,t,i){if("number"!=typeof n||isNaN(n)||n<0||1<n)throw new Error("threshold must be a number between 0 and 1 inclusively");return n!==i[t-1]})},i.prototype._parseRootMargin=function(n){return n=(n||"0px").split(/\s+/).map(function(n){if(n=/^(-?\d*\.?\d+)(px|%)$/.exec(n),!n)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(n[1]),unit:n[2]}}),n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(n,"resize",this._checkForIntersections,!0),s(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,h(n,"resize",this._checkForIntersections,!0),h(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),i=t?this._getRootRect():f();this._observationTargets.forEach(function(r){var e=r.element,c=u(e),h=this._rootContainsTarget(e),s=r.entry,f=t&&h&&this._computeTargetAndRootIntersection(e,i),f=r.entry=new o({time:n.performance&&performance.now&&performance.now(),target:e,boundingClientRect:c,rootBounds:i,intersectionRect:f});s?t&&h?this._hasCrossedThreshold(s,f)&&this._queuedEntries.push(f):s&&s.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this);this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(i,r){var o,c;if("none"!=n.getComputedStyle(i).display){for(var h,s,l,a,v=u(i),f=e(i),y=!1;!y;){if(o=null,c=1==f.nodeType?n.getComputedStyle(f):{},"none"==c.display)return;if(f==this.root||f==t?(y=!0,o=r):f!=t.body&&f!=t.documentElement&&"visible"!=c.overflow&&(o=u(f)),o&&(h=o,s=v,o=c=a=l=void 0,l=Math.max(h.top,s.top),a=Math.min(h.bottom,s.bottom),c=Math.max(h.left,s.left),o=Math.min(h.right,s.right),s=a-l,!(v=0<=(h=o-c)&&0<=s&&{top:l,bottom:a,left:c,right:o,width:h,height:s})))break;f=e(f)}return v}},i.prototype._getRootRect=function(){var i,n;return n=this.root?u(this.root):(i=t.documentElement,n=t.body,{top:0,left:0,right:i.clientWidth||n.clientWidth,width:i.clientWidth||n.clientWidth,bottom:i.clientHeight||n.clientHeight,height:i.clientHeight||n.clientHeight}),this._expandRectByRootMargin(n)},i.prototype._expandRectByRootMargin=function(n){var t=this._rootMarginValues.map(function(t,i){return"px"==t.unit?t.value:t.value*(i%2?n.width:n.height)/100}),t={top:n.top-t[0],right:n.right+t[1],bottom:n.bottom+t[2],left:n.left-t[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},i.prototype._hasCrossedThreshold=function(n,t){var u=n&&n.isIntersecting?n.intersectionRatio||0:-1,f=t.isIntersecting?t.intersectionRatio||0:-1,r,i;if(u!==f)for(r=0;r<this.thresholds.length;r++)if(i=this.thresholds[r],i==u||i==f||i<u!=i<f)return!0},i.prototype._rootIsInDom=function(){return!this.root||c(t,this.root)},i.prototype._rootContainsTarget=function(n){return c(this.root||t,n)},i.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},i.prototype._unregisterInstance=function(){var n=r.indexOf(this);-1!=n&&r.splice(n,1)},n.IntersectionObserver=i,n.IntersectionObserverEntry=o)}(window,document),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Cropper=t()}(this,function(){"use strict";function gt(n,t){var i,r=Object.keys(n);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function ni(n){for(var i,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},t%2?gt(Object(i),!0).forEach(function(t){var r,u;r=n;t=i[u=t];u in r?Object.defineProperty(r,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[u]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):gt(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function ti(n){return(ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function ii(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 ri(n){return function(n){if(Array.isArray(n))return st(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,t){if(n){if("string"==typeof n)return st(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Map"===(i="Object"===i&&n.constructor?n.constructor.name:i)||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?st(n,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}function st(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function n(n){return"number"==typeof n&&!rr(n)}function yt(n){return void 0===n}function v(n){return"object"===ti(n)&&null!==n}function y(n){if(!v(n))return!1;try{var t=n.constructor,i=t.prototype;return t&&i&&ur.call(i,"isPrototypeOf")}catch(n){return!1}}function e(n){return"function"==typeof n}function ai(n){return Array.from?Array.from(n):fr.call(n)}function r(t,i){return t&&e(i)&&(Array.isArray(t)||n(t.length)?ai(t).forEach(function(n,r){i.call(t,n,r,t)}):v(t)&&Object.keys(t).forEach(function(n){i.call(t,t[n],n,t)})),t}function p(n,t){return t=1<arguments.length&&void 0!==t?t:1e11,er.test(n)?Math.round(n*t)/t:n}function l(t,i){var u=t.style;r(i,function(t,i){or.test(i)&&n(t)&&(t="".concat(t,"px"));u[i]=t})}function u(t,i){var f;i&&(n(t.length)?r(t,function(n){u(n,i)}):t.classList?t.classList.add(i):(f=t.className.trim())?f.indexOf(i)<0&&(t.className="".concat(f," ").concat(i)):t.className=i)}function c(t,i){i&&(n(t.length)?r(t,function(n){c(n,i)}):t.classList?t.classList.remove(i):0<=t.className.indexOf(i)&&(t.className=t.className.replace(i,"")))}function w(t,i,f){i&&(n(t.length)?r(t,function(n){w(n,i,f)}):(f?u:c)(t,i))}function pt(n){return n.replace(sr,"$1-$2").toLowerCase()}function wt(n,t){return v(n[t])?n[t]:n.dataset?n.dataset[t]:n.getAttribute("data-".concat(pt(t)))}function g(n,t,i){v(i)?n[t]=i:n.dataset?n.dataset[t]=i:n.setAttribute("data-".concat(pt(t)),i)}function s(n,t,i,r){var f=3<arguments.length&&void 0!==r?r:{},u=i;t.trim().split(vi).forEach(function(t){var r;yi||(r=n.listeners)&&r[t]&&r[t][i]&&(u=r[t][i],delete r[t][i],0===Object.keys(r[t]).length&&delete r[t],0===Object.keys(r).length&&delete n.listeners);n.removeEventListener(t,u,f)})}function o(n,t,i,r){var u=3<arguments.length&&void 0!==r?r:{},f=i;t.trim().split(vi).forEach(function(t){var e,r;u.once&&!yi&&(e=n.listeners,f=function(){delete r[t][i];n.removeEventListener(t,f,u);for(var o=arguments.length,s=new Array(o),e=0;e<o;e++)s[e]=arguments[e];i.apply(n,s)},(r=void 0===e?{}:e)[t]||(r[t]={}),r[t][i]&&n.removeEventListener(t,r[t][i],u),r[t][i]=f,n.listeners=r);n.addEventListener(t,f,u)})}function b(n,t,i){var r;return e(Event)&&e(CustomEvent)?r=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i),n.dispatchEvent(r)}function pi(n){return n=n.getBoundingClientRect(),{left:n.left+(window.pageXOffset-document.documentElement.clientLeft),top:n.top+(window.pageYOffset-document.documentElement.clientTop)}}function wi(n){return n=n.match(hr),null!==n&&(n[1]!==dt.protocol||n[2]!==dt.hostname||n[3]!==dt.port)}function bi(n){var t="timestamp=".concat((new Date).getTime());return n+(-1===n.indexOf("?")?"?":"&")+t}function nt(t){var i=t.rotate,r=t.scaleX,u=t.scaleY,f=t.translateX,e=t.translateY,t=[];return n(f)&&0!==f&&t.push("translateX(".concat(f,"px)")),n(e)&&0!==e&&t.push("translateY(".concat(e,"px)")),n(i)&&0!==i&&t.push("rotate(".concat(i,"deg)")),n(r)&&1!==r&&t.push("scaleX(".concat(r,")")),n(u)&&1!==u&&t.push("scaleY(".concat(u,")")),t=t.length?t.join(" "):"none",{WebkitTransform:t,msTransform:t,transform:t}}function et(n,t){var i=n.pageX,r=n.pageY,n={endX:i,endY:r};return t?n:ni({startX:i,startY:r},n)}function a(n,t){var u=n.aspectRatio,r=n.height,i=n.width,f=1<arguments.length&&void 0!==t?t:"contain",e=li(i),n=li(r);return e&&n?(t=r*u,"contain"===f&&i<t||"cover"===f&&t<i?r=i/u:i=r*u):e?r=i/u:n&&(i=r*u),{width:i,height:r}}function lr(n){var h,e,o,u,c,l,i,t=new DataView(n),a,r,f,v,s;try{if(255===t.getUint8(0)&&216===t.getUint8(1))for(a=t.byteLength,r=2;r+1<a;){if(255===t.getUint8(r)&&225===t.getUint8(r+1)){e=r;break}r+=1}if(e&&(u=e+10,"Exif"===function(n,t,i){var u="",r;for(i+=t,r=t;r<i;r+=1)u+=ki(n.getUint8(r));return u}(t,e+4,4)&&(!(i=18761===(c=t.getUint16(u)))&&19789!==c||42!==t.getUint16(u+2,i)||8<=(l=t.getUint32(u+4,i))&&(o=u+l))),o)for(v=t.getUint16(o,i),s=0;s<v;s+=1)if(f=o+12*s+2,274===t.getUint16(f,i)){f+=8;h=t.getUint16(f,i);t.setUint16(f,1,i);break}}catch(n){h=1}return h}var k="undefined"!=typeof window&&void 0!==window.document,h=k?window:{},it=!(!k||!h.document.documentElement)&&"ontouchstart"in h.document.documentElement,rt=k&&"PointerEvent"in h,t="cropper",ht="".concat(t,"-crop"),ui="".concat(t,"-disabled"),f="".concat(t,"-hidden"),fi="".concat(t,"-hide"),di="".concat(t,"-invisible"),ut="".concat(t,"-modal"),ct="".concat(t,"-move"),d="".concat(t,"Action"),ft="".concat(t,"Preview"),lt="cropend",at="cropmove",vt="cropstart",ei=rt?"pointerdown":it?"touchstart":"mousedown",oi=rt?"pointermove":it?"touchmove":"mousemove",si=rt?"pointerup pointercancel":it?"touchend touchcancel":"mouseup",hi="image/jpeg",gi=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,nr=/^data:/,tr=/^data:image\/jpeg;base64,/,ir=/^img|canvas$/i,ci={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},rr=Number.isNaN||h.isNaN,li=function(n){return 0<n&&n<1/0},ur=Object.prototype.hasOwnProperty,fr=Array.prototype.slice,i=Object.assign||function(n){for(var i=arguments.length,r=new Array(1<i?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];return v(n)&&0<r.length&&r.forEach(function(t){v(t)&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n},er=/\.\d*(?:0|9){12}\d*$/,or=/^width|height|left|top|marginLeft|marginTop$/,sr=/([a-z\d])([A-Z])/g,bt,kt,vi=/\s\s*/,yi=(kt=!1,k&&(bt=!1,ot=function(){},tt=Object.defineProperty({},"once",{get:function(){return kt=!0,bt},set:function(n){bt=n}}),h.addEventListener("test",ot,tt),h.removeEventListener("test",ot,tt)),kt),dt=h.location,hr=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,ki=String.fromCharCode,cr=/^data:.*,/,ar={render:function(){this.initContainer();this.initCanvas();this.initCropBox();this.renderCanvas();this.cropped&&this.renderCropBox()},initContainer:function(){var i=this.element,n=this.options,r=this.container,t=this.cropper,e=Number(n.minContainerWidth),n=Number(n.minContainerHeight);u(t,f);c(i,f);n={width:Math.max(r.offsetWidth,0<=e?e:200),height:Math.max(r.offsetHeight,0<=n?n:100)};l(t,{width:(this.containerData=n).width,height:n.height});u(i,f);c(t,f)},initCanvas:function(){var t=this.containerData,n=this.imageData,f=this.options.viewMode,u=Math.abs(n.rotate)%180==90,e=u?n.naturalHeight:n.naturalWidth,o=u?n.naturalWidth:n.naturalHeight,r=e/o,u=t.width,n=t.height;t.height*r>t.width?3===f?u=t.height*r:n=t.width/r:3===f?n=t.width/r:u=t.height*r;n={aspectRatio:r,naturalWidth:e,naturalHeight:o,width:u,height:n};this.canvasData=n;this.limited=1===f||2===f;this.limitCanvas(!0,!0);n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth);n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight);n.left=(t.width-n.width)/2;n.top=(t.height-n.height)/2;n.oldLeft=n.left;n.oldTop=n.top;this.initialCanvasData=i({},n)},limitCanvas:function(n,t){var r,h=this.options,e=this.containerData,i=this.canvasData,u=this.cropBoxData,o=h.viewMode,f=i.aspectRatio,s=this.cropped&&u;n&&(n=Number(h.minCanvasWidth)||0,r=Number(h.minCanvasHeight)||0,1<o?(n=Math.max(n,e.width),r=Math.max(r,e.height),3===o&&(n<r*f?n=r*f:r=n/f)):0<o&&(n?n=Math.max(n,s?u.width:0):r?r=Math.max(r,s?u.height:0):s&&((n=u.width)<(r=u.height)*f?n=r*f:r=n/f)),n=(f=a({aspectRatio:f,width:n,height:r})).width,r=f.height,i.minWidth=n,i.minHeight=r,i.maxWidth=1/0,i.maxHeight=1/0);t&&((s?0:1)<o?(r=e.width-i.width,t=e.height-i.height,i.minLeft=Math.min(0,r),i.minTop=Math.min(0,t),i.maxLeft=Math.max(0,r),i.maxTop=Math.max(0,t),s&&this.limited&&(i.minLeft=Math.min(u.left,u.left+(u.width-i.width)),i.minTop=Math.min(u.top,u.top+(u.height-i.height)),i.maxLeft=u.left,i.maxTop=u.top,2===o&&(i.width>=e.width&&(i.minLeft=Math.min(0,r),i.maxLeft=Math.max(0,r)),i.height>=e.height&&(i.minTop=Math.min(0,t),i.maxTop=Math.max(0,t))))):(i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=e.width,i.maxTop=e.height))},renderCanvas:function(n,t){var e,f,r=this.canvasData,u=this.imageData;t&&(e=(f=function(n){var r=n.width,u=n.height,t=n.degree;if(90==(t=Math.abs(t)%180))return{width:u,height:r};var i=t%90*Math.PI/180,f=Math.sin(i),n=Math.cos(i),i=r*n+u*f,n=r*f+u*n;return 90<t?{width:n,height:i}:{width:i,height:n}}({width:u.naturalWidth*Math.abs(u.scaleX||1),height:u.naturalHeight*Math.abs(u.scaleY||1),degree:u.rotate||0})).width,t=f.height,u=r.width*(e/r.naturalWidth),f=r.height*(t/r.naturalHeight),r.left-=(u-r.width)/2,r.top-=(f-r.height)/2,r.width=u,r.height=f,r.aspectRatio=e/t,r.naturalWidth=e,r.naturalHeight=t,this.limitCanvas(!0,!1));(r.width>r.maxWidth||r.width<r.minWidth)&&(r.left=r.oldLeft);(r.height>r.maxHeight||r.height<r.minHeight)&&(r.top=r.oldTop);r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth);r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight);this.limitCanvas(!1,!0);r.left=Math.min(Math.max(r.left,r.minLeft),r.maxLeft);r.top=Math.min(Math.max(r.top,r.minTop),r.maxTop);r.oldLeft=r.left;r.oldTop=r.top;l(this.canvas,i({width:r.width,height:r.height},nt({translateX:r.left,translateY:r.top})));this.renderImage(n);this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(n){var r=this.canvasData,t=this.imageData,u=t.naturalWidth*(r.width/r.naturalWidth),f=t.naturalHeight*(r.height/r.naturalHeight);i(t,{width:u,height:f,left:(r.width-u)/2,top:(r.height-f)/2});l(this.image,i({width:t.width,height:t.height},nt(i({translateX:t.left,translateY:t.top},t))));n&&this.output()},initCropBox:function(){var n=this.options,t=this.canvasData,r=n.aspectRatio||n.initialAspectRatio,u=Number(n.autoCropArea)||.8,n={width:t.width,height:t.height};r&&(t.height*r>t.width?n.height=n.width/r:n.width=n.height*r);this.cropBoxData=n;this.limitCropBox(!0,!0);n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth);n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight);n.width=Math.max(n.minWidth,n.width*u);n.height=Math.max(n.minHeight,n.height*u);n.left=t.left+(t.width-n.width)/2;n.top=t.top+(t.height-n.height)/2;n.oldLeft=n.left;n.oldTop=n.top;this.initialCropBoxData=i({},n)},limitCropBox:function(n,t){var f,e,o=this.options,u=this.containerData,r=this.canvasData,i=this.cropBoxData,h=this.limited,s=o.aspectRatio;n&&(f=Number(o.minCropBoxWidth)||0,e=Number(o.minCropBoxHeight)||0,n=h?Math.min(u.width,r.width,r.width+r.left,u.width-r.left):u.width,o=h?Math.min(u.height,r.height,r.height+r.top,u.height-r.top):u.height,f=Math.min(f,u.width),e=Math.min(e,u.height),s&&(f&&e?f<e*s?e=f/s:f=e*s:f?e=f/s:e&&(f=e*s),n<o*s?o=n/s:n=o*s),i.minWidth=Math.min(f,n),i.minHeight=Math.min(e,o),i.maxWidth=n,i.maxHeight=o);t&&(h?(i.minLeft=Math.max(0,r.left),i.minTop=Math.max(0,r.top),i.maxLeft=Math.min(u.width,r.left+r.width)-i.width,i.maxTop=Math.min(u.height,r.top+r.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=u.width-i.width,i.maxTop=u.height-i.height))},renderCropBox:function(){var t=this.options,r=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft);(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop);n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth);n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight);this.limitCropBox(!1,!0);n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft);n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop);n.oldLeft=n.left;n.oldTop=n.top;t.movable&&t.cropBoxMovable&&g(this.face,d,n.width>=r.width&&n.height>=r.height?"move":"all");l(this.cropBox,i({width:n.width,height:n.height},nt({translateX:n.left,translateY:n.top})));this.cropped&&this.limited&&this.limitCanvas(!0,!0);this.disabled||this.output()},output:function(){this.preview();b(this.element,"crop",this.getData())}},vr={initPreview:function(){var u=this.element,t=this.crossOrigin,i=this.options.preview,f=t?this.crossOriginUrl:this.url,e=u.alt||"The image to preview",n=document.createElement("img");t&&(n.crossOrigin=t);n.src=f;n.alt=e;this.viewBox.appendChild(n);this.viewBoxImage=n;i&&("string"==typeof(n=i)?n=u.ownerDocument.querySelectorAll(i):i.querySelector&&(n=[i]),r(this.previews=n,function(n){var i=document.createElement("img");g(n,ft,{width:n.offsetWidth,height:n.offsetHeight,html:n.innerHTML});t&&(i.crossOrigin=t);i.src=f;i.alt=e;i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"';n.innerHTML="";n.appendChild(i)}))},resetPreview:function(){r(this.previews,function(n){var t=wt(n,ft);l(n,{width:t.width,height:t.height});n.innerHTML=t.html,function(n,t){if(v(n[t]))try{delete n[t]}catch(i){n[t]=void 0}else if(n.dataset)try{delete n.dataset[t]}catch(i){n.dataset[t]=void 0}else n.removeAttribute("data-".concat(pt(t)))}(n,ft)})},preview:function(){var n=this.imageData,e=this.canvasData,t=this.cropBoxData,u=t.width,f=t.height,o=n.width,s=n.height,h=t.left-e.left-n.left,c=t.top-e.top-n.top;this.cropped&&!this.disabled&&(l(this.viewBoxImage,i({width:o,height:s},nt(i({translateX:-h,translateY:-c},n)))),r(this.previews,function(t){var r=wt(t,ft),v=r.width,e=r.height,y=v,a=e,r=1;u&&(a=f*(r=v/u));f&&e<a&&(y=u*(r=e/f),a=e);l(t,{width:y,height:a});l(t.getElementsByTagName("img")[0],i({width:o*r,height:s*r},nt(i({translateX:-h*r,translateY:-c*r},n))))}))}},rt={bind:function(){var t=this.element,n=this.options,i=this.cropper;e(n.cropstart)&&o(t,vt,n.cropstart);e(n.cropmove)&&o(t,at,n.cropmove);e(n.cropend)&&o(t,lt,n.cropend);e(n.crop)&&o(t,"crop",n.crop);e(n.zoom)&&o(t,"zoom",n.zoom);o(i,ei,this.onCropStart=this.cropStart.bind(this));n.zoomable&&n.zoomOnWheel&&o(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0});n.toggleDragModeOnDblclick&&o(i,"dblclick",this.onDblclick=this.dblclick.bind(this));o(t.ownerDocument,oi,this.onCropMove=this.cropMove.bind(this));o(t.ownerDocument,si,this.onCropEnd=this.cropEnd.bind(this));n.responsive&&o(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,n=this.options,i=this.cropper;e(n.cropstart)&&s(t,vt,n.cropstart);e(n.cropmove)&&s(t,at,n.cropmove);e(n.cropend)&&s(t,lt,n.cropend);e(n.crop)&&s(t,"crop",n.crop);e(n.zoom)&&s(t,"zoom",n.zoom);s(i,ei,this.onCropStart);n.zoomable&&n.zoomOnWheel&&s(i,"wheel",this.onWheel,{passive:!1,capture:!0});n.toggleDragModeOnDblclick&&s(i,"dblclick",this.onDblclick);s(t.ownerDocument,oi,this.onCropMove);s(t.ownerDocument,si,this.onCropEnd);n.responsive&&s(window,"resize",this.onResize)}},it={resize:function(){var t,i,u,n,f,e,o;this.disabled||(t=this.options,i=this.container,n=this.containerData,u=i.offsetWidth/n.width,n=i.offsetHeight/n.height,1!=(f=Math.abs(u-1)>Math.abs(n-1)?u:n)&&(t.restore&&(e=this.getCanvasData(),o=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(r(e,function(n,t){e[t]=n*f})),this.setCropBoxData(r(o,function(n,t){o[t]=n*f})))))},dblclick:function(){var n,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((n=this.dragBox,t=ht,(n.classList?n.classList.contains(t):-1<n.className.indexOf(t))?"move":"crop"))},wheel:function(n){var i=this,r=Number(this.options.wheelZoomRatio)||.1,t=1;this.disabled||(n.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50),n.deltaY?t=0<n.deltaY?1:-1:n.wheelDelta?t=-n.wheelDelta/120:n.detail&&(t=0<n.detail?1:-1),this.zoom(-t*r,n)))},cropStart:function(t){var f,e=t.buttons,i=t.button;this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(n(e)&&1!==e||n(i)&&0!==i||t.ctrlKey)||(i=this.options,f=this.pointers,t.changedTouches?r(t.changedTouches,function(n){f[n.identifier]=et(n)}):f[t.pointerId||0]=et(t),i=1<Object.keys(f).length&&i.zoomable&&i.zoomOnTouch?"zoom":wt(t.target,d),gi.test(i)&&!1!==b(this.element,vt,{originalEvent:t,action:i})&&(t.preventDefault(),this.action=i,this.cropping=!1,"crop"===i&&(this.cropping=!0,u(this.dragBox,ut))))},cropMove:function(n){var t,u=this.action;!this.disabled&&u&&(t=this.pointers,n.preventDefault(),!1!==b(this.element,at,{originalEvent:n,action:u})&&(n.changedTouches?r(n.changedTouches,function(n){i(t[n.identifier]||{},et(n,!0))}):i(t[n.pointerId||0]||{},et(n,!0)),this.change(n)))},cropEnd:function(n){var i,t;this.disabled||(i=this.action,t=this.pointers,n.changedTouches?r(n.changedTouches,function(n){delete t[n.identifier]}):delete t[n.pointerId||0],i&&(n.preventDefault(),Object.keys(t).length||(this.action=""),this.cropping&&(this.cropping=!1,w(this.dragBox,ut,this.cropped&&this.options.modal)),b(this.element,lt,{originalEvent:n,action:i})))}},k={change:function(n){function v(n){switch(n){case"e":d+t.x>k&&(t.x=k-d);break;case"w":o+t.x<b&&(t.x=b-o);break;case"n":e+t.y<y&&(t.y=y-e);break;case"s":w+t.y>p&&(t.y=p-w)}}var et=this.options,nt=this.canvasData,it=this.containerData,l=this.cropBoxData,rt=this.pointers,h=this.action,s=et.aspectRatio,o=l.left,e=l.top,u=l.width,i=l.height,d=o+u,w=e+i,b=0,y=0,k=it.width,p=it.height,a=!0,tt,ft,ut,g,t;!s&&n.shiftKey&&(s=u&&i?u/i:1);this.limited&&(b=l.minLeft,y=l.minTop,k=b+Math.min(it.width,nt.width,nt.left+nt.width),p=y+Math.min(it.height,nt.height,nt.top+nt.height));g=rt[Object.keys(rt)[0]];t={x:g.endX-g.startX,y:g.endY-g.startY};switch(h){case"all":o+=t.x;e+=t.y;break;case"e":if(0<=t.x&&(k<=d||s&&(e<=y||p<=w))){a=!1;break}v("e");(u+=t.x)<0&&(h="w",o-=u=-u);s&&(e+=(l.height-(i=u/s))/2);break;case"n":if(t.y<=0&&(e<=y||s&&(o<=b||k<=d))){a=!1;break}v("n");i-=t.y;e+=t.y;i<0&&(h="s",e-=i=-i);s&&(o+=(l.width-(u=i*s))/2);break;case"w":if(t.x<=0&&(o<=b||s&&(e<=y||p<=w))){a=!1;break}v("w");u-=t.x;o+=t.x;u<0&&(h="e",o-=u=-u);s&&(e+=(l.height-(i=u/s))/2);break;case"s":if(0<=t.y&&(p<=w||s&&(o<=b||k<=d))){a=!1;break}v("s");(i+=t.y)<0&&(h="n",e-=i=-i);s&&(o+=(l.width-(u=i*s))/2);break;case"ne":if(s){if(t.y<=0&&(e<=y||k<=d)){a=!1;break}v("n");i-=t.y;e+=t.y;u=i*s}else v("n"),v("e"),!(0<=t.x)||d<k?u+=t.x:t.y<=0&&e<=y&&(a=!1),t.y<=0&&!(y<e)||(i-=t.y,e+=t.y);u<0&&i<0?(h="sw",e-=i=-i,o-=u=-u):u<0?(h="nw",o-=u=-u):i<0&&(h="se",e-=i=-i);break;case"nw":if(s){if(t.y<=0&&(e<=y||o<=b)){a=!1;break}v("n");i-=t.y;e+=t.y;o+=l.width-(u=i*s)}else v("n"),v("w"),!(t.x<=0)||b<o?(u-=t.x,o+=t.x):t.y<=0&&e<=y&&(a=!1),t.y<=0&&!(y<e)||(i-=t.y,e+=t.y);u<0&&i<0?(h="se",e-=i=-i,o-=u=-u):u<0?(h="ne",o-=u=-u):i<0&&(h="sw",e-=i=-i);break;case"sw":if(s){if(t.x<=0&&(o<=b||p<=w)){a=!1;break}v("w");u-=t.x;o+=t.x;i=u/s}else v("s"),v("w"),!(t.x<=0)||b<o?(u-=t.x,o+=t.x):0<=t.y&&p<=w&&(a=!1),0<=t.y&&!(w<p)||(i+=t.y);u<0&&i<0?(h="ne",e-=i=-i,o-=u=-u):u<0?(h="se",o-=u=-u):i<0&&(h="nw",e-=i=-i);break;case"se":if(s){if(0<=t.x&&(k<=d||p<=w)){a=!1;break}v("e");i=(u+=t.x)/s}else v("s"),v("e"),!(0<=t.x)||d<k?u+=t.x:0<=t.y&&p<=w&&(a=!1),0<=t.y&&!(w<p)||(i+=t.y);u<0&&i<0?(h="nw",e-=i=-i,o-=u=-u):u<0?(h="sw",o-=u=-u):i<0&&(h="ne",e-=i=-i);break;case"move":this.move(t.x,t.y);a=!1;break;case"zoom":this.zoom((ft=ni({},tt=rt),ut=0,r(tt,function(n,t){delete ft[t];r(ft,function(t){var r=Math.abs(n.startX-t.startX),i=Math.abs(n.startY-t.startY),u=Math.abs(n.endX-t.endX),t=Math.abs(n.endY-t.endY),i=Math.sqrt(r*r+i*i),i=(Math.sqrt(u*u+t*t)-i)/i;Math.abs(i)>Math.abs(ut)&&(ut=i)})}),ut),n);a=!1;break;case"crop":if(!t.x||!t.y){a=!1;break}tt=pi(this.cropper);o=g.startX-tt.left;e=g.startY-tt.top;u=l.minWidth;i=l.minHeight;0<t.x?h=0<t.y?"se":"ne":t.x<0&&(o-=u,h=0<t.y?"sw":"nw");t.y<0&&(e-=i);this.cropped||(c(this.cropBox,f),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}a&&(l.width=u,l.height=i,l.left=o,l.top=e,this.action=h,this.renderCropBox());r(rt,function(n){n.startX=n.endX;n.startY=n.endY})}},ot={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&u(this.dragBox,ut),c(this.cropBox,f),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=i({},this.initialImageData),this.canvasData=i({},this.initialCanvasData),this.cropBoxData=i({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(i(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),c(this.dragBox,ut),u(this.cropBox,f)),this},replace:function(n){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&n&&(this.isImg&&(this.element.src=n),t?(this.url=n,this.image.src=n,this.ready&&(this.viewBoxImage.src=n,r(this.previews,function(t){t.getElementsByTagName("img")[0].src=n}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(n))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,c(this.cropper,ui)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,u(this.cropper,ui)),this},destroy:function(){var n=this.element;return n[t]&&(n[t]=void 0,this.isImg&&this.replaced&&(n.src=this.originalUrl),this.uncreate()),this},move:function(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:n,i=this.canvasData,r=i.left,i=i.top;return this.moveTo(yt(n)?n:r+Number(n),yt(t)?t:i+Number(t))},moveTo:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,u=this.canvasData,r=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(n(t)&&(u.left=t,r=!0),n(i)&&(u.top=i,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(n,t){var i=this.canvasData;return n=Number(n),this.zoomTo(i.width*(n=n<0?1/(1-n):1+n)/i.naturalWidth,null,t)},zoomTo:function(t,i,u){var a,v,l,e=this.options,f=this.canvasData,o=f.width,h=f.height,c=f.naturalWidth,s=f.naturalHeight;if(0<=(t=Number(t))&&this.ready&&!this.disabled&&e.zoomable){if(e=c*t,s=s*t,!1===b(this.element,"zoom",{ratio:t,oldRatio:o/c,originalEvent:u}))return this;u?(t=this.pointers,c=pi(this.cropper),u=t&&Object.keys(t).length?(l=v=a=0,r(t,function(n){var t=n.startX,n=n.startY;a+=t;v+=n;l+=1}),{pageX:a/=l,pageY:v/=l}):{pageX:u.pageX,pageY:u.pageY},f.left-=(e-o)*((u.pageX-c.left-f.left)/o),f.top-=(s-h)*((u.pageY-c.top-f.top)/h)):y(i)&&n(i.x)&&n(i.y)?(f.left-=(e-o)*((i.x-f.left)/o),f.top-=(s-h)*((i.y-f.top)/h)):(f.left-=(e-o)/2,f.top-=(s-h)/2);f.width=e;f.height=s;this.renderCanvas(!0)}return this},rotate:function(n){return this.rotateTo((this.imageData.rotate||0)+Number(n))},rotateTo:function(t){return n(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var i=this.imageData.scaleY;return this.scale(t,n(i)?i:1)},scaleY:function(t){var i=this.imageData.scaleX;return this.scale(n(i)?i:1,t)},scale:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,u=this.imageData,r=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(n(t)&&(u.scaleX=t,r=!0),n(i)&&(u.scaleY=i,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var n,f,u=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=this.options,i=this.imageData,o=this.canvasData,t=this.cropBoxData;return this.ready&&this.cropped?(n={x:t.left-o.left,y:t.top-o.top,width:t.width,height:t.height},f=i.width/i.naturalWidth,r(n,function(t,i){n[i]=t/f}),u&&(t=Math.round(n.y+n.height),u=Math.round(n.x+n.width),n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=u-n.x,n.height=t-n.y)):n={x:0,y:0,width:0,height:0},e.rotatable&&(n.rotate=i.rotate||0),e.scalable&&(n.scaleX=i.scaleX||1,n.scaleY=i.scaleY||1),n},setData:function(t){var r,f=this.options,i=this.imageData,e=this.canvasData,u={};return this.ready&&!this.disabled&&y(t)&&(r=!1,f.rotatable&&n(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,r=!0),f.scalable&&(n(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,r=!0),n(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,r=!0)),r&&this.renderCanvas(!0,!0),i=i.width/i.naturalWidth,n(t.x)&&(u.left=t.x*i+e.left),n(t.y)&&(u.top=t.y*i+e.top),n(t.width)&&(u.width=t.width*i),n(t.height)&&(u.height=t.height*i),this.setCropBoxData(u)),this},getContainerData:function(){return this.ready?i({},this.containerData):{}},getImageData:function(){return this.sized?i({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,n={};return this.ready&&r(["left","top","width","height","naturalWidth","naturalHeight"],function(i){n[i]=t[i]}),n},setCanvasData:function(t){var i=this.canvasData,r=i.aspectRatio;return this.ready&&!this.disabled&&y(t)&&(n(t.left)&&(i.left=t.left),n(t.top)&&(i.top=t.top),n(t.width)?(i.width=t.width,i.height=t.width/r):n(t.height)&&(i.height=t.height,i.width=t.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,n=this.cropBoxData;return(t=this.ready&&this.cropped?{left:n.left,top:n.top,width:n.width,height:n.height}:t)||{}},setCropBoxData:function(t){var u,f,i=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&y(t)&&(n(t.left)&&(i.left=t.left),n(t.top)&&(i.top=t.top),n(t.width)&&t.width!==i.width&&(u=!0,i.width=t.width),n(t.height)&&t.height!==i.height&&(f=!0,i.height=t.height),r&&(u?i.height=i.width/r:f&&(i.width=i.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},u,s,et,g,ot,b,k,d,st,nt,v,y,c,l,w;if(!this.ready||!window.HTMLCanvasElement)return null;if(c=this.canvasData,l=(e=this.image,u=this.imageData,s=c,n=i,et=u.aspectRatio,g=u.naturalWidth,o=u.naturalHeight,ot=void 0===(y=u.rotate)?0:y,l=void 0===(r=u.scaleX)?1:r,h=void 0===(nt=u.scaleY)?1:nt,b=s.aspectRatio,k=s.naturalWidth,d=s.naturalHeight,st=void 0===(v=n.fillColor)?"transparent":v,t=n.imageSmoothingEnabled,f=void 0===t||t,r=void 0===(y=n.imageSmoothingQuality)?"low":y,nt=void 0===(u=n.maxWidth)?1/0:u,v=void 0===(s=n.maxHeight)?1/0:s,y=void 0===(t=n.minWidth)?0:t,s=void 0===(u=n.minHeight)?0:u,n=(t=document.createElement("canvas")).getContext("2d"),u=a({aspectRatio:b,width:nt,height:v}),b=a({aspectRatio:b,width:y,height:s},"cover"),k=Math.min(u.width,Math.max(b.width,k)),d=Math.min(u.height,Math.max(b.height,d)),v=a({aspectRatio:et,width:nt,height:v}),s=a({aspectRatio:et,width:y,height:s},"cover"),g=Math.min(v.width,Math.max(s.width,g)),o=Math.min(v.height,Math.max(s.height,o)),o=[-g/2,-o/2,g,o],t.width=p(k),t.height=p(d),n.fillStyle=st,n.fillRect(0,0,k,d),n.save(),n.translate(k/2,d/2),n.rotate(ot*Math.PI/180),n.scale(l,h),n.imageSmoothingEnabled=f,n.imageSmoothingQuality=r,n.drawImage.apply(n,[e].concat(ri(o.map(function(n){return Math.floor(p(n))})))),n.restore(),t),!this.cropped)return l;var h=this.getData(),f=h.x,r=h.y,e=h.width,o=h.height,n=l.width/Math.floor(c.naturalWidth);1!=n&&(f*=n,r*=n,e*=n,o*=n);var t=e/o,h=a({aspectRatio:t,width:i.maxWidth||1/0,height:i.maxHeight||1/0}),c=a({aspectRatio:t,width:i.minWidth||0,height:i.minHeight||0},"cover"),t=a({aspectRatio:t,width:i.width||(1!=n?l.width:e),height:i.height||(1!=n?l.height:o)}),n=t.width,t=t.height,n=Math.min(h.width,Math.max(c.width,n)),t=Math.min(h.height,Math.max(c.height,t)),h=document.createElement("canvas"),c=h.getContext("2d");h.width=p(n);h.height=p(t);c.fillStyle=i.fillColor||"transparent";c.fillRect(0,0,n,t);t=i.imageSmoothingEnabled;i=i.imageSmoothingQuality;c.imageSmoothingEnabled=void 0===t||t;i&&(c.imageSmoothingQuality=i);var tt,ut,ft,it,rt,t=l.width,i=l.height,f=f,r=r;return f<=-e||t<f?it=ut=tt=f=0:f<=0?(ut=-f,f=0,it=tt=Math.min(t,e+f)):f<=t&&(ut=0,it=tt=Math.min(e,t-f)),tt<=0||r<=-o||i<r?rt=ft=w=r=0:r<=0?(ft=-r,r=0,rt=w=Math.min(i,o+r)):r<=i&&(ft=0,rt=w=Math.min(o,i-r)),w=[f,r,tt,w],0<it&&0<rt&&w.push(ut*(e=n/e),ft*e,it*e,rt*e),c.drawImage.apply(c,[l].concat(ri(w.map(function(n){return Math.floor(p(n))})))),h},setAspectRatio:function(n){var t=this.options;return this.disabled||yt(n)||(t.aspectRatio=Math.max(0,n)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(n){var i,t,r=this.options,u=this.dragBox,f=this.face;return this.ready&&!this.disabled&&(t=r.movable&&"move"===n,r.dragMode=n=(i="crop"===n)||t?n:"none",g(u,d,n),w(u,ht,i),w(u,ct,t),r.cropBoxMovable||(g(f,d,n),w(f,ht,i),w(f,ct,t))),this}},yr=h.Cropper,tt=function(){function n(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n),!t||!ir.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t;this.options=i({},ci,y(r)&&r);this.cropped=!1;this.disabled=!1;this.pointers={};this.ready=!1;this.reloading=!1;this.replaced=!1;this.sized=!1;this.sizing=!1;this.init()}var s,a,l;return s=n,l=[{key:"noConflict",value:function(){return window.Cropper=yr,n}},{key:"setDefaults",value:function(n){i(ci,y(n)&&n)}}],(a=[{key:"init",value:function(){var i,n=this.element,r=n.tagName.toLowerCase();if(!n[t]){if(n[t]=this,"img"===r){if(this.isImg=!0,i=n.getAttribute("src")||"",!(this.originalUrl=i))return;i=n.src}else"canvas"===r&&window.HTMLCanvasElement&&(i=n.toDataURL());this.load(i)}}},{key:"load",value:function(n){var f,u,e,s,t,i,o=this;n&&(this.url=n,this.imageData={},f=this.element,(u=this.options).rotatable||u.scalable||(u.checkOrientation=!1),u.checkOrientation&&window.ArrayBuffer?nr.test(n)?tr.test(n)?this.read((i=(i=n).replace(cr,""),e=atob(i),i=new ArrayBuffer(e.length),r(s=new Uint8Array(i),function(n,t){s[t]=e.charCodeAt(t)}),i)):this.clone():(t=new XMLHttpRequest,i=this.clone.bind(this),this.reloading=!0,(this.xhr=t).onabort=i,t.onerror=i,t.ontimeout=i,t.onprogress=function(){t.getResponseHeader("content-type")!==hi&&t.abort()},t.onload=function(){o.read(t.response)},t.onloadend=function(){o.reloading=!1;o.xhr=null},u.checkCrossOrigin&&wi(n)&&f.crossOrigin&&(n=bi(n)),t.open("GET",n,!0),t.responseType="arraybuffer",t.withCredentials="use-credentials"===f.crossOrigin,t.send()):this.clone())}},{key:"read",value:function(n){var r=this.options,i=this.imageData,t=lr(n),u=0,f=1,e=1;1<t&&(this.url=function(n,t){for(var r=[],i=new Uint8Array(n);0<i.length;)r.push(ki.apply(null,ai(i.subarray(0,8192)))),i=i.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(r.join("")))}(n,hi),u=(t=function(n){var t=0,i=1,r=1;switch(n){case 2:i=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90;r=-1;break;case 6:t=90;break;case 7:t=90;i=-1;break;case 8:t=-90}return{rotate:t,scaleX:i,scaleY:r}}(t)).rotate,f=t.scaleX,e=t.scaleY);r.rotatable&&(i.rotate=u);r.scalable&&(i.scaleX=f,i.scaleY=e);this.clone()}},{key:"clone",value:function(){var i=this.element,r=this.url,t=i.crossOrigin,f=r,n;this.options.checkCrossOrigin&&wi(r)&&(t=t||"anonymous",f=bi(r));this.crossOrigin=t;this.crossOriginUrl=f;n=document.createElement("img");t&&(n.crossOrigin=t);n.src=f||r;n.alt=i.alt||"The image to crop";(this.image=n).onload=this.start.bind(this);n.onerror=this.stop.bind(this);u(n,fi);i.parentNode.insertBefore(n,i.nextSibling)}},{key:"start",value:function(){function e(n,r){i(t.imageData,{naturalWidth:n,naturalHeight:r,aspectRatio:n/r});t.initialImageData=i({},t.imageData);t.sizing=!1;t.sized=!0;t.build()}var t=this,r=this.image,n,f,u;r.onload=null;r.onerror=null;this.sizing=!0;u=h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent);!r.naturalWidth||u?(n=document.createElement("img"),f=document.body||document.documentElement,(this.sizingImage=n).onload=function(){e(n.width,n.height);u||f.removeChild(n)},n.src=r.src,u||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",f.appendChild(n))):e(r.naturalWidth,r.naturalHeight)}},{key:"stop",value:function(){var n=this.image;n.onload=null;n.onerror=null;n.parentNode.removeChild(n);this.image=null}},{key:"build",value:function(){var h,n,l,a,i,v,y,r,s;this.sized&&!this.ready&&(h=this.element,n=this.options,l=this.image,a=h.parentNode,(s=document.createElement("div")).innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"><\/div><\/div><div class="cropper-drag-box"><\/div><div class="cropper-crop-box"><span class="cropper-view-box"><\/span><span class="cropper-dashed dashed-h"><\/span><span class="cropper-dashed dashed-v"><\/span><span class="cropper-center"><\/span><span class="cropper-face"><\/span><span class="cropper-line line-e" data-cropper-action="e"><\/span><span class="cropper-line line-n" data-cropper-action="n"><\/span><span class="cropper-line line-w" data-cropper-action="w"><\/span><span class="cropper-line line-s" data-cropper-action="s"><\/span><span class="cropper-point point-e" data-cropper-action="e"><\/span><span class="cropper-point point-n" data-cropper-action="n"><\/span><span class="cropper-point point-w" data-cropper-action="w"><\/span><span class="cropper-point point-s" data-cropper-action="s"><\/span><span class="cropper-point point-ne" data-cropper-action="ne"><\/span><span class="cropper-point point-nw" data-cropper-action="nw"><\/span><span class="cropper-point point-sw" data-cropper-action="sw"><\/span><span class="cropper-point point-se" data-cropper-action="se"><\/span><\/div><\/div>',v=(i=s.querySelector(".".concat(t,"-container"))).querySelector(".".concat(t,"-canvas")),y=i.querySelector(".".concat(t,"-drag-box")),s=(r=i.querySelector(".".concat(t,"-crop-box"))).querySelector(".".concat(t,"-face")),this.container=a,this.cropper=i,this.canvas=v,this.dragBox=y,this.cropBox=r,this.viewBox=i.querySelector(".".concat(t,"-view-box")),this.face=s,v.appendChild(l),u(h,f),a.insertBefore(i,h.nextSibling),this.isImg||c(l,fi),this.initPreview(),this.bind(),n.initialAspectRatio=Math.max(0,n.initialAspectRatio)||NaN,n.aspectRatio=Math.max(0,n.aspectRatio)||NaN,n.viewMode=Math.max(0,Math.min(3,Math.round(n.viewMode)))||0,u(r,f),n.guides||u(r.getElementsByClassName("".concat(t,"-dashed")),f),n.center||u(r.getElementsByClassName("".concat(t,"-center")),f),n.background&&u(i,"".concat(t,"-bg")),n.highlight||u(s,di),n.cropBoxMovable&&(u(s,ct),g(s,d,"all")),n.cropBoxResizable||(u(r.getElementsByClassName("".concat(t,"-line")),f),u(r.getElementsByClassName("".concat(t,"-point")),f)),this.render(),this.ready=!0,this.setDragMode(n.dragMode),n.autoCrop&&this.crop(),this.setData(n.data),e(n.ready)&&o(h,"ready",n.ready,{once:!0}),b(h,"ready"))}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),c(this.element,f))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&ii(s.prototype,a),l&&ii(s,l),n}();return i(tt.prototype,ar,vr,rt,it,k,ot),tt});window.bgfill=function(){if(!Modernizr.objectfit){for(var i=document.querySelectorAll(".bgfill"),u=i.length,r=null,n=null,t=0;t<u;t++){if(n=(r=i[t]).querySelector(".bgfill-image.js-lazy-image--handled"))for(;"IMG"!==n.tagName&&0<n.childNodes.length;)n=n.querySelector("img");n&&setBackground(n,r)}return!1}};window.onresize=function(){checkResize()},function(n,t,i,r){function b(n,t){return typeof n===t}function h(n){return"function"!=typeof i.createElement?i.createElement(n):v?i.createElementNS.call(i,"http://www.w3.org/2000/svg",n):i.createElement.apply(i,arguments)}function et(n,t,r,u){var l,a,e,c="modernizr",s=h("div"),f=((e=i.body)||((e=h(v?"svg":"body")).fake=!0),e);if(parseInt(r,10))for(;r--;)(l=h("div")).id=u?u[r]:c+(r+1),s.appendChild(l);return(e=h("style")).type="text/css",e.id="s"+c,(f.fake?f:s).appendChild(e),f.appendChild(s),e.styleSheet?e.styleSheet.cssText=n:e.appendChild(i.createTextNode(n)),s.id=c,f.fake&&(f.style.background="",f.style.overflow="hidden",a=o.style.overflow,o.style.overflow="hidden",o.appendChild(f)),n=t(s,n),f.fake&&f.parentNode?(f.parentNode.removeChild(f),o.style.overflow=a,o.offsetHeight):s.parentNode.removeChild(s),!!n}function it(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function ot(n,i){var u=n.length,f;if("CSS"in t&&"supports"in t.CSS){for(;u--;)if(t.CSS.supports(it(n[u]),i))return!0;return!1}if("CSSSupportsRule"in t){for(f=[];u--;)f.push("("+it(n[u])+":"+i+")");return et("@supports ("+(f=f.join(" or "))+") { #modernizr { position: absolute; } }",function(n){return"absolute"===(r=n,f=null,u="position","getComputedStyle"in t?(i=getComputedStyle.call(t,r,f),n=t.console,null!==i?u&&(i=i.getPropertyValue(u)):n&&n[n.error?"error":"log"].call(n,"getComputedStyle returning null, its possible modernizr test results are inaccurate")):i=!f&&r.currentStyle&&r.currentStyle[u],i);var r,f,u,i})}return r}function rt(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function st(n,t,i){var r;for(var u in n)if(n[u]in t)return!1===i?n[u]:b(r=t[n[u]],"function")?function(n,t){return function(){return n.apply(t,arguments)}}(r,i||t):r;return!1}function g(n,t,i,u,f){var o=n.charAt(0).toUpperCase()+n.slice(1),s=(n+" "+tt.join(o+" ")+o).split(" ");return b(t,"string")||void 0===t?function(n,t,i,u){function l(){a&&(delete e.style,delete e.modElem)}var s,a,o,v,f,y,c;if((u=void 0!==u&&u,void 0!==i)&&(s=ot(n,i),void 0!==s))return s;for(c=["modernizr","tspan","samp"];!e.style&&c.length;)a=!0,e.modElem=h(c.shift()),e.style=e.modElem.style;for(v=n.length,o=0;o<v;o++)if(f=n[o],y=e.style[f],~(""+f).indexOf("-")&&(f=rt(f)),e.style[f]!==r){if(u||void 0===i)return l(),"pfx"!==t||f;try{e.style[f]=i}catch(n){}if(e.style[f]!==y)return l(),"pfx"!==t||f}return l(),!1}(s,t,u,f):st(s=(n+" "+d.join(o+" ")+o).split(" "),t,i)}function ut(n){var e,o=a.length,u=t.CSSRule,i,f;if(void 0===u)return r;if(!n)return!1;if((e=(n=n.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in u)return"@"+n;for(i=0;i<o;i++)if(f=a[i],f.toUpperCase()+"_"+e in u)return"@-"+f.toLowerCase()+"-"+n;return!1}var c=[],f={_version:"3.11.7",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){c.push({name:n,fn:t,options:i})},addAsyncTest:function(n){c.push({name:null,fn:n})}},u,w,k,e,d,nt,ft,s,l,a,p;(u=function(){}).prototype=f;u=new u;w=[];var o=i.documentElement,v="svg"===o.nodeName.toLowerCase(),y="Moz O ms Webkit",tt=f._config.usePrefixes?y.split(" "):[];for(f._cssomPrefixes=tt,k={elem:h("modernizr")},u._q.push(function(){delete k.elem}),e={style:k.elem.style},u._q.unshift(function(){delete e.style}),d=f._config.usePrefixes?y.toLowerCase().split(" "):[],f._domPrefixes=d,f.testAllProps=g,f.atRule=ut,y=f.prefixed=function(n,t,i){return 0===n.indexOf("@")?ut(n):(-1!==n.indexOf("-")&&(n=rt(n)),t?g(n,t,i):g(n,"pfx"))},u.addTest("objectfit",!!y("objectFit"),{aliases:["object-fit"]}),a=f._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""],f._prefixes=a,u.addTest("csspositionsticky",function(){var n="position:",t=h("a").style;return t.cssText=n+a.join("sticky;"+n).slice(0,-n.length),-1!==t.position.indexOf("sticky")}),function(){var i,n,r,f,e,t;for(var o in c)if(c.hasOwnProperty(o)){if(i=[],(n=c[o]).name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(r=0;r<n.options.aliases.length;r++)i.push(n.options.aliases[r].toLowerCase());for(f=b(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)1===(t=i[e].split(".")).length?u[t[0]]=f:(u[t[0]]&&(!u[t[0]]||u[t[0]]instanceof Boolean)||(u[t[0]]=new Boolean(u[t[0]])),u[t[0]][t[1]]=f),w.push((f?"":"no-")+t.join("-"))}}(),nt=w,s=o.className,l=u._config.classPrefix||"",v&&(s=s.baseVal),u._config.enableJSClass&&(ft=new RegExp("(^|\\s)"+l+"no-js(\\s|$)"),s=s.replace(ft,"$1"+l+"js$2")),u._config.enableClasses&&(0<nt.length&&(s+=" "+l+nt.join(" "+l)),v?o.className.baseVal=s:o.className=s),delete f.addTest,delete f.addAsyncTest,p=0;p<u._q.length;p++)u._q[p]();n.Modernizr=u}(window,window,document),function(n){n.fn.bcSwipe=function(t){var i={threshold:50};return t&&n.extend(i,t),this.each(function(){function u(f){r&&(f=f.touches[0].pageX,f=t-f,Math.abs(f)>=i.threshold&&(function(){this.removeEventListener("touchmove",u);t=null;r=!1}(),0<f?n(this).carousel("next"):n(this).carousel("prev")))}var t,r=!1;"ontouchstart"in document.documentElement&&this.addEventListener("touchstart",function(n){1==n.touches.length&&(t=n.touches[0].pageX,r=!0,this.addEventListener("touchmove",u,!1))},!1)}),this}}(jQuery)