!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(x,e){function t(e,t){return t.toUpperCase()}var n=[],S=x.document,u=n.slice,m=n.concat,a=n.push,o=n.indexOf,i={},r=i.toString,p=i.hasOwnProperty,g={},s="2.2.4",k=function(e,t){return new k.fn.init(e,t)},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,d=/-([\da-z])/gi;function h(e){var t=!!e&&"length"in e&&e.length,n=k.type(e);return"function"!==n&&!k.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:s,constructor:k,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=k.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},k.extend=k.fn.extend=function(){var e,t,n,i,o,r=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[s]||{},s++),"object"==typeof r||k.isFunction(r)||(r={}),s===a&&(r=this,s--);s<a;s++)if(null!=(e=arguments[s]))for(t in e)o=r[t],n=e[t],r!==n&&(l&&n&&(k.isPlainObject(n)||(i=k.isArray(n)))?(o=i?(i=!1,o&&k.isArray(o)?o:[]):o&&k.isPlainObject(o)?o:{},r[t]=k.extend(l,o,n)):void 0!==n&&(r[t]=n));return r},k.extend({expando:"jQuery"+(s+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===k.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!k.isArray(e)&&0<=t-parseFloat(t)+1},isPlainObject:function(e){if("object"!==k.type(e)||e.nodeType||k.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(var t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[r.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=k.trim(e))&&(1===e.indexOf("use strict")?((t=S.createElement("script")).text=e,S.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(c,"ms-").replace(d,t)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(h(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(l,"")},makeArray:function(e,t){t=t||[];return null!=e&&(h(Object(e))?k.merge(t,"string"==typeof e?[e]:e):a.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:o.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!=s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,s=[];if(h(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&s.push(o);else for(r in e)o=t(e[r],r,n),null!=o&&s.push(o);return m.apply([],s)},guid:1,proxy:function(e,t){var n,i;return"string"==typeof t&&(i=e[t],t=e,e=i),k.isFunction(e)?(n=u.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i):void 0},now:Date.now,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=n[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var f=function(n){function d(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function t(){S()}var e,p,w,r,i,m,h,g,x,l,c,S,k,o,T,y,s,a,v,_="sizzle"+ +new Date,b=n.document,C=0,u=0,f=oe(),E=oe(),L=oe(),O=function(e,t){return e===t&&(c=!0),0},A={}.hasOwnProperty,M=[],I=M.pop,P=M.push,j=M.push,B=M.slice,R=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",D="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",H="\\["+N+"*("+D+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+N+"*\\]",W=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",q=new RegExp(N+"+","g"),F=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),U=new RegExp("^"+N+"*,"+N+"*"),Y=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),V=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),X=new RegExp(W),$=new RegExp("^"+D+"$"),G={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig");try{j.apply(M=B.call(b.childNodes),b.childNodes),M[b.childNodes.length].nodeType}catch(e){j={apply:M.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,n,i){var o,r,s,a,l,c,u,d,h=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!i&&((t?t.ownerDocument||t:b)!==k&&S(t),t=t||k,T)){if(11!==f&&(c=Z.exec(e)))if(o=c[1]){if(9===f){if(!(s=t.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(h&&(s=h.getElementById(o))&&v(t,s)&&s.id===o)return n.push(s),n}else{if(c[2])return j.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&p.getElementsByClassName&&t.getElementsByClassName)return j.apply(n,t.getElementsByClassName(o)),n}if(p.qsa&&!L[e+" "]&&(!y||!y.test(e))){if(1!==f)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,"\\$&"):t.setAttribute("id",a=_),r=(u=m(e)).length,l=$.test(a)?"#"+a:"[id='"+a+"']";r--;)u[r]=l+" "+he(u[r]);d=u.join(","),h=ee.test(e)&&ue(t.parentNode)||t}if(d)try{return j.apply(n,h.querySelectorAll(d)),n}catch(e){}finally{a===_&&t.removeAttribute("id")}}}return g(e.replace(F,"$1"),t,n,i)}function oe(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function re(e){return e[_]=!0,e}function se(e){var t=k.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ae(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(s){return re(function(r){return r=+r,re(function(e,t){for(var n,i=s([],e.length,r),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function ue(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=ie.support={},i=ie.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},S=ie.setDocument=function(e){var e=e?e.ownerDocument||e:b;return e!==k&&9===e.nodeType&&e.documentElement&&(o=(k=e).documentElement,T=!i(k),(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",t,!1):e.attachEvent&&e.attachEvent("onunload",t)),p.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=se(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=J.test(k.getElementsByClassName),p.getById=se(function(e){return o.appendChild(e).id=_,!k.getElementsByName||!k.getElementsByName(_).length}),p.getById?(w.find.ID=function(e,t){if(void 0!==t.getElementById&&T){e=t.getElementById(e);return e?[e]:[]}},w.filter.ID=function(e){var t=e.replace(ne,d);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var t=e.replace(ne,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=p.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&T?t.getElementsByClassName(e):void 0},s=[],y=[],(p.qsa=J.test(k.querySelectorAll))&&(se(function(e){o.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+N+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+_+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]")}),se(function(e){var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+N+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(p.matchesSelector=J.test(a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&se(function(e){p.disconnectedMatch=a.call(e,"div"),a.call(e,"[s!='']:x"),s.push("!=",W)}),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),e=J.test(o.compareDocumentPosition),v=e||J.test(o.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=e?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===b&&v(b,e)?-1:t===k||t.ownerDocument===b&&v(b,t)?1:l?R(l,e)-R(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e===k?-1:t===k?1:o?-1:r?1:l?R(l,e)-R(l,t):0;if(o===r)return le(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?le(s[i],a[i]):s[i]===b?-1:a[i]===b?1:0}),k},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&S(e),t=t.replace(V,"='$1']"),p.matchesSelector&&T&&!L[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=a.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,k,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==k&&S(e),v(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==k&&S(e);var n=w.attrHandle[t.toLowerCase()],n=n&&A.call(w.attrHandle,t.toLowerCase())?n(e,t,!T):void 0;return void 0!==n?n:p.attributes||!T?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],i=0,o=0;if(c=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return l=null,e},r=ie.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(w=ie.selectors={cacheLength:50,createPseudo:re,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=f[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&f(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=ie.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(q," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,m,g){var y="nth"!==p.slice(0,3),v="last"!==p.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,o,r,s,a,l,c=y!=v?"nextSibling":"previousSibling",u=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(u){if(y){for(;c;){for(s=e;s=s[c];)if(b?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&h){for(f=(a=(i=(o=(r=(s=u)[_]||(s[_]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]||[])[0]===C&&i[1])&&i[2],s=a&&u.childNodes[a];s=++a&&s&&s[c]||(f=a=0)||l.pop();)if(1===s.nodeType&&++f&&s===e){o[p]=[C,a,f];break}}else if(!1===(f=h?a=(i=(o=(r=(s=e)[_]||(s[_]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]||[])[0]===C&&i[1]:f))for(;(s=++a&&s&&s[c]||(f=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++f||(h&&((o=(r=s[_]||(s[_]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]=[C,f]),s!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,r){var t,s=w.pseudos[e]||w.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return s[_]?s(r):1<s.length?(t=[e,e,"",r],w.setFilters.hasOwnProperty(e.toLowerCase())?re(function(e,t){for(var n,i=s(e,r),o=i.length;o--;)e[n=R(e,i[o])]=!(t[n]=i[o])}):function(e){return s(e,0,t)}):s}},pseudos:{not:re(function(e){var i=[],o=[],a=h(e.replace(F,"$1"));return a[_]?re(function(e,t,n,i){for(var o,r=a(e,null,i,[]),s=e.length;s--;)(o=r[s])&&(e[s]=!(t[s]=o))}):function(e,t,n){return i[0]=e,a(i,null,n,o),i[0]=null,!o.pop()}}),has:re(function(t){return function(e){return 0<ie(t,e).length}}),contains:re(function(t){return t=t.replace(ne,d),function(e){return-1<(e.textContent||e.innerText||r(e)).indexOf(t)}}),lang:re(function(n){return $.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(ne,d).toLowerCase(),function(e){var t;do{if(t=T?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:ce(function(){return[0]}),last:ce(function(e,t){return[t-1]}),eq:ce(function(e,t,n){return[n<0?n+t:n]}),even:ce(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ce(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ce(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:ce(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function de(){}function he(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function fe(s,e,t){var a=e.dir,l=t&&"parentNode"===a,c=u++;return e.first?function(e,t,n){for(;e=e[a];)if(1===e.nodeType||l)return s(e,t,n)}:function(e,t,n){var i,o,r=[C,c];if(n){for(;e=e[a];)if((1===e.nodeType||l)&&s(e,t,n))return!0}else for(;e=e[a];)if(1===e.nodeType||l){if((o=(i=(o=e[_]||(e[_]={}))[e.uniqueID]||(o[e.uniqueID]={}))[a])&&o[0]===C&&o[1]===c)return r[2]=o[2];if((i[a]=r)[2]=s(e,t,n))return!0}}}function pe(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function me(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),c&&t.push(a)));return s}function ge(f,p,m,g,y,e){return g&&!g[_]&&(g=ge(g)),y&&!y[_]&&(y=ge(y,e)),re(function(e,t,n,i){var o,r,s,a=[],l=[],c=t.length,u=e||function(e,t,n){for(var i=0,o=t.length;i<o;i++)ie(e,t[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?u:me(u,a,f,n,i),h=m?y||(e?f:c||g)?[]:t:d;if(m&&m(d,h,n,i),g)for(o=me(h,l),g(o,[],n,i),r=o.length;r--;)(s=o[r])&&(h[l[r]]=!(d[l[r]]=s));if(e){if(y||f){if(y){for(o=[],r=h.length;r--;)(s=h[r])&&o.push(d[r]=s);y(null,h=[],o,i)}for(r=h.length;r--;)(s=h[r])&&-1<(o=y?R(e,s):a[r])&&(e[o]=!(t[o]=s))}}else h=me(h===t?h.splice(c,h.length):h),y?y(null,t,h,i):j.apply(t,h)})}function ye(g,y){function e(e,t,n,i,o){var r,s,a,l=0,c="0",u=e&&[],d=[],h=x,f=e||b&&w.find.TAG("*",o),p=C+=null==h?1:Math.random()||.1,m=f.length;for(o&&(x=t===k||t||o);c!==m&&null!=(r=f[c]);c++){if(b&&r){for(s=0,t||r.ownerDocument===k||(S(r),n=!T);a=g[s++];)if(a(r,t||k,n)){i.push(r);break}o&&(C=p)}v&&((r=!a&&r)&&l--,e&&u.push(r))}if(l+=c,v&&c!==l){for(s=0;a=y[s++];)a(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=I.call(i));d=me(d)}j.apply(i,d),o&&!e&&0<d.length&&1<l+y.length&&ie.uniqueSort(i)}return o&&(C=p,x=h),u}var v=0<y.length,b=0<g.length;return v?re(e):e}return de.prototype=w.filters=w.pseudos,w.setFilters=new de,m=ie.tokenize=function(e,t){var n,i,o,r,s,a,l,c=E[e+" "];if(c)return t?0:c.slice(0);for(s=e,a=[],l=w.preFilter;s;){for(r in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=Y.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(F," ")}),s=s.slice(n.length)),w.filter)!(i=G[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):E(e,a).slice(0)},h=ie.compile=function(e,t){var n,i=[],o=[],r=L[e+" "];if(!r){for(n=(t=t||m(e)).length;n--;)((r=function e(t){for(var i,n,o,r=t.length,s=w.relative[t[0].type],a=s||w.relative[" "],l=s?1:0,c=fe(function(e){return e===i},a,!0),u=fe(function(e){return-1<R(i,e)},a,!0),d=[function(e,t,n){return n=!s&&(n||t!==x)||((i=t).nodeType?c:u)(e,t,n),i=null,n}];l<r;l++)if(n=w.relative[t[l].type])d=[fe(pe(d),n)];else{if((n=w.filter[t[l].type].apply(null,t[l].matches))[_]){for(o=++l;o<r&&!w.relative[t[o].type];o++);return ge(1<l&&pe(d),1<l&&he(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),n,l<o&&e(t.slice(l,o)),o<r&&e(t=t.slice(o)),o<r&&he(t))}d.push(n)}return pe(d)}(t[n]))[_]?i:o).push(r);(r=L(e,ye(o,i))).selector=e}return r},g=ie.select=function(e,t,n,i){var o,r,s,a,l,c="function"==typeof e&&e,u=!i&&m(e=c.selector||e);if(n=n||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(s=r[0]).type&&p.getById&&9===t.nodeType&&T&&w.relative[r[1].type]){if(!(t=(w.find.ID(s.matches[0].replace(ne,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=G.needsContext.test(e)?0:r.length;o--&&(s=r[o],!w.relative[a=s.type]);)if((l=w.find[a])&&(i=l(s.matches[0].replace(ne,d),ee.test(r[0].type)&&ue(t.parentNode)||t))){if(r.splice(o,1),!(e=i.length&&he(r)))return j.apply(n,i),n;break}}return(c||h(e,u))(i,t,!T,n,!t||ee.test(e)&&ue(t.parentNode)||t),n},p.sortStable=_.split("").sort(O).join("")===_,p.detectDuplicates=!!c,S(),p.sortDetached=se(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ae("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ae("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ae(z,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),ie}(x);k.find=f,k.expr=f.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=f.uniqueSort,k.text=f.getText,k.isXMLDoc=f.isXML,k.contains=f.contains;function y(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;i.push(e)}return i}function v(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var b=k.expr.match.needsContext,w=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,T=/^.[^:#\[\.,]*$/;function _(e,n,i){if(k.isFunction(n))return k.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return k.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(T.test(n))return k.filter(n,e,i);n=k.filter(n,e)}return k.grep(e,function(e){return-1<o.call(n,e)!==i})}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n=this.length,i=[],o=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<n;t++)if(k.contains(o[t],this))return!0}));for(t=0;t<n;t++)k.find(e,o[t],i);return(i=this.pushStack(1<n?k.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&b.test(e)?k(e):e||[],!1).length}});var C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(k.fn.init=function(e,t,n){if(!e)return this;if(n=n||E,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):k.isFunction(e)?void 0!==n.ready?n.ready(e):e(k):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),k.makeArray(e,this));if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:C.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),w.test(i[1])&&k.isPlainObject(t))for(var i in t)k.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=S.getElementById(i[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=S,this.selector=e,this}).prototype=k.fn;var E=k(S),L=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,r=[],s=b.test(e)||"string"!=typeof e?k(e,t||this.context):0;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?k.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?o.call(k(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return y(e,"parentNode")},parentsUntil:function(e,t,n){return y(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return y(e,"nextSibling")},prevAll:function(e){return y(e,"previousSibling")},nextUntil:function(e,t,n){return y(e,"nextSibling",n)},prevUntil:function(e,t,n){return y(e,"previousSibling",n)},siblings:function(e){return v((e.parentNode||{}).firstChild,e)},children:function(e){return v(e.firstChild)},contents:function(e){return e.contentDocument||k.merge([],e.childNodes)}},function(i,o){k.fn[i]=function(e,t){var n=k.map(this,o,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(O[i]||k.uniqueSort(n),L.test(i)&&n.reverse()),this.pushStack(n)}});var M,I=/\S+/g;function P(){S.removeEventListener("DOMContentLoaded",P),x.removeEventListener("load",P),k.ready()}k.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},k.each(e.match(I)||[],function(e,t){n[t]=!0}),n):k.extend({},i);function o(){for(a=i.once,s=r=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&i.stopOnFalse&&(u=l.length,t=!1);i.memory||(t=!1),r=!1,a&&(l=t?[]:"")}var r,t,s,a,l=[],c=[],u=-1,d={add:function(){return l&&(t&&!r&&(u=l.length-1,c.push(t)),function n(e){k.each(e,function(e,t){k.isFunction(t)?i.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==k.type(t)&&n(t)})}(arguments),t&&!r&&o()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<k.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=c=[],t||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),r||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},k.extend({Deferred:function(e){var r=[["resolve","done",k.Callbacks("once memory"),"resolved"],["reject","fail",k.Callbacks("once memory"),"rejected"],["notify","progress",k.Callbacks("memory")]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var o=arguments;return k.Deferred(function(i){k.each(r,function(e,t){var n=k.isFunction(o[e])&&o[e];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&k.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===s?i.promise():this,n?[e]:arguments)})}),o=null}).promise()},promise:function(e){return null!=e?k.extend(e,s):s}},a={};return s.pipe=s.then,k.each(r,function(e,t){var n=t[2],i=t[3];s[t[1]]=n.add,i&&n.add(function(){o=i},r[1^e][2].disable,r[2][2].lock),a[t[0]]=function(){return a[t[0]+"With"](this===a?s:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){function t(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?u.call(arguments):e,i===o?c.notifyWith(n,i):--l||c.resolveWith(n,i)}}var o,n,i,r=0,s=u.call(arguments),a=s.length,l=1!==a||e&&k.isFunction(e.promise)?a:0,c=1===l?e:k.Deferred();if(1<a)for(o=new Array(a),n=new Array(a),i=new Array(a);r<a;r++)s[r]&&k.isFunction(s[r].promise)?s[r].promise().progress(t(r,n,o)).done(t(r,i,s)).fail(c.reject):--l;return l||c.resolveWith(i,s),c.promise()}}),k.fn.ready=function(e){return k.ready.promise().done(e),this},k.extend({isReady:!1,readyWait:1,holdReady:function(e){e?k.readyWait++:k.ready(!0)},ready:function(e){(!0===e?--k.readyWait:k.isReady)||((k.isReady=!0)!==e&&0<--k.readyWait||(M.resolveWith(S,[k]),k.fn.triggerHandler&&(k(S).triggerHandler("ready"),k(S).off("ready"))))}}),k.ready.promise=function(e){return M||(M=k.Deferred(),"complete"===S.readyState||"loading"!==S.readyState&&!S.documentElement.doScroll?x.setTimeout(k.ready):(S.addEventListener("DOMContentLoaded",P),x.addEventListener("load",P))),M.promise(e)},k.ready.promise();function j(e,t,n,i,o,r,s){var a=0,l=e.length,c=null==n;if("object"===k.type(n))for(a in o=!0,n)j(e,t,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,k.isFunction(i)||(s=!0),t=c?s?(t.call(e,i),null):(c=t,function(e,t,n){return c.call(k(e),n)}):t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):l?t(e[0],n):r}function B(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function R(){this.expando=k.expando+R.uid++}R.uid=1,R.prototype={register:function(e,t){t=t||{};return e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!B(e))return{};var t=e[this.expando];return t||(t={},B(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[t]=n;else for(i in t)o[i]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(i=this.get(e,t))?i:this.get(e,k.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,o,r=e[this.expando];if(void 0!==r){if(void 0===t)this.register(e);else{n=(i=k.isArray(t)?t.concat(t.map(k.camelCase)):(o=k.camelCase(t),t in r?[t,o]:(i=o)in r?[i]:i.match(I)||[])).length;for(;n--;)delete r[i[n]]}void 0!==t&&!k.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var z=new R,N=new R,D=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/[A-Z]/g;function W(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(H,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:D.test(n)?k.parseJSON(n):n)}catch(e){}N.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return N.hasData(e)||z.hasData(e)},data:function(e,t,n){return N.access(e,t,n)},removeData:function(e,t){N.remove(e,t)},_data:function(e,t,n){return z.access(e,t,n)},_removeData:function(e,t){z.remove(e,t)}}),k.fn.extend({data:function(i,e){var t,n,o,r=this[0],s=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){N.set(this,i)}):j(this,function(t){var e,n;return r&&void 0===t?void 0!==(e=N.get(r,i)||N.get(r,i.replace(H,"-$&").toLowerCase()))?e:(n=k.camelCase(i),void 0!==(e=N.get(r,n))?e:void 0!==(e=W(r,n,void 0))?e:void 0):(n=k.camelCase(i),void this.each(function(){var e=N.get(this,n);N.set(this,n,t),-1<i.indexOf("-")&&void 0!==e&&N.set(this,i,t)}))},null,e,1<arguments.length,null,!0);if(this.length&&(o=N.get(r),1===r.nodeType&&!z.get(r,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&(0===(n=s[t].name).indexOf("data-")&&(n=k.camelCase(n.slice(5)),W(r,n,o[n])));z.set(r,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){N.remove(this,e)})}}),k.extend({queue:function(e,t,n){var i;return e?(i=z.get(e,t=(t||"fx")+"queue"),n&&(!i||k.isArray(n)?i=z.access(e,t,k.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,o=n.shift(),r=k._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){k.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return z.get(e,n)||z.access(e,n,{empty:k.Callbacks("once memory").add(function(){z.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--o||r.resolveWith(s,[s])}var i,o=1,r=k.Deferred(),s=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=z.get(s[a],e+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(t)}});function q(e,t){return"none"===k.css(e=t||e,"display")||!k.contains(e.ownerDocument,e)}var s=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=new RegExp("^(?:([+-])=|)("+s+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"];function Y(e,t,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=a(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=(k.cssNumber[t]||"px"!==c&&+l)&&F.exec(k.css(e,t));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;k.style(e,t,(u/=r=r||".5")+c),r!==(r=a()/l)&&1!==r&&--s;);return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var V=/^(?:checkbox|radio)$/i,X=/<([\w:-]+)/,$=/^$|\/(?:java|ecma)script/i,G={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function K(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&k.nodeName(e,t)?k.merge([e],n):n}function Q(e,t){for(var n=0,i=e.length;n<i;n++)z.set(e[n],"globalEval",!t||z.get(t[n],"globalEval"))}G.optgroup=G.option,G.tbody=G.tfoot=G.colgroup=G.caption=G.thead,G.th=G.td;var J=/<|&#?\w+;/;function Z(e,t,n,i,o){for(var r,s,a,l,c,u=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((r=e[h])||0===r)if("object"===k.type(r))k.merge(d,r.nodeType?[r]:r);else if(J.test(r)){for(s=s||u.appendChild(t.createElement("div")),a=(X.exec(r)||["",""])[1].toLowerCase(),a=G[a]||G._default,s.innerHTML=a[1]+k.htmlPrefilter(r)+a[2],c=a[0];c--;)s=s.lastChild;k.merge(d,s.childNodes),(s=u.firstChild).textContent=""}else d.push(t.createTextNode(r));for(u.textContent="",h=0;r=d[h++];)if(i&&-1<k.inArray(r,i))o&&o.push(r);else if(l=k.contains(r.ownerDocument,r),s=K(u.appendChild(r),"script"),l&&Q(s),n)for(c=0;r=s[c++];)$.test(r.type||"")&&n.push(r);return u}n=S.createDocumentFragment().appendChild(S.createElement("div")),(f=S.createElement("input")).setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),n.appendChild(f),g.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue;var ee=/^key/,te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ne=/^([^.]*)(?:\.(.+)|)/;function ie(){return!0}function oe(){return!1}function re(){try{return S.activeElement}catch(e){}}function se(e,t,n,i,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)se(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=oe;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return k().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),e.each(function(){k.event.add(this,t,o,i,n)})}k.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,u,d,h,f,p=z.get(t);if(p)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=k.guid++),(a=p.events)||(a=p.events={}),(s=p.handle)||(s=p.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(I)||[""]).length;l--;)d=f=(c=ne.exec(e[l])||[])[1],h=(c[2]||"").split(".").sort(),d&&(u=k.event.special[d]||{},d=(o?u.delegateType:u.bindType)||d,u=k.event.special[d]||{},c=k.extend({type:d,origType:f,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:h.join(".")},r),(f=a[d])||((f=a[d]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,h,s)||t.addEventListener&&t.addEventListener(d,s)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),k.event.global[d]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,u,d,h,f,p,m,g=z.hasData(e)&&z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(f=m=(a=ne.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||k.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[c],n,i,!0);k.isEmptyObject(l)&&z.remove(e,"handle events")}},dispatch:function(e){e=k.event.fix(e);var t,n,i,o,r,s=u.call(arguments),a=(z.get(this,"events")||{})[e.type]||[],l=k.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(r=k.event.handlers.call(this,e,a),t=0;(i=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(o=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,r,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<a;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?-1<k(o,this).index(l):k.find(o,this,null,[l]).length),i[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=(i=e.target.ownerDocument||S).documentElement,i=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||i&&i.scrollLeft||0)-(n&&n.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||i&&i.scrollTop||0)-(n&&n.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[k.expando])return e;var t,n,i,o=e.type,r=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=te.test(o)?this.mouseHooks:ee.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new k.Event(r),t=i.length;t--;)e[n=i[t]]=r[n];return e.target||(e.target=S),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==re()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===re()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&k.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return k.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){return this instanceof k.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ie:oe):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||k.now(),void(this[k.expando]=!0)):new k.Event(e,t)},k.Event.prototype={constructor:k.Event,isDefaultPrevented:oe,isPropagationStopped:oe,isImmediatePropagationStopped:oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ie,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ie,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ie,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){k.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),k.fn.extend({on:function(e,t,n,i){return se(this,e,t,n,i)},one:function(e,t,n,i){return se(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=oe),this.each(function(){k.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o]);return this}});var ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,le=/<script|<style|<link/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,ue=/^true\/(.*)/,de=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function he(e,t){return k.nodeName(e,"table")&&k.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function pe(e){var t=ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function me(e,t){var n,i,o,r,s,a;if(1===t.nodeType){if(z.hasData(e)&&(r=z.access(e),s=z.set(t,r),a=r.events))for(o in delete s.handle,s.events={},a)for(n=0,i=a[o].length;n<i;n++)k.event.add(t,o,a[o][n]);N.hasData(e)&&(e=N.access(e),e=k.extend({},e),N.set(t,e))}}function ge(n,i,o,r){i=m.apply([],i);var e,t,s,a,l,c,u=0,d=n.length,h=d-1,f=i[0],p=k.isFunction(f);if(p||1<d&&"string"==typeof f&&!g.checkClone&&ce.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),ge(t,i,o,r)});if(d&&(t=(e=Z(i,n[0].ownerDocument,!1,n,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(a=(s=k.map(K(e,"script"),fe)).length;u<d;u++)l=e,u!==h&&(l=k.clone(l,!0,!0),a&&k.merge(s,K(l,"script"))),o.call(n[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,k.map(s,pe),u=0;u<a;u++)l=s[u],$.test(l.type||"")&&!z.access(l,"globalEval")&&k.contains(c,l)&&(l.src?k._evalUrl&&k._evalUrl(l.src):k.globalEval(l.textContent.replace(de,"")))}return n}function ye(e,t,n){for(var i,o=t?k.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||k.cleanData(K(i)),i.parentNode&&(n&&k.contains(i.ownerDocument,i)&&Q(K(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e.replace(ae,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a,l,c,u=e.cloneNode(!0),d=k.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(s=K(u),i=0,o=(r=K(e)).length;i<o;i++)a=r[i],l=s[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&V.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||K(e),s=s||K(u),i=0,o=r.length;i<o;i++)me(r[i],s[i]);else me(e,u);return 0<(s=K(u,"script")).length&&Q(s,!d&&K(e,"script")),u},cleanData:function(e){for(var t,n,i,o=k.event.special,r=0;void 0!==(n=e[r]);r++)if(B(n)){if(t=n[z.expando]){if(t.events)for(i in t.events)o[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[z.expando]=void 0}n[N.expando]&&(n[N.expando]=void 0)}}}),k.fn.extend({domManip:ge,detach:function(e){return ye(this,e,!0)},remove:function(e){return ye(this,e)},text:function(e){return j(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ge(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||he(this,e).appendChild(e)})},prepend:function(){return ge(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=he(this,e)).insertBefore(e,t.firstChild)})},before:function(){return ge(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ge(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(K(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return j(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!le.test(e)&&!G[(X.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(K(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return ge(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(K(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){k.fn[e]=function(e){for(var t,n=[],i=k(e),o=i.length-1,r=0;r<=o;r++)t=r===o?this:this.clone(!0),k(i[r])[s](t),a.apply(n,t.get());return this.pushStack(n)}});var ve,be={HTML:"block",BODY:"block"};function we(e,t){e=k(t.createElement(e)).appendTo(t.body),t=k.css(e[0],"display");return e.detach(),t}function xe(e){var t=S,n=be[e];return n||("none"!==(n=we(e,t))&&n||((t=(ve=(ve||k("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=we(e,t),ve.detach()),be[e]=n),n}function Se(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?x:t).getComputedStyle(e)}function ke(e,t,n,i){var o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,i||[]),t)e.style[o]=r[o];return i}var Te,_e,Ce,Ee,Le,Oe,Ae=/^margin/,Me=new RegExp("^("+s+")(?!px)[a-z%]+$","i"),Ie=S.documentElement;function Pe(){Oe.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",Oe.innerHTML="",Ie.appendChild(Le);var e=x.getComputedStyle(Oe);Te="1%"!==e.top,Ee="2px"===e.marginLeft,_e="4px"===e.width,Oe.style.marginRight="50%",Ce="4px"===e.marginRight,Ie.removeChild(Le)}function je(e,t,n){var i,o,r=e.style;return""!==(o=(n=n||Se(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==o||k.contains(e.ownerDocument,e)||(o=k.style(e,t)),n&&!g.pixelMarginRight()&&Me.test(o)&&Ae.test(t)&&(i=r.width,e=r.minWidth,t=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=i,r.minWidth=e,r.maxWidth=t),void 0!==o?o+"":o}function Be(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}Le=S.createElement("div"),(Oe=S.createElement("div")).style&&(Oe.style.backgroundClip="content-box",Oe.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===Oe.style.backgroundClip,Le.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",Le.appendChild(Oe),k.extend(g,{pixelPosition:function(){return Pe(),Te},boxSizingReliable:function(){return null==_e&&Pe(),_e},pixelMarginRight:function(){return null==_e&&Pe(),Ce},reliableMarginLeft:function(){return null==_e&&Pe(),Ee},reliableMarginRight:function(){var e,t=Oe.appendChild(S.createElement("div"));return t.style.cssText=Oe.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",Oe.style.width="1px",Ie.appendChild(Le),e=!parseFloat(x.getComputedStyle(t).marginRight),Ie.removeChild(Le),Oe.removeChild(t),e}}));var Re=/^(none|table(?!-c[ea]).+)/,ze={position:"absolute",visibility:"hidden",display:"block"},Ne={letterSpacing:"0",fontWeight:"400"},De=["Webkit","O","Moz","ms"],He=S.createElement("div").style;function We(e){if(e in He)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=De.length;n--;)if((e=De[n]+t)in He)return e}function qe(e,t,n){var i=F.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Fe(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=k.css(e,n+U[r],!0,o)),i?("content"===n&&(s-=k.css(e,"padding"+U[r],!0,o)),"margin"!==n&&(s-=k.css(e,"border"+U[r]+"Width",!0,o))):(s+=k.css(e,"padding"+U[r],!0,o),"padding"!==n&&(s+=k.css(e,"border"+U[r]+"Width",!0,o)));return s}function Ue(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=Se(e),s="border-box"===k.css(e,"boxSizing",!1,r);if(o<=0||null==o){if(((o=je(e,t,r))<0||null==o)&&(o=e.style[t]),Me.test(o))return o;i=s&&(g.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+Fe(e,t,n||(s?"border":"content"),i,r)+"px"}function Ye(e,t){for(var n,i,o,r=[],s=0,a=e.length;s<a;s++)(i=e[s]).style&&(r[s]=z.get(i,"olddisplay"),n=i.style.display,t?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&q(i)&&(r[s]=z.access(i,"olddisplay",xe(i.nodeName)))):(o=q(i),"none"===n&&o||z.set(i,"olddisplay",o?n:k.css(i,"display"))));for(s=0;s<a;s++)(i=e[s]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function Ve(e,t,n,i,o){return new Ve.prototype.init(e,t,n,i,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=je(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=k.camelCase(t),l=e.style;return t=k.cssProps[a]||(k.cssProps[a]=We(a)||a),s=k.cssHooks[t]||k.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:l[t]:("string"===(r=typeof n)&&(o=F.exec(n))&&o[1]&&(n=Y(e,t,o),r="number"),void(null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(k.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l[t]=n))))}},css:function(e,t,n,i){var o,r=k.camelCase(t);return t=k.cssProps[r]||(k.cssProps[r]=We(r)||r),"normal"===(o=void 0===(o=(r=k.cssHooks[t]||k.cssHooks[r])&&"get"in r?r.get(e,!0,n):o)?je(e,t,i):o)&&t in Ne&&(o=Ne[t]),""===n||n?(t=parseFloat(o),!0===n||isFinite(t)?t||0:o):o}}),k.each(["height","width"],function(e,r){k.cssHooks[r]={get:function(e,t,n){return t?Re.test(k.css(e,"display"))&&0===e.offsetWidth?ke(e,ze,function(){return Ue(e,r,n)}):Ue(e,r,n):void 0},set:function(e,t,n){var i,o=n&&Se(e),o=n&&Fe(e,r,n,"border-box"===k.css(e,"boxSizing",!1,o),o);return o&&(i=F.exec(t))&&"px"!==(i[3]||"px")&&(e.style[r]=t,t=k.css(e,r)),qe(0,t,o)}}}),k.cssHooks.marginLeft=Be(g.reliableMarginLeft,function(e,t){return t?(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-ke(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),k.cssHooks.marginRight=Be(g.reliableMarginRight,function(e,t){return t?ke(e,{display:"inline-block"},je,[e,"marginRight"]):void 0}),k.each({margin:"",padding:"",border:"Width"},function(o,r){k.cssHooks[o+r]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+U[t]+r]=i[t]||i[t-2]||i[0];return n}},Ae.test(o)||(k.cssHooks[o+r].set=qe)}),k.fn.extend({css:function(e,t){return j(this,function(e,t,n){var i,o,r={},s=0;if(k.isArray(t)){for(i=Se(e),o=t.length;s<o;s++)r[t[s]]=k.css(e,t[s],!1,i);return r}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)},show:function(){return Ye(this,!0)},hide:function(){return Ye(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){q(this)?k(this).show():k(this).hide()})}}),((k.Tween=Ve).prototype={constructor:Ve,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return(e&&e.get?e:Ve.propHooks._default).get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:Ve.propHooks._default).set(this),this}}).init.prototype=Ve.prototype,(Ve.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=k.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[k.cssProps[e.prop]]&&!k.cssHooks[e.prop]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=Ve.prototype.init,k.fx.step={};var Xe,$e,Ge=/^(?:toggle|show|hide)$/,Ke=/queueHooks$/;function Qe(){return x.setTimeout(function(){Xe=void 0}),Xe=k.now()}function Je(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=U[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Ze(e,t,n){for(var i,o=(et.tweeners[t]||[]).concat(et.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function et(o,e,t){var n,r,i=0,s=et.prefilters.length,a=k.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Xe||Qe(),e=Math.max(0,c.startTime+c.duration-e),t=1-(e/c.duration||0),n=0,i=c.tweens.length;n<i;n++)c.tweens[n].run(t);return a.notifyWith(o,[c,t,e]),t<1&&i?e:(a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:Xe||Qe(),duration:t.duration,tweens:[],createTween:function(e,t){e=k.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(e),e},stop:function(e){var t=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;t<n;t++)c.tweens[t].run(1);return e?(a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c,e])):a.rejectWith(o,[c,e]),this}}),u=c.props;for(function(e,t){var n,i,o,r,s;for(n in e)if(i=k.camelCase(n),o=t[i],r=e[n],k.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),s=k.cssHooks[i],s&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}(u,c.opts.specialEasing);i<s;i++)if(n=et.prefilters[i].call(c,o,u,c.opts))return k.isFunction(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=k.proxy(n.stop,n)),n;return k.map(u,Ze,c),k.isFunction(c.opts.start)&&c.opts.start.call(o,c),k.fx.timer(k.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}k.Animation=k.extend(et,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Y(n.elem,e,F.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,o=(e=k.isFunction(e)?(t=e,["*"]):e.match(I)).length;i<o;i++)n=e[i],et.tweeners[n]=et.tweeners[n]||[],et.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var i,o,r,s,a,l,c,u=this,d={},h=t.style,f=t.nodeType&&q(t),p=z.get(t,"fxshow");for(i in n.queue||(null==(a=k._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,k.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=k.css(t,"display"))?z.get(t,"olddisplay")||xe(t.nodeName):c)&&"none"===k.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(o=e[i],Ge.exec(o)){if(delete e[i],r=r||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!p||void 0===p[i])continue;f=!0}d[i]=p&&p[i]||k.style(t,i)}else c=void 0;if(k.isEmptyObject(d))"inline"===("none"===c?xe(t.nodeName):c)&&(h.display=c);else for(i in p?"hidden"in p&&(f=p.hidden):p=z.access(t,"fxshow",{}),r&&(p.hidden=!f),f?k(t).show():u.done(function(){k(t).hide()}),u.done(function(){for(var e in z.remove(t,"fxshow"),d)k.style(t,e,d[e])}),d)s=Ze(f?p[i]:0,i,u),i in p||(p[i]=s.start,f&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?et.prefilters.unshift(e):et.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||k.isFunction(e)&&e,duration:e,easing:n&&t||t&&!k.isFunction(t)&&t};return i.duration=k.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in k.fx.speeds?k.fx.speeds[i.duration]:k.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){k.isFunction(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(q).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var o=k.isEmptyObject(t),r=k.speed(e,n,i),i=function(){var e=et(this,k.extend({},t),r);(o||z.get(this,"finish"))&&e.stop(!0)};return i.finish=i,o||!1===r.queue?this.each(i):this.queue(r.queue,i)},stop:function(o,e,r){function s(e){var t=e.stop;delete e.stop,t(r)}return"string"!=typeof o&&(r=e,e=o,o=void 0),e&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=k.timers,i=z.get(this);if(t)i[t]&&i[t].stop&&s(i[t]);else for(t in i)i[t]&&i[t].stop&&Ke.test(t)&&s(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(r),e=!1,n.splice(t,1));!e&&r||k.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=z.get(this),n=t[s+"queue"],i=t[s+"queueHooks"],o=k.timers,r=n?n.length:0;for(t.finish=!0,k.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===s&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,i){var o=k.fn[i];k.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(Je(i,!0),e,t,n)}}),k.each({slideDown:Je("show"),slideUp:Je("hide"),slideToggle:Je("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){k.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(Xe=k.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),Xe=void 0},k.fx.timer=function(e){k.timers.push(e),e()?k.fx.start():k.timers.pop()},k.fx.interval=13,k.fx.start=function(){$e=$e||x.setInterval(k.fx.tick,k.fx.interval)},k.fx.stop=function(){x.clearInterval($e),$e=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(i,e){return i=k.fx&&k.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=x.setTimeout(e,i);t.stop=function(){x.clearTimeout(n)}})},f=S.createElement("input"),n=S.createElement("select"),s=n.appendChild(S.createElement("option")),f.type="checkbox",g.checkOn=""!==f.value,g.optSelected=s.selected,n.disabled=!0,g.optDisabled=!s.disabled,(f=S.createElement("input")).value="t",f.type="radio",g.radioValue="t"===f.value;var tt,nt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return j(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?k.prop(e,t,n):(1===r&&k.isXMLDoc(e)||(t=t.toLowerCase(),o=k.attrHooks[t]||(k.expr.match.bool.test(t)?tt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&k.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(I);if(r&&1===e.nodeType)for(;n=r[o++];)i=k.propFix[n]||n,k.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),tt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var r=nt[t]||k.find.attr;nt[t]=function(e,t,n){var i,o;return n||(o=nt[t],nt[t]=i,i=null!=r(e,t,n)?t.toLowerCase():null,nt[t]=o),i}});var it=/^(?:input|select|textarea|button)$/i,ot=/^(?:a|area)$/i;k.fn.extend({prop:function(e,t){return j(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):it.test(e.nodeName)||ot.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function st(e){return e.getAttribute&&e.getAttribute("class")||""}k.fn.extend({addClass:function(t){var e,n,i,o,r,s,a=0;if(k.isFunction(t))return this.each(function(e){k(this).addClass(t.call(this,e,st(this)))});if("string"==typeof t&&t)for(e=t.match(I)||[];n=this[a++];)if(s=st(n),i=1===n.nodeType&&(" "+s+" ").replace(rt," ")){for(r=0;o=e[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s!==(s=k.trim(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,o,r,s,a=0;if(k.isFunction(t))return this.each(function(e){k(this).removeClass(t.call(this,e,st(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(I)||[];n=this[a++];)if(s=st(n),i=1===n.nodeType&&(" "+s+" ").replace(rt," ")){for(r=0;o=e[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s!==(s=k.trim(i))&&n.setAttribute("class",s)}return this},toggleClass:function(o,t){var r=typeof o;return"boolean"==typeof t&&"string"==r?t?this.addClass(o):this.removeClass(o):k.isFunction(o)?this.each(function(e){k(this).toggleClass(o.call(this,e,st(this),t),t)}):this.each(function(){var e,t,n,i;if("string"==r)for(t=0,n=k(this),i=o.match(I)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&"boolean"!=r||((e=st(this))&&z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==o&&z.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+st(t)+" ").replace(rt," ").indexOf(i))return!0;return!1}});var at=/\r/g,lt=/[\x20\t\r\n\f]+/g;k.fn.extend({val:function(t){var n,e,i,o=this[0];return arguments.length?(i=k.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,k(this).val()):t)?e="":"number"==typeof e?e+="":k.isArray(e)&&(e=k.map(e,function(e){return null==e?"":e+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):o?(n=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(at,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:k.trim(k.text(e)).replace(lt," ")}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,r=o?null:[],s=o?i+1:n.length,a=i<0?s:o?i:0;a<s;a++)if(((t=n[a]).selected||a===i)&&(g.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!k.nodeName(t.parentNode,"optgroup"))){if(t=k(t).val(),o)return t;r.push(t)}return r},set:function(e,t){for(var n,i,o=e.options,r=k.makeArray(t),s=o.length;s--;)((i=o[s]).selected=-1<k.inArray(k.valHooks.option.get(i),r))&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){return k.isArray(t)?e.checked=-1<k.inArray(k(e).val(),t):void 0}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ct=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(e,t,n,i){var o,r,s,a,l,c,u=[n||S],d=p.call(e,"type")?e.type:e,h=p.call(e,"namespace")?e.namespace.split("."):[],f=r=n=n||S;if(3!==n.nodeType&&8!==n.nodeType&&!ct.test(d+k.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),a=d.indexOf(":")<0&&"on"+d,(e=e[k.expando]?e:new k.Event(d,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[d]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!k.isWindow(n)){for(s=c.delegateType||d,ct.test(s+d)||(f=f.parentNode);f;f=f.parentNode)u.push(f),r=f;r===(n.ownerDocument||S)&&u.push(r.defaultView||r.parentWindow||x)}for(o=0;(f=u[o++])&&!e.isPropagationStopped();)e.type=1<o?s:c.bindType||d,(l=(z.get(f,"events")||{})[e.type]&&z.get(f,"handle"))&&l.apply(f,t),(l=a&&f[a])&&l.apply&&B(f)&&(e.result=l.apply(f,t),!1===e.result&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!B(n)||a&&k.isFunction(n[d])&&!k.isWindow(n)&&((r=n[a])&&(n[a]=null),n[k.event.triggered=d](),k.event.triggered=void 0,r&&(n[a]=r)),e.result}},simulate:function(e,t,n){e=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(e,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?k.event.trigger(e,t,n,!0):void 0}}),k.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),g.focusin="onfocusin"in x,g.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,i){function o(e){k.event.simulate(i,e.target,k.event.fix(e))}k.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=z.access(e,i);t||e.addEventListener(n,o,!0),z.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=z.access(e,i)-1;t?z.access(e,i,t):(e.removeEventListener(n,o,!0),z.remove(e,i))}}});var ut=x.location,dt=k.now(),ht=/\?/;k.parseJSON=function(e){return JSON.parse(e+"")},k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new x.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var ft=/#.*$/,pt=/([?&])_=[^&]*/,mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,gt=/^(?:GET|HEAD)$/,yt=/^\/\//,vt={},bt={},wt="*/".concat("*"),xt=S.createElement("a");function St(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(I)||[];if(k.isFunction(t))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(t)):(r[n]=r[n]||[]).push(t)}}function kt(t,i,o,r){var s={},a=t===bt;function l(e){var n;return s[e]=!0,k.each(t[e]||[],function(e,t){t=t(i,o,r);return"string"!=typeof t||a||s[t]?a?!(n=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),n}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Tt(e,t){var n,i,o=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i=i||{})[n]=t[n]);return i&&k.extend(!0,e,i),e}xt.href=ut.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":k.parseJSON,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Tt(Tt(e,k.ajaxSettings),t):Tt(k.ajaxSettings,e)},ajaxPrefilter:St(vt),ajaxTransport:St(bt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,u,n,d,h,i,f=k.ajaxSetup({},t=t||{}),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?k(p):k.event,g=k.Deferred(),y=k.Callbacks("once memory"),v=f.statusCode||{},o={},r={},b=0,s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!n)for(n={};t=mt.exec(u);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=r[n]=r[n]||e,o[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){e=e||s;return l&&l.abort(e),a(0,e),this}};if(g.promise(w).complete=y.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||ut.href)+"").replace(ft,"").replace(yt,ut.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=k.trim(f.dataType||"*").toLowerCase().match(I)||[""],null==f.crossDomain){e=S.createElement("a");try{e.href=f.url,e.href=e.href,f.crossDomain=xt.protocol+"//"+xt.host!=e.protocol+"//"+e.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),kt(vt,f,t,w),2===b)return w;for(i in(h=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!gt.test(f.type),c=f.url,f.hasContent||(f.data&&(c=f.url+=(ht.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=pt.test(c)?c.replace(pt,"$1_="+dt++):c+(ht.test(c)?"&":"?")+"_="+dt++)),f.ifModified&&(k.lastModified[c]&&w.setRequestHeader("If-Modified-Since",k.lastModified[c]),k.etag[c]&&w.setRequestHeader("If-None-Match",k.etag[c])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+wt+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(p,w,f)||2===b))return w.abort();for(i in s="abort",{success:1,error:1,complete:1})w[i](f[i]);if(l=kt(bt,f,t,w)){if(w.readyState=1,h&&m.trigger("ajaxSend",[w,f]),2===b)return w;f.async&&0<f.timeout&&(d=x.setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,l.send(o,a)}catch(e){if(!(b<2))throw e;a(-1,e)}}else a(-1,"No Transport");function a(e,t,n,i){var o,r,s,a=t;2!==b&&(b=2,d&&x.clearTimeout(d),l=void 0,u=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s=s||o}r=r||s}return r?(r!==l[0]&&l.unshift(r),n[r]):void 0}(f,w,n)),s=function(e,t,n,i){var o,r,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if(a=o.split(" "),a[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,s,w,i),i?(f.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(k.lastModified[c]=n),(n=w.getResponseHeader("etag"))&&(k.etag[c]=n)),204===e||"HEAD"===f.type?a="nocontent":304===e?a="notmodified":(a=s.state,o=s.data,i=!(r=s.error))):(r=a,!e&&a||(a="error",e<0&&(e=0))),w.status=e,w.statusText=(t||a)+"",i?g.resolveWith(p,[o,a,w]):g.rejectWith(p,[w,a,r]),w.statusCode(v),v=void 0,h&&m.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?o:r]),y.fireWith(p,[w,a]),h&&(m.trigger("ajaxComplete",[w,f]),--k.active||k.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,o){k[o]=function(e,t,n,i){return k.isFunction(t)&&(i=i||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:o,dataType:i,data:t,success:n},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e){return k.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(t){var e;return k.isFunction(t)?this.each(function(e){k(this).wrapAll(t.call(this,e))}):(this[0]&&(e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return k.isFunction(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=k.isFunction(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){k.nodeName(this,"body")||k(this).replaceWith(this.childNodes)}).end()}}),k.expr.filters.hidden=function(e){return!k.expr.filters.visible(e)},k.expr.filters.visible=function(e){return 0<e.offsetWidth||0<e.offsetHeight||0<e.getClientRects().length};var _t=/%20/g,Ct=/\[\]$/,Et=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;k.param=function(e,t){function n(e,t){t=k.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var i,o=[];if(void 0===t&&(t=k.ajaxSettings&&k.ajaxSettings.traditional),k.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,o,r){if(k.isArray(e))k.each(e,function(e,t){o||Ct.test(i)?r(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,r)});else if(o||"object"!==k.type(e))r(i,e);else for(var t in e)n(i+"["+t+"]",e[t],o,r)}(i,e[i],t,n);return o.join("&").replace(_t,"+")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Ot.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!V.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:k.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}}),k.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Mt=k.ajaxSettings.xhr();g.cors=!!Mt&&"withCredentials"in Mt,g.ajax=Mt=!!Mt,k.ajaxTransport(function(o){var r,s;return g.cors||Mt&&!o.crossDomain?{send:function(e,t){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);r=function(e){return function(){r&&(r=s=i.onload=i.onerror=i.onabort=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(At[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),s=i.onerror=r("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){r&&s()})},r=r("abort");try{i.send(o.hasContent&&o.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}:void 0}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var i,o;if(n.crossDomain)return{send:function(e,t){i=k("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){i.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(i[0])},abort:function(){o&&o()}}});var It=[],Pt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=It.pop()||k.expando+"_"+dt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,r,s=!1!==e.jsonp&&(Pt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pt.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=k.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Pt,"$1"+i):!1!==e.jsonp&&(e.url+=(ht.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||k.error(i+" was not called"),r[0]},e.dataTypes[0]="json",o=x[i],x[i]=function(){r=arguments},n.always(function(){void 0===o?k(x).removeProp(i):x[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,It.push(i)),r&&k.isFunction(o)&&o(r[0]),r=o=void 0}),"script"):void 0}),k.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||S;var i=w.exec(e),n=!n&&[];return i?[t.createElement(i[1])]:(i=Z([e],t,n),n&&n.length&&k(n).remove(),k.merge([],i.childNodes))};var jt=k.fn.load;function Bt(e){return k.isWindow(e)?e:9===e.nodeType&&e.defaultView}k.fn.load=function(e,t,n){if("string"!=typeof e&&jt)return jt.apply(this,arguments);var i,o,r,s=this,a=e.indexOf(" ");return-1<a&&(i=k.trim(e.slice(a)),e=e.slice(0,a)),k.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<s.length&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.filters.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var i,o,r,s,a=k.css(e,"position"),l=k(e),c={};"static"===a&&(e.style.position="relative"),r=l.offset(),i=k.css(e,"top"),s=k.css(e,"left"),s=("absolute"===a||"fixed"===a)&&-1<(i+s).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(s)||0),null!=(t=k.isFunction(t)?t.call(e,n,k.extend({},r)):t).top&&(c.top=t.top-r.top+o),null!=t.left&&(c.left=t.left-r.left+s),"using"in t?t.using.call(e,c):l.css(c)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n=this[0],i={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,k.contains(e,n)?(i=n.getBoundingClientRect(),o=Bt(o),{top:i.top+o.pageYOffset-e.clientTop,left:i.left+o.pageXOffset-e.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===k.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(i=!k.nodeName(e[0],"html")?e.offset():i).top+=k.css(e[0],"borderTopWidth",!0),i.left+=k.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-k.css(n,"marginTop",!0),left:t.left-i.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||Ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;k.fn[t]=function(e){return j(this,function(e,t,n){var i=Bt(e);return void 0===n?i?i[o]:e[t]:void(i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):e[t]=n)},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=Be(g.pixelPosition,function(e,t){return t?(t=je(e,n),Me.test(t)?k(e).position()[n]+"px":t):void 0})}),k.each({Height:"height",Width:"width"},function(r,s){k.each({padding:"inner"+r,content:s,"":"outer"+r},function(i,e){k.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return j(this,function(e,t,n){var i;return k.isWindow(e)?e.document.documentElement["client"+r]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+r],i["scroll"+r],e.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?k.css(e,t,o):k.style(e,t,n,o)},s,n?e:void 0,n,null)}})}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),k.fn.andSelf=k.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Rt=x.jQuery,zt=x.$;return k.noConflict=function(e){return x.$===k&&(x.$=zt),e&&x.jQuery===k&&(x.jQuery=Rt),k},e||(x.jQuery=x.$=k),k}),function(){for(var r=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),i=Math.max(0,16-(n-r)),o=window.setTimeout(function(){e(n+i)},i);return r=n+i,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).LocomotiveScroll=t()}(this,function(){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function e(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function t(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function r(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?t(Object(o),!0).forEach(function(e){var t,n;t=i,e=o[n=e],n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(n){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=a(n);return e=i?(e=a(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),t=this,!(e=e)||"object"!=typeof e&&"function"!=typeof e?l(t):e}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){e=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}(e,t);if(e){t=Object.getOwnPropertyDescriptor(e,t);return t.get?t.get.call(n):t.value}})(e,t,n||e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||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 d(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var f={el:document,name:"scroll",offset:[0,0],repeat:!1,smooth:!1,initPosition:{x:0,y:0},direction:"vertical",gestureDirection:"vertical",reloadOnContextChange:!1,lerp:.1,class:"is-inview",scrollbarContainer:!1,scrollbarClass:"c-scrollbar",scrollingClass:"has-scroll-scrolling",draggingClass:"has-scroll-dragging",smoothClass:"has-scroll-smooth",initClass:"has-scroll-init",getSpeed:!1,getDirection:!1,scrollFromAnywhere:!1,multiplier:1,firefoxMultiplier:50,touchMultiplier:2,resetNativeScroll:!0,tablet:{smooth:!1,direction:"vertical",gestureDirection:"vertical",breakpoint:1024},smartphone:{smooth:!1,direction:"vertical",gestureDirection:"vertical"}},p=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i(this,t),Object.assign(this,f,e),this.smartphone=f.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=f.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),this.namespace="locomotive",this.html=document.documentElement,this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.els={},this.currentElements={},this.listeners={},this.hasScrollTicking=!1,this.hasCallEventSet=!1,this.checkScroll=this.checkScroll.bind(this),this.checkResize=this.checkResize.bind(this),this.checkEvent=this.checkEvent.bind(this),this.instance={scroll:{x:0,y:0},limit:{x:this.html.offsetWidth,y:this.html.offsetHeight},currentElements:this.currentElements},this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",this.isMobile&&(this.direction=this[this.context].direction),"horizontal"===this.direction?this.directionAxis="x":this.directionAxis="y",this.getDirection&&(this.instance.direction=null),this.getDirection&&(this.instance.speed=0),this.html.classList.add(this.initClass),window.addEventListener("resize",this.checkResize,!1)}return e(t,[{key:"init",value:function(){this.initEvents()}},{key:"checkScroll",value:function(){this.dispatchScroll()}},{key:"checkResize",value:function(){var e=this;this.resizeTick||(this.resizeTick=!0,requestAnimationFrame(function(){e.resize(),e.resizeTick=!1}))}},{key:"resize",value:function(){}},{key:"checkContext",value:function(){var e;this.reloadOnContextChange&&(this.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints||this.windowWidth<this.tablet.breakpoint,this.isTablet=this.isMobile&&this.windowWidth>=this.tablet.breakpoint,e=this.context,this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",e!=this.context&&("desktop"==e?this:this[e]).smooth!=("desktop"==this.context?this:this[this.context]).smooth&&window.location.reload())}},{key:"initEvents",value:function(){var t=this;this.scrollToEls=this.el.querySelectorAll("[data-".concat(this.name,"-to]")),this.setScrollTo=this.setScrollTo.bind(this),this.scrollToEls.forEach(function(e){e.addEventListener("click",t.setScrollTo,!1)})}},{key:"setScrollTo",value:function(e){e.preventDefault(),this.scrollTo(e.currentTarget.getAttribute("data-".concat(this.name,"-href"))||e.currentTarget.getAttribute("href"),{offset:e.currentTarget.getAttribute("data-".concat(this.name,"-offset"))})}},{key:"addElements",value:function(){}},{key:"detectElements",value:function(i){var o=this,r=this.instance.scroll.y,s=r+this.windowHeight,a=this.instance.scroll.x,l=a+this.windowWidth;Object.entries(this.els).forEach(function(e){var t,n=_(e,2),e=n[0],n=n[1];!n||n.inView&&!i||("horizontal"===o.direction?l>=n.left&&a<n.right&&o.setInView(n,e):s>=n.top&&r<n.bottom&&o.setInView(n,e)),n&&n.inView&&("horizontal"===o.direction?(t=n.right-n.left,n.progress=(o.instance.scroll.x-(n.left-o.windowWidth))/(t+o.windowWidth),(l<n.left||a>n.right)&&o.setOutOfView(n,e)):(t=n.bottom-n.top,n.progress=(o.instance.scroll.y-(n.top-o.windowHeight))/(t+o.windowHeight),(s<n.top||r>n.bottom)&&o.setOutOfView(n,e)))}),this.hasScrollTicking=!1}},{key:"setInView",value:function(e,t){this.els[t].inView=!0,e.el.classList.add(e.class),(this.currentElements[t]=e).call&&this.hasCallEventSet&&(this.dispatchCall(e,"enter"),e.repeat||(this.els[t].call=!1))}},{key:"setOutOfView",value:function(e,t){var n=this;this.els[t].inView=!1,Object.keys(this.currentElements).forEach(function(e){e===t&&delete n.currentElements[e]}),e.call&&this.hasCallEventSet&&this.dispatchCall(e,"exit"),e.repeat&&e.el.classList.remove(e.class)}},{key:"dispatchCall",value:function(e,t){this.callWay=t,this.callValue=e.call.split(",").map(function(e){return e.trim()}),this.callObj=e,1==this.callValue.length&&(this.callValue=this.callValue[0]);e=new Event(this.namespace+"call");this.el.dispatchEvent(e)}},{key:"dispatchScroll",value:function(){var e=new Event(this.namespace+"scroll");this.el.dispatchEvent(e)}},{key:"setEvents",value:function(e,t){this.listeners[e]||(this.listeners[e]=[]);var n=this.listeners[e];n.push(t),1===n.length&&this.el.addEventListener(this.namespace+e,this.checkEvent,!1),"call"===e&&(this.hasCallEventSet=!0,this.detectElements(!0))}},{key:"unsetEvents",value:function(e,t){var n;this.listeners[e]&&((t=(n=this.listeners[e]).indexOf(t))<0||(n.splice(t,1),0===n.index&&this.el.removeEventListener(this.namespace+e,this.checkEvent,!1)))}},{key:"checkEvent",value:function(e){var t=this,n=e.type.replace(this.namespace,""),e=this.listeners[n];e&&0!==e.length&&e.forEach(function(e){switch(n){case"scroll":return e(t.instance);case"call":return e(t.callValue,t.callWay,t.callObj);default:return e()}})}},{key:"startScroll",value:function(){}},{key:"stopScroll",value:function(){}},{key:"setScroll",value:function(e,t){this.instance.scroll={x:0,y:0}}},{key:"destroy",value:function(){var t=this;window.removeEventListener("resize",this.checkResize,!1),Object.keys(this.listeners).forEach(function(e){t.el.removeEventListener(t.namespace+e,t.checkEvent,!1)}),this.listeners={},this.scrollToEls.forEach(function(e){e.removeEventListener("click",t.setScrollTo,!1)}),this.html.classList.remove(this.initClass)}}]),t}(),g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e,t){return e(t={exports:{}},t.exports),t.exports}var v=y(function(e,t){function n(){var e,i,a,l,n,t,c=window,u=document;function d(e,t){this.scrollLeft=e,this.scrollTop=t}function o(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function r(e,t){return"Y"===t?e.clientHeight+n<e.scrollHeight:"X"===t?e.clientWidth+n<e.scrollWidth:void 0}function s(e,t){t=c.getComputedStyle(e,null)["overflow"+t];return"auto"===t||"scroll"===t}function h(e){for(;e!==u.body&&!1===(n=void 0,n=r(t=e,"Y")&&s(t,"Y"),t=r(t,"X")&&s(t,"X"),n||t);)e=e.parentNode||e.host;var t,n;return e}function f(e){var t,n=(l()-e.startTime)/i;t=n=1<n?1:n,n=.5*(1-Math.cos(Math.PI*t)),t=e.startX+(e.x-e.startX)*n,n=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,t,n),t===e.x&&n===e.y||c.requestAnimationFrame(f.bind(c,e))}function p(e,t,n){var i,o,r,s=l(),e=e===u.body?(o=(i=c).scrollX||c.pageXOffset,r=c.scrollY||c.pageYOffset,a.scroll):(o=(i=e).scrollLeft,r=e.scrollTop,d);f({scrollable:i,method:e,startTime:s,startX:o,startY:r,x:t,y:n})}"scrollBehavior"in u.documentElement.style&&!0!==c.__forceSmoothScrollPolyfill__||(e=c.HTMLElement||c.Element,i=468,a={scroll:c.scroll||c.scrollTo,scrollBy:c.scrollBy,elementScroll:e.prototype.scroll||d,scrollIntoView:e.prototype.scrollIntoView},l=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now,t=c.navigator.userAgent,n=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(t)?1:0,c.scroll=c.scrollTo=function(){void 0!==arguments[0]&&(!0!==o(arguments[0])?p.call(c,u.body,void 0!==arguments[0].left?~~arguments[0].left:c.scrollX||c.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:c.scrollY||c.pageYOffset):a.scroll.call(c,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:c.scrollX||c.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:c.scrollY||c.pageYOffset))},c.scrollBy=function(){void 0!==arguments[0]&&(o(arguments[0])?a.scrollBy.call(c,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(c,u.body,~~arguments[0].left+(c.scrollX||c.pageXOffset),~~arguments[0].top+(c.scrollY||c.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==o(arguments[0])){var e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==o(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){var e,t,n;!0!==o(arguments[0])?(t=(e=h(this)).getBoundingClientRect(),n=this.getBoundingClientRect(),e!==u.body?(p.call(this,e,e.scrollLeft+n.left-t.left,e.scrollTop+n.top-t.top),"fixed"!==c.getComputedStyle(e).position&&c.scrollBy({left:t.left,top:t.top,behavior:"smooth"})):c.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])})}e.exports={polyfill:n}}),b=(v.polyfill,function(){s(n,p);var t=c(n);function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i(this,n),(e=t.call(this,e)).resetNativeScroll&&(history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0)),window.addEventListener("scroll",e.checkScroll,!1),void 0===window.smoothscrollPolyfill&&(window.smoothscrollPolyfill=v,window.smoothscrollPolyfill.polyfill()),e}return e(n,[{key:"init",value:function(){this.instance.scroll.y=window.pageYOffset,this.addElements(),this.detectElements(),u(a(n.prototype),"init",this).call(this)}},{key:"checkScroll",value:function(){var e=this;u(a(n.prototype),"checkScroll",this).call(this),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.instance.scroll.y=window.pageYOffset,Object.entries(this.els).length&&(this.hasScrollTicking||(requestAnimationFrame(function(){e.detectElements()}),this.hasScrollTicking=!0))}},{key:"addDirection",value:function(){window.pageYOffset>this.instance.scroll.y?"down"!==this.instance.direction&&(this.instance.direction="down"):window.pageYOffset<this.instance.scroll.y&&"up"!==this.instance.direction&&(this.instance.direction="up")}},{key:"addSpeed",value:function(){window.pageYOffset!=this.instance.scroll.y?this.instance.speed=(window.pageYOffset-this.instance.scroll.y)/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"resize",value:function(){Object.entries(this.els).length&&(this.windowHeight=window.innerHeight,this.updateElements())}},{key:"addElements",value:function(){var h=this;this.els={},this.el.querySelectorAll("[data-"+this.name+"]").forEach(function(e,t){e.getBoundingClientRect();var n=e.dataset[h.name+"Class"]||h.class,i="string"==typeof e.dataset[h.name+"Id"]?e.dataset[h.name+"Id"]:t,o="string"==typeof e.dataset[h.name+"Offset"]?e.dataset[h.name+"Offset"].split(","):h.offset,r=e.dataset[h.name+"Repeat"],s=e.dataset[h.name+"Call"],a=e.dataset[h.name+"Target"],l=void 0!==a?document.querySelector("".concat(a)):e,c=l.getBoundingClientRect(),u=c.top+h.instance.scroll.y,d=c.left+h.instance.scroll.x,t=u+l.offsetHeight,a=d+l.offsetWidth,r="false"!=r&&(null!=r||h.repeat),c=h.getRelativeOffset(o);u+=c[0],t-=c[1],h.els[i]={el:e,targetEl:l,id:i,class:n,top:u,bottom:t,left:d,right:a,offset:o,progress:0,repeat:r,inView:!1,call:s},e.classList.contains(n)&&h.setInView(h.els[i],i)})}},{key:"updateElements",value:function(){var o=this;Object.entries(this.els).forEach(function(e){var t=_(e,2),n=t[0],i=t[1],e=i.targetEl.getBoundingClientRect().top+o.instance.scroll.y,t=e+i.targetEl.offsetHeight,i=o.getRelativeOffset(i.offset);o.els[n].top=e+i[0],o.els[n].bottom=t-i[1]}),this.hasScrollTicking=!1}},{key:"getRelativeOffset",value:function(e){var t=[0,0];if(e)for(var n=0;n<e.length;n++)"string"==typeof e[n]?e[n].includes("%")?t[n]=parseInt(e[n].replace("%","")*this.windowHeight/100):t[n]=parseInt(e[n]):t[n]=e[n];return t}},{key:"scrollTo",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=parseInt(t.offset)||0,i=t.callback||!1;if("string"==typeof e){if("top"===e)e=this.html;else if("bottom"===e)e=this.html.offsetHeight-window.innerHeight;else if(!(e=document.querySelector(e)))return}else if("number"==typeof e)e=parseInt(e);else if(!e||!e.tagName)return void console.warn("`target` parameter is not valid");var n="number"!=typeof e?e.getBoundingClientRect().top+n+this.instance.scroll.y:e+n,o=function(){return parseInt(window.pageYOffset)===parseInt(n)};if(i){if(o())return void i();e=function e(){o()&&(window.removeEventListener("scroll",e),i())};window.addEventListener("scroll",e)}window.scrollTo({top:n,behavior:0===t.duration?"auto":"smooth"})}},{key:"update",value:function(){this.addElements(),this.detectElements()}},{key:"destroy",value:function(){u(a(n.prototype),"destroy",this).call(this),window.removeEventListener("scroll",this.checkScroll,!1)}}]),n}()),w=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var k=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var n,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var r in n=Object(arguments[o]))x.call(n,r)&&(i[r]=n[r]);if(w)for(var s=w(n),a=0;a<s.length;a++)S.call(n,s[a])&&(i[s[a]]=n[s[a]])}return i};function T(){}T.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,s=i.length;r<s;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}};function C(e){if(!e)return console.warn("bindAll requires at least one argument.");var t=Array.prototype.slice.call(arguments,1);if(0===t.length)for(var n in e)M.call(e,n)&&"function"==typeof e[n]&&"[object Function]"==A.call(e[n])&&t.push(n);for(var i=0;i<t.length;i++){var o=t[i];e[o]=function(e,t){return function(){return e.apply(t,arguments)}}(e[o],e)}}var E=T,L=y(function(e,t){!function(){function e(e,t,n,i){this.stability=null!=e?Math.abs(e):8,this.sensitivity=null!=t?1+Math.abs(t):100,this.tolerance=null!=n?1+Math.abs(n):1.1,this.delay=null!=i?i:150,this.lastUpDeltas=function(){for(var e=[],t=1,n=2*this.stability;1<=n?t<=n:n<=t;1<=n?t++:t--)e.push(null);return e}.call(this),this.lastDownDeltas=function(){for(var e=[],t=1,n=2*this.stability;1<=n?t<=n:n<=t;1<=n?t++:t--)e.push(null);return e}.call(this),this.deltasTimestamp=function(){for(var e=[],t=1,n=2*this.stability;1<=n?t<=n:n<=t;1<=n?t++:t--)e.push(null);return e}.call(this)}(null!==t?t:this).Lethargy=(e.prototype.check=function(e){var t;return null!=(e=e.originalEvent||e).wheelDelta?t=e.wheelDelta:null!=e.deltaY?t=-40*e.deltaY:null==e.detail&&0!==e.detail||(t=-40*e.detail),this.deltasTimestamp.push(Date.now()),this.deltasTimestamp.shift(),0<t?(this.lastUpDeltas.push(t),this.lastUpDeltas.shift(),this.isInertia(1)):(this.lastDownDeltas.push(t),this.lastDownDeltas.shift(),this.isInertia(-1))},e.prototype.isInertia=function(e){var t,n,i,o=-1===e?this.lastDownDeltas:this.lastUpDeltas;return null===o[0]?e:!(this.deltasTimestamp[2*this.stability-2]+this.delay>Date.now()&&o[0]===o[2*this.stability-1])&&(n=o.slice(0,this.stability),t=o.slice(this.stability,2*this.stability),i=n.reduce(function(e,t){return e+t}),o=t.reduce(function(e,t){return e+t}),n=i/n.length,t=o/t.length,Math.abs(n)<Math.abs(t*this.tolerance)&&this.sensitivity<Math.abs(t)&&e)},e.prototype.showLastUpDeltas=function(){return this.lastUpDeltas},e.prototype.showLastDownDeltas=function(){return this.lastDownDeltas},e)}.call(g)}),O={hasWheelEvent:"onwheel"in document,hasMouseWheelEvent:"onmousewheel"in document,hasTouch:"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,hasTouchWin:navigator.msMaxTouchPoints&&1<navigator.msMaxTouchPoints,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:-1<navigator.userAgent.indexOf("Firefox")},A=Object.prototype.toString,M=Object.prototype.hasOwnProperty;var I=L.Lethargy,P="virtualscroll",j=H,B=37,R=38,z=39,N=40,D=32;function H(e){C(this,"_onWheel","_onMouseWheel","_onTouchStart","_onTouchMove","_onKeyDown"),this.el=window,e&&e.el&&(this.el=e.el,delete e.el),this.options=k({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",limitInertia:!1,useKeyboard:!0,useTouch:!0},e),this.options.limitInertia&&(this._lethargy=new I),this._emitter=new E,this._event={y:0,x:0,deltaX:0,deltaY:0},this.touchStartX=null,this.touchStartY=null,this.bodyTouchAction=null,void 0!==this.options.passive&&(this.listenerOptions={passive:this.options.passive})}function W(e,t,n){return(1-n)*e+n*t}function q(e){var t={};if(window.getComputedStyle){var n=getComputedStyle(e),e=n.transform||n.webkitTransform||n.mozTransform,n=e.match(/^matrix3d\((.+)\)$/);return n?(t.x=n?parseFloat(n[1].split(", ")[12]):0,t.y=n?parseFloat(n[1].split(", ")[13]):0):(n=e.match(/^matrix\((.+)\)$/),t.x=n?parseFloat(n[1].split(", ")[4]):0,t.y=n?parseFloat(n[1].split(", ")[5]):0),t}}function F(e){for(var t=[];e&&e!==document;e=e.parentNode)t.push(e);return t}H.prototype._notify=function(e){var t=this._event;t.x+=t.deltaX,t.y+=t.deltaY,this._emitter.emit(P,{x:t.x,y:t.y,deltaX:t.deltaX,deltaY:t.deltaY,originalEvent:e})},H.prototype._onWheel=function(e){var t,n=this.options;this._lethargy&&!1===this._lethargy.check(e)||((t=this._event).deltaX=e.wheelDeltaX||-1*e.deltaX,t.deltaY=e.wheelDeltaY||-1*e.deltaY,O.isFirefox&&1==e.deltaMode&&(t.deltaX*=n.firefoxMultiplier,t.deltaY*=n.firefoxMultiplier),t.deltaX*=n.mouseMultiplier,t.deltaY*=n.mouseMultiplier,this._notify(e))},H.prototype._onMouseWheel=function(e){var t;this.options.limitInertia&&!1===this._lethargy.check(e)||((t=this._event).deltaX=e.wheelDeltaX||0,t.deltaY=e.wheelDeltaY||e.wheelDelta,this._notify(e))},H.prototype._onTouchStart=function(e){e=e.targetTouches?e.targetTouches[0]:e;this.touchStartX=e.pageX,this.touchStartY=e.pageY},H.prototype._onTouchMove=function(e){var t=this.options;t.preventTouch&&!e.target.classList.contains(t.unpreventTouchClass)&&e.preventDefault();var n=this._event,i=e.targetTouches?e.targetTouches[0]:e;n.deltaX=(i.pageX-this.touchStartX)*t.touchMultiplier,n.deltaY=(i.pageY-this.touchStartY)*t.touchMultiplier,this.touchStartX=i.pageX,this.touchStartY=i.pageY,this._notify(e)},H.prototype._onKeyDown=function(e){var t=this._event;t.deltaX=t.deltaY=0;var n=window.innerHeight-40;switch(e.keyCode){case B:case R:t.deltaY=this.options.keyStep;break;case z:case N:t.deltaY=-this.options.keyStep;break;case e.shiftKey:t.deltaY=n;break;case D:t.deltaY=-n;break;default:return}this._notify(e)},H.prototype._bind=function(){O.hasWheelEvent&&this.el.addEventListener("wheel",this._onWheel,this.listenerOptions),O.hasMouseWheelEvent&&this.el.addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),O.hasTouch&&this.options.useTouch&&(this.el.addEventListener("touchstart",this._onTouchStart,this.listenerOptions),this.el.addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),O.hasPointer&&O.hasTouchWin&&(this.bodyTouchAction=document.body.style.msTouchAction,document.body.style.msTouchAction="none",this.el.addEventListener("MSPointerDown",this._onTouchStart,!0),this.el.addEventListener("MSPointerMove",this._onTouchMove,!0)),O.hasKeyDown&&this.options.useKeyboard&&document.addEventListener("keydown",this._onKeyDown)},H.prototype._unbind=function(){O.hasWheelEvent&&this.el.removeEventListener("wheel",this._onWheel),O.hasMouseWheelEvent&&this.el.removeEventListener("mousewheel",this._onMouseWheel),O.hasTouch&&(this.el.removeEventListener("touchstart",this._onTouchStart),this.el.removeEventListener("touchmove",this._onTouchMove)),O.hasPointer&&O.hasTouchWin&&(document.body.style.msTouchAction=this.bodyTouchAction,this.el.removeEventListener("MSPointerDown",this._onTouchStart,!0),this.el.removeEventListener("MSPointerMove",this._onTouchMove,!0)),O.hasKeyDown&&this.options.useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)},H.prototype.on=function(e,t){this._emitter.on(P,e,t);t=this._emitter.e;t&&t[P]&&1===t[P].length&&this._bind()},H.prototype.off=function(e,t){this._emitter.off(P,e,t);t=this._emitter.e;(!t[P]||t[P].length<=0)&&this._unbind()},H.prototype.reset=function(){var e=this._event;e.x=0,e.y=0},H.prototype.destroy=function(){this._emitter.off(),this._unbind()};var U=4,Y=1e-7,V=10,X="function"==typeof Float32Array;function $(e,t){return 1-3*t+3*e}function G(e,t,n){return(($(t,n)*e+(3*n-6*t))*e+3*t)*e}function K(e,t,n){return 3*$(t,n)*e*e+2*(3*n-6*t)*e+3*t}function Q(e){return e}function J(r,t,s,n){if(!(0<=r&&r<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");if(r===t&&s===n)return Q;for(var a=new(X?Float32Array:Array)(11),e=0;e<11;++e)a[e]=G(.1*e,r,s);function i(e){for(var t=0,n=1;10!==n&&a[n]<=e;++n)t+=.1;var i=t+.1*((e-a[--n])/(a[n+1]-a[n])),o=K(i,r,s);return.001<=o?function(e,t,n,i){for(var o=0;o<U;++o){var r=K(t,n,i);if(0===r)return t;t-=(G(t,n,i)-e)/r}return t}(e,i,r,s):0===o?i:function(e,t,n,i,o){for(var r,s,a=0;0<(r=G(s=t+(n-t)/2,i,o)-e)?n=s:t=s,Math.abs(r)>Y&&++a<V;);return s}(e,t,t+.1,r,s)}return function(e){return 0===e?0:1===e?1:G(i(e),t,n)}}var Z=38,ee=40,te=32,ne=9,ie=33,oe=34,re=36,se=35,ae=function(){s(o,p);var n=c(o);function o(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i(this,o),history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0),(e=n.call(this,t)).inertia&&(e.lerp=.1*e.inertia),e.isScrolling=!1,e.isDraggingScrollbar=!1,e.isTicking=!1,e.hasScrollTicking=!1,e.parallaxElements={},e.stop=!1,e.scrollbarContainer=t.scrollbarContainer,e.checkKey=e.checkKey.bind(l(e)),window.addEventListener("keydown",e.checkKey,!1),e}return e(o,[{key:"init",value:function(){var t=this;this.html.classList.add(this.smoothClass),this.html.setAttribute("data-".concat(this.name,"-direction"),this.direction),this.instance=r({delta:{x:this.initPosition.x,y:this.initPosition.y},scroll:{x:this.initPosition.x,y:this.initPosition.y}},this.instance),this.vs=new j({el:this.scrollFromAnywhere?document:this.el,mouseMultiplier:-1<navigator.platform.indexOf("Win")?1:.4,firefoxMultiplier:this.firefoxMultiplier,touchMultiplier:this.touchMultiplier,useKeyboard:!1,passive:!0}),this.vs.on(function(e){t.stop||t.isDraggingScrollbar||requestAnimationFrame(function(){t.updateDelta(e),t.isScrolling||t.startScrolling()})}),this.setScrollLimit(),this.initScrollBar(),this.addSections(),this.addElements(),this.checkScroll(!0),this.transformElements(!0,!0),u(a(o.prototype),"init",this).call(this)}},{key:"setScrollLimit",value:function(){if(this.instance.limit.y=this.el.offsetHeight-this.windowHeight,"horizontal"===this.direction){for(var e=0,t=this.el.children,n=0;n<t.length;n++)e+=t[n].offsetWidth;this.instance.limit.x=e-this.windowWidth}}},{key:"startScrolling",value:function(){this.startScrollTs=Date.now(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}},{key:"stopScrolling",value:function(){cancelAnimationFrame(this.checkScrollRaf),this.startScrollTs=void 0,this.scrollToRaf&&(cancelAnimationFrame(this.scrollToRaf),this.scrollToRaf=null),this.isScrolling=!1,this.instance.scroll.y=Math.round(this.instance.scroll.y),this.html.classList.remove(this.scrollingClass)}},{key:"checkKey",value:function(e){var t=this;if(this.stop)e.keyCode==ne&&requestAnimationFrame(function(){t.html.scrollTop=0,document.body.scrollTop=0,t.html.scrollLeft=0,document.body.scrollLeft=0});else{switch(e.keyCode){case ne:requestAnimationFrame(function(){t.html.scrollTop=0,document.body.scrollTop=0,t.html.scrollLeft=0,document.body.scrollLeft=0,t.scrollTo(document.activeElement,{offset:-window.innerHeight/2})});break;case Z:this.instance.delta[this.directionAxis]-=240;break;case ee:this.instance.delta[this.directionAxis]+=240;break;case ie:this.instance.delta[this.directionAxis]-=window.innerHeight;break;case oe:this.instance.delta[this.directionAxis]+=window.innerHeight;break;case re:this.instance.delta[this.directionAxis]-=this.instance.limit[this.directionAxis];break;case se:this.instance.delta[this.directionAxis]+=this.instance.limit[this.directionAxis];break;case te:document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||(e.shiftKey?this.instance.delta[this.directionAxis]-=window.innerHeight:this.instance.delta[this.directionAxis]+=window.innerHeight);break;default:return}this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis]),this.stopScrolling(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}}},{key:"checkScroll",value:function(){var e,t,n=this,i=0<arguments.length&&void 0!==arguments[0]&&arguments[0];(i||this.isScrolling||this.isDraggingScrollbar)&&(this.hasScrollTicking||(this.checkScrollRaf=requestAnimationFrame(function(){return n.checkScroll()}),this.hasScrollTicking=!0),this.updateScroll(),t=Math.abs(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis]),e=Date.now()-this.startScrollTs,!this.animatingScroll&&100<e&&(t<.5&&0!=this.instance.delta[this.directionAxis]||t<.5&&0==this.instance.delta[this.directionAxis])&&this.stopScrolling(),Object.entries(this.sections).forEach(function(e){e=_(e,2),e[0],e=e[1];e.persistent||n.instance.scroll[n.directionAxis]>e.offset[n.directionAxis]&&n.instance.scroll[n.directionAxis]<e.limit[n.directionAxis]?("horizontal"===n.direction?n.transform(e.el,-n.instance.scroll[n.directionAxis],0):n.transform(e.el,0,-n.instance.scroll[n.directionAxis]),e.inView||(e.inView=!0,e.el.style.opacity=1,e.el.style.pointerEvents="all",e.el.setAttribute("data-".concat(n.name,"-section-inview"),""))):((e.inView||i)&&(e.inView=!1,e.el.style.opacity=0,e.el.style.pointerEvents="none",e.el.removeAttribute("data-".concat(n.name,"-section-inview"))),n.transform(e.el,0,0))}),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.detectElements(),this.transformElements(),this.hasScrollbar&&(t=this.instance.scroll[this.directionAxis]/this.instance.limit[this.directionAxis]*this.scrollBarLimit[this.directionAxis],"horizontal"===this.direction?this.transform(this.scrollbarThumb,t,0):this.transform(this.scrollbarThumb,0,t)),u(a(o.prototype),"checkScroll",this).call(this),this.hasScrollTicking=!1)}},{key:"resize",value:function(){this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.checkContext(),this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.update()}},{key:"updateDelta",value:function(e){var t=(this[this.context]&&this[this.context].gestureDirection?this[this.context]:this).gestureDirection,e="both"===t?e.deltaX+e.deltaY:"vertical"!==t&&"horizontal"===t?e.deltaX:e.deltaY;this.instance.delta[this.directionAxis]-=e*this.multiplier,this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis])}},{key:"updateScroll",value:function(e){this.isScrolling||this.isDraggingScrollbar?this.instance.scroll[this.directionAxis]=W(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis],this.lerp):this.instance.scroll[this.directionAxis]>this.instance.limit[this.directionAxis]?this.setScroll(this.instance.scroll[this.directionAxis],this.instance.limit[this.directionAxis]):this.instance.scroll.y<0?this.setScroll(this.instance.scroll[this.directionAxis],0):this.setScroll(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis])}},{key:"addDirection",value:function(){this.instance.delta.y>this.instance.scroll.y?"down"!==this.instance.direction&&(this.instance.direction="down"):this.instance.delta.y<this.instance.scroll.y&&"up"!==this.instance.direction&&(this.instance.direction="up"),this.instance.delta.x>this.instance.scroll.x?"right"!==this.instance.direction&&(this.instance.direction="right"):this.instance.delta.x<this.instance.scroll.x&&"left"!==this.instance.direction&&(this.instance.direction="left")}},{key:"addSpeed",value:function(){this.instance.delta[this.directionAxis]!=this.instance.scroll[this.directionAxis]?this.instance.speed=(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis])/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"initScrollBar",value:function(){if(this.scrollbar=document.createElement("span"),this.scrollbarThumb=document.createElement("span"),this.scrollbar.classList.add("".concat(this.scrollbarClass)),this.scrollbarThumb.classList.add("".concat(this.scrollbarClass,"_thumb")),this.scrollbar.append(this.scrollbarThumb),(this.scrollbarContainer||document.body).append(this.scrollbar),this.getScrollBar=this.getScrollBar.bind(this),this.releaseScrollBar=this.releaseScrollBar.bind(this),this.moveScrollBar=this.moveScrollBar.bind(this),this.scrollbarThumb.addEventListener("mousedown",this.getScrollBar),window.addEventListener("mouseup",this.releaseScrollBar),window.addEventListener("mousemove",this.moveScrollBar),this.hasScrollbar=!1,"horizontal"==this.direction){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,"horizontal"===this.direction?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"reinitScrollBar",value:function(){if(this.hasScrollbar=!1,"horizontal"==this.direction){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,"horizontal"===this.direction?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"destroyScrollBar",value:function(){this.scrollbarThumb.removeEventListener("mousedown",this.getScrollBar),window.removeEventListener("mouseup",this.releaseScrollBar),window.removeEventListener("mousemove",this.moveScrollBar),this.scrollbar.remove()}},{key:"getScrollBar",value:function(e){this.isDraggingScrollbar=!0,this.checkScroll(),this.html.classList.remove(this.scrollingClass),this.html.classList.add(this.draggingClass)}},{key:"releaseScrollBar",value:function(e){this.isDraggingScrollbar=!1,this.isScrolling&&this.html.classList.add(this.scrollingClass),this.html.classList.remove(this.draggingClass)}},{key:"moveScrollBar",value:function(n){var i=this;this.isDraggingScrollbar&&requestAnimationFrame(function(){var e=100*(n.clientX-i.scrollbarBCR.left)/i.scrollbarWidth*i.instance.limit.x/100,t=100*(n.clientY-i.scrollbarBCR.top)/i.scrollbarHeight*i.instance.limit.y/100;0<t&&t<i.instance.limit.y&&(i.instance.delta.y=t),0<e&&e<i.instance.limit.x&&(i.instance.delta.x=e)})}},{key:"addElements",value:function(){var T=this;this.els={},this.parallaxElements={},this.el.querySelectorAll("[data-".concat(this.name,"]")).forEach(function(e,t){var n,i=F(e),o=Object.entries(T.sections).map(function(e){e=_(e,2),e[0];return e[1]}).find(function(e){return i.includes(e.el)}),r=e.dataset[T.name+"Class"]||T.class,s="string"==typeof e.dataset[T.name+"Id"]?e.dataset[T.name+"Id"]:"el"+t,a=e.dataset[T.name+"Repeat"],l=e.dataset[T.name+"Call"],c=e.dataset[T.name+"Position"],u=e.dataset[T.name+"Delay"],d=e.dataset[T.name+"Direction"],h="string"==typeof e.dataset[T.name+"Sticky"],f=!!e.dataset[T.name+"Speed"]&&parseFloat(e.dataset[T.name+"Speed"])/10,p="string"==typeof e.dataset[T.name+"Offset"]?e.dataset[T.name+"Offset"].split(","):T.offset,m=e.dataset[T.name+"Target"],g=void 0!==m?document.querySelector("".concat(m)):e,y=g.getBoundingClientRect(),v=null===o||o.inView?(n=y.top+T.instance.scroll.y-q(g).y,y.left+T.instance.scroll.x-q(g).x):(n=y.top-q(o.el).y-q(g).y,y.left-q(o.el).x-q(g).x),b=n+g.offsetHeight,w=v+g.offsetWidth,x={x:(w-v)/2+v,y:(b-n)/2+n};h&&(m=(t=e.getBoundingClientRect()).top,t={x:(y=t.left)-v,y:m-n},n+=window.innerHeight,v+=window.innerWidth,b=m+g.offsetHeight-e.offsetHeight-t[T.directionAxis],x={x:((w=y+g.offsetWidth-e.offsetWidth-t[T.directionAxis])-v)/2+v,y:(b-n)/2+n});var a="false"!=a&&(null!=a||T.repeat),S=[0,0];if(p)if("horizontal"===T.direction){for(var k=0;k<p.length;k++)"string"==typeof p[k]?p[k].includes("%")?S[k]=parseInt(p[k].replace("%","")*T.windowWidth/100):S[k]=parseInt(p[k]):S[k]=p[k];v+=S[0],w-=S[1]}else{for(k=0;k<p.length;k++)"string"==typeof p[k]?p[k].includes("%")?S[k]=parseInt(p[k].replace("%","")*T.windowHeight/100):S[k]=parseInt(p[k]):S[k]=p[k];n+=S[0],b-=S[1]}d={el:e,id:s,class:r,section:o,top:n,middle:x,bottom:b,left:v,right:w,offset:p,progress:0,repeat:a,inView:!1,call:l,speed:f,delay:u,position:c,target:g,direction:d,sticky:h};T.els[s]=d,e.classList.contains(r)&&T.setInView(T.els[s],s),!1===f&&!h||(T.parallaxElements[s]=d)})}},{key:"addSections",value:function(){var r=this;this.sections={};var e=this.el.querySelectorAll("[data-".concat(this.name,"-section]"));(e=0===e.length?[this.el]:e).forEach(function(e,t){var n="string"==typeof e.dataset[r.name+"Id"]?e.dataset[r.name+"Id"]:"section"+t,i=e.getBoundingClientRect(),o={x:i.left-1.5*window.innerWidth-q(e).x,y:i.top-1.5*window.innerHeight-q(e).y},t={x:o.x+i.width+2*window.innerWidth,y:o.y+i.height+2*window.innerHeight},i="string"==typeof e.dataset[r.name+"Persistent"];e.setAttribute("data-scroll-section-id",n),r.sections[n]={el:e,offset:o,limit:t,inView:!1,persistent:i,id:n}})}},{key:"transform",value:function(e,t,n,i){var o,r,s;o=i?(s=W((r=q(e)).x,t,i),i=W(r.y,n,i),"matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(s,",").concat(i,",0,1)")):"matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(t,",").concat(n,",0,1)"),e.style.webkitTransform=o,e.style.msTransform=o,e.style.transform=o}},{key:"transformElements",value:function(i){var o=this,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],s=this.instance.scroll.x+this.windowWidth,a=this.instance.scroll.y+this.windowHeight,l={x:this.instance.scroll.x+this.windowMiddle.x,y:this.instance.scroll.y+this.windowMiddle.y};Object.entries(this.parallaxElements).forEach(function(e){var e=_(e,2),t=(e[0],e[1]),n=i?0:!1;if(t.inView||r)switch(t.position){case"top":n=o.instance.scroll[o.directionAxis]*-t.speed;break;case"elementTop":n=(a-t.top)*-t.speed;break;case"bottom":n=(o.instance.limit[o.directionAxis]-a+o.windowHeight)*t.speed;break;case"left":n=o.instance.scroll[o.directionAxis]*-t.speed;break;case"elementLeft":n=(s-t.left)*-t.speed;break;case"right":n=(o.instance.limit[o.directionAxis]-s+o.windowHeight)*t.speed;break;default:n=(l[o.directionAxis]-t.middle[o.directionAxis])*-t.speed}!1!==(n=t.sticky?t.inView?"horizontal"===o.direction?o.instance.scroll.x-t.left+window.innerWidth:o.instance.scroll.y-t.top+window.innerHeight:"horizontal"===o.direction?o.instance.scroll.x<t.left-window.innerWidth&&o.instance.scroll.x<t.left-window.innerWidth/2?0:o.instance.scroll.x>t.right&&o.instance.scroll.x>t.right+100&&t.right-t.left+window.innerWidth:o.instance.scroll.y<t.top-window.innerHeight&&o.instance.scroll.y<t.top-window.innerHeight/2?0:o.instance.scroll.y>t.bottom&&o.instance.scroll.y>t.bottom+100&&t.bottom-t.top+window.innerHeight:n)&&("horizontal"===t.direction||"horizontal"===o.direction&&"vertical"!==t.direction?o.transform(t.el,n,0,!i&&t.delay):o.transform(t.el,0,n,!i&&t.delay))})}},{key:"scrollTo",value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=parseInt(t.offset)||0,o=isNaN(parseInt(t.duration))?1e3:parseInt(t.duration),r=t.easing||[.25,0,.35,1],s=!!t.disableLerp,a=t.callback||!1,r=J.apply(void 0,m(r));if("string"==typeof e){if("top"===e)e=0;else if("bottom"===e)e=this.instance.limit.y;else if("left"===e)e=0;else if("right"===e)e=this.instance.limit.x;else if(!(e=document.querySelector(e)))return}else if("number"==typeof e)e=parseInt(e);else if(!e||!e.tagName)return void console.warn("`target` parameter is not valid");if("number"!=typeof e){if(!F(e).includes(this.el))return;var l=e.getBoundingClientRect(),c=l.top,u=l.left,t=F(e).find(function(t){return Object.entries(n.sections).map(function(e){e=_(e,2),e[0];return e[1]}).find(function(e){return e.el==t})}),l=0,l=t?q(t)[this.directionAxis]:-this.instance.scroll[this.directionAxis],i="horizontal"===this.direction?u+i-l:c+i-l}else i=e+i;var d=parseFloat(this.instance.delta[this.directionAxis]),h=Math.max(0,Math.min(i,this.instance.limit[this.directionAxis]))-d,f=function(e){s?"horizontal"===n.direction?n.setScroll(d+h*e,n.instance.delta.y):n.setScroll(n.instance.delta.x,d+h*e):n.instance.delta[n.directionAxis]=d+h*e};this.animatingScroll=!0,this.stopScrolling(),this.startScrolling();var p=Date.now();(function e(){var t=(Date.now()-p)/o;1<t?(f(1),n.animatingScroll=!1,0==o&&n.update(),a&&a()):(n.scrollToRaf=requestAnimationFrame(e),f(r(t)))})()}},{key:"update",value:function(){this.setScrollLimit(),this.addSections(),this.addElements(),this.detectElements(),this.updateScroll(),this.transformElements(!0),this.reinitScrollBar(),this.checkScroll(!0)}},{key:"startScroll",value:function(){this.stop=!1}},{key:"stopScroll",value:function(){this.stop=!0}},{key:"setScroll",value:function(e,t){this.instance=r(r({},this.instance),{},{scroll:{x:e,y:t},delta:{x:e,y:t},speed:0})}},{key:"destroy",value:function(){u(a(o.prototype),"destroy",this).call(this),this.stopScrolling(),this.html.classList.remove(this.smoothClass),this.vs.destroy(),this.destroyScrollBar(),window.removeEventListener("keydown",this.checkKey,!1)}}]),o}();return function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this.options=e,Object.assign(this,f,e),this.smartphone=f.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=f.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),this.smooth||"horizontal"!=this.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible"),this.tablet.smooth||"horizontal"!=this.tablet.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (tablet)"),this.smartphone.smooth||"horizontal"!=this.smartphone.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (smartphone)"),this.init()}return e(t,[{key:"init",value:function(){var e;this.options.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints||window.innerWidth<this.tablet.breakpoint,this.options.isTablet=this.options.isMobile&&window.innerWidth>=this.tablet.breakpoint,this.smooth&&!this.options.isMobile||this.tablet.smooth&&this.options.isTablet||this.smartphone.smooth&&this.options.isMobile&&!this.options.isTablet?this.scroll=new ae(this.options):this.scroll=new b(this.options),this.scroll.init(),window.location.hash&&(e=window.location.hash.slice(1,window.location.hash.length),(e=document.getElementById(e))&&this.scroll.scrollTo(e))}},{key:"update",value:function(){this.scroll.update()}},{key:"start",value:function(){this.scroll.startScroll()}},{key:"stop",value:function(){this.scroll.stopScroll()}},{key:"scrollTo",value:function(e,t){this.scroll.scrollTo(e,t)}},{key:"setScroll",value:function(e,t){this.scroll.setScroll(e,t)}},{key:"on",value:function(e,t){this.scroll.setEvents(e,t)}},{key:"off",value:function(e,t){this.scroll.unsetEvents(e,t)}},{key:"destroy",value:function(){this.scroll.destroy()}}]),t}()}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,i,o){return jQuery.easing[jQuery.easing.def](e,t,n,i,o)},easeInQuad:function(e,t,n,i,o){return i*(t/=o)*t+n},easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n},easeInOutQuad:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,o){return i*(t/=o)*t*t+n},easeOutCubic:function(e,t,n,i,o){return i*((t=t/o-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,o){return i*(t/=o)*t*t*t+n},easeOutQuart:function(e,t,n,i,o){return-i*((t=t/o-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,o){return i*(t/=o)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,o){return i*((t=t/o-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,o){return-i*Math.cos(t/o*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,o){return i*Math.sin(t/o*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,o){return-i/2*(Math.cos(Math.PI*t/o)-1)+n},easeInExpo:function(e,t,n,i,o){return 0==t?n:i*Math.pow(2,10*(t/o-1))+n},easeOutExpo:function(e,t,n,i,o){return t==o?n+i:i*(1-Math.pow(2,-10*t/o))+n},easeInOutExpo:function(e,t,n,i,o){return 0==t?n:t==o?n+i:(t/=o/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,i,o){return-i*(Math.sqrt(1-(t/=o)*t)-1)+n},easeOutCirc:function(e,t,n,i,o){return i*Math.sqrt(1-(t=t/o-1)*t)+n},easeInOutCirc:function(e,t,n,i,o){return(t/=o/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,o){var r=1.70158,s=0,a=i;return 0==t?n:1==(t/=o)?n+i:(s=s||.3*o,r=a<Math.abs(i)?(a=i,s/4):s/(2*Math.PI)*Math.asin(i/a),-(a*Math.pow(2,10*--t)*Math.sin((t*o-r)*(2*Math.PI)/s))+n)},easeOutElastic:function(e,t,n,i,o){var r=1.70158,s=0,a=i;return 0==t?n:1==(t/=o)?n+i:(s=s||.3*o,r=a<Math.abs(i)?(a=i,s/4):s/(2*Math.PI)*Math.asin(i/a),a*Math.pow(2,-10*t)*Math.sin((t*o-r)*(2*Math.PI)/s)+i+n)},easeInOutElastic:function(e,t,n,i,o){var r=1.70158,s=0,a=i;return 0==t?n:2==(t/=o/2)?n+i:(s=s||o*(.3*1.5),r=a<Math.abs(i)?(a=i,s/4):s/(2*Math.PI)*Math.asin(i/a),t<1?a*Math.pow(2,10*--t)*Math.sin((t*o-r)*(2*Math.PI)/s)*-.5+n:a*Math.pow(2,-10*--t)*Math.sin((t*o-r)*(2*Math.PI)/s)*.5+i+n)},easeInBack:function(e,t,n,i,o,r){return i*(t/=o)*t*(((r=null==r?1.70158:r)+1)*t-r)+n},easeOutBack:function(e,t,n,i,o,r){return i*((t=t/o-1)*t*(((r=null==r?1.70158:r)+1)*t+r)+1)+n},easeInOutBack:function(e,t,n,i,o,r){return null==r&&(r=1.70158),(t/=o/2)<1?i/2*(t*t*((1+(r*=1.525))*t-r))+n:i/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+n},easeInBounce:function(e,t,n,i,o){return i-jQuery.easing.easeOutBounce(e,o-t,0,i,o)+n},easeOutBounce:function(e,t,n,i,o){return(t/=o)<1/2.75?i*(7.5625*t*t)+n:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,o){return t<o/2?.5*jQuery.easing.easeInBounce(e,2*t,0,i,o)+n:.5*jQuery.easing.easeOutBounce(e,2*t-o,0,i,o)+.5*i+n}}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Barba",[],t):"object"==typeof exports?exports.Barba=t():e.Barba=t()}(this,function(){return i=[function(e,t,n){"function"!=typeof Promise&&(window.Promise=n(1));n={version:"1.0.0",BaseTransition:n(4),BaseView:n(6),BaseCache:n(8),Dispatcher:n(7),HistoryManager:n(9),Pjax:n(10),Prefetch:n(13),Utils:n(5)};e.exports=n},function(f,e,t){!function(e){function i(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function o(n,i){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,d(function(){var e,t=1===n._state?i.onFulfilled:i.onRejected;if(null!==t){try{e=t(n._value)}catch(e){return void a(i.promise,e)}s(i.promise,e)}else(1===n._state?s:a)(i.promise,n._value)})):n._deferreds.push(i)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof r)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void u((i=n,o=e,function(){i.apply(o,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){a(t,e)}var i,o}function a(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&d(function(){e._handled||h(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,a(t,e))})}catch(e){if(n)return;n=!0,a(t,e)}}var t,n,d,h;t=this,n=setTimeout,d="function"==typeof e&&e||function(e){n(e,0)},h=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(i);return o(this,new c(e,t,n)),n},r.all=function(e){var a=Array.prototype.slice.call(e);return new r(function(o,r){if(0===a.length)return o([]);var s=a.length;for(var e=0;e<a.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if("function"==typeof i)return void i.call(e,function(e){t(n,e)},r)}a[n]=e,0==--s&&o(a)}catch(e){r(e)}}(e,a[e])})},r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(n){return new r(function(e,t){t(n)})},r.race=function(o){return new r(function(e,t){for(var n=0,i=o.length;n<i;n++)o[n].then(e,t)})},r._setImmediateFn=function(e){d=e},r._setUnhandledRejectionFn=function(e){h=e},void 0!==f&&f.exports?f.exports=r:t.Promise||(t.Promise=r)}.call(e,t(2).setImmediate)},function(e,l,c){!function(e,t){var i=c(3).nextTick,n=Function.prototype.apply,o=Array.prototype.slice,r={},s=0;function a(e,t){this._id=e,this._clearFn=t}l.setTimeout=function(){return new a(n.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new a(n.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},l.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},l._unrefActive=l.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},l.setImmediate="function"==typeof e?e:function(e){var t=s++,n=!(arguments.length<2)&&o.call(arguments,1);return r[t]=!0,i(function(){r[t]&&(n?e.apply(null,n):e.call(null),l.clearImmediate(t))}),t},l.clearImmediate="function"==typeof t?t:function(e){delete r[e]}}.call(l,c(2).setImmediate,c(2).clearImmediate)},function(e,t){var i,n,e=e.exports={};!function(){try{i=setTimeout}catch(e){i=function(){throw new Error("setTimeout is not defined")}}try{n=clearTimeout}catch(e){n=function(){throw new Error("clearTimeout is not defined")}}}();var o,r=[],s=!1,a=-1;function l(){s&&o&&(s=!1,o.length?r=o.concat(r):a=-1,r.length&&c())}function c(){if(!s){var e=i(l);s=!0;for(var t=r.length;t;){for(o=r,r=[];++a<t;)o&&o[a].run();a=-1,t=r.length}o=null,s=!1,n(e)}}function u(e,t){this.fun=e,this.array=t}function d(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.push(new u(e,t)),1!==r.length||s||i(c,0)},u.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t,n){var i=n(5);e.exports={oldContainer:void 0,newContainer:void 0,newContainerLoading:void 0,extend:function(e){return i.extend(this,e)},init:function(e,t){var n=this;return this.oldContainer=e,this._newContainerPromise=t,this.deferred=i.deferred(),this.newContainerReady=i.deferred(),this.newContainerLoading=this.newContainerReady.promise,this.start(),this._newContainerPromise.then(function(e){n.newContainer=e,n.newContainerReady.resolve()}),this.deferred.promise},done:function(){this.oldContainer.parentNode.removeChild(this.oldContainer),this.newContainer.style.visibility="visible",this.deferred.resolve()},start:function(){}}},function(e,t){var n={getCurrentUrl:function(){return window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search},cleanLink:function(e){return e.replace(/#.*/,"")},xhrTimeout:5e3,xhr:function(e){var t=this.deferred(),n=new XMLHttpRequest;return n.onreadystatechange=function(){if(4===n.readyState)return 200===n.status?t.resolve(n.responseText):t.reject(new Error("xhr: HTTP code is not 200"))},n.ontimeout=function(){return t.reject(new Error("xhr: Timeout exceeded"))},n.open("GET",e),n.timeout=this.xhrTimeout,n.setRequestHeader("x-barba","yes"),n.send(),t.promise},extend:function(e,t){var n,i=Object.create(e);for(n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);return i},deferred:function(){return new function(){this.resolve=null,this.reject=null,this.promise=new Promise(function(e,t){this.resolve=e,this.reject=t}.bind(this))}},getPort:function(e){var t=void 0!==e?e:window.location.port,e=window.location.protocol;return""!=t?parseInt(t):"http:"===e?80:"https:"===e?443:void 0}};e.exports=n},function(e,t,n){var o=n(7),i=n(5);e.exports={namespace:null,extend:function(e){return i.extend(this,e)},init:function(){var i=this;o.on("initStateChange",function(e,t){t&&t.namespace===i.namespace&&i.onLeave()}),o.on("newPageReady",function(e,t,n){i.container=n,e.namespace===i.namespace&&i.onEnter()}),o.on("transitionCompleted",function(e,t){e.namespace===i.namespace&&i.onEnterCompleted(),t&&t.namespace===i.namespace&&i.onLeaveCompleted()})},onEnter:function(){},onEnterCompleted:function(){},onLeave:function(){},onLeaveCompleted:function(){}}},function(e,t){e.exports={events:{},on:function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},off:function(e,t){e in this.events!=!1&&this.events[e].splice(this.events[e].indexOf(t),1)},trigger:function(e){if(e in this.events!=!1)for(var t=0;t<this.events[e].length;t++)this.events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}}},function(e,t,n){var i=n(5);e.exports={data:{},extend:function(e){return i.extend(this,e)},set:function(e,t){this.data[e]=t},get:function(e){return this.data[e]},reset:function(){this.data={}}}},function(e,t){e.exports={history:[],add:function(e,t){this.history.push({url:e,namespace:t=t||void 0})},currentStatus:function(){return this.history[this.history.length-1]},prevStatus:function(){var e=this.history;return e.length<2?null:e[e.length-2]}}},function(e,t,n){var o=n(5),i=n(7),r=n(11),s=n(8),a=n(9),s={Dom:n(12),History:a,Cache:s,cacheEnabled:!0,transitionProgress:!1,ignoreClassLink:"no-barba",start:function(){this.init()},init:function(){var e=this.Dom.getContainer();this.Dom.getWrapper().setAttribute("aria-live","polite"),this.History.add(this.getCurrentUrl(),this.Dom.getNamespace(e)),i.trigger("initStateChange",this.History.currentStatus()),i.trigger("newPageReady",this.History.currentStatus(),{},e,this.Dom.currentHTML),i.trigger("transitionCompleted",this.History.currentStatus()),this.bindEvents()},bindEvents:function(){document.addEventListener("click",this.onLinkClick.bind(this)),window.addEventListener("popstate",this.onStateChange.bind(this))},getCurrentUrl:function(){return o.cleanLink(o.getCurrentUrl())},goTo:function(e){window.history.pushState(null,null,e),this.onStateChange()},forceGoTo:function(e){window.location=e},load:function(e){var t=o.deferred(),n=this,i=this.Cache.get(e);return i||(i=o.xhr(e),this.Cache.set(e,i)),i.then(function(e){e=n.Dom.parseResponse(e);n.Dom.putContainer(e),n.cacheEnabled||n.Cache.reset(),t.resolve(e)},function(){n.forceGoTo(e),t.reject()}),t.promise},getHref:function(e){if(e)return e.getAttribute&&"string"==typeof e.getAttribute("xlink:href")?e.getAttribute("xlink:href"):"string"==typeof e.href?e.href:void 0},onLinkClick:function(e){for(var t=e.target;t&&!this.getHref(t);)t=t.parentNode;this.preventCheck(e,t)&&(e.stopPropagation(),e.preventDefault(),i.trigger("linkClicked",t,e),e=this.getHref(t),this.goTo(e))},preventCheck:function(e,t){if(!window.history.pushState)return!1;var n=this.getHref(t);return!(!t||!n)&&(!(1<e.which||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&((!t.target||"_blank"!==t.target)&&(window.location.protocol===t.protocol&&window.location.hostname===t.hostname&&(o.getPort()===o.getPort(t.port)&&(!(-1<n.indexOf("#"))&&((!t.getAttribute||"string"!=typeof t.getAttribute("download"))&&(o.cleanLink(n)!=o.cleanLink(location.href)&&!t.classList.contains(this.ignoreClassLink))))))))},getTransition:function(){return r},onStateChange:function(){var e=this.getCurrentUrl();if(this.transitionProgress&&this.forceGoTo(e),this.History.currentStatus().url===e)return!1;this.History.add(e);var t=this.load(e),e=Object.create(this.getTransition());this.transitionProgress=!0,i.trigger("initStateChange",this.History.currentStatus(),this.History.prevStatus());e=e.init(this.Dom.getContainer(),t);t.then(this.onNewContainerLoaded.bind(this)),e.then(this.onTransitionEnd.bind(this))},onNewContainerLoaded:function(e){this.History.currentStatus().namespace=this.Dom.getNamespace(e),i.trigger("newPageReady",this.History.currentStatus(),this.History.prevStatus(),e,this.Dom.currentHTML)},onTransitionEnd:function(){this.transitionProgress=!1,i.trigger("transitionCompleted",this.History.currentStatus(),this.History.prevStatus())}};e.exports=s},function(e,t,n){n=n(4).extend({start:function(){this.newContainerLoading.then(this.finish.bind(this))},finish:function(){document.body.scrollTop=0,this.done()}});e.exports=n},function(e,t){var n={dataNamespace:"namespace",wrapperId:"barba-wrapper",containerClass:"barba-container",currentHTML:document.documentElement.innerHTML,parseResponse:function(e){this.currentHTML=e;var t=document.createElement("div");t.innerHTML=e;e=t.querySelector("title");return e&&(document.title=e.textContent),this.getContainer(t)},getWrapper:function(){var e=document.getElementById(this.wrapperId);if(!e)throw new Error("Barba.js: wrapper not found!");return e},getContainer:function(e){if(!(e=e||document.body))throw new Error("Barba.js: DOM not ready!");e=this.parseContainer(e);if(!(e=e&&e.jquery?e[0]:e))throw new Error("Barba.js: no container found");return e},getNamespace:function(e){return e&&e.dataset?e.dataset[this.dataNamespace]:e?e.getAttribute("data-"+this.dataNamespace):null},putContainer:function(e){e.style.visibility="hidden",this.getWrapper().appendChild(e)},parseContainer:function(e){return e.querySelector("."+this.containerClass)}};e.exports=n},function(e,t,n){var i=n(5),o=n(10),n={ignoreClassLink:"no-barba-prefetch",init:function(){if(!window.history.pushState)return!1;document.body.addEventListener("mouseover",this.onLinkEnter.bind(this)),document.body.addEventListener("touchstart",this.onLinkEnter.bind(this))},onLinkEnter:function(e){for(var t,n=e.target;n&&!o.getHref(n);)n=n.parentNode;n&&!n.classList.contains(this.ignoreClassLink)&&(t=o.getHref(n),o.preventCheck(e,n)&&!o.Cache.get(t)&&(e=i.xhr(t),o.Cache.set(t,e)))}};e.exports=n}],o={},n.m=i,n.c=o,n.p="http://localhost:8080/dist",n(0);function n(e){if(o[e])return o[e].exports;var t=o[e]={exports:{},id:e,loaded:!1};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var i,o}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){"use strict";function t(e){e=(e=void 0===e?window.navigator.userAgent:e).toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0<=e.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],e={},n={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:n[0]||""};return n.browser&&(e[n.browser]=!0,e.version=n.version,e.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(e[n.platform]=!0),(e.android||e.bb||e.blackberry||e.ipad||e.iphone||e.ipod||e.kindle||e.playbook||e.silk||e["windows phone"])&&(e.mobile=!0),(e.cros||e.mac||e.linux||e.win)&&(e.desktop=!0),(e.chrome||e.opr||e.safari)&&(e.webkit=!0),(e.rv||e.iemobile)&&(n.browser="msie",e.msie=!0),e.edge&&(delete e.edge,n.browser="msedge",e.msedge=!0),e.safari&&e.blackberry&&(e[n.browser="blackberry"]=!0),e.safari&&e.playbook&&(e[n.browser="playbook"]=!0),e.bb&&(e[n.browser="blackberry"]=!0),e.opr&&(n.browser="opera",e.opera=!0),e.safari&&e.android&&(e[n.browser="android"]=!0),e.safari&&e.kindle&&(n.browser="kindle",e.kindle=!0),e.safari&&e.silk&&(n.browser="silk",e.silk=!0),e.name=n.browser,e.platform=n.platform,e}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):"undefined"!=typeof module&&module.exports?e(require("jquery")):e(jQuery)}(function(ae){var le="left",ce="right",ue="up",de="down",he="in",fe="out",pe="none",me="auto",ge="swipe",ye="pinch",ve="tap",be="doubletap",we="longtap",xe="horizontal",Se="vertical",ke="all",Te=10,_e="start",Ce="move",Ee="end",Le="cancel",Oe="ontouchstart"in window,Ae=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!Oe,Me=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!Oe,Ie="TouchSwipe";function i(e,s){var s=ae.extend({},s),t=Oe||Me||!s.fallbackToMouseEvents,n=t?Me?Ae?"MSPointerDown":"pointerdown":"touchstart":"mousedown",i=t?Me?Ae?"MSPointerMove":"pointermove":"touchmove":"mousemove",o=t?Me?Ae?"MSPointerUp":"pointerup":"touchend":"mouseup",r=!t||Me?"mouseleave":null,a=Me?Ae?"MSPointerCancel":"pointercancel":"touchcancel",l=0,c=null,u=null,d=0,h=0,f=0,p=1,m=0,g=0,y=null,v=ae(e),b="start",w=0,x={},S=0,k=0,T=0,_=0,C=0,E=null,L=null;try{v.bind(n,O),v.bind(a,I)}catch(e){ae.error("events not supported "+n+","+a+" on jQuery.swipe")}function O(e){if(!0!==v.data(Ie+"_intouch")&&!(0<ae(e.target).closest(s.excludedElements,v).length)){var t,n=e.originalEvent||e,i=n.touches,o=i?i[0]:n;return(b=_e,i?w=i.length:!1!==s.preventDefaultEvents&&e.preventDefault(),g=u=c=null,p=1,m=f=h=d=l=0,(e={})[le]=ne(le),e[ce]=ne(ce),e[ue]=ne(ue),e[de]=ne(de),y=e,K(),Z(0,o),!i||w===s.fingers||s.fingers===ke||q()?(S=se(),2==w&&(Z(1,i[1]),h=f=oe(x[0].start,x[1].start)),(s.swipeStatus||s.pinchStatus)&&(t=R(n,b))):t=!1,!1===t)?(R(n,b=Le),t):(s.hold&&(L=setTimeout(ae.proxy(function(){v.trigger("hold",[n.target]),s.hold&&(t=s.hold.call(v,n,n.target))},this),s.longTapThreshold)),J(!0),null)}}function A(e){var t,n,i,o,r=e.originalEvent||e;b===Ee||b===Le||Q()||(t=ee((n=r.touches)?n[0]:r),k=se(),n&&(w=n.length),s.hold&&clearTimeout(L),b=Ce,2==w&&(0==h?(Z(1,n[1]),h=f=oe(x[0].start,x[1].start)):(ee(n[1]),f=oe(x[0].end,x[1].end),x[0].end,x[1].end,g=p<1?fe:he),p=(f/h*1).toFixed(2),m=Math.abs(h-f)),w===s.fingers||s.fingers===ke||!n||q()?(c=re(t.start,t.end),function(e,t){if(!1!==s.preventDefaultEvents)if(s.allowPageScroll===pe)e.preventDefault();else{var n=s.allowPageScroll===me;switch(t){case le:(s.swipeLeft&&n||!n&&s.allowPageScroll!=xe)&&e.preventDefault();break;case ce:(s.swipeRight&&n||!n&&s.allowPageScroll!=xe)&&e.preventDefault();break;case ue:(s.swipeUp&&n||!n&&s.allowPageScroll!=Se)&&e.preventDefault();break;case de:(s.swipeDown&&n||!n&&s.allowPageScroll!=Se)&&e.preventDefault()}}}(e,u=re(t.last,t.end)),i=t.start,o=t.end,l=Math.round(Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2))),d=ie(),n=c,e=l,e=Math.max(e,te(n)),y[n].distance=e,o=R(r,b),s.triggerOnTouchEnd&&!s.triggerOnTouchLeave||(i=!0,s.triggerOnTouchLeave&&(n={left:(e=(n=ae(n=this)).offset()).left,right:e.left+n.outerWidth(),top:e.top,bottom:e.top+n.outerHeight()},t=t.end,n=n,i=t.x>n.left&&t.x<n.right&&t.y>n.top&&t.y<n.bottom),!s.triggerOnTouchEnd&&i?b=B(Ce):s.triggerOnTouchLeave&&!i&&(b=B(Ee)),b!=Le&&b!=Ee||R(r,b))):R(r,b=Le),!1===o&&R(r,b=Le))}function M(e){var t,n=e.originalEvent||e,i=n.touches;if(i){if(i.length&&!Q())return t=n,T=se(),_=t.touches.length+1,!0;if(i.length&&Q())return!0}return Q()&&(w=_),k=se(),d=ie(),D()||!N()?R(n,b=Le):s.triggerOnTouchEnd||0==s.triggerOnTouchEnd&&b===Ce?(!1!==s.preventDefaultEvents&&e.preventDefault(),R(n,b=Ee)):!s.triggerOnTouchEnd&&X()?z(n,b=Ee,ve):b===Ce&&R(n,b=Le),J(!1),null}function I(){f=h=S=k=w=0,K(),J(!(p=1))}function P(e){e=e.originalEvent||e;s.triggerOnTouchLeave&&R(e,b=B(Ee))}function j(){v.unbind(n,O),v.unbind(a,I),v.unbind(i,A),v.unbind(o,M),r&&v.unbind(r,P),J(!1)}function B(e){var t=e,n=H(),i=N(),o=D();return!n||o?t=Le:!i||e!=Ce||s.triggerOnTouchEnd&&!s.triggerOnTouchLeave?!i&&e==Ee&&s.triggerOnTouchLeave&&(t=Le):t=Ee,t}function R(e,t){var n,i=e.touches;return(F()&&U()||U())&&(n=z(e,t,ge)),(W()&&q()||q())&&!1!==n&&(n=z(e,t,ye)),G()&&$()&&!1!==n?n=z(e,t,be):d>s.longTapThreshold&&l<Te&&s.longTap&&!1!==n?n=z(e,t,we):1!==w&&Oe||!(isNaN(l)||l<s.threshold)||!X()||!1===n||(n=z(e,t,ve)),t===Le&&(U()&&(n=z(e,t,ge)),q()&&(n=z(e,t,ye)),I()),t===Ee&&(i&&i.length||I()),n}function z(e,t,n){var i;if(n==ge){if(v.trigger("swipeStatus",[t,c||null,l||0,d||0,w,x,u]),s.swipeStatus&&!1===(i=s.swipeStatus.call(v,e,t,c||null,l||0,d||0,w,x,u)))return!1;if(t==Ee&&F()){if(clearTimeout(E),clearTimeout(L),v.trigger("swipe",[c,l,d,w,x,u]),s.swipe&&!1===(i=s.swipe.call(v,e,c,l,d,w,x,u)))return!1;switch(c){case le:v.trigger("swipeLeft",[c,l,d,w,x,u]),s.swipeLeft&&(i=s.swipeLeft.call(v,e,c,l,d,w,x,u));break;case ce:v.trigger("swipeRight",[c,l,d,w,x,u]),s.swipeRight&&(i=s.swipeRight.call(v,e,c,l,d,w,x,u));break;case ue:v.trigger("swipeUp",[c,l,d,w,x,u]),s.swipeUp&&(i=s.swipeUp.call(v,e,c,l,d,w,x,u));break;case de:v.trigger("swipeDown",[c,l,d,w,x,u]),s.swipeDown&&(i=s.swipeDown.call(v,e,c,l,d,w,x,u))}}}if(n==ye){if(v.trigger("pinchStatus",[t,g||null,m||0,d||0,w,p,x]),s.pinchStatus&&!1===(i=s.pinchStatus.call(v,e,t,g||null,m||0,d||0,w,p,x)))return!1;if(t==Ee&&W())switch(g){case he:v.trigger("pinchIn",[g||null,m||0,d||0,w,p,x]),s.pinchIn&&(i=s.pinchIn.call(v,e,g||null,m||0,d||0,w,p,x));break;case fe:v.trigger("pinchOut",[g||null,m||0,d||0,w,p,x]),s.pinchOut&&(i=s.pinchOut.call(v,e,g||null,m||0,d||0,w,p,x))}}return n==ve?t!==Le&&t!==Ee||(clearTimeout(E),clearTimeout(L),$()&&!G()?(C=se(),E=setTimeout(ae.proxy(function(){C=null,v.trigger("tap",[e.target]),s.tap&&(i=s.tap.call(v,e,e.target))},this),s.doubleTapThreshold)):(C=null,v.trigger("tap",[e.target]),s.tap&&(i=s.tap.call(v,e,e.target)))):n==be?t!==Le&&t!==Ee||(clearTimeout(E),clearTimeout(L),C=null,v.trigger("doubletap",[e.target]),s.doubleTap&&(i=s.doubleTap.call(v,e,e.target))):n==we&&(t!==Le&&t!==Ee||(clearTimeout(E),C=null,v.trigger("longtap",[e.target]),s.longTap&&(i=s.longTap.call(v,e,e.target)))),i}function N(){var e=!0;return e=null!==s.threshold?l>=s.threshold:e}function D(){var e=!1;return e=null!==s.cancelThreshold&&null!==c?te(c)-l>=s.cancelThreshold:e}function H(){var e=!s.maxTimeThreshold||!(d>=s.maxTimeThreshold);return e}function W(){var e=Y(),t=V(),n=null===s.pinchThreshold||m>=s.pinchThreshold;return e&&t&&n}function q(){return s.pinchStatus||s.pinchIn||s.pinchOut}function F(){var e=H(),t=N(),n=Y(),i=V();return!D()&&i&&n&&t&&e}function U(){return s.swipe||s.swipeStatus||s.swipeLeft||s.swipeRight||s.swipeUp||s.swipeDown}function Y(){return w===s.fingers||s.fingers===ke||!Oe}function V(){return 0!==x[0].end.x}function X(){return s.tap}function $(){return!!s.doubleTap}function G(){if(null==C)return!1;var e=se();return $()&&e-C<=s.doubleTapThreshold}function K(){_=T=0}function Q(){var e=!1;return e=T&&se()-T<=s.fingerReleaseThreshold?!0:e}function J(e){v&&(!0===e?(v.bind(i,A),v.bind(o,M),r&&v.bind(r,P)):(v.unbind(i,A,!1),v.unbind(o,M,!1),r&&v.unbind(r,P,!1)),v.data(Ie+"_intouch",!0===e))}function Z(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,x[e]=n}function ee(e){var t=void 0!==e.identifier?e.identifier:0,n=x[t]||null;return(n=null===n?Z(t,e):n).last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function te(e){if(y[e])return y[e].distance}function ne(e){return{direction:e,distance:0}}function ie(){return k-S}function oe(e,t){var n=Math.abs(e.x-t.x),t=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+t*t))}function re(e,t){var n,i,i=(i=(n=e).x-t.x,n=t.y-e.y,i=Math.atan2(n,i),i=(i=Math.round(180*i/Math.PI))<0?360-Math.abs(i):i);return i<=45&&0<=i||i<=360&&315<=i?le:135<=i&&i<=225?ce:45<i&&i<135?de:ue}function se(){return(new Date).getTime()}this.enable=function(){return v.bind(n,O),v.bind(a,I),v},this.disable=function(){return j(),v},this.destroy=function(){j(),v.data(Ie,null),v=null},this.option=function(e,t){if("object"==typeof e)s=ae.extend(s,e);else if(void 0!==s[e]){if(void 0===t)return s[e];s[e]=t}else{if(!e)return s;ae.error("Option "+e+" does not exist on jQuery.swipe.options")}return null}}ae.fn.swipe=function(e){var t=ae(this),n=t.data(Ie);if(n&&"string"==typeof e){if(n[e])return n[e].apply(this,Array.prototype.slice.call(arguments,1));ae.error("Method "+e+" does not exist on jQuery.swipe")}else if(n&&"object"==typeof e)n.option.apply(this,arguments);else if(!(n||"object"!=typeof e&&e))return function(n){!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=pe);void 0!==n.click&&void 0===n.tap&&(n.tap=n.click);n=n||{};return n=ae.extend({},ae.fn.swipe.defaults,n),this.each(function(){var e,t=ae(this);(e=t.data(Ie))||(e=new i(this,n),t.data(Ie,e))})}.apply(this,arguments);return t},ae.fn.swipe.version="1.6.15",ae.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe",preventDefaultEvents:!0},ae.fn.swipe.phases={PHASE_START:_e,PHASE_MOVE:Ce,PHASE_END:Ee,PHASE_CANCEL:Le},ae.fn.swipe.directions={LEFT:le,RIGHT:ce,UP:ue,DOWN:de,IN:he,OUT:fe},ae.fn.swipe.pageScroll={NONE:pe,HORIZONTAL:xe,VERTICAL:Se,AUTO:me},ae.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:ke}}),function(e){var r,s=e.event,a=s.special.debouncedresize={setup:function(){e(this).on("resize",a.handler)},teardown:function(){e(this).off("resize",a.handler)},handler:function(e,t){function n(){e.type="debouncedresize",s.dispatch.apply(i,o)}var i=this,o=arguments;r&&clearTimeout(r),t?n():r=setTimeout(n,a.threshold)},threshold:150}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(d){var n=/\+/g;function h(e){return p.raw?e:encodeURIComponent(e)}function f(e,t){e=p.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(n," ")),p.json?JSON.parse(e):e}catch(e){}}(e);return d.isFunction(t)?t(e):e}var p=d.cookie=function(e,t,n){var i,o;if(1<arguments.length&&!d.isFunction(t))return"number"==typeof(n=d.extend({},p.defaults,n)).expires&&(o=n.expires,(i=n.expires=new Date).setMilliseconds(i.getMilliseconds()+864e5*o)),document.cookie=[h(e),"=",(o=t,h(p.json?JSON.stringify(o):String(o))),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("");for(var r=e?void 0:{},s=document.cookie?document.cookie.split("; "):[],a=0,l=s.length;a<l;a++){var c=s[a].split("="),u=(u=c.shift(),p.raw?u:decodeURIComponent(u)),c=c.join("=");if(e===u){r=f(c,t);break}e||void 0===(c=f(c))||(r[u]=c)}return r};p.defaults={},d.removeCookie=function(e,t){return d.cookie(e,"",d.extend({},t,{expires:-1})),!d.cookie(e)}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var _=!1,C=!1,E=0,L=2e3,O=0,A=e,M=document,I=window,P=A(I),j=[];var r,B=I.requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||!1,R=I.cancelAnimationFrame||I.webkitCancelAnimationFrame||I.mozCancelAnimationFrame||!1;B?I.cancelAnimationFrame||(R=function(e){}):(r=0,B=function(e,t){var n=(new Date).getTime(),i=Math.max(0,16-(n-r)),o=I.setTimeout(function(){e(n+i)},i);return r=n+i,o},R=function(e){I.clearTimeout(e)});function z(){if(i)return i;var e=M.createElement("DIV"),r=e.style,t=navigator.userAgent,n=navigator.platform,s={};return s.haspointerlock="pointerLockElement"in M||"webkitPointerLockElement"in M||"mozPointerLockElement"in M,s.isopera="opera"in I,s.isopera12=s.isopera&&"getUserMedia"in navigator,s.isoperamini="[object OperaMini]"===Object.prototype.toString.call(I.operamini),s.isie="all"in M&&"attachEvent"in e&&!s.isopera,s.isieold=s.isie&&!("msInterpolationMode"in r),s.isie7=s.isie&&!s.isieold&&(!("documentMode"in M)||7===M.documentMode),s.isie8=s.isie&&"documentMode"in M&&8===M.documentMode,s.isie9=s.isie&&"performance"in I&&9===M.documentMode,s.isie10=s.isie&&"performance"in I&&10===M.documentMode,s.isie11="msRequestFullscreen"in e&&11<=M.documentMode,s.ismsedge="msCredentials"in I,s.ismozilla="MozAppearance"in r,s.iswebkit=!s.ismsedge&&"WebkitAppearance"in r,s.ischrome=s.iswebkit&&"chrome"in I,s.ischrome38=s.ischrome&&"touchAction"in r,s.ischrome22=!s.ischrome38&&s.ischrome&&s.haspointerlock,s.ischrome26=!s.ischrome38&&s.ischrome&&"transition"in r,s.cantouch="ontouchstart"in M.documentElement||"ontouchstart"in I,s.hasw3ctouch=!!I.PointerEvent&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints),s.hasmstouch=!s.hasw3ctouch&&(I.MSPointerEvent||!1),s.ismac=/^mac$/i.test(n),s.isios=s.cantouch&&/iphone|ipad|ipod/i.test(n),s.isios4=s.isios&&!("seal"in Object),s.isios7=s.isios&&"webkitHidden"in M,s.isios8=s.isios&&"hidden"in M,s.isios10=s.isios&&I.Proxy,s.isandroid=/android/i.test(t),s.haseventlistener="addEventListener"in e,s.trstyle=!1,s.hastransform=!1,s.hastranslate3d=!1,s.transitionstyle=!1,s.hastransition=!1,s.transitionend=!1,s.trstyle="transform",s.hastransform="transform"in r||function(){for(var e=["msTransform","webkitTransform","MozTransform","OTransform"],t=0,n=e.length;t<n;t++)if(void 0!==r[e[t]]){s.trstyle=e[t];break}s.hastransform=!!s.trstyle}(),s.hastransform&&(r[s.trstyle]="translate3d(1px,2px,3px)",s.hastranslate3d=/translate3d/.test(r[s.trstyle])),s.transitionstyle="transition",s.prefixstyle="",s.transitionend="transitionend",s.hastransition="transition"in r||function(){s.transitionend=!1;for(var e=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],t=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],n=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],i=0,o=e.length;i<o;i++)if(e[i]in r){s.transitionstyle=e[i],s.prefixstyle=t[i],s.transitionend=n[i];break}s.ischrome26&&(s.prefixstyle=t[1]),s.hastransition=s.transitionstyle}(),s.cursorgrabvalue=function(){for(var e=["grab","-webkit-grab","-moz-grab"],t=0,n=(e=s.ischrome&&!s.ischrome38||s.isie?[]:e).length;t<n;t++){var i=e[t];if(r.cursor=i,r.cursor==i)return i}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}(),s.hasmousecapture="setCapture"in e,s.hasMutationObserver=!1!==D,e=null,i=s}function s(e,t){var y=this;this.version="3.7.6",this.name="nicescroll",this.me=t;var n,v=A("body"),b=this.opt={doc:v,win:!1};if(A.extend(b,W),b.snapbackspeed=80,e)for(var i in b)void 0!==e[i]&&(b[i]=e[i]);if(b.disablemutationobserver&&(D=!1),this.doc=b.doc,this.iddoc=this.doc&&this.doc[0]&&this.doc[0].id||"",this.ispage=/^BODY|HTML/.test((b.win||this.doc)[0].nodeName),this.haswrapper=!1!==b.win,this.win=b.win||(this.ispage?P:this.doc),this.docscroll=this.ispage&&!this.haswrapper?P:this.win,this.body=v,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=b.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,"auto"==b.rtlmode?"horizontal-tb"==(t=(n=this.win[0]==I?this.body:this.win).css("writing-mode")||n.css("-webkit-writing-mode")||n.css("-ms-writing-mode")||n.css("-moz-writing-mode"))||"lr-tb"==t||""===t?(this.isrtlmode="rtl"==n.css("direction"),this.isvertical=!1):(this.isrtlmode="vertical-rl"==t||"tb"==t||"tb-rl"==t||"rl-tb"==t,this.isvertical="vertical-rl"==t||"tb"==t||"tb-rl"==t):(this.isrtlmode=!0===b.rtlmode,this.isvertical=!1),this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,(this.observerbody=!1)!==b.scrollbarid)this.id=b.scrollbarid;else for(;this.id="ascrail"+L++,M.getElementById(this.id););this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=b.overflowx,this.overflowy=b.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=z();var o,w=A.extend({},this.detected);function l(e,t,n,i,o,r,s){this.st=e,this.ed=t,this.spd=n,this.p1=i||0,this.p2=o||1,this.p3=r||0,this.p4=s||1,this.ts=H(),this.df=t-e}function r(){var e=y.doc.css(w.trstyle);return!(!e||"matrix"!=e.substr(0,6))&&e.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/)}this.canhwscroll=w.hastransform&&b.hwacceleration,this.ishwscroll=this.canhwscroll&&y.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(w.iswebkit||w.isie||w.isie11):this.hasreversehr=!(w.iswebkit||w.isie&&!w.isie10&&!w.isie11):this.hasreversehr=!1,this.istouchcapable=!1,(w.cantouch||!w.hasw3ctouch&&!w.hasmstouch)&&(!w.cantouch||w.isios||w.isandroid||!w.iswebkit&&!w.ismozilla)||(this.istouchcapable=!0),b.enablemouselockapi||(w.hasmousecapture=!1,w.haspointerlock=!1),this.debounced=function(e,t,n){y&&(y.delaylist[e]||!1||(y.delaylist[e]={h:B(function(){y.delaylist[e].fn.call(y),y.delaylist[e]=!1},n)},t.call(y)),y.delaylist[e].fn=t)},this.synched=function(e,t){y.synclist[e]?y.synclist[e]=t:(y.synclist[e]=t,B(function(){y&&(y.synclist[e]&&y.synclist[e].call(y),y.synclist[e]=null)}))},this.unsynched=function(e){y.synclist[e]&&(y.synclist[e]=!1)},this.css=function(e,t){for(var n in t)y.saved.css.push([e,n,e.css(n)]),e.css(n,t[n])},this.scrollTop=function(e){return void 0===e?y.getScrollTop():y.setScrollTop(e)},this.scrollLeft=function(e){return void 0===e?y.getScrollLeft():y.setScrollLeft(e)},l.prototype={B2:function(e){return 3*(1-e)*(1-e)*e},B3:function(e){return 3*(1-e)*e*e},B4:function(e){return e*e*e},getPos:function(){return(H()-this.ts)/this.spd},getNow:function(){var e=(H()-this.ts)/this.spd,t=this.B2(e)+this.B3(e)+this.B4(e);return 1<=e?this.ed:this.st+this.df*t|0},update:function(e,t){return this.st=this.getNow(),this.ed=e,this.spd=t,this.ts=H(),this.df=this.ed-this.st,this}},this.ishwscroll?(this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},w.hastranslate3d&&w.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(e){if(!e){e=r();if(e)return 16==e.length?-e[13]:-e[5];if(y.timerscroll&&y.timerscroll.bz)return y.timerscroll.bz.getNow()}return y.doc.translate.y},this.getScrollLeft=function(e){if(!e){e=r();if(e)return 16==e.length?-e[12]:-e[4];if(y.timerscroll&&y.timerscroll.bh)return y.timerscroll.bh.getNow()}return y.doc.translate.x},this.notifyScrollEvent=function(e){var t=M.createEvent("UIEvents");t.initUIEvent("scroll",!1,!1,I,1),t.niceevent=!0,e.dispatchEvent(t)},o=this.isrtlmode?1:-1,w.hastranslate3d&&b.enabletranslate3d?(this.setScrollTop=function(e,t){y.doc.translate.y=e,y.doc.translate.ty=-1*e+"px",y.doc.css(w.trstyle,"translate3d("+y.doc.translate.tx+","+y.doc.translate.ty+",0)"),t||y.notifyScrollEvent(y.win[0])},this.setScrollLeft=function(e,t){y.doc.translate.x=e,y.doc.translate.tx=e*o+"px",y.doc.css(w.trstyle,"translate3d("+y.doc.translate.tx+","+y.doc.translate.ty+",0)"),t||y.notifyScrollEvent(y.win[0])}):(this.setScrollTop=function(e,t){y.doc.translate.y=e,y.doc.translate.ty=-1*e+"px",y.doc.css(w.trstyle,"translate("+y.doc.translate.tx+","+y.doc.translate.ty+")"),t||y.notifyScrollEvent(y.win[0])},this.setScrollLeft=function(e,t){y.doc.translate.x=e,y.doc.translate.tx=e*o+"px",y.doc.css(w.trstyle,"translate("+y.doc.translate.tx+","+y.doc.translate.ty+")"),t||y.notifyScrollEvent(y.win[0])})):(this.getScrollTop=function(){return y.docscroll.scrollTop()},this.setScrollTop=function(e){y.docscroll.scrollTop(e)},this.getScrollLeft=function(){var e=y.hasreversehr?y.detected.ismozilla?y.page.maxw-Math.abs(y.docscroll.scrollLeft()):y.page.maxw-y.docscroll.scrollLeft():y.docscroll.scrollLeft();return e},this.setScrollLeft=function(e){return setTimeout(function(){if(y)return y.hasreversehr&&(e=y.detected.ismozilla?-(y.page.maxw-e):y.page.maxw-e),y.docscroll.scrollLeft(e)},1)}),this.getTarget=function(e){return e&&(e.target||e.srcElement)||!1},this.hasParent=function(e,t){if(!e)return!1;for(var n=e.target||e.srcElement||e||!1;n&&n.id!=t;)n=n.parentNode||!1;return!1!==n};var s={thin:1,medium:3,thick:5};function a(e,t,n){e=e.css(t),t=parseFloat(e);if(isNaN(t)){n=3==(t=s[e]||0)?n?y.win.outerHeight()-y.win.innerHeight():y.win.outerWidth()-y.win.innerWidth():1;return y.isie8&&t&&(t+=1),n?t:0}return t}this.getDocumentScrollOffset=function(){return{top:I.pageYOffset||M.documentElement.scrollTop,left:I.pageXOffset||M.documentElement.scrollLeft}},this.getOffset=function(){if(y.isfixed){var e=y.win.offset(),t=y.getDocumentScrollOffset();return e.top-=t.top,e.left-=t.left,e}t=y.win.offset();if(!y.viewport)return t;e=y.viewport.offset();return{top:t.top-e.top,left:t.left-e.left}},this.updateScrollBar=function(e){var t,n,i;y.ishwscroll?(y.rail.css({height:y.win.innerHeight()-(b.railpadding.top+b.railpadding.bottom)}),y.railh&&y.railh.css({width:y.win.innerWidth()-(b.railpadding.left+b.railpadding.right)})):((i={top:(t=y.getOffset()).top,left:t.left-(b.railpadding.left+b.railpadding.right)}).top+=a(y.win,"border-top-width",!0),i.left+=y.rail.align?y.win.outerWidth()-a(y.win,"border-right-width")-y.rail.width:a(y.win,"border-left-width"),(n=b.railoffset)&&(n.top&&(i.top+=n.top),n.left&&(i.left+=n.left)),y.railslocked||y.rail.css({top:i.top,left:i.left,height:(e?e.h:y.win.innerHeight())-(b.railpadding.top+b.railpadding.bottom)}),y.zoom&&y.zoom.css({top:i.top+1,left:1==y.rail.align?i.left-20:i.left+y.rail.width+4}),y.railh&&!y.railslocked&&(i={top:t.top,left:t.left},(n=b.railhoffset)&&(n.top&&(i.top+=n.top),n.left&&(i.left+=n.left)),n=y.railh.align?i.top+a(y.win,"border-top-width",!0)+y.win.innerHeight()-y.railh.height:i.top+a(y.win,"border-top-width",!0),i=i.left+a(y.win,"border-left-width"),y.railh.css({top:n-(b.railpadding.top+b.railpadding.bottom),left:i,width:y.railh.width})))},this.doRailClick=function(e,t,n){var i,o;y.railslocked||(y.cancelEvent(e),"pageY"in e||(e.pageX=e.clientX+M.documentElement.scrollLeft,e.pageY=e.clientY+M.documentElement.scrollTop),t?(i=n?y.doScrollLeft:y.doScrollTop,o=n?(e.pageX-y.railh.offset().left-y.cursorwidth/2)*y.scrollratio.x:(e.pageY-y.rail.offset().top-y.cursorheight/2)*y.scrollratio.y,y.unsynched("relativexy"),i(0|o)):(i=n?y.doScrollLeftBy:y.doScrollBy,o=n?y.scroll.x:y.scroll.y,e=n?e.pageX-y.railh.offset().left:e.pageY-y.rail.offset().top,n=n?y.view.w:y.view.h,i(e<=o?n:-n)))},y.newscrolly=y.newscrollx=0,y.hasanimationframe="requestAnimationFrame"in I,y.hascancelanimationframe="cancelAnimationFrame"in I,y.hasborderbox=!1,this.init=function(){if(y.saved.css=[],w.isoperamini)return!0;if(w.isandroid&&!("hidden"in M))return!0;b.emulatetouch=b.emulatetouch||b.touchbehavior,y.hasborderbox=I.getComputedStyle&&"border-box"===I.getComputedStyle(M.body)["box-sizing"];var e,n={"overflow-y":"hidden"};if((w.isie11||w.isie10)&&(n["-ms-overflow-style"]="none"),y.ishwscroll&&(this.doc.css(w.transitionstyle,w.prefixstyle+"transform 0ms ease-out"),w.transitionend&&y.bind(y.doc,w.transitionend,y.onScrollTransitionEnd,!1)),y.zindex="auto",y.ispage||"auto"!=b.zindex?y.zindex=b.zindex:y.zindex=function(){var e=y.win;if("zIndex"in e)return e.zIndex();for(;0<e.length;){if(9==e[0].nodeType)return!1;var t=e.css("zIndex");if(!isNaN(t)&&0!==t)return parseInt(t);e=e.parent()}return!1}()||"auto",!y.ispage&&"auto"!=y.zindex&&y.zindex>O&&(O=y.zindex),y.isie&&0===y.zindex&&"auto"==b.zindex&&(y.zindex="auto"),!y.ispage||!w.isieold){var t=y.docscroll;y.ispage&&(t=y.haswrapper?y.win:y.doc),y.css(t,n),y.ispage&&(w.isie11||w.isie)&&y.css(A("html"),n),!w.isios||y.ispage||y.haswrapper||y.css(v,{"-webkit-overflow-scrolling":"touch"});var i=A(M.createElement("div"));i.css({position:"relative",top:0,float:"right",width:b.cursorwidth,height:0,"background-color":b.cursorcolor,border:b.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.cursorborderradius,"-moz-border-radius":b.cursorborderradius,"border-radius":b.cursorborderradius}),i.addClass("nicescroll-cursors"),y.cursor=i;var o=A(M.createElement("div"));o.attr("id",y.id),o.addClass("nicescroll-rails nicescroll-rails-vr");var r,s,a,l=["left","right","top","bottom"];for(a in l)(r=b.railpadding[s=l[a]]||0)&&o.css("padding-"+s,r+"px");o.append(i),o.width=Math.max(parseFloat(b.cursorwidth),i.outerWidth()),o.css({width:o.width+"px",zIndex:y.zindex,background:b.background,cursor:"default"}),o.visibility=!0,o.scrollable=!0,o.align="left"==b.railalign?0:1,y.rail=o;var c,u,d,h,f,p,m,g;y.rail.drag=!1;!b.boxzoom||y.ispage||w.isieold||(c=M.createElement("div"),y.bind(c,"click",y.doZoom),y.bind(c,"mouseenter",function(){y.zoom.css("opacity",b.cursoropacitymax)}),y.bind(c,"mouseleave",function(){y.zoom.css("opacity",b.cursoropacitymin)}),y.zoom=A(c),y.zoom.css({cursor:"pointer",zIndex:y.zindex,backgroundImage:"url("+b.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),b.dblclickzoom&&y.bind(y.win,"dblclick",y.doZoom),w.cantouch&&b.gesturezoom&&(y.ongesturezoom=function(e){return 1.5<e.scale&&y.doZoomIn(e),e.scale<.8&&y.doZoomOut(e),y.cancelEvent(e)},y.bind(y.win,"gestureend",y.ongesturezoom))),y.railh=!1,b.horizrailenabled&&(y.css(t,{overflowX:"hidden"}),(i=A(M.createElement("div"))).css({position:"absolute",top:0,height:b.cursorwidth,width:0,backgroundColor:b.cursorcolor,border:b.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":b.cursorborderradius,"-moz-border-radius":b.cursorborderradius,"border-radius":b.cursorborderradius}),w.isieold&&i.css("overflow","hidden"),i.addClass("nicescroll-cursors"),y.cursorh=i,(m=A(M.createElement("div"))).attr("id",y.id+"-hr"),m.addClass("nicescroll-rails nicescroll-rails-hr"),m.height=Math.max(parseFloat(b.cursorwidth),i.outerHeight()),m.css({height:m.height+"px",zIndex:y.zindex,background:b.background}),m.append(i),m.visibility=!0,m.scrollable=!0,m.align="top"==b.railvalign?0:1,y.railh=m,y.railh.drag=!1),y.ispage?(o.css({position:"fixed",top:0,height:"100%"}),o.css(o.align?{right:0}:{left:0}),y.body.append(o),y.railh&&(m.css({position:"fixed",left:0,width:"100%"}),m.css(m.align?{bottom:0}:{top:0}),y.body.append(m))):(y.ishwscroll?("static"==y.win.css("position")&&y.css(y.win,{position:"relative"}),u="HTML"==y.win[0].nodeName?y.body:y.win,A(u).scrollTop(0).scrollLeft(0),y.zoom&&(y.zoom.css({position:"absolute",top:1,right:0,"margin-right":o.width+4}),u.append(y.zoom)),o.css({position:"absolute",top:0}),o.css(o.align?{right:0}:{left:0}),u.append(o),m&&(m.css({position:"absolute",left:0,bottom:0}),m.css(m.align?{bottom:0}:{top:0}),u.append(m))):(y.isfixed="fixed"==y.win.css("position"),u=y.isfixed?"fixed":"absolute",y.isfixed||(y.viewport=y.getViewport(y.win[0])),y.viewport&&(y.body=y.viewport,/fixed|absolute/.test(y.viewport.css("position"))||y.css(y.viewport,{position:"relative"})),o.css({position:u}),y.zoom&&y.zoom.css({position:u}),y.updateScrollBar(),y.body.append(o),y.zoom&&y.body.append(y.zoom),y.railh&&(m.css({position:u}),y.body.append(m))),w.isios&&y.css(y.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),b.disableoutline&&(w.isie&&y.win.attr("hideFocus","true"),w.iswebkit&&y.win.css("outline","none"))),!1===b.autohidemode?(y.autohidedom=!1,y.rail.css({opacity:b.cursoropacitymax}),y.railh&&y.railh.css({opacity:b.cursoropacitymax})):!0===b.autohidemode||"leave"===b.autohidemode?(y.autohidedom=A().add(y.rail),w.isie8&&(y.autohidedom=y.autohidedom.add(y.cursor)),y.railh&&(y.autohidedom=y.autohidedom.add(y.railh)),y.railh&&w.isie8&&(y.autohidedom=y.autohidedom.add(y.cursorh))):"scroll"==b.autohidemode?(y.autohidedom=A().add(y.rail),y.railh&&(y.autohidedom=y.autohidedom.add(y.railh))):"cursor"==b.autohidemode?(y.autohidedom=A().add(y.cursor),y.railh&&(y.autohidedom=y.autohidedom.add(y.cursorh))):"hidden"==b.autohidemode&&(y.autohidedom=!1,y.hide(),y.railslocked=!1),(w.cantouch||y.istouchcapable||b.emulatetouch||w.hasmstouch)&&(y.scrollmom=new N(y),y.ontouchstart=function(e){if(y.locked)return!1;if(e.pointerType&&("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return!1;if(y.hasmoving=!1,y.scrollmom.timer&&(y.triggerScrollEnd(),y.scrollmom.stop()),!y.railslocked){var t=y.getTarget(e);if(t)if(/INPUT/i.test(t.nodeName)&&/range/i.test(t.type))return y.stopPropagation(e);var n,i,o,r="mousedown"===e.type;if(!("clientX"in e)&&"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),y.forcescreen&&((e={original:(n=e).original||e}).clientX=n.screenX,e.clientY=n.screenY),y.rail.drag={x:e.clientX,y:e.clientY,sx:y.scroll.x,sy:y.scroll.y,st:y.getScrollTop(),sl:y.getScrollLeft(),pt:2,dl:!1,tg:t},y.ispage||!b.directionlockdeadzone?y.rail.drag.dl="f":(o=P.width(),i=P.height(),i=(n=y.getContentSize()).h-i,o=n.w-o,y.rail.scrollable&&!y.railh.scrollable?y.rail.drag.ck=0<i&&"v":!y.rail.scrollable&&y.railh.scrollable?y.rail.drag.ck=0<o&&"h":y.rail.drag.ck=!1),b.emulatetouch&&y.isiframe&&w.isie&&(o=y.win.position(),y.rail.drag.x+=o.left,y.rail.drag.y+=o.top),y.hasmoving=!1,y.lastmouseup=!1,y.scrollmom.reset(e.clientX,e.clientY),t&&r){if(!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(t.nodeName))return w.hasmousecapture&&t.setCapture(),b.emulatetouch?(t.onclick&&!t._onclick&&(t._onclick=t.onclick,t.onclick=function(e){if(y.hasmoving)return!1;t._onclick.call(this,e)}),y.cancelEvent(e)):y.stopPropagation(e);/SUBMIT|CANCEL|BUTTON/i.test(A(t).attr("type"))&&(y.preventclick={tg:t,click:!1})}}},y.ontouchend=function(e){if(!y.rail.drag)return!0;if(2!=y.rail.drag.pt)return 1==y.rail.drag.pt?y.onmouseup(e):void 0;if(e.pointerType&&("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return!1;y.rail.drag=!1;var t="mouseup"===e.type;return y.hasmoving&&(y.scrollmom.doMomentum(),y.lastmouseup=!0,y.hideCursor(),w.hasmousecapture&&M.releaseCapture(),t)?y.cancelEvent(e):void 0},d=b.emulatetouch&&y.isiframe&&!w.hasmousecapture,h=.3*b.directionlockdeadzone|0,y.ontouchmove=function(e,t){if(!y.rail.drag)return!0;if(e.targetTouches&&b.preventmultitouchscrolling&&1<e.targetTouches.length)return!0;if(e.pointerType&&("mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return!0;if(2!=y.rail.drag.pt)return 1==y.rail.drag.pt?y.onmousemove(e):void 0;"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),l=r=0,d&&!t&&(l=-(i=y.win.position()).left,r=-i.top);var n=e.clientY+r,i=n-y.rail.drag.y,o=e.clientX+l,r=o-y.rail.drag.x,s=y.rail.drag.st-i;if(y.ishwscroll&&b.bouncescroll)s<0?s=Math.round(s/2):s>y.page.maxh&&(s=y.page.maxh+Math.round((s-y.page.maxh)/2));else if(s<0?n=s=0:s>y.page.maxh&&(s=y.page.maxh,n=0),0===n&&!y.hasmoving)return y.ispage||(y.rail.drag=!1),!0;var a=y.getScrollLeft();if(y.railh&&y.railh.scrollable&&(a=y.isrtlmode?r-y.rail.drag.sl:y.rail.drag.sl-r,y.ishwscroll&&b.bouncescroll?a<0?a=Math.round(a/2):a>y.page.maxw&&(a=y.page.maxw+Math.round((a-y.page.maxw)/2)):(a<0&&(o=a=0),a>y.page.maxw&&(a=y.page.maxw,o=0))),!y.hasmoving){if(y.rail.drag.y===e.clientY&&y.rail.drag.x===e.clientX)return y.cancelEvent(e);var l=Math.abs(i),i=Math.abs(r),r=b.directionlockdeadzone;if(y.rail.drag.ck?"v"==y.rail.drag.ck?r<i&&l<=h?y.rail.drag=!1:r<l&&(y.rail.drag.dl="v"):"h"==y.rail.drag.ck&&(r<l&&i<=h?y.rail.drag=!1:r<i&&(y.rail.drag.dl="h")):r<l&&r<i?y.rail.drag.dl="f":r<l?y.rail.drag.dl=h<i?"f":"v":r<i&&(y.rail.drag.dl=h<l?"f":"h"),!y.rail.drag.dl)return y.cancelEvent(e);y.triggerScrollStart(e.clientX,e.clientY,0,0,0),y.hasmoving=!0}return y.preventclick&&!y.preventclick.click&&(y.preventclick.click=y.preventclick.tg.onclick||!1,y.preventclick.tg.onclick=y.onpreventclick),y.rail.drag.dl&&("v"==y.rail.drag.dl?a=y.rail.drag.sl:"h"==y.rail.drag.dl&&(s=y.rail.drag.st)),y.synched("touchmove",function(){y.rail.drag&&2==y.rail.drag.pt&&(y.prepareTransition&&y.resetTransition(),y.rail.scrollable&&y.setScrollTop(s),y.scrollmom.update(o,n),y.railh&&y.railh.scrollable?(y.setScrollLeft(a),y.showCursor(s,a)):y.showCursor(s),w.isie10&&M.selection.clear())}),y.cancelEvent(e)},y.ontouchstartCursor=function(e,t){if(!y.rail.drag||3==y.rail.drag.pt){if(y.locked)return y.cancelEvent(e);y.cancelScroll(),y.rail.drag={x:e.touches[0].clientX,y:e.touches[0].clientY,sx:y.scroll.x,sy:y.scroll.y,pt:3,hr:!!t};t=y.getTarget(e);return!y.ispage&&w.hasmousecapture&&t.setCapture(),y.isiframe&&!w.hasmousecapture&&(y.saved.csspointerevents=y.doc.css("pointer-events"),y.css(y.doc,{"pointer-events":"none"})),y.cancelEvent(e)}},y.ontouchendCursor=function(e){if(y.rail.drag&&(w.hasmousecapture&&M.releaseCapture(),y.isiframe&&!w.hasmousecapture&&y.doc.css("pointer-events",y.saved.csspointerevents),3==y.rail.drag.pt))return y.rail.drag=!1,y.cancelEvent(e)},y.ontouchmoveCursor=function(e){var t;if(y.rail.drag&&3==y.rail.drag.pt)return y.cursorfreezed=!0,y.rail.drag.hr?(y.scroll.x=y.rail.drag.sx+(e.touches[0].clientX-y.rail.drag.x),y.scroll.x<0&&(y.scroll.x=0),t=y.scrollvaluemaxw,y.scroll.x>t&&(y.scroll.x=t)):(y.scroll.y=y.rail.drag.sy+(e.touches[0].clientY-y.rail.drag.y),y.scroll.y<0&&(y.scroll.y=0),t=y.scrollvaluemax,y.scroll.y>t&&(y.scroll.y=t)),y.synched("touchmove",function(){y.rail.drag&&3==y.rail.drag.pt&&(y.showCursor(),y.rail.drag.hr?y.doScrollLeft(Math.round(y.scroll.x*y.scrollratio.x),b.cursordragspeed):y.doScrollTop(Math.round(y.scroll.y*y.scrollratio.y),b.cursordragspeed))}),y.cancelEvent(e)}),y.onmousedown=function(e,t){if(!y.rail.drag||1==y.rail.drag.pt){if(y.railslocked)return y.cancelEvent(e);y.cancelScroll(),y.rail.drag={x:e.clientX,y:e.clientY,sx:y.scroll.x,sy:y.scroll.y,pt:1,hr:t||!1};t=y.getTarget(e);return w.hasmousecapture&&t.setCapture(),y.isiframe&&!w.hasmousecapture&&(y.saved.csspointerevents=y.doc.css("pointer-events"),y.css(y.doc,{"pointer-events":"none"})),y.hasmoving=!1,y.cancelEvent(e)}},y.onmouseup=function(e){if(y.rail.drag)return 1!=y.rail.drag.pt||(w.hasmousecapture&&M.releaseCapture(),y.isiframe&&!w.hasmousecapture&&y.doc.css("pointer-events",y.saved.csspointerevents),y.rail.drag=!1,y.cursorfreezed=!1,y.hasmoving&&y.triggerScrollEnd(),y.cancelEvent(e))},y.onmousemove=function(e){var t;if(y.rail.drag){if(1===y.rail.drag.pt)return w.ischrome&&0===e.which?y.onmouseup(e):(y.cursorfreezed=!0,y.hasmoving||y.triggerScrollStart(e.clientX,e.clientY,0,0,0),y.hasmoving=!0,y.rail.drag.hr?(y.scroll.x=y.rail.drag.sx+(e.clientX-y.rail.drag.x),y.scroll.x<0&&(y.scroll.x=0),t=y.scrollvaluemaxw,y.scroll.x>t&&(y.scroll.x=t)):(y.scroll.y=y.rail.drag.sy+(e.clientY-y.rail.drag.y),y.scroll.y<0&&(y.scroll.y=0),t=y.scrollvaluemax,y.scroll.y>t&&(y.scroll.y=t)),y.synched("mousemove",function(){y.cursorfreezed&&(y.showCursor(),y.rail.drag.hr?y.scrollLeft(Math.round(y.scroll.x*y.scrollratio.x)):y.scrollTop(Math.round(y.scroll.y*y.scrollratio.y)))}),y.cancelEvent(e))}else y.checkarea=0},w.cantouch||b.emulatetouch?(y.onpreventclick=function(e){if(y.preventclick)return y.preventclick.tg.onclick=y.preventclick.click,y.preventclick=!1,y.cancelEvent(e)},y.onclick=!w.isios&&function(e){return!y.lastmouseup||(y.lastmouseup=!1,y.cancelEvent(e))},b.grabcursorenabled&&w.cursorgrabvalue&&(y.css(y.ispage?y.doc:y.win,{cursor:w.cursorgrabvalue}),y.css(y.rail,{cursor:w.cursorgrabvalue}))):(f=function(e){var t,n;y.selectiondrag&&(e&&((t=y.win.outerHeight())<=(n=0<(n=e.pageY-y.selectiondrag.top)&&n<t?0:n)&&(n-=t),y.selectiondrag.df=n),0!==y.selectiondrag.df&&(n=-2*y.selectiondrag.df/6|0,y.doScrollBy(n),y.debounced("doselectionscroll",function(){f()},50)))},"getSelection"in M?y.hasTextSelected=function(){return 0<M.getSelection().rangeCount}:"selection"in M?y.hasTextSelected=function(){return"None"!=M.selection.type}:y.hasTextSelected=function(){return!1},y.onselectionstart=function(e){y.ispage||(y.selectiondrag=y.win.offset())},y.onselectionend=function(e){y.selectiondrag=!1},y.onselectiondrag=function(e){y.selectiondrag&&y.hasTextSelected()&&y.debounced("selectionscroll",function(){f(e)},250)}),w.hasw3ctouch?(y.css(y.ispage?A("html"):y.win,{"touch-action":"none"}),y.css(y.rail,{"touch-action":"none"}),y.css(y.cursor,{"touch-action":"none"}),y.bind(y.win,"pointerdown",y.ontouchstart),y.bind(M,"pointerup",y.ontouchend),y.delegate(M,"pointermove",y.ontouchmove)):w.hasmstouch?(y.css(y.ispage?A("html"):y.win,{"-ms-touch-action":"none"}),y.css(y.rail,{"-ms-touch-action":"none"}),y.css(y.cursor,{"-ms-touch-action":"none"}),y.bind(y.win,"MSPointerDown",y.ontouchstart),y.bind(M,"MSPointerUp",y.ontouchend),y.delegate(M,"MSPointerMove",y.ontouchmove),y.bind(y.cursor,"MSGestureHold",function(e){e.preventDefault()}),y.bind(y.cursor,"contextmenu",function(e){e.preventDefault()})):w.cantouch&&(y.bind(y.win,"touchstart",y.ontouchstart,!1,!0),y.bind(M,"touchend",y.ontouchend,!1,!0),y.bind(M,"touchcancel",y.ontouchend,!1,!0),y.delegate(M,"touchmove",y.ontouchmove,!1,!0)),b.emulatetouch&&(y.bind(y.win,"mousedown",y.ontouchstart,!1,!0),y.bind(M,"mouseup",y.ontouchend,!1,!0),y.bind(M,"mousemove",y.ontouchmove,!1,!0)),!b.cursordragontouch&&(w.cantouch||b.emulatetouch)||(y.rail.css({cursor:"default"}),y.railh&&y.railh.css({cursor:"default"}),y.jqbind(y.rail,"mouseenter",function(){return!(!y.ispage&&!y.win.is(":visible"))&&(y.canshowonmouseevent&&y.showCursor(),void(y.rail.active=!0))}),y.jqbind(y.rail,"mouseleave",function(){y.rail.active=!1,y.rail.drag||y.hideCursor()}),b.sensitiverail&&(y.bind(y.rail,"click",function(e){y.doRailClick(e,!1,!1)}),y.bind(y.rail,"dblclick",function(e){y.doRailClick(e,!0,!1)}),y.bind(y.cursor,"click",function(e){y.cancelEvent(e)}),y.bind(y.cursor,"dblclick",function(e){y.cancelEvent(e)})),y.railh&&(y.jqbind(y.railh,"mouseenter",function(){return!(!y.ispage&&!y.win.is(":visible"))&&(y.canshowonmouseevent&&y.showCursor(),void(y.rail.active=!0))}),y.jqbind(y.railh,"mouseleave",function(){y.rail.active=!1,y.rail.drag||y.hideCursor()}),b.sensitiverail&&(y.bind(y.railh,"click",function(e){y.doRailClick(e,!1,!0)}),y.bind(y.railh,"dblclick",function(e){y.doRailClick(e,!0,!0)}),y.bind(y.cursorh,"click",function(e){y.cancelEvent(e)}),y.bind(y.cursorh,"dblclick",function(e){y.cancelEvent(e)})))),b.cursordragontouch&&(this.istouchcapable||w.cantouch)&&(y.bind(y.cursor,"touchstart",y.ontouchstartCursor),y.bind(y.cursor,"touchmove",y.ontouchmoveCursor),y.bind(y.cursor,"touchend",y.ontouchendCursor),y.cursorh&&y.bind(y.cursorh,"touchstart",function(e){y.ontouchstartCursor(e,!0)}),y.cursorh&&y.bind(y.cursorh,"touchmove",y.ontouchmoveCursor),y.cursorh&&y.bind(y.cursorh,"touchend",y.ontouchendCursor)),b.emulatetouch||w.isandroid||w.isios?(y.bind(w.hasmousecapture?y.win:M,"mouseup",y.ontouchend),y.onclick&&y.bind(M,"click",y.onclick),b.cursordragontouch?(y.bind(y.cursor,"mousedown",y.onmousedown),y.bind(y.cursor,"mouseup",y.onmouseup),y.cursorh&&y.bind(y.cursorh,"mousedown",function(e){y.onmousedown(e,!0)}),y.cursorh&&y.bind(y.cursorh,"mouseup",y.onmouseup)):(y.bind(y.rail,"mousedown",function(e){e.preventDefault()}),y.railh&&y.bind(y.railh,"mousedown",function(e){e.preventDefault()}))):(y.bind(w.hasmousecapture?y.win:M,"mouseup",y.onmouseup),y.bind(M,"mousemove",y.onmousemove),y.onclick&&y.bind(M,"click",y.onclick),y.bind(y.cursor,"mousedown",y.onmousedown),y.bind(y.cursor,"mouseup",y.onmouseup),y.railh&&(y.bind(y.cursorh,"mousedown",function(e){y.onmousedown(e,!0)}),y.bind(y.cursorh,"mouseup",y.onmouseup)),!y.ispage&&b.enablescrollonselection&&(y.bind(y.win[0],"mousedown",y.onselectionstart),y.bind(M,"mouseup",y.onselectionend),y.bind(y.cursor,"mouseup",y.onselectionend),y.cursorh&&y.bind(y.cursorh,"mouseup",y.onselectionend),y.bind(M,"mousemove",y.onselectiondrag)),y.zoom&&(y.jqbind(y.zoom,"mouseenter",function(){y.canshowonmouseevent&&y.showCursor(),y.rail.active=!0}),y.jqbind(y.zoom,"mouseleave",function(){y.rail.active=!1,y.rail.drag||y.hideCursor()}))),b.enablemousewheel&&(y.isiframe||y.mousewheel(w.isie&&y.ispage?M:y.win,y.onmousewheel),y.mousewheel(y.rail,y.onmousewheel),y.railh&&y.mousewheel(y.railh,y.onmousewheelhr)),y.ispage||w.cantouch||/HTML|^BODY/.test(y.win[0].nodeName)||(y.win.attr("tabindex")||y.win.attr({tabindex:++E}),y.bind(y.win,"focus",function(e){_=y.getTarget(e).id||y.getTarget(e)||!1,y.hasfocus=!0,y.canshowonmouseevent&&y.noticeCursor()}),y.bind(y.win,"blur",function(e){_=!1,y.hasfocus=!1}),y.bind(y.win,"mouseenter",function(e){C=y.getTarget(e).id||y.getTarget(e)||!1,y.hasmousefocus=!0,y.canshowonmouseevent&&y.noticeCursor()}),y.bind(y.win,"mouseleave",function(e){C=!1,y.hasmousefocus=!1,y.rail.drag||y.hideCursor()})),y.onkeypress=function(e){if(y.railslocked&&0===y.page.maxh)return!0;e=e||I.event;var t=y.getTarget(e);if(t&&/INPUT|TEXTAREA|SELECT|OPTION/.test(t.nodeName)&&(!(t.getAttribute("type")||t.type||!1)||!/submit|button|cancel/i.tp))return!0;if(A(t).attr("contenteditable"))return!0;if(y.hasfocus||y.hasmousefocus&&!_||y.ispage&&!_&&!C){t=e.keyCode;if(y.railslocked&&27!=t)return y.cancelEvent(e);var n=e.ctrlKey||!1,i=e.shiftKey||!1,o=!1;switch(t){case 38:case 63233:y.doScrollBy(72),o=!0;break;case 40:case 63235:y.doScrollBy(-72),o=!0;break;case 37:case 63232:y.railh&&(n?y.doScrollLeft(0):y.doScrollLeftBy(72),o=!0);break;case 39:case 63234:y.railh&&(n?y.doScrollLeft(y.page.maxw):y.doScrollLeftBy(-72),o=!0);break;case 33:case 63276:y.doScrollBy(y.view.h),o=!0;break;case 34:case 63277:y.doScrollBy(-y.view.h),o=!0;break;case 36:case 63273:y.railh&&n?y.doScrollPos(0,0):y.doScrollTo(0),o=!0;break;case 35:case 63275:y.railh&&n?y.doScrollPos(y.page.maxw,y.page.maxh):y.doScrollTo(y.page.maxh),o=!0;break;case 32:b.spacebarenabled&&(i?y.doScrollBy(y.view.h):y.doScrollBy(-y.view.h),o=!0);break;case 27:y.zoomactive&&(y.doZoom(),o=!0)}return o?y.cancelEvent(e):void 0}},b.enablekeyboard&&y.bind(M,w.isopera&&!w.isopera12?"keypress":"keydown",y.onkeypress),y.bind(M,"keydown",function(e){!e.ctrlKey&&1||(y.wheelprevented=!0)}),y.bind(M,"keyup",function(e){e.ctrlKey||!1||(y.wheelprevented=!1)}),y.bind(I,"blur",function(e){y.wheelprevented=!1}),y.bind(I,"resize",y.onscreenresize),y.bind(I,"orientationchange",y.onscreenresize),y.bind(I,"load",y.lazyResize),!w.ischrome||y.ispage||y.haswrapper||(p=y.win.attr("style"),m=parseFloat(y.win.css("width"))+1,y.win.css("width",m),y.synched("chromefix",function(){y.win.attr("style",p)})),y.onAttributeChange=function(e){y.lazyResize(y.isieold?250:30)},b.enableobserver&&(y.isie11||!1===D||(y.observerbody=new D(function(e){if(e.forEach(function(e){if("attributes"==e.type)return v.hasClass("modal-open")&&v.hasClass("modal-dialog")&&!A.contains(A(".modal-dialog")[0],y.doc[0])?y.hide():y.show()}),y.me.clientWidth!=y.page.width||y.me.clientHeight!=y.page.height)return y.lazyResize(30)}),y.observerbody.observe(M.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),y.ispage||y.haswrapper||(g=y.win[0],!1!==D?(y.observer=new D(function(e){e.forEach(y.onAttributeChange)}),y.observer.observe(g,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),y.observerremover=new D(function(e){e.forEach(function(e){if(0<e.removedNodes.length)for(var t in e.removedNodes)if(y&&e.removedNodes[t]===g)return y.remove()})}),y.observerremover.observe(g.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(y.bind(g,w.isie&&!w.isie9?"propertychange":"DOMAttrModified",y.onAttributeChange),w.isie9&&g.attachEvent("onpropertychange",y.onAttributeChange),y.bind(g,"DOMNodeRemoved",function(e){e.target===g&&y.remove()})))),!y.ispage&&b.boxzoom&&y.bind(I,"resize",y.resizeZoom),y.istextarea&&(y.bind(y.win,"keydown",y.lazyResize),y.bind(y.win,"mouseup",y.lazyResize)),y.lazyResize(30)}"IFRAME"==this.doc[0].nodeName&&(e=function(){var e;y.iframexd=!1;try{var t;(t="contentDocument"in this?this.contentDocument:this.contentWindow._doc).domain}catch(e){t=!(y.iframexd=!0)}if(y.iframexd)return"console"in I&&console.log("NiceScroll error: policy restriced iframe"),!0;y.forcescreen=!0,y.isiframe&&(y.iframe={doc:A(t),html:y.doc.contents().find("html")[0],body:y.doc.contents().find("body")[0]},y.getContentSize=function(){return{w:Math.max(y.iframe.html.scrollWidth,y.iframe.body.scrollWidth),h:Math.max(y.iframe.html.scrollHeight,y.iframe.body.scrollHeight)}},y.docscroll=A(y.iframe.body)),w.isios||!b.iframeautoresize||y.isiframe||(y.win.scrollTop(0),y.doc.height(""),e=Math.max(t.getElementsByTagName("html")[0].scrollHeight,t.body.scrollHeight),y.doc.height(e)),y.lazyResize(30),y.css(A(y.iframe.body),n),w.isios&&y.haswrapper&&y.css(A(t.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?y.bind(this.contentWindow,"scroll",y.onscroll):y.bind(t,"scroll",y.onscroll),b.enablemousewheel&&y.mousewheel(t,y.onmousewheel),b.enablekeyboard&&y.bind(t,w.isopera?"keypress":"keydown",y.onkeypress),w.cantouch?(y.bind(t,"touchstart",y.ontouchstart),y.bind(t,"touchmove",y.ontouchmove)):b.emulatetouch&&(y.bind(t,"mousedown",y.ontouchstart),y.bind(t,"mousemove",function(e){return y.ontouchmove(e,!0)}),b.grabcursorenabled&&w.cursorgrabvalue&&y.css(A(t.body),{cursor:w.cursorgrabvalue})),y.bind(t,"mouseup",y.ontouchend),y.zoom&&(b.dblclickzoom&&y.bind(t,"dblclick",y.doZoom),y.ongesturezoom&&y.bind(t,"gestureend",y.ongesturezoom))},this.doc[0].readyState&&"complete"===this.doc[0].readyState&&setTimeout(function(){e.call(y.doc[0],!1)},500),y.bind(this.doc,"load",e))},this.showCursor=function(e,t){y.cursortimeout&&(clearTimeout(y.cursortimeout),y.cursortimeout=0),y.rail&&(y.autohidedom&&(y.autohidedom.stop().css({opacity:b.cursoropacitymax}),y.cursoractive=!0),y.rail.drag&&1==y.rail.drag.pt||(void 0!==e&&!1!==e&&(y.scroll.y=e/y.scrollratio.y|0),void 0!==t&&(y.scroll.x=t/y.scrollratio.x|0)),y.cursor.css({height:y.cursorheight,top:y.scroll.y}),y.cursorh&&(t=y.hasreversehr?y.scrollvaluemaxw-y.scroll.x:y.scroll.x,y.cursorh.css({width:y.cursorwidth,left:!y.rail.align&&y.rail.visibility?t+y.rail.width:t}),y.cursoractive=!0),y.zoom&&y.zoom.stop().css({opacity:b.cursoropacitymax}))},this.hideCursor=function(e){y.cursortimeout||y.rail&&y.autohidedom&&(y.hasmousefocus&&"leave"===b.autohidemode||(y.cursortimeout=setTimeout(function(){y.rail.active&&y.showonmouseevent||(y.autohidedom.stop().animate({opacity:b.cursoropacitymin}),y.zoom&&y.zoom.stop().animate({opacity:b.cursoropacitymin}),y.cursoractive=!1),y.cursortimeout=0},e||b.hidecursordelay)))},this.noticeCursor=function(e,t,n){y.showCursor(t,n),y.rail.active||y.hideCursor(e)},this.getContentSize=y.ispage?function(){return{w:Math.max(M.body.scrollWidth,M.documentElement.scrollWidth),h:Math.max(M.body.scrollHeight,M.documentElement.scrollHeight)}}:y.haswrapper?function(){return{w:y.doc[0].offsetWidth,h:y.doc[0].offsetHeight}}:function(){return{w:y.docscroll[0].scrollWidth,h:y.docscroll[0].scrollHeight}},this.onResize=function(e,t){if(!y||!y.win)return!1;var n=y.page.maxh,i=y.page.maxw,o=y.view.h,r=y.view.w;if(y.view={w:y.ispage?y.win.width():y.win[0].clientWidth,h:y.ispage?y.win.height():y.win[0].clientHeight},y.page=t||y.getContentSize(),y.page.maxh=Math.max(0,y.page.h-y.view.h),y.page.maxw=Math.max(0,y.page.w-y.view.w),y.page.maxh==n&&y.page.maxw==i&&y.view.w==r&&y.view.h==o){if(y.ispage)return y;r=y.win.offset();if(y.lastposition){o=y.lastposition;if(o.top==r.top&&o.left==r.left)return y}y.lastposition=r}return 0===y.page.maxh?(y.hideRail(),y.scrollvaluemax=0,y.scroll.y=0,y.scrollratio.y=0,y.cursorheight=0,y.setScrollTop(0),y.rail&&(y.rail.scrollable=!1)):(y.page.maxh-=b.railpadding.top+b.railpadding.bottom,y.rail.scrollable=!0),0===y.page.maxw?(y.hideRailHr(),y.scrollvaluemaxw=0,y.scroll.x=0,y.scrollratio.x=0,y.cursorwidth=0,y.setScrollLeft(0),y.railh&&(y.railh.scrollable=!1)):(y.page.maxw-=b.railpadding.left+b.railpadding.right,y.railh&&(y.railh.scrollable=b.horizrailenabled)),y.railslocked=y.locked||0===y.page.maxh&&0===y.page.maxw,y.railslocked?(y.ispage||y.updateScrollBar(y.view),!1):(y.hidden||(y.rail.visibility||y.showRail(),y.railh&&!y.railh.visibility&&y.showRailHr()),y.istextarea&&y.win.css("resize")&&"none"!=y.win.css("resize")&&(y.view.h-=20),y.cursorheight=Math.min(y.view.h,Math.round(y.view.h*(y.view.h/y.page.h))),y.cursorheight=b.cursorfixedheight||Math.max(b.cursorminheight,y.cursorheight),y.cursorwidth=Math.min(y.view.w,Math.round(y.view.w*(y.view.w/y.page.w))),y.cursorwidth=b.cursorfixedheight||Math.max(b.cursorminheight,y.cursorwidth),y.scrollvaluemax=y.view.h-y.cursorheight-(b.railpadding.top+b.railpadding.bottom),y.hasborderbox||(y.scrollvaluemax-=y.cursor[0].offsetHeight-y.cursor[0].clientHeight),y.railh&&(y.railh.width=0<y.page.maxh?y.rail.width:y.view.w,y.scrollvaluemaxw=y.railh.width-y.cursorwidth-(b.railpadding.left+b.railpadding.right)),y.ispage||y.updateScrollBar(y.view),y.scrollratio={x:y.page.maxw/y.scrollvaluemaxw,y:y.page.maxh/y.scrollvaluemax},y.getScrollTop()>y.page.maxh?y.doScrollTop(y.page.maxh):(y.scroll.y=y.getScrollTop()/y.scrollratio.y|0,y.scroll.x=y.getScrollLeft()/y.scrollratio.x|0,y.cursoractive&&y.noticeCursor()),y.scroll.y&&0===y.getScrollTop()&&y.doScrollTo(y.scroll.y*y.scrollratio.y|0),y)},this.resize=y.onResize;var c=0;function u(n,i,o,e){y._bind(n,i,function(e){var t={original:e=e||I.event,target:e.target||e.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==e.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},stopImmediatePropagation:function(){e.stopImmediatePropagation?e.stopImmediatePropagation():e.cancelBubble=!0}};return"mousewheel"==i?(e.wheelDeltaX&&(t.deltaX=-.025*e.wheelDeltaX),e.wheelDeltaY&&(t.deltaY=-.025*e.wheelDeltaY),t.deltaY||t.deltaX||(t.deltaY=-.025*e.wheelDelta)):t.deltaY=e.detail,o.call(n,t)},e)}this.onscreenresize=function(e){clearTimeout(c);var t=!y.ispage&&!y.haswrapper;t&&y.hideRails(),c=setTimeout(function(){y&&(t&&y.showRails(),y.resize()),c=0},120)},this.lazyResize=function(e){return clearTimeout(c),e=isNaN(e)?240:e,c=setTimeout(function(){y&&y.resize(),c=0},e),y},this.jqbind=function(e,t,n){y.events.push({e:e,n:t,f:n,q:!0}),A(e).on(t,n)};var d=!(this.mousewheel=function(e,t,n){var i="jquery"in e?e[0]:e;"onwheel"in M.createElement("div")?y._bind(i,"wheel",t,n||!1):(u(i,e=void 0!==M.onmousewheel?"mousewheel":"DOMMouseScroll",t,n||!1),"DOMMouseScroll"==e&&u(i,"MozMousePixelScroll",t,n||!1))});if(w.haseventlistener){try{var h=Object.defineProperty({},"passive",{get:function(){d=!0}});I.addEventListener("test",null,h)}catch(e){}this.stopPropagation=function(e){return e&&(e=e.original||e).stopPropagation(),!1},this.cancelEvent=function(e){return e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),e.preventManipulation&&e.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},I.constructor.prototype.addEventListener=M.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(e,t,n){this.attachEvent("on"+e,t)},I.constructor.prototype.removeEventListener=M.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)},this.cancelEvent=function(e){return(e=e||I.event)&&(e.cancelBubble=!0,e.cancel=!0,e.returnValue=!1),!1},this.stopPropagation=function(e){return(e=e||I.event)&&(e.cancelBubble=!0),!1};this.delegate=function(e,t,n,i,o){var r=j[t]||!1;r||(r={a:[],l:[],f:function(e){for(var t=r.l,n=!1,i=t.length-1;0<=i;i--)if(!1===(n=t[i].call(e.target,e)))return!1;return n}},y.bind(e,t,r.f,i,o),j[t]=r),y.ispage?(r.a=[y.id].concat(r.a),r.l=[n].concat(r.l)):(r.a.push(y.id),r.l.push(n))},this.undelegate=function(e,t,n,i,o){var r=j[t]||!1;if(r&&r.l)for(var s=0,a=r.l.length;s<a;s++)r.a[s]===y.id&&(r.a.splice(s),r.l.splice(s),0===r.a.length&&(y._unbind(e,t,r.l.f),j[t]=null))},this.bind=function(e,t,n,i,o){e="jquery"in e?e[0]:e;y._bind(e,t,n,i||!1,o||!1)},this._bind=function(e,t,n,i,o){y.events.push({e:e,n:t,f:n,b:i,q:!1}),d&&o?e.addEventListener(t,n,{passive:!1,capture:i}):e.addEventListener(t,n,i||!1)},this._unbind=function(e,t,n,i){j[t]?y.undelegate(e,t,n,i):e.removeEventListener(t,n,i)},this.unbindAll=function(){for(var e=0;e<y.events.length;e++){var t=y.events[e];t.q?t.e.unbind(t.n,t.f):y._unbind(t.e,t.n,t.f,t.b)}},this.showRails=function(){return y.showRail().showRailHr()},this.showRail=function(){return 0===y.page.maxh||!y.ispage&&"none"==y.win.css("display")||(y.rail.visibility=!0,y.rail.css("display","block")),y},this.showRailHr=function(){return y.railh&&(0===y.page.maxw||!y.ispage&&"none"==y.win.css("display")||(y.railh.visibility=!0,y.railh.css("display","block"))),y},this.hideRails=function(){return y.hideRail().hideRailHr()},this.hideRail=function(){return y.rail.visibility=!1,y.rail.css("display","none"),y},this.hideRailHr=function(){return y.railh&&(y.railh.visibility=!1,y.railh.css("display","none")),y},this.show=function(){return y.hidden=!1,y.railslocked=!1,y.showRails()},this.hide=function(){return y.hidden=!0,y.railslocked=!0,y.hideRails()},this.toggle=function(){return y.hidden?y.show():y.hide()},this.remove=function(){for(var e in y.stop(),y.cursortimeout&&clearTimeout(y.cursortimeout),y.delaylist)y.delaylist[e]&&R(y.delaylist[e].h);y.doZoomOut(),y.unbindAll(),w.isie9&&y.win[0].detachEvent("onpropertychange",y.onAttributeChange),!1!==y.observer&&y.observer.disconnect(),!1!==y.observerremover&&y.observerremover.disconnect(),!1!==y.observerbody&&y.observerbody.disconnect(),y.events=null,y.cursor&&y.cursor.remove(),y.cursorh&&y.cursorh.remove(),y.rail&&y.rail.remove(),y.railh&&y.railh.remove(),y.zoom&&y.zoom.remove();for(var t=0;t<y.saved.css.length;t++){var n=y.saved.css[t];n[0].css(n[1],void 0===n[2]?"":n[2])}y.saved=!1,y.me.data("__nicescroll","");var i,o=A.nicescroll;for(i in o.each(function(e){if(this&&this.id===y.id){delete o[e];for(var t=++e;t<o.length;t++,e++)o[e]=o[t];o.length--,o.length&&delete o[o.length]}}),y)y[i]=null,delete y[i];y=null},this.scrollstart=function(e){return this.onscrollstart=e,y},this.scrollend=function(e){return this.onscrollend=e,y},this.scrollcancel=function(e){return this.onscrollcancel=e,y},this.zoomin=function(e){return this.onzoomin=e,y},this.zoomout=function(e){return this.onzoomout=e,y},this.isScrollable=function(e){var t=e.target||e;if("OPTION"==t.nodeName)return!0;for(;t&&1==t.nodeType&&t!==this.me[0]&&!/^BODY|HTML/.test(t.nodeName);){var n=A(t),n=n.css("overflowY")||n.css("overflowX")||n.css("overflow")||"";if(/scroll|auto/.test(n))return t.clientHeight!=t.scrollHeight;t=t.parentNode||!1}return!1},this.getViewport=function(e){for(var t=!(!e||!e.parentNode)&&e.parentNode;t&&1==t.nodeType&&!/^BODY|HTML/.test(t.nodeName);){var n=A(t);if(/fixed|absolute/.test(n.css("position")))return n;var i=n.css("overflowY")||n.css("overflowX")||n.css("overflow")||"";if(/scroll|auto/.test(i)&&t.clientHeight!=t.scrollHeight)return n;if(0<n.getNiceScroll().length)return n;t=t.parentNode||!1}return!1},this.triggerScrollStart=function(e,t,n,i,o){y.onscrollstart&&(o={type:"scrollstart",current:{x:e,y:t},request:{x:n,y:i},end:{x:y.newscrollx,y:y.newscrolly},speed:o},y.onscrollstart.call(y,o))},this.triggerScrollEnd=function(){var e,t;y.onscrollend&&(e=y.getScrollLeft(),t=y.getScrollTop(),y.onscrollend.call(y,{type:"scrollend",current:{x:e,y:t},end:{x:e,y:t}}))};var f=0,p=0,m=0,g=1;function x(e,t,n,i){y.scrollrunning||(y.newscrolly=y.getScrollTop(),y.newscrollx=y.getScrollLeft(),m=H());var o=H()-m;if(m=H(),350<o?g=1:g+=(2-g)/10,t=t*g|0,e=e*g|0){if(i)if(e<0){if(y.getScrollLeft()>=y.page.maxw)return!0}else if(y.getScrollLeft()<=0)return!0;i=0<e?1:-1;p!==i&&(y.scrollmom&&y.scrollmom.stop(),y.newscrollx=y.getScrollLeft(),p=i),y.lastdeltax-=e}if(t){if(function(){var e=y.getScrollTop();if(t<0){if(e>=y.page.maxh)return!0}else if(e<=0)return!0}()){if(b.nativeparentscrolling&&n&&!y.ispage&&!y.zoomactive)return!0;var r=y.view.h>>1;t=y.newscrolly<-r?(y.newscrolly=-r,-1):y.newscrolly>y.page.maxh+r?(y.newscrolly=y.page.maxh+r,1):0}r=0<t?1:-1;f!==r&&(y.scrollmom&&y.scrollmom.stop(),y.newscrolly=y.getScrollTop(),f=r),y.lastdeltay-=t}(t||e)&&y.synched("relativexy",function(){var e=y.lastdeltay+y.newscrolly;y.lastdeltay=0;var t=y.lastdeltax+y.newscrollx;y.lastdeltax=0,y.rail.drag||y.doScrollPos(t,e)})}var S,k=!1;function T(e,t,n){var i,o;if(!n&&k)return!0;0===e.deltaMode?(i=0|-(e.deltaX*(b.mousescrollstep/54)),o=0|-(e.deltaY*(b.mousescrollstep/54))):1===e.deltaMode&&(i=-(e.deltaX*b.mousescrollstep)*50/80|0,o=-(e.deltaY*b.mousescrollstep)*50/80|0),t&&b.oneaxismousemode&&0===i&&o&&(i=o,o=0,n&&(i<0?y.getScrollLeft()>=y.page.maxw:y.getScrollLeft()<=0)&&(o=i,i=0)),x(i=y.isrtlmode?-i:i,o,n,!0)?n&&(k=!0):(k=!1,e.stopImmediatePropagation())}this.onmousewheel=function(e){if(y.wheelprevented||y.locked)return!1;if(y.railslocked)return y.debounced("checkunlock",y.resize,250),!1;if(y.rail.drag)return y.cancelEvent(e);if("auto"===b.oneaxismousemode&&0!==e.deltaX&&(b.oneaxismousemode=!1),b.oneaxismousemode&&0===e.deltaX&&!y.rail.scrollable)return!y.railh||!y.railh.scrollable||y.onmousewheelhr(e);var t=H(),n=!1;if(b.preservenativescrolling&&y.checkarea+600<t&&(y.nativescrollingarea=y.isScrollable(e),n=!0),y.checkarea=t,y.nativescrollingarea)return!0;n=T(e,!1,n);return n&&(y.checkarea=0),n},this.onmousewheelhr=function(e){if(!y.wheelprevented){if(y.railslocked||!y.railh.scrollable)return!0;if(y.rail.drag)return y.cancelEvent(e);var t=H(),n=!1;return b.preservenativescrolling&&y.checkarea+600<t&&(y.nativescrollingarea=y.isScrollable(e),n=!0),y.checkarea=t,!!y.nativescrollingarea||(y.railslocked?y.cancelEvent(e):T(e,!0,n))}},this.stop=function(){return y.cancelScroll(),y.scrollmon&&y.scrollmon.stop(),y.cursorfreezed=!1,y.scroll.y=Math.round(y.getScrollTop()*(1/y.scrollratio.y)),y.noticeCursor(),y},this.getTransitionSpeed=function(e){return 80+e/72*b.scrollspeed|0},b.smoothscroll?y.ishwscroll&&w.hastransition&&b.usetransition&&b.smoothscroll?(S="",this.resetTransition=function(){S="",y.doc.css(w.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(e,t){t=t?e:y.getTransitionSpeed(e),e=t+"ms";return S!==e&&(S=e,y.doc.css(w.prefixstyle+"transition-duration",e)),t},this.doScrollLeft=function(e,t){var n=y.scrollrunning?y.newscrolly:y.getScrollTop();y.doScrollPos(e,n,t)},this.doScrollTop=function(e,t){var n=y.scrollrunning?y.newscrollx:y.getScrollLeft();y.doScrollPos(n,e,t)},this.cursorupdate={running:!1,start:function(){var e,t=this;t.running||(t.running=!0,e=function(){t.running&&B(e),y.showCursor(y.getScrollTop(),y.getScrollLeft()),y.notifyScrollEvent(y.win[0])},B(e))},stop:function(){this.running=!1}},this.doScrollPos=function(e,t,n){var i=y.getScrollTop(),o=y.getScrollLeft();if(((y.newscrolly-i)*(t-i)<0||(y.newscrollx-o)*(e-o)<0)&&y.cancelScroll(),b.bouncescroll?(t<0?t=t/2|0:t>y.page.maxh&&(t=y.page.maxh+(t-y.page.maxh)/2|0),e<0?e=e/2|0:e>y.page.maxw&&(e=y.page.maxw+(e-y.page.maxw)/2|0)):(t<0?t=0:t>y.page.maxh&&(t=y.page.maxh),e<0?e=0:e>y.page.maxw&&(e=y.page.maxw)),y.scrollrunning&&e==y.newscrollx&&t==y.newscrolly)return!1;y.newscrolly=t,y.newscrollx=e;var r=y.getScrollTop(),i=y.getScrollLeft(),o={};o.x=e-i,o.y=t-r;o=0|Math.sqrt(o.x*o.x+o.y*o.y),o=y.prepareTransition(o);y.scrollrunning||(y.scrollrunning=!0,y.triggerScrollStart(i,r,e,t,o),y.cursorupdate.start()),y.scrollendtrapped=!0,w.transitionend||(y.scrollendtrapped&&clearTimeout(y.scrollendtrapped),y.scrollendtrapped=setTimeout(y.onScrollTransitionEnd,o)),y.setScrollTop(y.newscrolly),y.setScrollLeft(y.newscrollx)},this.cancelScroll=function(){if(!y.scrollendtrapped)return!0;var e=y.getScrollTop(),t=y.getScrollLeft();return y.scrollrunning=!1,w.transitionend||clearTimeout(w.transitionend),y.scrollendtrapped=!1,y.resetTransition(),y.setScrollTop(e),y.railh&&y.setScrollLeft(t),y.timerscroll&&y.timerscroll.tm&&clearInterval(y.timerscroll.tm),y.timerscroll=!1,y.cursorfreezed=!1,y.cursorupdate.stop(),y.showCursor(e,t),y},this.onScrollTransitionEnd=function(){if(y.scrollendtrapped){var e=y.getScrollTop(),t=y.getScrollLeft();if(e<0?e=0:e>y.page.maxh&&(e=y.page.maxh),t<0?t=0:t>y.page.maxw&&(t=y.page.maxw),e!=y.newscrolly||t!=y.newscrollx)return y.doScrollPos(t,e,b.snapbackspeed);y.scrollrunning&&y.triggerScrollEnd(),y.scrollrunning=!1,y.scrollendtrapped=!1,y.resetTransition(),y.timerscroll=!1,y.setScrollTop(e),y.railh&&y.setScrollLeft(t),y.cursorupdate.stop(),y.noticeCursor(!1,e,t),y.cursorfreezed=!1}}):(this.doScrollLeft=function(e,t){var n=y.scrollrunning?y.newscrolly:y.getScrollTop();y.doScrollPos(e,n,t)},this.doScrollTop=function(e,t){var n=y.scrollrunning?y.newscrollx:y.getScrollLeft();y.doScrollPos(n,e,t)},this.doScrollPos=function(e,t,n){var i=y.getScrollTop(),o=y.getScrollLeft();((y.newscrolly-i)*(t-i)<0||(y.newscrollx-o)*(e-o)<0)&&y.cancelScroll();var r=!1;if(y.bouncescroll&&y.rail.visibility||(t<0?r=!(t=0):t>y.page.maxh&&(t=y.page.maxh,r=!0)),y.bouncescroll&&y.railh.visibility||(e<0?r=!(e=0):e>y.page.maxw&&(e=y.page.maxw,r=!0)),y.scrollrunning&&y.newscrolly===t&&y.newscrollx===e)return!0;y.newscrolly=t,y.newscrollx=e,y.dst={},y.dst.x=e-o,y.dst.y=t-i,y.dst.px=o,y.dst.py=i;var s=0|Math.sqrt(y.dst.x*y.dst.x+y.dst.y*y.dst.y),s=y.getTransitionSpeed(s);y.bzscroll={};r=r?1:.58;y.bzscroll.x=new l(o,y.newscrollx,s,0,0,r,1),y.bzscroll.y=new l(i,y.newscrolly,s,0,0,r,1);H();var a=function(){var e;y.scrollrunning&&(e=y.bzscroll.y.getPos(),y.setScrollLeft(y.bzscroll.x.getNow()),y.setScrollTop(y.bzscroll.y.getNow()),e<=1?y.timer=B(a):(y.scrollrunning=!1,y.timer=0,y.triggerScrollEnd()))};y.scrollrunning||(y.triggerScrollStart(o,i,e,t,s),y.scrollrunning=!0,y.timer=B(a))},this.cancelScroll=function(){return y.timer&&R(y.timer),y.timer=0,y.bzscroll=!1,y.scrollrunning=!1,y}):(this.doScrollLeft=function(e,t){var n=y.getScrollTop();y.doScrollPos(e,n,t)},this.doScrollTop=function(e,t){var n=y.getScrollLeft();y.doScrollPos(n,e,t)},this.doScrollPos=function(e,t,n){var i=e>y.page.maxw?y.page.maxw:e;i<0&&(i=0);var o=t>y.page.maxh?y.page.maxh:t;o<0&&(o=0),y.synched("scroll",function(){y.setScrollTop(o),y.setScrollLeft(i)})},this.cancelScroll=function(){}),this.doScrollBy=function(e,t){x(0,e)},this.doScrollLeftBy=function(e,t){x(e,0)},this.doScrollTo=function(e,t){t=t?Math.round(e*y.scrollratio.y):e;t<0?t=0:t>y.page.maxh&&(t=y.page.maxh),y.cursorfreezed=!1,y.doScrollTop(e)},this.checkContentSize=function(){var e=y.getContentSize();e.h==y.page.h&&e.w==y.page.w||y.resize(!1,e)},y.onscroll=function(e){y.rail.drag||y.cursorfreezed||y.synched("scroll",function(){y.scroll.y=Math.round(y.getScrollTop()/y.scrollratio.y),y.railh&&(y.scroll.x=Math.round(y.getScrollLeft()/y.scrollratio.x)),y.noticeCursor()})},y.bind(y.docscroll,"scroll",y.onscroll),this.doZoomIn=function(e){if(!y.zoomactive){y.zoomactive=!0,y.zoomrestore={style:{}};var t,n=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],i=y.win[0].style;for(t in n){var o=n[t];y.zoomrestore.style[o]=void 0!==i[o]?i[o]:""}y.zoomrestore.style.width=y.win.css("width"),y.zoomrestore.style.height=y.win.css("height"),y.zoomrestore.padding={w:y.win.outerWidth()-y.win.width(),h:y.win.outerHeight()-y.win.height()},w.isios4&&(y.zoomrestore.scrollTop=P.scrollTop(),P.scrollTop(0)),y.win.css({position:w.isios4?"absolute":"fixed",top:0,left:0,zIndex:O+100,margin:0});var r=y.win.css("backgroundColor");return""!==r&&!/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(r)||y.win.css("backgroundColor","#fff"),y.rail.css({zIndex:O+101}),y.zoom.css({zIndex:O+102}),y.zoom.css("backgroundPosition","0 -18px"),y.resizeZoom(),y.onzoomin&&y.onzoomin.call(y),y.cancelEvent(e)}},this.doZoomOut=function(e){if(y.zoomactive)return y.zoomactive=!1,y.win.css("margin",""),y.win.css(y.zoomrestore.style),w.isios4&&P.scrollTop(y.zoomrestore.scrollTop),y.rail.css({"z-index":y.zindex}),y.zoom.css({"z-index":y.zindex}),y.zoomrestore=!1,y.zoom.css("backgroundPosition","0 0"),y.onResize(),y.onzoomout&&y.onzoomout.call(y),y.cancelEvent(e)},this.doZoom=function(e){return y.zoomactive?y.doZoomOut(e):y.doZoomIn(e)},this.resizeZoom=function(){var e;y.zoomactive&&(e=y.getScrollTop(),y.win.css({width:P.width()-y.zoomrestore.padding.w+"px",height:P.height()-y.zoomrestore.padding.h+"px"}),y.onResize(),y.setScrollTop(Math.min(y.page.maxh,e)))},this.init(),A.nicescroll.push(this)}function N(e){var u=this;this.nc=e,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(e,t){u.stop(),u.steptime=0,u.lasttime=H(),u.speedx=0,u.speedy=0,u.lastx=e,u.lasty=t,u.lastscrollx=-1,u.lastscrolly=-1},this.update=function(e,t){var n=H();u.steptime=n-u.lasttime,u.lasttime=n;var i=t-u.lasty,o=e-u.lastx,r=u.nc.getScrollTop()+i,n=u.nc.getScrollLeft()+o;u.snapx=n<0||n>u.nc.page.maxw,u.snapy=r<0||r>u.nc.page.maxh,u.speedx=o,u.speedy=i,u.lastx=e,u.lasty=t},this.stop=function(){u.nc.unsynched("domomentum2d"),u.timer&&clearTimeout(u.timer),u.timer=0,u.lastscrollx=-1,u.lastscrolly=-1},this.doSnapy=function(e,t){var n=!1;t<0?n=!(t=0):t>u.nc.page.maxh&&(t=u.nc.page.maxh,n=!0),e<0?n=!(e=0):e>u.nc.page.maxw&&(e=u.nc.page.maxw,n=!0),n?u.nc.doScrollPos(e,t,u.nc.opt.snapbackspeed):u.nc.triggerScrollEnd()},this.doMomentum=function(e){var t=H(),n=e?t+e:u.lasttime,i=u.nc.getScrollLeft(),e=u.nc.getScrollTop(),o=u.nc.page.maxh,r=u.nc.page.maxw;u.speedx=0<r?Math.min(60,u.speedx):0,u.speedy=0<o?Math.min(60,u.speedy):0;n=n&&t-n<=60;(e<0||o<e||i<0||r<i)&&(n=!1);var s,a,l,c,i=!(!u.speedy||!n)&&u.speedy,n=!(!u.speedx||!n)&&u.speedx;i||n?(50<(s=Math.max(16,u.steptime))&&(n=s/50,u.speedx*=n,u.speedy*=n,s=50),u.demulxy=0,u.lastscrollx=u.nc.getScrollLeft(),u.chkx=u.lastscrollx,u.lastscrolly=u.nc.getScrollTop(),u.chky=u.lastscrolly,a=u.lastscrollx,l=u.lastscrolly,(c=function(){var e=600<H()-t?.04:.02;u.speedx&&(a=Math.floor(u.lastscrollx-u.speedx*(1-u.demulxy)),((u.lastscrollx=a)<0||r<a)&&(e=.1)),u.speedy&&(l=Math.floor(u.lastscrolly-u.speedy*(1-u.demulxy)),((u.lastscrolly=l)<0||o<l)&&(e=.1)),u.demulxy=Math.min(1,u.demulxy+e),u.nc.synched("domomentum2d",function(){u.speedx&&(u.nc.getScrollLeft(),u.chkx=a,u.nc.setScrollLeft(a)),u.speedy&&(u.nc.getScrollTop(),u.chky=l,u.nc.setScrollTop(l)),u.timer||(u.nc.hideCursor(),u.doSnapy(a,l))}),u.demulxy<1?u.timer=setTimeout(c,s):(u.stop(),u.nc.hideCursor(),u.doSnapy(a,l))})()):u.doSnapy(u.nc.getScrollLeft(),u.nc.getScrollTop())}}var t,D=I.MutationObserver||I.WebKitMutationObserver||!1,H=Date.now||function(){return(new Date).getTime()},W={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:0<(t=(t=M.currentScript||!!(t=M.getElementsByTagName("script")).length&&t[t.length-1])?t.src.split("?")[0]:"").split("/").length?t.split("/").slice(0,-1).join("/")+"/":"",preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},i=!1,o=e.fn.scrollTop;e.cssHooks.pageYOffset={get:function(e,t,n){var i=A.data(e,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollTop():o.call(e)},set:function(e,t){var n=A.data(e,"__nicescroll")||!1;return n&&n.ishwscroll?n.setScrollTop(parseInt(t)):o.call(e,t),this}},e.fn.scrollTop=function(t){if(void 0!==t)return this.each(function(){var e=A.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollTop(parseInt(t)):o.call(A(this),t)});var e=this[0]&&A.data(this[0],"__nicescroll")||!1;return e&&e.ishwscroll?e.getScrollTop():o.call(this)};var a=e.fn.scrollLeft;A.cssHooks.pageXOffset={get:function(e,t,n){var i=A.data(e,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollLeft():a.call(e)},set:function(e,t){var n=A.data(e,"__nicescroll")||!1;return n&&n.ishwscroll?n.setScrollLeft(parseInt(t)):a.call(e,t),this}},e.fn.scrollLeft=function(t){if(void 0!==t)return this.each(function(){var e=A.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollLeft(parseInt(t)):a.call(A(this),t)});var e=this[0]&&A.data(this[0],"__nicescroll")||!1;return e&&e.ishwscroll?e.getScrollLeft():a.call(this)};function n(e){var t=this;if(this.length=0,this.name="nicescrollarray",this.each=function(e){return A.each(t,e),t},this.push=function(e){t[t.length]=e,t.length++},this.eq=function(e){return t[e]},e)for(var n=0;n<e.length;n++){var i=A.data(e[n],"__nicescroll")||!1;i&&(this[this.length]=i,this.length++)}return this}!function(e,t,n){for(var i=0,o=t.length;i<o;i++)n(e,t[i])}(n.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(e,t){e[t]=function(){var e=arguments;return this.each(function(){this[t].apply(this,e)})}}),e.fn.getNiceScroll=function(e){return void 0===e?new n(this):this[e]&&A.data(this[e],"__nicescroll")||!1},(e.expr.pseudos||e.expr[":"]).nicescroll=function(e){return void 0!==A.data(e,"__nicescroll")},A.fn.niceScroll=function(i,o){void 0!==o||"object"!=typeof i||"jquery"in i||(o=i,i=!1);var r=new n;return this.each(function(){var e=A(this),t=A.extend({},o);i&&(n=A(i),t.doc=1<n.length?A(i,e):n,t.win=e),!("doc"in t)||"win"in t||(t.win=e);var n=e.data("__nicescroll")||!1;n||(t.doc=t.doc||e,n=new s(t,e),e.data("__nicescroll",n)),r.push(n)}),1===r.length?r[0]:r},I.NiceScroll={getjQuery:function(){return e}},A.nicescroll||(A.nicescroll=new n,A.nicescroll.options=W)}),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).flexibility=e()}(function(){return function i(o,r,s){function a(n,e){if(!r[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(l)return l(n,!0);t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}t=r[n]={exports:{}};o[n][0].call(t.exports,function(e){var t=o[n][1][e];return a(t||e)},t,t.exports,i,o,r,s)}return r[n].exports}for(var l="function"==typeof require&&require,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,n){t.exports=function(e){var t,n,i,o=-1;if(1<e.lines.length&&"flex-start"===e.style.alignContent)for(t=0;i=e.lines[++o];)i.crossStart=t,t+=i.cross;else if(1<e.lines.length&&"flex-end"===e.style.alignContent)for(t=e.flexStyle.crossSpace;i=e.lines[++o];)i.crossStart=t,t+=i.cross;else if(1<e.lines.length&&"center"===e.style.alignContent)for(t=e.flexStyle.crossSpace/2;i=e.lines[++o];)i.crossStart=t,t+=i.cross;else if(1<e.lines.length&&"space-between"===e.style.alignContent)for(n=e.flexStyle.crossSpace/(e.lines.length-1),t=0;i=e.lines[++o];)i.crossStart=t,t+=i.cross+n;else if(1<e.lines.length&&"space-around"===e.style.alignContent)for(t=(n=2*e.flexStyle.crossSpace/(2*e.lines.length))/2;i=e.lines[++o];)i.crossStart=t,t+=i.cross+n;else for(n=e.flexStyle.crossSpace/e.lines.length,t=e.flexStyle.crossInnerBefore;i=e.lines[++o];)i.crossStart=t,i.cross+=n,t+=i.cross}},{}],2:[function(e,t,n){t.exports=function(e){for(var t,n=-1;line=e.lines[++n];)for(t=-1;child=line.children[++t];){var i=child.style.alignSelf;"flex-start"===(i="auto"===i?e.style.alignItems:i)?child.flexStyle.crossStart=line.crossStart:"flex-end"===i?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===i?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(e,t,n){t.exports=function(e,t){var n="row"===t||"row-reverse"===t,i=e.mainAxis;i?n&&"inline"===i||!n&&"block"===i||(e.flexStyle={main:e.flexStyle.cross,cross:e.flexStyle.main,mainOffset:e.flexStyle.crossOffset,crossOffset:e.flexStyle.mainOffset,mainBefore:e.flexStyle.crossBefore,mainAfter:e.flexStyle.crossAfter,crossBefore:e.flexStyle.mainBefore,crossAfter:e.flexStyle.mainAfter,mainInnerBefore:e.flexStyle.crossInnerBefore,mainInnerAfter:e.flexStyle.crossInnerAfter,crossInnerBefore:e.flexStyle.mainInnerBefore,crossInnerAfter:e.flexStyle.mainInnerAfter,mainBorderBefore:e.flexStyle.crossBorderBefore,mainBorderAfter:e.flexStyle.crossBorderAfter,crossBorderBefore:e.flexStyle.mainBorderBefore,crossBorderAfter:e.flexStyle.mainBorderAfter}):(e.flexStyle=n?{main:e.style.width,cross:e.style.height,mainOffset:e.style.offsetWidth,crossOffset:e.style.offsetHeight,mainBefore:e.style.marginLeft,mainAfter:e.style.marginRight,crossBefore:e.style.marginTop,crossAfter:e.style.marginBottom,mainInnerBefore:e.style.paddingLeft,mainInnerAfter:e.style.paddingRight,crossInnerBefore:e.style.paddingTop,crossInnerAfter:e.style.paddingBottom,mainBorderBefore:e.style.borderLeftWidth,mainBorderAfter:e.style.borderRightWidth,crossBorderBefore:e.style.borderTopWidth,crossBorderAfter:e.style.borderBottomWidth}:{main:e.style.height,cross:e.style.width,mainOffset:e.style.offsetHeight,crossOffset:e.style.offsetWidth,mainBefore:e.style.marginTop,mainAfter:e.style.marginBottom,crossBefore:e.style.marginLeft,crossAfter:e.style.marginRight,mainInnerBefore:e.style.paddingTop,mainInnerAfter:e.style.paddingBottom,crossInnerBefore:e.style.paddingLeft,crossInnerAfter:e.style.paddingRight,mainBorderBefore:e.style.borderTopWidth,mainBorderAfter:e.style.borderBottomWidth,crossBorderBefore:e.style.borderLeftWidth,crossBorderAfter:e.style.borderRightWidth},"content-box"===e.style.boxSizing&&("number"==typeof e.flexStyle.main&&(e.flexStyle.main+=e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),"number"==typeof e.flexStyle.cross&&(e.flexStyle.cross+=e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter))),e.mainAxis=n?"inline":"block",e.crossAxis=n?"block":"inline","number"==typeof e.style.flexBasis&&(e.flexStyle.main=e.style.flexBasis+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter),e.flexStyle.mainOuter=e.flexStyle.main,e.flexStyle.crossOuter=e.flexStyle.cross,"auto"===e.flexStyle.mainOuter&&(e.flexStyle.mainOuter=e.flexStyle.mainOffset),"auto"===e.flexStyle.crossOuter&&(e.flexStyle.crossOuter=e.flexStyle.crossOffset),"number"==typeof e.flexStyle.mainBefore&&(e.flexStyle.mainOuter+=e.flexStyle.mainBefore),"number"==typeof e.flexStyle.mainAfter&&(e.flexStyle.mainOuter+=e.flexStyle.mainAfter),"number"==typeof e.flexStyle.crossBefore&&(e.flexStyle.crossOuter+=e.flexStyle.crossBefore),"number"==typeof e.flexStyle.crossAfter&&(e.flexStyle.crossOuter+=e.flexStyle.crossAfter)}},{}],4:[function(e,t,n){var o=e("../reduce");t.exports=function(n){var i;0<n.mainSpace&&(0<(i=o(n.children,function(e,t){return e+parseFloat(t.style.flexGrow)},0))&&(n.main=o(n.children,function(e,t){return"auto"===t.flexStyle.main?t.flexStyle.main=t.flexStyle.mainOffset+parseFloat(t.style.flexGrow)/i*n.mainSpace:t.flexStyle.main+=parseFloat(t.style.flexGrow)/i*n.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),n.mainSpace=0))}},{"../reduce":12}],5:[function(e,t,n){var o=e("../reduce");t.exports=function(n){var i;n.mainSpace<0&&(0<(i=o(n.children,function(e,t){return e+parseFloat(t.style.flexShrink)},0))&&(n.main=o(n.children,function(e,t){return t.flexStyle.main+=parseFloat(t.style.flexShrink)/i*n.mainSpace,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,e+t.flexStyle.mainOuter},0),n.mainSpace=0))}},{"../reduce":12}],6:[function(e,t,n){var o=e("../reduce");t.exports=function(e){var t;e.lines=[t={main:0,cross:0,children:[]}];for(var n,i=-1;n=e.children[++i];)"nowrap"===e.style.flexWrap||0===t.children.length||"auto"===e.flexStyle.main||e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter>=t.main+n.flexStyle.mainOuter?(t.main+=n.flexStyle.mainOuter,t.cross=Math.max(t.cross,n.flexStyle.crossOuter)):e.lines.push(t={main:n.flexStyle.mainOuter,cross:n.flexStyle.crossOuter,children:[]}),t.children.push(n);e.flexStyle.mainLines=o(e.lines,function(e,t){return Math.max(e,t.main)},0),e.flexStyle.crossLines=o(e.lines,function(e,t){return e+t.cross},0),"auto"===e.flexStyle.main&&(e.flexStyle.main=Math.max(e.flexStyle.mainOffset,e.flexStyle.mainLines+e.flexStyle.mainInnerBefore+e.flexStyle.mainInnerAfter+e.flexStyle.mainBorderBefore+e.flexStyle.mainBorderAfter)),"auto"===e.flexStyle.cross&&(e.flexStyle.cross=Math.max(e.flexStyle.crossOffset,e.flexStyle.crossLines+e.flexStyle.crossInnerBefore+e.flexStyle.crossInnerAfter+e.flexStyle.crossBorderBefore+e.flexStyle.crossBorderAfter)),e.flexStyle.crossSpace=e.flexStyle.cross-e.flexStyle.crossInnerBefore-e.flexStyle.crossInnerAfter-e.flexStyle.crossBorderBefore-e.flexStyle.crossBorderAfter-e.flexStyle.crossLines,e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter,e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}},{"../reduce":12}],7:[function(o,e,t){e.exports=function(e){for(var t,n,i=-1;t=e.children[++i];)o("./flex-direction")(t,e.style.flexDirection);for(o("./flex-direction")(e,e.style.flexDirection),o("./order")(e),o("./flexbox-lines")(e),o("./align-content")(e),i=-1;n=e.lines[++i];)n.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-n.main,o("./flex-grow")(n),o("./flex-shrink")(n),o("./margin-main")(n),o("./margin-cross")(n),o("./justify-content")(n,e.style.justifyContent,e);o("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(e,t,n){t.exports=function(e,t,n){var i,o,r,n=n.flexStyle.mainInnerBefore,s=-1;if("flex-end"===t)for(i=e.mainSpace,i+=n;r=e.children[++s];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter;else if("center"===t)for(i=e.mainSpace/2,i+=n;r=e.children[++s];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter;else if("space-between"===t)for(o=e.mainSpace/(e.children.length-1),i=0,i+=n;r=e.children[++s];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter+o;else if("space-around"===t)for(i=(o=2*e.mainSpace/(2*e.children.length))/2,i+=n;r=e.children[++s];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter+o;else for(i=0,i+=n;r=e.children[++s];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter}},{}],9:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e.children[++n];){var i=0;"auto"===t.flexStyle.crossBefore&&++i,"auto"===t.flexStyle.crossAfter&&++i;var o=e.cross-t.flexStyle.crossOuter;"auto"===t.flexStyle.crossBefore&&(t.flexStyle.crossBefore=o/i),"auto"===t.flexStyle.crossAfter&&(t.flexStyle.crossAfter=o/i),"auto"===t.flexStyle.cross?t.flexStyle.crossOuter=t.flexStyle.crossOffset+t.flexStyle.crossBefore+t.flexStyle.crossAfter:t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}}},{}],10:[function(e,t,n){t.exports=function(e){for(var t,n=0,i=-1;t=e.children[++i];)"auto"===t.flexStyle.mainBefore&&++n,"auto"===t.flexStyle.mainAfter&&++n;if(0<n){for(i=-1;t=e.children[++i];)"auto"===t.flexStyle.mainBefore&&(t.flexStyle.mainBefore=e.mainSpace/n),"auto"===t.flexStyle.mainAfter&&(t.flexStyle.mainAfter=e.mainSpace/n),"auto"===t.flexStyle.main?t.flexStyle.mainOuter=t.flexStyle.mainOffset+t.flexStyle.mainBefore+t.flexStyle.mainAfter:t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter;e.mainSpace=0}}},{}],11:[function(e,t,n){var i=/^(column|row)-reverse$/;t.exports=function(e){e.children.sort(function(e,t){return e.style.order-t.style.order||e.index-t.index}),i.test(e.style.flexDirection)&&e.children.reverse()}},{}],12:[function(e,t,n){t.exports=function(e,t,n){for(var i=e.length,o=-1;++o<i;)o in e&&(n=t(n,e[o],o));return n}},{}],13:[function(e,t,n){var i=e("./read"),o=e("./write"),r=e("./readAll"),s=e("./writeAll");t.exports=function(e){s(r(e))},t.exports.read=i,t.exports.write=o,t.exports.readAll=r,t.exports.writeAll=s},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(e,t,n){t.exports=function(e,t,n){var i=e[t],o=String(i).match(s);if(o)return r=o[1],"px"===(o=o[2])?+r:"cm"===o?.3937*r*96:"in"===o?96*r:"mm"===o?.3937*r*96/10:"pc"===o?12*r*96/72:"pt"===o?96*r/72:"rem"===o?16*r:function(e,t){a.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+e+"!important",t.parentNode.insertBefore(a,t.nextSibling);e=a.offsetWidth;return t.parentNode.removeChild(a),e}(i,n);var r=t.match(c);return r?"none"!==e["border"+r[1]+"Style"]&&l[i]||0:i};var s=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,a=document.createElement("div"),l={medium:4,none:0,thick:6,thin:2},c=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(e,t,n){t.exports=function(e){var t={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(e instanceof Element){var n,i=e.hasAttribute("data-style"),o=i?e.getAttribute("data-style"):e.getAttribute("style")||"";for(n in i||e.setAttribute("data-style",o),function(e,t){for(var n in e)n in t&&!s.test(n)&&(e[n]=t[n])}(t,window.getComputedStyle&&getComputedStyle(e)||{}),function(e,t){for(var n in e){var i;n in t?e[n]=t[n]:(i=n.replace(/[A-Z]/g,"-$&").toLowerCase())in t&&(e[n]=t[i])}"-js-display"in t&&(e.display=t["-js-display"])}(t,e.currentStyle||{}),function(e,t){for(var n;n=r.exec(t);){var i=n[1].toLowerCase().replace(/-[a-z]/g,function(e){return e.slice(1).toUpperCase()});e[i]=n[2]}}(t,o),t)t[n]=a(t,n,e);o=e.getBoundingClientRect();t.offsetHeight=o.height||e.offsetHeight,t.offsetWidth=o.width||e.offsetWidth}return{element:e,style:t}};var r=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,s=/^(alignSelf|height|width)$/,a=e("./getComputedLength")},{"./getComputedLength":14}],16:[function(e,t,n){function u(e){var t=e instanceof Element,n=t&&e.getAttribute("data-style"),e=t&&e.currentStyle&&e.currentStyle["-js-display"];return i.test(n)||o.test(e)}t.exports=function(e){var t=[];return function e(t,n){for(var i,o=u(t),r=[],s=-1;i=t.childNodes[++s];){var a=3===i.nodeType&&!/^\s*$/.test(i.nodeValue);o&&a&&(l=i,(i=t.insertBefore(document.createElement("flex-item"),l)).appendChild(l));var l,a=i instanceof Element;a&&(l=e(i,n),o&&((a=i.style).display="inline-block",a.position="absolute",l.style=d(i).style,r.push(l)))}var c={element:t,children:r};return o&&(c.style=d(t).style,n.push(c)),c}(e,t),t};var d=e("../read"),i=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,o=/^(inline-)?flex$/i},{"../read":15}],17:[function(e,t,n){function a(e){return"string"==typeof e?e:Math.max(e,0)+"px"}t.exports=function(e){l(e);var t=e.element.style,n="inline"===e.mainAxis?["main","cross"]:["cross","main"];t.boxSizing="content-box",t.display="block",t.position="relative",t.width=a(e.flexStyle[n[0]]-e.flexStyle[n[0]+"InnerBefore"]-e.flexStyle[n[0]+"InnerAfter"]-e.flexStyle[n[0]+"BorderBefore"]-e.flexStyle[n[0]+"BorderAfter"]),t.height=a(e.flexStyle[n[1]]-e.flexStyle[n[1]+"InnerBefore"]-e.flexStyle[n[1]+"InnerAfter"]-e.flexStyle[n[1]+"BorderBefore"]-e.flexStyle[n[1]+"BorderAfter"]);for(var i,o=-1;i=e.children[++o];){var r=i.element.style,s="inline"===i.mainAxis?["main","cross"]:["cross","main"];r.boxSizing="content-box",r.display="block",r.position="absolute","auto"!==i.flexStyle[s[0]]&&(r.width=a(i.flexStyle[s[0]]-i.flexStyle[s[0]+"InnerBefore"]-i.flexStyle[s[0]+"InnerAfter"]-i.flexStyle[s[0]+"BorderBefore"]-i.flexStyle[s[0]+"BorderAfter"])),"auto"!==i.flexStyle[s[1]]&&(r.height=a(i.flexStyle[s[1]]-i.flexStyle[s[1]+"InnerBefore"]-i.flexStyle[s[1]+"InnerAfter"]-i.flexStyle[s[1]+"BorderBefore"]-i.flexStyle[s[1]+"BorderAfter"])),r.top=a(i.flexStyle[s[1]+"Start"]),r.left=a(i.flexStyle[s[0]+"Start"]),r.marginTop=a(i.flexStyle[s[1]+"Before"]),r.marginRight=a(i.flexStyle[s[0]+"After"]),r.marginBottom=a(i.flexStyle[s[1]+"After"]),r.marginLeft=a(i.flexStyle[s[0]+"Before"])}};var l=e("../flexbox")},{"../flexbox":7}],18:[function(e,t,n){t.exports=function(e){for(var t,n=-1;t=e[++n];)i(t)};var i=e("../write")},{"../write":17}]},{},[13])(13)});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function b(e,t){for(var n,i,o,r,s,a,l,c,u,d=0,h=e.length,f=t/((h-2)/6),p=2;p<h;p+=6)for(d+=f;.999999<d;)s=e[p-2],a=e[p-1],l=e[p],c=e[p+1],n=e[p+2],i=e[p+3],o=e[p+4],r=e[p+5],u=1/(Math.floor(d)+1),e.splice(p,4,s=s+(l-s)*u,a=a+(c-a)*u,s+=((l=l+(n-l)*u)-s)*u,a+=((c=c+(i-c)*u)-a)*u,s+((l+=(n+(o-n)*u-l)*u)-s)*u,a+((c+=(i+(r-i)*u-c)*u)-a)*u,l,c,n+(o-n)*u,i+(r-i)*u),p+=6,h+=6,d--;return e}function w(e){for(var t,n,i,o,r=e.length,s=e[0][0],a=s,l=e[0][1],c=l;-1<--r;)for(t=(o=e[r]).length,i=6;i<t;i+=6)s<(n=o[i])?s=n:n<a&&(a=n),l<(n=o[i+1])?l=n:n<c&&(c=n);return e.centerX=(s+a)/2,e.centerY=(l+c)/2,e.size=(s-a)*(l-c)}function x(e,t){return t.length-e.length}function S(e,t){var n=e.size||P(e),i=t.size||P(t);return Math.abs(i-n)<(n+i)/20?t.centerX-e.centerX||t.centerY-e.centerY:i-n}function k(e,t){var n,i,o=e.slice(0),r=e.length,s=r-2;for(t|=0,n=0;n<r;n++)i=(n+t)%s,e[n++]=o[i],e[n]=o[1+i]}function u(e,t,n,i){var o=m(e[0]),r=m(e[1]);l(o,r,t||0===t?t:"auto",n)&&(e[0]=a(o),e[1]=a(r),"log"!==i&&!0!==i||E('precompile:["'+e[0]+'","'+e[1]+'"]'))}function n(e){var t=e[0].match(_)||[],n=e[1].match(_)||[],i=n.length-t.length;0<i?e[0]=o(t,i):e[1]=o(n,-i)}function d(t){return isNaN(t)?n:function(e){n(e),e[1]=function(e,t){if(!t)return e;for(var n,i=e.match(_)||[],o=i.length,r="",s="reverse"===t?(n=o-1,-2):(n=(2*(parseInt(t,10)||0)+1+100*o)%o,2),a=0;a<o;a+=2)r+=i[n-1]+","+i[n]+" ",n=(n+s)%o;return r}(e[1],parseInt(t,10))}}function r(e,t){var n,i,o,r,s,a,l,c,u,d,h,f,p,m,g,y,v=e.tagName.toLowerCase(),b=.552284749831;return"path"!==v&&e.getBBox?(r=B(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),"rect"===v?(s=+e.getAttribute("rx")||0,o=+e.getAttribute("ry")||0,n=+e.getAttribute("x")||0,i=+e.getAttribute("y")||0,a=(+e.getAttribute("width")||0)-2*s,l=(+e.getAttribute("height")||0)-2*o,l=s||o?"M"+(f=(d=(u=n+s)+a)+s)+","+(p=i+o)+" V"+(m=p+l)+" C"+[f,g=m+o*b,h=d+s*b,y=m+o,d,y,d-(d-u)/3,y,u+(d-u)/3,y,u,y,c=n+s*(1-b),y,n,g,n,m,n,m-(m-p)/3,n,p+(m-p)/3,n,p,n,m=i+o*(1-b),c,i,u,i,u+(d-u)/3,i,d-(d-u)/3,i,d,i,h,i,f,m,f,p].join(",")+"z":"M"+(n+a)+","+i+" v"+l+" h"+-a+" v"+-l+" h"+a+"z"):"circle"===v||"ellipse"===v?(a="circle"===v?(s=o=+e.getAttribute("r")||0)*b:(s=+e.getAttribute("rx")||0,(o=+e.getAttribute("ry")||0)*b),l="M"+((n=+e.getAttribute("cx")||0)+s)+","+(i=+e.getAttribute("cy")||0)+" C"+[n+s,i+a,n+(b=s*b),i+o,n,i+o,n-b,i+o,n-s,i+a,n-s,i,n-s,i-a,n-b,i-o,n,i-o,n+b,i-o,n+s,i-a,n+s,i].join(",")+"z"):"line"===v?l="M"+(e.getAttribute("x1")||0)+","+(e.getAttribute("y1")||0)+" L"+(e.getAttribute("x2")||0)+","+(e.getAttribute("y2")||0):"polyline"!==v&&"polygon"!==v||(l="M"+(n=(s=(e.getAttribute("points")+"").match(_)||[]).shift())+","+(i=s.shift())+" L"+s.join(","),"polygon"===v&&(l+=","+n+","+i+"z")),r.setAttribute("d",l),t&&e.parentNode&&(e.parentNode.insertBefore(r,e),e.parentNode.removeChild(e)),r):e}function h(e,t,n){var i,o="string"==typeof e;return(!o||s.test(e)||(e.match(_)||[]).length<3)&&((i=o?p.selector(e):e&&e[0]?e:[e])&&i[0]?(o=(i=i[0]).nodeName.toUpperCase(),t&&"PATH"!==o&&(i=r(i,!1),o="PATH"),e=i.getAttribute("PATH"===o?"d":"points")||"",i===n&&(e=i.getAttributeNS(null,"data-original")||e)):(E("WARNING: invalid morph to: "+e),e=!1)),e}var L=Math.PI/180,O=180/Math.PI,T=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,_=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,s=/(^[#\.]|[a-y][a-z])/gi,f=/[achlmqstvz]/gi,C=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,p=_gsScope._gsDefine.globals.TweenLite,E=function(e){_gsScope.console&&console.log(e)},A=function(e,t){var n,i,o,r,s,a,l=Math.ceil(Math.abs(t)/90),c=0,u=[];for(e*=L,n=(t*=L)/l,i=4/3*Math.sin(n/2)/(1+Math.cos(n/2)),a=0;a<l;a++)o=e+a*n,r=Math.cos(o),s=Math.sin(o),u[c++]=r-i*s,u[c++]=s+i*r,o+=n,r=Math.cos(o),s=Math.sin(o),u[c++]=r+i*s,u[c++]=s-i*r,u[c++]=r,u[c++]=s;return u},m=function(e){var t,n,i,o,r,s,a,l,c,u,d,h,f,p=(e+"").replace(C,function(e){e=+e;return e<1e-4&&-1e-4<e?0:e}).match(T)||[],m=[],g=0,y=0,v=p.length,b=2,w=0;if(!e||!isNaN(p[0])||isNaN(p[1]))return E("ERROR: malformed path data: "+e),m;for(t=0;t<v;t++)if(f=r,isNaN(p[t])?s=(r=p[t].toUpperCase())!==p[t]:t--,i=+p[t+1],o=+p[t+2],s&&(i+=g,o+=y),0===t&&(l=i,c=o),"M"===r)a&&a.length<8&&(--m.length,b=0),g=l=i,y=c=o,w+=b,b=2,m.push(a=[i,o]),t+=2,r="L";else if("C"===r)(a=a||[0,0])[b++]=i,a[b++]=o,s||(g=y=0),a[b++]=g+ +p[t+3],a[b++]=y+ +p[t+4],a[b++]=g+=+p[t+5],a[b++]=y+=+p[t+6],t+=6;else if("S"===r)"C"===f||"S"===f?(u=g-a[b-4],d=y-a[b-3],a[b++]=g+u,a[b++]=y+d):(a[b++]=g,a[b++]=y),a[b++]=i,a[b++]=o,s||(g=y=0),a[b++]=g+=+p[t+3],a[b++]=y+=+p[t+4],t+=4;else if("Q"===r)d=o-y,a[b++]=g+2*(u=i-g)/3,a[b++]=y+2*d/3,s||(g=y=0),g+=+p[t+3],d=o-(y+=+p[t+4]),a[b++]=g+2*(u=i-g)/3,a[b++]=y+2*d/3,a[b++]=g,a[b++]=y,t+=4;else if("T"===r)u=g-a[b-4],d=y-a[b-3],a[b++]=g+u,a[b++]=y+d,d=y+1.5*d-o,a[b++]=i+2*(u=g+1.5*u-i)/3,a[b++]=o+2*d/3,a[b++]=g=i,a[b++]=y=o,t+=2;else if("H"===r)o=y,a[b++]=g+(i-g)/3,a[b++]=y+(o-y)/3,a[b++]=g+2*(i-g)/3,a[b++]=y+2*(o-y)/3,a[b++]=g=i,a[b++]=o,t+=1;else if("V"===r)o=i,i=g,s&&(o+=y-g),a[b++]=i,a[b++]=y+(o-y)/3,a[b++]=i,a[b++]=y+2*(o-y)/3,a[b++]=i,a[b++]=y=o,t+=1;else if("L"===r||"Z"===r)"Z"===r&&(i=l,o=c,a.closed=!0),("L"===r||.5<Math.abs(g-i)||.5<Math.abs(y-o))&&(a[b++]=g+(i-g)/3,a[b++]=y+(o-y)/3,a[b++]=g+2*(i-g)/3,a[b++]=y+2*(o-y)/3,a[b++]=i,a[b++]=o,"L"===r&&(t+=2)),g=i,y=o;else if("A"===r){if(h=function(e,t,n,i,o,r,s,a,l){if(e!==a||t!==l){n=Math.abs(n),i=Math.abs(i);var c=o%360*L,u=Math.cos(c),d=Math.sin(c),h=(e-a)/2,f=(t-l)/2,p=u*h+d*f,m=-d*h+u*f,g=n*n,o=i*i,c=p*p,h=m*m,f=c/g+h/o;1<f&&(g=(n=Math.sqrt(f)*n)*n,o=(i=Math.sqrt(f)*i)*i);c=(g*o-g*h-o*c)/(g*h+o*c);c<0&&(c=0);var r=(r===s?-1:1)*Math.sqrt(c),c=n*m/i*r,r=-i*p/n*r,y=u*c-d*r+(e+a)/2,v=d*c+u*r+(t+l)/2,e=(p-c)/n,t=(m-r)/i,p=(-p-c)/n,c=(-m-r)/i,m=Math.sqrt(e*e+t*t),r=(t<0?-1:1)*Math.acos(e/m)*O,m=Math.sqrt((e*e+t*t)*(p*p+c*c)),m=(e*c-t*p<0?-1:1)*Math.acos((e*p+t*c)/m)*O;!s&&0<m?m-=360:s&&m<0&&(m+=360);for(var b,w,x=A(r%=360,m%=360),S=u*n,k=d*n,T=d*-i,_=u*i,C=x.length-2,E=0;E<C;E+=2)b=x[E],w=x[E+1],x[E]=b*S+w*T+y,x[E+1]=b*k+w*_+v;return x[x.length-2]=a,x[x.length-1]=l,x}}(g,y,+p[t+1],+p[t+2],+p[t+3],+p[t+4],+p[t+5],(s?g:0)+ +p[t+6],(s?y:0)+ +p[t+7]))for(n=0;n<h.length;n++)a[b++]=h[n];g=a[b-2],y=a[b-1],t+=7}else E("Error: malformed path data: "+e);return m.totalPoints=w+b,m},a=function(e){for(var t,n,i,o="",r=e.length,s=0;s<r;s++){for(o+="M"+(i=e[s])[0]+","+i[1]+" C",t=i.length,n=2;n<t;n++)o+=(100*i[n++]|0)/100+","+(100*i[n++]|0)/100+" "+(100*i[n++]|0)/100+","+(100*i[n++]|0)/100+" "+(100*i[n++]|0)/100+","+(100*i[n]|0)/100+" ";i.closed&&(o+="z")}return o},M=function(e){for(var t=[],n=e.length-1,i=0;-1<--n;)t[i++]=e[n],t[i++]=e[n+1],n--;for(n=0;n<i;n++)e[n]=t[n];e.reversed=!e.reversed},I=function(e){for(var t=e.length,n=0,i=0,o=0;o<t;o++)n+=e[o++],i+=e[o];return[n/(t/2),i/(t/2)]},P=function(e){for(var t,n=e.length,i=e[0],o=i,r=e[1],s=r,a=6;a<n;a+=6)i<(t=e[a])?i=t:t<o&&(o=t),r<(t=e[a+1])?r=t:t<s&&(s=t);return e.centerX=(i+o)/2,e.centerY=(r+s)/2,e.size=(i-o)*(r-s)},j=function(e,t,n,i,o){var r,s,a,l=e.length,c=0,u=l-2;for(n*=6,r=0;r<l;r+=6)a=e[s=(r+n)%u]-(t[r]-i),s=e[1+s]-(t[r+1]-o),c+=Math.sqrt(s*s+a*a);return c},l=function(e,t,n,i){var o,r,s,a,l,c,u=t.length-e.length,d=0<u?t:e,h=0<u?e:t,f=0,p="complexity"===i?x:S,m="position"===i?0:"number"==typeof i?i:.8,g=h.length,y="object"==typeof n&&n.push?n.slice(0):[n],v="reverse"===y[0]||y[0]<0,i="log"===n;if(h[0]){if(1<d.length&&(e.sort(p),t.sort(p),l=d.size||w(d),l=h.size||w(h),l=d.centerX-h.centerX,c=d.centerY-h.centerY,p===S))for(g=0;g<h.length;g++)d.splice(g,0,function(e,t,n,i,o,r){for(var s,a,l,c=t.length,u=0,d=Math.min(e.size||P(e),t[n].size||P(t[n]))*i,h=999999999999,f=e.centerX+o,p=e.centerY+r,m=n;m<c&&!((t[m].size||P(t[m]))<d);m++)s=t[m].centerX-f,a=t[m].centerY-p,(l=Math.sqrt(s*s+a*a))<h&&(u=m,h=l);return l=t[u],t.splice(u,1),l}(h[g],d,g,m,l,c));if(u)for(u<0&&(u=-u),d[0].length>h[0].length&&b(h[0],(d[0].length-h[0].length)/6|0),g=h.length;f<u;)d[g].size||P(d[g]),s=(a=function(e,t,n){for(var i,o,r,s,a,l=e.length,c=99999999999,u=0,d=0;-1<--l;)for(a=(i=e[l]).length,s=0;s<a;s+=6)o=i[s]-t,r=i[s+1]-n,(r=Math.sqrt(o*o+r*r))<c&&(c=r,u=i[s],d=i[s+1]);return[u,d]}(h,d[g].centerX,d[g].centerY))[0],a=a[1],h[g++]=[s,a,s,a,s,a,s,a],h.totalPoints+=8,f++;for(g=0;g<e.length;g++)o=t[g],r=e[g],(u=o.length-r.length)<0?b(o,-u/6|0):0<u&&b(r,u/6|0),v&&!r.reversed&&M(r),(n=y[g]||0===y[g]?y[g]:"auto")&&(r.closed||Math.abs(r[0]-r[r.length-2])<.5&&Math.abs(r[1]-r[r.length-1])<.5?"auto"===n||"log"===n?(y[g]=n=function(e,t,n){for(var i,o,r=e.length,s=I(e),a=I(t),l=a[0]-s[0],c=a[1]-s[1],u=j(e,t,0,l,c),d=0,h=6;h<r;h+=6)(o=j(e,t,h/6,l,c))<u&&(u=o,d=h);if(n)for(i=e.slice(0),M(i),h=6;h<r;h+=6)(o=j(i,t,h/6,l,c))<u&&(u=o,d=-h);return d/6}(r,o,0===g),n<0&&(v=!0,M(r),n=-n),k(r,6*n)):"reverse"!==n&&(g&&n<0&&M(r),k(r,6*(n<0?-n:n))):!v&&("auto"===n&&Math.abs(o[0]-r[0])+Math.abs(o[1]-r[1])+Math.abs(o[o.length-2]-r[r.length-2])+Math.abs(o[o.length-1]-r[r.length-1])>Math.abs(o[0]-r[r.length-2])+Math.abs(o[1]-r[r.length-1])+Math.abs(o[o.length-2]-r[0])+Math.abs(o[o.length-1]-r[1])||n%2)?(M(r),y[g]=-1,v=!0):"auto"===n?y[g]=0:"reverse"===n&&(y[g]=-1),r.closed!==o.closed&&(r.closed=o.closed=!1));return i&&E("shapeIndex:["+y.join(",")+"]"),y}},o=function(e,t){for(var n,i,o,r,s=0,a=parseFloat(e[0]),l=parseFloat(e[1]),c=a+","+l+" ",u=e.length,d=.5*t/(.5*u-1),h=0;h<u-2;h+=2){if(s+=d,o=parseFloat(e[h+2]),r=parseFloat(e[h+3]),.999999<s)for(i=1/(Math.floor(s)+1),n=1;.999999<s;)c+=(a+(o-a)*i*n).toFixed(2)+","+(l+(r-l)*i*n).toFixed(2)+" ",s--,n++;c+=o+","+r+" ",a=o,l=r}return c},B=function(e,t){var n,i=_gsScope.document.createElementNS("http://www.w3.org/2000/svg","path"),o=Array.prototype.slice.call(e.attributes),r=o.length;for(t=","+t+",";-1<--r;)n=o[r].nodeName.toLowerCase(),-1===t.indexOf(","+n+",")&&i.setAttributeNS(null,n,o[r].nodeValue);return i},g="Use MorphSVGPlugin.convertToPath(elementOrSelectorText) to convert to a path before morphing.",y=_gsScope._gsDefine.plugin({propName:"morphSVG",API:2,global:!0,version:"0.8.10",init:function(e,t,n,i){var o,r,s,a,l,c;return"function"==typeof e.setAttribute&&("function"==typeof t&&(t=t(i,e)),s="POLYLINE"===(o=e.nodeName.toUpperCase())||"POLYGON"===o,"PATH"===o||s?(("string"==typeof t||t.getBBox||t[0])&&(t={shape:t}),i=h(t.shape||t.d||t.points||"","d"==(r="PATH"===o?"d":"points"),e),s&&f.test(i)?(E("WARNING: a <"+o+"> cannot accept path data. "+g),!1):(i&&((this._target=e).getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",e.getAttribute(r)),(e=this._addTween(e,"setAttribute",e.getAttribute(r)+"",i+"","morphSVG",!1,r,"object"==typeof t.precompile?function(e){e[0]=t.precompile[0],e[1]=t.precompile[1]}:"d"==r?(a=t.shapeIndex,l=t.map||y.defaultMap,c=t.precompile,l||c||a||0===a?function(e){u(e,a,l,c)}:u):d(t.shapeIndex)))&&(this._overwriteProps.push("morphSVG"),e.end=i,e.endProp=r)),!0)):(E("WARNING: cannot morph a <"+o+"> SVG element. "+g),!1))},set:function(e){var t;if(this._super.setRatio.call(this,e),1===e)for(t=this._firstPT;t;)t.end&&this._target.setAttribute(t.endProp,t.end),t=t._next}});y.pathFilter=u,y.pointsFilter=n,y.subdivideRawBezier=b,y.defaultMap="size",y.pathDataToRawBezier=function(e){return m(h(e,!0))},y.equalizeSegmentQuantity=l,y.convertToPath=function(e,t){for(var n=(e="string"==typeof e?p.selector(e):e)&&0!==e.length?e.length&&e[0]&&e[0].nodeType?Array.prototype.slice.call(e,0):[e]:[],i=n.length;-1<--i;)n[i]=r(n[i],!1!==t);return n},y.pathDataToBezier=function(e,t){var n,i,o,r=m(h(e,!0))[0]||[],s=0,e=(t=t||{}).align||t.relative,a=t.matrix||[1,0,0,1,0,0],l=t.offsetX||0,c=t.offsetY||0;if("relative"===e||!0===e?(l-=r[0]*a[0]+r[1]*a[2],c-=r[0]*a[1]+r[1]*a[3],s="+="):(l+=a[4],c+=a[5],e&&((e="string"==typeof e?p.selector(e):e&&e[0]?e:[e])&&e[0]&&(l-=(e=e[0].getBBox()||{x:0,y:0}).x,c-=e.y))),n=[],o=r.length,a&&"1,0,0,1,0,0"!==a.join(","))for(i=0;i<o;i+=2)n.push({x:s+(r[i]*a[0]+r[i+1]*a[2]+l),y:s+(r[i]*a[1]+r[i+1]*a[3]+c)});else for(i=0;i<o;i+=2)n.push({x:s+(r[i]+l),y:s+(r[i+1]+c)});return n}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";function e(){return(_gsScope.GreenSockGlobals||_gsScope).MorphSVGPlugin}"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}(),window.NodeCursor=function(n){var i,o,e=this,t=this;(n=n||{}).hasOwnProperty("cursor")&&n.cursor,n.hasOwnProperty("node")&&n.node,n.hasOwnProperty("cursor_velocity")&&n.cursor_velocity,n.hasOwnProperty("node_velocity")&&n.node_velocity,n.hasOwnProperty("native_cursor")&&n.native_cursor,n.hasOwnProperty("element_to_hover")&&n.element_to_hover,n.hasOwnProperty("cursor_class_hover")&&n.cursor_class_hover,n.hasOwnProperty("node_class_hover")&&n.node_class_hover,n.hasOwnProperty("hide_mode")&&n.hide_mode,n.hasOwnProperty("hide_timing")&&n.hide_timing,n.hasOwnProperty("element_to_menu")&&n.element_to_menu,n.hasOwnProperty("node_class_menu")&&n.node_class_menu,n.hasOwnProperty("cursor_class_menu")&&n.cursor_class_menu,n.hasOwnProperty("element_to_projet")&&n.element_to_projet,n.hasOwnProperty("node_class_projet")&&n.node_class_projet,n.hasOwnProperty("cursor_class_projet")&&n.cursor_class_projet,n.hasOwnProperty("element_to_produit")&&n.element_to_produit,n.hasOwnProperty("node_class_produit")&&n.node_class_produit,n.hasOwnProperty("cursor_class_produit")&&n.cursor_class_produit,n.hasOwnProperty("element_to_filtre")&&n.element_to_filtre,n.hasOwnProperty("node_class_filtre")&&n.node_class_filtre,n.hasOwnProperty("cursor_class_filtre")&&n.cursor_class_filtre,n.hasOwnProperty("element_to_drag")&&n.element_to_drag,n.hasOwnProperty("node_class_drag")&&n.node_class_drag,n.hasOwnProperty("cursor_class_drag")&&n.cursor_class_drag,n.hasOwnProperty("element_to_hide")&&n.element_to_hide,n.hasOwnProperty("node_class_hide")&&n.node_class_hide,n.hasOwnProperty("cursor_class_hide")&&n.cursor_class_hide,n.hasOwnProperty("element_to_black")&&n.element_to_black,n.hasOwnProperty("node_class_black")&&n.node_class_black,n.hasOwnProperty("cursor_class_black")&&n.cursor_class_black;var r,s,a;!0===n.cursor&&(i=document.querySelector("#cursor")),!0===n.node&&(o=document.querySelector("#node")),i.classList.remove("moving",n.cursor_class_hover,n.node_class_projet,n.cursor_class_projet),o.classList.remove("moving",n.node_class_hover,n.node_class_menu,n.node_class_projet),document.body.style.cursor=n.native_cursor,this.initCursor=function(){document.addEventListener("mousemove",function(e){!0===cursor.activ&&(r=e.clientX,s=e.clientY,!0===n.hide_mode&&(clearTimeout(a),a=setTimeout(t.mouseStopped,n.hide_timing)))})},this.mouseStopped=function(){0},this.destroy=function(){e.remove,$(window).off("mousemove"),i.classList.remove("moving",n.cursor_class_hover,n.node_class_projet,n.cursor_class_projet),o.classList.remove("moving",n.node_class_hover,n.node_class_menu,n.node_class_projet)},this.render=function(){TweenMax.set(i,{x:Math.floor(501*Math.random())+500,y:500}),$(window).on("mousemove",function(){var e,t;!0===n.cursor&&i.classList.add("moving"),!0===n.node&&o.classList.add("moving"),!0===n.cursor&&(e=i.offsetWidth/2,t=i.offsetHeight/2,TweenMax.to(i,n.cursor_velocity,{x:r-e,y:s-t,ease:Power1.easeOut,onComplete:function(){}}),e=o.offsetWidth/2,t=o.offsetHeight/2,TweenMax.to(o,n.node_velocity,{x:r-e,y:s-t,ease:Power1.easeOut}))}),"disable"!==n.element_to_hover&&(nodes=document.querySelectorAll(n.element_to_hover),"disable"!==n.node_class_hover&&nodes.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.remove("moving"),!0===n.cursor&&i.classList.add(n.cursor_class_hover),!0===n.node&&o.classList.add(n.node_class_hover)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_hover),!0===n.node&&o.classList.remove(n.node_class_hover)})})),"disable"!==n.element_to_menu&&(nodes_menu=document.querySelectorAll(n.element_to_menu),"disable"!==n.node_class_menu&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_menu),!0===n.node&&o.classList.add(n.node_class_menu)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_menu),!0===n.node&&o.classList.remove(n.node_class_menu)})})),"disable"!==n.element_to_hide&&(nodes_menu=document.querySelectorAll(n.element_to_hide),"disable"!==n.node_class_hide&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_hide),!0===n.node&&o.classList.add(n.node_class_hide)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_hide),!0===n.node&&o.classList.remove(n.node_class_hide)})})),"disable"!==n.element_to_filtre&&(nodes_menu=document.querySelectorAll(n.element_to_filtre),"disable"!==n.node_class_filtre&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_filtre),!0===n.node&&o.classList.add(n.node_class_filtre)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_filtre),!0===n.node&&o.classList.remove(n.node_class_filtre)})})),"disable"!==n.element_to_projet&&(nodes_menu=document.querySelectorAll(n.element_to_projet),"disable"!==n.node_class_projet&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_projet),!0===n.node&&o.classList.add(n.node_class_projet)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_projet),!0===n.node&&o.classList.remove(n.node_class_projet)})})),"disable"!==n.element_to_drag&&(nodes_menu=document.querySelectorAll(n.element_to_drag),"disable"!==n.node_class_drag&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_drag),!0===n.node&&o.classList.add(n.node_class_drag)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_drag),!0===n.node&&o.classList.remove(n.node_class_drag)})})),"disable"!==n.element_to_produit&&(nodes_menu=document.querySelectorAll(n.element_to_produit),"disable"!==n.node_class_produit&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_produit),!0===n.node&&o.classList.add(n.node_class_produit)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_produit),!0===n.node&&o.classList.remove(n.node_class_produit)})})),"disable"!==n.element_to_black&&(nodes_menu=document.querySelectorAll(n.element_to_black),"disable"!==n.node_class_black&&nodes_menu.forEach(function(e,t){e.addEventListener("mouseover",function(){!0===n.cursor&&i.classList.add(n.cursor_class_black),!0===n.node&&o.classList.add(n.node_class_black)}),e.addEventListener("mouseleave",function(){!0===n.cursor&&i.classList.remove(n.cursor_class_black),!0===n.node&&o.classList.remove(n.node_class_black)})}))},requestAnimationFrame(t.render),this.init=function(){t.initCursor()},this.init(),window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame},function(e,t){"use strict";"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.luxy=t()}(this,function(){"use strict";var t={wrapper:"#luxy",targets:".luxy-el",wrapperSpeed:.08,targetSpeed:.02,targetPercentage:.1},n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;window.requestAnimationFrame=n;function i(){for(var n={},e=0,t=arguments.length;e<t;e++)!function(e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])}(arguments[e]);return n}function e(){this.Targets=[],this.TargetsLength=0,this.wrapper="",this.windowHeight=0,this.wapperOffset=0}var o=window.cancelAnimationFrame||window.mozCancelAnimationFrame;return e.prototype={isAnimate:!1,isResize:!1,scrollId:"",resizeId:"",init:function(e){if(this.settings=i(t,e||{}),this.wrapper=document.querySelector(this.settings.wrapper),"undefined"===this.wrapper)return!1;this.targets=document.querySelectorAll(this.settings.targets),document.body.style.height=this.wrapper.clientHeight+"px",this.windowHeight=window.clientHeight,this.attachEvent(),this.apply(this.targets,this.wrapper),this.animate(),this.resize()},remove:function(e,t){this.wrapper="",this.wapperOffset=0,window.cancelAnimationFrame(this.scrollId)},apply:function(e,t){this.wrapperInit(),this.targetsLength=e.length;for(var n=0;n<this.targetsLength;n++){var i={offset:e[n].getAttribute("data-offset"),speedX:e[n].getAttribute("data-speed-x"),speedY:e[n].getAttribute("data-speed-Y"),percentage:e[n].getAttribute("data-percentage"),horizontal:e[n].getAttribute("data-horizontal")};this.targetsInit(e[n],i)}},wrapperInit:function(){this.wrapper.style.width="100%",this.wrapper.style.position="fixed"},targetsInit:function(e,t){this.Targets.push({elm:e,offset:t.offset||0,horizontal:t.horizontal||0,top:0,left:0,speedX:t.speedX||1,speedY:t.speedY||1,percentage:t.percentage||0})},scroll:function(){document.documentElement.scrollTop||document.body.scrollTop;this.scrollTop=document.documentElement.scrollTop||document.body.scrollTop;this.scrollTop,this.windowHeight;this.wrapperUpdate(this.scrollTop);for(var e=0;e<this.Targets.length;e++)this.targetsUpdate(this.Targets[e])},animate:function(){this.scroll(),this.scrollId=n(this.animate.bind(this))},wrapperUpdate:function(){this.wapperOffset+=(this.scrollTop-this.wapperOffset)*this.settings.wrapperSpeed,""!=this.wrapper&&(this.wrapper.style.transform="translate3d(0,"+Math.round(100*-this.wapperOffset)/100+"px ,0)")},targetsUpdate:function(e){e.top+=(this.scrollTop*Number(this.settings.targetSpeed)*Number(e.speedY)-e.top)*this.settings.targetPercentage,e.left+=(this.scrollTop*Number(this.settings.targetSpeed)*Number(e.speedX)-e.left)*this.settings.targetPercentage;var t=parseInt(e.percentage)-e.top-parseInt(e.offset),n=Math.round(-100*t)/100,i=0;e.horizontal&&(t=parseInt(e.percentage)-e.left-parseInt(e.offset),i=Math.round(-100*t)/100),e.elm.style.transform="translate3d("+i+"px ,"+n+"px ,0)"},resize:function(){this.windowHeight=window.innerHeight||document.documentElement.clientHeight||0,parseInt(this.wrapper.clientHeight)!=parseInt(document.body.style.height)&&(document.body.style.height=this.wrapper.clientHeight+"px"),this.resizeId=n(this.resize.bind(this))},attachEvent:function(){var e=this;window.addEventListener("resize",function(){e.isResize||(o(e.resizeId),o(e.scrollId),e.isResize=!0,setTimeout(function(){e.isResize=!1,e.resizeId=n(e.resize.bind(e)),e.scrollId=n(e.animate.bind(e))},200))})},detachevent:function(){window.removeEventListener("resize",function(){})}},new e}),function(t,n){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("jquery")):t.jQueryBridget=n(t,t.jQuery)}(window,function(e,t){"use strict";var n=Array.prototype.slice,i=e.console,d=void 0===i?function(){}:function(e){i.error(e)};function o(l,c,u){(u=u||t||e.jQuery)&&(c.prototype.option||(c.prototype.option=function(e){u.isPlainObject(e)&&(this.options=u.extend(!0,this.options,e))}),u.fn[l]=function(e){if("string"!=typeof e)return a=e,this.each(function(e,t){var n=u.data(t,l);n?(n.option(a),n._init()):(n=new c(t,a),u.data(t,l,n))}),this;var i,o,r,s,a,t=n.call(arguments,1);return o=t,s="$()."+l+'("'+(i=e)+'")',(e=this).each(function(e,t){var n=u.data(t,l);n?(t=n[i])&&"_"!=i.charAt(0)?(n=t.apply(n,o),r=void 0===r?n:r):d(s+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e},r(u))}function r(e){e&&!e.bridget&&(e.bridget=o)}return r(t||e.jQuery),o}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},e=n[e]=n[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var i=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(e,r),delete i[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function f(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},p=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],m=p.length;function g(e){e=getComputedStyle(e);return e||t("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var y,v=!1;function b(e){if(v||(v=!0,(h=document.createElement("div")).style.width="200px",h.style.padding="1px 2px 3px 4px",h.style.borderStyle="solid",h.style.borderWidth="1px 2px 3px 4px",h.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(h),u=g(h),y=200==Math.round(f(u.width)),b.isBoxSizeOuter=y,d.removeChild(h)),(e="string"==typeof e?document.querySelector(e):e)&&"object"==typeof e&&e.nodeType){var t=g(e);if("none"==t.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<m;t++)e[p[t]]=0;return e}();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox="border-box"==t.boxSizing,o=0;o<m;o++){var r=p[o],s=t[r],s=parseFloat(s);n[r]=isNaN(s)?0:s}var a=n.paddingLeft+n.paddingRight,l=n.paddingTop+n.paddingBottom,c=n.marginLeft+n.marginRight,u=n.marginTop+n.marginBottom,d=n.borderLeftWidth+n.borderRightWidth,h=n.borderTopWidth+n.borderBottomWidth,e=i&&y,i=f(t.width);!1!==i&&(n.width=i+(e?0:a+d));i=f(t.height);return!1!==i&&(n.height=i+(e?0:l+h)),n.innerWidth=n.width-(a+d),n.innerHeight=n.height-(l+h),n.outerWidth=n.width+c,n.outerHeight=n.height+u,n}}return b}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var n=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var i=t[n]+"MatchesSelector";if(e[i])return i}}();return function(e,t){return e[n](t)}}),function(t,n){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("desandro-matches-selector")):t.fizzyUIUtils=n(t,t.matchesSelector)}(window,function(n,r){var l={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},t=Array.prototype.slice;l.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?t.call(e):[e]},l.removeFrom=function(e,t){t=e.indexOf(t);-1!=t&&e.splice(t,1)},l.getParent=function(e,t){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,r(e,t))return e},l.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.filterFindElements=function(e,i){e=l.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement)if(i){r(e,i)&&o.push(e);for(var t=e.querySelectorAll(i),n=0;n<t.length;n++)o.push(t[n])}else o.push(e)}),o},l.debounceMethod=function(e,t,i){i=i||100;var o=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];clearTimeout(e);var t=arguments,n=this;this[r]=setTimeout(function(){o.apply(n,t),delete n[r]},i)}},l.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},l.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()};var c=n.console;return l.htmlInit=function(s,a){l.docReady(function(){var e=l.toDashed(a),i="data-"+e,t=document.querySelectorAll("["+i+"]"),e=document.querySelectorAll(".js-"+e),e=l.makeArray(t).concat(l.makeArray(e)),o=i+"-options",r=n.jQuery;e.forEach(function(t){var e=t.getAttribute(i)||t.getAttribute(o);try{n=e&&JSON.parse(e)}catch(e){return void(c&&c.error("Error parsing "+i+" on "+t.className+": "+e))}var n=new s(t,n);r&&r.data(t,a,n)})})},l}),function(e,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getSize))}(window,function(e,t){"use strict";var n=document.documentElement.style,i="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[i],s={transform:o,transition:i,transitionDuration:i+"Duration",transitionProperty:i+"Property",transitionDelay:i+"Delay"};function a(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}e=a.prototype=Object.create(e.prototype);e.constructor=a,e._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},e.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},e.getSize=function(){this.size=t(this.element)},e.css=function(e){var t,n=this.element.style;for(t in e)n[s[t]||t]=e[t]},e.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=e[t?"left":"right"],o=e[n?"top":"bottom"],r=parseFloat(i),s=parseFloat(o),e=this.layout.size;-1!=i.indexOf("%")&&(r=r/100*e.width),-1!=o.indexOf("%")&&(s=s/100*e.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=t?e.paddingLeft:e.paddingRight,s-=n?e.paddingTop:e.paddingBottom,this.position.x=r,this.position.y=s},e.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"right":"left",r=this.position.x+e[n?"paddingLeft":"paddingRight"];t[n?"left":"right"]=this.getXValue(r),t[o]="";o=i?"bottom":"top",e=this.position.y+e[i?"paddingTop":"paddingBottom"];t[i?"top":"bottom"]=this.getYValue(e),t[o]="",this.css(t),this.emitEvent("layout",[this])},e.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},e.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},e._transitionTo=function(e,t){this.getPosition();var n=this.position.x,i=this.position.y,o=e==this.position.x&&t==this.position.y;this.setPosition(e,t),!o||this.isTransitioning?((o={}).transform=this.getTranslate(e-n,t-i),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},e.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},e.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},e.moveTo=e._transitionTo,e.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},e._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},e.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t,n=this._transn;for(t in e.onTransitionEnd)n.onEnd[t]=e.onTransitionEnd[t];for(t in e.to)n.ingProperties[t]=!0,e.isCleaning&&(n.clean[t]=!0);e.from&&(this.css(e.from),this.element.offsetHeight,0),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var l="opacity,"+o.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()});e.enableTransition=function(){var e;this.isTransitioning||(e="number"==typeof(e=this.layout.options.transitionDuration)?e+"ms":e,this.css({transitionProperty:l,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1))},e.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},e.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};e.ontransitionend=function(e){var t,n;e.target===this.element&&(t=this._transn,n=c[e.propertyName]||e.propertyName,delete t.ingProperties[n],function(e){for(var t in e)return;return 1}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this]))},e.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},e._removeStyles=function(e){var t,n={};for(t in e)n[t]="";this.css(n)};var u={transitionProperty:"",transitionDuration:"",transitionDelay:""};return e.removeTransitionStyles=function(){this.css(u)},e.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},e.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},e.remove=function(){i&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},e.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},e.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},e.getHideRevealTransitionEndProperty=function(e){var t,e=this.layout.options[e];if(e.opacity)return"opacity";for(t in e)return t},e.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},e.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},e.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(o,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(e,t,n,i){return r(o,e,t,n,i)}):"object"==typeof module&&module.exports?module.exports=r(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=r(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(e,t,o,i,r){"use strict";function n(){}var s=e.console,a=e.jQuery,l=0,c={};function u(e,t){var n=i.getQueryElement(e);n?(this.element=n,a&&(this.$element=a(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(t),t=++l,this.element.outlayerGUID=t,(c[t]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(n||e))}u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=u.prototype;function h(e){function t(){e.apply(this,arguments)}return(t.prototype=Object.create(e.prototype)).constructor=t}i.extend(d,t.prototype),d.option=function(e){i.extend(this.options,e)},d._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,i=[],o=0;o<t.length;o++){var r=new n(t[o],this);i.push(r)}return i},d._filterFindItemElements=function(e){return i.filterFindElements(e,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(e){return e.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),e=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(e,t){var n,i=this.options[e];i?("string"==typeof i?n=this.element.querySelector(i):i instanceof HTMLElement&&(n=i),this[e]=n?o(n)[t]:i):this[e]=0},d.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},d._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},d._layoutItems=function(e,n){var i;this._emitCompleteOnItems("layout",e),e&&e.length&&(i=[],e.forEach(function(e){var t=this._getItemLayoutPosition(e);t.item=e,t.isInstant=n||e.isLayoutInstant,i.push(t)},this),this._processLayoutQueue(i))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},d.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=f[t]||1;return e*t}(e),this.stagger;this.stagger=0},d._positionItem=function(e,t,n,i,o){i?e.goTo(t,n):(e.stagger(o*this.stagger),e.moveTo(t,n))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var e;!this._getOption("resizeContainer")||(e=this._getContainerSize())&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))},d._getContainerSize=n,d._setContainerMeasure=function(e,t){var n;void 0!==e&&((n=this.size).isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px")},d._emitCompleteOnItems=function(t,e){var n=this;function i(){n.dispatchEvent(t+"Complete",null,[e])}var o,r=e.length;function s(){++o==r&&i()}e&&r?(o=0,e.forEach(function(e){e.once(t,s)})):i()},d.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;this.emitEvent(e,i),a&&(this.$element=this.$element||a(this.element),t?((t=a.Event(t)).type=e,this.$element.trigger(t,n)):this.$element.trigger(e,n))},d.ignore=function(e){e=this.getItem(e);e&&(e.isIgnored=!0)},d.unignore=function(e){e=this.getItem(e);e&&delete e.isIgnored},d.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},d.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){i.removeFrom(this.stamps,e),this.unignore(e)},this)},d._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=i.makeArray(e)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},d._manageStamp=n,d._getElementOffset=function(e){var t=e.getBoundingClientRect(),n=this._boundingRect,e=o(e);return{left:t.left-n.left-e.marginLeft,top:t.top-n.top-e.marginTop,right:n.right-t.right-e.marginRight,bottom:n.bottom-t.bottom-e.marginBottom}},d.handleEvent=i.handleEvent,d.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},i.debounceMethod(u,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var e=o(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},d.addItems=function(e){e=this._itemize(e);return e.length&&(this.items=this.items.concat(e)),e},d.appended=function(e){e=this.addItems(e);e.length&&(this.layoutItems(e,!0),this.reveal(e))},d.prepended=function(e){var t=this._itemize(e);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.reveal=function(e){var n;this._emitCompleteOnItems("reveal",e),e&&e.length&&(n=this.updateStagger(),e.forEach(function(e,t){e.stagger(t*n),e.reveal()}))},d.hide=function(e){var n;this._emitCompleteOnItems("hide",e),e&&e.length&&(n=this.updateStagger(),e.forEach(function(e,t){e.stagger(t*n),e.hide()}))},d.revealItemElements=function(e){e=this.getItems(e);this.reveal(e)},d.hideItemElements=function(e){e=this.getItems(e);this.hide(e)},d.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},d.getItems=function(e){e=i.makeArray(e);var t=[];return e.forEach(function(e){e=this.getItem(e);e&&t.push(e)},this),t},d.remove=function(e){e=this.getItems(e);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(e){e.remove(),i.removeFrom(this.items,e)},this)},d.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(e){e=(e=i.getQueryElement(e))&&e.outlayerGUID;return e&&c[e]},u.create=function(e,t){var n=h(u);return n.defaults=i.extend({},u.defaults),i.extend(n.defaults,t),n.compatOptions=i.extend({},u.compatOptions),n.namespace=e,n.data=u.data,n.Item=h(r),i.htmlInit(n,e),a&&a.bridget&&a.bridget(e,n),n};var f={ms:1,s:1e3};return u.Item=r,u}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.Item=t(e.Outlayer))}(window,function(e){"use strict";function t(){e.Item.apply(this,arguments)}var n=t.prototype=Object.create(e.Item.prototype),i=n._create;n._create=function(){this.id=this.layout.itemGUID++,i.call(this),this.sortData={}},n.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var e,t=this.layout.options.getSortData,n=this.layout._sorters;for(e in t){var i=n[e];this.sortData[e]=i(this.element,this)}}};var o=n.destroy;return n.destroy=function(){o.apply(this,arguments),this.css({display:""})},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.LayoutMode=t(e.getSize,e.Outlayer))}(window,function(t,n){"use strict";function i(e){(this.isotope=e)&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var o=i.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(e){o[e]=function(){return n.prototype[e].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element);return this.isotope.size&&e&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(e,t){var n=e+t,i="outer"+t;this._getMeasurement(n,i),this[n]||(e=this.getFirstItemSize(),this[n]=e&&e[i]||this.isotope.size["inner"+t])},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(e,t){function n(){i.apply(this,arguments)}return(n.prototype=Object.create(o)).constructor=n,t&&(n.options=t),i.modes[n.prototype.namespace=e]=n},i}),function(e,t){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):e.Masonry=t(e.Outlayer,e.getSize)}(window,function(e,a){var t=e.create("masonry");t.compatOptions.fitWidth="isFitWidth";e=t.prototype;return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(n=(t=this.items[0])&&t.element,this.columnWidth=n&&a(n).outerWidth||this.containerWidth);var e=this.columnWidth+=this.gutter,t=this.containerWidth+this.gutter,n=t/e,e=e-t%e,n=Math[e&&e<1?"round":"floor"](n);this.cols=Math.max(n,1)},e.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,e=a(e);this.containerWidth=e&&e.innerWidth},e._getItemLayoutPosition=function(e){e.getSize();for(var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth),n=Math.min(n,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),t={x:this.columnWidth*i.col,y:i.y},o=i.y+e.size.outerHeight,r=n+i.col,s=i.col;s<r;s++)this.colYs[s]=o;return t},e._getTopColPosition=function(e){var t=this._getTopColGroup(e),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,i=0;i<n;i++)t[i]=this._getColGroupY(i,e);return t},e._getColGroupY=function(e,t){if(t<2)return this.colYs[e];t=this.colYs.slice(e,e+t);return Math.max.apply(Math,t)},e._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols,n=1<e&&n+e>this.cols?0:n,t=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=t?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},e._manageStamp=function(e){var t=a(e),n=this._getElementOffset(e),i=this._getOption("originLeft")?n.left:n.right,e=i+t.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(e/this.columnWidth);o-=e%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?n.top:n.bottom)+t.outerHeight,s=i;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},e._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,function(e,t){"use strict";var n,e=e.create("masonry"),i=e.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(n in t.prototype)o[n]||(i[n]=t.prototype[n]);var r=i.measureColumns;i.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var s=i._getOption;return i._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},e}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,n=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>n&&(this.x=0,this.y=this.maxY);n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,n},e._getContainerSize=function(){return{height:this.maxY}},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,n=this.y;return this.y+=e.size.outerHeight,{x:t,y:n}},e._getContainerSize=function(){return{height:this.y}},t}),function(s,a){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(e,t,n,i,o,r){return a(s,e,t,n,i,o,r)}):"object"==typeof module&&module.exports?module.exports=a(s,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):s.Isotope=a(s,s.Outlayer,s.getSize,s.matchesSelector,s.fizzyUIUtils,s.Isotope.Item,s.Isotope.LayoutMode)}(window,function(e,n,t,i,r,o,s){var a=e.jQuery,l=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},c=n.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=o,c.LayoutMode=s;o=c.prototype;o._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),n.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(e)},o.reloadItems=function(){this.itemGUID=0,n.prototype.reloadItems.call(this)},o._itemize=function(){for(var e=n.prototype._itemize.apply(this,arguments),t=0;t<e.length;t++)e[t].id=this.itemGUID++;return this._updateItemsSortData(e),e},o._initLayoutMode=function(e){var t=s.modes[e],n=this.options[e]||{};this.options[e]=t.options?r.extend(t.options,n):n,this.modes[e]=new t(this)},o.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},o._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},o.arrange=function(e){this.option(e),this._getIsInstant();e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},o._getIsInstant=function(){var e=this._getOption("layoutInstant"),e=void 0!==e?e:!this._isLayoutInited;return this._isInstant=e},o._bindArrangeComplete=function(){var e,t,n,i=this;function o(){e&&t&&n&&i.dispatchEvent("arrangeComplete",null,[i.filteredItems])}this.once("layoutComplete",function(){e=!0,o()}),this.once("hideComplete",function(){t=!0,o()}),this.once("revealComplete",function(){n=!0,o()})},o._filter=function(e){for(var t=this.options.filter,n=[],i=[],o=[],r=this._getFilterTest(t=t||"*"),s=0;s<e.length;s++){var a,l=e[s];l.isIgnored||((a=r(l))&&n.push(l),a&&l.isHidden?i.push(l):a||l.isHidden||o.push(l))}return{matches:n,needReveal:i,needHide:o}},o._getFilterTest=function(t){return a&&this.options.isJQueryFiltering?function(e){return a(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return i(e.element,t)}},o.updateSortData=function(e){e=e?(e=r.makeArray(e),this.getItems(e)):this.items;this._getSorters(),this._updateItemsSortData(e)},o._getSorters=function(){var e,t=this.options.getSortData;for(e in t){var n=t[e];this._sorters[e]=u(n)}},o._updateItemsSortData=function(e){for(var t=e&&e.length,n=0;t&&n<t;n++)e[n].updateSortData()};var u=function(e){if("string"!=typeof e)return e;var t=l(e).split(" "),n=t[0],i=n.match(/^\[(.+)\]$/),o=function(t,n){if(t)return function(e){return e.getAttribute(t)};return function(e){e=e.querySelector(n);return e&&e.textContent}}(i&&i[1],n),r=c.sortDataParsers[t[1]];return e=r?function(e){return e&&r(o(e))}:function(e){return e&&o(e)}};c.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},o._sort=function(){var e,s,a;this.options.sortBy&&(e=r.makeArray(this.options.sortBy),this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory)),s=this.sortHistory,a=this.options.sortAscending,this.filteredItems.sort(function(e,t){for(var n=0;n<s.length;n++){var i=s[n],o=e.sortData[i],r=t.sortData[i];if(r<o||o<r)return(r<o?1:-1)*((void 0!==a[i]?a[i]:a)?1:-1)}return 0}))},o._getIsSameSortBy=function(e){for(var t=0;t<e.length;t++)if(e[t]!=this.sortHistory[t])return!1;return!0},o._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},o._resetLayout=function(){n.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},o._manageStamp=function(e){this._mode()._manageStamp(e)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(e){e=this.addItems(e);e.length&&(e=this._filterRevealAdded(e),this.filteredItems=this.filteredItems.concat(e))},o.prepended=function(e){var t=this._itemize(e);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},o._filterRevealAdded=function(e){e=this._filter(e);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},o.insert=function(e){var t=this.addItems(e);if(t.length){for(var n,i=t.length,o=0;o<i;o++)n=t[o],this.element.appendChild(n.element);e=this._filter(t).matches;for(o=0;o<i;o++)t[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<i;o++)delete t[o].isLayoutInstant;this.reveal(e)}};var d=o.remove;return o.remove=function(e){e=r.makeArray(e);var t=this.getItems(e);d.call(this,e);for(var n=t&&t.length,i=0;n&&i<n;i++){var o=t[i];r.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var e=0;e<this.items.length;e++)this.items[e].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(e,t){var n=this.options.transitionDuration;this.options.transitionDuration=0;t=e.apply(this,t);return this.options.transitionDuration=n,t},o.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},c}),function(C,w,f){var l,E,i,o,a,r,p,L,y,v,c,u,d,h,m,g,b,s,x,S,k,T,_,O,A,M,I,P,j,B,R,z,N,D,H,W,q,F,U,Y,V,X,$,G,K,Q,J,t,Z,ee,te,ne,ie,e,n;e="function"==typeof define&&define.amd,n="https:"==f.location.protocol?"https:":"http:",e||C.event.special.mousewheel||C("head").append(decodeURI("%3Cscript src="+n+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js%3E%3C/script%3E")),l="mCustomScrollbar",E="mCS",i=".mCustomScrollbar",o={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},a=0,r={},p=w.attachEvent&&!w.addEventListener?1:0,L=!1,y=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],v={init:function(s){var s=C.extend(!0,{},o,s),e=c.call(this);if(s.live){var t=s.liveSelector||this.selector||i,n=C(t);if("off"===s.live)return void d(t);r[t]=setTimeout(function(){n.mCustomScrollbar(s),"once"===s.live&&n.length&&d(t)},500)}else d(t);return s.setWidth=s.set_width||s.setWidth,s.setHeight=s.set_height||s.setHeight,s.axis=s.horizontalScroll?"x":h(s.axis),s.scrollInertia=0<s.scrollInertia&&s.scrollInertia<17?17:s.scrollInertia,"object"!=typeof s.mouseWheel&&1==s.mouseWheel&&(s.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),s.mouseWheel.scrollAmount=s.mouseWheelPixels||s.mouseWheel.scrollAmount,s.mouseWheel.normalizeDelta=s.advanced.normalizeMouseWheelDelta||s.mouseWheel.normalizeDelta,s.scrollButtons.scrollType=m(s.scrollButtons.scrollType),u(s),C(e).each(function(){var e,t,n,i,o,r=C(this);r.data(E)||(r.data(E,{idx:++a,opt:s,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:r.css("direction"),cbOffsets:null,trigger:null}),t=(e=r.data(E)).opt,n=r.data("mcs-axis"),i=r.data("mcs-scrollbar-position"),o=r.data("mcs-theme"),n&&(t.axis=n),i&&(t.scrollbarPosition=i),o&&(t.theme=o,u(t)),g.call(this),C("#mCSB_"+e.idx+"_container img:not(."+y[2]+")").addClass(y[2]),v.update.call(null,r))})},update:function(e,r){e=e||c.call(this);return C(e).each(function(){var e,t,n,i,o=C(this);o.data(E)&&(t=(e=o.data(E)).opt,i=C("#mCSB_"+e.idx+"_container"),n=[C("#mCSB_"+e.idx+"_dragger_vertical"),C("#mCSB_"+e.idx+"_dragger_horizontal")],i.length&&(e.tweenRunning&&G(o),o.hasClass(y[3])&&o.removeClass(y[3]),o.hasClass(y[4])&&o.removeClass(y[4]),S.call(this),s.call(this),"y"===t.axis||t.advanced.autoExpandHorizontalScroll||i.css("width",b(i.children())),e.overflowed=O.call(this),P.call(this),t.autoDraggerLength&&k.call(this),T.call(this),M.call(this),i=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)],"x"!==t.axis&&(e.overflowed[0]?n[0].height()>n[0].parent().height()?A.call(this):(K(o,i[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(A.call(this),"y"===t.axis?I.call(this):"yx"===t.axis&&e.overflowed[1]&&K(o,i[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==t.axis&&(e.overflowed[1]?n[1].width()>n[1].parent().width()?A.call(this):(K(o,i[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(A.call(this),"x"===t.axis?I.call(this):"yx"===t.axis&&e.overflowed[0]&&K(o,i[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),r&&e&&(2===r&&t.callbacks.onImageLoad&&"function"==typeof t.callbacks.onImageLoad?t.callbacks.onImageLoad.call(this):3===r&&t.callbacks.onSelectorChange&&"function"==typeof t.callbacks.onSelectorChange?t.callbacks.onSelectorChange.call(this):t.callbacks.onUpdate&&"function"==typeof t.callbacks.onUpdate&&t.callbacks.onUpdate.call(this)),$.call(this)))})},scrollTo:function(s,a){if(void 0!==s&&null!=s){var e=c.call(this);return C(e).each(function(){var e,t,n,i,o,r=C(this);r.data(E)&&(e=r.data(E),o={trigger:"external",scrollInertia:(t=e.opt).scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=C.extend(!0,{},o,a),i=V.call(this,s),o=0<n.scrollInertia&&n.scrollInertia<17?17:n.scrollInertia,i[0]=X.call(this,i[0],"y"),i[1]=X.call(this,i[1],"x"),n.moveDragger&&(i[0]*=e.scrollRatio.y,i[1]*=e.scrollRatio.x),n.dur=o,setTimeout(function(){null!==i[0]&&void 0!==i[0]&&"x"!==t.axis&&e.overflowed[0]&&(n.dir="y",n.overwrite="all",K(r,i[0].toString(),n)),null!==i[1]&&void 0!==i[1]&&"y"!==t.axis&&e.overflowed[1]&&(n.dir="x",n.overwrite="none",K(r,i[1].toString(),n))},n.timeout))})}},stop:function(){var e=c.call(this);return C(e).each(function(){var e=C(this);e.data(E)&&G(e)})},disable:function(t){var e=c.call(this);return C(e).each(function(){var e=C(this);e.data(E)&&(e.data(E),$.call(this,"remove"),I.call(this),t&&A.call(this),P.call(this,!0),e.addClass(y[3]))})},destroy:function(){var s=c.call(this);return C(s).each(function(){var e,t,n,i,o,r=C(this);r.data(E)&&(t=(e=r.data(E)).opt,n=C("#mCSB_"+e.idx),i=C("#mCSB_"+e.idx+"_container"),o=C(".mCSB_"+e.idx+"_scrollbar"),t.live&&d(t.liveSelector||C(s).selector),$.call(this,"remove"),I.call(this),A.call(this),r.removeData(E),Z(this,"mcs"),o.remove(),i.find("img."+y[2]).removeClass(y[2]),n.replaceWith(i.contents()),r.removeClass(l+" _"+E+"_"+e.idx+" "+y[6]+" "+y[7]+" "+y[5]+" "+y[3]).addClass(y[4]))})}},c=function(){return"object"!=typeof C(this)||C(this).length<1?i:this},u=function(e){e.autoDraggerLength=!(-1<C.inArray(e.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"]))&&e.autoDraggerLength,e.autoExpandScrollbar=!(-1<C.inArray(e.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"]))&&e.autoExpandScrollbar,e.scrollButtons.enable=!(-1<C.inArray(e.theme,["minimal","minimal-dark"]))&&e.scrollButtons.enable,e.autoHideScrollbar=-1<C.inArray(e.theme,["minimal","minimal-dark"])||e.autoHideScrollbar,e.scrollbarPosition=-1<C.inArray(e.theme,["minimal","minimal-dark"])?"outside":e.scrollbarPosition},d=function(e){r[e]&&(clearTimeout(r[e]),Z(r,e))},h=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},m=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},g=function(){var e=C(this),t=e.data(E),n=t.opt,i=n.autoExpandScrollbar?" "+y[1]+"_expand":"",o=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+y[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+y[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],r="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",s="yx"===n.axis?o[0]+o[1]:"x"===n.axis?o[1]:o[0],a="yx"===n.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",i=n.autoHideScrollbar?" "+y[6]:"",o="x"!==n.axis&&"rtl"===t.langDir?" "+y[7]:"";n.setWidth&&e.css("width",n.setWidth),n.setHeight&&e.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===t.langDir?"989999px":n.setLeft,e.addClass(l+" _"+E+"_"+t.idx+i+o).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+r+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir="+t.langDir+" /></div>");o=C("#mCSB_"+t.idx),r=C("#mCSB_"+t.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||r.css("width",b(r.children())),"outside"===n.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),o.addClass("mCSB_outside").after(s)):(o.addClass("mCSB_inside").append(s),r.wrap(a)),x.call(this);t=[C("#mCSB_"+t.idx+"_dragger_vertical"),C("#mCSB_"+t.idx+"_dragger_horizontal")];t[0].css("min-height",t[0].height()),t[1].css("min-width",t[1].width())},b=function(e){return Math.max.apply(Math,e.map(function(){return C(this).outerWidth(!0)}).get())},s=function(){var e=C(this).data(E),t=e.opt,e=C("#mCSB_"+e.idx+"_container");t.advanced.autoExpandHorizontalScroll&&"y"!==t.axis&&e.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(e[0].getBoundingClientRect().right+.4)-Math.floor(e[0].getBoundingClientRect().left),position:"relative"}).unwrap()},x=function(){var e=C(this).data(E),t=e.opt,n=C(".mCSB_"+e.idx+"_scrollbar:first"),e=ne(t.scrollButtons.tabindex)?"tabindex='"+t.scrollButtons.tabindex+"'":"",e=["<a href='#' class='"+y[13]+"' oncontextmenu='return false;' "+e+" />","<a href='#' class='"+y[14]+"' oncontextmenu='return false;' "+e+" />","<a href='#' class='"+y[15]+"' oncontextmenu='return false;' "+e+" />","<a href='#' class='"+y[16]+"' oncontextmenu='return false;' "+e+" />"],e=["x"===t.axis?e[2]:e[0],"x"===t.axis?e[3]:e[1],e[2],e[3]];t.scrollButtons.enable&&n.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},S=function(){var e=C(this),t=e.data(E),n=C("#mCSB_"+t.idx),i=e.css("max-height")||"none",o=-1!==i.indexOf("%"),t=e.css("box-sizing");"none"!==i&&(i=o?e.parent().height()*parseInt(i)/100:parseInt(i),"border-box"===t&&(i-=e.innerHeight()-e.height()+(e.outerHeight()-e.innerHeight())),n.css("max-height",Math.round(i)))},k=function(){var e=C(this).data(E),t=C("#mCSB_"+e.idx),n=C("#mCSB_"+e.idx+"_container"),e=[C("#mCSB_"+e.idx+"_dragger_vertical"),C("#mCSB_"+e.idx+"_dragger_horizontal")],t=[t.height()/n.outerHeight(!1),t.width()/n.outerWidth(!1)],n=[parseInt(e[0].css("min-height")),Math.round(t[0]*e[0].parent().height()),parseInt(e[1].css("min-width")),Math.round(t[1]*e[1].parent().width())],t=p&&n[3]<n[2]?n[2]:n[3];e[0].css({height:p&&n[1]<n[0]?n[0]:n[1],"max-height":e[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":n[0]+"px"}),e[1].css({width:t,"max-width":e[1].parent().width()-10})},T=function(){var e=C(this).data(E),t=C("#mCSB_"+e.idx),n=C("#mCSB_"+e.idx+"_container"),i=[C("#mCSB_"+e.idx+"_dragger_vertical"),C("#mCSB_"+e.idx+"_dragger_horizontal")],t=[n.outerHeight(!1)-t.height(),n.outerWidth(!1)-t.width()],i=[t[0]/(i[0].parent().height()-i[0].height()),t[1]/(i[1].parent().width()-i[1].width())];e.scrollRatio={y:i[0],x:i[1]}},_=function(e,t,n){var i=n?y[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(y[0]+" "+i),n.toggleClass(y[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(y[0]),n.removeClass(y[1])):(e.addClass(y[0]),n.addClass(y[1])))},O=function(){var e=C(this).data(E),t=C("#mCSB_"+e.idx),n=C("#mCSB_"+e.idx+"_container"),i=null==e.overflowed?n.height():n.outerHeight(!1),n=null==e.overflowed?n.width():n.outerWidth(!1);return[i>t.height(),n>t.width()]},A=function(){var e=C(this),t=e.data(E),n=t.opt,i=C("#mCSB_"+t.idx),o=C("#mCSB_"+t.idx+"_container"),r=[C("#mCSB_"+t.idx+"_dragger_vertical"),C("#mCSB_"+t.idx+"_dragger_horizontal")];G(e),("x"!==n.axis&&!t.overflowed[0]||"y"===n.axis&&t.overflowed[0])&&(r[0].add(o).css("top",0),K(e,"_resetY")),("y"!==n.axis&&!t.overflowed[1]||"x"===n.axis&&t.overflowed[1])&&(n=dx=0,"rtl"===t.langDir&&(n=i.width()-o.outerWidth(!1),dx=Math.abs(n/t.scrollRatio.x)),o.css("left",n),r[1].css("left",dx),K(e,"_resetX"))},M=function(){var t,n=C(this),e=n.data(E),i=e.opt;e.bindEvents||(B.call(this),i.contentTouchScroll&&R.call(this),z.call(this),i.mouseWheel.enable&&function e(){t=setTimeout(function(){C.event.special.mousewheel?(clearTimeout(t),N.call(n[0])):e()},100)}(),H.call(this),q.call(this),i.advanced.autoScrollOnFocus&&W.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&U.call(this),e.bindEvents=!0)},I=function(){var e=C(this),t=e.data(E),n=t.opt,i="mCS_"+t.idx,o=".mCSB_"+t.idx+"_scrollbar",r=C("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+o+" ."+y[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+o+">a"),o=C("#mCSB_"+t.idx+"_container");n.advanced.releaseDraggableSelectors&&r.add(C(n.advanced.releaseDraggableSelectors)),t.bindEvents&&(C(f).unbind("."+i),r.each(function(){C(this).unbind("."+i)}),clearTimeout(e[0]._focusTimeout),Z(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),Z(t.sequential,"step"),clearTimeout(o[0].onCompleteTimeout),Z(o[0],"onCompleteTimeout"),t.bindEvents=!1)},P=function(e){var t=C(this),n=t.data(E),i=n.opt,o=C("#mCSB_"+n.idx+"_container_wrapper"),r=o.length?o:C("#mCSB_"+n.idx+"_container"),s=[C("#mCSB_"+n.idx+"_scrollbar_vertical"),C("#mCSB_"+n.idx+"_scrollbar_horizontal")],o=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!e?(s[0].add(o[0]).add(s[0].children("a")).css("display","block"),r.removeClass(y[8]+" "+y[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&o[0].add(s[0].children("a")).css("display","none"),r.removeClass(y[10])):(s[0].css("display","none"),r.addClass(y[10])),r.addClass(y[8]))),"y"!==i.axis&&(n.overflowed[1]&&!e?(s[1].add(o[1]).add(s[1].children("a")).css("display","block"),r.removeClass(y[9]+" "+y[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&o[1].add(s[1].children("a")).css("display","none"),r.removeClass(y[11])):(s[1].css("display","none"),r.addClass(y[11])),r.addClass(y[9]))),n.overflowed[0]||n.overflowed[1]?t.removeClass(y[5]):t.addClass(y[5])},j=function(e){switch(e.type){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return[t.pageY,t.pageX,1<n];default:return[e.pageY,e.pageX,!1]}},B=function(){function o(e){var t=h.find("iframe");t.length&&t.css("pointer-events",e?"auto":"none")}function i(e,t,n,i){var o;h[0].idleTimer=u.scrollInertia<233?250:0,n=r.attr("id")===d[1]?(o="x",(r[0].offsetLeft-t+i)*c.scrollRatio.x):(o="y",(r[0].offsetTop-e+n)*c.scrollRatio.y),K(l,n.toString(),{dir:o,drag:!0})}var r,s,a,l=C(this),c=l.data(E),u=c.opt,e="mCS_"+c.idx,d=["mCSB_"+c.idx+"_dragger_vertical","mCSB_"+c.idx+"_dragger_horizontal"],h=C("#mCSB_"+c.idx+"_container"),t=C("#"+d[0]+",#"+d[1]),n=u.advanced.releaseDraggableSelectors?t.add(C(u.advanced.releaseDraggableSelectors)):t;t.bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){var t,n,i;e.stopImmediatePropagation(),e.preventDefault(),ee(e)&&(L=!0,p&&(f.onselectstart=function(){return!1}),o(!1),G(l),i=(r=C(this)).offset(),t=j(e)[0]-i.top,n=j(e)[1]-i.left,e=r.height()+i.top,i=r.width()+i.left,t<e&&0<t&&n<i&&0<n&&(s=t,a=n),_(r,"active",u.autoExpandScrollbar))}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=r.offset(),n=j(e)[0]-t.top,t=j(e)[1]-t.left;i(s,a,n,t)}),C(f).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){var t,n;r&&(n=r.offset(),t=j(e)[0]-n.top,n=j(e)[1]-n.left,s!==t&&i(s,a,t,n))}).add(n).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){r&&(_(r,"active",u.autoExpandScrollbar),r=null),L=!1,p&&(f.onselectstart=null),o(!0)})},R=function(){function r(e,t){var n=[1.5*t,2*t,t/1.5,t/2];return 90<e?4<t?n[0]:n[3]:60<e?3<t?n[3]:n[2]:30<e?8<t?n[1]:6<t?n[0]:4<t?t:n[2]:8<t?t:n[3]}function s(e,t,n,i,o,r){e&&K(g,e.toString(),{dur:t,scrollEasing:n,dir:i,overwrite:o,drag:r})}var a,l,c,u,d,h,f,p,m,g=C(this),y=g.data(E),v=y.opt,e="mCS_"+y.idx,b=C("#mCSB_"+y.idx),w=C("#mCSB_"+y.idx+"_container"),x=[C("#mCSB_"+y.idx+"_dragger_vertical"),C("#mCSB_"+y.idx+"_dragger_horizontal")],S=[],k=[],T="yx"===v.axis?"none":"all",_=[];w.bind("touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){var t;!te(e)||L||j(e)[2]||(t=w.offset(),a=j(e)[0]-t.top,l=j(e)[1]-t.left,_=[j(e)[0],j(e)[1]])}).bind("touchmove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){var t,n,i,o,r;!te(e)||L||j(e)[2]||(e.stopImmediatePropagation(),h=J(),i=b.offset(),t=j(e)[0]-i.top,n=j(e)[1]-i.left,i="mcsLinearOut",S.push(t),k.push(n),_[2]=Math.abs(j(e)[0]-_[0]),_[3]=Math.abs(j(e)[1]-_[1]),y.overflowed[0]&&(o=x[0].parent().height()-x[0].height(),o=0<a-t&&t-a>-(o*y.scrollRatio.y)&&(2*_[3]<_[2]||"yx"===v.axis)),y.overflowed[1]&&(r=x[1].parent().width()-x[1].width(),r=0<l-n&&n-l>-(r*y.scrollRatio.x)&&(2*_[2]<_[3]||"yx"===v.axis)),(o||r)&&e.preventDefault(),p="yx"===v.axis?[a-t,l-n]:"x"===v.axis?[null,l-n]:[a-t,null],w[0].idleTimer=250,y.overflowed[0]&&s(p[0],0,i,"y","all",!0),y.overflowed[1]&&s(p[1],0,i,"x",T,!0))}),b.bind("touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){var t;!te(e)||L||j(e)[2]||(e.stopImmediatePropagation(),G(g),d=J(),t=b.offset(),c=j(e)[0]-t.top,u=j(e)[1]-t.left,S=[],k=[])}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(e){var t,n,i,o;!te(e)||L||j(e)[2]||(e.stopImmediatePropagation(),f=J(),i=b.offset(),t=j(e)[0]-i.top,o=j(e)[1]-i.left,30<f-h||(n="mcsEaseOut",i=(e=(m=1e3/(f-d))<2.5)?[S[S.length-2],k[k.length-2]]:[0,0],f=e?[t-i[0],o-i[1]]:[t-c,o-u],o=[Math.abs(f[0]),Math.abs(f[1])],m=e?[Math.abs(f[0]/4),Math.abs(f[1]/4)]:[m,m],e=[Math.abs(w[0].offsetTop)-f[0]*r(o[0]/m[0],m[0]),Math.abs(w[0].offsetLeft)-f[1]*r(o[1]/m[1],m[1])],p="yx"===v.axis?[e[0],e[1]]:"x"===v.axis?[null,e[1]]:[e[0],null],m=[4*o[0]+v.scrollInertia,4*o[1]+v.scrollInertia],e=parseInt(v.contentTouchScroll)||0,p[0]=e<o[0]?p[0]:0,p[1]=e<o[1]?p[1]:0,y.overflowed[0]&&s(p[0],m[0],n,"y",T,!1),y.overflowed[1]&&s(p[1],m[1],n,"x",T,!1)))})},z=function(){function i(e,t,n){l.type=n&&o?"stepped":"stepless",l.scrollAmount=10,Y(r,e,t,"mcsLinearOut",n?60:null)}var o,r=C(this),s=r.data(E),a=s.opt,l=s.sequential,e="mCS_"+s.idx,c=C("#mCSB_"+s.idx+"_container"),u=c.parent();c.bind("mousedown."+e,function(){o||(o=1,L=!0)}).add(f).bind("mousemove."+e,function(e){var t,n;o&&(w.getSelection?w.getSelection().toString():f.selection&&"Control"!=f.selection.type&&f.selection.createRange().text)&&(n=c.offset(),t=j(e)[0]-n.top+c[0].offsetTop,n=j(e)[1]-n.left+c[0].offsetLeft,0<t&&t<u.height()&&0<n&&n<u.width()?l.step&&i("off",null,"stepped"):("x"!==a.axis&&s.overflowed[0]&&(t<0?i("on",38):t>u.height()&&i("on",40)),"y"!==a.axis&&s.overflowed[1]&&(n<0?i("on",37):n>u.width()&&i("on",39))))}).bind("mouseup."+e,function(){o&&(o=0,i("off",null)),L=!1})},N=function(){var c,e,u,d,t,n,h=C(this),f=h.data(E);f&&(c=f.opt,e="mCS_"+f.idx,u=C("#mCSB_"+f.idx),d=[C("#mCSB_"+f.idx+"_dragger_vertical"),C("#mCSB_"+f.idx+"_dragger_horizontal")],t=C("#mCSB_"+f.idx+"_container").find("iframe"),n=u,t.length&&t.each(function(){!function(e){var t=null;try{t=(e.contentDocument||e.contentWindow.document).body.innerHTML}catch(e){}return null!==t}(this)||(n=n.add(C(this).contents().find("body")))}),n.bind("mousewheel."+e,function(e,t){var n,i,o,r,s,a,l;G(h),D(h,e.target)||(n="auto"!==c.mouseWheel.deltaFactor?parseInt(c.mouseWheel.deltaFactor):!(p&&e.deltaFactor<100)&&e.deltaFactor||100,t="x"===c.axis||"x"===c.mouseWheel.axis?(i="x",o=[Math.round(n*f.scrollRatio.x),parseInt(c.mouseWheel.scrollAmount)],r="auto"!==c.mouseWheel.scrollAmount?o[1]:o[0]>=u.width()?.9*u.width():o[0],s=Math.abs(C("#mCSB_"+f.idx+"_container")[0].offsetLeft),a=d[1][0].offsetLeft,l=d[1].parent().width()-d[1].width(),e.deltaX||e.deltaY||t):(i="y",o=[Math.round(n*f.scrollRatio.y),parseInt(c.mouseWheel.scrollAmount)],r="auto"!==c.mouseWheel.scrollAmount?o[1]:o[0]>=u.height()?.9*u.height():o[0],s=Math.abs(C("#mCSB_"+f.idx+"_container")[0].offsetTop),a=d[0][0].offsetTop,l=d[0].parent().height()-d[0].height(),e.deltaY||t),"y"===i&&!f.overflowed[0]||"x"===i&&!f.overflowed[1]||(c.mouseWheel.invert&&(t=-t),(0<(t=c.mouseWheel.normalizeDelta?t<0?-1:1:t)&&0!==a||t<0&&a!==l||c.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),K(h,(s-t*r).toString(),{dir:i})))}))},D=function(e,t){var n=t.nodeName.toLowerCase(),e=e.data(E).opt.mouseWheel.disableOver;return-1<C.inArray(n,e)&&!(-1<C.inArray(n,["select","textarea"])&&!C(t).is(":focus"))},H=function(){var s=C(this),a=s.data(E),e="mCS_"+a.idx,l=C("#mCSB_"+a.idx+"_container"),c=l.parent();C(".mCSB_"+a.idx+"_scrollbar ."+y[12]).bind("touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(){L=!0}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){L=!1}).bind("click."+e,function(e){if(C(e.target).hasClass(y[12])||C(e.target).hasClass("mCSB_draggerRail")){G(s);var t=C(this),n=t.find(".mCSB_dragger");if(0<t.parent(".mCSB_scrollTools_horizontal").length){if(!a.overflowed[1])return;var i="x",o=e.pageX>n.offset().left?-1:1,r=Math.abs(l[0].offsetLeft)-.9*o*c.width()}else{if(!a.overflowed[0])return;i="y",o=e.pageY>n.offset().top?-1:1,r=Math.abs(l[0].offsetTop)-.9*o*c.height()}K(s,r.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}})},W=function(){var o=C(this),e=o.data(E),r=e.opt,t="mCS_"+e.idx,s=C("#mCSB_"+e.idx+"_container"),a=s.parent();s.bind("focusin."+t,function(){var i=C(f.activeElement),e=s.find(".mCustomScrollBox").length;i.is(r.advanced.autoScrollOnFocus)&&(G(o),clearTimeout(o[0]._focusTimeout),o[0]._focusTimer=e?17*e:0,o[0]._focusTimeout=setTimeout(function(){var e=[ie(i)[0],ie(i)[1]],t=[s[0].offsetTop,s[0].offsetLeft],n=[0<=t[0]+e[0]&&t[0]+e[0]<a.height()-i.outerHeight(!1),0<=t[1]+e[1]&&t[0]+e[1]<a.width()-i.outerWidth(!1)],t="yx"!==r.axis||n[0]||n[1]?"all":"none";"x"===r.axis||n[0]||K(o,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0}),"y"===r.axis||n[1]||K(o,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0})},o[0]._focusTimer))})},q=function(){var e=C(this).data(E),t="mCS_"+e.idx,n=C("#mCSB_"+e.idx+"_container").parent();n.bind("scroll."+t,function(){0===n.scrollTop()&&0===n.scrollLeft()||C(".mCSB_"+e.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var i=C(this),o=i.data(E),r=o.opt,s=o.sequential,e="mCS_"+o.idx,t=".mCSB_"+o.idx+"_scrollbar";C(t+">a").bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){function t(e,t){s.scrollAmount=r.snapAmount||r.scrollButtons.scrollAmount,Y(i,e,t)}if(e.preventDefault(),ee(e)){var n=C(this).attr("class");switch(s.type=r.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;L=!0,o.tweenRunning=!1,t("on",n);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;L=!1,s.dir&&t("off",n);break;case"click":if("stepped"!==s.type||o.tweenRunning)return;t("on",n)}}})},U=function(){var s=C(this),a=s.data(E),l=a.opt,c=a.sequential,e="mCS_"+a.idx,t=C("#mCSB_"+a.idx),u=C("#mCSB_"+a.idx+"_container"),d=u.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']";t.attr("tabindex","0").bind("blur."+e+" keydown."+e+" keyup."+e,function(e){function t(e,t){c.type=l.keyboard.scrollType,c.scrollAmount=l.snapAmount||l.keyboard.scrollAmount,"stepped"===c.type&&a.tweenRunning||Y(s,e,t)}switch(e.type){case"blur":a.tweenRunning&&c.dir&&t("off",null);break;case"keydown":case"keyup":var n,i,o=e.keyCode||e.which,r="on";if("x"!==l.axis&&(38===o||40===o)||"y"!==l.axis&&(37===o||39===o)){if((38===o||40===o)&&!a.overflowed[0]||(37===o||39===o)&&!a.overflowed[1])return;"keyup"===e.type&&(r="off"),C(f.activeElement).is(h)||(e.preventDefault(),e.stopImmediatePropagation(),t(r,o))}else 33===o||34===o?((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type&&(G(s),i=34===o?-1:1,i="x"===l.axis||"yx"===l.axis&&a.overflowed[1]&&!a.overflowed[0]?(n="x",Math.abs(u[0].offsetLeft)-.9*i*d.width()):(n="y",Math.abs(u[0].offsetTop)-.9*i*d.height()),K(s,i.toString(),{dir:n,scrollEasing:"mcsEaseInOut"}))):35!==o&&36!==o||C(f.activeElement).is(h)||((a.overflowed[0]||a.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"!==e.type)||(i="x"===l.axis||"yx"===l.axis&&a.overflowed[1]&&!a.overflowed[0]?(n="x",35===o?Math.abs(d.width()-u.outerWidth(!1)):0):(n="y",35===o?Math.abs(d.height()-u.outerHeight(!1)):0),K(s,i.toString(),{dir:n,scrollEasing:"mcsEaseInOut"}))}})},Y=function(s,e,t,a,l){function c(e){var t="stepped"!==h.type,n=l||(e?t?d.scrollInertia/1.5:d.scrollInertia:1e3/60),i=e?t?7.5:40:2.5,o=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],r=[10<u.scrollRatio.y?10:u.scrollRatio.y,10<u.scrollRatio.x?10:u.scrollRatio.x],r="x"===h.dir[0]?o[1]+h.dir[1]*r[1]*i:o[0]+h.dir[1]*r[0]*i,i="x"===h.dir[0]?o[1]+h.dir[1]*parseInt(h.scrollAmount):o[0]+h.dir[1]*parseInt(h.scrollAmount),i="auto"!==h.scrollAmount?i:r,r=a||(e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),t=!!e;return e&&n<17&&(i="x"===h.dir[0]?o[1]:o[0]),K(s,i.toString(),{dir:h.dir[0],scrollEasing:r,dur:n,onComplete:t}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){c()},n)))}var u=s.data(E),d=u.opt,h=u.sequential,f=C("#mCSB_"+u.idx+"_container"),n="stepped"===h.type;switch(e){case"on":if(h.dir=[t===y[16]||t===y[15]||39===t||37===t?"x":"y",t===y[13]||t===y[15]||38===t||37===t?-1:1],G(s),ne(t)&&"stepped"===h.type)return;c(n);break;case"off":clearTimeout(h.step),Z(h,"step"),G(s),(n||u.tweenRunning&&h.dir)&&c(!0)}},V=function(e){var t=C(this).data(E).opt,n=[];return(e="function"==typeof e?e():e)instanceof Array?n=1<e.length?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(n[0]=e.y||(e.x||"x"===t.axis?null:e),n[1]=e.x||(e.y||"y"===t.axis?null:e)),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(e,t){if(null!=e&&void 0!==e){var n=C(this),i=n.data(E),o=i.opt,r=C("#mCSB_"+i.idx+"_container"),s=r.parent(),i=typeof e,a="x"===(t=t||("x"===o.axis?"x":"y"))?r.outerWidth(!1):r.outerHeight(!1),l="x"===t?r[0].offsetLeft:r[0].offsetTop,c="x"===t?"left":"top";switch(i){case"function":return e();case"object":return(d=e.jquery?e:C(e)).length?"x"===t?ie(d)[1]:ie(d)[0]:void 0;case"string":case"number":if(ne(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(a*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(l-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var u=l+parseInt(e.split("+=")[1]);return 0<=u?0:Math.abs(u)}if(-1!==e.indexOf("px")&&ne(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(s.height()-r.outerHeight(!1));if("right"===e)return Math.abs(s.width()-r.outerWidth(!1));if("first"!==e&&"last"!==e)return C(e).length?"x"===t?ie(C(e))[1]:ie(C(e))[0]:(r.css(c,e),void v.update.call(null,n[0]));var d=r.find(":"+e);return"x"===t?ie(d)[1]:ie(d)[0]}}},$=function(e){function t(){var e=0;return e=s.advanced.updateOnImageLoad?a.find("img").length:e}function n(){!0===s.advanced.updateOnSelectorChange&&(s.advanced.updateOnSelectorChange="*");var e=0,t=a.find(s.advanced.updateOnSelectorChange);return s.advanced.updateOnSelectorChange&&0<t.length&&t.each(function(){e+=C(this).height()+C(this).width()}),e}function i(e){clearTimeout(a[0].autoUpdate),v.update.call(null,o[0],e)}var o=C(this),r=o.data(E),s=r.opt,a=C("#mCSB_"+r.idx+"_container");if(e)return clearTimeout(a[0].autoUpdate),void Z(a[0],"autoUpdate");var l,c,u,d=a.parent(),h=[C("#mCSB_"+r.idx+"_scrollbar_vertical"),C("#mCSB_"+r.idx+"_scrollbar_horizontal")],f=function(){return[h[0].is(":visible")?h[0].outerHeight(!0):0,h[1].is(":visible")?h[1].outerWidth(!0):0]},p=n(),m=[a.outerHeight(!1),a.outerWidth(!1),d.height(),d.width(),f()[0],f()[1]],g=t();!function e(){clearTimeout(a[0].autoUpdate),a[0].autoUpdate=setTimeout(function(){return s.advanced.updateOnSelectorChange&&(l=n())!==p?(i(3),void(p=l)):(s.advanced.updateOnContentResize&&((c=[a.outerHeight(!1),a.outerWidth(!1),d.height(),d.width(),f()[0],f()[1]])[0]===m[0]&&c[1]===m[1]&&c[2]===m[2]&&c[3]===m[3]&&c[4]===m[4]&&c[5]===m[5]||(i(c[0]!==m[0]||c[1]!==m[1]),m=c)),s.advanced.updateOnImageLoad&&(u=t())!==g&&(a.find("img").each(function(){var e,t;C(e=this).hasClass(y[2])?i():((t=new Image).onload=function(e,t){return function(){return t.apply(e,arguments)}}(t,function(){this.onload=null,C(e).addClass(y[2]),i(2)}),t.src=e.src)}),g=u),void((s.advanced.updateOnSelectorChange||s.advanced.updateOnContentResize||s.advanced.updateOnImageLoad)&&e()))},60)}()},G=function(e){e=e.data(E);C("#mCSB_"+e.idx+"_container,#mCSB_"+e.idx+"_container_wrapper,#mCSB_"+e.idx+"_dragger_vertical,#mCSB_"+e.idx+"_dragger_horizontal").each(function(){t.call(this)})},K=function(o,e,r){function t(e){return s&&a.callbacks[e]&&"function"==typeof a.callbacks[e]}function n(){var e=[d[0].offsetTop,d[0].offsetLeft],t=[m[0].offsetTop,m[0].offsetLeft],n=[d.outerHeight(!1),d.outerWidth(!1)],i=[u.height(),u.width()];o[0].mcs={content:d,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:r.dir}}var i,s=o.data(E),a=s.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:a.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},c=[(r=C.extend(l,r)).dur,r.drag?0:r.dur],u=C("#mCSB_"+s.idx),d=C("#mCSB_"+s.idx+"_container"),h=d.parent(),f=a.callbacks.onTotalScrollOffset?V.call(o,a.callbacks.onTotalScrollOffset):[0,0],p=a.callbacks.onTotalScrollBackOffset?V.call(o,a.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=r.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(C(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==e||s.contentReset.y||(t("onOverflowYNone")&&a.callbacks.onOverflowYNone.call(o[0]),s.contentReset.y=1),"_resetX"!==e||s.contentReset.x||(t("onOverflowXNone")&&a.callbacks.onOverflowXNone.call(o[0]),s.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){switch(!s.contentReset.y&&o[0].mcs||!s.overflowed[0]||(t("onOverflowY")&&a.callbacks.onOverflowY.call(o[0]),s.contentReset.x=null),!s.contentReset.x&&o[0].mcs||!s.overflowed[1]||(t("onOverflowX")&&a.callbacks.onOverflowX.call(o[0]),s.contentReset.x=null),a.snapAmount&&(i=e,l=a.snapAmount,h=a.snapOffset,e=Math.round(i/l)*l-h),r.dir){case"x":var m=C("#mCSB_"+s.idx+"_dragger_horizontal"),g="left",y=d[0].offsetLeft,v=[u.width()-d.outerWidth(!1),m.parent().width()-m.width()],b=[e,0===e?0:e/s.scrollRatio.x],w=f[1],x=p[1],S=0<w?w/s.scrollRatio.x:0,k=0<x?x/s.scrollRatio.x:0;break;case"y":m=C("#mCSB_"+s.idx+"_dragger_vertical"),g="top",y=d[0].offsetTop,v=[u.height()-d.outerHeight(!1),m.parent().height()-m.height()],b=[e,0===e?0:e/s.scrollRatio.y],w=f[0],x=p[0],S=0<w?w/s.scrollRatio.y:0,k=0<x?x/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=v[1]?b=[v[0],v[1]]:b[0]=-b[0],o[0].mcs||(n(),t("onInit")&&a.callbacks.onInit.call(o[0])),clearTimeout(d[0].onCompleteTimeout),!s.tweenRunning&&(0===y&&0<=b[0]||y===v[0]&&b[0]<=v[0])||(Q(m[0],g,Math.round(b[1]),c[1],r.scrollEasing),Q(d[0],g,Math.round(b[0]),c[0],r.scrollEasing,r.overwrite,{onStart:function(){r.callbacks&&r.onStart&&!s.tweenRunning&&(t("onScrollStart")&&(n(),a.callbacks.onScrollStart.call(o[0])),s.tweenRunning=!0,_(m),s.cbOffsets=[a.callbacks.alwaysTriggerOffsets||y>=v[0]+w,a.callbacks.alwaysTriggerOffsets||y<=-x])},onUpdate:function(){r.callbacks&&r.onUpdate&&t("whileScrolling")&&(n(),a.callbacks.whileScrolling.call(o[0]))},onComplete:function(){var e;r.callbacks&&r.onComplete&&("yx"===a.axis&&clearTimeout(d[0].onCompleteTimeout),e=d[0].idleTimer||0,d[0].onCompleteTimeout=setTimeout(function(){t("onScroll")&&(n(),a.callbacks.onScroll.call(o[0])),t("onTotalScroll")&&b[1]>=v[1]-S&&s.cbOffsets[0]&&(n(),a.callbacks.onTotalScroll.call(o[0])),t("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(n(),a.callbacks.onTotalScrollBack.call(o[0])),s.tweenRunning=!1,d[0].idleTimer=0,_(m,"hide")},e))}}))}},Q=function(e,t,n,i,o,r,s){function a(){v.stop||(m||d.call(),m=J()-p,l(),m>=v.time&&(v.time=m>v.time?m+c-(m-v.time):m+c-1,v.time<m+1&&(v.time=m+1)),v.time<i?v.id=u(a):f.call())}function l(){0<i?(v.currVal=function(e,t,n,i,o){switch(o){case"linear":case"mcsLinear":return n*e/i+t;case"mcsLinearOut":return e/=i,e--,n*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=i/2)<1?n/2*Math.pow(2,10*(e-1))+t:(e--,n/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=i/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=i,-n*(--e*e*e*e-1)+t;case"easeOutStrong":return n*(1-Math.pow(2,-10*e/i))+t;default:var r=(e/=i)*e,s=r*e;return t+n*(.499999999999997*s*r+-2.5*r*r+5.5*s+-6.5*r+4*e)}}(v.time,g,b,i,o),y[t]=Math.round(v.currVal)+"px"):y[t]=n+"px",h.call()}e._mTween||(e._mTween={top:{},left:{}});var c,u,d=(s=s||{}).onStart||function(){},h=s.onUpdate||function(){},f=s.onComplete||function(){},p=J(),m=0,g=e.offsetTop,y=e.style,v=e._mTween[t];"left"===t&&(g=e.offsetLeft);var b=n-g;v.stop=0,"none"===r||null!=v.id&&(w.requestAnimationFrame?w.cancelAnimationFrame(v.id):clearTimeout(v.id),v.id=null),c=1e3/60,v.time=m+c,u=w.requestAnimationFrame||function(e){return l(),setTimeout(e,.01)},v.id=u(a)},J=function(){return w.performance&&w.performance.now?w.performance.now():w.performance&&w.performance.webkitNow?w.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},t=function(){this._mTween||(this._mTween={top:{},left:{}});for(var e=["top","left"],t=0;t<e.length;t++){var n=e[t];this._mTween[n].id&&(w.requestAnimationFrame?w.cancelAnimationFrame(this._mTween[n].id):clearTimeout(this._mTween[n].id),this._mTween[n].id=null,this._mTween[n].stop=1)}},Z=function(t,n){try{delete t[n]}catch(e){t[n]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){e=e.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},ne=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ie=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},C.fn[l]=function(e){return v[e]?v[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void C.error("Method "+e+" does not exist"):v.init.apply(this,arguments)},C[l]=function(e){return v[e]?v[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void C.error("Method "+e+" does not exist"):v.init.apply(this,arguments)},C[l].defaults=o,w[l]=!0,C(w).load(function(){C(i)[l](),C.extend(C.expr[":"],{mcsInView:C.expr[":"].mcsInView||function(e){var t=C(e),n=t.parents(".mCSB_container");if(n.length)return e=n.parent(),0<=(n=[n[0].offsetTop,n[0].offsetLeft])[0]+ie(t)[0]&&n[0]+ie(t)[0]<e.height()-t.outerHeight(!1)&&0<=n[1]+ie(t)[1]&&n[1]+ie(t)[1]<e.width()-t.outerWidth(!1)},mcsOverflow:C.expr[":"].mcsOverflow||function(e){e=C(e).data(E);if(e)return e.overflowed[0]||e.overflowed[1]}})})}(jQuery,window,document),function(){"use strict";var d,t;function l(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||o(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,e=t.width*t.height,t=this.intersectionRect,t=t.width*t.height;this.intersectionRatio=e?Number((t/e).toFixed(4)):this.isIntersecting?1:0}function e(e,t){var n,i,o,t=t||{};if("function"!=typeof e)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=(n=this._checkForIntersections.bind(this),i=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){n(),o=null},i)}),this._callback=e,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(e){return e.value+e.unit}).join(" ")}function n(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function i(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function h(e){var t;try{t=e.getBoundingClientRect()}catch(e){}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}:o()}function o(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function r(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(e){e=e.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}"object"==typeof window&&("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(d=window.document,t=[],e.prototype.THROTTLE_TIMEOUT=100,e.prototype.POLL_INTERVAL=null,e.prototype.USE_MUTATION_OBSERVER=!0,e.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},e.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},e.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},e.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},e.prototype._initThresholds=function(e){e=e||[0];return(e=!Array.isArray(e)?[e]:e).sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||1<e)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},e.prototype._parseRootMargin=function(e){e=(e||"0px").split(/\s+/).map(function(e){e=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},e.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(n(window,"resize",this._checkForIntersections,!0),n(d,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},e.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(d,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},e.prototype._checkForIntersections=function(){var s=this._rootIsInDom(),a=s?this._getRootRect():o();this._observationTargets.forEach(function(e){var t=e.element,n=h(t),i=this._rootContainsTarget(t),o=e.entry,r=s&&i&&this._computeTargetAndRootIntersection(t,a),r=e.entry=new l({time:window.performance&&performance.now&&performance.now(),target:t,boundingClientRect:n,rootBounds:a,intersectionRect:r});o?s&&i?this._hasCrossedThreshold(o,r)&&this._queuedEntries.push(r):o&&o.isIntersecting&&this._queuedEntries.push(r):this._queuedEntries.push(r)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},e.prototype._computeTargetAndRootIntersection=function(e,t){if("none"!=window.getComputedStyle(e).display){for(var n,i,o,r,s=h(e),a=f(e),l=!1;!l;){var c=null,u=1==a.nodeType?window.getComputedStyle(a):{};if("none"==u.display)return;if(a==this.root||a==d?(l=!0,c=t):a!=d.body&&a!=d.documentElement&&"visible"!=u.overflow&&(c=h(a)),c&&(n=c,i=s,c=u=r=o=void 0,o=Math.max(n.top,i.top),r=Math.min(n.bottom,i.bottom),u=Math.max(n.left,i.left),c=Math.min(n.right,i.right),i=r-o,!(s=0<=(n=c-u)&&0<=i&&{top:o,bottom:r,left:u,right:c,width:n,height:i})))break;a=f(a)}return s}},e.prototype._getRootRect=function(){var e,t;return t=this.root?h(this.root):(e=d.documentElement,t=d.body,{top:0,left:0,right:e.clientWidth||t.clientWidth,width:e.clientWidth||t.clientWidth,bottom:e.clientHeight||t.clientHeight,height:e.clientHeight||t.clientHeight}),this._expandRectByRootMargin(t)},e.prototype._expandRectByRootMargin=function(n){var e=this._rootMarginValues.map(function(e,t){return"px"==e.unit?e.value:e.value*(t%2?n.width:n.height)/100}),e={top:n.top-e[0],right:n.right+e[1],bottom:n.bottom+e[2],left:n.left-e[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},e.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==n||r==i||r<n!=r<i)return!0}},e.prototype._rootIsInDom=function(){return!this.root||r(d,this.root)},e.prototype._rootContainsTarget=function(e){return r(this.root||d,e)},e.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},e.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=e,window.IntersectionObserverEntry=l))}(),function i(o,r,s){function a(n,e){if(!r[n]){if(!o[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(l)return l(n,!0);t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}t=r[n]={exports:{}};o[n][0].call(t.exports,function(e){var t=o[n][1][e];return a(t||e)},t,t.exports,i,o,r,s)}return r[n].exports}for(var l="function"==typeof require&&require,e=0;e<s.length;e++)a(s[e]);return a}({1:[function(e,t,n){try{var i=new window.CustomEvent("test");if(i.preventDefault(),!0!==i.defaultPrevented)throw new Error("Could not prevent default")}catch(e){i=function(e,t){var n,i;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};i.prototype=window.Event.prototype,window.CustomEvent=i}},{}],2:[function(e,t,n){"use strict";function i(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r=Object.keys(Object(o)),s=0,a=r.length;s<a;s++){var l=r[s],c=Object.getOwnPropertyDescriptor(o,l);void 0!==c&&c.enumerable&&(n[l]=o[l])}}return n}t.exports={assign:i,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:i})}}},{}],3:[function(e,t,n){"use strict";function i(e){e.fn.modalVideo=function(e){return"strings"==typeof e||new o(this,e),this}}var o=e("../index");"function"==typeof define&&define.amd?define(["jquery"],i):void 0!==(e=window.jQuery||window.$)&&i(e),t.exports=i},{"../index":5}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e("custom-event-polyfill");var d=e("../lib/util");var r=e("es6-object-assign").assign,h={channel:"youtube",facebook:{},youtube:{autoplay:1,cc_load_policy:1,color:null,controls:1,disablekb:0,enablejsapi:0,end:null,fs:1,h1:null,iv_load_policy:1,list:null,listType:null,loop:0,modestbranding:null,origin:null,playlist:null,playsinline:null,rel:0,showinfo:1,start:0,wmode:"transparent",theme:"dark",nocookie:!1},ratio:"16:9",vimeo:{api:!1,autopause:!0,autoplay:!0,byline:!0,callback:null,color:null,height:null,loop:!1,maxheight:null,maxwidth:null,player_id:null,portrait:!0,title:!0,width:null,xhtml:!1},allowFullScreen:!0,animationSpeed:300,classNames:{modalVideo:"modal-video",modalVideoClose:"modal-video-close",modalVideoBody:"modal-video-body",modalVideoInner:"modal-video-inner",modalVideoIframeWrap:"modal-video-movie-wrap",modalVideoCloseBtn:"modal-video-close-btn"},aria:{openMessage:"You just openned the modal video",dismissBtnMessage:"Close the modal by clicking here"}},i=(i(f,[{key:"getPadding",value:function(e){var t=e.split(":"),e=Number(t[0]);return 100*Number(t[1])/e+"%"}},{key:"getQueryString",value:function(t){var n="";return Object.keys(t).forEach(function(e){n+=e+"="+t[e]+"&"}),n.substr(0,n.length-1)}},{key:"getVideoUrl",value:function(e,t,n){return"youtube"===t?this.getYoutubeUrl(e.youtube,n):"vimeo"===t?this.getVimeoUrl(e.vimeo,n):"facebook"===t?this.getFacebookUrl(e.facebook,n):""}},{key:"getVimeoUrl",value:function(e,t){return"//player.vimeo.com/video/"+t+"?"+this.getQueryString(e)}},{key:"getYoutubeUrl",value:function(e,t){var n=this.getQueryString(e);return!0===e.nocookie?"//www.youtube-nocookie.com/embed/"+t+"?"+n:"//www.youtube.com/embed/"+t+"?"+n}},{key:"getFacebookUrl",value:function(e,t){return"//www.facebook.com/v2.10/plugins/video.php?href=https://www.facebook.com/facebook/videos/"+t+"&"+this.getQueryString(e)}},{key:"getHtml",value:function(e,t,n){var i=this.getPadding(e.ratio),o=e.classNames;return'\n      <div class="'+o.modalVideo+'" tabindex="-1" role="dialog" aria-label="'+e.aria.openMessage+'" id="'+n+'">\n        <div class="'+o.modalVideoBody+'">\n          <div class="'+o.modalVideoInner+'">\n            <div class="'+o.modalVideoIframeWrap+'" style="padding-bottom:'+i+'">\n              <button class="'+o.modalVideoCloseBtn+' js-modal-video-dismiss-btn" aria-label="'+e.aria.dismissBtnMessage+"\"></button>\n              <iframe width='460' height='230' src=\""+t+"\" frameborder='0' allowfullscreen="+e.allowFullScreen+' tabindex="-1"/>\n            </div>\n          </div>\n        </div>\n      </div>\n    '}}]),f);function f(e,t){var s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var a=r({},h,t),e="string"==typeof e?document.querySelectorAll(e):e,l=document.querySelector("body"),c=a.classNames,u=a.animationSpeed;[].forEach.call(e,function(r){r.addEventListener("click",function(e){"A"===r.tagName&&e.preventDefault();var t=r.dataset.videoId,n=r.dataset.channel||a.channel,e=(0,d.getUniqId)(),t=r.dataset.videoUrl||s.getVideoUrl(a,n,t),t=s.getHtml(a,t,e);(0,d.append)(l,t);var i=document.getElementById(e),o=i.querySelector(".js-modal-video-dismiss-btn");i.focus(),i.addEventListener("click",function(){(0,d.addClass)(i,c.modalVideoClose),setTimeout(function(){(0,d.remove)(i),r.focus()},u)}),i.addEventListener("keydown",function(e){9===e.which&&(e.preventDefault(),document.activeElement===i?o.focus():(i.setAttribute("aria-label",""),i.focus()))}),o.addEventListener("click",function(){(0,d.triggerEvent)(i,"click")})})})}n.default=i,t.exports=n.default},{"../lib/util":6,"custom-event-polyfill":1,"es6-object-assign":2}],5:[function(e,t,n){"use strict";t.exports=e("./core/")},{"./core/":4}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.append=function(e,t){var n=document.createElement("div");for(n.innerHTML=t;0<n.children.length;)e.appendChild(n.children[0])},n.getUniqId=function(){return(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()},n.remove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},n.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},n.triggerEvent=function(e,t,n){var i=void 0;window.CustomEvent?i=new CustomEvent(t,{cancelable:!0}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,n),e.dispatchEvent(i)}},{}]},{},[3]),"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):e.Plyr=t()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,i;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}!function(e){function i(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function o(e){return encodeURIComponent(e).replace(/%20/g,"+")}function r(e){return decodeURIComponent(e).replace(/\+/g," ")}var t,n=function(){try{return!!Symbol.iterator}catch(e){return!1}}();function s(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"!=t)if("string"==t)""!==e&&this._fromString(e);else if(e instanceof s){var n=this;e.forEach(function(e,t){n.append(t,e)})}else{if(null===e||"object"!=t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var i=0;i<e.length;i++){var o=e[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var r in e)e.hasOwnProperty(r)&&this.append(r,e[r])}}"URLSearchParams"in e&&"a=1"===new URLSearchParams("?a=1").toString()||((t=s.prototype).append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},t.delete=function(e){delete this._entries[e]},t.get=function(e){return e in this._entries?this._entries[e][0]:null},t.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},t.has=function(e){return e in this._entries},t.set=function(e,t){this._entries[e]=[String(t)]},t.forEach=function(e,t){for(var n in this._entries)if(this._entries.hasOwnProperty(n))for(var i=this._entries[n],o=0;o<i.length;o++)e.call(t,i[o],n,this)},t.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),i(n)},t.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),i(t)},t.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),i(n)},n&&(t[Symbol.iterator]=t.entries),t.toString=function(){var n=[];return this.forEach(function(e,t){n.push(o(t)+"="+o(e))}),n.join("&")},e.URLSearchParams=s);e=URLSearchParams.prototype;"function"!=typeof e.sort&&(e.sort=function(){var n=this,i=[];this.forEach(function(e,t){i.push([t,e]),n._entries||n.delete(t)}),i.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),n._entries&&(n._entries={});for(var e=0;e<i.length;e++)this.append(i[e][0],i[e][1])}),"function"!=typeof e._fromString&&Object.defineProperty(e,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var n=[];this.forEach(function(e,t){n.push(t)});for(var t=0;t<n.length;t++)this.delete(n[t])}for(var i,o=(e=e.replace(/^\?/,"")).split("&"),t=0;t<o.length;t++)i=o[t].split("="),this.append(r(i[0]),1<i.length?r(i[1]):"")}})}(e),function(c){if(function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(e){return}}()||(n=c.URL,i=e.prototype,["hash","host","hostname","port","protocol"].forEach(function(e){var t;t=e,Object.defineProperty(i,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}),Object.defineProperty(i,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),e.createObjectURL=function(e){return n.createObjectURL.apply(n,arguments)},e.revokeObjectURL=function(e){return n.revokeObjectURL.apply(n,arguments)},c.URL=e),void 0!==c.location&&!("origin"in c.location)){var t=function(){return c.location.protocol+"//"+c.location.hostname+(c.location.port?":"+c.location.port:"")};try{Object.defineProperty(c.location,"origin",{get:t,enumerable:!0})}catch(e){setInterval(function(){c.location.origin=t()},100)}}function e(e,t){"string"!=typeof e&&(e=String(e));var n,i=document;if(t&&(void 0===c.location||t!==c.location.href)){(n=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=t,i.head.appendChild(n);try{if(0!==n.href.indexOf(t))throw new Error(n.href)}catch(e){throw new Error("URL unable to set base "+t+" due to "+e)}}if((t=i.createElement("a")).href=e,n&&(i.body.appendChild(t),t.href=t.href),":"===t.protocol||!/:/.test(t.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:t});var o=new URLSearchParams(this.search),r=!0,s=!0,a=this;["append","delete","set"].forEach(function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),r&&(s=!1,a.search=o.toString(),s=!0)}}),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,s&&(r=!1,this.searchParams._fromString(this.search),r=!0))}})}var n,i}(e);function x(e){try{return!!e()}catch(e){return!0}}function n(e){return s?o.createElement(e):{}}function f(e,t,n){var i,o,r,s=e&f.F,a=e&f.G,l=e&f.P,c=e&f.B,u=a?S:e&f.S?S[t]||(S[t]={}):(S[t]||{}).prototype,d=a?p:p[t]||(p[t]={}),h=d.prototype||(d.prototype={});for(i in n=a?t:n)o=((r=!s&&u&&void 0!==u[i])?u:n)[i],r=c&&r?b(o,S):l&&"function"==typeof o?b(Function.call,o):o,u&&_(u,i,o,e&f.U),d[i]!=o&&w(d,i,r),l&&h[i]!=o&&(h[i]=o)}var r=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},b=function(i,o,e){if(r(i),void 0===o)return i;switch(e){case 1:return function(e){return i.call(o,e)};case 2:return function(e,t){return i.call(o,e,t)};case 3:return function(e,t,n){return i.call(o,e,t,n)}}return function(){return i.apply(o,arguments)}},S=t(function(e){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),p=t(function(e){e=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),k=(p.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),T=function(e){if(!k(e))throw TypeError(e+" is not an object!");return e},i=!x(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),o=S.document,s=k(o)&&k(o.createElement),a=!i&&!x(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}),c=function(e,t){if(!k(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!k(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!k(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!k(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},l=Object.defineProperty,u={f:i?Object.defineProperty:function(e,t,n){if(T(e),t=c(t,!0),T(n),a)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w=i?function(e,t,n){return u.f(e,t,v(1,n))}:function(e,t,n){return e[t]=n,e},d={}.hasOwnProperty,h=function(e,t){return d.call(e,t)},m=0,g=Math.random(),y=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++m+g).toString(36))},_=t(function(e){var r=y("src"),t=Function.toString,s=(""+t).split("toString");p.inspectSource=function(e){return t.call(e)},(e.exports=function(e,t,n,i){var o="function"==typeof n;o&&(h(n,"name")||w(n,"name",t)),e[t]!==n&&(o&&(h(n,r)||w(n,r,e[t]?""+e[t]:s.join(String(t)))),e===S?e[t]=n:i?e[t]?e[t]=n:w(e,t,n):(delete e[t],w(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[r]||t.call(this)})});S.core=p,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128;function C(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}function E(e){return Object(C(e))}function L(e,t,n,i){try{return i?t(T(n)[0],n[1]):t(n)}catch(t){n=e.return;throw void 0!==n&&T(n.call(e)),t}}function O(e){return void 0!==e&&(B.Array===e||D[N]===e)}function A(e){return isNaN(e=+e)?0:(0<e?W:H)(e)}function M(e){return 0<e?q(A(e),9007199254740991):0}function I(e,t,n){t in e?u.f(e,t,v(0,n)):e[t]=n}function P(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Y))?e:V?U(t):"Object"==(e=U(t))&&"function"==typeof t.callee?"Arguments":e}var j=f,B={},R=t(function(e){var n=S["__core-js_shared__"]||(S["__core-js_shared__"]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:p.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),z=t(function(e){var t=R("wks"),n=S.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:y)("Symbol."+e))}).store=t}),N=z("iterator"),D=Array.prototype,H=Math.ceil,W=Math.floor,q=Math.min,F={}.toString,U=function(e){return F.call(e).slice(8,-1)},Y=z("toStringTag"),V="Arguments"==U(function(){return arguments}()),X=z("iterator"),$=p.getIteratorMethod=function(e){if(null!=e)return e[X]||e["@@iterator"]||B[P(e)]},G=z("iterator"),K=!1;try{[7][G]().return=function(){K=!0}}catch(e){}function Q(e,t){if(!t&&!K)return!1;var n=!1;try{var i=[7],o=i[G]();o.next=function(){return{done:n=!0}},i[G]=function(){return o},e(i)}catch(e){}return n}j(j.S+j.F*!Q(function(e){}),"Array",{from:function(e){var t,n,i,o,r=E(e),s="function"==typeof this?this:Array,a=arguments.length,l=1<a?arguments[1]:void 0,c=void 0!==l,u=0,e=$(r);if(c&&(l=b(l,2<a?arguments[2]:void 0,2)),null==e||s==Array&&O(e))for(n=new s(t=M(r.length));u<t;u++)I(n,u,c?l(r[u],u):r[u]);else for(o=e.call(r),n=new s;!(i=o.next()).done;u++)I(n,u,c?L(o,l,[i.value,u],!0):i.value);return n.length=u,n}});function J(e,t){return te(e=e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!te(n.prototype)||(n=void 0),k(n)&&null===(n=n[ne])&&(n=void 0)),new(void 0===n?Array:n)(t);var n}function Z(d,e){var h=1==d,f=2==d,p=3==d,m=4==d,g=6==d,y=5==d||g,v=e||J;return function(e,t,n){for(var i,o,r=E(e),s=ee(r),a=b(t,n,3),l=M(s.length),c=0,u=h?v(e,l):f?v(e,0):void 0;c<l;c++)if((y||c in s)&&(o=a(i=s[c],c,r),d))if(h)u[c]=o;else if(o)switch(d){case 3:return!0;case 5:return i;case 6:return c;case 2:u.push(i)}else if(m)return!1;return g?-1:p||m?m:u}}var ee=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==U(e)?e.split(""):Object(e)},te=Array.isArray||function(e){return"Array"==U(e)},ne=z("species"),ie=z("unscopables"),oe=Array.prototype;null==oe[ie]&&w(oe,ie,{});var re=function(e){oe[ie][e]=!0},se=Z(5),ae=!0;"find"in[]&&Array(1).find(function(){ae=!1}),j(j.P+j.F*ae,"Array",{find:function(e){return se(this,e,1<arguments.length?arguments[1]:void 0)}}),re("find");function le(e){return ee(C(e))}function ce(e,t){if(T(e),!k(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}function ue(e,t,n){var i;return(t=t.constructor)!==n&&"function"==typeof t&&(i=t.prototype)!==n.prototype&&k(i)&&ve&&ve(e,i),e}function de(e,t){var n,i=le(e),o=0,r=[];for(n in i)n!=_e&&h(i,n)&&r.push(n);for(;t.length>o;)h(i,n=t[o++])&&(~Te(r,n)||r.push(n));return r}function he(){}function fe(e){var t=c(e,!1);if("string"==typeof t&&2<t.length){var n,i,o=(t=$e?t.trim():Ue(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(e=t.charCodeAt(2))||120===e)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var r,s=t.slice(2),a=0,l=s.length;a<l;a++)if((r=s.charCodeAt(a))<48||i<r)return NaN;return parseInt(s,n)}}return+t}var pe,me={f:{}.propertyIsEnumerable},ge=Object.getOwnPropertyDescriptor,ye={f:i?ge:function(e,t){if(e=le(e),t=c(t,!0),a)try{return ge(e,t)}catch(e){}if(h(e,t))return v(!me.f.call(e,t),e[t])}},ve=Object.setPrototypeOf||("__proto__"in{}?function(e,n,i){try{(i=b(Function.call,ye.f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return ce(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),be=Math.max,we=Math.min,xe=function(a){return function(e,t,n){var i,o=le(e),r=M(o.length),s=(e=r,(n=A(n))<0?be(n+e,0):we(n,e));if(a&&t!=t){for(;s<r;)if((i=o[s++])!=i)return!0}else for(;s<r;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}},Se=R("keys"),ke=function(e){return Se[e]||(Se[e]=y(e))},Te=xe(!1),_e=ke("IE_PROTO"),Ce="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ee=Ce.concat("length","prototype"),Le={f:Object.getOwnPropertyNames||function(e){return de(e,Ee)}},Oe="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",Ae="["+Oe+"]",Me=RegExp("^"+Ae+Ae+"*"),Ie=RegExp(Ae+Ae+"*$"),Pe=function(e,t,n){var i={},o=x(function(){return Oe[e]()||"​"!="​"[e]()}),t=i[e]=o?t(je):Oe[e];n&&(i[n]=t),j(j.P+j.F*o,"String",i)},je=Pe.trim=function(e,t){return e=String(C(e)),1&t&&(e=e.replace(Me,"")),e=2&t?e.replace(Ie,""):e},Be=Pe,Re=Object.keys||function(e){return de(e,Ce)},ze=i?Object.defineProperties:function(e,t){T(e);for(var n,i=Re(t),o=i.length,r=0;r<o;)u.f(e,n=i[r++],t[n]);return e},Ae=S.document,Ne=Ae&&Ae.documentElement,De=ke("IE_PROTO"),He=function(){var e=n("iframe"),t=Ce.length;for(e.style.display="none",Ne.appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),He=e.F;t--;)delete He.prototype[Ce[t]];return He()},We=Object.create||function(e,t){var n;return null!==e?(he.prototype=T(e),n=new he,he.prototype=null,n[De]=e):n=He(),void 0===t?n:ze(n,t)},Pe=Le.f,qe=ye.f,Fe=u.f,Ue=Be.trim,Ye=Ke=S.Number,Ve=Ke.prototype,Xe="Number"==U(We(Ve)),$e="trim"in String.prototype;if(!Ke(" 0o1")||!Ke("0b1")||Ke("+0x1")){for(var Ge,Ke=function(e){var e=arguments.length<1?0:e,t=this;return t instanceof Ke&&(Xe?x(function(){Ve.valueOf.call(t)}):"Number"!=U(t))?ue(new Ye(fe(e)),t,Ke):fe(e)},Qe=i?Pe(Ye):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Je=0;Qe.length>Je;Je++)h(Ye,Ge=Qe[Je])&&!h(Ke,Ge)&&Fe(Ke,Ge,qe(Ye,Ge));(Ke.prototype=Ve).constructor=Ke,_(S,"Number",Ke)}pe=(p.Object||{}).keys||Object.keys,Ae={keys:function(e){return Re(E(e))}},j(j.S+j.F*x(function(){pe(1)}),"Object",Ae);function Ze(e){var t;return k(e)&&(void 0!==(t=e[tt])?!!t:"RegExp"==U(e))}function et(e,t,n){if(Ze(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(C(e))}var tt=z("match"),nt=z("match"),Be=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[nt]=!1,!"/./"[t](n)}catch(t){}}return!0};j(j.P+j.F*Be("includes"),"String",{includes:function(e){return!!~et(this,e,"includes").indexOf(e,1<arguments.length?arguments[1]:void 0)}});var it=xe(!0);j(j.P,"Array",{includes:function(e){return it(this,e,1<arguments.length?arguments[1]:void 0)}}),re("includes");function ot(e,t){var n=e.exec;if("function"==typeof n){n=n.call(e,t);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==P(e))throw new TypeError("RegExp#exec called on incompatible receiver");return at.call(e,t)}function rt(){var e=T(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}var st=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},at=RegExp.prototype.exec,lt=RegExp.prototype.exec,ct=String.prototype.replace,Pe=lt,ut=(Ae=/a/,xe=/b*/g,lt.call(Ae,"a"),lt.call(xe,"a"),0!==Ae.lastIndex||0!==xe.lastIndex),dt=void 0!==/()??/.exec("")[1],ht=Pe=ut||dt?function(e){var t,n,i,o;return dt&&(n=new RegExp("^"+this.source+"$(?!\\s)",rt.call(this))),ut&&(t=this.lastIndex),i=lt.call(this,e),ut&&i&&(this.lastIndex=this.global?i.index+i[0].length:t),dt&&i&&1<i.length&&ct.call(i[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i}:Pe;j({target:"RegExp",proto:!0,forced:ht!==/./.exec},{exec:ht});var ft=z("species"),pt=!x(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),mt=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};e="ab".split(e);return 2===e.length&&"a"===e[0]&&"b"===e[1]}(),Ae=function(n,e,t){var r,i,o=z(n),s=!x(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),a=s?!x(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[ft]=function(){return t}),t[o](""),!e}):void 0;s&&a&&("replace"!==n||pt)&&("split"!==n||mt)||(r=/./[o],t=(a=t(C,o,""[n],function(e,t,n,i,o){return t.exec===ht?s&&!o?{done:!0,value:r.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}))[0],i=a[1],_(String.prototype,n,t),w(RegExp.prototype,o,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))};Ae("search",1,function(i,o,r,s){return[function(e){var t=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=s(r,e,this);if(t.done)return t.value;var n=T(e),t=String(this),e=n.lastIndex;st(e,0)||(n.lastIndex=0);t=ot(n,t);return st(n.lastIndex,e)||(n.lastIndex=e),null===t?-1:t.index}]}),i&&"g"!=/./g.flags&&u.f(RegExp.prototype,"flags",{configurable:!0,get:rt});var gt=/./.toString,xe=function(e){_(RegExp.prototype,"toString",e,!0)};x(function(){return"/a/b"!=gt.call({source:"a",flags:"b"})})?xe(function(){var e=T(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?rt.call(e):void 0)}):"toString"!=gt.name&&xe(function(){return gt.call(this)});function yt(e,t){return{value:t,done:!!e}}var vt=u.f,bt=z("toStringTag"),wt=function(e,t,n){e&&!h(e=n?e:e.prototype,bt)&&vt(e,bt,{configurable:!0,value:t})},xt={};w(xt,z("iterator"),function(){return this});function St(){return this}var kt=ke("IE_PROTO"),Tt=Object.prototype,_t=Object.getPrototypeOf||function(e){return e=E(e),h(e,kt)?e[kt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Tt:null},Ct=z("iterator"),Et=!([].keys&&"next"in[].keys()),Pe=function(e,t,n,i,o,r,s){y=t,(g=n).prototype=We(xt,{next:v(1,i)}),wt(g,y+" Iterator");function a(e){if(!Et&&e in p)return p[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}}var l,c,u,d=t+" Iterator",h="values"==o,f=!1,p=e.prototype,m=p[Ct]||p["@@iterator"]||o&&p[o],i=m||a(o),g=o?h?a("entries"):i:void 0,y="Array"==t&&p.entries||m;if(y&&(u=_t(y.call(new e)))!==Object.prototype&&u.next&&(wt(u,d,!0),"function"!=typeof u[Ct]&&w(u,Ct,St)),h&&m&&"values"!==m.name&&(f=!0,i=function(){return m.call(this)}),!Et&&!f&&p[Ct]||w(p,Ct,i),B[t]=i,B[d]=St,o)if(l={values:h?i:a("values"),keys:r?i:a("keys"),entries:g},s)for(c in l)c in p||_(p,c,l[c]);else j(j.P+j.F*(Et||f),t,l);return l},Lt=Pe(Array,"Array",function(e,t){this._t=le(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,yt(1)):yt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");B.Arguments=B.Array,re("keys"),re("values"),re("entries");for(var Ot=z("iterator"),At=z("toStringTag"),Mt=B.Array,It={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Pt=Re(It),jt=0;jt<Pt.length;jt++){var Bt,Rt=Pt[jt],zt=It[Rt],Nt=S[Rt],Dt=Nt&&Nt.prototype;if(Dt&&(Dt[Ot]||w(Dt,Ot,Mt),Dt[At]||w(Dt,At,Rt),B[Rt]=Mt,zt))for(Bt in Lt)Dt[Bt]||_(Dt,Bt,Lt[Bt],!0)}var xe=function(r){return function(e,t){var n,i=String(C(e)),o=A(t),e=i.length;return o<0||e<=o?r?"":void 0:(t=i.charCodeAt(o))<55296||56319<t||o+1===e||(n=i.charCodeAt(o+1))<56320||57343<n?r?i.charAt(o):t:r?i.slice(o,o+2):n-56320+(t-55296<<10)+65536}},Ht=xe(!0);Pe(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(t=Ht(e,t),this._i+=t.length,{value:t,done:!1})});function Wt(e,t,n){for(var i in t)_(e,i,t[i],n);return e}function qt(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}function Ft(e,t){if(!k(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}function Ut(e){return e._l||(e._l=new Yt)}function Yt(){this.a=[]}function Vt(e,t){return Zt(e.a,function(e){return e[0]===t})}var Xt=t(function(e){function n(e){t(e,i,{value:{i:"O"+ ++o,w:{}}})}var i=y("meta"),t=u.f,o=0,r=Object.isExtensible||function(){return!0},s=!x(function(){return r(Object.preventExtensions({}))}),a=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!k(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!h(e,i)){if(!r(e))return"F";if(!t)return"E";n(e)}return e[i].i},getWeak:function(e,t){if(!h(e,i)){if(!r(e))return!0;if(!t)return!1;n(e)}return e[i].w},onFreeze:function(e){return s&&a.NEED&&r(e)&&!h(e,i)&&n(e),e}}}),$t=(Xt.KEY,Xt.NEED,Xt.fastKey,Xt.getWeak,Xt.onFreeze,{f:Object.getOwnPropertySymbols}),Gt=Object.assign,Kt=!Gt||x(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=Gt({},e)[n]||Object.keys(Gt({},t)).join("")!=i})?function(e,t){for(var n=E(e),i=arguments.length,o=1,r=$t.f,s=me.f;o<i;)for(var a,l=ee(arguments[o++]),c=r?Re(l).concat(r(l)):Re(l),u=c.length,d=0;d<u;)s.call(l,a=c[d++])&&(n[a]=l[a]);return n}:Gt,Qt=t(function(e){var d={},h={},e=e.exports=function(e,t,n,i,o){var r,s,a,l,o=o?function(){return e}:$(e),c=b(n,i,t?2:1),u=0;if("function"!=typeof o)throw TypeError(e+" is not iterable!");if(O(o)){for(r=M(e.length);u<r;u++)if((l=t?c(T(s=e[u])[0],s[1]):c(e[u]))===d||l===h)return l}else for(a=o.call(e);!(s=a.next()).done;)if((l=L(a,c,s.value,t))===d||l===h)return l};e.BREAK=d,e.RETURN=h}),Jt=Xt.getWeak,Zt=Z(5),en=Z(6),tn=0;Yt.prototype={get:function(e){e=Vt(this,e);if(e)return e[1]},has:function(e){return!!Vt(this,e)},set:function(e,t){var n=Vt(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(t){var e=en(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}};var nn={getConstructor:function(e,n,i,o){var r=e(function(e,t){qt(e,r,n,"_i"),e._t=n,e._i=tn++,e._l=void 0,null!=t&&Qt(t,i,e[o],e)});return Wt(r.prototype,{delete:function(e){if(!k(e))return!1;var t=Jt(e);return!0===t?Ut(Ft(this,n)).delete(e):t&&h(t,this._i)&&delete t[this._i]},has:function(e){if(!k(e))return!1;var t=Jt(e);return!0===t?Ut(Ft(this,n)).has(e):t&&h(t,this._i)}}),r},def:function(e,t,n){var i=Jt(T(t),!0);return!0===i?Ut(e).set(t,n):i[e._i]=n,e},ufstore:Ut};function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function sn(e,t,n){return t&&rn(e.prototype,t),n&&rn(e,n),e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}t(function(e){function t(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}}var o,n,i,r,s,a,l,c,u,d,h,f=Z(0),p=Xt.getWeak,m=Object.isExtensible,g=nn.ufstore,y={},v={get:function(e){if(k(e)){var t=p(e);return!0===t?g(Ft(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return nn.def(Ft(this,"WeakMap"),e,t)}},b=e.exports=(i=t,r=v,s=nn,c=S[n="WeakMap"],d=(u=c)&&u.prototype,h={},"function"==typeof u?(l=(a=new u).set({},1)!=a,e=x(function(){a.has(1)}),Q(function(e){new u(e)})||(((u=i(function(e,t){qt(e,u,n);e=ue(new c,e,u);return null!=t&&Qt(t,!0,e.set,e),e})).prototype=d).constructor=u),e&&(w("delete"),w("has"),w("get")),l&&w("set"),d.clear&&delete d.clear):(u=s.getConstructor(i,n,!0,"set"),Wt(u.prototype,r),Xt.NEED=!0),wt(u,n),h[n]=u,j(j.G+j.W+j.F*(u!=c),h),u);function w(e){var n=d[e];_(d,e,"delete"==e?function(e){return!!k(e)&&n.call(this,0===e?0:e)}:"has"==e?function(e){return!!k(e)&&n.call(this,0===e?0:e)}:"get"==e?function(e){return k(e)?n.call(this,0===e?0:e):void 0}:"add"==e?function(e){return n.call(this,0===e?0:e),this}:function(e,t){return n.call(this,0===e?0:e,t),this})}x(function(){return 7!=(new b).set((Object.freeze||Object)(y),7).get(y)})&&(o=nn.getConstructor(t,"WeakMap"),Kt(o.prototype,v),Xt.NEED=!0,f(["delete","has","get","set"],function(n){var e=b.prototype,i=e[n];_(e,n,function(e,t){if(!k(e)||m(e))return i.call(this,e,t);this._f||(this._f=new o);t=this._f[n](e,t);return"set"==n?this:t})}))});var cn,un=[].sort,dn=[1,2,3];j(j.P+j.F*(x(function(){dn.sort(void 0)})||!x(function(){dn.sort(null)})||!((cn=un)&&x(function(){cn.call(null)}))),"Array",{sort:function(e){return void 0===e?un.call(E(this)):un.call(E(this),r(e))}}),j(j.S+j.F,"Object",{assign:Kt});function hn(e,t){var n;return void 0===(e=T(e).constructor)||null==(n=T(e)[pn])?t:r(n)}function fn(e,t,n){return t+(n?mn(e,t).length:1)}var pn=z("species"),mn=xe(!0),gn=Math.min,yn=[].push,vn=!!function(){try{return new RegExp("x","y")}catch(e){}}();Ae("split",2,function(o,r,p,m){var g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!Ze(e))return p.call(n,e,t);for(var i,o,r,s=[],a=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=void 0===t?4294967295:t>>>0,u=new RegExp(e.source,a+"g");(i=ht.call(u,n))&&!((o=u.lastIndex)>l&&(s.push(n.slice(l,i.index)),1<i.length&&i.index<n.length&&yn.apply(s,i.slice(1)),r=i[0].length,l=o,s.length>=c));)u.lastIndex===i.index&&u.lastIndex++;return l===n.length?!r&&u.test("")||s.push(""):s.push(n.slice(l)),s.length>c?s.slice(0,c):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:p.call(this,e,t)}:p;return[function(e,t){var n=o(this),i=null==e?void 0:e[r];return void 0!==i?i.call(e,n,t):g.call(String(n),e,t)},function(e,t){var n=m(g,e,this,t,g!==p);if(n.done)return n.value;var i=T(e),o=String(this),n=hn(i,RegExp),r=i.unicode,e=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(vn?"y":"g"),s=new n(vn?i:"^(?:"+i.source+")",e),a=void 0===t?4294967295:t>>>0;if(0==a)return[];if(0===o.length)return null===ot(s,o)?[o]:[];for(var l=0,c=0,u=[];c<o.length;){s.lastIndex=vn?c:0;var d,h=ot(s,vn?o:o.slice(c));if(null===h||(d=gn(M(s.lastIndex+(vn?0:c)),o.length))===l)c=fn(o,c,r);else{if(u.push(o.slice(l,c)),u.length===a)return u;for(var f=1;f<=h.length-1;f++)if(u.push(h[f]),u.length===a)return u;c=l=d}}return u.push(o.slice(l)),u}]});var bn=me.f,ke=function(a){return function(e){for(var t,n=le(e),i=Re(n),o=i.length,r=0,s=[];r<o;)bn.call(n,t=i[r++])&&s.push(a?[t,n[t]]:n[t]);return s}},wn=ke(!0);j(j.S,"Object",{entries:function(e){return wn(e)}});var xn=ke(!1);j(j.S,"Object",{values:function(e){return xn(e)}});var Sn=Math.max,kn=Math.min,Tn=Math.floor,_n=/\$([$&`']|\d\d?|<[^>]*>)/g,Cn=/\$([$&`']|\d\d?)/g;Ae("replace",2,function(o,r,w,x){return[function(e,t){var n=o(this),i=null==e?void 0:e[r];return void 0!==i?i.call(e,n,t):w.call(String(n),e,t)},function(e,t){var n=x(w,e,this,t);if(n.done)return n.value;var i=T(e),o=String(this),r="function"==typeof t;r||(t=String(t));var s,a=i.global;a&&(s=i.unicode,i.lastIndex=0);for(var l=[];;){var c=ot(i,o);if(null===c)break;if(l.push(c),!a)break;""===String(c[0])&&(i.lastIndex=fn(o,M(i.lastIndex),s))}for(var u,d="",h=0,f=0;f<l.length;f++){for(var c=l[f],p=String(c[0]),m=Sn(kn(A(c.index),o.length),0),g=[],y=1;y<c.length;y++)g.push(void 0===(u=c[y])?u:String(u));var v,b=c.groups,b=r?(v=[p].concat(g,m,o),void 0!==b&&v.push(b),String(t.apply(void 0,v))):function(r,s,a,l,c,e){var u=a+r.length,d=l.length,t=Cn;return void 0!==c&&(c=E(c),t=_n),w.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return r;case"`":return s.slice(0,a);case"'":return s.slice(u);case"<":n=c[t.slice(1,-1)];break;default:var i=+t;if(0==i)return e;if(d<i){var o=Tn(i/10);return 0!==o&&o<=d?void 0===l[o-1]?t.charAt(1):l[o-1]+t.charAt(1):e}n=l[i-1]}return void 0===n?"":n})}(p,o,m,g,b,t);h<=m&&(d+=o.slice(h,m)+b,h=m+p.length)}return d+o.slice(h)}]});function En(){var e,t=+this;In.hasOwnProperty(t)&&(e=In[t],delete In[t],e())}var Ln,On=S.process,re=S.setImmediate,Pe=S.clearImmediate,xe=S.MessageChannel,An=S.Dispatch,Mn=0,In={},ke=function(e){En.call(e.data)};re&&Pe||(re=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return In[++Mn]=function(){!function(e,t,n){switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);case 4:return e(t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),t)},Ln(Mn),Mn},Pe=function(e){delete In[e]},"process"==U(On)?Ln=function(e){On.nextTick(b(En,e,1))}:An&&An.now?Ln=function(e){An.now(b(En,e,1))}:xe?(Pn=(xe=new xe).port2,xe.port1.onmessage=ke,Ln=b(Pn.postMessage,Pn,1)):S.addEventListener&&"function"==typeof postMessage&&!S.importScripts?(Ln=function(e){S.postMessage(e+"","*")},S.addEventListener("message",ke,!1)):Ln="onreadystatechange"in n("script")?function(e){Ne.appendChild(n("script")).onreadystatechange=function(){Ne.removeChild(this),En.call(e)}}:function(e){setTimeout(b(En,e,1),0)});var Pn={set:re,clear:Pe},jn=Pn.set,ke=S.MutationObserver||S.WebKitMutationObserver,Bn=S.process,re=S.Promise,Rn="process"==U(Bn);function zn(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=r(n),this.reject=r(i)}function Nn(){}var Dn,Hn,Wn,qn,Fn,Un,Yn,Vn,Xn,$n,Gn={f:function(e){return new zn(e)}},Kn=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},Pe=S.navigator,Qn=Pe&&Pe.userAgent||"",Jn=z("species"),Pe=function(e){e=S[e];i&&e&&!e[Jn]&&u.f(e,Jn,{configurable:!0,get:function(){return this}})},Zn=Pn.set,ei=(Vn=Rn?function(){Bn.nextTick(hi)}:!ke||S.navigator&&S.navigator.standalone?re&&re.resolve?(Yn=re.resolve(void 0),function(){Yn.then(hi)}):function(){jn.call(S,hi)}:(Xn=!0,$n=document.createTextNode(""),new ke(hi).observe($n,{characterData:!0}),function(){$n.data=Xn=!Xn}),function(e){e={fn:e,next:void 0};Un&&(Un.next=e),Fn||(Fn=e,Vn()),Un=e}),ti=S.TypeError,ni=S.process,ke=ni&&ni.versions,ii=ke&&ke.v8||"",oi=S.Promise,ri="process"==P(ni),si=Hn=Gn.f,ke=!!function(){try{var e=oi.resolve(1),t=(e.constructor={})[z("species")]=function(e){e(Nn,Nn)};return(ri||"function"==typeof PromiseRejectionEvent)&&e.then(Nn)instanceof t&&0!==ii.indexOf("6.6")&&-1===Qn.indexOf("Chrome/66")}catch(e){}}(),ai=function(e){var t;return!(!k(e)||"function"!=typeof(t=e.then))&&t},li=function(d,n){var i;d._n||(d._n=!0,i=d._c,ei(function(){for(var o,c=d._v,u=1==d._s,e=0,t=function(e){var t,n,i,o,r=u?e.ok:e.fail,s=e.resolve,a=e.reject,l=e.domain;try{r?(u||(2==d._h&&(o=d,Zn.call(S,function(){var e;ri?ni.emit("rejectionHandled",o):(e=S.onrejectionhandled)&&e({promise:o,reason:o._v})})),d._h=1),!0===r?t=c:(l&&l.enter(),t=r(c),l&&(l.exit(),i=!0)),t===e.promise?a(ti("Promise-chain cycle")):(n=ai(t))?n.call(t,s,a):s(t)):a(c)}catch(e){l&&!i&&l.exit(),a(e)}};i.length>e;)t(i[e++]);d._c=[],d._n=!1,n&&!d._h&&(o=d,Zn.call(S,function(){var e,t,n=o._v,i=ci(o);if(i&&(e=Kn(function(){ri?ni.emit("unhandledRejection",n,o):(t=S.onunhandledrejection)?t({promise:o,reason:n}):(t=S.console)&&t.error&&t.error("Unhandled promise rejection",n)}),o._h=ri||ci(o)?2:1),o._a=void 0,i&&e.e)throw e.v}))}))},ci=function(e){return 1!==e._h&&0===(e._a||e._c).length},ui=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),li(t,!0))},di=function(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw ti("Promise can't be resolved itself");(n=ai(e))?ei(function(){var t={_w:i,_d:!1};try{n.call(e,b(di,t,1),b(ui,t,1))}catch(e){ui.call(t,e)}}):(i._v=e,i._s=1,li(i,!1))}catch(e){ui.call({_w:i,_d:!1},e)}}};function hi(){var e,t;for(Rn&&(e=Bn.domain)&&e.exit();Fn;){t=Fn.fn,Fn=Fn.next;try{t()}catch(e){throw Fn?Vn():Un=void 0,e}}Un=void 0,e&&e.enter()}ke||(oi=function(e){qt(this,oi,"Promise","_h"),r(e),Dn.call(this);try{e(b(di,this,1),b(ui,this,1))}catch(e){ui.call(this,e)}},(Dn=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Wt(oi.prototype,{then:function(e,t){var n=si(hn(this,oi));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=ri?ni.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&li(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),Wn=function(){var e=new Dn;this.promise=e,this.resolve=b(di,e,1),this.reject=b(ui,e,1)},Gn.f=si=function(e){return e===oi||e===qn?new Wn:Hn(e)}),j(j.G+j.W+j.F*!ke,{Promise:oi}),wt(oi,"Promise"),Pe("Promise"),qn=p.Promise,j(j.S+j.F*!ke,"Promise",{reject:function(e){var t=si(this);return(0,t.reject)(e),t.promise}}),j(j.S+j.F*!ke,"Promise",{resolve:function(e){return function(e,t){if(T(e),k(t)&&t.constructor===e)return t;e=Gn.f(e);return(0,e.resolve)(t),e.promise}(this,e)}}),j(j.S+j.F*!(ke&&Q(function(e){oi.all(e).catch(Nn)})),"Promise",{all:function(e){var s=this,t=si(s),a=t.resolve,l=t.reject,n=Kn(function(){var i=[],o=0,r=1;Qt(e,!1,function(e){var t=o++,n=!1;i.push(void 0),r++,s.resolve(e).then(function(e){n||(n=!0,i[t]=e,--r||a(i))},l)}),--r||a(i)});return n.e&&l(n.v),t.promise},race:function(e){var t=this,n=si(t),i=n.reject,o=Kn(function(){Qt(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}});var fi="".startsWith;j(j.P+j.F*Be("startsWith"),"String",{startsWith:function(e){var t=et(this,e,"startsWith"),n=M(Math.min(1<arguments.length?arguments[1]:void 0,t.length)),e=String(e);return fi?fi.call(t,e,n):t.slice(n,n+e.length)===e}}),j(j.S,"Number",{isNaN:function(e){return e!=e}});function pi(e){return null!=e?e.constructor:null}function mi(e,t){return Boolean(e&&t&&e instanceof t)}function gi(e){return null==e}function yi(e){return pi(e)===Object}function vi(e){return pi(e)===String}function bi(e){return Array.isArray(e)}function wi(e){return mi(e,NodeList)}function xi(e){return gi(e)||(vi(e)||bi(e)||wi(e))&&!e.length||yi(e)&&!Object.keys(e).length}var Si={nullOrUndefined:gi,object:yi,number:function(e){return pi(e)===Number&&!Number.isNaN(e)},string:vi,boolean:function(e){return pi(e)===Boolean},function:function(e){return pi(e)===Function},array:bi,weakMap:function(e){return mi(e,WeakMap)},nodeList:wi,element:function(e){return mi(e,Element)},textNode:function(e){return pi(e)===Text},event:function(e){return mi(e,Event)},keyboardEvent:function(e){return mi(e,KeyboardEvent)},cue:function(e){return mi(e,window.TextTrackCue)||mi(e,window.VTTCue)},track:function(e){return mi(e,TextTrack)||!gi(e)&&vi(e.kind)},url:function(e){if(mi(e,window.URL))return!0;if(!vi(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!xi(new URL(t).hostname)}catch(e){return!1}},empty:xi},ki=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Ti(t,e,n){var i,o=this,r=3<arguments.length&&void 0!==arguments[3]&&arguments[3],s=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],a=5<arguments.length&&void 0!==arguments[5]&&arguments[5];t&&"addEventListener"in t&&!Si.empty(e)&&Si.function(n)&&(e=e.split(" "),i=ki?{passive:s,capture:a}:a,e.forEach(function(e){o&&o.eventListeners&&r&&o.eventListeners.push({element:t,type:e,callback:n,options:i}),t[r?"addEventListener":"removeEventListener"](e,n,i)}))}function _i(e){Ti.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",2<arguments.length?arguments[2]:void 0,!0,!(3<arguments.length&&void 0!==arguments[3])||arguments[3],4<arguments.length&&void 0!==arguments[4]&&arguments[4])}function Ci(e){Ti.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",2<arguments.length?arguments[2]:void 0,!1,!(3<arguments.length&&void 0!==arguments[3])||arguments[3],4<arguments.length&&void 0!==arguments[4]&&arguments[4])}function Ei(o){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",s=2<arguments.length?arguments[2]:void 0,a=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],l=4<arguments.length&&void 0!==arguments[4]&&arguments[4];Ti.call(this,o,r,function e(){Ci(o,r,e,a,l);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];s.apply(this,n)},!0,a,l)}function Li(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Si.element(e)&&!Si.empty(t)&&(i=new CustomEvent(t,{bubbles:n,detail:Object.assign({},i,{plyr:this})}),e.dispatchEvent(i))}function Oi(e,o){e=e.length?e:[e];Array.from(e).reverse().forEach(function(e,t){var n=0<t?o.cloneNode(!0):o,i=e.parentNode,t=e.nextSibling;n.appendChild(e),t?i.insertBefore(n,t):i.appendChild(n)})}function Ai(n,e){Si.element(n)&&!Si.empty(e)&&Object.entries(e).filter(function(e){e=ln(e,2)[1];return!Si.nullOrUndefined(e)}).forEach(function(e){var t=ln(e,2),e=t[0],t=t[1];return n.setAttribute(e,t)})}function Mi(e,t,n){e=document.createElement(e);return Si.object(t)&&Ai(e,t),Si.string(n)&&(e.innerText=n),e}function Ii(e,t,n,i){Si.element(t)&&t.appendChild(Mi(e,n,i))}function Pi(e){Si.nodeList(e)||Si.array(e)?Array.from(e).forEach(Pi):Si.element(e)&&Si.element(e.parentNode)&&e.parentNode.removeChild(e)}function ji(e){if(Si.element(e))for(var t=e.childNodes.length;0<t;)e.removeChild(e.lastChild),--t}function Bi(e,t){return Si.element(t)&&Si.element(t.parentNode)&&Si.element(e)?(t.parentNode.replaceChild(e,t),e):null}function Ri(e,t){if(!Si.string(e)||Si.empty(e))return{};var r={},s=t;return e.split(",").forEach(function(e){var t=e.trim(),n=t.replace(".",""),e=t.replace(/[[\]]/g,"").split("="),i=e[0],o=1<e.length?e[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Si.object(s)&&Si.string(s.class)&&(s.class+=" ".concat(n)),r.class=n;break;case"#":r.id=t.replace("#","");break;case"[":r[i]=o}}),r}function zi(e,t){Si.element(e)&&((t=!Si.boolean(t=t)?!e.hidden:t)?e.setAttribute("hidden",""):e.removeAttribute("hidden"))}function Ni(e,t,n){if(Si.nodeList(e))return Array.from(e).map(function(e){return Ni(e,t,n)});if(Si.element(e)){var i=void 0!==n?n?"add":"remove":"toggle";return e.classList[i](t),e.classList.contains(t)}return!1}function Di(e,t){return Si.element(e)&&e.classList.contains(t)}function Hi(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function Wi(e){return this.elements.container.querySelectorAll(e)}function qi(e){return this.elements.container.querySelector(e)}function Fi(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Si.element(e)&&(e.focus({preventScroll:!0}),t&&Ni(e,this.config.classNames.tabFocus))}var Ui,Yi=(Ui=document.createElement("span"),ke={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Be=Object.keys(ke).find(function(e){return void 0!==Ui.style[e]}),!!Si.string(Be)&&ke[Be]);function Vi(e){setTimeout(function(){try{zi(e,!0),e.offsetHeight,zi(e,!1)}catch(e){}},0)}var Xi={isIE:!!document.documentMode,isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},$i={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Gi={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){n=Xi.isIPhone&&n&&Gi.playsinline,t=Gi[e]||"html5"!==t;return{api:t,ui:t&&Gi.rangeInput&&("video"!==e||!Xi.isIPhone||n)}},pip:!(Xi.isIPhone||!Si.function(Mi("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Mi("video").disablePictureInPicture)),airplay:Si.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){var t=ln(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys($i).includes(n)&&(n+='; codecs="'.concat($i[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:((Be=document.createElement("input")).type="range")===Be.type,touch:"ontouchstart"in document.documentElement,transitions:!1!==Yi,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ki={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(e){return Gi.mime.call(t,e.getAttribute("type"))}):[]},getQualityOptions:function(){return Ki.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}).filter(Boolean)},extend:function(){var s;this.isHTML5&&(s=this,Object.defineProperty(s.media,"quality",{get:function(){var e=Ki.getSources.call(s).find(function(e){return e.getAttribute("src")===s.source});return e&&Number(e.getAttribute("size"))},set:function(t){var e,n,i,o,r=Ki.getSources.call(s).find(function(e){return Number(e.getAttribute("size"))===t});r&&(o=s.media,e=o.currentTime,n=o.paused,i=o.preload,o=o.readyState,s.media.src=r.getAttribute("src"),"none"===i&&!o||(s.once("loadedmetadata",function(){s.currentTime=e,n||s.play()}),s.media.load()),Li.call(s,s.media,"qualitychange",!1,{quality:t}))}}))},cancelRequests:function(){this.isHTML5&&(Pi(Ki.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Qi(n){return Si.array(n)?n.filter(function(e,t){return n.indexOf(e)===t}):n}function Ji(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function Zi(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,n=new Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(!n.length)return t;var o=n.shift();return Si.object(o)?(Object.keys(o).forEach(function(e){Si.object(o[e])?(Object.keys(t).includes(e)||Object.assign(t,an({},e,{})),Zi(t[e],o[e])):Object.assign(t,an({},e,o[e]))}),Zi.apply(void 0,[t].concat(n))):t}var eo=u.f,Le=Le.f,to=so=S.RegExp,no=so.prototype,io=/a/g,oo=/a/g,ro=new so(io)!==io;if(i&&(!ro||x(function(){return oo[z("match")]=!1,so(io)!=io||so(oo)==oo||"/a/i"!=so(io,"i")}))){for(var so=function(e,t){var n=this instanceof so,i=Ze(e),o=void 0===t;return!n&&i&&e.constructor===so&&o?e:ue(ro?new to(i&&!o?e.source:e,t):to((i=e instanceof so)?e.source:e,i&&o?rt.call(e):t),n?this:no,so)},ao=Le(to),lo=0;ao.length>lo;)!function(t){t in so||eo(so,t,{configurable:!0,get:function(){return to[t]},set:function(e){to[t]=e}})}(ao[lo++]);(no.constructor=so).prototype=no,_(S,"RegExp",so)}function co(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Si.empty(e)?e:e.toString().replace(/{(\d+)}/g,function(e,t){return n[t].toString()})}function uo(e,t,n){e=0<arguments.length&&void 0!==e?e:"",t=1<arguments.length&&void 0!==t?t:"",n=2<arguments.length&&void 0!==n?n:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),n.toString())}function ho(e){return(0<arguments.length&&void 0!==e?e:"").toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function fo(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}Pe("RegExp");function po(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(Si.empty(e)||Si.empty(t))return"";var n=Ji(t.i18n,e);return Si.empty(n)?Object.keys(mo).includes(e)?mo[e]:"":(t={"{seektime}":t.seekTime,"{title}":t.title},Object.entries(t).forEach(function(e){var t=ln(e,2),e=t[0],t=t[1];n=uo(n,e,t)}),n)}var mo={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},go=(sn(yo,[{key:"get",value:function(e){if(!yo.supported||!this.enabled)return null;var t=window.localStorage.getItem(this.key);if(Si.empty(t))return null;t=JSON.parse(t);return Si.string(e)&&e.length?t[e]:t}},{key:"set",value:function(e){var t;yo.supported&&this.enabled&&Si.object(e)&&(t=this.get(),Zi(t=Si.empty(t)?{}:t,e),window.localStorage.setItem(this.key,JSON.stringify(t)))}}],[{key:"supported",get:function(){try{return"localStorage"in window?(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0):!1}catch(e){return!1}}}]),yo);function yo(e){on(this,yo),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}function vo(e,t){var o=1<arguments.length&&void 0!==t?t:"text";return new Promise(function(t,n){try{var i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",function(){if("text"===o)try{t(JSON.parse(i.responseText))}catch(e){t(i.responseText)}else t(i.response)}),i.addEventListener("error",function(){throw new Error(i.status)}),i.open("GET",e,!0),i.responseType=o,i.send()}catch(e){n(e)}})}function bo(e,t){var n,i,o,r,s,a;Si.string(e)&&(n=Si.string(t),i=function(){return null!==document.getElementById(t)},o=function(e,t){e.innerHTML=t,n&&i()||document.body.insertAdjacentElement("afterbegin",e)},n&&i()||(r=go.supported,(s=document.createElement("div")).setAttribute("hidden",""),n&&s.setAttribute("id",t),r&&null!==(a=window.localStorage.getItem("".concat("cache","-").concat(t)))&&(a=JSON.parse(a),o(s,a.content)),vo(e).then(function(e){Si.empty(e)||(r&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),o(s,e))}).catch(function(){})))}function wo(e){return parseInt(e/60/60%60,10)}function xo(e,t,n){var i=0<arguments.length&&void 0!==e?e:0,o=1<arguments.length&&void 0!==t&&t,r=2<arguments.length&&void 0!==n&&n;if(!Si.number(i))return xo(null,o,r);function s(e){return"0".concat(e).slice(-2)}e=wo(i),t=parseInt(i/60%60,10),n=parseInt(i%60,10),e=o||0<e?"".concat(e,":"):"";return"".concat(r&&0<i?"-":"").concat(e).concat(s(t),":").concat(s(n))}var So={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||Xi.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=qi.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Wi.call(this,this.config.selectors.buttons.play),pause:qi.call(this,this.config.selectors.buttons.pause),restart:qi.call(this,this.config.selectors.buttons.restart),rewind:qi.call(this,this.config.selectors.buttons.rewind),fastForward:qi.call(this,this.config.selectors.buttons.fastForward),mute:qi.call(this,this.config.selectors.buttons.mute),pip:qi.call(this,this.config.selectors.buttons.pip),airplay:qi.call(this,this.config.selectors.buttons.airplay),settings:qi.call(this,this.config.selectors.buttons.settings),captions:qi.call(this,this.config.selectors.buttons.captions),fullscreen:qi.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=qi.call(this,this.config.selectors.progress),this.elements.inputs={seek:qi.call(this,this.config.selectors.inputs.seek),volume:qi.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:qi.call(this,this.config.selectors.display.buffer),currentTime:qi.call(this,this.config.selectors.display.currentTime),duration:qi.call(this,this.config.selectors.display.duration)},Si.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n=So.getIconUrl.call(this),i="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),n=document.createElementNS("http://www.w3.org/2000/svg","svg");Ai(n,Zi(t,{role:"presentation",focusable:"false"}));t=document.createElementNS("http://www.w3.org/2000/svg","use"),e="".concat(i,"-").concat(e);return"href"in t&&t.setAttributeNS("http://www.w3.org/1999/xlink","href",e),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e),n.appendChild(t),n},createLabel:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=po(e,this.config);return Mi("span",Object.assign({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),e)},createBadge:function(e){if(Si.empty(e))return null;var t=Mi("span",{class:this.config.classNames.menu.value});return t.appendChild(Mi("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=Object.assign({},t),i=function(e){return(e=function(e){e=uo(e=(0<arguments.length&&void 0!==e?e:"").toString(),"-"," ");return e=uo(e,"_"," "),uo(e=ho(e)," ","")}(e=(0<arguments.length&&void 0!==e?e:"").toString())).charAt(0).toLowerCase()+e.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(function(e){Object.keys(n).includes(e)&&(o[e]=n[e],delete n[e])}),"button"!==o.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.includes(this.config.classNames.control)||(n.class+=" ".concat(this.config.classNames.control)):n.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":n.class+=" ".concat(this.config.classNames.control,"--overlaid"),o.label=i="play",o.icon="play";break;default:Si.empty(o.label)&&(o.label=i),Si.empty(o.icon)&&(o.icon=e)}t=Mi(o.element);return o.toggle?(t.appendChild(So.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),t.appendChild(So.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),t.appendChild(So.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),t.appendChild(So.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(t.appendChild(So.createIcon.call(this,o.icon)),t.appendChild(So.createLabel.call(this,o.label))),Zi(n,Ri(this.config.selectors.buttons[i],n)),Ai(t,n),"play"===i?(Si.array(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(t)):this.elements.buttons[i]=t,t},createRange:function(e,t){t=Mi("input",Zi(Ri(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":po(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=t,So.updateRangeFill.call(this,t),t},createProgress:function(e,t){var n=Mi("progress",Zi(Ri(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"presentation","aria-hidden":!0},t));return"volume"!==e&&(n.appendChild(Mi("span",null,"0")),t=(t={played:"played",buffer:"buffered"}[e])?po(t,this.config):"",n.innerText="% ".concat(t.toLowerCase())),this.elements.display[e]=n},createTime:function(e){var t=Ri(this.config.selectors.display[e]),t=Mi("div",Zi(t,{class:"".concat(this.config.classNames.display.time," ").concat(t.class||"").trim(),"aria-label":po(e,this.config)}),"00:00");return this.elements.display[e]=t},bindMenuItemShortcuts:function(i,o){var r=this;_i(i,"keydown keyup",function(e){var t,n;[32,38,39,40].includes(e.which)&&(e.preventDefault(),e.stopPropagation(),"keydown"!==e.type)&&(!(n=Hi(i,'[role="menuitemradio"]'))&&[32,39].includes(e.which)?So.showMenuPanel.call(r,o,!0):32!==e.which&&(40===e.which||n&&39===e.which?(t=i.nextElementSibling,Si.element(t)||(t=i.parentNode.firstElementChild)):(t=i.previousElementSibling,Si.element(t)||(t=i.parentNode.lastElementChild)),Fi.call(r,t,!0)))},!1),_i(i,"keyup",function(e){13===e.which&&So.focusFirstMenuItem.call(r,null,!0)})},createMenuItem:function(e){var t=this,n=e.value,i=e.list,o=e.type,r=e.title,s=e.badge,a=void 0===s?null:s,s=e.checked,e=void 0!==s&&s,s=Ri(this.config.selectors.inputs[o]),l=Mi("button",Zi(s,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(s.class||"").trim(),"aria-checked":e,value:n})),e=Mi("span");e.innerHTML=r,Si.element(a)&&e.appendChild(a),l.appendChild(e),Object.defineProperty(l,"checked",{enumerable:!0,get:function(){return"true"===l.getAttribute("aria-checked")},set:function(e){e&&Array.from(l.parentNode.children).filter(function(e){return Hi(e,'[role="menuitemradio"]')}).forEach(function(e){return e.setAttribute("aria-checked","false")}),l.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(l,"click keyup",function(e){if(!Si.keyboardEvent(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),l.checked=!0,o){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}So.showMenuPanel.call(t,"home",Si.keyboardEvent(e))}},o,!1),So.bindMenuItemShortcuts.call(this,l,o),i.appendChild(l)},formatTime:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return Si.number(e)?xo(e,0<wo(this.duration),t):e},updateTimeDisplay:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];Si.element(e)&&Si.number(t)&&(e.innerText=So.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(Si.element(this.elements.inputs.volume)&&So.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Si.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;Si.element(e)&&(e.value=t,So.updateRangeFill.call(this,e))},updateProgress:function(e){var n=this;if(this.supported.ui&&Si.event(e)){var t,i,o;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":t=this.currentTime,i=this.duration,o=0===t||0===i||Number.isNaN(t)||Number.isNaN(i)?0:(t/i*100).toFixed(2),"timeupdate"===e.type&&So.setRange.call(this,this.elements.inputs.seek,o);break;case"playing":case"progress":!function(e,t){t=Si.number(t)?t:0,e=Si.element(e)?e:n.elements.display.buffer;Si.element(e)&&(e.value=t,e=e.getElementsByTagName("span")[0],Si.element(e)&&(e.childNodes[0].nodeValue=t))}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t,n,i=Si.event(e)?e.target:e;Si.element(i)&&"range"===i.getAttribute("type")&&(Hi(i,this.config.selectors.inputs.seek)?(i.setAttribute("aria-valuenow",this.currentTime),t=So.formatTime(this.currentTime),n=So.formatTime(this.duration),e=po("seekLabel",this.config),i.setAttribute("aria-valuetext",e.replace("{currentTime}",t).replace("{duration}",n))):Hi(i,this.config.selectors.inputs.volume)?(n=100*i.value,i.setAttribute("aria-valuenow",n),i.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))):i.setAttribute("aria-valuenow",i.value),Xi.isWebkit&&i.style.setProperty("--value","".concat(i.value/i.max*100,"%")))},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&Si.element(this.elements.inputs.seek)&&Si.element(this.elements.display.seekTooltip)&&0!==this.duration){var n=0,i=this.elements.progress.getBoundingClientRect(),o="".concat(this.config.classNames.tooltip,"--visible"),r=function(e){Ni(t.elements.display.seekTooltip,o,e)};if(this.touch)r(!1);else{if(Si.event(e))n=100/i.width*(e.pageX-i.left);else{if(!Di(this.elements.display.seekTooltip,o))return;n=parseFloat(this.elements.display.seekTooltip.style.left,10)}n<0?n=0:100<n&&(n=100),So.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*n),this.elements.display.seekTooltip.style.left="".concat(n,"%"),Si.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!Si.element(this.elements.display.duration)&&this.config.invertTime;So.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||So.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return zi(this.elements.display.currentTime,!0),void zi(this.elements.progress,!0);Si.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Si.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&So.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&So.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),So.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){zi(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var i=this.elements.settings.panels[e],o=null,t=t;if("captions"===e)o=this.currentTrack;else{if(o=Si.empty(n)?this[e]:n,Si.empty(o)&&(o=this.config[e].default),!Si.empty(this.options[e])&&!this.options[e].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(e));if(!this.config[e].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(e))}Si.element(t)||(t=i&&i.querySelector('[role="menu"]')),Si.element(t)&&(this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=So.getLabel.call(this,e,o),o=t&&t.querySelector('[value="'.concat(o,'"]')),Si.element(o)&&(o.checked=!0))},getLabel:function(e,t){switch(e){case"speed":return 1===t?po("normal",this.config):"".concat(t,"&times;");case"quality":if(Si.number(t)){var n=po("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return ho(t);case"captions":return Co.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t,i=this;Si.element(this.elements.settings.panels.quality)&&(t=this.elements.settings.panels.quality.querySelector('[role="menu"]'),Si.array(e)&&(this.options.quality=Qi(e).filter(function(e){return i.config.quality.options.includes(e)})),e=!Si.empty(this.options.quality)&&1<this.options.quality.length,So.toggleMenuButton.call(this,"quality",e),ji(t),So.checkMenu.call(this),e&&(this.options.quality.sort(function(e,t){var n=i.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1}).forEach(function(e){So.createMenuItem.call(i,{value:e,list:t,type:"quality",title:So.getLabel.call(i,"quality",e),badge:function(e){e=po("qualityBadge.".concat(e),i.config);return e.length?So.createBadge.call(i,e):null}(e)})}),So.updateSetting.call(this,"quality",t)))},setCaptionsMenu:function(){var n,e,t,i=this;Si.element(this.elements.settings.panels.captions)&&(n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=Co.getTracks.call(this),e=Boolean(t.length),So.toggleMenuButton.call(this,"captions",e),ji(n),So.checkMenu.call(this),e&&((t=t.map(function(e,t){return{value:t,checked:i.captions.toggled&&i.currentTrack===t,title:Co.getLabel.call(i,e),badge:e.language&&So.createBadge.call(i,e.language.toUpperCase()),list:n,type:"language"}})).unshift({value:-1,checked:!this.captions.toggled,title:po("disabled",this.config),list:n,type:"language"}),t.forEach(So.createMenuItem.bind(this)),So.updateSetting.call(this,"captions",n)))},setSpeedMenu:function(e){var t,n=this;Si.element(this.elements.settings.panels.speed)&&(t=this.elements.settings.panels.speed.querySelector('[role="menu"]'),Si.array(e)?this.options.speed=e:(this.isHTML5||this.isVimeo)&&(this.options.speed=[.5,.75,1,1.25,1.5,1.75,2]),this.options.speed=this.options.speed.filter(function(e){return n.config.speed.options.includes(e)}),e=!Si.empty(this.options.speed)&&1<this.options.speed.length,So.toggleMenuButton.call(this,"speed",e),ji(t),So.checkMenu.call(this),e&&(this.options.speed.forEach(function(e){So.createMenuItem.call(n,{value:e,list:t,type:"speed",title:So.getLabel.call(n,"speed",e)})}),So.updateSetting.call(this,"speed",t)))},checkMenu:function(){var e=this.elements.settings.buttons,e=!Si.empty(e)&&Object.values(e).some(function(e){return!e.hidden});zi(this.elements.settings.menu,!e)},focusFirstMenuItem:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.elements.settings.popup.hidden||(e=(e=!Si.element(e=e)?Object.values(this.elements.settings.panels).find(function(e){return!e.hidden}):e).querySelector('[role^="menuitem"]'),Fi.call(this,e,t))},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(Si.element(t)&&Si.element(n)){var i=t.hidden,o=i;if(Si.boolean(e))o=e;else if(Si.keyboardEvent(e)&&27===e.which)o=!1;else if(Si.event(e)){var r=t.contains(e.target);if(r||!r&&e.target!==n&&o)return}n.setAttribute("aria-expanded",o),zi(t,!o),Ni(this.elements.container,this.config.classNames.menu.open,o),o&&Si.keyboardEvent(e)?So.focusFirstMenuItem.call(this,null,!0):o||i||Fi.call(this,n,Si.keyboardEvent(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,e=t.scrollHeight;return Pi(t),{width:n,height:e}},showMenuPanel:function(){var n,e,i=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=document.getElementById("plyr-settings-".concat(this.id,"-").concat(t));Si.element(r)&&(n=r.parentNode,e=Array.from(n.children).find(function(e){return!e.hidden}),Gi.transitions&&!Gi.reducedMotion&&(n.style.width="".concat(e.scrollWidth,"px"),n.style.height="".concat(e.scrollHeight,"px"),t=So.getMenuSize.call(this,r),_i.call(this,n,Yi,function e(t){t.target===n&&["width","height"].includes(t.propertyName)&&(n.style.width="",n.style.height="",Ci.call(i,n,Yi,e))}),n.style.width="".concat(t.width,"px"),n.style.height="".concat(t.height,"px")),zi(e,!0),zi(r,!1),So.focusFirstMenuItem.call(this,r,o))},setDownloadLink:function(){var e=this.elements.buttons.download;Si.element(e)&&e.setAttribute("href",this.download)},create:function(o){var e,t,r,n,s,i,a,l=this,c=Mi("div",Ri(this.config.selectors.controls.wrapper));return this.config.controls.includes("restart")&&c.appendChild(So.createButton.call(this,"restart")),this.config.controls.includes("rewind")&&c.appendChild(So.createButton.call(this,"rewind")),this.config.controls.includes("play")&&c.appendChild(So.createButton.call(this,"play")),this.config.controls.includes("fast-forward")&&c.appendChild(So.createButton.call(this,"fast-forward")),this.config.controls.includes("progress")&&((t=Mi("div",Ri(this.config.selectors.progress))).appendChild(So.createRange.call(this,"seek",{id:"plyr-seek-".concat(o.id)})),t.appendChild(So.createProgress.call(this,"buffer")),this.config.tooltips.seek&&(e=Mi("span",{class:this.config.classNames.tooltip},"00:00"),t.appendChild(e),this.elements.display.seekTooltip=e),this.elements.progress=t,c.appendChild(this.elements.progress)),this.config.controls.includes("current-time")&&c.appendChild(So.createTime.call(this,"currentTime")),this.config.controls.includes("duration")&&c.appendChild(So.createTime.call(this,"duration")),(this.config.controls.includes("mute")||this.config.controls.includes("volume"))&&(n=Mi("div",{class:"plyr__volume"}),this.config.controls.includes("mute")&&n.appendChild(So.createButton.call(this,"mute")),this.config.controls.includes("volume")&&(t={max:1,step:.05,value:this.config.volume},n.appendChild(So.createRange.call(this,"volume",Zi(t,{id:"plyr-volume-".concat(o.id)}))),this.elements.volume=n),c.appendChild(n)),this.config.controls.includes("captions")&&c.appendChild(So.createButton.call(this,"captions")),this.config.controls.includes("settings")&&!Si.empty(this.config.settings)&&((a=Mi("div",{class:"plyr__menu",hidden:""})).appendChild(So.createButton.call(this,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(o.id),"aria-expanded":!1})),i=Mi("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(o.id),hidden:""}),r=Mi("div"),n=Mi("div",{id:"plyr-settings-".concat(o.id,"-home")}),s=Mi("div",{role:"menu"}),n.appendChild(s),r.appendChild(n),this.elements.settings.panels.home=n,this.config.settings.forEach(function(e){var t=Mi("button",Zi(Ri(l.config.selectors.buttons.settings),{type:"button",class:"".concat(l.config.classNames.control," ").concat(l.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));So.bindMenuItemShortcuts.call(l,t,e),_i(t,"click",function(){So.showMenuPanel.call(l,e,!1)});var n=Mi("span",null,po(e,l.config)),i=Mi("span",{class:l.config.classNames.menu.value});i.innerHTML=o[e],n.appendChild(i),t.appendChild(n),s.appendChild(t);i=Mi("div",{id:"plyr-settings-".concat(o.id,"-").concat(e),hidden:""}),n=Mi("button",{type:"button",class:"".concat(l.config.classNames.control," ").concat(l.config.classNames.control,"--back")});n.appendChild(Mi("span",{"aria-hidden":!0},po(e,l.config))),n.appendChild(Mi("span",{class:l.config.classNames.hidden},po("menuBack",l.config))),_i(i,"keydown",function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),So.showMenuPanel.call(l,"home",!0))},!1),_i(n,"click",function(){So.showMenuPanel.call(l,"home",!1)}),i.appendChild(n),i.appendChild(Mi("div",{role:"menu"})),r.appendChild(i),l.elements.settings.buttons[e]=t,l.elements.settings.panels[e]=i}),i.appendChild(r),a.appendChild(i),c.appendChild(a),this.elements.settings.popup=i,this.elements.settings.menu=a),this.config.controls.includes("pip")&&Gi.pip&&c.appendChild(So.createButton.call(this,"pip")),this.config.controls.includes("airplay")&&Gi.airplay&&c.appendChild(So.createButton.call(this,"airplay")),this.config.controls.includes("download")&&(i={element:"a",href:this.download,target:"_blank"},a=this.config.urls.download,!Si.url(a)&&this.isEmbed&&Zi(i,{icon:"logo-".concat(this.provider),label:this.provider}),c.appendChild(So.createButton.call(this,"download",i))),this.config.controls.includes("fullscreen")&&c.appendChild(So.createButton.call(this,"fullscreen")),this.config.controls.includes("play-large")&&this.elements.container.appendChild(So.createButton.call(this,"play-large")),this.elements.controls=c,this.isHTML5&&So.setQualityMenu.call(this,Ki.getQualityOptions.call(this)),So.setSpeedMenu.call(this),c},inject:function(){var n=this;!this.config.loadSprite||(s=So.getIconUrl.call(this)).cors&&bo(s.url,"sprite-plyr"),this.id=Math.floor(1e4*Math.random());var e=null;this.elements.controls=null;var t={id:this.id,seektime:this.config.seekTime,title:this.config.title},i=!0;Si.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),Si.element(this.config.controls)||Si.string(this.config.controls)?e=this.config.controls:(e=So.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Co.getLabel.call(this)}),i=!1);var o,r,s=function(e){var n=e;return Object.entries(t).forEach(function(e){var t=ln(e,2),e=t[0],t=t[1];n=uo(n,"{".concat(e,"}"),t)}),n};i&&(Si.string(this.config.controls)?e=s(e):Si.element(e)&&(e.innerHTML=s(e.innerHTML))),Si.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),(r=!Si.element(r)?this.elements.container:r)[Si.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),Si.element(this.elements.controls)||So.findElements.call(this),Si.empty(this.elements.buttons)||(o=function(e){var t=n.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return Di(e,t)},set:function(){Ni(e,t,0<arguments.length&&void 0!==arguments[0]&&arguments[0])}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){Si.array(e)||Si.nodeList(e)?Array.from(e).filter(Boolean).forEach(o):o(e)})),window.navigator.userAgent.includes("Edge")&&Vi(r),this.config.tooltips.controls&&(r=(e=this.config).classNames,e=e.selectors,r="".concat(e.controls.wrapper," ").concat(e.labels," .").concat(r.hidden),r=Wi.call(this,r),Array.from(r).forEach(function(e){Ni(e,n.config.classNames.hidden,!1),Ni(e,n.config.classNames.tooltip,!0)}))}};function ko(e,t){var n=e;1<arguments.length&&void 0!==t&&!t||((t=document.createElement("a")).href=n,n=t.href);try{return new URL(n)}catch(e){return null}}function To(e){var n=new URLSearchParams;return Si.object(e)&&Object.entries(e).forEach(function(e){var t=ln(e,2),e=t[0],t=t[1];n.set(e,t)}),n}function _o(){}var Co={setup:function(){var e,t,n;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!Gi.textTracks?Si.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&So.setCaptionsMenu.call(this):(Si.element(this.elements.captions)||(this.elements.captions=Mi("div",Ri(this.config.selectors.captions)),n=this.elements.captions,e=this.elements.wrapper,Si.element(n)&&Si.element(e)&&e.parentNode.insertBefore(n,e.nextSibling)),Xi.isIE&&window.URL&&(t=this.media.querySelectorAll("track"),Array.from(t).forEach(function(t){var e=t.getAttribute("src"),n=ko(e);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&vo(e,"blob").then(function(e){t.setAttribute("src",window.URL.createObjectURL(e))}).catch(function(){Pi(t)})})),n=Qi((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(e){return e.split("-")[0]})),"auto"===(e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase())&&(e=ln(n,1)[0]),t=this.storage.get("captions"),Si.boolean(t)||(t=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:t,language:e,languages:n}),this.isHTML5&&(n=this.config.captions.update?"addtrack removetrack":"removetrack",_i.call(this,this.media.textTracks,n,Co.update.bind(this))),setTimeout(Co.update.bind(this),0)))},update:function(){var t=this,e=Co.getTracks.call(this,!0),n=this.captions,i=n.active,o=n.language,r=n.meta,s=n.currentTrackNode,n=Boolean(e.find(function(e){return e.language===o}));this.isHTML5&&this.isVideo&&e.filter(function(e){return!r.get(e)}).forEach(function(e){t.debug.log("Track added",e),r.set(e,{default:"showing"===e.mode}),e.mode="hidden",_i.call(t,e,"cuechange",function(){return Co.updateCues.call(t)})}),(n&&this.language!==o||!e.includes(s))&&(Co.setLanguage.call(this,o),Co.toggle.call(this,i&&n)),Ni(this.elements.container,this.config.classNames.captions.enabled,!Si.empty(e)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&So.setCaptionsMenu.call(this)},toggle:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,i=this.config.classNames.captions.active,e=Si.nullOrUndefined(e)?!n:e;if(e!==n){if(t||(this.captions.active=e,this.storage.set({captions:e})),!this.language&&e&&!t){n=Co.getTracks.call(this),t=Co.findTrack.call(this,[this.captions.language].concat(function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t=this.captions.languages)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),!0);return this.captions.language=t.language,void Co.set.call(this,n.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=e),Ni(this.elements.container,i,e),this.captions.toggled=e,So.updateSetting.call(this,"captions"),Li.call(this,this.media,e?"captionsenabled":"captionsdisabled")}}},set:function(e){var t,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=Co.getTracks.call(this);-1!==e?Si.number(e)?e in i?(this.captions.currentTrack!==e&&(i=((t=i[this.captions.currentTrack=e])||{}).language,this.captions.currentTrackNode=t,So.updateSetting.call(this,"captions"),n||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i),Li.call(this,this.media,"languagechange")),Co.toggle.call(this,!0,n),this.isHTML5&&this.isVideo&&Co.updateCues.call(this)):this.debug.warn("Track not found",e):this.debug.warn("Invalid caption argument",e):Co.toggle.call(this,!1,n)},setLanguage:function(e){var t,n,i=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];Si.string(e)?(n=e.toLowerCase(),this.captions.language=n,t=Co.getTracks.call(this),n=Co.findTrack.call(this,[n]),Co.set.call(this,t.indexOf(n),i)):this.debug.warn("Invalid language argument",e)},getTracks:function(){var t=this,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(e){return!t.isHTML5||n||t.captions.meta.has(e)}).filter(function(e){return["captions","subtitles"].includes(e.kind)})},findTrack:function(e){function n(e){return Number((t.captions.meta.get(e)||{}).default)}var i,t=this,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Co.getTracks.call(this),s=Array.from(r).sort(function(e,t){return n(t)-n(e)});return e.every(function(t){return!(i=s.find(function(e){return e.language===t}))}),i||(o?s[0]:void 0)},getCurrentTrack:function(){return Co.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Si.track(t)&&Gi.textTracks&&this.captions.toggled&&(t=Co.getCurrentTrack.call(this)),Si.track(t)?Si.empty(t.label)?Si.empty(t.language)?po("enabled",this.config):e.language.toUpperCase():t.label:po("disabled",this.config)},updateCues:function(e){var t,n;this.supported.ui&&(Si.element(this.elements.captions)?Si.nullOrUndefined(e)||Array.isArray(e)?((n=e)||(t=Co.getCurrentTrack.call(this),n=Array.from((t||{}).activeCues||[]).map(function(e){return e.getCueAsHTML()}).map(fo)),(t=n.map(function(e){return e.trim()}).join("\n"))!==this.elements.captions.innerHTML&&(ji(this.elements.captions),(n=Mi("span",Ri(this.config.selectors.caption))).innerHTML=t,this.elements.captions.appendChild(n),Li.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",e):this.debug.warn("No captions element to render to"))}},Eo={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:"16:9",clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.4.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://www.googleapis.com/youtube/v3/videos?id={0}&key={1}&fields=items(snippet(title))&part=snippet"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption",menu:{quality:".js-plyr__menu__list--quality"}},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus"},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},keys:{google:null},ads:{enabled:!1,publisherId:""}},Lo="picture-in-picture",Oo={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ao="audio",Mo="video",Io=(sn(Po,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):_o}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):_o}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):_o}}]),Po);function Po(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];on(this,Po),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}function jo(){var e;this.enabled&&(e=this.player.elements.buttons.fullscreen,Si.element(e)&&(e.pressed=this.active),Li.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0),Xi.isIos||function(){var n,i,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Si.element(e)&&(e=Wi.call(this,"button:not(:disabled), input:not(:disabled), [tabindex]"),n=e[0],i=e[e.length-1],Ti.call(this,this.elements.container,"keydown",function(e){var t;"Tab"===e.key&&9===e.keyCode&&((t=document.activeElement)!==i||e.shiftKey?t===n&&e.shiftKey&&(i.focus(),e.preventDefault()):(n.focus(),e.preventDefault()))},t,!1))}.call(this.player,this.target,this.active))}function Bo(){var e,t,n,i=this,o=0<arguments.length&&void 0!==arguments[0]&&arguments[0];o?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=o?"hidden":"",Ni(this.target,this.player.config.classNames.fullscreen.fallback,o),Xi.isIos&&(e=document.head.querySelector('meta[name="viewport"]'),t="viewport-fit=cover",e||(e=document.createElement("meta")).setAttribute("name","viewport"),n=Si.string(e.content)&&e.content.includes(t),o?(this.cleanupViewport=!n,n||(e.content+=",".concat(t))):this.cleanupViewport&&(e.content=e.content.split(",").filter(function(e){return e.trim()!==t}).join(",")),setTimeout(function(){return Vi(i.target)},100)),jo.call(this)}var Ro=(sn(zo,[{key:"update",value:function(){this.enabled?this.player.debug.log("".concat(zo.native?"Native":"Fallback"," fullscreen enabled")):this.player.debug.log("Fullscreen not supported and fallback disabled"),Ni(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(Xi.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():zo.native?this.prefix?Si.empty(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen():Bo.call(this,!0))}},{key:"exit",value:function(){var e;this.enabled&&(Xi.isIos&&this.player.config.fullscreen.iosNative?(this.target.webkitExitFullscreen(),this.player.play()):zo.native?this.prefix?Si.empty(this.prefix)||(e="moz"===this.prefix?"Cancel":"Exit",document["".concat(this.prefix).concat(e).concat(this.property)]()):(document.cancelFullScreen||document.exitFullscreen).call(document):Bo.call(this,!1))}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"enabled",get:function(){return(zo.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(zo.native?(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target:Di(this.target,this.player.config.classNames.fullscreen.fallback))}},{key:"target",get:function(){return Xi.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Si.function(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some(function(e){return!(!Si.function(document["".concat(e,"ExitFullscreen")])&&!Si.function(document["".concat(e,"CancelFullScreen")])||(t=e,0))}),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),zo),Le=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function zo(e){var t=this;on(this,zo),this.player=e,this.prefix=zo.prefix,this.property=zo.property,this.scrollPosition={x:0,y:0},_i.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){jo.call(t)}),_i.call(this.player,this.player.elements.container,"dblclick",function(e){Si.element(t.player.elements.controls)&&t.player.elements.controls.contains(e.target)||t.toggle()}),this.update()}function No(o,e){var r=1<arguments.length&&void 0!==e?e:1;return new Promise(function(e,t){function n(){delete i.onload,delete i.onerror,(i.naturalWidth>=r?e:t)(i)}var i=new Image;Object.assign(i,{onload:n,onerror:n,src:o})})}j(j.S,"Math",{sign:Le});var Do={addStyleHook:function(){Ni(this.elements.container,this.config.selectors.container.replace(".",""),!0),Ni(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Do.toggleNativeControls.call(this,!0);Si.element(this.elements.controls)||(So.inject.call(this),this.listeners.controls()),Do.toggleNativeControls.call(this),this.isHTML5&&Co.setup.call(this),this.volume=null,this.muted=null,this.speed=null,this.loop=null,this.quality=null,So.updateVolume.call(this),So.timeUpdate.call(this),Do.checkPlaying.call(this),Ni(this.elements.container,this.config.classNames.pip.supported,Gi.pip&&this.isHTML5&&this.isVideo),Ni(this.elements.container,this.config.classNames.airplay.supported,Gi.airplay&&this.isHTML5),Ni(this.elements.container,this.config.classNames.isIos,Xi.isIos),Ni(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){Li.call(e,e.media,"ready")},0),Do.setTitle.call(this),this.poster&&Do.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&So.durationUpdate.call(this)},setTitle:function(){var e,t,n,i=po("play",this.config);Si.string(this.config.title)&&!Si.empty(this.config.title)&&(i+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(e){e.setAttribute("aria-label",i)}),this.isEmbed&&(e=qi.call(this,"iframe"),Si.element(e)&&(t=Si.empty(this.config.title)?"video":this.config.title,n=po("frameTitle",this.config),e.setAttribute("title",n.replace("{title}",t))))},togglePoster:function(e){Ni(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(t){var n=this;return 1<arguments.length&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",t),function(){var t=this;return new Promise(function(e){return t.ready?setTimeout(e,0):_i.call(t,t.elements.container,"ready",e)}).then(function(){})}.call(this).then(function(){return No(t)}).catch(function(e){throw t===n.poster&&Do.togglePoster.call(n,!1),e}).then(function(){if(t!==n.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(n.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Do.togglePoster.call(n,!0),t})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(e){var t=this;Ni(this.elements.container,this.config.classNames.playing,this.playing),Ni(this.elements.container,this.config.classNames.paused,this.paused),Ni(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(e){e.pressed=t.playing}),Si.event(e)&&"timeupdate"===e.type||Do.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){Ni(t.elements.container,t.config.classNames.loading,t.loading),Do.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(e){var t,n=this.elements.controls;n&&this.config.hideControls&&(t=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(e||this.loading||this.paused||n.pressed||n.hover||t)))}},Ho=(sn(qo,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,i=e.keyCode||e.which,o="keydown"===e.type,r=o&&i===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Si.number(i))if(o){var s=document.activeElement;if(Si.element(s)){o=t.config.selectors.editable;if(s!==n.inputs.seek&&Hi(s,o))return;if(32===e.which&&Hi(s,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r||(t.currentTime=t.duration/10*(i-48));break;case 32:case 75:r||t.togglePlay();break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:r||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:r||t.toggleCaptions();break;case 76:t.loop=!t.loop}!t.fullscreen.enabled&&t.fullscreen.active&&27===i&&t.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(e){So.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,Ni(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t,n=this.player,i=n.elements;clearTimeout(this.focusTimer),"keydown"===e.type&&9!==e.which||("keydown"===e.type&&(this.lastKeyDown=e.timeStamp),t=e.timeStamp-this.lastKeyDown<=20,"focus"===e.type&&!t||(t=n.config.classNames.tabFocus,Ni(Wi.call(n,".".concat(t)),t,!1),this.focusTimer=setTimeout(function(){var e=document.activeElement;i.container.contains(e)&&Ni(document.activeElement,n.config.classNames.tabFocus,!0)},10)))}},{key:"global",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&Ti.call(t,window,"keydown keyup",this.handleKey,e,!1),Ti.call(t,document.body,"click",this.toggleMenu,e),Ei.call(t,document.body,"touchstart",this.firstTouch),Ti.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var n=this.player,i=n.elements;!n.config.keyboard.global&&n.config.keyboard.focused&&_i.call(n,i.container,"keydown keyup",this.handleKey,!1),_i.call(n,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var t=i.controls;t&&"enterfullscreen"===e.type&&(t.pressed=!1,t.hover=!1);t=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Do.toggleControls.call(n,!0),t=n.touch?3e3:2e3),clearTimeout(n.timers.controls),n.timers.controls=setTimeout(function(){return Do.toggleControls.call(n,!1)},t)})}},{key:"media",value:function(){var n=this.player,i=n.elements;if(_i.call(n,n.media,"timeupdate seeking seeked",function(e){return So.timeUpdate.call(n,e)}),_i.call(n,n.media,"durationchange loadeddata loadedmetadata",function(e){return So.durationUpdate.call(n,e)}),_i.call(n,n.media,"canplay loadeddata",function(){zi(i.volume,!n.hasAudio),zi(i.buttons.mute,!n.hasAudio)}),_i.call(n,n.media,"ended",function(){n.isHTML5&&n.isVideo&&n.config.resetOnEnd&&n.restart()}),_i.call(n,n.media,"progress playing seeking seeked",function(e){return So.updateProgress.call(n,e)}),_i.call(n,n.media,"volumechange",function(e){return So.updateVolume.call(n,e)}),_i.call(n,n.media,"playing play pause ended emptied timeupdate",function(e){return Do.checkPlaying.call(n,e)}),_i.call(n,n.media,"waiting canplay seeked playing",function(e){return Do.checkLoading.call(n,e)}),_i.call(n,n.media,"playing",function(){n.ads&&n.ads.enabled&&!n.ads.initialized&&n.ads.managerPromise.then(function(){return n.ads.play()}).catch(function(){return n.play()})}),n.supported.ui&&n.config.clickToPlay&&!n.isAudio){var t=qi.call(n,".".concat(n.config.classNames.video));if(!Si.element(t))return;_i.call(n,i.container,"click",function(e){([i.container,t].includes(e.target)||t.contains(e.target))&&(n.touch&&n.config.hideControls||(n.ended?(n.restart(),n.play()):n.togglePlay()))})}n.supported.ui&&n.config.disableContextMenu&&_i.call(n,i.wrapper,"contextmenu",function(e){e.preventDefault()},!1),_i.call(n,n.media,"volumechange",function(){n.storage.set({volume:n.volume,muted:n.muted})}),_i.call(n,n.media,"ratechange",function(){So.updateSetting.call(n,"speed"),n.storage.set({speed:n.speed})}),_i.call(n,n.media,"qualitychange",function(e){So.updateSetting.call(n,"quality",null,e.detail.quality)}),_i.call(n,n.media,"ready qualitychange",function(){So.setDownloadLink.call(n)});var e=n.config.events.concat(["keyup","keydown"]).join(" ");_i.call(n,n.media,e,function(e){var t=e.detail,t=void 0===t?{}:t;"error"===e.type&&(t=n.media.error),Li.call(n,i.container,e.type,!0,t)})}},{key:"proxy",value:function(e,t,n){var i=this.player,o=i.config.listeners[n],n=!0;(n=Si.function(o)?o.call(i,e):n)&&Si.function(t)&&t.call(i,e)}},{key:"bind",value:function(e,t,n,i){var o=this,r=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],s=this.player,a=s.config.listeners[i],a=Si.function(a);_i.call(s,e,t,function(e){return o.proxy(e,n,i)},r&&!a)}},{key:"controls",value:function(){var e,o=this,r=this.player,n=r.elements,t=Xi.isIE?"change":"input";n.buttons.play&&Array.from(n.buttons.play).forEach(function(e){o.bind(e,"click",r.togglePlay,"play")}),this.bind(n.buttons.restart,"click",r.restart,"restart"),this.bind(n.buttons.rewind,"click",r.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",r.forward,"fastForward"),this.bind(n.buttons.mute,"click",function(){r.muted=!r.muted},"mute"),this.bind(n.buttons.captions,"click",function(){return r.toggleCaptions()}),this.bind(n.buttons.download,"click",function(){Li.call(r,r.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",function(){r.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",function(){r.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",r.airplay,"airplay"),this.bind(n.buttons.settings,"click",function(e){e.stopPropagation(),So.toggleMenu.call(r,e)}),this.bind(n.buttons.settings,"keyup",function(e){var t=e.which;[13,32].includes(t)&&(13!==t?(e.preventDefault(),e.stopPropagation(),So.toggleMenu.call(r,e)):So.focusFirstMenuItem.call(r,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",function(e){27===e.which&&So.toggleMenu.call(r,e)}),this.bind(n.inputs.seek,"mousedown mousemove",function(e){var t=n.progress.getBoundingClientRect(),t=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",t)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(e){var t=e.currentTarget,n=e.keyCode||e.which;Si.keyboardEvent(e)&&39!==n&&37!==n||(r.lastSeekTime=Date.now(),n=t.hasAttribute("play-on-seeked"),e=["mouseup","touchend","keyup"].includes(e.type),n&&e?(t.removeAttribute("play-on-seeked"),r.play()):!e&&r.playing&&(t.setAttribute("play-on-seeked",""),r.pause()))}),Xi.isIos&&(e=Wi.call(r,'input[type="range"]'),Array.from(e).forEach(function(e){return o.bind(e,t,function(e){return Vi(e.target)})})),this.bind(n.inputs.seek,t,function(e){var t=e.currentTarget,e=t.getAttribute("seek-value");Si.empty(e)&&(e=t.value),t.removeAttribute("seek-value"),r.currentTime=e/t.max*r.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",function(e){return So.updateSeekTooltip.call(r,e)}),Xi.isWebkit&&Array.from(Wi.call(r,'input[type="range"]')).forEach(function(e){o.bind(e,"input",function(e){return So.updateRangeFill.call(r,e.target)})}),r.config.toggleInvert&&!Si.element(n.display.duration)&&this.bind(n.display.currentTime,"click",function(){0!==r.currentTime&&(r.config.invertTime=!r.config.invertTime,So.timeUpdate.call(r))}),this.bind(n.inputs.volume,t,function(e){r.volume=e.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",function(e){n.controls.hover=!r.touch&&"mouseenter"===e.type}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){n.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(n.controls,"focusin",function(){var e=r.config,t=r.elements,n=r.timers;Ni(t.controls,e.classNames.noTransition,!0),Do.toggleControls.call(r,!0),setTimeout(function(){Ni(t.controls,e.classNames.noTransition,!1)},0);var i=o.touch?3e3:4e3;clearTimeout(n.controls),n.controls=setTimeout(function(){return Do.toggleControls.call(r,!1)},i)}),this.bind(n.inputs.volume,"wheel",function(e){var t=e.webkitDirectionInvertedFromDevice,n=ln([e.deltaX,-e.deltaY].map(function(e){return t?-e:e}),2),i=n[0],n=n[1],i=Math.sign(Math.abs(i)>Math.abs(n)?i:n);r.increaseVolume(i/50);n=r.media.volume;(1===i&&n<1||-1===i&&0<n)&&e.preventDefault()},"volume",!1)}}]),qo),Pe=u.f,Le=Function.prototype,Wo=/^\s*function ([^ (]*)/;function qo(e){on(this,qo),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}"name"in Le||i&&Pe(Le,"name",{configurable:!0,get:function(){try{return(""+this).match(Wo)[1]}catch(e){return""}}}),Ae("match",1,function(i,o,l,c){return[function(e){var t=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=c(l,e,this);if(t.done)return t.value;var n=T(e),i=String(this);if(!n.global)return ot(n,i);for(var o=n.unicode,r=[],s=n.lastIndex=0;null!==(a=ot(n,i));){var a=String(a[0]);""===(r[s]=a)&&(n.lastIndex=fn(i,M(n.lastIndex),o)),s++}return 0===s?null:r}]});var Fo=t(function(e,t){function r(e,t){if(e){var n=u[e];if(c[e]=t,n)for(;n.length;)n[0](e,t),n.splice(0,1)}}function l(e,t){e.call&&(e={success:e}),t.length?(e.error||h)(t):(e.success||h)(e)}function n(e,t,n){var i,o;if(t&&t.trim&&(i=t),o=(i?n:t)||{},i){if(i in s)throw"LoadJS";s[i]=!0}!function(e,i,t){for(var o=(e=e.push?e:[e]).length,n=o,r=[],s=function(e,t,n){if("e"==t&&r.push(e),"b"==t){if(!n)return;r.push(e)}--o||i(r)},a=0;a<n;a++)!function n(i,o,r,s){var a,l,e=document,t=r.async,c=(r.numRetries||0)+1,u=r.before||h,d=i.replace(/^(css|img)!/,"");s=s||0,/(^css!|\.css$)/.test(i)?(a=!0,(l=e.createElement("link")).rel="stylesheet",l.href=d):/(^img!|\.(png|gif|jpg|svg)$)/.test(i)?(l=e.createElement("img")).src=d:((l=e.createElement("script")).src=i,l.async=void 0===t||t),l.onload=l.onerror=l.onbeforeload=function(e){var t=e.type[0];if(a&&"hideFocus"in l)try{l.sheet.cssText.length||(t="e")}catch(e){18!=e.code&&(t="e")}if("e"==t&&(s+=1)<c)return n(i,o,r,s);o(i,t,e.defaultPrevented)},!1!==u(i,l)&&e.head.appendChild(l)}(e[a],s,t)}(e,function(e){l(o,e),r(i,e)},o)}var h,s,c,u;e.exports=(h=function(){},s={},c={},u={},n.ready=function(e,a){return function(e){e=e.push?e:[e];for(var t,n,i=[],o=e.length,r=o,s=function(e,t){t.length&&i.push(e),--r||l(a,i)};o--;)t=e[o],(n=c[t])?s(t,n):(u[t]=u[t]||[]).push(s)}(e),n},n.done=function(e){r(e,[])},n.reset=function(){s={},c={},u={}},n.isDefined=function(e){return e in s},n)});function Uo(n){return new Promise(function(e,t){Fo(n,{success:e,error:t})})}function Yo(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Li.call(this,this.media,e?"play":"pause"))}var Vo={setup:function(){var t=this;Ni(this.elements.wrapper,this.config.classNames.embed,!0),Vo.setAspectRatio.call(this),Si.object(window.Vimeo)?Vo.ready.call(this):Uo(this.config.urls.vimeo.sdk).then(function(){Vo.ready.call(t)}).catch(function(e){t.debug.warn("Vimeo API failed to load",e)})},setAspectRatio:function(e){e=ln((Si.string(e)?e:this.config.ratio).split(":").map(Number),2),e=100/e[0]*e[1];Vo.padding=e,this.elements.wrapper.style.paddingBottom="".concat(e,"%"),this.supported.ui&&(this.media.style.transform="translateY(-".concat((240-e)/4.8,"%)"))},ready:function(){var i=this,s=this,e=To({loop:s.config.loop.active,autoplay:s.autoplay,byline:!1,portrait:!1,title:!1,speed:!0,transparent:0,gesture:"media",playsinline:!this.config.fullscreen.iosNative}),t=s.media.getAttribute("src"),t=(n=t=Si.empty(t)?s.media.getAttribute(s.config.attributes.embed.id):t,Si.empty(n)?null:!Si.number(Number(n))&&n.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:n),n=Mi("iframe"),e=co(s.config.urls.vimeo.iframe,t,e);n.setAttribute("src",e),n.setAttribute("allowfullscreen",""),n.setAttribute("allowtransparency",""),n.setAttribute("allow","autoplay");e=Mi("div",{poster:s.poster,class:s.config.classNames.embedContainer});e.appendChild(n),s.media=Bi(e,s.media),vo(co(s.config.urls.vimeo.api,t),"json").then(function(e){Si.empty(e)||((e=new URL(e[0].thumbnail_large)).pathname="".concat(e.pathname.split("_")[0],".jpg"),Do.setPoster.call(s,e.href).catch(function(){}))}),s.embed=new window.Vimeo.Player(n,{autopause:s.config.autopause,muted:s.muted}),s.media.paused=!0,s.media.currentTime=0,s.supported.ui&&s.embed.disableTextTrack(),s.media.play=function(){return Yo.call(s,!0),s.embed.play()},s.media.pause=function(){return Yo.call(s,!1),s.embed.pause()},s.media.stop=function(){s.pause(),s.currentTime=0};var o=s.media.currentTime;Object.defineProperty(s.media,"currentTime",{get:function(){return o},set:function(e){var t=s.embed,n=s.media,i=s.paused,o=s.volume,r=i&&!t.hasPlayed;n.seeking=!0,Li.call(s,n,"seeking"),Promise.resolve(r&&t.setVolume(0)).then(function(){return t.setCurrentTime(e)}).then(function(){return r&&t.pause()}).then(function(){return r&&t.setVolume(o)}).catch(function(){})}});var r=s.config.speed.selected;Object.defineProperty(s.media,"playbackRate",{get:function(){return r},set:function(e){s.embed.setPlaybackRate(e).then(function(){r=e,Li.call(s,s.media,"ratechange")}).catch(function(e){"Error"===e.name&&So.setSpeedMenu.call(s,[])})}});var a=s.config.volume;Object.defineProperty(s.media,"volume",{get:function(){return a},set:function(e){s.embed.setVolume(e).then(function(){a=e,Li.call(s,s.media,"volumechange")})}});var l=s.config.muted;Object.defineProperty(s.media,"muted",{get:function(){return l},set:function(e){var t=!!Si.boolean(e)&&e;s.embed.setVolume(t?0:s.config.volume).then(function(){l=t,Li.call(s,s.media,"volumechange")})}});var c,u=s.config.loop;Object.defineProperty(s.media,"loop",{get:function(){return u},set:function(e){var t=Si.boolean(e)?e:s.config.loop.active;s.embed.setLoop(t).then(function(){u=t})}}),s.embed.getVideoUrl().then(function(e){c=e,So.setDownloadLink.call(s)}).catch(function(e){i.debug.warn(e)}),Object.defineProperty(s.media,"currentSrc",{get:function(){return c}}),Object.defineProperty(s.media,"ended",{get:function(){return s.currentTime===s.duration}}),Promise.all([s.embed.getVideoWidth(),s.embed.getVideoHeight()]).then(function(e){var t,n;Vo.ratio=(e=function e(t,n){return 0===n?t:e(n,t%n)}(t=e[0],n=e[1]),"".concat(t/e,":").concat(n/e)),Vo.setAspectRatio.call(i,Vo.ratio)}),s.embed.setAutopause(s.config.autopause).then(function(e){s.config.autopause=e}),s.embed.getVideoTitle().then(function(e){s.config.title=e,Do.setTitle.call(i)}),s.embed.getCurrentTime().then(function(e){o=e,Li.call(s,s.media,"timeupdate")}),s.embed.getDuration().then(function(e){s.media.duration=e,Li.call(s,s.media,"durationchange")}),s.embed.getTextTracks().then(function(e){s.media.textTracks=e,Co.setup.call(s)}),s.embed.on("cuechange",function(e){e=e.cues,e=(void 0===e?[]:e).map(function(e){return t=e.text,n=document.createDocumentFragment(),e=document.createElement("div"),n.appendChild(e),e.innerHTML=t,n.firstChild.innerText;var t,n});Co.updateCues.call(s,e)}),s.embed.on("loaded",function(){s.embed.getPaused().then(function(e){Yo.call(s,!e),e||Li.call(s,s.media,"playing")}),Si.element(s.embed.element)&&s.supported.ui&&s.embed.element.setAttribute("tabindex",-1)}),s.embed.on("play",function(){Yo.call(s,!0),Li.call(s,s.media,"playing")}),s.embed.on("pause",function(){Yo.call(s,!1)}),s.embed.on("timeupdate",function(e){s.media.seeking=!1,o=e.seconds,Li.call(s,s.media,"timeupdate")}),s.embed.on("progress",function(e){s.media.buffered=e.percent,Li.call(s,s.media,"progress"),1===parseInt(e.percent,10)&&Li.call(s,s.media,"canplaythrough"),s.embed.getDuration().then(function(e){e!==s.media.duration&&(s.media.duration=e,Li.call(s,s.media,"durationchange"))})}),s.embed.on("seeked",function(){s.media.seeking=!1,Li.call(s,s.media,"seeked")}),s.embed.on("ended",function(){s.media.paused=!0,Li.call(s,s.media,"ended")}),s.embed.on("error",function(e){s.media.error=e,Li.call(s,s.media,"error")}),s.on("enterfullscreen exitfullscreen",function(e){var t,n=s.fullscreen.target;n===s.elements.container&&(t="enterfullscreen"===e.type,e=(e=ln(Vo.ratio.split(":").map(Number),2))[0]>e[1]?"width":"height",n.style[e]=t?"".concat(Vo.padding,"%"):null)}),setTimeout(function(){return Do.build.call(s)},0)}};function Xo(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Li.call(this,this.media,e?"play":"pause"))}var $o={setup:function(){var t=this;Ni(this.elements.wrapper,this.config.classNames.embed,!0),$o.setAspectRatio.call(this),Si.object(window.YT)&&Si.function(window.YT.Player)?$o.ready.call(this):(Uo(this.config.urls.youtube.sdk).catch(function(e){t.debug.warn("YouTube API failed to load",e)}),window.onYouTubeReadyCallbacks=window.onYouTubeReadyCallbacks||[],window.onYouTubeReadyCallbacks.push(function(){$o.ready.call(t)}),window.onYouTubeIframeAPIReady=function(){window.onYouTubeReadyCallbacks.forEach(function(e){e()})})},getTitle:function(e){var t=this;if(Si.function(this.embed.getVideoData)){var n=this.embed.getVideoData().title;if(Si.empty(n))return this.config.title=n,void Do.setTitle.call(this)}n=this.config.keys.google;Si.string(n)&&!Si.empty(n)&&vo(co(this.config.urls.youtube.api,e,n)).then(function(e){Si.object(e)&&(t.config.title=e.items[0].snippet.title,Do.setTitle.call(t))}).catch(function(){})},setAspectRatio:function(){var e=this.config.ratio.split(":");this.elements.wrapper.style.paddingBottom="".concat(100/e[0]*e[1],"%")},ready:function(){var o,e,t,r=this,n=r.media.getAttribute("id");!Si.empty(n)&&n.startsWith("youtube-")||(e=r.media.getAttribute("src"),n=e=Si.empty(e)?r.media.getAttribute(this.config.attributes.embed.id):e,o=Si.empty(n)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n,e=r.provider,e=Mi("div",{id:n="".concat(e,"-").concat(Math.floor(1e4*Math.random())),poster:r.poster}),r.media=Bi(e,r.media),No((t=function(e){return"https://img.youtube.com/vi/".concat(o,"/").concat(e,"default.jpg")})("maxres"),121).catch(function(){return No(t("sd"),121)}).catch(function(){return No(t("hq"))}).then(function(e){return Do.setPoster.call(r,e.src)}).then(function(e){e.includes("maxres")||(r.elements.poster.style.backgroundSize="cover")}).catch(function(){}),r.embed=new window.YT.Player(n,{videoId:o,playerVars:{autoplay:r.config.autoplay?1:0,hl:r.config.hl,controls:r.supported.ui?0:1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,disablekb:1,playsinline:1,widget_referrer:window?window.location.href:null,cc_load_policy:r.captions.active?1:0,cc_lang_pref:r.config.captions.language},events:{onError:function(e){r.media.error||(e=e.data,r.media.error={code:e,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[e]||"An unknown error occured"},Li.call(r,r.media,"error"))},onPlaybackRateChange:function(e){e=e.target;r.media.playbackRate=e.getPlaybackRate(),Li.call(r,r.media,"ratechange")},onReady:function(e){var t,n,i;Si.function(r.media.play)||(t=e.target,$o.getTitle.call(r,o),r.media.play=function(){Xo.call(r,!0),t.playVideo()},r.media.pause=function(){Xo.call(r,!1),t.pauseVideo()},r.media.stop=function(){t.stopVideo()},r.media.duration=t.getDuration(),r.media.paused=!0,r.media.currentTime=0,Object.defineProperty(r.media,"currentTime",{get:function(){return Number(t.getCurrentTime())},set:function(e){r.paused&&!r.embed.hasPlayed&&r.embed.mute(),r.media.seeking=!0,Li.call(r,r.media,"seeking"),t.seekTo(e)}}),Object.defineProperty(r.media,"playbackRate",{get:function(){return t.getPlaybackRate()},set:function(e){t.setPlaybackRate(e)}}),n=r.config.volume,Object.defineProperty(r.media,"volume",{get:function(){return n},set:function(e){n=e,t.setVolume(100*n),Li.call(r,r.media,"volumechange")}}),i=r.config.muted,Object.defineProperty(r.media,"muted",{get:function(){return i},set:function(e){e=Si.boolean(e)?e:i;t[(i=e)?"mute":"unMute"](),Li.call(r,r.media,"volumechange")}}),Object.defineProperty(r.media,"currentSrc",{get:function(){return t.getVideoUrl()}}),Object.defineProperty(r.media,"ended",{get:function(){return r.currentTime===r.duration}}),r.options.speed=t.getAvailablePlaybackRates(),r.supported.ui&&r.media.setAttribute("tabindex",-1),Li.call(r,r.media,"timeupdate"),Li.call(r,r.media,"durationchange"),clearInterval(r.timers.buffering),r.timers.buffering=setInterval(function(){r.media.buffered=t.getVideoLoadedFraction(),(null===r.media.lastBuffered||r.media.lastBuffered<r.media.buffered)&&Li.call(r,r.media,"progress"),r.media.lastBuffered=r.media.buffered,1===r.media.buffered&&(clearInterval(r.timers.buffering),Li.call(r,r.media,"canplaythrough"))},200),setTimeout(function(){return Do.build.call(r)},50))},onStateChange:function(e){var t=e.target;switch(clearInterval(r.timers.playing),r.media.seeking&&[1,2].includes(e.data)&&(r.media.seeking=!1,Li.call(r,r.media,"seeked")),e.data){case-1:Li.call(r,r.media,"timeupdate"),r.media.buffered=t.getVideoLoadedFraction(),Li.call(r,r.media,"progress");break;case 0:Xo.call(r,!1),r.media.loop?(t.stopVideo(),t.playVideo()):Li.call(r,r.media,"ended");break;case 1:r.media.paused&&!r.embed.hasPlayed?r.media.pause():(Xo.call(r,!0),Li.call(r,r.media,"playing"),r.timers.playing=setInterval(function(){Li.call(r,r.media,"timeupdate")},50),r.media.duration!==t.getDuration()&&(r.media.duration=t.getDuration(),Li.call(r,r.media,"durationchange")));break;case 2:r.muted||r.embed.unMute(),Xo.call(r,!1)}Li.call(r,r.elements.container,"statechange",!1,{code:e.data})}}}))}},Go={setup:function(){this.media?(Ni(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Ni(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Ni(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Mi("div",{class:this.config.classNames.video}),Oi(this.media,this.elements.wrapper),this.elements.poster=Mi("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Ki.extend.call(this):this.isYouTube?$o.setup.call(this):this.isVimeo&&Vo.setup.call(this)):this.debug.warn("No media element found!")}},Ko=(sn(Zo,[{key:"load",value:function(){var e=this;this.enabled&&(Si.object(window.google)&&Si.object(window.google.ima)?this.ready():Uo(this.player.config.urls.googleIMA.sdk).then(function(){e.ready()}).catch(function(){e.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var e=this;this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(function(){e.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=Mi("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container),this.requestAds()}},{key:"requestAds",value:function(){var t=this,e=this.player.elements.container;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){return t.onAdsManagerLoaded(e)},!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return t.onAdError(e)},!1);var n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=e.offsetWidth,n.linearAdSlotHeight=e.offsetHeight,n.nonLinearAdSlotWidth=e.offsetWidth,n.nonLinearAdSlotHeight=e.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(t){this.onAdError(t)}}},{key:"pollCountdown",value:function(){var t=this;if(!(0<arguments.length&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var e=xo(Math.max(t.manager.getRemainingTime(),0)),e="".concat(po("advertisement",t.player.config)," - ").concat(e);t.elements.container.setAttribute("data-badge-text",e)},100)}},{key:"onAdsManagerLoaded",value:function(e){var t,i=this;this.enabled&&((t=new google.ima.AdsRenderingSettings).restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),Si.empty(this.cuePoints)||this.cuePoints.forEach(function(e){var t,n;0!==e&&-1!==e&&e<i.player.duration&&(t=i.player.elements.progress,Si.element(t)&&(n=100/i.player.duration*e,(e=Mi("span",{class:i.player.config.classNames.cues})).style.left="".concat(n.toString(),"%"),t.appendChild(e)))}),this.manager.setVolume(this.player.volume),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return i.onAdError(e)}),Object.keys(google.ima.AdEvent.Type).forEach(function(e){i.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return i.onAdEvent(e)})}),this.trigger("loaded"))}},{key:"onAdEvent",value:function(e){function t(e){e="ads".concat(e.replace(/_/g,"").toLowerCase()),Li.call(n.player,n.player.media,e)}var n=this,i=this.player.elements.container,o=e.getAd();switch(e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),t(e.type),this.pollCountdown(!0),o.isLinear()||(o.width=i.offsetWidth,o.height=i.offsetHeight);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:t(e.type),this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:t(e.type),this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:t(e.type),this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.STARTED:case google.ima.AdEvent.Type.MIDPOINT:case google.ima.AdEvent.Type.COMPLETE:case google.ima.AdEvent.Type.IMPRESSION:case google.ima.AdEvent.Type.CLICK:t(e.type)}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var i,o=this,e=this.player.elements.container;this.player.on("ended",function(){o.loader.contentComplete()}),this.player.on("seeking",function(){return i=o.player.currentTime}),this.player.on("seeked",function(){var n=o.player.currentTime;Si.empty(o.cuePoints)||o.cuePoints.forEach(function(e,t){i<e&&e<n&&(o.manager.discardAdBreak(),o.cuePoints.splice(t,1))})}),window.addEventListener("resize",function(){o.manager&&o.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var t=this,e=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then(function(){t.elements.displayContainer.initialize();try{t.initialized||(t.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),t.manager.start()),t.initialized=!0}catch(e){t.onAdError(e)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,this.player.currentTime<this.player.duration&&this.player.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var t=this;this.managerPromise.then(function(){t.manager&&t.manager.destroy(),t.managerPromise=new Promise(function(e){t.on("loaded",e),t.player.debug.log(t.manager)}),t.requestAds()}).catch(function(){})}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,i=new Array(1<n?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e=this.events[e];Si.array(e)&&e.forEach(function(e){Si.function(e)&&e.apply(t,i)})}},{key:"on",value:function(e,t){return Si.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout(function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")},e)}},{key:"clearSafetyTimer",value:function(e){Si.nullOrUndefined(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.ads.enabled&&!Si.empty(this.publisherId)}},{key:"tagUrl",get:function(){var e={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:this.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(To(e))}}]),Zo),Qo={insertElements:function(t,e){var n=this;Si.string(e)?Ii(t,this.media,{src:e}):Si.array(e)&&e.forEach(function(e){Ii(t,n.media,e)})},change:function(r){var s=this;Ji(r,"sources.length")?(Ki.cancelRequests.call(this),this.destroy.call(this,function(){s.options.quality=[],Pi(s.media),s.media=null,Si.element(s.elements.container)&&s.elements.container.removeAttribute("class");var e=r.sources,t=r.type,n=ln(e,1)[0],i=n.provider,o=void 0===i?Oo.html5:i,i=n.src,n="html5"===o?t:"div",i="html5"===o?{}:{src:i};Object.assign(s,{provider:o,type:t,supported:Gi.check(t,o,s.config.playsinline),media:Mi(n,i)}),s.elements.container.appendChild(s.media),Si.boolean(r.autoplay)&&(s.config.autoplay=r.autoplay),s.isHTML5&&(s.config.crossorigin&&s.media.setAttribute("crossorigin",""),s.config.autoplay&&s.media.setAttribute("autoplay",""),Si.empty(r.poster)||(s.poster=r.poster),s.config.loop.active&&s.media.setAttribute("loop",""),s.config.muted&&s.media.setAttribute("muted",""),s.config.playsinline&&s.media.setAttribute("playsinline","")),Do.addStyleHook.call(s),s.isHTML5&&Qo.insertElements.call(s,"source",e),s.config.title=r.title,Go.setup.call(s),s.isHTML5&&Object.keys(r).includes("tracks")&&Qo.insertElements.call(s,"track",r.tracks),(s.isHTML5||s.isEmbed&&!s.supported.ui)&&Do.build.call(s),s.isHTML5&&s.media.load(),s.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},Ae=(sn(Jo,[{key:"play",value:function(){return Si.function(this.media.play)?this.media.play():null}},{key:"pause",value:function(){this.playing&&Si.function(this.media.pause)&&this.media.pause()}},{key:"togglePlay",value:function(e){(Si.boolean(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):Si.function(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime=this.currentTime-(Si.number(e)?e:this.config.seekTime)}},{key:"forward",value:function(e){this.currentTime=this.currentTime+(Si.number(e)?e:this.config.seekTime)}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(Si.number(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){Co.toggle.call(this,e,!1)}},{key:"airplay",value:function(){Gi.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(!this.supported.ui||this.isAudio)return!1;var t=Di(this.elements.container,this.config.classNames.hideControls),e=Ni(this.elements.container,this.config.classNames.hideControls,void 0===e?void 0:!e);return e&&this.config.controls.includes("settings")&&!Si.empty(this.config.settings)&&So.toggleMenu.call(this,!1),e!==t&&Li.call(this,this.media,e?"controlshidden":"controlsshown"),!e}},{key:"on",value:function(e,t){_i.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){Ei.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){Ci(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t,n=this,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.ready&&(t=function(){document.body.style.overflow="",n.embed=null,i?(Object.keys(n.elements).length&&(Pi(n.elements.buttons.play),Pi(n.elements.captions),Pi(n.elements.controls),Pi(n.elements.wrapper),n.elements.buttons.play=null,n.elements.captions=null,n.elements.controls=null,n.elements.wrapper=null),Si.function(e)&&e()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(function(e){var t=e.element,n=e.type,i=e.callback,e=e.options;t.removeEventListener(n,i,e)}),this.eventListeners=[])}.call(n),Bi(n.elements.original,n.elements.container),Li.call(n,n.elements.original,"destroyed",!0),Si.function(e)&&e.call(n.elements.original),n.ready=!1,setTimeout(function(){n.elements=null,n.media=null},200))},this.stop(),this.isHTML5?(clearTimeout(this.timers.loading),Do.toggleNativeControls.call(this,!0),t()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&Si.function(this.embed.destroy)&&this.embed.destroy(),t()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(t),setTimeout(t,200)))}},{key:"supports",value:function(e){return Gi.mime.call(this,e)}},{key:"isHTML5",get:function(){return Boolean(this.provider===Oo.html5)}},{key:"isEmbed",get:function(){return Boolean(this.isYouTube||this.isVimeo)}},{key:"isYouTube",get:function(){return Boolean(this.provider===Oo.youtube)}},{key:"isVimeo",get:function(){return Boolean(this.provider===Oo.vimeo)}},{key:"isVideo",get:function(){return Boolean(this.type===Mo)}},{key:"isAudio",get:function(){return Boolean(this.type===Ao)}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(e){var t;this.duration&&(t=Si.number(e)&&0<e,this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds")))},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return Si.number(e)?e:e&&e.length&&0<this.duration?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,t=Si.number(t)&&t!==1/0?t:0;return e||t}},{key:"volume",set:function(e){var t=e;Si.string(t)&&(t=Number(t)),Si.number(t)||(t=this.storage.get("volume")),Si.number(t)||(t=this.config.volume),this.config.volume=t=(t=1<t?1:t)<0?0:t,this.media.volume=t,!Si.empty(e)&&this.muted&&0<t&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){Si.boolean(e)||(e=this.storage.get("muted")),Si.boolean(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",set:function(e){var t=null;Si.number(e)&&(t=e),Si.number(t)||(t=this.storage.get("speed")),Si.number(t)||(t=this.config.speed.selected),this.config.speed.options.includes(t=2<(t=t<.1?.1:t)?2:t)?(this.config.speed.selected=t,this.media.playbackRate=t):this.debug.warn("Unsupported speed (".concat(t,")"))},get:function(){return Number(this.media.playbackRate)}},{key:"quality",set:function(e){var t,n,i=this.config.quality,o=this.options.quality;o.length&&(t=[!Si.empty(e)&&Number(e),this.storage.get("quality"),i.selected,i.default].find(Si.number),e=!0,o.includes(t)||(o=o,n=t,o=Si.array(o)&&o.length?o.reduce(function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e}):null,this.debug.warn("Unsupported quality option: ".concat(t,", using ").concat(o," instead")),t=o,e=!1),i.selected=t,this.media.quality=t,e&&this.storage.set({quality:t}))},get:function(){return this.media.quality}},{key:"loop",set:function(e){e=Si.boolean(e)?e:this.config.loop.active;this.config.loop.active=e,this.media.loop=e},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){Qo.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return Si.url(e)?e:this.source}},{key:"poster",set:function(e){this.isVideo?Do.setPoster.call(this,e,!1).catch(function(){}):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"autoplay",set:function(e){e=Si.boolean(e)?e:this.config.autoplay;this.config.autoplay=e},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){Co.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,e=e.currentTrack;return t?e:-1}},{key:"language",set:function(e){Co.setLanguage.call(this,e,!1)},get:function(){return(Co.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){Gi.pip&&(e=Si.boolean(e)?e:!this.pip,Si.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?Lo:"inline"),Si.function(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture()))},get:function(){return Gi.pip?Si.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Lo:null}}],[{key:"supported",value:function(e,t,n){return Gi.check(e,t,n)}},{key:"loadSprite",value:bo},{key:"setup",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=null;return Si.string(e)?n=Array.from(document.querySelectorAll(e)):Si.nodeList(e)?n=Array.from(e):Si.array(e)&&(n=e.filter(Si.element)),Si.empty(n)?null:n.map(function(e){return new Jo(e,t)})}}]),Jo);function Jo(e,t){var n=this;if(on(this,Jo),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Gi.touch,this.media=e,Si.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Si.nodeList(this.media)||Si.array(this.media))&&(this.media=this.media[0]),this.config=Zi({},Eo,Jo.defaults,t||{},function(){try{return JSON.parse(n.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Io(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Gi),!Si.nullOrUndefined(this.media)&&Si.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Gi.check().api){t=this.media.cloneNode(!0);t.autoplay=!1,this.elements.original=t;var i=this.media.tagName.toLowerCase(),o=null,r=null;switch(i){case"div":var s,o=this.media.querySelector("iframe");if(Si.element(o)?(r=ko(o.getAttribute("src")),this.provider=(s=r.toString(),/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/.test(s)?Oo.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(s)?Oo.vimeo:null),this.elements.container=this.media,this.media=o,this.elements.container.className="",r.search.length&&((s=["1","true"]).includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),s.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=s.includes(r.searchParams.get("playsinline")),this.config.hl=r.searchParams.get("hl")):this.config.playsinline=!0)):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),Si.empty(this.provider)||!Object.keys(Oo).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Mo;break;case"video":case"audio":this.type=i,this.provider=Oo.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Gi.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Ho(this),this.storage=new go(this),this.media.plyr=this,Si.element(this.elements.container)||(this.elements.container=Mi("div"),Oi(this.media,this.elements.container)),Do.addStyleHook.call(this),Go.setup.call(this),this.config.debug&&_i.call(this,this.elements.container,this.config.events.join(" "),function(e){n.debug.log("event: ".concat(e.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Do.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new Ro(this),this.config.ads.enabled&&(this.ads=new Ko(this)),this.config.autoplay&&this.play(),this.lastSeekTime=0):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}function Zo(e){var n=this;on(this,Zo),this.player=e,this.publisherId=e.config.ads.publisherId,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(function(e,t){n.on("loaded",e),n.on("error",t)}),this.load()}return Ae.defaults=JSON.parse(JSON.stringify(Eo)),Ae}),function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["jquery","googlemaps!"],t):e.GMaps=t()}(this,function(){function C(e,t){if(e===t)return e;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}function r(e,n){var t,i=Array.prototype.slice.call(arguments,2),o=[],r=e.length;if(Array.prototype.map&&e.map===Array.prototype.map)o=Array.prototype.map.call(e,function(e){var t=i.slice(0);return t.splice(0,0,e),n.apply(this,t)});else for(t=0;t<r;t++)callback_params=i,callback_params.splice(0,0,e[t]),o.push(n.apply(this,callback_params));return o}function s(e){for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);return t}function a(e,t){for(var n,i,o,r=0;r<e.length;r++)e[r]instanceof google.maps.LatLng||(0<e[r].length&&"object"==typeof e[r][0]?e[r]=a(e[r],t):e[r]=(n=e[r],o=i=void 0,i=n[0],o=n[1],t&&(i=n[1],o=n[0]),new google.maps.LatLng(i,o)));return e}function E(e,t){var e=e.replace("#","");return e="jQuery"in window&&t?$("#"+e,t)[0]:document.getElementById(e)}var t,n,c=function(){"use strict";function T(n){if("object"!=typeof window.google||!window.google.maps)return"object"==typeof window.console&&window.console.error&&console.error("Google Maps API is required. Please register the following JavaScript library https://maps.googleapis.com/maps/api/js."),function(){};if(!this)return new T(n);n.zoom=n.zoom||15,n.mapType=n.mapType||"roadmap";var e,t=function(e,t){return void 0===e?t:e},h=this,i=["bounds_changed","center_changed","click","dblclick","drag","dragend","dragstart","idle","maptypeid_changed","projection_changed","resize","tilesloaded","zoom_changed"],o=["mousemove","mouseout","mouseover"],r=["el","lat","lng","mapType","width","height","markerClusterer","enableNewStyle"],s=n.el||n.div,a=n.markerClusterer,l=google.maps.MapTypeId[n.mapType.toUpperCase()],c=new google.maps.LatLng(n.lat,n.lng),u=t(n.zoomControl,!0),d=(g=n.zoomControlOpt||{style:"DEFAULT",position:"TOP_LEFT"}).style||"DEFAULT",f=g.position||"TOP_LEFT",p=t(n.panControl,!0),m=t(n.mapTypeControl,!0),g=t(n.scaleControl,!0),t=t(n.streetViewControl,!0),y={},l={zoom:this.zoom,center:c,mapTypeId:l},t={panControl:p,zoomControl:u,zoomControlOptions:{style:google.maps.ZoomControlStyle[d],position:google.maps.ControlPosition[f]},mapTypeControl:m,scaleControl:g,streetViewControl:t,overviewMapControl:!0};if("string"==typeof n.el||"string"==typeof n.div?-1<s.indexOf("#")?this.el=E(s,n.context):this.el=function(e,t){var e=e.replace(".",""),e=("jQuery"in this&&t?$("."+e,t):document.getElementsByClassName(e))[0];return e}.apply(this,[s,n.context]):this.el=s,void 0===this.el||null===this.el)throw"No element defined.";for(window.context_menu=window.context_menu||{},window.context_menu[h.el.id]={},this.controls=[],this.overlays=[],this.layers=[],this.singleLayers={},this.markers=[],this.polylines=[],this.routes=[],this.polygons=[],this.infoWindow=null,this.overlay_el=null,this.zoom=n.zoom,this.registered_events={},this.el.style.width=n.width||this.el.scrollWidth||this.el.offsetWidth,this.el.style.height=n.height||this.el.scrollHeight||this.el.offsetHeight,google.maps.visualRefresh=n.enableNewStyle,e=0;e<r.length;e++)delete n[r[e]];for(1!=n.disableDefaultUI&&(l=C(l,t)),y=C(l,n),e=0;e<i.length;e++)delete y[i[e]];for(e=0;e<o.length;e++)delete y[o[e]];function v(t,n){var e,i="",o=window.context_menu[h.el.id][t];for(s in o)o.hasOwnProperty(s)&&(e=o[s],i+='<li><a id="'+t+"_"+s+'" href="#">'+e.title+"</a></li>");if(E("gmaps_context_menu")){var r=E("gmaps_context_menu");r.innerHTML=i;var s,a=r.getElementsByTagName("a"),l=a.length;for(s=0;s<l;s++){var c=a[s];google.maps.event.clearListeners(c,"click"),google.maps.event.addDomListenerOnce(c,"click",function(e){e.preventDefault(),o[this.id.replace(t+"_","")].action.apply(h,[n]),h.hideContextMenu()},!1)}var u=function(e){var t=0,n=0;if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=-(window.scrollX||window.pageXOffset),r=-(window.scrollY||window.pageYOffset);return[i.left-o,i.top-r]}if(e.offsetParent)for(;t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;);return[t,n]}.apply(this,[h.el]),d=u[0]+n.pixel.x-15,u=u[1]+n.pixel.y-15;r.style.left=d+"px",r.style.top=u+"px"}}function b(e,t){google.maps.event.addListener(e,t,function(e){n[t].apply(this,[e=null==e?this:e]),h.hideContextMenu()})}this.map=new google.maps.Map(this.el,y),a&&(this.markerClusterer=a.apply(this,[this.map])),this.buildContextMenu=function(n,i){var o;"marker"===n?(i.pixel={},(o=new google.maps.OverlayView).setMap(h.map),o.draw=function(){var e=o.getProjection(),t=i.marker.getPosition();i.pixel=e.fromLatLngToContainerPixel(t),v(n,i)}):v(n,i);var e=E("gmaps_context_menu");setTimeout(function(){e.style.display="block"},0)},this.setContextMenu=function(e){window.context_menu[h.el.id][e.control]={};var t,n,i=_.createElement("ul");for(t in e.options)e.options.hasOwnProperty(t)&&(n=e.options[t],window.context_menu[h.el.id][e.control][n.name]={title:n.title,action:n.action});i.id="gmaps_context_menu",i.style.display="none",i.style.position="absolute",i.style.minWidth="100px",i.style.background="white",i.style.listStyle="none",i.style.padding="8px",i.style.boxShadow="2px 2px 6px #ccc",E("gmaps_context_menu")||_.body.appendChild(i);var o=E("gmaps_context_menu");google.maps.event.addDomListener(o,"mouseout",function(e){e.relatedTarget&&this.contains(e.relatedTarget)||window.setTimeout(function(){o.style.display="none"},400)},!1)},this.hideContextMenu=function(){var e=E("gmaps_context_menu");e&&(e.style.display="none")},google.maps.event.addListener(this.map,"zoom_changed",this.hideContextMenu);for(var w=0;w<i.length;w++)(x=i[w])in n&&b(this.map,x);for(var x,w=0;w<o.length;w++)(x=o[w])in n&&b(this.map,x);google.maps.event.addListener(this.map,"rightclick",function(e){n.rightclick&&n.rightclick.apply(this,[e]),null!=window.context_menu[h.el.id].map&&h.buildContextMenu("map",e)}),this.refresh=function(){google.maps.event.trigger(this.map,"resize")},this.fitZoom=function(){for(var e=[],t=this.markers.length,n=0;n<t;n++)"boolean"==typeof this.markers[n].visible&&this.markers[n].visible&&e.push(this.markers[n].getPosition());this.fitLatLngBounds(e)},this.fitLatLngBounds=function(e){for(var t=e.length,n=new google.maps.LatLngBounds,i=0;i<t;i++)n.extend(e[i]);this.map.fitBounds(n)},this.setCenter=function(e,t,n){this.map.panTo(new google.maps.LatLng(e,t)),n&&n()},this.getElement=function(){return this.el},this.zoomIn=function(e){e=e||1,this.zoom=this.map.getZoom()+e,this.map.setZoom(this.zoom)},this.zoomOut=function(e){e=e||1,this.zoom=this.map.getZoom()-e,this.map.setZoom(this.zoom)};var S,k=[];for(S in this.map)"function"!=typeof this.map[S]||this[S]||k.push(S);for(e=0;e<k.length;e++)!function(e,t,n){e[n]=function(){return t[n].apply(t,arguments)}}(this,this.map,k[e])}var _=document;return T}();return c.prototype.createControl=function(t){var e,n,i=document.createElement("div");for(e in i.style.cursor="pointer",!0!==t.disableDefaultStyles&&(i.style.fontFamily="Roboto, Arial, sans-serif",i.style.fontSize="11px",i.style.boxShadow="rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px"),t.style)i.style[e]=t.style[e];for(n in t.id&&(i.id=t.id),t.title&&(i.title=t.title),t.classes&&(i.className=t.classes),t.content&&("string"==typeof t.content?i.innerHTML=t.content:t.content instanceof HTMLElement&&i.appendChild(t.content)),t.position&&(i.position=google.maps.ControlPosition[t.position.toUpperCase()]),t.events)!function(e){google.maps.event.addDomListener(i,e,function(){t.events[e].apply(this,[this])})}(n);return i.index=1,i},c.prototype.addControl=function(e){e=this.createControl(e);return this.controls.push(e),this.map.controls[e.position].push(e),e},c.prototype.removeControl=function(e){for(var t=null,n=0;n<this.controls.length;n++)this.controls[n]==e&&(t=this.controls[n].position,this.controls.splice(n,1));if(t)for(n=0;n<this.map.controls.length;n++){var i=this.map.controls[e.position];if(i.getAt(n)==e){i.removeAt(n);break}}return e},c.prototype.createMarker=function(i){if(null==i.lat&&null==i.lng&&null==i.position)throw"No latitude or longitude defined.";var t=this,e=i.details,n=i.fences,o=i.outside,r={position:new google.maps.LatLng(i.lat,i.lng),map:null},r=C(r,i);delete r.lat,delete r.lng,delete r.fences,delete r.outside;var s=new google.maps.Marker(r);if(s.fences=n,i.infoWindow){s.infoWindow=new google.maps.InfoWindow(i.infoWindow);for(var a=["closeclick","content_changed","domready","position_changed","zindex_changed"],l=0;l<a.length;l++)!function(e,t){i.infoWindow[t]&&google.maps.event.addListener(e,t,function(e){i.infoWindow[t].apply(this,[e])})}(s.infoWindow,a[l])}for(var c=["animation_changed","clickable_changed","cursor_changed","draggable_changed","flat_changed","icon_changed","position_changed","shadow_changed","shape_changed","title_changed","visible_changed","zindex_changed"],u=["dblclick","drag","dragend","dragstart","mousedown","mouseout","mouseover","mouseup"],l=0;l<c.length;l++)!function(e){i[e]&&google.maps.event.addListener(s,e,function(){i[e].apply(this,[this])})}(c[l]);for(l=0;l<u.length;l++)!function(t,n){i[n]&&google.maps.event.addListener(s,n,function(e){e.pixel||(e.pixel=t.getProjection().fromLatLngToPoint(e.latLng)),i[n].apply(this,[e])})}(this.map,u[l]);return google.maps.event.addListener(s,"click",function(){this.details=e,i.click&&i.click.apply(this,[this]),s.infoWindow&&(t.hideInfoWindows(),s.infoWindow.open(t.map,s))}),google.maps.event.addListener(s,"rightclick",function(e){e.marker=this,i.rightclick&&i.rightclick.apply(this,[e]),null!=window.context_menu[t.el.id].marker&&t.buildContextMenu("marker",e)}),s.fences&&google.maps.event.addListener(s,"dragend",function(){t.checkMarkerGeofence(s,function(e,t){o(e,t)})}),s},c.prototype.addMarker=function(e){var t;if(e.hasOwnProperty("gm_accessors_"))t=e;else{if(!(e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")||e.position))throw"No latitude or longitude defined.";t=this.createMarker(e)}return t.setMap(this.map),this.markerClusterer&&this.markerClusterer.addMarker(t),this.markers.push(t),c.fire("marker_added",t,this),t},c.prototype.addMarkers=function(e){for(var t,n=0;t=e[n];n++)this.addMarker(t);return this.markers},c.prototype.hideInfoWindows=function(){for(var e,t=0;e=this.markers[t];t++)e.infoWindow&&e.infoWindow.close()},c.prototype.removeMarker=function(e){for(var t=0;t<this.markers.length;t++)if(this.markers[t]===e){this.markers[t].setMap(null),this.markers.splice(t,1),this.markerClusterer&&this.markerClusterer.removeMarker(e),c.fire("marker_removed",e,this);break}return e},c.prototype.removeMarkers=function(e){var t=[];if(void 0===e){for(var n=0;n<this.markers.length;n++)(o=this.markers[n]).setMap(null),c.fire("marker_removed",o,this);this.markerClusterer&&this.markerClusterer.clearMarkers&&this.markerClusterer.clearMarkers(),this.markers=t}else{for(n=0;n<e.length;n++){var i=this.markers.indexOf(e[n]);-1<i&&((o=this.markers[i]).setMap(null),this.markerClusterer&&this.markerClusterer.removeMarker(o),c.fire("marker_removed",o,this))}for(var o,n=0;n<this.markers.length;n++)null!=(o=this.markers[n]).getMap()&&t.push(o);this.markers=t}},c.prototype.drawOverlay=function(r){var s=new google.maps.OverlayView,a=!0;return s.setMap(this.map),null!=r.auto_show&&(a=r.auto_show),s.onAdd=function(){var e=document.createElement("div");e.style.borderStyle="none",e.style.borderWidth="0px",e.style.position="absolute",e.style.zIndex=100,e.innerHTML=r.content,s.el=e,r.layer||(r.layer="overlayLayer");var t=this.getPanes(),n=["contextmenu","DOMMouseScroll","dblclick","mousedown"];t[r.layer].appendChild(e);for(var i=0;i<n.length;i++)google.maps.event.addDomListener(e,n[i],function(e){-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&document.all?(e.cancelBubble=!0,e.returnValue=!1):e.stopPropagation()});r.click&&(t.overlayMouseTarget.appendChild(s.el),google.maps.event.addDomListener(s.el,"click",function(){r.click.apply(s,[s])})),google.maps.event.trigger(this,"ready")},s.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(new google.maps.LatLng(r.lat,r.lng));r.horizontalOffset=r.horizontalOffset||0,r.verticalOffset=r.verticalOffset||0;var t=s.el,n=t.children[0],i=n.clientHeight,o=n.clientWidth;switch(r.verticalAlign){case"top":t.style.top=e.y-i+r.verticalOffset+"px";break;default:case"middle":t.style.top=e.y-i/2+r.verticalOffset+"px";break;case"bottom":t.style.top=e.y+r.verticalOffset+"px"}switch(r.horizontalAlign){case"left":t.style.left=e.x-o+r.horizontalOffset+"px";break;default:case"center":t.style.left=e.x-o/2+r.horizontalOffset+"px";break;case"right":t.style.left=e.x+r.horizontalOffset+"px"}t.style.display=a?"block":"none",a||r.show.apply(this,[t])},s.onRemove=function(){var e=s.el;r.remove?r.remove.apply(this,[e]):(s.el.parentNode.removeChild(s.el),s.el=null)},this.overlays.push(s),s},c.prototype.removeOverlay=function(e){for(var t=0;t<this.overlays.length;t++)if(this.overlays[t]===e){this.overlays[t].setMap(null),this.overlays.splice(t,1);break}},c.prototype.removeOverlays=function(){for(var e,t=0;e=this.overlays[t];t++)e.setMap(null);this.overlays=[]},c.prototype.drawPolyline=function(n){var e=[],t=n.path;if(t.length)if(void 0===t[0][0])e=t;else for(var i,o=0;i=t[o];o++)e.push(new google.maps.LatLng(i[0],i[1]));var r={map:this.map,path:e,strokeColor:n.strokeColor,strokeOpacity:n.strokeOpacity,strokeWeight:n.strokeWeight,geodesic:n.geodesic,clickable:!0,editable:!1,visible:!0};n.hasOwnProperty("clickable")&&(r.clickable=n.clickable),n.hasOwnProperty("editable")&&(r.editable=n.editable),n.hasOwnProperty("icons")&&(r.icons=n.icons),n.hasOwnProperty("zIndex")&&(r.zIndex=n.zIndex);for(var s=new google.maps.Polyline(r),a=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],l=0;l<a.length;l++)!function(t){n[t]&&google.maps.event.addListener(s,t,function(e){n[t].apply(this,[e])})}(a[l]);return this.polylines.push(s),c.fire("polyline_added",s,this),s},c.prototype.removePolyline=function(e){for(var t=0;t<this.polylines.length;t++)if(this.polylines[t]===e){this.polylines[t].setMap(null),this.polylines.splice(t,1),c.fire("polyline_removed",e,this);break}},c.prototype.removePolylines=function(){for(var e,t=0;e=this.polylines[t];t++)e.setMap(null);this.polylines=[]},c.prototype.drawCircle=function(n){delete(n=C({map:this.map,center:new google.maps.LatLng(n.lat,n.lng)},n)).lat,delete n.lng;for(var e=new google.maps.Circle(n),t=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],i=0;i<t.length;i++)!function(t){n[t]&&google.maps.event.addListener(e,t,function(e){n[t].apply(this,[e])})}(t[i]);return this.polygons.push(e),e},c.prototype.drawRectangle=function(n){n=C({map:this.map},n);var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.bounds[0][0],n.bounds[0][1]),new google.maps.LatLng(n.bounds[1][0],n.bounds[1][1]));n.bounds=e;for(var i=new google.maps.Rectangle(n),t=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],o=0;o<t.length;o++)!function(t){n[t]&&google.maps.event.addListener(i,t,function(e){n[t].apply(this,[e])})}(t[o]);return this.polygons.push(i),i},c.prototype.drawPolygon=function(n){var e=!1;n.hasOwnProperty("useGeoJSON")&&(e=n.useGeoJSON),delete n.useGeoJSON,n=C({map:this.map},n),0==e&&(n.paths=[n.paths.slice(0)]),0<n.paths.length&&0<n.paths[0].length&&(n.paths=s(r(n.paths,a,e)));for(var i=new google.maps.Polygon(n),t=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],o=0;o<t.length;o++)!function(t){n[t]&&google.maps.event.addListener(i,t,function(e){n[t].apply(this,[e])})}(t[o]);return this.polygons.push(i),c.fire("polygon_added",i,this),i},c.prototype.removePolygon=function(e){for(var t=0;t<this.polygons.length;t++)if(this.polygons[t]===e){this.polygons[t].setMap(null),this.polygons.splice(t,1),c.fire("polygon_removed",e,this);break}},c.prototype.removePolygons=function(){for(var e,t=0;e=this.polygons[t];t++)e.setMap(null);this.polygons=[]},c.prototype.getFromFusionTables=function(e){var n=e.events;delete e.events;var t,i=new google.maps.FusionTablesLayer(e);for(t in n)!function(t){google.maps.event.addListener(i,t,function(e){n[t].apply(this,[e])})}(t);return this.layers.push(i),i},c.prototype.loadFromFusionTables=function(e){e=this.getFromFusionTables(e);return e.setMap(this.map),e},c.prototype.getFromKML=function(e){var t=e.url,n=e.events;delete e.url,delete e.events;var i,o=new google.maps.KmlLayer(t,e);for(i in n)!function(t){google.maps.event.addListener(o,t,function(e){n[t].apply(this,[e])})}(i);return this.layers.push(o),o},c.prototype.loadFromKML=function(e){e=this.getFromKML(e);return e.setMap(this.map),e},c.prototype.addLayer=function(e,t){var n,i;switch(t=t||{},e){case"weather":this.singleLayers.weather=n=new google.maps.weather.WeatherLayer;break;case"clouds":this.singleLayers.clouds=n=new google.maps.weather.CloudLayer;break;case"traffic":this.singleLayers.traffic=n=new google.maps.TrafficLayer;break;case"transit":this.singleLayers.transit=n=new google.maps.TransitLayer;break;case"bicycling":this.singleLayers.bicycling=n=new google.maps.BicyclingLayer;break;case"panoramio":this.singleLayers.panoramio=n=new google.maps.panoramio.PanoramioLayer,n.setTag(t.filter),delete t.filter,t.click&&google.maps.event.addListener(n,"click",function(e){t.click(e),delete t.click});break;case"places":this.singleLayers.places=n=new google.maps.places.PlacesService(this.map),(t.search||t.nearbySearch||t.radarSearch)&&(i={bounds:t.bounds||null,keyword:t.keyword||null,location:t.location||null,name:t.name||null,radius:t.radius||null,rankBy:t.rankBy||null,types:t.types||null},t.radarSearch&&n.radarSearch(i,t.radarSearch),t.search&&n.search(i,t.search),t.nearbySearch&&n.nearbySearch(i,t.nearbySearch)),t.textSearch&&(i={bounds:t.bounds||null,location:t.location||null,query:t.query||null,radius:t.radius||null},n.textSearch(i,t.textSearch))}if(void 0!==n)return"function"==typeof n.setOptions&&n.setOptions(t),"function"==typeof n.setMap&&n.setMap(this.map),n},c.prototype.removeLayer=function(e){if("string"==typeof e&&void 0!==this.singleLayers[e])this.singleLayers[e].setMap(null),delete this.singleLayers[e];else for(var t=0;t<this.layers.length;t++)if(this.layers[t]===e){this.layers[t].setMap(null),this.layers.splice(t,1);break}},c.prototype.getRoutes=function(i){switch(i.travelMode){case"bicycling":t=google.maps.TravelMode.BICYCLING;break;case"transit":t=google.maps.TravelMode.TRANSIT;break;case"driving":t=google.maps.TravelMode.DRIVING;break;default:t=google.maps.TravelMode.WALKING}n="imperial"===i.unitSystem?google.maps.UnitSystem.IMPERIAL:google.maps.UnitSystem.METRIC;var e=C({avoidHighways:!1,avoidTolls:!1,optimizeWaypoints:!1,waypoints:[]},i);e.origin=/string/.test(typeof i.origin)?i.origin:new google.maps.LatLng(i.origin[0],i.origin[1]),e.destination=/string/.test(typeof i.destination)?i.destination:new google.maps.LatLng(i.destination[0],i.destination[1]),e.travelMode=t,e.unitSystem=n,delete e.callback,delete e.error;var o=[];(new google.maps.DirectionsService).route(e,function(e,t){if(t===google.maps.DirectionsStatus.OK){for(var n in e.routes)e.routes.hasOwnProperty(n)&&o.push(e.routes[n]);i.callback&&i.callback(o,e,t)}else i.error&&i.error(e,t)})},c.prototype.removeRoutes=function(){this.routes.length=0},c.prototype.getElevations=function(e){0<(e=C({locations:[],path:!1,samples:256},e)).locations.length&&0<e.locations[0].length&&(e.locations=s(r([e.locations],a,!1)));var n=e.callback;delete e.callback;var t,i=new google.maps.ElevationService;e.path?(t={path:e.locations,samples:e.samples},i.getElevationAlongPath(t,function(e,t){n&&"function"==typeof n&&n(e,t)})):(delete e.path,delete e.samples,i.getElevationForLocations(e,function(e,t){n&&"function"==typeof n&&n(e,t)}))},c.prototype.cleanRoute=c.prototype.removePolylines,c.prototype.renderRoute=function(e,t){var i,n="string"==typeof t.panel?document.getElementById(t.panel.replace("#","")):t.panel;t.panel=n,t=C({map:this.map},t),i=new google.maps.DirectionsRenderer(t),this.getRoutes({origin:e.origin,destination:e.destination,travelMode:e.travelMode,waypoints:e.waypoints,unitSystem:e.unitSystem,error:e.error,avoidHighways:e.avoidHighways,avoidTolls:e.avoidTolls,optimizeWaypoints:e.optimizeWaypoints,callback:function(e,t,n){n===google.maps.DirectionsStatus.OK&&i.setDirections(t)}})},c.prototype.drawRoute=function(n){var i=this;this.getRoutes({origin:n.origin,destination:n.destination,travelMode:n.travelMode,waypoints:n.waypoints,unitSystem:n.unitSystem,error:n.error,avoidHighways:n.avoidHighways,avoidTolls:n.avoidTolls,optimizeWaypoints:n.optimizeWaypoints,callback:function(e){var t;0<e.length&&(t={path:e[e.length-1].overview_path,strokeColor:n.strokeColor,strokeOpacity:n.strokeOpacity,strokeWeight:n.strokeWeight},n.hasOwnProperty("icons")&&(t.icons=n.icons),i.drawPolyline(t),n.callback&&n.callback(e[e.length-1]))}})},c.prototype.travelRoute=function(r){if(r.origin&&r.destination)this.getRoutes({origin:r.origin,destination:r.destination,travelMode:r.travelMode,waypoints:r.waypoints,unitSystem:r.unitSystem,error:r.error,callback:function(e){if(0<e.length&&r.start&&r.start(e[e.length-1]),0<e.length&&r.step){var t=e[e.length-1];if(0<t.legs.length)for(var n,i=t.legs[0].steps,o=0;n=i[o];o++)n.step_number=o,r.step(n,t.legs[0].steps.length-1)}0<e.length&&r.end&&r.end(e[e.length-1])}});else if(r.route&&0<r.route.legs.length)for(var e,t=r.route.legs[0].steps,n=0;e=t[n];n++)e.step_number=n,r.step(e)},c.prototype.drawSteppedRoute=function(s){var a=this;if(s.origin&&s.destination)this.getRoutes({origin:s.origin,destination:s.destination,travelMode:s.travelMode,waypoints:s.waypoints,error:s.error,callback:function(e){if(0<e.length&&s.start&&s.start(e[e.length-1]),0<e.length&&s.step){var t=e[e.length-1];if(0<t.legs.length)for(var n,i=t.legs[0].steps,o=0;n=i[o];o++){n.step_number=o;var r={path:n.path,strokeColor:s.strokeColor,strokeOpacity:s.strokeOpacity,strokeWeight:s.strokeWeight};s.hasOwnProperty("icons")&&(r.icons=s.icons),a.drawPolyline(r),s.step(n,t.legs[0].steps.length-1)}}0<e.length&&s.end&&s.end(e[e.length-1])}});else if(s.route&&0<s.route.legs.length)for(var e,t=s.route.legs[0].steps,n=0;e=t[n];n++){e.step_number=n;var i={path:e.path,strokeColor:s.strokeColor,strokeOpacity:s.strokeOpacity,strokeWeight:s.strokeWeight};s.hasOwnProperty("icons")&&(i.icons=s.icons),a.drawPolyline(i),s.step(e)}},c.Route=function(e){this.origin=e.origin,this.destination=e.destination,this.waypoints=e.waypoints,this.map=e.map,this.route=e.route,this.step_count=0,this.steps=this.route.legs[0].steps,this.steps_length=this.steps.length;var t={path:new google.maps.MVCArray,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight};e.hasOwnProperty("icons")&&(t.icons=e.icons),this.polyline=this.map.drawPolyline(t).getPath()},c.Route.prototype.getRoute=function(t){var n=this;this.map.getRoutes({origin:this.origin,destination:this.destination,travelMode:t.travelMode,waypoints:this.waypoints||[],error:t.error,callback:function(){n.route=e[0],t.callback&&t.callback.call(n)}})},c.Route.prototype.back=function(){if(0<this.step_count){this.step_count--;var e,t=this.route.legs[0].steps[this.step_count].path;for(e in t)t.hasOwnProperty(e)&&this.polyline.pop()}},c.Route.prototype.forward=function(){if(this.step_count<this.steps_length){var e,t=this.route.legs[0].steps[this.step_count].path;for(e in t)t.hasOwnProperty(e)&&this.polyline.push(t[e]);this.step_count++}},c.prototype.checkGeofence=function(e,t,n){return n.containsLatLng(new google.maps.LatLng(e,t))},c.prototype.checkMarkerGeofence=function(e,t){if(e.fences)for(var n,i=0;n=e.fences[i];i++){var o=e.getPosition();this.checkGeofence(o.lat(),o.lng(),n)||t(e,n)}},c.prototype.toImage=function(e){var e=e||{},t={};if(t.size=e.size||[this.el.clientWidth,this.el.clientHeight],t.lat=this.getCenter().lat(),t.lng=this.getCenter().lng(),0<this.markers.length){t.markers=[];for(var n=0;n<this.markers.length;n++)t.markers.push({lat:this.markers[n].getPosition().lat(),lng:this.markers[n].getPosition().lng()})}return 0<this.polylines.length&&(e=this.polylines[0],t.polyline={},t.polyline.path=google.maps.geometry.encoding.encodePath(e.getPath()),t.polyline.strokeColor=e.strokeColor,t.polyline.strokeOpacity=e.strokeOpacity,t.polyline.strokeWeight=e.strokeWeight),c.staticMapURL(t)},c.staticMapURL=function(e){var t=[],n=("file:"===location.protocol?"http:":location.protocol)+"//maps.googleapis.com/maps/api/staticmap";e.url&&(n=e.url,delete e.url),n+="?";var i=e.markers;delete e.markers,!i&&e.marker&&(i=[e.marker],delete e.marker);var o=e.styles;delete e.styles;var r=e.polyline;delete e.polyline,e.center?(t.push("center="+e.center),delete e.center):e.address?(t.push("center="+e.address),delete e.address):e.lat?(t.push(["center=",e.lat,",",e.lng].join("")),delete e.lat,delete e.lng):e.visible&&(s=encodeURI(e.visible.join("|")),t.push("visible="+s));var s=e.size;s?(s.join&&(s=s.join("x")),delete e.size):s="630x300",t.push("size="+s),e.zoom||!1===e.zoom||(e.zoom=15);s=!e.hasOwnProperty("sensor")||!!e.sensor;for(u in delete e.sensor,t.push("sensor="+s),e)e.hasOwnProperty(u)&&t.push(u+"="+e[u]);if(i)for(var a,l,c=0;y=i[c];c++){for(var u in a=[],y.size&&"normal"!==y.size?(a.push("size:"+y.size),delete y.size):y.icon&&(a.push("icon:"+encodeURI(y.icon)),delete y.icon),y.color&&(a.push("color:"+y.color.replace("#","0x")),delete y.color),y.label&&(a.push("label:"+y.label[0].toUpperCase()),delete y.label),l=y.address||y.lat+","+y.lng,delete y.address,delete y.lat,delete y.lng,y)y.hasOwnProperty(u)&&a.push(u+":"+y[u]);a.length||0===c?(a.push(l),a=a.join("|"),t.push("markers="+encodeURI(a))):(a=t.pop()+encodeURI("|"+l),t.push(a))}if(o)for(c=0;c<o.length;c++){var d=[];o[c].featureType&&d.push("feature:"+o[c].featureType.toLowerCase()),o[c].elementType&&d.push("element:"+o[c].elementType.toLowerCase());for(var h=0;h<o[c].stylers.length;h++)for(var f in o[c].stylers[h]){var p=o[c].stylers[h][f];"hue"!=f&&"color"!=f||(p="0x"+p.substring(1)),d.push(f+":"+p)}var m=d.join("|");""!=m&&t.push("style="+m)}function g(e,t){if("#"===e[0]&&(e=e.replace("#","0x"),t)){if(t=parseFloat(t),0===(t=Math.min(1,Math.max(t,0))))return"0x00000000";1===(t=(255*t).toString(16)).length&&(t+=t),e=e.slice(0,8)+t}return e}if(r){var y=r,r=[];y.strokeWeight&&r.push("weight:"+parseInt(y.strokeWeight,10)),y.strokeColor&&(s=g(y.strokeColor,y.strokeOpacity),r.push("color:"+s)),y.fillColor&&(w=g(y.fillColor,y.fillOpacity),r.push("fillcolor:"+w));var v=y.path;if(v.join)for(var b,h=0;b=v[h];h++)r.push(b.join(","));else r.push("enc:"+v);r=r.join("|"),t.push("path="+encodeURI(r))}var w=window.devicePixelRatio||1;return t.push("scale="+w),n+(t=t.join("&"))},c.prototype.addMapType=function(e,t){if(!t.hasOwnProperty("getTileUrl")||"function"!=typeof t.getTileUrl)throw"'getTileUrl' function required.";t.tileSize=t.tileSize||new google.maps.Size(256,256);t=new google.maps.ImageMapType(t);this.map.mapTypes.set(e,t)},c.prototype.addOverlayMapType=function(e){if(!e.hasOwnProperty("getTile")||"function"!=typeof e.getTile)throw"'getTile' function required.";var t=e.index;delete e.index,this.map.overlayMapTypes.insertAt(t,e)},c.prototype.removeOverlayMapType=function(e){this.map.overlayMapTypes.removeAt(e)},c.prototype.addStyle=function(e){var t=new google.maps.StyledMapType(e.styles,{name:e.styledMapName});this.map.mapTypes.set(e.mapTypeId,t)},c.prototype.setStyle=function(e){this.map.setMapTypeId(e)},c.prototype.createPanorama=function(e){return e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")||(e.lat=this.getCenter().lat(),e.lng=this.getCenter().lng()),this.panorama=c.createPanorama(e),this.map.setStreetView(this.panorama),this.panorama},c.createPanorama=function(t){var e=E(t.el,t.context);t.position=new google.maps.LatLng(t.lat,t.lng),delete t.el,delete t.context,delete t.lat,delete t.lng;for(var n=["closeclick","links_changed","pano_changed","position_changed","pov_changed","resize","visible_changed"],i=C({visible:!0},t),o=0;o<n.length;o++)delete i[n[o]];for(var r=new google.maps.StreetViewPanorama(e,i),o=0;o<n.length;o++)!function(e){t[e]&&google.maps.event.addListener(r,e,function(){t[e].apply(this)})}(n[o]);return r},c.prototype.on=function(e,t){return c.on(e,this,t)},c.prototype.off=function(e){c.off(e,this)},c.prototype.once=function(e,t){return c.once(e,this,t)},c.custom_events=["marker_added","marker_removed","polyline_added","polyline_removed","polygon_added","polygon_removed","geolocated","geolocation_failed"],c.on=function(e,t,n){if(-1==c.custom_events.indexOf(e))return t instanceof c&&(t=t.map),google.maps.event.addListener(t,e,n);n={handler:n,eventName:e};return t.registered_events[e]=t.registered_events[e]||[],t.registered_events[e].push(n),n},c.off=function(e,t){-1==c.custom_events.indexOf(e)?(t instanceof c&&(t=t.map),google.maps.event.clearListeners(t,e)):t.registered_events[e]=[]},c.once=function(e,t,n){if(-1==c.custom_events.indexOf(e))return t instanceof c&&(t=t.map),google.maps.event.addListenerOnce(t,e,n)},c.fire=function(e,t,n){if(-1==c.custom_events.indexOf(e))google.maps.event.trigger(t,e,Array.prototype.slice.apply(arguments).slice(2));else if(e in n.registered_events)for(var i=n.registered_events[e],o=0;o<i.length;o++)i[o].handler.apply(n,[t])},c.geolocate=function(t){var n=t.always||t.complete;navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){t.success(e),n&&n()},function(e){t.error(e),n&&n()},t.options):(t.not_supported(),n&&n())},c.geocode=function(e){this.geocoder=new google.maps.Geocoder;var n=e.callback;e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")&&(e.latLng=new google.maps.LatLng(e.lat,e.lng)),delete e.lat,delete e.lng,delete e.callback,this.geocoder.geocode(e,function(e,t){n(e,t)})},"object"==typeof window.google&&window.google.maps&&(google.maps.Polygon.prototype.getBounds||(google.maps.Polygon.prototype.getBounds=function(e){for(var t=new google.maps.LatLngBounds,n=this.getPaths(),i=0;i<n.getLength();i++)for(var o=n.getAt(i),r=0;r<o.getLength();r++)t.extend(o.getAt(r));return t}),google.maps.Polygon.prototype.containsLatLng||(google.maps.Polygon.prototype.containsLatLng=function(e){var t=this.getBounds();if(null!==t&&!t.contains(e))return!1;for(var n=!1,i=this.getPaths().getLength(),o=0;o<i;o++)for(var r=this.getPaths().getAt(o),s=r.getLength(),a=s-1,l=0;l<s;l++){var c=r.getAt(l),u=r.getAt(a);(c.lng()<e.lng()&&u.lng()>=e.lng()||u.lng()<e.lng()&&c.lng()>=e.lng())&&c.lat()+(e.lng()-c.lng())/(u.lng()-c.lng())*(u.lat()-c.lat())<e.lat()&&(n=!n),a=l}return n}),google.maps.Circle.prototype.containsLatLng||(google.maps.Circle.prototype.containsLatLng=function(e){return!google.maps.geometry||google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(),e)<=this.getRadius()}),google.maps.Rectangle.prototype.containsLatLng=function(e){return this.getBounds().contains(e)},google.maps.LatLngBounds.prototype.containsLatLng=function(e){return this.contains(e)},google.maps.Marker.prototype.setFences=function(e){this.fences=e},google.maps.Marker.prototype.addFence=function(e){this.fences.push(e)},google.maps.Marker.prototype.getId=function(){return this.__gm_id}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0==n)return-1;var i=0;if(1<arguments.length&&((i=Number(arguments[1]))!=i?i=0:0!=i&&i!=1/0&&i!=-1/0&&(i=(0<i||-1)*Math.floor(Math.abs(i)))),n<=i)return-1;for(var o=0<=i?i:Math.max(n-Math.abs(i),0);o<n;o++)if(o in t&&t[o]===e)return o;return-1}),c}),function(u){var d,o,t,n,i;function e(e){this.initialise.apply(this,arguments)}function r(e){d.deepExtend(this.options={},n),d.isPlainObject(e)&&d.deepExtend(this.options,e),this.currentServiceIndex=-1}function s(e,t,n){var i,o=document.createElement("script");o.type="text/"+(e.type||"javascript"),o.src=e.src||e,o.async=!1,o.onreadystatechange=o.onload=function(){var e=o.readyState;clearTimeout(i),t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),i=setTimeout(function(){t.done=!0,t(),o.onreadystatechange=o.onload=null},n)}function a(e,t,n,i,o){var r=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(r.open(i?"POST":"GET",e,1),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var s=0,a=o.length;s<a;++s){var l=o[s].split(":",2);r.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof t&&(r.onreadystatechange=function(){3<r.readyState&&t(r)}),r.send(i)}function l(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}function c(){this.initialise.apply(this,arguments)}function h(e){this.openingTimeout=null,d.removeClass(e,"cc-invisible")}function f(e){e.style.display="none",e.removeEventListener(u.transitionEnd,this.afterTransition),this.afterTransition=null}function p(){var e=this.options.position.split("-"),t=[];return e.forEach(function(e){t.push("cc-"+e)}),t}function m(){var e=this.options,t="top"==e.position||"bottom"==e.position?"banner":"floating",t=["cc-"+(t=d.isMobile()?"floating":t),"cc-type-"+e.type,"cc-theme-"+e.theme];return e.static&&t.push("cc-static"),t.push.apply(t,p.call(this)),function(e){var t=d.hash(JSON.stringify(e)),n="cc-color-override-"+t,i=d.isPlainObject(e);return this.customStyleSelector=i?n:null,i&&function(e,t,n){if(u.customStyles[e])++u.customStyles[e].references;else{var i={},o=t.popup,r=t.button,t=t.highlight;o&&(o.text=o.text||d.getContrast(o.background),o.link=o.link||o.text,i[n+".cc-window"]=["color: "+o.text,"background-color: "+o.background],i[n+".cc-revoke"]=["color: "+o.text,"background-color: "+o.background],i[n+" .cc-link,"+n+" .cc-link:active,"+n+" .cc-link:visited"]=["color: "+o.link],r&&(r.text=r.text||d.getContrast(r.background),r.border=r.border||"transparent",i[n+" .cc-btn"]=["color: "+r.text,"border-color: "+r.border,"background-color: "+r.background],r.padding&&i[n+" .cc-btn"].push("padding: "+r.padding),"transparent"!=r.background&&(i[n+" .cc-btn:hover, "+n+" .cc-btn:focus"]=["background-color: "+(r.hover||function(e){return"000000"==(e=d.normaliseHex(e))?"#222":d.getLuminance(e)}(r.background))]),t?(t.text=t.text||d.getContrast(t.background),t.border=t.border||"transparent",i[n+" .cc-highlight .cc-btn:first-child"]=["color: "+t.text,"border-color: "+t.border,"background-color: "+t.background]):i[n+" .cc-highlight .cc-btn:first-child"]=["color: "+o.text]));var s=document.createElement("style");document.head.appendChild(s),u.customStyles[e]={references:1,element:s.sheet};var a,l=-1;for(a in i)i.hasOwnProperty(a)&&s.sheet.insertRule(a+"{"+i[a].join(";")+"}",++l)}}(t,e,"."+n),i}.call(this,this.options.palette),this.customStyleSelector&&t.push(this.customStyleSelector),t}function g(e){var t=this.options,n=document.createElement("div"),i=t.container&&1===t.container.nodeType?t.container:document.body;n.innerHTML=e;n=n.children[0];return n.style.display="none",d.hasClass(n,"cc-window")&&u.hasTransition&&d.addClass(n,"cc-invisible"),this.onButtonClick=function(e){var t=d.traverseDOMPath(e.target,"cc-btn")||e.target;d.hasClass(t,"cc-btn")&&(e=t.className.match(new RegExp("\\bcc-("+o.join("|")+")\\b")),(e=e&&e[1]||!1)&&(this.setStatus(e),this.close(!0)));d.hasClass(t,"cc-close")&&(this.setStatus(u.status.dismiss),this.close(!0)),d.hasClass(t,"cc-revoke")&&this.revokeChoice()}.bind(this),n.addEventListener("click",this.onButtonClick),t.autoAttach&&(i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n)),n}function y(e,t){for(var n=0,i=e.length;n<i;++n){var o=e[n];if(o instanceof RegExp&&o.test(t)||"string"==typeof o&&o.length&&o===t)return 1}}u.hasInitialised||(d={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){return 1===e.nodeType&&0<=(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){t=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(t,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(e){return t(arguments[1])||""})},getCookie:function(e){e=("; "+document.cookie).split("; "+e+"=");return e.length<2?void 0:e.pop().split(";").shift()},setCookie:function(e,t,n,i,o,r){var s=new Date;s.setDate(s.getDate()+(n||365));o=[e+"="+t,"expires="+s.toUTCString(),"path="+(o||"/")];i&&o.push("domain="+i),r&&o.push("secure"),document.cookie=o.join(";")},deepExtend:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(n in e&&this.isPlainObject(e[n])&&this.isPlainObject(t[n])?this.deepExtend(e[n],t[n]):e[n]=t[n]);return e},throttle:function(e,t){var n=!1;return function(){n||(e.apply(this,arguments),n=!0,setTimeout(function(){n=!1},t))}},hash:function(e){var t,n,i=0;if(0===e.length)return i;for(t=0,n=e.length;t<n;++t)i=(i<<5)-i+e.charCodeAt(t),i|=0;return i},normaliseHex:function(e){return e=3==(e="#"==e[0]?e.substr(1):e).length?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e},getContrast:function(e){return e=this.normaliseHex(e),128<=(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),n=38+(t>>16),e=38+(t>>8&255),t=38+(255&t);return"#"+(16777216+65536*(n<255?n<1?0:n:255)+256*(e<255?e<1?0:e:255)+(t<255?t<1?0:t:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,t){return e&&e.parentNode?d.hasClass(e,t)?e:this.traverseDOMPath(e.parentNode,t):null}},u.status={deny:"deny",allow:"allow",dismiss:"dismiss"},u.transitionEnd=function(){var e,t=document.createElement("div"),n={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(e in n)if(n.hasOwnProperty(e)&&void 0!==t.style[e+"ransition"])return n[e];return""}(),u.hasTransition=!!u.transitionEnd,o=Object.keys(u.status).map(d.escapeRegExp),u.customStyles={},u.Popup=(i={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://cookiesandyou.com",close:"&#x274c;",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span>&nbsp;',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0"  class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null},c.prototype.initialise=function(e){this.options&&this.destroy(),d.deepExtend(this.options={},i),d.isPlainObject(e)&&d.deepExtend(this.options,e),function(){var e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(u.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return e(u.status.allow),!0;var t=Object.keys(u.status),n=this.getStatus();return(t=0<=t.indexOf(n))&&e(n),t}.call(this)&&(this.options.enabled=!1),y(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),y(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var t=this.options.window.replace("{{classes}}",m.call(this).join(" ")).replace("{{children}}",function(){var t={},n=this.options;n.showLink||(n.elements.link="",n.elements.messagelink=n.elements.message),Object.keys(n.elements).forEach(function(e){t[e]=d.interpolateString(n.elements[e],function(e){var t=n.content[e];return e&&"string"==typeof t&&t.length?t:""})});var e=(e=n.compliance[n.type])||n.compliance.info;return t.compliance=d.interpolateString(e,function(e){return t[e]}),e=(e=n.layouts[n.layout])||n.layouts.basic,d.interpolateString(e,function(e){return t[e]})}.call(this)),e=this.options.overrideHTML;"string"==typeof e&&e.length&&(t=e),this.options.static?((e=g.call(this,'<div class="cc-grower">'+t+"</div>")).style.display="",this.element=e.firstChild,this.element.style.display="none",d.addClass(this.element,"cc-invisible")):this.element=g.call(this,t),function(){var s=this.setStatus.bind(this),a=this.close.bind(this);"number"==typeof(e=this.options.dismissOnTimeout)&&0<=e&&(this.dismissTimeout=window.setTimeout(function(){s(u.status.dismiss),a(!0)},Math.floor(e)));var t,n=this.options.dismissOnScroll;"number"==typeof n&&0<=n&&(t=function(e){window.pageYOffset>Math.floor(n)&&(s(u.status.dismiss),a(!0),window.removeEventListener("scroll",t),this.onWindowScroll=null)},this.options.enabled&&(this.onWindowScroll=t,window.addEventListener("scroll",t)));var l,e=this.options.dismissOnWindowClick,c=this.options.ignoreClicksFrom;e&&(l=function(e){for(var t=!1,n=e.path.length,i=c.length,o=0;o<n;o++)if(!t)for(var r=0;r<i;r++)t=t||d.hasClass(e.path[o],c[r]);t||(s(u.status.dismiss),a(!0),window.removeEventListener("click",l),this.onWindowClick=null)}.bind(this),this.options.enabled&&(this.onWindowClick=l,window.addEventListener("click",l)))}.call(this),function(){var i,e;"info"!=this.options.type&&(this.options.revokable=!0),d.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable&&(e=p.call(this),this.options.animateRevokable&&e.push("cc-animate"),this.customStyleSelector&&e.push(this.customStyleSelector),e=this.options.revokeBtn.replace("{{classes}}",e.join(" ")).replace("{{policy}}",this.options.content.policy),this.revokeBtn=g.call(this,e),i=this.revokeBtn,this.options.animateRevokable&&(e=d.throttle(function(e){var t=!1,n=window.innerHeight-20;d.hasClass(i,"cc-top")&&e.clientY<20&&(t=!0),(t=d.hasClass(i,"cc-bottom")&&e.clientY>n?!0:t)?d.hasClass(i,"cc-active")||d.addClass(i,"cc-active"):d.hasClass(i,"cc-active")&&d.removeClass(i,"cc-active")},200),this.onMouseMove=e,window.addEventListener("mousemove",e)))}.call(this),this.options.autoOpen&&this.autoOpen()},c.prototype.destroy=function(){var e,t;this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,e=this.options.palette,d.isPlainObject(e)&&(t=d.hash(JSON.stringify(e)),(e=u.customStyles[t])&&!--e.references&&((e=e.element.ownerNode)&&e.parentNode&&e.parentNode.removeChild(e),u.customStyles[t]=null)),this.options=null},c.prototype.open=function(e){if(this.element)return this.isOpen()||(u.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},c.prototype.close=function(e){if(this.element)return this.isOpen()&&(u.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},c.prototype.fadeIn=function(){var e,t=this.element;u.hasTransition&&t&&(this.afterTransition&&f.call(this,t),d.hasClass(t,"cc-invisible"))&&(t.style.display="",this.options.static&&(e=this.element.clientHeight,this.element.parentNode.style.maxHeight=e+"px"),this.openingTimeout=setTimeout(h.bind(this,t),20))},c.prototype.fadeOut=function(){var e=this.element;u.hasTransition&&e&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),h.bind(this,e)),d.hasClass(e,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=f.bind(this,e),e.addEventListener(u.transitionEnd,this.afterTransition),d.addClass(e,"cc-invisible")))},c.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!u.hasTransition||!d.hasClass(this.element,"cc-invisible"))},c.prototype.toggleRevokeButton=function(e){this.revokeBtn&&(this.revokeBtn.style.display=e?"":"none")},c.prototype.revokeChoice=function(e){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),e||this.autoOpen()},c.prototype.hasAnswered=function(e){return 0<=Object.keys(u.status).indexOf(this.getStatus())},c.prototype.hasConsented=function(e){var t=this.getStatus();return t==u.status.allow||t==u.status.dismiss},c.prototype.autoOpen=function(e){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},c.prototype.setStatus=function(e){var t=this.options.cookie,n=d.getCookie(t.name),n=0<=Object.keys(u.status).indexOf(n);0<=Object.keys(u.status).indexOf(e)?(d.setCookie(t.name,e,t.expiryDays,t.domain,t.path,t.secure),this.options.onStatusChange.call(this,e,n)):this.clearStatus()},c.prototype.getStatus=function(){return d.getCookie(this.options.cookie.name)},c.prototype.clearStatus=function(){var e=this.options.cookie;d.setCookie(e.name,"",-1,e.domain,e.path)},c),u.Location=(n={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,t){try{var n=JSON.parse(t);return n.error?l(n):{code:n.country}}catch(e){return l({error:"Invalid response ("+e+")"})}}}},ipinfodb:function(e){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(e,t){try{var n=JSON.parse(t);return"ERROR"==n.statusCode?l({error:n.statusMessage}):{code:n.countryCode}}catch(e){return l({error:"Invalid response ("+e+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){return window.geoip2?void geoip2.country(function(e){try{t({code:e.country.iso_code})}catch(e){t(l(e))}},function(e){t(l(e))}):void t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}},r.prototype.getNextService=function(){for(var e;e=this.getServiceByIdx(++this.currentServiceIndex),this.currentServiceIndex<this.options.services.length&&!e;);return e},r.prototype.getServiceByIdx=function(e){e=this.options.services[e];if("function"!=typeof e)return"string"==typeof e?this.options.serviceDefinitions[e]():d.isPlainObject(e)?this.options.serviceDefinitions[e.name](e):null;e=e();return e.name&&d.deepExtend(e,this.options.serviceDefinitions[e.name](e)),e},r.prototype.locate=function(e,t){var n=this.getNextService();return n?(this.callbackComplete=e,this.callbackError=t,void this.runService(n,this.runNextServiceOnError.bind(this))):void t(new Error("No services to run"))},r.prototype.setupUrl=function(i){var o=this.getCurrentServiceOpts();return i.url.replace(/\{(.*?)\}/g,function(e,t){if("callback"===t){var n="callback"+Date.now();return window[n]=function(e){i.__JSONP_DATA=JSON.stringify(e)},n}if(t in o.interpolateUrl)return o.interpolateUrl[t]})},r.prototype.runService=function(t,n){var i=this;t&&t.url&&t.callback&&(t.isScript?s:a)(this.setupUrl(t),function(e){e=e?e.responseText:"";t.__JSONP_DATA&&(e=t.__JSONP_DATA,delete t.__JSONP_DATA),i.runServiceCallback.call(i,n,t,e)},this.options.timeout,t.data,t.headers)},r.prototype.runServiceCallback=function(t,e,n){var i=this,o=e.callback(function(e){o||i.onServiceResult.call(i,t,e)},n);o&&this.onServiceResult.call(this,t,o)},r.prototype.onServiceResult=function(e,t){t instanceof Error||t&&t.error?e.call(this,t,null):e.call(this,null,t)},r.prototype.runNextServiceOnError=function(e,t){e?(this.logError(e),(e=this.getNextService())?this.runService(e,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))):this.completeService.call(this,this.callbackComplete,t)},r.prototype.getCurrentServiceOpts=function(){var e=this.options.services[this.currentServiceIndex];return"string"==typeof e?{name:e}:"function"==typeof e?e():d.isPlainObject(e)?e:{}},r.prototype.completeService=function(e,t){this.currentServiceIndex=-1,e&&e(t)},r.prototype.logError=function(e){var t=this.currentServiceIndex,n=this.getServiceByIdx(t);console.warn("The service["+t+"] ("+n.url+") responded with the following error",e)},r),u.Law=(t={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]},e.prototype.initialise=function(e){d.deepExtend(this.options={},t),d.isPlainObject(e)&&d.deepExtend(this.options,e)},e.prototype.get=function(e){var t=this.options;return{hasLaw:0<=t.hasLaw.indexOf(e),revokable:0<=t.revokable.indexOf(e),explicitAction:0<=t.explicitAction.indexOf(e)}},e.prototype.applyLaw=function(e,t){var n=this.get(t);return n.hasLaw||(e.enabled=!1,"function"==typeof e.onNoCookieLaw&&e.onNoCookieLaw(t,n)),this.options.regionalLaw&&(n.revokable&&(e.revokable=!0),n.explicitAction&&(e.dismissOnScroll=!1,e.dismissOnTimeout=!1)),e},e),u.initialise=function(t,n,i){var o=new u.Law(t.law);n=n||function(){},i=i||function(){};var e=Object.keys(u.status),r=d.getCookie("cookieconsent_status");return 0<=e.indexOf(r)?void n(new u.Popup(t)):void u.getCountryCode(t,function(e){delete t.law,delete t.location,e.code&&(t=o.applyLaw(t,e.code)),n(new u.Popup(t))},function(e){delete t.law,delete t.location,i(e,new u.Popup(t))})},u.getCountryCode=function(e,t,n){e.law&&e.law.countryCode?t({code:e.law.countryCode}):e.location?new u.Location(e.location).locate(function(e){t(e||{})},n):t({})},u.utils=d,u.hasInitialised=!0,window.cookieconsent=u)}(window.cookieconsent||{});