vendor: 4,414 bytes, lines 1-7
1/*! jQuery v2.1.3 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ 2/*! 3 * Bootstrap v3.3.4 (http://getbootstrap.com) 4 * Copyright 2011-2015 Twitter, Inc. 5 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 */ 7if(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(e,t){var n=[],i=n.slice,o=n.concat,r=n.push,s=n.indexOf,a={},l=a.toString,c=a.hasOwnProperty,u={},d=e.document,f="2.1.3",p=function(e,t){return new p.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,m=/^-ms-/,g=/-([\da-z])/gi,v=function(e,t){return t.toUpperCase()};function y(e){var t=e.length,n=p.type(e);return"function"!==n&&!p.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}p.fn=p.prototype={jquery:f,constructor:p,selector:"",length:0,toArray:function(){return i.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:i.call(this)},pushStack:function(e){var t=p.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return p.each(this,e,t)},map:function(e){return this.pushStack(p.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:r,sort:n.sort,splice:n.splice},p.extend=p.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||p.isFunction(s)||(s={}),a===l&&(s=this,a--);l>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(c&&i&&(p.isPlainObject(i)||(o=p.isArray(i)))?(o?(o=!1,r=n&&p.isArray(n)?n:[]):r=n&&p.isPlainObject(n)?n:{},s[t]=p.extend(c,r,i)):void 0!==i&&(s[t]=i));return s},p.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===p.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!p.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"===p.type(e)&&!e.nodeType&&!p.isWindow(e)&&!(e.constructor&&!c.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?a[l.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=p.trim(e))&&(1===e.indexOf("use strict")?((t=d.createElement("script")).text=e,d.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(m,"ms-").replace(g,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var i=0,o=e.length,r=y(e);if(n){if(r)for(;o>i&&!1!==t.apply(e[i],n);i++);else for(i in e)if(!1===t.apply(e[i],n))break}else if(r)for(;o>i&&!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(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(y(Object(e))?p.merge(n,"string"==typeof e?[e]:e):r.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;n>i;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;r>o;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,r=0,s=e.length,a=[];if(y(e))for(;s>r;r++)null!=(i=t(e[r],r,n))&&a.push(i);else for(r in e)null!=(i=t(e[r],r,n))&&a.push(i);return o.apply([],a)},guid:1,proxy:function(e,t){var n,o,r;return"string"==typeof t&&(n=e[t],t=e,e=n),p.isFunction(e)?(o=i.call(arguments,2),r=function(){return e.apply(t||this,o.concat(i.call(arguments)))},r.guid=e.guid=e.guid||p.guid++,r):void 0},now:Date.now,support:u}),p.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){a["[object "+t+"]"]=t.toLowerCase()});var b=function(e){var t,n,i,o,r,s,a,l,c,u,d,f,p,h,m,g,v,y,b,w="sizzle"+1*ne
7w Date,_=e.document,x=0,T=0,k=se(),S=se(),C=se(),D=function(e,t){return e===t&&(d=!0),0},M=1<<31,$={}.hasOwnProperty,E=[],O=E.pop,A=E.push,P=E.push,I=E.slice,N=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",H=j.replace("w","w#"),R="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+L+"*\\]",z=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",B=new RegExp(L+"+","g"),q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),W=new RegExp("^"+L+"*,"+L+"*"),Y=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),G=new RegExp(z),V=new RegExp("^"+H+"$"),X={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j.replace("w","w*")+")"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ie=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},oe=function(){f()};try{P.apply(E=I.call(_.childNodes),_.childNodes),E[_.childNodes.length].nodeType}catch(e){P={apply:E.length?function(e,t){A.apply(e,I.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,o){var r,a,c,u,d,h,v,y,x,T;if((t?t.ownerDocument||t:_)!==p&&f(t),i=i||[],u=(t=t||p).nodeType,"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!o&&m){if(11!==u&&(r=Q.exec(e)))if(c=r[1]){if(9===u){if(!(a=t.getElementById(c))||!a.parentNode)return i;if(a.id===c)return i.push(a),i}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(c))&&b(t,a)&&a.id===c)return i.push(a),i}else{if(r[2])return P.apply(i,t.getElementsByTagName(e)),i;if((c=r[3])&&n.getElementsByClassName)return P.apply(i,t.getElementsByClassName(c)),i}if(n.qsa&&(!g||!g.test(e))){if(y=v=w,x=t,T=1!==u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(h=s(e),(v=t.getAttribute("id"))?y=v.replace(te,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",d=h.length;d--;)h[d]=y+ge(h[d]);x=ee.test(e)&&he(t.parentNode)||t,T=h.join(",")}if(T)try{return P.apply(i,x.querySelectorAll(T)),i}catch(e){}finally{v||t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,i,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[w]=!0,e}function le(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),o=e.length;o--;)i.attrHandle[n[o]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||M)-(~e.sourceIndex||M);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return ae(function(t){return t=+t,ae(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=re.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:_;return s!==p&&9===s.nodeType&&s.documentElement?(p=s,h=s.documentElement,(o=s.defaultView)&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",oe,!1):o.attachEvent&&o.attachEvent("onunload",oe)),m=!r(s),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(s.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(s.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=w,!s.getElementsByName||!s.getElementsByName(w).length}),n.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(ne,ie);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(ne,ie);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);
vendor: 9,010 bytes, line 7
7if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){return m?t.getElementsByClassName(e):void 0},v=[],g=[],(n.qsa=Z.test(s.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),le(function(e){var t=s.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",z)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(h.compareDocumentPosition),b=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===s||e.ownerDocument===_&&b(_,e)?-1:t===s||t.ownerDocument===_&&b(_,t)?1:u?N(u,e)-N(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!o||!r)return e===s?-1:t===s?1:o?-1:r?1:u?N(u,e)-N(u,t):0;if(o===r)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?ue(a[i],l[i]):a[i]===_?-1:l[i]===_?1:0},s):p},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(U,"='$1']"),!(!n.matchesSelector||!m||v&&v.test(t)||g&&g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,p,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var o=i.attrHandle[t.toLowerCase()],r=o&&$.call(i.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==r?r:n.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],o=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return u=null,e},o=re.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},i=re.selectors={cacheLength:50,createPseudo:ae,match:X,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,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,ie),"~="===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]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=s(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,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=re.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=r!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a;if(g){if(r){for(;m;){for(d=t;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&y){for(p=(c=(u=g[w]||(g[w]={}))[e]||[])[0]===x&&c[1],f=c[0]===x&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){u[e]=[x,p,f];break}}else if(y&&(c=(t[w]||(t[w]={}))[e])&&c[0]===x)f=c[1];else for(;(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[w]||(d[w]={}))[e]=[x,f]),d!==t)););return(f-=o)===i||f%i===0&&f/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=N(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(q,"$1"));return i[w]?ae(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(ne,ie),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ae(function(e){return V.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(ne,ie).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.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!i.pseudos.empty(e)},header:function(e){return J.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){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[0>n?n+t:n]}),even:pe(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function me(){}function ge(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function ve(e,t,n){var i=t.dir,o=n&&"parentNode"===i,r=T++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var a,l,c=[x,r];if(s){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||o){if((a=(l=t[w]||(t[w]={}))[i])&&a[0]===x&&a[1]===r)return c[2]=a[2];if(l[i]=c,c[2]=e(t,n,s))return!0}}}function ye(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function be(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;l>a;
vendor: 34,666 bytes, line 7
7a++)(r=e[a])&&(!n||n(r,i,o))&&(s.push(r),c&&t.push(a));return s}function we(e,t,n,i,o,r){return i&&!i[w]&&(i=we(i)),o&&!o[w]&&(o=we(o,r)),ae(function(r,s,a,l){var c,u,d,f=[],p=[],h=s.length,m=r||function(e,t,n){for(var i=0,o=t.length;o>i;i++)re(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!r&&t?m:be(m,f,e,a,l),v=n?o||(r?e:h||i)?[]:s:g;if(n&&n(g,v,a,l),i)for(c=be(v,p),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(g[p[u]]=d));if(r){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?N(r,d):f[u])>-1&&(r[c]=!(s[c]=d))}}else v=be(v===s?v.splice(h,v.length):v),o?o(null,s,v,l):P.apply(s,v)})}function _e(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,u=ve(function(e){return e===t},a,!0),d=ve(function(e){return N(t,e)>-1},a,!0),f=[function(e,n,i){var o=!s&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,o}];r>l;l++)if(n=i.relative[e[l].type])f=[ve(ye(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(o=++l;r>o&&!i.relative[e[o].type];o++);return we(l>1&&ye(f),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,o>l&&_e(e.slice(l,o)),r>o&&_e(e=e.slice(o)),r>o&&ge(e))}f.push(n)}return ye(f)}function xe(e,t){var n=t.length>0,o=e.length>0,r=function(r,s,a,l,u){var d,f,h,m=0,g="0",v=r&&[],y=[],b=c,w=r||o&&i.find.TAG("*",u),_=x+=null==b?1:Math.random()||.1,T=w.length;for(u&&(c=s!==p&&s);g!==T&&null!=(d=w[g]);g++){if(o&&d){for(f=0;h=e[f++];)if(h(d,s,a)){l.push(d);break}u&&(x=_)}n&&((d=!h&&d)&&m--,r&&v.push(d))}if(m+=g,n&&g!==m){for(f=0;h=t[f++];)h(v,y,s,a);if(r){if(m>0)for(;g--;)v[g]||y[g]||(y[g]=O.call(l));y=be(y)}P.apply(l,y),u&&!r&&y.length>0&&m+t.length>1&&re.uniqueSort(l)}return u&&(x=_,c=b),v};return n?ae(r):r}return me.prototype=i.filters=i.pseudos,i.setFilters=new me,s=re.tokenize=function(e,t){var n,o,r,s,a,l,c,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(s in(!n||(o=W.exec(a)))&&(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=Y.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(q," ")}),a=a.slice(n.length)),i.filter)!(o=X[s].exec(a))||c[s]&&!(o=c[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):S(e,l).slice(0)},a=re.compile=function(e,t){var n,i=[],o=[],r=C[e+" "];if(!r){for(t||(t=s(e)),n=t.length;n--;)(r=_e(t[n]))[w]?i.push(r):o.push(r);(r=C(e,xe(o,i))).selector=e}return r},l=re.select=function(e,t,o,r){var l,c,u,d,f,p="function"==typeof e&&e,h=!r&&s(e=p.selector||e);if(o=o||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&n.getById&&9===t.nodeType&&m&&i.relative[c[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(ne,ie),t)||[])[0]))return o;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=X.needsContext.test(e)?0:c.length;l--&&(u=c[l],!i.relative[d=u.type]);)if((f=i.find[d])&&(r=f(u.matches[0].replace(ne,ie),ee.test(c[0].type)&&he(t.parentNode)||t))){if(c.splice(l,1),!(e=r.length&&ge(c)))return P.apply(o,r),o;break}}return(p||a(e,h))(r,t,!m,o,ee.test(e)&&he(t.parentNode)||t),o},n.sortStable=w.split("").sort(D).join("")===w,n.detectDuplicates=!!d,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(F,function(e,t,n){var i;return n?void 0:!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(e);p.find=b,p.expr=b.selectors,p.expr[":"]=p.expr.pseudos,p.unique=b.uniqueSort,p.text=b.getText,p.isXMLDoc=b.isXML,p.contains=b.contains;var w=p.expr.match.needsContext,_=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function T(e,t,n){if(p.isFunction(t))return p.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return p.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(x.test(t))return p.filter(t,e,n);t=p.filter(t,e)}return p.grep(e,function(e){return s.call(t,e)>=0!==n})}p.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?p.find.matchesSelector(i,e)?[i]:[]:p.find.matches(e,p.grep(t,function(e){return 1===e.nodeType}))},p.fn.extend({find:function(e){var t,n=this.length,i=[],o=this;if("string"!=typeof e)return this.pushStack(p(e).filter(function(){for(t=0;n>t;t++)if(p.contains(o[t],this))return!0}));for(t=0;n>t;t++)p.find(e,o[t],i);return(i=this.pushStack(n>1?p.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&w.test(e)?p(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=p.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:S.exec(e))||!n[1]&&t)return!t||t.jquery?(t||k).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof p?t[0]:t,p.merge(this,p.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:d,!0)),_.test(n[1])&&p.isPlainObject(t))for(n in t)p.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=d.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=d,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):p.isFunction(e)?void 0!==k.ready?k.ready(e):e(p):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),p.makeArray(e,this))};C.prototype=p.fn,k=p(d);var D=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}p.extend({dir:function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&p(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),p.fn.extend({has:function(e){var t=p(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(p.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,r=[],s=w.test(e)||"string"!=typeof e?p(e,t||this.context):0;o>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&p.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?p.unique(r):r)},index:function(e){return e?"string"==typeof e?s.call(p(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(p.unique(p.merge(this.get(),p(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p.dir(e,"parentNode")},parentsUntil:function(e,t,n){return p.dir(e,"parentNode",n)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return p.dir(e,"nextSibling")},prevAll:function(e){return p.dir(e,"previousSibling")},nextUntil:function(e,t,n){return p.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return p.dir(e,"previousSibling",n)},siblings:function(e){return p.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return p.sibling(e.firstChild)},contents:function(e){return e.contentDocument||p.merge([],e.childNodes)}},function(e,t){p.fn[e]=function(n,i){var o=p.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=p.filter(i,o)),this.length>1&&(M[e]||p.unique(o),D.test(e)&&o.reverse()),this.pushStack(o)}});var E,O=/\S+/g,A={};function P(){d.removeEventListener("DOMContentLoaded",P,!1),e.removeEventListener("load",P,!1),p.ready()}p.Callbacks=function(e){e="string"==typeof e?A[e]||function(e){var t=A[e]={};return p.each(e.match(O)||[],function(e,n){t[n]=!0}),t}(e):p.extend({},e);var t,n,i,o,r,s,a=[],l=!e.once&&[],c=function(d){for(t=e.memory&&d,n=!0,s=o||0,o=0,r=a.length,i=!0;a&&r>s;s++)if(!1===a[s].apply(d[0],d[1])&&e.stopOnFalse){t=!1;break}i=!1,a&&(l?l.length&&c(l.shift()):t?a=[]:u.disable())},u={add:function(){if(a){var n=a.length;!function t(n){p.each(n,function(n,i){var o=p.type(i);"function"===o?e.unique&&u.has(i)||a.push(i):i&&i.length&&"string"!==o&&t(i)})}(arguments),i?r=a.length:t&&(o=n,c(t))}return this},remove:function(){return a&&p.each(arguments,function(e,t){for(var n;(n=p.inArray(t,a,n))>-1;)a.splice(n,1),i&&(r>=n&&r--,s>=n&&s--)}),this},has:function(e){return e?p.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],r=0,this},disable:function(){return a=l=t=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,t||u.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!a||n&&!l||(t=[e,(t=t||[]).slice?t.slice():t],i?l.push(t):c(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},p.extend({Deferred:function(e){var t=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return p.Deferred(function(n){p.each(t,function(t,r){var s=p.isFunction(e[t])&&e[t];o[r[1]](function(){var e=s&&s.apply(this,arguments);e&&p.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r[0]+"With"](this===i?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?p.extend(e,i):i}},o={};return i.pipe=i.then,p.each(t,function(e,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=s.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,o,r=0,s=i.call(arguments),a=s.length,l=1!==a||e&&p.isFunction(e.promise)?a:0,c=1===l?e:p.Deferred(),u=function(e,n,o){return function(r){n[e]=this,o[e]=arguments.length>1?i.call(arguments):r,o===t?c.notifyWith(n,o):--l||c.resolveWith(n,o)}};if(a>1)for(t=new Array(a),n=new Array(a),o=new Array(a);a>r;r++)s[r]&&p.isFunction(s[r].promise)?s[r].promise().done(u(r,o,s)).fail(c.reject).progress(u(r,n,t)):--l;return l||c.resolveWith(o,s),c.promise()}}),p.fn.ready=function(e){return p.ready.promise().done(e),this},p.extend({isReady:!1,readyWait:1,holdReady:function(e){e?p.readyWait++:p.ready(!0)},ready:function(e){(!0===e?--p.readyWait:p.isReady)||(p.isReady=!0,!0!==e&&--p.readyWait>0||(E.resolveWith(d,[p]),p.fn.triggerHandler&&(p(d).triggerHandler("ready"),p(d).off("ready"))))}}),p.ready.promise=function(t){return E||(E=p.Deferred(),"complete"===d.readyState?setTimeout(p.ready):(d.addEventListener("DOMContentLoaded",P,!1),e.addEventListener("load",P,!1))),E.promise(t)},p.ready.promise();var I=p.access=function(e,t,n,i,o,r,s){var a=0,l=e.length,c=null==n;if("object"===p.type(n))for(a in o=!0,n)p.access(e,t,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,p.isFunction(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(p(e),n)})),t))for(;l>a;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 N(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=p.expando+N.uid++}p.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},N.uid=1,N.accepts=p.acceptData,N.prototype={key:function(e){if(!N.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=N.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(i){t[this.expando]=n,p.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var i,o=this.key(e),r=this.cache[o];if("string"==typeof t)r[t]=n;else if(p.isEmptyObject(r))p.extend(this.cache[o],t);else for(i in t)r[i]=t[i];return r},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[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,p.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,o,r=this.key(e),s=this.cache[r];if(void 0===t)this.cache[r]={};else{p.isArray(t)?i=t.concat(t.map(p.camelCase)):(o=p.camelCase(t),t in s?i=[t,o]:i=(i=o)in s?[i]:i.match(O)||[]),n=i.length;for(;n--;)delete s[i[n]]}},hasData:function(e){return!p.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var F=new N,L=new N,j=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function R(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(H,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:j.test(n)?p.parseJSON(n):n)}catch(e){}L.set(e,t,n)}else n=void 0;return n}p.extend({hasData:function(e){return L.hasData(e)||F.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return F.access(e,t,n)},_removeData:function(e,t){F.remove(e,t)}}),p.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=L.get(r),1===r.nodeType&&!F.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(0===(i=s[n].name).indexOf("data-")&&(i=p.camelCase(i.slice(5)),R(r,i,o[i])));F.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){L.set(this,e)}):I(this,function(t){var n,i=p.camelCase(e);if(r&&void 0===t){if(void 0!==(n=L.get(r,e)))return n;if(void 0!==(n=L.get(r,i)))return n;if(void 0!==(n=R(r,i,void 0)))return n}else this.each(function(){var n=L.get(this,i);L.set(this,i,t),-1!==e.indexOf("-")&&void 0!==n&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}}),p.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=F.get(e,t),n&&(!i||p.isArray(n)?i=F.access(e,t,p.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=p.queue(e,t),i=n.length,o=n.shift(),r=p._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){p.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return F.get(e,n)||F.access(e,n,{empty:p.Callbacks("once memory").add(function(){F.remove(e,[t+"queue",n])})})}}),p.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?p.queue(this[0],e):void 0===t?this:this.each(function(){var n=p.queue(this,e,t);p._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&p.dequeue(this,e)})},dequeue:function(e){return this.each(function(){p.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=p.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=F.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,B=["Top","Right","Bottom","Left"],q=function(e,t){return e=t||e,"none"===p.css(e,"display")||!p.contains(e.ownerDocument,e)},W=/^(?:checkbox|radio)$/i;!function(){var e=d.createDocumentFragment().appendChild(d.createElement("div")),t=d.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",u.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Y="undefined";u.focusinBubbles="onfocusin"in e;var U=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,V=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function J(){return!1}function Z(){try{return d.activeElement}catch(e){}}p.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,u,d,f,h,m,g,v=F.get(e);if(v)for(n.handler&&(n=(r=n).handler,o=r.selector),n.guid||(n.guid=p.guid++),(l=v.events)||(l=v.events={}),(s=v.handle)||(s=v.handle=function(t){return typeof p!==Y&&p.event.triggered!==t.type?p.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(O)||[""]).length;c--;)h=g=(a=X.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),h&&(d=p.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=p.event.special[h]||{},u=p.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&p.expr.match.needsContext.test(o),namespace:m.join(".")},r),(f=l[h])||((f=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,m,s)||e.addEventListener&&e.addEventListener(h,s,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),p.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,u,d,f,h,m,g,v=F.hasData(e)&&F.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(O)||[""]).length;c--;)if(h=g=(a=X.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),h){for(d=p.event.special[h]||{},f=l[h=(i?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)u=f[r],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(f.splice(r,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,m,v.handle)||p.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)p.event.remove(e,h+t[c],n,i,!0);p.isEmptyObject(l)&&(delete v.handle,F.remove(e,"events"))}},trigger:function(t,n,i,o){var r,s,a,l,u,f,h,m=[i||d],g=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(s=a=i=i||d,3!==i.nodeType&&8!==i.nodeType&&!V.test(g+p.event.triggered)&&(g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[p.expando]?t:new p.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:p.makeArray(n,[t]),h=p.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(i,n))){if(!o&&!h.noBubble&&!p.isWindow(i)){for(l=h.delegateType||g,V.test(l+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),a=s;a===(i.ownerDocument||d)&&m.push(a.defaultView||a.parentWindow||e)}for(r=0;(s=m[r++])&&!t.isPropagationStopped();)t.type=r>1?l:h.bindType||g,(f=(F.get(s,"events")||{})[t.type]&&F.get(s,"handle"))&&f.apply(s,n),(f=u&&s[u])&&f.apply&&p.acceptData(s)&&(t.result=f.apply(s,n),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),n)||!p.acceptData(i)||u&&p.isFunction(i[g])&&!p.isWindow(i)&&((a=i[u])&&(i[u]=null),p.event.triggered=g,i[g](),p.event.triggered=void 0,a&&(i[u]=a)),t.result}},dispatch:function(e){e=p.event.fix(e);var t,n,o,r,s,a=[],l=i.call(arguments),c=(F.get(this,"events")||{})[e.type]||[],u=p.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=p.event.handlers.call(this,e,c),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(s.namespace))&&(e.handleObj=s,e.data=s.data,void 0!==(o=((p.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.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&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(i=[],n=0;a>n;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?p(o,this).index(l)>=0:p.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 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,r=t.button;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||d).documentElement,o=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[p.expando])return e;var t,n,i,o=e.type,r=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=G.test(o)?this.mouseHooks:U.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new p.Event(r),t=i.length;t--;)e[n=i[t]]=r[n];return e.target||(e.target=d),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!==Z()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===Z()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&p.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return p.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var o=p.extend(new p.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?p.event.trigger(o,null,t):p.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},p.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},p.Event=function(e,t){return this instanceof p.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?K:J):this.type=e,t&&p.extend(this,t),this.timeStamp=e&&e.timeStamp||p.now(),void(this[p.expando]=!0)):new p.Event(e,t)},p.Event.prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=K,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=K,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=K,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},p.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){p.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return(!i||i!==this&&!p.contains(this,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),u.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){p.event.simulate(t,e.target,p.event.fix(e),!0)};p.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=F.access(i,t);o||i.addEventListener(e,n,!0),F.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=F.access(i,t)-1;o?F.access(i,t,o):(i.removeEventListener(e,n,!0),F.remove(i,t))}}}),p.fn.extend({on:function(e,t,n,i,o){var r,s;if("object"==typeof e){for(s in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(s,t,n,e[s],o);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),!1===i)i=J;else if(!i)return this;return 1===o&&(r=i,i=function(e){return p().off(e),r.apply(this,arguments)},i.guid=r.guid||(r.guid=p.guid++)),this.each(function(){p.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,p(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return(!1===t||"function"==typeof t)&&(n=t,t=void 0),!1===n&&(n=J),this.each(function(){p.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){p.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?p.event.trigger(e,t,n,!0):void 0}});var Q=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ee=/<([\w:]+)/,te=/<|&#?\w+;/,ne=/<(?:script|style|link)/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,oe=/^$|\/(?:java|ecma)script/i,re=/^true\/(.*)/,se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ae={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 le(e,t){return p.nodeName(e,"table")&&p.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ce(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ue(e){var t=re.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function de(e,t){for(var n=0,i=e.length;i>n;n++)F.set(e[n],"globalEval",!t||F.get(t[n],"globalEval"))}function fe(e,t){var n,i,o,r,s,a,l,c;if(1===t.nodeType){if(F.hasData(e)&&(r=F.access(e),s=F.set(t,r),c=r.events))for(o in delete s.handle,s.events={},c)for(n=0,i=c[o].length;i>n;n++)p.event.add(t,o,c[o][n]);L.hasData(e)&&(a=L.access(e),l=p.extend({},a),L.set(t,l))}}function pe(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&p.nodeName(e,t)?p.merge([e],n):n}function he(e,t){var n=t.nodeName.toLowerCase();"input"===n&&W.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td,p.extend({clone:function(e,t,n){var i,o,r,s,a=e.cloneNode(!0),l=p.contains(e.ownerDocument,e);if(!(u.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||p.isXMLDoc(e)))for(s=pe(a),i=0,o=(r=pe(e)).length;o>i;i++)he(r[i],s[i]);if(t)if(n)for(r=r||pe(e),s=s||pe(a),i=0,o=r.length;o>i;i++)fe(r[i],s[i]);else fe(e,a);return(s=pe(a,"script")).length>0&&de(s,!l&&pe(e,"script")),a},buildFragment:function(e,t,n,i){for(var o,r,s,a,l,c,u=t.createDocumentFragment(),d=[],f=0,h=e.length;h>f;f++)if((o=e[f])||0===o)if("object"===p.type(o))p.merge(d,o.nodeType?[o]:o);else if(te.test(o)){for(r=r||u.appendChild(t.createElement("div")),s=(ee.exec(o)||["",""])[1].toLowerCase(),a=ae[s]||ae._default,r.innerHTML=a[1]+o.replace(Q,"<$1></$2>")+a[2],c=a[0];c--;)r=r.lastChild;p.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(t.createTextNode(o));for(u.textContent="",f=0;o=d[f++];)if((!i||-1===p.inArray(o,i))&&(l=p.contains(o.ownerDocument,o),r=pe(u.appendChild(o),"script"),l&&de(r),n))for(c=0;o=r[c++];)oe.test(o.type||"")&&n.push(o);return u},cleanData:function(e){for(var t,n,i,o,r=p.event.special,s=0;void 0!==(n=e[s]);s++){if(p.acceptData(n)&&((o=n[F.expando])&&(t=F.cache[o]))){if(t.events)for(i in t.events)r[i]?p.event.remove(n,i):p.removeEvent(n,i,t.handle);F.cache[o]&&delete F.cache[o]}delete L.cache[n[L.expando]]}}}),p.fn.extend({text:function(e){return I(this,function(e){return void 0===e?p.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 this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||le(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?p.filter(e,this):this,o=0;null!=(n=i[o]);o++)t||1!==n.nodeType||p.cleanData(pe(n)),n.parentNode&&(t&&p.contains(n.ownerDocument,n)&&de(pe(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(p.cleanData(pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return p.clone(this,e,t)})},html:function(e){return I(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&&!ne.test(e)&&!ae[(ee.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Q,"<$1></$2>");try{for(;i>n;n++)1===(t=this[n]||{}).nodeType&&(p.cleanData(pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,p.cleanData(pe(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=o.apply([],e);var n,i,r,s,a,l,c=0,d=this.length,f=this,h=d-1,m=e[0],g=p.isFunction(m);if(g||d>1&&"string"==typeof m&&!u.checkClone&&ie.test(m))return this.each(function(n){var i=f.eq(n);g&&(e[0]=m.call(this,n,i.html())),i.domManip(e,t)});if(d&&(i=(n=p.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=i),i)){for(s=(r=p.map(pe(n,"script"),ce)).length;d>c;c++)a=n,c!==h&&(a=p.clone(a,!0,!0),s&&p.merge(r,pe(a,"script"))),t.call(this[c],a,c);if(s)for(l=r[r.length-1].ownerDocument,p.map(r,ue),c=0;s>c;c++)a=r[c],oe.test(a.type||"")&&!F.access(a,"globalEval")&&p.contains(l,a)&&(a.src?p._evalUrl&&p._evalUrl(a.src):p.globalEval(a.textContent.replace(se,"")))}return this}}),p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){p.fn[e]=function(e){for(var n,i=[],o=p(e),s=o.length-1,a=0;s>=a;a++)n=a===s?this:this.clone(!0),p(o[a])[t](n),r.apply(i,n.get());return this.pushStack(i)}});var me,ge={};function ve(t,n){var i,o=p(n.createElement(t)).appendTo(n.body),r=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(o[0]))?i.display:p.css(o[0],"display");return o.detach(),r}function ye(e){var t=d,n=ge[e];return n||("none"!==(n=ve(e,t))&&n||((t=(me=(me||p("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ve(e,t),me.detach()),ge[e]=n),n}var be=/^margin/,we=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),_e=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};function xe(e,t,n){var i,o,r,s,a=e.style;return(n=n||_e(e))&&(s=n.getPropertyValue(t)||n[t]),n&&(""!==s||p.contains(e.ownerDocument,e)||(s=p.style(e,t)),we.test(s)&&be.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Te(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var t,n,i=d.documentElement,o=d.createElement("div"),r=d.createElement("div");if(r.style){function s(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r.innerHTML="",i.appendChild(o);var s=e.getComputedStyle(r,null);t="1%"!==s.top,n="4px"===s.width,i.removeChild(o)}r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(r),e.getComputedStyle&&p.extend(u,{pixelPosition:function(){return s(),t},boxSizingReliable:function(){return null==n&&s(),n},reliableMarginRight:function(){var t,n=r.appendChild(d.createElement("div"));return n.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",r.style.width="1px",i.appendChild(o),t=!parseFloat(e.getComputedStyle(n,null).marginRight),i.removeChild(o),r.removeChild(n),t}})}}(),p.swap=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=s[r];return o};var ke=/^(none|table(?!-c[ea]).+)/,Se=new RegExp("^("+z+")(.*)$","i"),Ce=new RegExp("^([+-])=("+z+")","i"),De={position:"absolute",visibility:"hidden",display:"block"},Me={letterSpacing:"0",fontWeight:"400"},$e=["Webkit","O","Moz","ms"];function Ee(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,o=$e.length;o--;)if((t=$e[o]+n)in e)return t;return i}function Oe(e,t,n){var i=Se.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function Ae(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;4>r;r+=2)"margin"===n&&(s+=p.css(e,n+B[r],!0,o)),i?("content"===n&&(s-=p.css(e,"padding"+B[r],!0,o)),"margin"!==n&&(s-=p.css(e,"border"+B[r]+"Width",!0,o))):(s+=p.css(e,"padding"+B[r],!0,o),"padding"!==n&&(s+=p.css(e,"border"+B[r]+"Width",!0,o)));return s}function Pe(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=_e(e),s="border-box"===p.css(e,"boxSizing",!1,r);if(0>=o||null==o){if((0>(o=xe(e,t,r))||null==o)&&(o=e.style[t]),we.test(o))return o;i=s&&(u.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+Ae(e,t,n||(s?"border":"content"),i,r)+"px"}function Ie(e,t){for(var n,i,o,r=[],s=0,a=e.length;a>s;s++)(i=e[s]).style&&(r[s]=F.get(i,"olddisplay"),n=i.style.display,t?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&q(i)&&(r[s]=F.access(i,"olddisplay",ye(i.nodeName)))):(o=q(i),"n
7one"===n&&o||F.set(i,"olddisplay",o?n:p.css(i,"display"))));for(s=0;a>s;s++)(i=e[s]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function Ne(e,t,n,i,o){return new Ne.prototype.init(e,t,n,i,o)}p.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{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=p.camelCase(t),l=e.style;return t=p.cssProps[a]||(p.cssProps[a]=Ee(l,a)),s=p.cssHooks[t]||p.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=Ce.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(p.css(e,t)),r="number"),void(null!=n&&n==n&&("number"!==r||p.cssNumber[a]||(n+="px"),u.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,s,a=p.camelCase(t);return t=p.cssProps[a]||(p.cssProps[a]=Ee(e.style,a)),(s=p.cssHooks[t]||p.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=xe(e,t,i)),"normal"===o&&t in Me&&(o=Me[t]),""===n||n?(r=parseFloat(o),!0===n||p.isNumeric(r)?r||0:o):o}}),p.each(["height","width"],function(e,t){p.cssHooks[t]={get:function(e,n,i){return n?ke.test(p.css(e,"display"))&&0===e.offsetWidth?p.swap(e,De,function(){return Pe(e,t,i)}):Pe(e,t,i):void 0},set:function(e,n,i){var o=i&&_e(e);return Oe(0,n,i?Ae(e,t,i,"border-box"===p.css(e,"boxSizing",!1,o),o):0)}}}),p.cssHooks.marginRight=Te(u.reliableMarginRight,function(e,t){return t?p.swap(e,{display:"inline-block"},xe,[e,"marginRight"]):void 0}),p.each({margin:"",padding:"",border:"Width"},function(e,t){p.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];4>i;i++)o[e+B[i]+t]=r[i]||r[i-2]||r[0];return o}},be.test(e)||(p.cssHooks[e+t].set=Oe)}),p.fn.extend({css:function(e,t){return I(this,function(e,t,n){var i,o,r={},s=0;if(p.isArray(t)){for(i=_e(e),o=t.length;o>s;s++)r[t[s]]=p.css(e,t[s],!1,i);return r}return void 0!==n?p.style(e,t,n):p.css(e,t)},e,t,arguments.length>1)},show:function(){return Ie(this,!0)},hide:function(){return Ie(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){q(this)?p(this).show():p(this).hide()})}}),p.Tween=Ne,Ne.prototype={constructor:Ne,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(p.cssNumber[n]?"":"px")},cur:function(){var e=Ne.propHooks[this.prop];return e&&e.get?e.get(this):Ne.propHooks._default.get(this)},run:function(e){var t,n=Ne.propHooks[this.prop];return this.pos=t=this.options.duration?p.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ne.propHooks._default.set(this),this}},Ne.prototype.init.prototype=Ne.prototype,Ne.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=p.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){p.fx.step[e.prop]?p.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[p.cssProps[e.prop]]||p.cssHooks[e.prop])?p.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ne.propHooks.scrollTop=Ne.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},p.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},p.fx=Ne.prototype.init,p.fx.step={};var Fe,Le,je=/^(?:toggle|show|hide)$/,He=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),Re=/queueHooks$/,ze=[function(e,t,n){var i,o,r,s,a,l,c,u=this,d={},f=e.style,h=e.nodeType&&q(e),m=F.get(e,"fxshow");for(i in n.queue||(null==(a=p._queueHooks(e,"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--,p.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=p.css(e,"display"),"inline"===("none"===c?F.get(e,"olddisplay")||ye(e.nodeName):c)&&"none"===p.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),t)if(o=t[i],je.exec(o)){if(delete t[i],r=r||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||
vendor: 17,688 bytes, line 7
7!m||void 0===m[i])continue;h=!0}d[i]=m&&m[i]||p.style(e,i)}else c=void 0;if(p.isEmptyObject(d))"inline"===("none"===c?ye(e.nodeName):c)&&(f.display=c);else for(i in m?"hidden"in m&&(h=m.hidden):m=F.access(e,"fxshow",{}),r&&(m.hidden=!h),h?p(e).show():u.done(function(){p(e).hide()}),u.done(function(){var t;for(t in F.remove(e,"fxshow"),d)p.style(e,t,d[t])}),d)s=Ye(h?m[i]:0,i,u),i in m||(m[i]=s.start,h&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],Be={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),o=He.exec(t),r=o&&o[3]||(p.cssNumber[e]?"":"px"),s=(p.cssNumber[e]||"px"!==r&&+i)&&He.exec(p.css(n.elem,e)),a=1,l=20;if(s&&s[3]!==r){r=r||s[3],o=o||[],s=+i||1;do{s/=a=a||".5",p.style(n.elem,e,s+r)}while(a!==(a=n.cur()/i)&&1!==a&&--l)}return o&&(s=n.start=+s||+i||0,n.unit=r,n.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),n}]};function qe(){return setTimeout(function(){Fe=void 0}),Fe=p.now()}function We(e,t){var n,i=0,o={height:e};for(t=t?1:0;4>i;i+=2-t)o["margin"+(n=B[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Ye(e,t,n){for(var i,o=(Be[t]||[]).concat(Be["*"]),r=0,s=o.length;s>r;r++)if(i=o[r].call(n,t,e))return i}function Ue(e,t,n){var i,o,r=0,s=ze.length,a=p.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Fe||qe(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,s=c.tweens.length;s>r;r++)c.tweens[r].run(i);return a.notifyWith(e,[c,i,n]),1>i&&s?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:p.extend({},t),opts:p.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Fe||qe(),duration:n.duration,tweens:[],createTween:function(t,n){var i=p.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return t?a.resolveWith(e,[c,t]):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=p.camelCase(n)],r=e[n],p.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=p.cssHooks[i])&&"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);s>r;r++)if(i=ze[r].call(c,e,u,c.opts))return i;return p.map(u,Ye,c),p.isFunction(c.opts.start)&&c.opts.start.call(e,c),p.fx.timer(p.extend(l,{elem:e,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)}p.Animation=p.extend(Ue,{tweener:function(e,t){p.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,o=e.length;o>i;i++)n=e[i],Be[n]=Be[n]||[],Be[n].unshift(t)},prefilter:function(e,t){t?ze.unshift(e):ze.push(e)}}),p.speed=function(e,t,n){var i=e&&"object"==typeof e?p.extend({},e):{complete:n||!n&&t||p.isFunction(e)&&e,duration:e,easing:n&&t||t&&!p.isFunction(t)&&t};return i.duration=p.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in p.fx.speeds?p.fx.speeds[i.duration]:p.fx.speeds._default,(null==i.queue||!0===i.queue)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){p.isFunction(i.old)&&i.old.call(this),i.queue&&p.dequeue(this,i.queue)},i},p.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(e,t,n,i){var o=p.isEmptyObject(e),r=p.speed(t,n,i),s=function(){var t=Ue(this,p.extend({},e),r);(o||F.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=p.timers,s=F.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&Re.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));(t||!n)&&p.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=F.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=p.timers,s=i?i.length:0;for(n.finish=!0,p.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;s>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),p.each(["toggle","show","hide"],function(e,t){var n=p.fn[t];p.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(We(t,!0),e,i,o)}}),p.each({slideDown:We("show"),slideUp:We("hide"),slideToggle:We("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){p.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),p.timers=[],p.fx.tick=function(){var e,t=0,n=p.timers;for(Fe=p.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||p.fx.stop(),Fe=void 0},p.fx.timer=function(e){p.timers.push(e),e()?p.fx.start():p.timers.pop()},p.fx.interval=13,p.fx.start=function(){Le||(Le=setInterval(p.fx.tick,p.fx.interval))},p.fx.stop=function(){clearInterval(Le),Le=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fn.delay=function(e,t){return e=p.fx&&p.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e=d.createElement("input"),t=d.createElement("select"),n=t.appendChild(d.createElement("option"));e.type="checkbox",u.checkOn=""!==e.value,u.optSelected=n.selected,t.disabled=!0,u.optDisabled=!n.disabled,(e=d.createElement("input")).value="t",e.type="radio",u.radioValue="t"===e.value}();var Ge,Ve=p.expr.attrHandle;p.fn.extend({attr:function(e,t){return I(this,p.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){p.removeAttr(this,e)})}}),p.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return typeof e.getAttribute===Y?p.prop(e,t,n):(1===r&&p.isXMLDoc(e)||(t=t.toLowerCase(),i=p.attrHooks[t]||(p.expr.match.bool.test(t)?Ge:void 0)),void 0===n?i&&"get"in i&&null!==(o=i.get(e,t))?o:null==(o=p.find.attr(e,t))?void 0:o:null!==n?i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,n+""),n):void p.removeAttr(e,t))},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(O);if(r&&1===e.nodeType)for(;n=r[o++];)i=p.propFix[n]||n,p.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!u.radioValue&&"radio"===t&&p.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Ge={set:function(e,t,n){return!1===t?p.removeAttr(e,n):e.setAttribute(n,n),n}},p.each(p.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ve[t]||p.find.attr;Ve[t]=function(e,t,i){var o,r;return i||(r=Ve[t],Ve[t]=o,o=null!=n(e,t,i)?t.toLowerCase():null,Ve[t]=r),o}});var Xe=/^(?:input|select|textarea|button)$/i;p.fn.extend({prop:function(e,t){return I(this,p.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[p.propFix[e]||e]})}}),p.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var i,o,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return(1!==r||!p.isXMLDoc(e))&&(t=p.propFix[t]||t,o=p.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){return e.hasAttribute("tabindex")||Xe.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),u.optSelected||(p.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this});var Ke=/[\t\r\n\f]/g;p.fn.extend({addClass:function(e){var t,n,i,o,r,s,a="string"==typeof e&&e,l=0,c=this.length;if(p.isFunction(e))return this.each(function(t){p(this).addClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(O)||[];c>l;l++)if(i=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(Ke," "):" ")){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=p.trim(i),n.className!==s&&(n.className=s)}return this},removeClass:function(e){var t,n,i,o,r,s,a=0===arguments.length||"string"==typeof e&&e,l=0,c=this.length;if(p.isFunction(e))return this.each(function(t){p(this).removeClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(O)||[];c>l;l++)if(i=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(Ke," "):"")){for(r=0;o=t[r++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");s=e?p.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(p.isFunction(e)?function(n){p(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,i=0,o=p(this),r=e.match(O)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(n===Y||"boolean"===n)&&(this.className&&F.set(this,"__className__",this.className),this.className=this.className||!1===e?"":F.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ke," ").indexOf(t)>=0)return!0;return!1}});var Je=/\r/g;p.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=p.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,p(this).val()):e)?o="":"number"==typeof o?o+="":p.isArray(o)&&(o=p.map(o,function(e){return null==e?"":e+""})),(t=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=p.valHooks[o.type]||p.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Je,""):null==n?"":n:void 0}}),p.extend({valHooks:{option:{get:function(e){var t=p.find.attr(e,"value");return null!=t?t:p.trim(p.text(e))}},select:{get:function(e){for(var t,n,i=e.options,o=e.selectedIndex,r="select-one"===e.type||0>o,s=r?null:[],a=r?o+1:i.length,l=0>o?a:r?o:0;a>l;l++)if(!(!(n=i[l]).selected&&l!==o||(u.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&p.nodeName(n.parentNode,"optgroup"))){if(t=p(n).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var n,i,o=e.options,r=p.makeArray(t),s=o.length;s--;)((i=o[s]).selected=p.inArray(i.value,r)>=0)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(e,t){return p.isArray(t)?e.checked=p.inArray(p(e).val(),t)>=0:void 0}},u.checkOn||(p.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),p.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,t){p.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),p.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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)}});var Ze=p.now(),Qe=/\?/;p.parseJSON=function(e){return JSON.parse(e+"")},p.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+e),t};var et=/#.*$/,tt=/([?&])_=[^&]*/,nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,it=/^(?:GET|HEAD)$/,ot=/^\/\//,rt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,st={},at={},lt="*/".concat("*"),ct=e.location.href,ut=rt.exec(ct.toLowerCase())||[];function dt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(O)||[];if(p.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function ft(e,t,n,i){var o={},r=e===at;function s(a){var l;return o[a]=!0,p.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function pt(e,t){var n,i,o=p.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&p.extend(!0,e,i),e}p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?pt(pt(e,p.ajaxSettings),t):pt(p.ajaxSettings,e)},ajaxPrefilter:dt(st),ajaxTransport:dt(at),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,r,s,a,l,c,u=p.ajaxSetup({},t),d=u.context||u,f=u.context&&(d.nodeType||d.jquery)?p(d):p.event,h=p.Deferred(),m=p.Callbacks("once memory"),g=u.statusCode||{},v={},y={},b=0,w="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!r)for(r={};t=nt.exec(o);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||w;return n&&n.abort(t),x(0,t),this}};if(h.promise(_).complete=m.add,_.success=_.done,_.error=_.fail,u.url=((e||u.url||ct)+"").replace(et,"").replace(ot,ut[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=p.trim(u.dataType||"*").toLowerCase().match(O)||[""],null==u.crossDomain&&(a=rt.exec(u.url.toLowerCase()),u.crossDomain=!(!a||a[1]===ut[1]&&a[2]===ut[2]&&(a[3]||("http:"===a[1]?"80":"443"))===(ut[3]||("http:"===ut[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=p.param(u.data,u.traditional)),ft(st,u,t,_),2===b)return _;for(c in(l=p.event&&u.global)&&0===p.active++&&p.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!it.test(u.type),i=u.url,u.hasContent||(u.data&&(i=u.url+=(Qe.test(i)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=tt.test(i)?i.replace(tt,"$1_="+Ze++):i+(Qe.test(i)?"&":"?")+"_="+Ze++)),u.ifModified&&(p.lastModified[i]&&_.setRequestHeader("If-Modified-Since",p.lastModified[i]),p.etag[i]&&_.setRequestHeader("If-None-Match",p.etag[i])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&_.setRequestHeader("Content-Type",u.contentType),_.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+lt+"; q=0.01":""):u.accepts["*"]),u.headers)_.setRequestHeader(c,u.headers[c]);if(u.beforeSend&&(!1===u.beforeSend.call(d,_,u)||2===b))return _.abort();for(c in w="abort",{success:1,error:1,complete:1})_[c](u[c]);if(n=ft(at,u,t,_)){_.readyState=1,l&&f.trigger("ajaxSend",[_,u]),u.async&&u.timeout>0&&(s=setTimeout(function(){_.abort("timeout")},u.timeout));try{b=1,n.send(v,x)}catch(e){if(!(2>b))throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,r,a){var c,v,y,w,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),n=void 0,o=a||"",_.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=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}(u,_,r)),w=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(" "))[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}}(u,w,_,c),c?(u.ifModified&&((x=_.getResponseHeader("Last-Modified"))&&(p.lastModified[i]=x),(x=_.getResponseHeader("etag"))&&(p.etag[i]=x)),204===e||"HEAD"===u.type?T="nocontent":304===e?T="notmodified":(T=w.state,v=w.data,c=!(y=w.error))):(y=T,(e||!T)&&(T="error",0>e&&(e=0))),_.status=e,_.statusText=(t||T)+"",c?h.resolveWith(d,[v,T,_]):h.rejectWith(d,[_,T,y]),_.statusCode(g),g=void 0,l&&f.trigger(c?"ajaxSuccess":"ajaxError",[_,u,c?v:y]),m.fireWith(d,[_,T]),l&&(f.trigger("ajaxComplete",[_,u]),--p.active||p.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,n){return p.get(e,t,n,"json")},getScript:function(e,t){return p.get(e,void 0,t,"script")}}),p.each(["get","post"],function(e,t){p[t]=function(e,n,i,o){return p.isFunction(n)&&(o=o||i,i=n,n=void 0),p.ajax({url:e,type:t,dataType:o,data:n,success:i})}}
vendor: 4,561 bytes, line 7
7),p._evalUrl=function(e){return p.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},p.fn.extend({wrapAll:function(e){var t;return p.isFunction(e)?this.each(function(t){p(this).wrapAll(e.call(this,t))}):(this[0]&&(t=p(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(p.isFunction(e)?function(t){p(this).wrapInner(e.call(this,t))}:function(){var t=p(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=p.isFunction(e);return this.each(function(n){p(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()}}),p.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},p.expr.filters.visible=function(e){return!p.expr.filters.hidden(e)};var ht=/%20/g,mt=/\[\]$/,gt=/\r?\n/g,vt=/^(?:submit|button|image|reset|file)$/i,yt=/^(?:input|select|textarea|keygen)/i;function bt(e,t,n,i){var o;if(p.isArray(t))p.each(t,function(t,o){n||mt.test(e)?i(e,o):bt(e+"["+("object"==typeof o?t:"")+"]",o,n,i)});else if(n||"object"!==p.type(t))i(e,t);else for(o in t)bt(e+"["+o+"]",t[o],n,i)}p.param=function(e,t){var n,i=[],o=function(e,t){t=p.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=p.ajaxSettings&&p.ajaxSettings.traditional),p.isArray(e)||e.jquery&&!p.isPlainObject(e))p.each(e,function(){o(this.name,this.value)});else for(n in e)bt(n,e[n],t,o);return i.join("&").replace(ht,"+")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=p.prop(this,"elements");return e?p.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!p(this).is(":disabled")&&yt.test(this.nodeName)&&!vt.test(e)&&(this.checked||!W.test(e))}).map(function(e,t){var n=p(this).val();return null==n?null:p.isArray(n)?p.map(n,function(e){return{name:t.name,value:e.replace(gt,"\r\n")}}):{name:t.name,value:n.replace(gt,"\r\n")}}).get()}}),p.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var wt=0,_t={},xt={0:200,1223:204},Tt=p.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in _t)_t[e]()}),u.cors=!!Tt&&"withCredentials"in Tt,u.ajax=Tt=!!Tt,p.ajaxTransport(function(e){var t;return u.cors||Tt&&!e.crossDomain?{send:function(n,i){var o,r=e.xhr(),s=++wt;if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)r[o]=e.xhrFields[o];for(o in e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)r.setRequestHeader(o,n[o]);t=function(e){return function(){t&&(delete _t[s],t=r.onload=r.onerror=null,"abort"===e?r.abort():"error"===e?i(r.status,r.statusText):i(xt[r.status]||r.status,r.statusText,"string"==typeof r.responseText?{text:r.responseText}:void 0,r.getAllResponseHeaders()))}},r.onload=t(),r.onerror=t("error"),t=_t[s]=t("abort");try{r.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}:void 0}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return p.globalEval(e),e}}}),p.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),p.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(i,o){t=p("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),d.head.appendChild(t[0])},abort:function(){n&&n()}}});var kt=[],St=/(=)\?(?=&|$)|\?\?/;p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=kt.pop()||p.expando+"_"+Ze++;return this[e]=!0,e}}),p.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(St.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&St.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(o=t.jsonpCallback=p.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(St,"$1"+o):!1!==t.jsonp&&(t.url+=(Qe.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||p.error(o+" was not called"),s[0]}
vendor: 1,402 bytes, line 7
7,t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,kt.push(o)),s&&p.isFunction(r)&&r(s[0]),s=r=void 0}),"script"):void 0}),p.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||d;var i=_.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=p.buildFragment([e],t,o),o&&o.length&&p(o).remove(),p.merge([],i.childNodes))};var Ct=p.fn.load;p.fn.load=function(e,t,n){if("string"!=typeof e&&Ct)return Ct.apply(this,arguments);var i,o,r,s=this,a=e.indexOf(" ");return a>=0&&(i=p.trim(e.slice(a)),e=e.slice(0,a)),p.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&p.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?p("<div>").append(p.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){s.each(n,r||[e.responseText,t,e])}),this},p.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){p.fn[t]=function(e){return this.on(t,e)}}),p.expr.filters.animated=function(e){return p.grep(p.timers,function(t){return e===t.elem}).length};var Dt=e.document.documentElement;function Mt(e){return p.isWindow(e)?e:9===e.nodeType&&e.defaultView}p.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=p.css(e,"position"),u=p(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=p.css(e,"to
7p"),l=p.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(i=u.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),p.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):u.css(d)}},p.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){p.offset.setOffset(this,e,t)});var t,n,i=this[0],o={top:0,left:0},r=i&&i.ownerDocument;return r?(t=r.documentElement,p.contains(t,i)?(typeof i.getBoundingClientRect!==Y&&(o=i.getBoundingClientRect()),n=Mt(r),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===p.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),p.nodeName(e[0],"html")||(i=e.offset()),i.top+=p.css(e[0],"borderTopWidth",!0),i.left+=p.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-p.css(n,"marginTop",!0),left:t.left-i.left-p.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Dt;e&&!p.nodeName(e,"html")&&"static"===p.css(e,"position");)e=e.offsetParent;return e||Dt})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i="pageYOffset"===n;p.fn[t]=function(o){return I(this,function(t,o,r){var s=Mt(t);return void 0===r?s?s[n]:t[o]:void(s?s.scrollTo(i?e.pageXOffset:r,i?r:e.pageYOffset):t[o]=r)},t,o,arguments.length,null)}}),p.each(["top","left"],function(e,t){p.cssHooks[t]=Te(u.pixelPosition,function(e,n){return n?(n=xe(e,t),we.test(n)?p(e).position()[t]+"px":n):void 0})}),p.each({Height:"height",Width:"width"},function(e,t){p.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){p.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return I(this,function(t,n,i){var o;return p.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?p.css(t,n,s):p.style(t,n,i,s)},t,r?i:void 0,r,null)}})}),p.fn.size=function(){return this.length},p.fn.andSelf=p.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return p});var $t=e.jQuery,Et=e.$;return p.noConflict=function(t){return e.$===p&&(e.$=Et),t&&e.jQuery===p&&(e.jQuery=$t),p},typeof t===Y&&(e.jQuery=e.$=p),p}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(e){e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||e(i).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(e){var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.3.4",n.TRANSITION_DURATION=150,n.prototype.close=function(t){function i(){s.detach().trigger("closed.bs.alert").remove()}var o=e(this),r=o.attr("data-target");r||(r=(r=o.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var s=e(r);t&&t.preventDefault(),s.length||(s=o.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var i=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var i=e(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof t&&o[t].call(i)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){function t(t){return this.each(function(){var i=e(this),o=i.data("bs.button"),r="object"==typeof t&&t;o||i.data("bs.button",o=new n(this,r)),"toggle"==t?o.toggle():t&&o.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.4",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();t+="Text",null==r.resetText&&i.data("resetText",i[o]()),setTimeout(e.proxy(function(){i[o](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));e&&this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target);i.hasClass("btn")||(i=i.closest(".btn")),t.call(i,"toggle"),n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){function t(t){return this.each(function(){var i=e(this),o=i.data("bs.carousel"),r=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),s="string"==typeof t?t:r.slide;o||i.data("bs.carousel",o=new n(this,r)),"number"==typeof t?o.to(t):s?o[s]():r.interval&&o.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("key
7down.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.4",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(t,i){var o=this.$element.find(".item.active"),r=i||this.getItemForDirection(t,o),s=this.interval,a="next"==t?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var c=r[0],u=e.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var f=e.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,o.addClass(a),r.addClass(a),o.one("bsTransitionEnd",function(){r.removeClass([t,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(f)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(f)),s&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var o=function(n){var i,o=e(this),r=e(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var s=e.extend({},r.data(),o.data()),a=o.attr("data-slide-to");a&&(s.interval=!1),t.call(r,s),a&&r.data("bs.carousel").to(a),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),function(e){function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),o=n.data("bs.collapse"),r=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!o&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),o||n.data("bs.collapse",o=new i(this,r)),"string"==typeof t&&o[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.4",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(t=o.data("bs.collapse"),t&&t.transitioning))){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),t||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};
vendor: 1,736 bytes, line 7
7return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var o=e(i);this.addAriaAndCollapsedClass(t(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=e(this);o.attr("data-target")||i.preventDefault();var r=t(o),s=r.data("bs.collapse")?"toggle":o.data();n.call(r,s)})}(jQuery),function(e){function t(t){t&&3===t.which||(e(i).remove(),e(o).each(function(){var i=e(this),o=n(i),r={relatedTarget:this};o.hasClass("open")&&(o.trigger(t=e.Event("hide.bs.dropdown",r)),t.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger("hidden.bs.dropdown",r)))}))}function n(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.4",r.prototype.toggle=function(i){var o=e(this);if(!o.is(".disabled, :disabled")){var r=n(o),s=r.hasClass("open");if(t(),!s){"ontouchstart"in document.documentElement&&!r.closest(".
7navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",t);var a={relatedTarget:this};if(r.trigger(i=e.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var r=n(i),s=r.hasClass("open");if(!s&&27!=t.which||s&&27==t.which)return 27==t.which&&r.find(o).trigger("focus"),i.trigger("click");var a=" li:not(.disabled):visible a",l=r.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var c=l.index(t.target);38==t.which&&c>0&&c--,40==t.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',r.prototype.keydown)}(jQuery),function(e){function t(t,i){return this.each(function(){var o=e(this),r=o.data("bs.modal"),s=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t);r||o.data("bs.modal",r=new n(this,s)),"string"==typeof t?r[t](i):s.show&&r.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.4",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,o=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
7down.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&o;if(this.$backdrop=e('<div class="modal-backdrop '+o+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),t&&t()};
vendor: 15,579 bytes, line 7
7e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),o=i.attr("href"),r=e(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(r,s,this)})}(jQuery),function(e){var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",e,t)};t.VERSION="3.3.4",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n&&n.$tip&&n.$tip.is(":visible")?void(n.hoverState="in"):(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var o=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u=this.getPosition(),d=r[0].offsetWidth,f=r[0].offsetHeight;if(c){var p=a,h=this.options.container?e(this.options.container):this.$element.parent(),m=this.getPosition(h);a="bottom"==a&&u.bottom+f>m.bottom?"top":"top"==a&&u.top-f<m.top?"bottom":"right"==a&&u.right+d>m.width?"left":"left"==a&&u.left-d<m.left?"right":a,r.removeClass(p).addClass(a)}var g=this.getCalculatedOffset(a,u,d,f);this.applyPlacement(g,a);var v=function(){var e=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==e&&o.leave(o)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",v).emulateTransitionEnd(t.TRANSITION_DURATION):v()}},t.prototype.applyPlacement=function(t,n){var i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top=t.top+s,t.left=t.left+a,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=r&&(t.top=t.top+r-c);var u=this.getViewportAdjustedDelta(n,t,l,c);u.left?t.left+=u.left:t.top+=u.top;var d=/top|bottom/.test(n),f=d?2*u.left-o+l:2*u.top-r+c,p=d?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(f,i[0][p],d)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(n){function i(){"in"!=o.hoverState&&r.detach(),o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),n&&n()}var o=this,r=e(this.$tip),s=e.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(t.TRANSITION_DURATION):i(),this.hoverState=null,this)},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=i?{top:0,left:0}:t.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,s,a,r)},t.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-r-s.scroll,l=t.top+r-s.scroll+i;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var c=t.left-r,u=t.left+r+n;c<s.left?o.left=s.left-c:u>s.width&&(o.left=s.left+s.width-u)}return o},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type)})};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),o=i.data("bs.tooltip"),r="object"==typeof n&&n;(o||!/destroy|hide/.test(n))&&(o||i.data("bs.tooltip",o=new t(this,r)),"string"==typeof n&&o[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),function(e){var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.4",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var i=e(this),o=i.data("bs.popover"),r="object"==typeof n&&n;(o||!/destroy|hide/.test(n))&&(o||i.data("bs.popover",o=new t(this,r)),"string"==typeof n&&o[n]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){function t(n,i){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new t(this,r)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.4",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),o=t.data("target")||t.attr("href"),r=/^#./.test(o)&&e(o);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,o]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return s!=(e=r[r.length-1])&&this.activate(e);if(s&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)s!=r[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(r[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){function t(t){return this.each(function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof t&&o[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.4",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),t.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=e(i);this.activate(t.closest("li"),n),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(t,i,o){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var s=i.find("> .active"),a=o&&e.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),s.removeClass("in")};var i=e.fn.tab;
7e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var o=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){function t(t){return this.each(function(){var i=e(this),o=i.data("bs.affix"),r="object"==typeof t&&t;o||i.data("bs.affix",o=new n(this,r)),"string"==typeof t&&o[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.4",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return n>o&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(e-i>=o+s)&&"bottom";var a=null==this.affixed,l=a?o:r.top;return null!=n&&n>=o?"top":null!=i&&l+(a?s:t)>=e-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,s=e(document.body).height();"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var a=this.getState(s,t,o,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=e.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-t-r})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery),function($){function sc_setScroll(e,t,n){return"transition"==n.transition&&"swing"==t&&(t="ease"),{anims:[],duration:e,orgDuration:e,easing:t,startTime:getTime()}}function sc_startScroll(e,t){for(var n=0,i=e.anims.length;i>n;n++){var o=e.anims[n];o&&o[0][t.transition](o[1],e.duration,e.easing,o[2])}}function sc_stopScroll(e,t){is_boolean(t)||(t=!0),is_object(e.pre)&&sc_stopScroll(e.pre,t);for(var n=0,i=e.anims.length;i>n;n++){var o=e.anims[n];o[0].stop(!0),t&&(o[0].css(o[1]),is_function(o[2])&&o[2]())}is_object(e.post)&&sc_stopScroll(e.post,t)}function sc_afterScroll(e,t,n){switch(t&&t.remove(),n.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":e.css("opacity",1),e.css("filter","")}}function sc_fireCallbacks(e,t,n,i,o){if(t[n]&&t[n].call(e,i),o[n].length)for(var r=0,s=o[n].length;s>r;r++)o[n][r].call(e,i);return[]}function sc_fireQueue(e,t,n){return t.length&&(e.trigger(cf_e(t[0][0],n),t[0][1]),t.shift()),t}
7function sc_hideHiddenItems(e){e.each(function(){var e=$(this);e.data("_cfs_isHidden",e.is(":hidden")).hide()})}function sc_showHiddenItems(e){e&&e.each(function(){var e=$(this);e.data("_cfs_isHidden")||e.show()})}function sc_clearTimers(e){return e.auto&&clearTimeout(e.auto),e.progress&&clearInterval(e.progress),e}function sc_mapCallbackArguments(e,t,n,i,o,r,s){return{width:s.width,height:s.height,items:{old:e,skipped:t,visible:n},scroll:{items:i,direction:o,duration:r}}}function sc_getDuration(e,t,n,i){var o=e.duration;return"none"==e.fx?0:("auto"==o?o=t.scroll.duration/t.scroll.items*n:10>o&&(o=i/o),1>o?0:("fade"==e.fx&&(o/=2),Math.round(o)))}function nv_showNavi(e,t,n){var i=is_number(e.items.minimum)?e.items.minimum:e.items.visible+1;if("show"==t||"hide"==t)var o=t;else if(i>t){debug(n,"Not enough items ("+t+" total, "+i+" needed): Hiding navigation.");o="hide"}else o="show";var r="show"==o?"removeClass":"addClass",s=cf_c("hidden",n);e.auto.button&&e.auto.button[o]()[r](s),e.prev.button&&e.prev.button[o]()[r](s),e.next.button&&e.next.button[o]()[r](s),e.pagination.container&&e.pagination.container[o]()[r](s)}function nv_enableNavi(e,t,n){if(!e.circular&&!e.infinite){var i=("removeClass"==t||"addClass"==t)&&t,o=cf_c("disabled",n);if(e.auto.button&&i&&e.auto.button[i](o),e.prev.button){var r=i||0==t?"addClass":"removeClass";e.prev.button[r](o)}if(e.next.button){r=i||t==e.items.visible?"addClass":"removeClass";e.next.button[r](o)}}}function go_getObject(e,t){return is_function(t)?t=t.call(e):is_undefined(t)&&(t={}),t}function go_getItemsObject(e,t){return is_number(t=go_getObject(e,t))?t={visible:t}:"variable"==t?t={visible:t,width:t,height:t}:is_object(t)||(t={}),t}function go_getScrollObject(e,t){return is_number(t=go_getObject(e,t))?t=50>=t?{items:t}:{duration:t}:is_string(t)?t={easing:t}:is_object(t)||(t={}),t}function go_getNaviObject(e,t){if(is_string(t=go_getObject(e,t))){var n=cf_getKeyCode(t);t=-1==n?$(t):n}return t}function go_getAutoObject(e,t){return is_jquery(t=go_getNaviObject(e,t))?t={button:t}:is_boolean(t)?t={play:t}:is_number(t)&&(t={timeoutDuration:t}),t.progress&&(is_string(t.progress)||is_jquery(t.progress))&&(t.progress={bar:t.progress}),t}function go_complementAutoObject(e,t){return is_function(t.button)&&(t.button=t.button.call(e)),is_string(t.button)&&(t.button=$(t.button)),is_boolean(t.play)||(t.play=!0),is_number(t.delay)||(t.delay=0),is_undefined(t.pauseOnEvent)&&(t.pauseOnEvent=!0),is_boolean(t.pauseOnResize)||(t.pauseOnResize=!0),is_number(t.timeoutDuration)||(t.timeoutDuration=10>t.duration?2500:5*t.duration),t.progress&&(is_function(t.progress.bar)&&(t.progress.bar=t.progress.bar.call(e)),is_string(t.progress.bar)&&(t.progress.bar=$(t.progress.bar)),t.progress.bar?(is_function(t.progress.updater)||(t.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(t.progress.interval)||(t.progress.interval=50)):t.progress=!1),t}function go_getPrevNextObject(e,t){return is_jquery(t=go_getNaviObject(e,t))?t={button:t}:is_number(t)&&(t={key:t}),t}function go_complementPrevNextObject(e,t){return is_function(t.button)&&(t.button=t.button.call(e)),is_string(t.button)&&(t.button=$(t.button)),is_string(t.key)&&(t.key=cf_getKeyCode(t.key)),t}function go_getPaginationObject(e,t){return is_jquery(t=go_getNaviObject(e,t))?t={container:t}:is_boolean(t)&&(t={keys:t}),t}function go_complementPaginationObject(e,t){return is_function(t.container)&&(t.container=t.container.call(e)),is_string(t.container)&&(t.container=$(t.container)),is_number(t.items)||(t.items=!1),is_boolean(t.keys)||(t.keys=!1),is_function(t.anchorBuilder)||is_false(t.anchorBuilder)||(t.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(t.deviation)||(t.deviation=0),t}function go_getSwipeObject(e,t){return is_function(t)&&(t=t.call(e)),is_undefined(t)&&(t={onTouch:!1}),is_true(t)?t={onTouch:t}:is_number(t)&&(t={items:t}),t}function go_complementSwipeObject(e,t){return is_boolean(t.onTouch)||(t.onTouch=!0),is_boolean(t.onMouse)||(t.onMouse=!1),is_object(t.options)||(t.options={}),is_boolean(t.options.triggerOnTouchEnd)||(t.options.triggerOnTouchEnd=!1),t}function go_getMousewheelObject(e,t){return is_function(t)&&(t=t.call(e)),is_true(t)?t={}:is_number(t)?t={items:t}:is_undefined(t)&&(t=!1),t}function go_complementMousewheelObject(e,t){return t}function gn_getItemIndex(e,t,n,i,o){if(is_string(e)&&(e=$(e,o)),is_object(e)&&(e=$(e,o)),is_jquery(e)?(e=o.children().index(e),is_boolean(n)||(n=!1)):is_boolean(n)||(n=!0),is_number(e)||(e=0),is_number(t)||(t=0),n&&(e+=i.first),e+=t,i.total>0){for(;e>=i.total;)e-=i.total;for(;0>e;)e+=i.total}return e}function gn_getVisibleItemsPrev(e,t,n){for(var i=0,o=0,r=n;r>=0;r--){var s=e.eq(r);if((i+=s.is(":visible")?s[t.d.outerWidth](!0):0)>t.maxDimension)return o;0==r&&(r=e.length),o++}}function gn_getVisibleItemsPrevFilter(e,t,n){return gn_getItemsPrevFilter(e,t.items.filter,t.items.visibleConf.org,n)}function gn_getScrollItemsPrevFilter(e,t,n,i){return gn_getItemsPrevFilter(e,t.items.filter,i,n)}function gn_getItemsPrevFilter(e,t,n,i){for(var o=0,r=0,s=i,a=e.length;s>=0;s--){if(++r==a)return r;if(e.eq(s).is(t)&&++o==n)return r;0==s&&(s=a)}}function gn_getVisibleOrg(e,t){return t.items.visibleConf.org||e.children().slice(0,t.items.visible).filter(t.items.filter).length}function gn_getVisibleItemsNext(e,t,n){for(var i=0,o=0,r=n,s=e.length-1;s>=r;r++){var a=e.eq(r);if((i+=a.is(":visible")?a[t.d.outerWidth](!0):0)>t.maxDimension)return o;if(++o==s+1)return o;r==s&&(r=-1)}}function gn_getVisibleItemsNextTestCircular(e,t,n,i){var o=gn_getVisibleItemsNext(e,t,n);return t.circular||n+o>i&&(o=i-n),o}function gn_getVisibleItemsNextFilter(e,t,n){return gn_getItemsNextFilter(e,t.items.filter,t.items.visibleConf.org,n,t.cir
7cular)}function gn_getScrollItemsNextFilter(e,t,n,i){return gn_getItemsNextFilter(e,t.items.filter,i+1,n,t.circular)-1}function gn_getItemsNextFilter(e,t,n,i){for(var o=0,r=0,s=i,a=e.length-1;a>=s;s++){if(++r>=a)return r;if(e.eq(s).is(t)&&++o==n)return r;s==a&&(s=-1)}}function gi_getCurrentItems(e,t){return e.slice(0,t.items.visible)}function gi_getOldItemsPrev(e,t,n){return e.slice(n,t.items.visibleConf.old+n)}function gi_getNewItemsPrev(e,t){return e.slice(0,t.items.visible)}function gi_getOldItemsNext(e,t){return e.slice(0,t.items.visibleConf.old)}function gi_getNewItemsNext(e,t,n){return e.slice(n,t.items.visible+n)}function sz_storeMargin(e,t,n){t.usePadding&&(is_string(n)||(n="_cfs_origCssMargin"),e.each(function(){var e=$(this),i=parseInt(e.css(t.d.marginRight),10);is_number(i)||(i=0),e.data(n,i)}))}function sz_resetMargin(e,t,n){if(t.usePadding){var i=!!is_boolean(n)&&n;is_number(n)||(n=0),sz_storeMargin(e,t,"_cfs_tempCssMargin"),e.each(function(){var e=$(this);e.css(t.d.marginRight,i?e.data("_cfs_tempCssMargin"):n+e.data("_cfs_origCssMargin"))})}}
7function sz_storeOrigCss(e){e.each(function(){var e=$(this);e.data("_cfs_origCss",e.attr("style")||"")})}function sz_restoreOrigCss(e){e.each(function(){var e=$(this);e.attr("style",e.data("_cfs_origCss")||"")})}function sz_setResponsiveSizes(e,t){var n=(e.items.visible,e.items[e.d.width]),i=e[e.d.height],o=is_percentage(i);t.each(function(){var t=$(this),r=n-ms_getPaddingBorderMargin(t,e,"Width");t[e.d.width](r),o&&t[e.d.height](ms_getPercentage(r,i))})}function sz_setSizes(e,t){var n=e.parent(),i=e.children(),o=gi_getCurrentItems(i,t),r=cf_mapWrapperSizes(ms_getSizes(o,t,!0),t,!1);if(n.css(r),t.usePadding){var s=t.padding,a=s[t.d[1]];t.align&&0>a&&(a=0);var l=o.last();l.css(t.d.marginRight,l.data("_cfs_origCssMargin")+a),e.css(t.d.top,s[t.d[0]]),e.css(t.d.left,s[t.d[3]])}return e.css(t.d.width,r[t.d.width]+2*ms_getTotalSize(i,t,"width")),e.css(t.d.height,ms_getLargestSize(i,t,"height")),r}function ms_getSizes(e,t,n){return[ms_getTotalSize(e,t,"width",n),ms_getLargestSize(e,t,"height",n)]}function ms_getLargestSize(e,t,n,i){return is_boolean(i)||(i=!1),is_number(t[t.d[n]])&&i?t[t.d[n]]:is_number(t.items[t.d[n]])?t.items[t.d[n]]:ms_getTrueLargestSize(e,t,n=n.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight")}function ms_getTrueLargestSize(e,t,n){for(var i=0,o=0,r=e.length;r>o;o++){var s=e.eq(o),a=s.is(":visible")?s[t.d[n]](!0):0;a>i&&(i=a)}return i}function ms_getTotalSize(e,t,n,i){if(is_boolean(i)||(i=!1),is_number(t[t.d[n]])&&i)return t[t.d[n]];if(is_number(t.items[t.d[n]]))return t.items[t.d[n]]*e.length;for(var o=n.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",r=0,s=0,a=e.length;a>s;s++){var l=e.eq(s);r+=l.is(":visible")?l[t.d[o]](!0):0}return r}function ms_getParentSize(e,t,n){var i=e.is(":visible");i&&e.hide();var o=e.parent()[t.d[n]]();return i&&e.show(),o}function ms_getMaxDimension(e,t){return is_number(e[e.d.width])?e[e.d.width]:t}function ms_hasVariableSizes(e,t,n){for(var i=!1,o=!1,r=0,s=e.length;s>r;r++){var a=e.eq(r),l=a.is(":visible")?a[t.d[n]](!0):0;!1===i?i=l:i!=l&&(o=!0),0==i&&(o=!0)}return o}function ms_getPaddingBorderMargin(e,t,n){return e[t.d["outer"+n]](!0)-e[t.d[n.toLowerCase()]]()}function ms_getPercentage(e,t){if(is_percentage(t)){if(!is_number(t=parseInt(t.slice(0,-1),10)))return e;e*=t/100}return e}function cf_e(e,t,n,i,o){return is_boolean(n)||(n=!0),is_boolean(i)||(i=!0),is_boolean(o)||(o=!1),n&&(e=t.events.prefix+e),i&&(e=e+"."+t.events.namespace),i&&o&&(e+=t.serialNumber),e}function cf_c(e,t){return is_string(t.classnames[e])?t.classnames[e]:e}function cf_mapWrapperSizes(e,t,n){is_boolean(n)||(n=!0);var i=t.usePadding&&n?t.padding:[0,0,0,0],o={};return o[t.d.width]=e[0]+i[1]+i[3],o[t.d.height]=e[1]+i[0]+i[2],o}function cf_sortParams(e,t){for(var n=[],i=0,o=e.length;o>i;i++)for(var r=0,s=t.length;s>r;r++)if(t[r].indexOf(typeof e[i])>-1&&is_undefined(n[r])){n[r]=e[i];break}return n}function cf_getPadding(e){if(is_undefined(e))return[0,0,0,0];if(is_number(e))return[e,e,e,e];if(is_string(e)&&(e=e.split("px").join("").split("em").join("").split(" ")),!is_array(e))return[0,0,0,0];for(var t=0;4>t;t++)e[t]=parseInt(e[t],10);switch(e.length){case 0:return[0,0,0,0];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];default:return[e[0],e[1],e[2],e[3]]}}function cf_getAlignPadding(e,t){var n=is_number(t[t.d.width])?Math.ceil(t[t.d.width]-ms_getTotalSize(e,t,"width")):0;switch(t.align){case"left":return[0,n];case"right":return[n,0];default:return[Math.ceil(n/2),Math.floor(n/2)]}}function cf_getDimensions(e){for(var t=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],n=t[0].length,i="right"==e.direction||"left"==e.direction?0:1,o={},r=0;n>r;r++)o[t[0][r]]=t[i][r];return o}function cf_getAdjust(e,t,n,i){var o=e;if(is_function(n))o=n.call(i,o);else if(is_string(n)){var r=n.split("+"),s=n.split("-");if(s.length>r.length)var a=!0,l=s[0],c=s[1];else a=!1,l=r[0],c=r[1];switch(l){case"even":o=1==e%2?e-1:e;break;case"odd":o=0==e%2?e-1:e;break;default:o=e}
7is_number(c=parseInt(c,10))&&(a&&(c=-c),o+=c)}return(!is_number(o)||1>o)&&(o=1),o}function cf_getItemsAdjust(e,t,n,i){return cf_getItemAdjustMinMax(cf_getAdjust(e,t,n,i),t.items.visibleConf)}function cf_getItemAdjustMinMax(e,t){return is_number(t.min)&&t.min>e&&(e=t.min),is_number(t.max)&&e>t.max&&(e=t.max),1>e&&(e=1),e}function cf_getSynchArr(e){is_array(e)||(e=[[e]]),is_array(e[0])||(e=[e]);for(var t=0,n=e.length;n>t;t++)is_string(e[t][0])&&(e[t][0]=$(e[t][0])),is_boolean(e[t][1])||(e[t][1]=!0),is_boolean(e[t][2])||(e[t][2]=!0),is_number(e[t][3])||(e[t][3]=0);return e}function cf_getKeyCode(e){return"right"==e?39:"left"==e?37:"up"==e?38:"down"==e?40:-1}function cf_setCookie(e,t,n){if(e){var i=t.triggerHandler(cf_e("currentPosition",n));$.fn.carouFredSel.cookie.set(e,i)}}function cf_getCookie(e){var t=$.fn.carouFredSel.cookie.get(e);return""==t?0:t}function in_mapCss(e,t){for(var n={},i=0,o=t.length;o>i;i++)n[t[i]]=e.css(t[i]);return n}function in_complementItems(e,t,n,i){return is_object(e.visibleConf)||(e.visibleConf={}),is_object(e.sizesConf)||(e.sizesConf={}),0==e.start&&is_number(i)&&(e.start=i),is_object(e.visible)?(e.visibleConf.min=e.visible.min,e.visibleConf.max=e.visible.max,e.visible=!1):is_string(e.visible)?("variable"==e.visible?e.visibleConf.variable=!0:e.visibleConf.adjust=e.visible,e.visible=!1):is_function(e.visible)&&(e.visibleConf.adjust=e.visible,e.visible=!1),is_string(e.filter)||(e.filter=n.filter(":hidden").length>0?":visible":"*"),e[t.d.width]||(t.responsive?(debug(!0,"Set a "+t.d.width+" for the items!"),e[t.d.width]=ms_getTrueLargestSize(n,t,"outerWidth")):e[t.d.width]=ms_hasVariableSizes(n,t,"outerWidth")?"variable":n[t.d.outerWidth](!0)),e[t.d.height]||(e[t.d.height]=ms_hasVariableSizes(n,t,"outerHeight")?"variable":n[t.d.outerHeight](!0)),e.sizesConf.width=e.width,e.sizesConf.height=e.height,e}function in_complementVisibleItems(e,t){return"variable"==e.items[e.d.width]&&(e.items.visibleConf.variable=!0),e.items.visibleConf.variable||(is_number(e[e.d.width])?e.items.visible=Math.floor(e[e.d.width]/e.items[e.d.width]):(e.items.visible=Math.floor(t/e.items[e.d.width]),e[e.d.width]=e.items.visible*e.items[e.d.width],e.items.visibleConf.adjust||(e.align=!1)),("Infinity"==e.items.visible||1>e.items.visible)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),e.items.visibleConf.variable=!0)),e}function in_complementPrimarySize(e,t,n){return"auto"==e&&(e=ms_getTrueLargestSize(n,t,"outerWidth")),e}function in_complementSecondarySize(e,t,n){return"auto"==e&&(e=ms_getTrueLargestSize(n,t,"outerHeight")),e||(e=t.items[t.d.height]),e}function in_getAlignPadding(e,t){var n=cf_getAlignPadding(gi_getCurrentItems(t,e),e);return e.padding[e.d[1]]=n[1],e.padding[e.d[3]]=n[0],e}function in_getResponsiveValues(e,t){var n=cf_getItemAdjustMinMax(Math.ceil(e[e.d.width]/e.items[e.d.width]),e.items.visibleConf);n>t.length&&(n=t.length);var i=Math.floor(e[e.d.width]/n);return e.items.visible=n,e.items[e.d.width]=i,e[e.d.width]=n*i,e}function bt_pauseOnHoverConfig(e){if(is_string(e))var t=e.indexOf("immediate")>-1,n=e.indexOf("resume")>-1;else t=n=!1;return[t,n]}function bt_mousesheelNumber(e){return is_number(e)?e:null}function is_null(e){return null===e}function is_undefined(e){return is_null(e)||void 0===e||""===e||"undefined"===e}function is_array(e){return e instanceof Array}function is_jquery(e){return e instanceof jQuery}function is_object(e){return(e instanceof Object||"object"==typeof e)&&!is_null(e)&&!is_jquery(e)&&!is_array(e)&&!is_function(e)}function is_number(e){return(e instanceof Number||"number"==typeof e)&&!isNaN(e)}function is_string(e){return(e instanceof String||"string"==typeof e)&&!is_undefined(e)&&!is_true(e)&&!is_false(e)}function is_function(e){return e instanceof Function||"function"==typeof e}function is_boolean(e){return e instanceof Boolean||"boolean"==typeof e||is_true(e)||is_false(e)}function is_true(e){return!0===e||"true"===e}function is_false(e){return!1===e||"false"===e}function is_percentage(e){return is_string(e)&&"%"==e.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(e,t){debug(!0,e+" is DEPRECATED, support for it will be removed. Use "+t+" instead.")}function debug(e,t){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(e)){var n=" ("+e.selector+")";e=e.debug}else n="";if(!e)return!1;t=is_string(t)?"carouFredSel"+n+": "+t:["carouFredSel"+n+":",t],window.console.log(t)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if
7(0==this.length)return debug(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data("_cfs_isCarousel")&&(starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition"),$cfs.trigger("_cfs_triggerEvent",["destroy",!0]));var FN={_init:function(e,t,n){(e=go_getObject($tt0,e)).items=go_getItemsObject($tt0,e.items),e.scroll=go_getScrollObject($tt0,e.scroll),e.auto=go_getAutoObject($tt0,e.auto),e.prev=go_getPrevNextObject($tt0,e.prev),e.next=go_getPrevNextObject($tt0,e.next),e.pagination=go_getPaginationObject($tt0,e.pagination),e.swipe=go_getSwipeObject($tt0,e.swipe),e.mousewheel=go_getMousewheelObject($tt0,e.mousewheel),t&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,e)),(opts=$.extend(!0,{},$.fn.carouFredSel.defaults,e)).d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var i=$cfs.children(),o=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,o),opts.items=in_complementItems(opts.items,opts,i,n),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,i),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,i),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]="100%")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(o,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,o)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&"*"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]="variable"),is_undefined(opts.align)&&(opts.align=!!is_number(opts[opts.d.width])&&"center"),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(i,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(i,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,i,o);else switch(opts.padding=cf_getPadding(opts.padding),"top"==opts.align?opts.align="left":"bottom"==opts.align&&(opts.align="right"),opts.align){case"center":case"left":case"right":"variable"!=opts[opts.d.width]&&((opts=in_getAlignPadding(opts,i)).usePadding=!0);break;default:opts.align=!1,opts.usePadding=0!=opts.padding[0]||0!=opts.padding[1]||0!=opts.padding[2]||0!=opts.padding[3]}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||"*"!=opts.items.filter?"visible":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated("auto.onPauseStart","auto.onTimeoutStart")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated("auto.onPausePause","auto.onTimeoutPause")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated("auto.onPauseEnd","auto.onTimeoutEnd")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated("auto.pauseDuration","auto.timeoutDuration"))},_build:function(){$cfs.data("_cfs_isCarousel",!0);var e=$cfs.children(),t=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),n="relative";switch(t.position){case"absolute":case"fixed":n=t.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(t),$wrp.css({overflow:"hidden",position:n}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",t.zIndex),$cfs.css({textAlign:"left",float:"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(e,opts),sz_storeOrigCss(e),opts.responsive&&sz_setResponsiveSizes(opts,e)},_bind_events:function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),function(e,t){return e.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c("stopped",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e("pause",conf),t)),!0}),$cfs.bind(cf_e("finish",conf),function(e){return e.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e("pause",conf),function(e,t,n){if(e.stopPropagation(),tmrs=sc_clearTimers(tmrs),t&&crsl.isScrolling){scrl.isStopped=!0;var i=getTime()-scrl.startTime;scrl.duration-=i,scrl.pre&&(scrl.pre.duration-=i),scrl.post&&(scrl.post.duration-=i),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||n&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c("paused",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var o=opts.auto.timeoutDuration-tmr
7s.timePassed,r=100-Math.ceil(100*o/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,r,o)}return!0}),$cfs.bind(cf_e("play",conf),function(e,t,n,i){e.stopPropagation(),tmrs=sc_clearTimers(tmrs);var o=cf_sortParams([t,n,i],["string","number","boolean"]);if(t=o[0],n=o[1],i=o[2],"prev"!=t&&"next"!=t&&(t=crsl.direction),is_number(n)||(n=0),is_boolean(i)||(i=!1),i&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return e.stopImmediatePropagation(),debug(conf,"Carousel stopped: Not scrolling.");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c("stopped",conf)),opts.auto.button.removeClass(cf_c("paused",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var r=opts.auto.timeoutDuration+n;return dur2=r-tmrs.timePassed,perc=100-Math.ceil(100*dur2/r),opts.auto.progress&&(tmrs.progress=setInterval(function(){var e=getTime()-tmrs.startTime+tmrs.timePassed,t=Math.ceil(100*e/r);opts.auto.progress.updater.call(opts.auto.progress.bar[0],t)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e("play",conf),t):$cfs.trigger(cf_e(t,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e("resume",conf),function(e){return e.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e("play",conf)),!0}),$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(e,t,n,i,o){if(e.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return e.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var r=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(r>itms.total)return e.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+r+" needed): Not scrolling.");t=(l=cf_sortParams([t,n,i,o],["object","number/string","function","boolean"]))[0],n=l[1],i=l[2],o=l[3];var s=e.type.slice(conf.events.prefix.length);if(is_object(t)||(t={}),is_function(i)&&(t.onAfter=i),is_boolean(o)&&(t.queue=o),(t=$.extend(!0,{},opts[s],t)).conditions&&!t.conditions.call($tt0,s))return e.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(n)){if("*"!=opts.items.filter)n="visible";else for(var a=[n,t.items,opts[s].items],l=0,c=a.length;c>l;l++)if(is_number(a[l])||"page"==a[l]||"visible"==a[l]){n=a[l];break}switch(n){case"page":return e.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(s+"Page",conf),[t,i]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(n=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[s,[t,n,i]]),e.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(t.duration>0&&crsl.isScrolling)return t.queue&&("last"==t.queue&&(queu=[]),("first"!=t.queue||0==queu.length)&&$cfs.trigger(cf_e("queue",conf),[s,[t,n,i]])),e.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+s,conf),[t,n]),opts.synchronise){var u=opts.synchronise,d=[t,n],f=0;for(c=u.length;c>f;f++){var p=s;u[f][2]||(p="prev"==p?"next":"prev"),u[f][1]||(d[0]=u[f][0].triggerHandler("_cfs_triggerEvent",["configuration",p])),d[1]=n+u[f][3],u[f][0].trigger("_cfs_triggerEvent",["slide_"+p,d])}}return!0}),$cfs.bind(cf_e("slide_prev",conf),function(e,t,n){e.stopPropagation();var i=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),e.stopImmediatePropagation();if(sz_resetMargin(i,opts),!is_number(n)){if(opts.items.visibleConf.variable)n=gn_getVisibleItemsPrev(i,opts,itms.total-1);else if("*"!=opts.items.filter){var o=is_number(t.items)?t.items:gn_getVisibleOrg($cfs,opts);n=gn_getScrollItemsPrevFilter(i,opts,itms.total-1,o)}else n=opts.items.visible;n=cf_getAdjust(n,opts,t.items,$tt0)}if(opts.circular||itms.total-n<itms.first&&(n=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable)(r=cf_getItemsAdjust(gn_getVisibleItemsNext(i,opts,itms.total-n),opts,opts.items.visibleConf.adjust,$tt0))>=opts.items.visible+n&&itms.total>n&&(n++,r=cf_getItemsAdjust(gn_getVisibleItemsNext(i,opts,itms.total-n),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=r;else if("*"!=opts.items.filter){var r=gn_getVisibleItemsNextFilter(i,opts,itms.total-n);opts.items.visible=cf_getItemsAdjust(r,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(i,opts,!0),0==n)return e.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+n+" items backward."),itms.first+=n;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&t.onEnd&&t.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-n,itms.total).prependTo($cfs),itms.total<opts.items.visible+n&&$cfs.children().slice(0,opts.items.visible+n-itms.total).clone(!0).appendTo($cfs);var s=gi_getOldItemsPrev(i=$cfs.children(),opts,n),a=gi_getNewItemsPrev(i,opts),l=i.eq(n-1),c=s.last(),u=a.last();sz_resetMargin(i,opts);var d=0,f=0;if(opts.align){var p=cf_getAlignPadding(a,opts);d=p[0],f=p[1]}var h=0>d?opts.padding[opts.d[3]]:0,m=!1,g=$();if(n>opts.items.visible&&(g=i.slice(opts.items.visibleConf.old,n),"directscroll"==t.fx)){var v=opts.items[opts.d.width];l=u,sc_hideHiddenItems(m=g),opts.items[opts.d.width]="variable"}var y=!1,b=ms_getTotalSize(i.slice(0,n),opts,"width"),w=cf_mapWrapperSizes(ms_getSizes(a,opts,!0),opts,!opts.usePadding),_=0,x={},T={},k={},S={},C={},D={},M={},E=sc_getDuration(t,opts,n,b);switch(t.fx){case"cover":case"cover-fade":_=ms_getTotalSize(i.slice(0,opts.items.visible),opts,"width")}m&&(opts.items[opts.d.width]=v),sz_resetMargin(i,opts,!0),f>=0&&sz_resetMargin(c,opts,opts.padding[opts.d[1]]),d>=0&&sz_resetMargin(l,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=f,opts.padding[opts.d[3]]=d),D[opts.d.left]=-(b-h),M[opts.d.left]=-(_-h),T[opts.d.left]=w[opts.d.width];var O,A,P,I=function(){},N=function(){},F=function(){},L=function(){},j=function(){},H=function(){},R=function(){},z=function(){};switch(t.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":y=$cfs.clone(!0).appendTo($wrp)}switch(t.fx){case"crossfade":case"uncover":case"uncover-fade":y.children().slice(0,n).remove(),y.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":y.children().slice(opts.items.visible).remove(),y.css(M)}if($cfs.css(D),scrl=sc_setScroll(E,t.easing,conf),x[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(I=function(){$wrp.css(w)},N=function(){scrl.anims.push([$wrp,w])}),opts.usePadding){switch(u.not(l).length&&(k[opts.d.marginRight]=l.data("_cfs_origCssMargin"),0>d?l.css(k):(R=function(){l.css(k)},z=function(){scrl.anims.push([l,k])})),t.fx){case"cover":case"cover-fade":y.children().eq(n-1).css(k)}u.not(c).length&&(S[opts.d.marginRight]=c.data("_cfs_origCssMargin"),F=function(){c.css(S)},L=function(){scrl.anims.push([c,S])}),f>=0&&(C[opts.d.marginRight]=u.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],j=function(){u.css(C)},H=function(){scrl.anims.push([u,C])})}P=function(){$cfs.css(x)};var B=opts.items.visible+n-itms.total;A=function(){if(B>0&&($cfs.children().slice(itms.total).remove(),s=$($cfs.children().slice(itms.total-(opts.items.visible-B)).get().concat($cfs.children().slice(0,B).get()))),sc_showHiddenItems(m),opts.usePadding){var e=$cfs.children().eq(opts.items.visible+n-1);e.css(opts.d.marginRight,e.data("_cfs_origCssMargin"))}};var q=sc_mapCallbackArguments(s,g,a,n,"prev",E,w);switch(O=function(){sc_afterScroll($cfs,y,t),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,t,"onAfter",q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,t,"onBefore",q,clbk),t.fx){case"none":$cfs.css(x),I(),F(),j(),R(),P(),A(),O();break;case"fade":scrl.anims.push([$cfs,{opacity:0}
7,function(){I(),F(),j(),R(),P(),A(),(scrl=sc_setScroll(E,t.easing,conf)).anims.push([$cfs,{opacity:1},O]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([y,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},O]),N(),F(),j(),R(),P(),A();break;case"cover":scrl.anims.push([y,x,function(){F(),j(),R(),P(),A(),O()}]),N();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([y,x,function(){F(),j(),R(),P(),A(),O()}]),N();break;case"uncover":scrl.anims.push([y,T,O]),N(),F(),j(),R(),P(),A();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([y,T,O]),N(),F(),j(),R(),P(),A();break;default:scrl.anims.push([$cfs,x,function(){A(),O()}]),N(),L(),H(),z()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,w]),!0}),$cfs.bind(cf_e("slide_next",conf),function(e,t,n){e.stopPropagation();var i=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),e.stopImmediatePropagation();if(sz_resetMargin(i,opts),!is_number(n)){if("*"!=opts.items.filter){var o=is_number(t.items)?t.items:gn_getVisibleOrg($cfs,opts);n=gn_getScrollItemsNextFilter(i,opts,0,o)}else n=opts.items.visible;n=cf_getAdjust(n,opts,t.items,$tt0)}var r=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable){var s=gn_getVisibleItemsNext(i,opts,n);o=gn_getVisibleItemsPrev(i,opts,r-1)}else s=opts.items.visible,o=opts.items.visible;n+s>r&&(n=r-o)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(s=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(i,opts,n,r),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-n>=s&&itms.total>n;)n++,s=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(i,opts,n,r),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=s}else if("*"!=opts.items.filter){s=gn_getVisibleItemsNextFilter(i,opts,n);opts.items.visible=cf_getItemsAdjust(s,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(i,opts,!0),0==n)return e.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+n+" items forward."),itms.first-=n;0>itms.first;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&t.onEnd&&t.onEnd.call($tt0,"next"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+n&&$cfs.children().slice(0,opts.items.visible+n-itms.total).clone(!0).appendTo($cfs);var a=gi_getOldItemsNext(i=$cfs.children(),opts),l=gi_getNewItemsNext(i,opts,n),c=i.eq(n-1),u=a.last(),d=l.last();sz_resetMargin(i,opts);var f=0,p=0;if(opts.align){var h=cf_getAlignPadding(l,opts);f=h[0],p=h[1]}var m=!1,g=$();if(n>opts.items.visibleConf.old&&(g=i.slice(opts.items.visibleConf.old,n),"directscroll"==t.fx)){var v=opts.items[opts.d.width];c=u,sc_hideHiddenItems(m=g),opts.items[opts.d.width]="variable"}var y=!1,b=ms_getTotalSize(i.slice(0,n),opts,"width"),w=cf_mapWrapperSizes(ms_getSizes(l,opts,!0),opts,!opts.usePadding),_=0,x={},T={},k={},S={},C={},D=sc_getDuration(t,opts,n,b);switch(t.fx){case"uncover":case"uncover-fade":_=ms_getTotalSize(i.slice(0,opts.items.visibleConf.old),opts,"width")}m&&(opts.items[opts.d.width]=v),opts.align&&0>opts.padding[opts.d[1]]&&(opts.padding[opts.d[1]]=0),sz_resetMargin(i,opts,!0),sz_resetMargin(u,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=p,opts.padding[opts.d[3]]=f),C[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var M,E,O,A=function(){},P=function(){},I=function(){},N=function(){},F=function(){},L=function(){};switch(t.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":(y=$cfs.clone(!0).appendTo($wrp)).children().slice(opts.items.visibleConf.old).remove()}switch(t.fx){case"crossfade":case"cover":case"cover-fade":$cfs.css("zIndex",1),y.css("zIndex",0)}if(scrl=sc_setScroll(D,t.easing,conf),x[opts.d.left]=-b,T[opts.d.left]=-_,0>f&&(x[opts.d.left]+=f),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(A=function(){$wrp.css(w)},P=function(){scrl.anims.push([$wrp,w])}),opts.usePadding){var j=d.data("_cfs_origCssMargin");p>=0&&(j+=opts.padding[opts.d[1]]),d.css(opts.d.marginRight,j),c.not(u).length&&(S[opts.d.marginRight]=u.data("_cfs_origCssMargin")),I=function(){u.css(S)},N=function(){scrl.anims.push([u,S])};var H=c.data("_cfs_origCssMargin");f>0&&(H+=opts.padding[opts.d[3]]),k[opts.d.marginRight]=H,F=function(){c.css(k)},L=function(){scrl.anims.push([c,k])}}O=function(){$cfs.css(C)};var R=opts.items.visible+n-itms.total;E=function(){R>0&&$cfs.children().slice(itms.total).remove();var e=$cfs.children().slice(0,n).appendTo($cfs).last();if(R>0&&(l=gi_getCurrentItems(i,opts)),sc_showHiddenItems(m),opts.usePadding){if(itms.total<opts.items.visible+n){var t=$cfs.children().eq(opts.items.visible-1);t.css(opts.d.marginRight,t.data("_cfs_origCssMargin")+opts.padding[opts.d[1]])}e.css(opts.d.marginRight,e.data("_cfs_origCssMargin"))}};var z=sc_mapCallbackArguments(a,g,l,n,"next",D,w);switch(M=function(){$cfs.css("zIndex",$cfs.data("_cfs_origCssZindex")),sc_afterScroll($cfs,y,t),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,t,"onAfter",z,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,t,"onBefore",z,clbk),t.fx){case"none":$cfs.css(x),A(
7),I(),F(),O(),E(),M();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){A(),I(),F(),O(),E(),(scrl=sc_setScroll(D,t.easing,conf)).anims.push([$cfs,{opacity:1},M]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([y,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},M]),P(),I(),F(),O(),E();break;case"cover":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,C,M]),P(),I(),F(),E();break;case"cover-fade":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([y,{opacity:0}]),scrl.anims.push([$cfs,C,M]),P(),I(),F(),E();break;case"uncover":scrl.anims.push([y,T,M]),P(),I(),F(),O(),E();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([y,T,M]),P(),I(),F(),O(),E();break;default:scrl.anims.push([$cfs,x,function(){O(),E(),M()}]),P(),N(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,w]),!0}),$cfs.bind(cf_e("slideTo",conf),function(e,t,n,i,o,r,s){e.stopPropagation();var a=cf_sortParams([t,n,i,o,r,s],["string/number/object","number","boolean","object","string","function"]);return o=a[3],r=a[4],s=a[5],0!=(t=gn_getItemIndex(a[0],a[1],a[2],itms,$cfs))&&(is_object(o)||(o=!1),"prev"!=r&&"next"!=r&&(r=opts.circular?itms.total/2>=t?"next":"prev":0==itms.first||itms.first>t?"next":"prev"),"prev"==r&&(t=itms.total-t),$cfs.trigger(cf_e(r,conf),[o,t,s]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(e,t,n){e.stopPropagation();var i=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[i-1,t,"prev",n])}),$cfs.bind(cf_e("nextPage",conf),function(e,t,n){e.stopPropagation();var i=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[i+1,t,"next",n])}),$cfs.bind(cf_e("slideToPage",conf),function(e,t,n,i,o){e.stopPropagation(),is_number(t)||(t=$cfs.triggerHandler(cf_e("currentPage",conf)));var r=opts.pagination.items||opts.items.visible,s=Math.ceil(itms.total/r)-1;return 0>t&&(t=s),t>s&&(t=0),$cfs.triggerHandler(cf_e("slideTo",conf),[t*r,0,!0,n,i,o])}),$cfs.bind(cf_e("jumpToStart",conf),function(e,t){if(e.stopPropagation(),t=t?gn_getItemIndex(t,0,!0,itms,$cfs):0,0!=(t+=itms.first)){if(itms.total>0)for(;t>itms.total;)t-=itms.total;$cfs.prepend($cfs.children().slice(t,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(e,t){if(e.stopPropagation(),t)t=cf_getSynchArr(t);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");t=opts.synchronise}for(var n=$cfs.triggerHandler(cf_e("currentPosition",conf)),i=!0,o=0,r=t.length;r>o;o++)t[o][0].triggerHandler(cf_e("slideTo",conf),[n,t[o][3],!0])||(i=!1);return i}),$cfs.bind(cf_e("queue",conf),function(e,t,n){return e.stopPropagation(),is_function(t)?t.call($tt0,queu):is_array(t)?queu=t:is_undefined(t)||queu.push([t,n]),queu}),$cfs.bind(cf_e("insertItem",conf),function(e,t,n,i,o){e.stopPropagation();var r=cf_sortParams([t,n,i,o],["string/object","string/number/object","boolean","number"]);if(t=r[0],n=r[1],i=r[2],o=r[3],(is_object(t)&&!is_jquery(t)||is_string(t))&&(t=$(t)),!is_jquery(t)||0==t.length)return debug(conf,"Not a valid object.");is_undefined(n)&&(n="end"),sz_storeMargin(t,opts),sz_storeOrigCss(t);var s=n,a="before";"end"==n?i?(0==itms.first?(n=itms.total-1,a="after"):(n=itms.first,itms.first+=t.length),0>n&&(n=0)):(n=itms.total-1,a="after"):n=gn_getItemIndex(n,o,i,itms,$cfs);var l=$cfs.children().eq(n);return l.length?l[a](t):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(t)),"end"==s||i||itms.first>n&&(itms.first+=t.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(e,t,n,i){e.stopPropagation();var o=cf_sortParams([t,n,i],["string/number/object","boolean","number"]);if(t=o[0],n=o[1],i=o[2],t instanceof $&&t.length>1)return r=$(),t.each(function(){var e=$cfs.trigger(cf_e("removeItem",conf),[$(this),n,i]);e&&(r=r.add(e))}),r;
7if(is_undefined(t)||"end"==t)r=$cfs.children().last();else{t=gn_getItemIndex(t,i,n,itms,$cfs);var r=$cfs.children().eq(t);r.length&&itms.first>t&&(itms.first-=r.length)}return r&&r.length&&(r.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e("updateSizes",conf))),r}),$cfs.bind(cf_e("onBefore",conf)+" "+cf_e("onAfter",conf),function(e,t){e.stopPropagation();var n=e.type.slice(conf.events.prefix.length);return is_array(t)&&(clbk[n]=t),is_function(t)&&clbk[n].push(t),clbk[n]}),$cfs.bind(cf_e("currentPosition",conf),function(e,t){if(e.stopPropagation(),0==itms.first)var n=0;else n=itms.total-itms.first;return is_function(t)&&t.call($tt0,n),n}),$cfs.bind(cf_e("currentPage",conf),function(e,t){e.stopPropagation();var n,i=opts.pagination.items||opts.items.visible,o=Math.ceil(itms.total/i-1);return 0>(n=0==itms.first||itms.first<itms.total%i?0:itms.first!=i||opts.circular?Math.round((itms.total-itms.first)/i):o)&&(n=0),n>o&&(n=o),is_function(t)&&t.call($tt0,n),n}),$cfs.bind(cf_e("currentVisible",conf),function(e,t){e.stopPropagation();var n=gi_getCurrentItems($cfs.children(),opts);return is_function(t)&&t.call($tt0,n),n}),$cfs.bind(cf_e("slice",conf),function(e,t,n,i){if(e.stopPropagation(),0==itms.total)return!1;var o=cf_sortParams([t,n,i],["number","number","function"]);if(t=is_number(o[0])?o[0]:0,n=is_number(o[1])?o[1]:itms.total,i=o[2],t+=itms.first,n+=itms.first,items.total>0){for(;t>itms.total;)t-=itms.total;for(;n>itms.total;)n-=itms.total;for(;0>t;)t+=itms.total;for(;0>n;)n+=itms.total}var r,s=$cfs.children();return r=n>t?s.slice(t,n):$(s.slice(t,itms.total).get().concat(s.slice(0,n).get())),is_function(i)&&i.call($tt0,r),r}),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(e,t){e.stopPropagation();var n=e.type.slice(conf.events.prefix.length),i=crsl[n];return is_function(t)&&t.call($tt0,i),i}),$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),!1!==b?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval("opts."+a);is_undefined(val)&&(val=""),b.call($tt0,val)}else{if(is_undefined(b))return eval("opts."+a);"boolean"!=typeof c&&(c=!0),eval("opts_orig."+a+" = b"),!1!==c?reInit=!0:eval("opts."+a+" = b")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[!0,sz])}return opts}),$cfs.bind(cf_e("linkAnchors",conf),function(e,t,n){return e.stopPropagation(),is_undefined(t)?t=$("body"):is_string(t)&&(t=$(t)),is_jquery(t)&&0!=t.length?(is_string(n)||(n="a.caroufredsel"),t.find(n).each(function(){var e=this.hash||"";e.length>0&&-1!=$cfs.children().index($(e))&&$(this).unbind("click").click(function(t){t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),e)})}),!0):debug(conf,"Not a valid object.")}),$cfs.bind(cf_e("updatePageStatus",conf),function(e,t){if(e.stopPropagation(),opts.pagination.container){var n=opts.pagination.items||opts.items.visible,i=Math.ceil(itms.total/n);t&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var e=0;i>e;e++){var t=$cfs.children().eq(gn_getItemIndex(e*n,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(t[0],e+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(e){$(this).bind(opts.pagination.event,function(t){t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[e*n,-opts.pagination.deviation,!0,opts.pagination])})})}));var o=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return o>=i&&(o=0),0>o&&(o=i-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(o).addClass(cf_c("selected",conf))}),!0}}),$cfs.bind(cf_e("updateSizes",conf),function(){var e=opts.items.visible,t=$cfs.children(),n=ms_getParentSize($wrp,opts,"width");if(itms.total=t.length,crsl.primarySizePercentage?(opts.maxDimension=n,opts[opts.d.width]=ms_getPercentage(n,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,n),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,e=(opts=in_getResponsiveValues(opts,t,n)).items.visible,sz_setResponsiveSizes(opts,t)):opts.items.visibleConf.variable?e=gn_getVisibleItemsNext(t,opts,0):"*"!=opts.items.filter&&(e=gn_getVisibleItemsNextFilter(t,opts,0)),!opts.circular&&0!=itms.first&&e>itms.first){if(opts.items.visibleConf.variable)var i=gn_getVisibleItemsPrev(t,opts,itms.first)-itms.first;else if("*"!=opts.items.filter)i=gn_getVisibleItemsPrevFilter(t,opts,itms.first)-itms.first;else i=opts.items.visible-itms.first;debug(conf,"Preventing non-circular: sliding "+i+" items backward."),$cfs.trigger(cf_e("prev",conf),i)}opts.items.visible=cf_getItemsAdjust(e,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,t);var o=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,o]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),o}),$cfs.bind(cf_e("destroy",conf),function(e,t){return e.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),t&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(e,t,n){return e.stopPropagation(),$cfs.triggerHandler(cf_e(t,conf),n)})},_unbind_events:function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},_bind_buttons:function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var e=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),e)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}
7if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(e){e.preventDefault();var t=!1,n=null;crsl.isPaused?t="play":opts.auto.pauseOnEvent&&(t="pause",n=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),t&&$cfs.trigger(cf_e(t,conf),n)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(e){e.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover)){e=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),e)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(e){e.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover)){e=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),e)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){e=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),e)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(e){var t=e.keyCode;t==opts.next.key&&(e.preventDefault(),$cfs.trigger(cf_e("next",conf))),t==opts.prev.key&&(e.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(e){var t=e.keyCode;t>=49&&58>t&&(t=(t-49)*opts.items.visible,itms.total>=t&&(e.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[t,0,!0,opts.pagination])))}),$.fn.swipe){var t="ontouchstart"in window;if(t&&opts.swipe.onTouch||!t&&opts.swipe.onMouse){var n=$.extend(!0,{},opts.prev,opts.swipe),i=$.extend(!0,{},opts.next,opts.swipe),o=function(){$cfs.trigger(cf_e("prev",conf),[n])},r=function(){$cfs.trigger(cf_e("next",conf),[i])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=r,opts.swipe.options.swipeDown=o;break;default:opts.swipe.options.swipeLeft=r,opts.swipe.options.swipeRight=o}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),$wrp.css("cursor","move"),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var s=$.extend(!0,{},opts.prev,opts.mousewheel),a=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(e,t){e.preventDefault(),t>0?$cfs.trigger(cf_e("prev",conf),[s]):$cfs.trigger(cf_e("next",conf),[a])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize){var l=function(){$cfs.trigger(cf_e("finish",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e("play",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e("updateSizes",conf))},c=$(window),u=null;if($.debounce&&"debounce"==conf.onWindowResize)u=$.debounce(200,l);else if($.throttle&&"throttle"==conf.onWindowResize)u=$.throttle(300,l);else{var d=0,f=0;u=function(){var e=c.width(),t=c.height();(e!=d||t!=f)&&(l(),d=e,f=t)}}c.bind(cf_e("resize",conf,!1,!0,!0),u)}},_unbind_buttons:function(){var e=(cf_e("",conf),cf_e("",conf,!1));ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(e),opts.auto.button&&opts.auto.button.unbind(e),opts.prev.button&&opts.prev.button.unbind(e),opts.next.button&&opts.next.button.unbind(e),opts.pagination.container&&(opts.pagination.container.unbind(e),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe("destroy"),$wrp.css("cursor","default"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,"hide",conf),nv_enableNavi(opts,"removeClass",conf)}};is_boolean(configs)&&(configs={debug:configs});var crsl={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp="parent"==conf.wrapper?$cfs.parent():$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(!0===s){if(s=window.location.hash,1>s.length)continue}else"random"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e("slideTo",conf),[s,0,!0,{fx:"none"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,siz]),$cfs.trigger(cf_e("linkAnchors",conf)),conf.debug&&$cfs.trigger(cf_e("debug",conf)),$cfs}
7,$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(e){return'<a href="#"><span>'+e+"</span></a>"},$.fn.carouFredSel.progressbarUpdater=function(e){$(this).css("width",e+"%")},$.fn.carouFredSel.cookie={get:function(e){e+="=";for(var t=document.cookie.split(";"),n=0,i=t.length;i>n;n++){for(var o=t[n];" "==o.charAt(0);)o=o.slice(1);if(0==o.indexOf(e))return o.slice(e.length)}return 0},set:function(e,t,n){var i="";if(n){var o=new Date;o.setTime(o.getTime()+864e5*n),i="; expires="+o.toGMTString()}document.cookie=e+"="+t+i+"; path=/"},remove:function(e){$.fn.carouFredSel.cookie.set(e,"",-1)}},$.extend($.easing,{quadratic:function(e){var t=e*e;return e*(-t*e+4*t-6*e+4)},cubic:function(e){return e*(4*e*e-9*e+6)},elastic:function(e){var t=e*e;return e*(33*t*t-106*t*e+126*t-67*e+15)}}))}(jQuery),Date.CultureInfo={name:"pl-PL",englishName:"Polish (Poland)",nativeName:"polski (Polska)",dayNames:["niedziela","poniedziaÅek","wtorek","Åroda","czwartek","piÄ
tek","sobota"],abbreviatedDayNames:["N","Pn","Wt","År","Cz","Pt","So"],shortestDayNames:["N","Pn","Wt","År","Cz","Pt","So"],firstLetterDayNames:["N","P","W","Å","C","P","S"],monthNames:["styczeÅ","luty","marzec","kwiecieÅ","maj","czerwiec","lipiec","sierpieÅ","wrzesieÅ","październik","listopad","grudzieÅ"],abbreviatedMonthNames:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],amDesignator:"",pmDesignator:"",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"ymd",formatPatterns:{shortDate:"yyyy-MM-dd",longDate:"d MMMM yyyy",shortTime:"HH:mm",longTime:"HH:mm:ss",fullDateTime:"d MMMM yyyy HH:mm:ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"d MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^sty(czeÅ)?/i,feb:/^lut(y)?/i,mar:/^mar(zec)?/i,apr:/^kwi(ecieÅ)?/i,may:/^maj/i,jun:/^cze(rwiec)?/i,jul:/^lip(iec)?/i,aug:/^sie(rpieÅ)?/i,sep:/^wrz(esieÅ)?/i,oct:/^paź(dziernik)?/i,nov:/^lis(topad)?/i,dec:/^gru(dzieÅ)?/i,sun:/^niedziela/i,mon:/^poniedziaÅek/i,tue:/^wtorek/i,wed:/^Åroda/i,thu:/^czwartek/i,fri:/^piÄ
tek/i,sat:/^sobota/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|aft(er)?|from|hence)/i,subtract:/^(\-|bef(ore)?|ago)/i,yesterday:/^yes(terday)?/i,today:/^t(od(ay)?)?/i,tomorrow:/^tom(orrow)?/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^mn|min(ute)?s?/i,hour:/^h(our)?s?/i,week:/^w(eek)?s?/i,month:/^m(onth)?s?/i,day:/^d(ay)?s?/i,year:/^y(ear)?s?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt|utc)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a(?!u|p)|p)/i},timezones:[{name:"UTC",offset:"-000"},{name:"GMT",offset:"-000"},{name:"EST",offset:"-0500"},{name:"EDT",offset:"-0400"},{name:"CST",offset:"-0600"},{name:"CDT",offset:"-0500"},{name:"MST",offset:"-0700"},{name:"MDT",offset:"-0600"},{name:"PST",offset:"-0800"},{name:"PDT",offset:"-0700"}]},function(){var e,t,n,i=Date,o=i.prototype,r=i.CultureInfo,s=function(e,t){return t||(t=2),("000"+e).slice(-1*t)};o.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this},o.setTimeToNow=function(){var e=new Date;return this.setHours(e.getHours()),this.setMinutes(e.getMinutes()),this.setSeconds(e.getSeconds()),this.setMilliseconds(e.getMilliseconds()),this},i.today=function(){return(new Date).clearTime()},i.compare=function(e,t){if(isNaN(e)||isNaN(t))throw new Error(e+" - "+t);if(e instanceof Date&&t instanceof Date)return e<t?-1:e>t?1:0;throw new TypeError(e+" - "+t)},i.equals=function(e,t){return 0===e.compareTo(t)},i.getDayNumberFromName=function(e){for(var t=r.dayNames,n=r.abbreviatedDayNames,i=r.shortestDayNames,o=e.toLowerCase(),s=0;s<t.length;s++)if(t[s].toLowerCase()==o||n[s].toLowerCase()==o||i[s].toLowerCase()==o)return s;return-1},i.getMonthNumberFromName=function(e){for(var t=r.monthNames,n=r.abbreviatedMonthNames,i=e.toLowerCase(),o=0;o<t.length;o++)if(t[o].toLowerCase()==i||n[o].toLowerCase()==i)return o;return-1},i.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},i.getDaysInMonth=function(e,t){return[31,i.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},i.getTimezoneAbbreviation=function(e){for(var t=r.timezones,n=0;n<t.length;n++)if(t[n].offset===e)return t[n].name;return null},i.getTimezoneOffset=function(e){for(var t=r.timezones,n=0;n<t.length;n++)if(t[n].name===e.toUpperCase())return t[n].offset;return null},o.clone=function(){return new Date(this.getTime())},o.compareTo=function(e){return Date.compare(this,e)},o.equals=function(e){return Date.equals(this,e||new Date)},o.between=function(e,t){return this.getTime()>=e.getTime()&&this.getTime()<=t.getTime()},o.isAfter=function(e){return 1===this.compareTo(e||new Date)},o.isBefore=function(e){return-1===this.compareTo(e||new Date)},o.isToday=function(){return this.isSameDay(new Date)},o.isSameDay=function(e){return this.clone().clearTime().equals(e.clone().clearTime())},o.addMilliseconds=function(e){return this.setMilliseconds(this.getMilliseconds()+e),this},o.addSeconds=function(e){return this.addMilliseconds(1e3*e)},o.addMinutes=function(e){return this.addMilliseconds(6e4*e)},o.addHours=function(e){return this.addMilliseconds(36e5*e)},o.addDays=function(e){return this.setDate(this.getDate()+e),this},o.addWeeks=function(e){return this.addDays(7*e)},o.addMonths=function(e){var t=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+e),this.setDate(Math.min(t,i.getDaysInMonth(this.getFullYear(),this.getMonth()))),this},o.addYears=function(e){return this.addMonths(12*e)},o.add=function(e){if("number"==typeof e)return this._orient=e,this;var t=e;return t.milliseconds&&this.addMilliseconds(t.milliseconds),t.seconds&&this.addSeconds(t.seconds),t.minutes&&this.addMinutes(t.minutes),t.hours&&this.addHours(t.hours),t.weeks&&this.addWeeks(t.weeks),t.months&&this.addMonths(t.months),t.years&&this.addYears(t.years),t.days&&this.addDays(t.days),this},o.getWeek=function(){var i,o,r,s,a,l,c;return e=e||this.getFullYear(),t=t||this.getMonth()+1,n=n||this.getDate(),t<=2?(c=(o=((i=e-1)/4|0)-(i/100|0)+(i/400|0)
7)-(((i-1)/4|0)-((i-1)/100|0)+((i-1)/400|0)),r=0,s=n-1+31*(t-1)):(r=(c=(o=((i=e)/4|0)-(i/100|0)+(i/400|0))-(((i-1)/4|0)-((i-1)/100|0)+((i-1)/400|0)))+1,s=n+(153*(t-3)+2)/5+58+c),e=t=n=null,(l=s+3-(s+(a=(i+o)%7)-r)%7|0)<0?53-((a-c)/5|0):l>364+c?1:1+(l/7|0)},o.getISOWeek=function(){return e=this.getUTCFullYear(),t=this.getUTCMonth()+1,n=this.getUTCDate(),s(this.getWeek())},o.setWeek=function(e){return this.moveToDayOfWeek(1).addWeeks(e-this.getWeek())},i._validate=function(e,t,n,i){if(void 0===e)return!1;if("number"!=typeof e)throw new TypeError(e+" is not a Number.");if(e<t||e>n)throw new RangeError(e+" is not a valid value for "+i+".");return!0},i.validateMillisecond=function(e){return i._validate(e,0,999,"millisecond")},i.validateSecond=function(e){return i._validate(e,0,59,"second")},i.validateMinute=function(e){return i._validate(e,0,59,"minute")},i.validateHour=function(e){return i._validate(e,0,23,"hour")},i.validateDay=function(e,t,n){return i._validate(e,1,i.getDaysInMonth(t,n),"day")},i.validateMonth=function(e){return i._validate(e,0,11,"month")},i.validateYear=function(e){return i._validate(e,0,9999,"year")},o.set=function(e){return i.validateMillisecond(e.millisecond)&&this.addMilliseconds(e.millisecond-this.getMilliseconds()),i.validateSecond(e.second)&&this.addSeconds(e.second-this.getSeconds()),i.validateMinute(e.minute)&&this.addMinutes(e.minute-this.getMinutes()),i.validateHour(e.hour)&&this.addHours(e.hour-this.getHours()),i.validateMonth(e.month)&&this.addMonths(e.month-this.getMonth()),i.validateYear(e.year)&&this.addYears(e.year-this.getFullYear()),i.validateDay(e.day,this.getFullYear(),this.getMonth())&&this.addDays(e.day-this.getDate()),e.timezone&&this.setTimezone(e.timezone),e.timezoneOffset&&this.setTimezoneOffset(e.timezoneOffset),e.week&&i._validate(e.week,0,53,"week")&&this.setWeek(e.week),this},o.moveToFirstDayOfMonth=function(){return this.set({day:1})},o.moveToLastDayOfMonth=function(){return this.set({day:i.getDaysInMonth(this.getFullYear(),this.getMonth())})},o.moveToNthOccurrence=function(e,t){var n=0;if(t>0)n=t-1;else if(-1===t)return this.moveToLastDayOfMonth(),this.getDay()!==e&&this.moveToDayOfWeek(e,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(e,1).addWee
7ks(n)},o.moveToDayOfWeek=function(e,t){var n=(e-this.getDay()+7*(t||1))%7;return this.addDays(0===n?n+=7*(t||1):n)},o.moveToMonth=function(e,t){var n=(e-this.getMonth()+12*(t||1))%12;return this.addMonths(0===n?n+=12*(t||1):n)},o.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864e5)+1},o.getTimezone=function(){return i.getTimezoneAbbreviation(this.getUTCOffset())},o.setTimezoneOffset=function(e){var t=this.getTimezoneOffset(),n=-6*Number(e)/10;return this.addMinutes(n-t)},o.setTimezone=function(e){return this.setTimezoneOffset(i.getTimezoneOffset(e))},o.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()},o.isDaylightSavingTime=function(){return this.hasDaylightSavingTime()&&(new Date).getTimezoneOffset()===Date.today().set({month:6,day:1}).getTimezoneOffset()},o.getUTCOffset=function(){var e,t=-10*this.getTimezoneOffset()/6;return t<0?(e=(t-1e4).toString()).charAt(0)+e.substr(2):"+"+(e=(t+1e4).toString()).substr(1)},o.getElapsed=function(e){return(e||new Date)-this},o.toISOString||(o.toISOString=function(){function e(e){return e<10?"0"+e:e}return'"'+this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+'Z"'}),o._toString=o.toString,o.toString=function(e){var t=this;if(e&&1==e.length){var n=r.formatPatterns;switch(t.t=t.toString,e){case"d":return t.t(n.shortDate);case"D":return t.t(n.longDate);case"F":return t.t(n.fullDateTime);case"m":return t.t(n.monthDay);case"r":return t.t(n.rfc1123);case"s":return t.t(n.sortableDateTime);case"t":return t.t(n.shortTime);case"T":return t.t(n.longTime);case"u":return t.t(n.universalSortableDateTime);case"y":return t.t(n.yearMonth)}}return e?e.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,function(e){if("\\"===e.charAt(0))return e.replace("\\","");switch(t.h=t.getHours,e){case"hh":return s(t.h()<13?0===t.h()?12:t.h():t.h()-12);case"h":return t.h()<13?0===t.h()?12:t.h():t.h()-12;case"HH":return s(t.h());case"H":return t.h();case"mm":return s(t.getMinutes());case"m":return t.getMinutes();case"ss":return s(t.getSeconds());case"s":return t.getSeconds();case"yyyy":return s(t.getFullYear(),4);case"yy":return s(t.getFullYear());case"dddd":return r.dayNames[t.getDay()];case"ddd":return r.abbreviatedDayNames[t.getDay()];case"dd":return s(t.getDate());case"d":return t.getDate();case"MMMM":return r.monthNames[t.getMonth()];case"MMM":return r.abbreviatedMonthNames[t.getMonth()];case"MM":return s(t.getMonth()+1);case"M":return t.getMonth()+1;case"t":return t.h()<12?r.amDesignator.substring(0,1):r.pmDesignator.substring(0,1);case"tt":return t.h()<12?r.amDesignator:r.pmDesignator;case"S":return function(e){switch(1*e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}}(t.getDate());default:return e}}):this._toString()}}(),function(){var e=Date,t=e.prototype,n=e.CultureInfo,i=Number.prototype;t._orient=1,t._nth=null,t._is=!1,t._same=!1,t._isSecond=!1,i._dateElement="day",t.next=function(){return this._orient=1,this},e.next=function(){return e.today().next()},t.last=t.prev=t.previous=function(){return this._orient=-1,this},e.last=e.prev=e.previous=function(){return e.today().last()},t.is=function(){return this._is=!0,this},t.same=function(){return this._same=!0,this._isSecond=!1,this},t.today=function(){return this.same().day()},t.weekday=function(){return!!this._is&&(this._is=!1,!this.is().sat()&&!this.is().sun())},t.at=function(t){return"string"==typeof t?e.parse(this.toString("d")+" "+t):this.set(t)},i.fromNow=i.after=function(e){var t={};return t[this._dateElement]=this,(e?e.clone():new Date).add(t)},i.ago=i.before=function(e){var t={};return t[this._dateElement]=-1*this,(e?e.clone():new Date).add(t)};var o,r="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),s="january february march april may june july august september october november december".split(/\s/),a="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),l="Milliseconds Seconds Minutes Hours Date Week Month FullYear".split(/\s/),c="final first second third fourth fifth".split(/\s/);t.toObject=function(){for(var e={},t=0;t<a.length;t++)e[a[t].toLowerCase()]=this["get"+l[t]]();return e},e.fromObject=function(e){return e.week=null,Date.today().set(e)};for(var u=function(t){return function(){if(this._is)return this._is=!1,this.getDay()==t;if(null!==this._nth){this._isSecond&&this.addSeconds(-1*this._orient),this._isSecond=!1;var n=this._nth;this._nth=null;var i=this.clone().moveToLastDayOfMonth();if(this.moveToNthOccurrence(t,n),this>i)throw new RangeError(e.getDayName(t)+" does not occur "+n+" times in the month of "+e.getMonthName(i.getMonth())+" "+i.getFullYear()+".");return this}return this.moveToDayOfWeek(t,this._orient)}},d=function(t){return function(){var i=e.today(),o=t-i.getDay();return 0===t&&1===n.firstDayOfWeek&&0!==i.getDay()&&(o+=7),i.addDays(o)}},f=0;f<r.length;f++)e[r[f].toUpperCase()]=e[r[f].toUpperCase().substring(0,3)]=f,e[r[f]]=e[r[f].substring(0,3)]=d(f),t[r[f]]=t[r[f].substring(0,3)]=u(f);for(var p=function(e){return function(){return this._is?(this._is=!1,this.getMonth()===e):this.moveToMonth(e,this._orient)}},h=function(t){return function(){return e.today().set({month:t,day:1})}},m=0;m<s.length;m++)e[s[m].toUpperCase()]=e[s[m].toUpperCase().substring(0,3)]=m,e[s[m]]=e[s[m].substring(0,3)]=h(m),t[s[m]]=t[s[m].substring(0,3)]=p(m);for(var g=function(e){return function(){if(this._isSecond)return this._isSecond=!1,this;if(this._same){this._same=this._is=!1;for(var t=this.toObject(),n=(arguments[0]||new Date).toObject(),i="",o=e.toLowerCase(),r=a.length-1;r>-1;r--){if(t[i=a[r].toLowerCase()]!=n[i])return!1;if(o==i)break}return!0}return"s"!=e.substring(e.length-1)&&(e+="s"),this["add"+e](this._orient)}},v=function(e){return function(){return this._dateElement=e,this}},y=0;y<a.length;y++)t[o=a[y].toLowerCase()]=t[o+"s"]=g(a[y]),i[o]=i[o+"s"]=v(o);t._ss=g("Second");for(var b=function(e){return function(t){return this._same?this._ss(arguments[0]):t||0===t?this.moveToNthOccurrence(t,e):(this._nth=e,2===e&&null==t?(this._isSecond=!0,this.addSeconds(this._orient)):this)}},w=0;w<c.length;w++)t[c[w]]=b(0===w?-1:w)}(),function(){Date.Parsing={Exception:function(e){this.message="Parse error at '"+e.substring(0,10)+" ...'"}};for(var e=Date.Parsing,t=e.Operators={rtoken:function(t){return function(n){var i=n.match(t);if(i)return[i[0],n.substring(i[0].length)];throw new e.Exception(n)}},token:function(e){return function(e){return t.rtoken(new RegExp("^s*"+e+"s*"))(e)}},stoken:function(e){return t.rtoken(new RegExp("^"+e))},until:function(e){return function(t){for(var n=[],i=null;t.length;){try{i=e.call(this,t)}catch(e){n.push(i[0]),t=i[1];continue}break}return[n,t]}},many:function(e){return function(t){for(var n=[],i=null;t.length;){try{i=e.call(this,t)}catch(e){return[n,t]}n.push(i[0]),t=i[1]}return[n,t]}},optional:function(e){return function(t){var n=null;try{n=e.call(this,t)}catch(e){return[null,t]}return[n[0],n[1]]}},not:function(t){return function(n){try{t.call(this,n)}
7catch(e){return[null,n]}throw new e.Exception(n)}},ignore:function(e){return e?function(t){return[null,e.call(this,t)[1]]}:null},product:function(){for(var e=arguments[0],n=Array.prototype.slice.call(arguments,1),i=[],o=0;o<e.length;o++)i.push(t.each(e[o],n));return i},cache:function(t){var n={},i=null;return function(o){try{i=n[o]=n[o]||t.call(this,o)}catch(e){i=n[o]=e}if(i instanceof e.Exception)throw i;return i}},any:function(){var t=arguments;return function(n){for(var i=null,o=0;o<t.length;o++)if(null!=t[o]){try{i=t[o].call(this,n)}catch(e){i=null}if(i)return i}throw new e.Exception(n)}},each:function(){var t=arguments;return function(n){for(var i=[],o=null,r=0;r<t.length;r++)if(null!=t[r]){try{o=t[r].call(this,n)}catch(t){throw new e.Exception(n)}i.push(o[0]),n=o[1]}return[i,n]}},all:function(){var e=arguments,t=t;return t.each(t.optional(e))},sequence:function(n,i,o){return i=i||t.rtoken(/^\s*/),o=o||null,1==n.length?n[0]:function(t){for(var r=null,s=null,a=[],l=0;l<n.length;l++){try{r=n[l].call(this,t)}catch(e){break}a.push(r[0]);try{s=i.call(this,r[1])}catch(e){s=null;break}t=s[1]}if(!r)throw new e.Exception(t);if(s)throw new e.Exception(s[1]);if(o)try{r=o.call(this,r[1])}catch(t){throw new e.Exception(r[1])}return[a,r?r[1]:t]}},between:function(e,n,i){i=i||e;var o=t.each(t.ignore(e),n,t.ignore(i));return function(e){var t=o.call(this,e);return[[t[0][0],r[0][2]],t[1]]}},list:function(e,n,i){return n=n||t.rtoken(/^\s*/),i=i||null,e instanceof Array?t.each(t.product(e.slice(0,-1),t.ignore(n)),e.slice(-1),t.ignore(i)):t.each(t.many(t.each(e,t.ignore(n))),px,t.ignore(i))},set:function(n,i,o){return i=i||t.rtoken(/^\s*/),o=o||null,function(r){for(var s=null,a=null,l=null,c=null,u=[[],r],d=!1,f=0;f<n.length;f++){l=null,a=null,s=null,d=1==n.length;try{s=n[f].call(this,r)}catch(e){continue}if(c=[[s[0]],s[1]],s[1].length>0&&!d)try{l=i.call(this,s[1])}catch(e){d=!0}else d=!0;if(d||0!==l[1].length||(d=!0),!d){for(var p=[],h=0;h<n.length;h++)f!=h&&p.push(n[h]);(a=t.set(p,i).call(this,l[1]))[0].length>0&&(c[0]=c[0].concat(a[0]),c[1]=a[1])}if(c[1].length<u[1].length&&(u=c),0===u[1].length)break}if(0===u[0].length)return u;if(o){try{l=o.call(this,u[1])}catch(t){throw new e.Exception(u[1])}u[1]=l[1]}return u}},forward:function(e,t){return function(n){return e[t].call(this,n)}},replace:function(e,t){return function(n){var i=e.call(this,n);return[t,i[1]]}},process:function(e,t){return function(n){var i=e.call(this,n);return[t.call(this,i[0]),i[1]]}},min:function(t,n){return function(i){var o=n.call(this,i);if(o[0].length<t)throw new e.Exception(i);return o}}},n=function(e){return function(){var t=null,n=[];if(arguments.length>1?t=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&(t=arguments[0]),!t)return e.apply(null,arguments);for(var i=0,o=t.shift();i<o.length;i++)return t.unshift(o[i]),n.push(e.apply(null,t)),t.shift(),n}},i="optional not ignore cache".split(/\s/),o=0;o<i.length;o++)t[i[o]]=n(t[i[o]]);for(var s=function(e){return function(){return arguments[0]instanceof Array?e.apply(null,arguments[0]):e.apply(null,arguments)}},a="each any all".split(/\s/),l=0;l<a.length;l++)t[a[l]]=s(t[a[l]])}(),function(){var e=Date,t=(e.prototype,e.CultureInfo),n=function(e){for(var t=[],i=0;i<e.length;i++)e[i]instanceof Array?t=t.concat(n(e[i])):e[i]&&t.push(e[i]);return t};e.Grammar={},e.Translator={hour:function(e){return function(){this.hour=Number(e)}},minute:function(e){return function(){this.minute=Number(e)}},second:function(e){return function(){this.second=Number(e)}},meridian:function(e){return function(){this.meridian=e.slice(0,1).toLowerCase()}},timezone:function(e){return function(){var t=e.replace(/[^\d\+\-]/g,"");t.length?this.timezoneOffset=Number(t):this.timezone=e.toLowerCase()}},day:function(e){var t=e[0];return function(){this.day=Number(t.match(/\d+/)[0])}},month:function(e){return function(){this.month=3==e.length?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(e)/4:Number(e)-1}},year:function(e){return function(){var n=Number(e);this.year=e.length>2?n:n+(n+2e3<t.twoDigitYearMax?2e3:1900)}},rday:function(e){return function(){switch(e){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0,this.now=!0}}},finishExact:function(t){t=t instanceof Array?t:[t];for(var n=0;n<t.length;n++)t[n]&&t[n].call(this);var i=new Date;if(!this.hour&&!this.minute||this.month||this.year||this.day||(this.day=i.getDate()),this.year||(this.year=i.getFullYear()),this.month||0===this.month||(this.month=i.getMonth()),this.day||(this.day=1),this.hour||(this.hour=0),this.minute||(this.minute=0),this.second||(this.second=0),this.meridian&&this.hour&&("p"==this.meridian&&this.hour<12?this.hour=this.hour+12:"a"==this.meridian&&12==this.hour&&(this.hour=0)),this.day>e.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");var o=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);
7return this.timezone?o.set({timezone:this.timezone}):this.timezoneOffset&&o.set({timezoneOffset:this.timezoneOffset}),o},finish:function(t){if(0===(t=t instanceof Array?n(t):[t]).length)return null;for(var i=0;i<t.length;i++)"function"==typeof t[i]&&t[i].call(this);var o=e.today();if(this.now&&!this.unit&&!this.operator)return new Date;this.now&&(o=new Date);var r,s,a,l=!!(this.days&&null!==this.days||this.orient||this.operator);if(a="past"==this.orient||"subtract"==this.operator?-1:1,this.now||-1=="hour minute second".indexOf(this.unit)||o.setTimeToNow(),(this.month||0===this.month)&&-1!="year day hour minute second".indexOf(this.unit)&&(this.value=this.month+1,this.month=null,l=!0),!l&&this.weekday&&!this.day&&!this.days){var c=Date[this.weekday]();this.day=c.getDate(),this.month||(this.month=c.getMonth()),this.year=c.getFullYear()}if(l&&this.weekday&&"month"!=this.unit&&(this.unit="day",r=e.getDayNumberFromName(this.weekday)-o.getDay(),s=7,this.days=r?(r+a*s)%s:a*s),this.month&&"day"==this.unit&&this.operator&&(this.value=this.month+1,this.month=null),null!=this.value&&null!=this.month&&null!=this.year&&(this.day=1*this.value),this.month&&!this.day&&this.value&&(o.set({day:1*this.value}),l||(this.day=1*this.value)),this.month||!this.value||"month"!=this.unit||this.now||(this.month=this.value,l=!0),l&&(this.month||0===this.month)&&"year"!=this.unit&&(this.unit="month",r=this.month-o.getMonth(),s=12,this.months=r?(r+a*s)%s:a*s,this.month=null),this.unit||(this.unit="day"),!this.value&&this.operator&&null!==this.operator&&this[this.unit+"s"]&&null!==this[this.unit+"s"]?this[this.unit+"s"]=this[this.unit+"s"]+("add"==this.operator?1:-1)+(this.value||0)*a:null!=this[this.unit+"s"]&&null==this.operator||(this.value||(this.value=1),this[this.unit+"s"]=this.value*a),this.meridian&&this.hour&&("p"==this.meridian&&this.hour<12?this.hour=this.hour+12:"a"==this.meridian&&12==this.hour&&(this.hour=0)),this.weekday&&!this.day&&!this.days){c=Date[this.weekday]();this.day=c.getDate(),c.getMonth()!==o.getMonth()&&(this.month=c.getMonth())}return!this.month&&0!==this.month||this.day||(this.day=1),this.orient||this.operator||"week"!=this.unit||!this.value||this.day||this.month?(l&&this.timezone&&this.day&&this.days&&(this.day=this.days),l?o.add(this):o.set(this)):Date.today().setWeek(this.value)}};var i,o=e.Parsing.Operators,r=e.Grammar,s=e.Translator;r.datePartDelimiter=o.rtoken(/^([\s\-\.\,\/\x27]+)/),r.timePartDelimiter=o.stoken(":"),r.whiteSpace=o.rtoken(/^\s*/),r.generalDelimiter=o.rtoken(/^(([\s\,]|at|@|on)+)/);var a={};r.ctoken=function(e){var n=a[e];if(!n){for(var i=t.regexPatterns,r=e.split(/\s+/),s=[],l=0;l<r.length;l++)s.push(o.replace(o.rtoken(i[r[l]]),r[l]));n=a[e]=o.any.apply(null,s)}return n},r.ctoken2=function(e){return o.rtoken(t.regexPatterns[e])},r.h=o.cache(o.process(o.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),s.hour)),r.hh=o.cache(o.process(o.rtoken(/^(0[0-9]|1[0-2])/),s.hour)),r.H=o.cache(o.process(o.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),s.hour)),r.HH=o.cache(o.process(o.rtoken(/^([0-1][0-9]|2[0-3])/),s.hour)),r.m=o.cache(o.process(o.rtoken(/^([0-5][0-9]|[0-9])/),s.minute)),r.mm=o.cache(o.process(o.rtoken(/^[0-5][0-9]/),s.minute)),r.s=o.cache(o.process(o.rtoken(/^([0-5][0-9]|[0-9])/),s.second)),r.ss=o.cache(o.process(o.rtoken(/^[0-5][0-9]/),s.second)),r.hms=o.cache(o.sequence([r.H,r.m,r.s],r.timePartDelimiter)),r.t=o.cache(o.process(r.ctoken2("shortMeridian"),s.meridian)),r.tt=o.cache(o.process(r.ctoken2("longMeridian"),s.meridian)),r.z=o.cache(o.process(o.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),s.timezone)),r.zz=o.cache(o.process(o.rtoken(/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/),s.timezone)),r.zzz=o.cache(o.process(r.ctoken2("timezone"),s.timezone)),r.timeSuffix=o.each(o.ignore(r.whiteSpace),o.set([r.tt,r.zzz])),r.time=o.each(o.optional(o.ignore(o.stoken("T"))),r.hms,r.timeSuffix),r.d=o.cache(o.process(o.each(o.rtoken(/^([0-2]\d|3[0-1]|\d)/),o.optional(r.ctoken2("ordinalSuffix"))),s.day)),r.dd=o.cache(o.process(o.each(o.rtoken(/^([0-2]\d|3[0-1])/),o.optional(r.ctoken2("ordinalSuffix"))),s.day)),r.ddd=r.dddd=o.cache(o.process(r.ctoken("sun mon tue wed thu fri sat"),function(e){return function(){this.weekday=e}})),r.M=o.cache(o.process(o.rtoken(/^(1[0-2]|0\d|\d)/),s.month)),r.MM=o.cache(o.process(o.rtoken(/^(1[0-2]|0\d)/),s.month)),r.MMM=r.MMMM=o.cache(o.process(r.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),s.month)),r.y=o.cache(o.process(o.rtoken(/^(\d\d?)/),s.year)),r.yy=o.cache(o.process(o.rtoken(/^(\d\d)/),s.year)),r.yyy=o.cache(o.process(o.rtoken(/^(\d\d?\d?\d?)/),s.year)),r.yyyy=o.cache(o.process(o.rtoken(/^(\d\d\d\d)/),s.year)),i=function(){return o.each(o.any.apply(null,arguments),o.not(r.ctoken2("timeContext")))},r.day=i(r.d,r.dd),r.month=i(r.M,r.MMM),r.year=i(r.yyyy,r.yy),r.orientation=o.process(r.ctoken("past future"),function(e){return function(){this.orient=e}}),r.operator=o.process(r.ctoken("add subtract"),function(e){return function(){this.operator=e}}),r.rday=o.process(r.ctoken("yesterday tomorrow today now"),s.rday),r.unit=o.process(r.ctoken("second minute hour day week month year"),function(e){return function(){this.unit=e}}),r.value=o.process(o.rtoken(/^\d\d?(st|nd|rd|th)?/),function(e){return function(){this.value=e.replace(/\D/g,"")}}),r.expression=o.set([r.rday,r.operator,r.value,r.unit,r.orientation,r.ddd,r.MMM]),i=function(){return o.set(arguments,r.datePartDelimiter)},r.mdy=i(r.ddd,r.month,r.day,r.year),r.ymd=i(r.ddd,r.year,r.month,r.day),r.dmy=i(r.ddd,r.day,r.month,r.year),r.date=function(e){return(r[t.dateElementOrder]||r.mdy).call(this,e)},r.format=o.process(o.many(o.any(o.process(o.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(t){if(r[t])return r[t];throw e.Parsing.Exception(t)}),o.process(o.rtoken(/^[^dMyhHmstz]+/),function(e){return o.ignore(o.stoken(e))}))),function(e){return o.process(o.each.apply(null,e),s.finishExact)});var l={},c=function(e){return l[e]=l[e]||r.format(e)[0]};r.formats=function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(c(e[n]));return o.any.apply(null,t)}return c(e)},r._formats=r.formats(['"yyyy-MM-ddTHH:mm:ssZ"',"yyyy-MM-ddTHH:mm:ssZ","yyyy-MM-ddTHH:mm:ssz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mmZ","yyyy-MM-ddTHH:mmz","yyyy-MM-ddTHH:mm","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","MMddyyyy","ddMMyyyy","Mddyyyy","ddMyyyy","Mdyyyy","dMyyyy","yyyy","Mdyy","dMyy","d"]),r._start=o.process(o.set([r.date,r.time,r.expression],r.generalDelimiter,r.whiteSpace),s.finish),r.start=function(e){try{var t=r._formats.call({},e);if(0===t[1].length)return t}catch(e){}return r._start.call({},e)},e._parse=e.parse,e.parse=function(t){var n=null;if(!t)return null;if(t instanceof Date)return t;try{n=e.Grammar.start.call({},t.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(e){return null}return 0===n[1].length?n[0]:null},e.getParseFunction=function(t){var n=e.Grammar.formats(t);return function(e){var t=null;try{t=n.call({},e)}catch(e){return null}return 0===t[1].length?t[0]:null}},e.parseExact=function(t,n){return e.getParseFunction(n)(t)}}(), 8/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */ 9function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],function(i){return n(i,e,t),i.mobile}):n(e.jQuery,e,t)}(this,document,function(e,t,n,i){var o,r;(function(e,t,n){function i(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function o(t){for(var n,i,o={};t;){for(i in n=e.data(t,w))n[i]&&(o[i]=o.hasVirtualBinding=!0);t=t.parentNode}return o}function r(){P=!0}function s(){P=!1}function a(){l(),D=setTimeout(function(){D=0,L=0,O.length=0,A=!1,r()},e.vmouse.resetTimerDuration)}function l(){D&&(clearTimeout(D),D=0)}function c(t,n,o){var r;return(o&&o[t]||!o&&function(t,n){for(var i;t;){if((i=e.data(t,w))&&(!n||i[n]))return t;t=t.parentNode}return null}(n.target,t))&&(r=function(t,n){var o,r,s,a,l,c,u,d,f,p=t.type;if((t=e.Event(t)).type=n,o=t.originalEvent,r=e.event.props,p.search(/^(mouse|click)/)>-1&&(r=S),o)for(u=r.length;u;)t[a=r[--u]]=o[a];if(p.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==p.search(/^touch/)&&(p=(s=i(o)).touches,l=s.changedTouches,c=p&&p.length?p[0]:l&&l.length?l[0]:void 0))for(d=0,f=T.length;d<f;d++)t[a=T[d]]=c[a];return t}(n,t),e(n.target).trigger(r)),r}function u(t){var n,i=e.data(t.target,_);!A&&(!L||L!==i)&&((n=c("v"+t.type,t))&&(n.isDefaultPrevented()&&t.preventDefault(),n.isPropagationStopped()&&t.stopPropagation(),n.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function d(t){var n,r,a,u=i(t).touches;u&&1===u.length&&((r=o(n=t.target)).hasVirtualBinding&&(L=F++,e.data(n,_,L),l(),s(),E=!1,a=i(t).touches[0],M=a.pageX,$=a.pageY,c("vmouseover",t,r),c("vmousedown",t,r)))}function f(e){P||(E||c("vmousecancel",e,o(e.target)),E=!0,a())}function p(t){if(!P){var n=i(t).touches[0],r=E,s=e.vmouse.moveDistanceThreshold,l=o(t.target);(E=E||Math.abs(n.pageX-M)>s||Math.abs(n.pageY-$)>s)&&!r&&c("vmousecancel",t,l),c("vmousemove",t,l),a()}}function h(e){if(!P){r();var t,n,s=o(e.target);c("vmouseup",e,s),E||(t=c("vclick",e,s))&&t.isDefaultPrevented()&&(n=i(e).changedTouches[0],O.push({touchID:L,x:n.clientX,y:n.clientY}),A=!0),c("vmouseout",e,s),E=!1,a()}}function m(t){var n,i=e.data(t,w);if(i)for(n in i)if(i[n])return!0;return!1}function g(){}function v(t){var n=t.substr(1);return{setup:function(){m(this)||e.data(this,w,{}),e.data(this,w)[t]=!0,C[t]=(C[t]||0)+1,1===C[t]&&N.bind(n,u),e(this).bind(n,g),I&&(C.touchstart=(C.touchstart||0)+1,1===C.touchstart&&N.bind("touchstart",d).bind("touchend",h).bind("touchmove",p).bind("scroll",f))},teardown:function(){--C[t],C[t]||N.unbind(n,u),I&&(--C.touchstart,C.touchstart||N.unbind("touchstart",d).unbind("touchmove",p).unbind("touchend",h).unbind("scroll",f));var i=e(this),o=e.data(this,w);o&&(o[t]=!1),i.unbind(n,g),m(this)||i.removeData(w)}}}var y,b,w="virtualMouseBindings",_="virtualTouchID",x="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),T="clientX clientY pageX pageY screenX screenY".split(" "),k=e.event.mouseHooks?e.event.mouseHooks.props:[],S=e.event.props.concat(k),C={},D=0,M=0,$=0,E=!1,O=[],A=!1,P=!1,I="addEventListener"in n,N=e(n),F=1,L=0;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},b=0;b<x.length;b++)e.event.special[x[b]]=v(x[b]);I&&n.addEventListener("click",function(t){var n,i,o,r,s,a=O.length,l=t.target;if(a)for(n=t.clientX,i=t.clientY,y=e.vmouse.clickDistanceThreshold,o=l;o;){for(r=0;r<a;r++)if(s=O[r],o===l&&Math.abs(s.x-n)<y&&Math.abs(s.y-i)<y||e.data(o,_)===s.touchID)return t.preventDefault(),void t.stopPropagation();o=o.parentNode}},!0)})(e,0,n),e.mobile={},r={touch:"ontouchend"in n}
9,(o=e).mobile.support=o.mobile.support||{},o.extend(o.support,r),o.extend(o.mobile.support,r),function(e,t){function i(t,n,i,o){var r=i.type;i.type=n,o?e.event.trigger(i,void 0,t):e.event.dispatch.call(t,i),i.type=r}var o=e(n),r=e.mobile.support.touch,s="touchmove scroll",a=r?"touchstart":"mousedown",l=r?"touchend":"mouseup",c=r?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.scrollstart={enabled:!0,setup:function(){function t(e,t){i(r,(n=t)?"scrollstart":"scrollstop",e)}var n,o,r=this;e(r).bind(s,function(i){e.event.special.scrollstart.enabled&&(n||t(i,!0),clearTimeout(o),o=setTimeout(function(){t(i,!1)},50))})},teardown:function(){e(this).unbind(s)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(s){function a(){clearTimeout(u)}function l(){a(),n.unbind("vclick",c).unbind("vmouseup",a),o.unbind("vmousecancel",l)}function c(e){l(),r||d!==e.target?r&&e.preventDefault():i(t,"tap",e)}if(r=!1,s.which&&1!==s.which)return!1;var u,d=s.target;n.bind("vmouseup",a).bind("vclick",c),o.bind("vmousecancel",l),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),i(t,"taphold",e.Event("taphold",{target:d}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),o.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,i=t.pageYOffset,o=e.clientX,r=e.clientY;return 0===e.pageY&&Math.floor(r)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(o)>Math.floor(e.pageX)?(o-=n,r-=i):(r<e.pageY-i||o<e.pageX-n)&&(o=e.pageX-n,r=e.pageY-i),{x:o,y:r}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[i.x,i.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[i.x,i.y]}},handleSwipe:function(t,n,o,r){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
9coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return i(o,"swipe",e.Event("swipe",{target:r,swipestart:t,swipestop:n}),!0),i(o,s,e.Event(s,{target:r,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,i=e(n),r={};(t=e.data(this,"mobile-events"))||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=r,r.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var i,s=e.event.special.swipe.start(t),a=t.target,u=!1;r.move=function(t){s&&!t.isDefaultPrevented()&&(i=e.event.special.swipe.stop(t),u||(u=e.event.special.swipe.handleSwipe(s,i,n,a))&&(e.event.special.swipe.eventInProgress=!1),Math.abs(s.coords[0]-i.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())},r.stop=function(){u=!0,e.event.special.swipe.eventInProgress=!1,o.off(c,r.move),r.move=null},o.on(c,r.move).one(l,r.stop)}},i.on(a,r.start)},teardown:function(){var t,n;(t=e.data(this,"mobile-events"))&&(n=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(a,n.start),n.move&&o.off(c,n.move),n.stop&&o.off(l,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){function e(){return Ie.apply(null,arguments)}function t(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function r(e,t,n,i){return ee(e,t,n,i,!0).utc()}function s(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),e._pf}function a(e){if(null==e._isValid){var t=s(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function l(e){var t=r(NaN);return null!=e?o(s(t),e):s(t).userInvalidated=!0,t}function c(e,t){var n,i,o;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=s(t)),void 0!==t._locale&&(e._locale=t._locale),Fe.length>0)for(n in Fe)void 0!==(o=t[i=Fe[n]])&&(e[i]=o);return e}function u(t){c(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===Le&&(Le=!0,e.updateOffset(this),Le=!1)}function d(e){return e instanceof u||null!=e&&null!=e._isAMomentObject}function f(e){return 0>e?Math.ceil(e):Math.floor(e)}function p(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=f(t)),n}function h(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;o>i;i++)(n&&e[i]!==t[i]||!n&&p(e[i])!==p(t[i]))&&s++;return s+r}function m(){}function g(e){return e?e.toLowerCase().replace("_","-"):e}function v(e){var t=null;if(!je[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ne._abbr,require("./locale/"+e),y(t)}catch(e){}return je[e]}function y(e,t){var n;return e&&((n=void 0===t?w(e):b(e,t))&&(Ne=n)),Ne._abbr}function b(e,t){return null!==t?(t.abbr=e,je[e]=je[e]||new m,je[e].set(t),y(e),je[e]):(delete je[e],null)}function w(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ne;if(!t(e)){if(n=v(e))return n;e=[e]}return function(e){for(var t,n,i,o,r=0;r<e.length;){for(t=(o=g(e[r]).split("-")).length,n=(n=g(e[r+1]))?n.split("-"):null;t>0;){if(i=v(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&h(o,n,!0)>=t-1)break;t--}r++}return null}(e)}function _(e,t){var n=e.toLowerCase();He[n]=He[n+"s"]=He[t]=e}function x(e){return"string"==typeof e?He[e]||He[e.toLowerCase()]:void 0}function T(e){var t,n,o={};for(n in e)i(e,n)&&((t=x(n))&&(o[t]=e[n]));return o}function k(t,n){return function(i){return null!=i?(C(this,t,i),e.updateOffset(this,n),this):S(this,t)}}function S(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}
9function C(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function D(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if("function"==typeof this[e=x(e)])return this[e](t);return this}function M(e,t,n){var i=""+Math.abs(e),o=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function $(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(qe[e]=o),t&&(qe[t[0]]=function(){return M(o.apply(this,arguments),t[1],t[2])}),n&&(qe[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function E(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function O(e,t){return e.isValid()?(t=A(t,e.localeData()),Be[t]=Be[t]||function(e){var t,n,i=e.match(Re);for(t=0,n=i.length;n>t;t++)qe[i[t]]?i[t]=qe[i[t]]:i[t]=E(i[t]);return function(o){var r="";for(t=0;n>t;t++)r+=i[t]instanceof Function?i[t].call(o,e):i[t];return r}}(t),Be[t](e)):e.localeData().invalidDate()}function A(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(ze.lastIndex=0;i>=0&&ze.test(e);)e=e.replace(ze,n),ze.lastIndex=0,i-=1;return e}function P(e,t,n){var i;it[e]="function"==typeof(i=t)&&"[object Function]"===Object.prototype.toString.call(i)?t:function(e){return e&&n?n:t}}function I(e,t){return i(it,e)?it[e](t._strict,t._locale):new RegExp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))}function N(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){
9n[t]=p(e)}),n=0;n<e.length;n++)ot[e[n]]=i}function F(e,t){N(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function L(e,t,n){null!=t&&i(ot,e)&&ot[e](t,n._a,n,e)}function j(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function H(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))||(n=Math.min(e.date(),j(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)),e}function R(t){return null!=t?(H(this,t),e.updateOffset(this,!0),this):S(this,"Month")}function z(e){var t,n=e._a;return n&&-2===s(e).overflow&&(t=n[st]<0||n[st]>11?st:n[at]<1||n[at]>j(n[rt],n[st])?at:n[lt]<0||n[lt]>24||24===n[lt]&&(0!==n[ct]||0!==n[ut]||0!==n[dt])?lt:n[ct]<0||n[ct]>59?ct:n[ut]<0||n[ut]>59?ut:n[dt]<0||n[dt]>999?dt:-1,s(e)._overflowDayOfYear&&(rt>t||t>at)&&(t=at),s(e).overflow=t),e}function B(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function q(e,t){var n=!0;return o(function(){return n&&(B((new Error).stack),n=!1),t.apply(this,arguments)},t)}function W(e){var t,n,i=e._i,o=mt.exec(i);if(o){for(s(e).iso=!0,t=0,n=gt.length;n>t;t++)if(gt[t][1].exec(i)){e._f=gt[t][0];break}for(t=0,n=vt.length;n>t;t++)if(vt[t][1].exec(i)){e._f+=(o[6]||" ")+vt[t][0];break}i.match(tt)&&(e._f+="Z"),Z(e)}else e._isValid=!1}function Y(e,t,n,i,o,r,s){var a=new Date(e,t,n,i,o,r,s);return 1970>e&&a.setFullYear(e),a}function U(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function G(e){return V(e)?366:365}function V(e){return e%4==0&&e%100!=0||e%400==0}function X(e,t,n){var i,o=n-t,r=n-e.day();return r>o&&(r-=7),o-7>r&&(r+=7),i=te(e).add(r,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function K(e,t,n){return null!=e?e:null!=t?t:n}function J(e){var t,n,i,o,r,a,l=[];if(!e._d){for(r=e,a=void 0,a=new Date,i=r._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()],e._w&&null==e._a[at]&&null==e._a[st]&&function(e){var t,n,i,o,r,s,a;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,s=4,n=K(t.GG,e._a[rt],X(te(),1,4).year),i=K(t.W,1),o=K(t.E,1)):(r=e._locale._week.dow,s=e._locale._week.doy,n=K(t.gg,e._a[rt],X(te(),r,s).year),i=K(t.w,1),null!=t.d?(o=t.d,r>o&&++i):o=null!=t.e?t.e+r:r),a=function(e,t,n,i,o){var r,s=6+o-i,a=U(e,0,1+s).getUTCDay();return o>a&&(a+=7),{year:(r=1+s+7*(t-1)-a+(n=null!=n?1*n:o))>0?e:e-1,dayOfYear:r>0?r:G(e-1)+r}}(n,i,o,s,r),e._a[rt]=a.year,e._dayOfYear=a.dayOfYear}(e),e._dayOfYear&&(o=K(e._a[rt],i[rt]),e._dayOfYear>G(o)&&(s(e)._overflowDayOfYear=!0),n=U(o,0,e._dayOfYear),e._a[st]=n.getUTCMonth(),e._a[at]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=l[t]=i[t];for(;7>t;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[lt]&&0===e._a[ct]&&0===e._a[ut]&&0===e._a[dt]&&(e._nextDay=!0,e._a[lt]=0),e._d=(e._useUTC?U:Y).apply(null,l),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[lt]=24)}}function Z(t){if(t._f!==e.ISO_8601){t._a=[],s(t).empty=!0;var n,i,o,r,a,l,c,u,d,f=""+t._i,p=f.length,h=0;for(o=A(t._f,t._locale).match(Re)||[],n=0;n<o.length;n++)r=o[n],(i=(f.match(I(r,t))||[])[0])&&((a=f.substr(0,f.indexOf(i))).length>0&&s(t).unusedInput.push(a),f=f.slice(f.indexOf(i)+i.length),h+=i.length),qe[r]?(i?s(t).empty=!1:s(t).unusedTokens.push(r),L(r,i,t)):t._strict&&!i&&s(t).unusedTokens.push(r);s(t).charsLeftOver=p-h,f.length>0&&s(t).unusedInput.push(f),!0===s(t).bigHour&&t._a[lt]<=12&&t._a[lt]>0&&(s(t).bigHour=void 0),t._a[lt]=(l=t._locale,c=t._a[lt],null==(u=t._meridiem)?c:null!=l.meridiemHour?l.meridiemHour(c,u):null!=l.isPM?((d=l.isPM(u))&&12>c&&(c+=12),d||12!==c||(c=0),c):c),J(t),z(t)}else W(t)}function Q(i){var r=i._i,f=i._f;return i._locale=i._locale||w(i._l),null===r||void 0===f&&""===r?l({nullInput:!0}):("string"==typeof r&&(i._i=r=i._locale.preparse(r)),d(r)?new u(z(r)):(t(f)?function(e){var t,n,i,r,l;if(0===e._f.length)return s(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)l=0,t=c({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Z(t),a(t)&&(l+=s(t).charsLeftOver,l+=10*s(t).unusedTokens.length,s(t).score=l,(null==i||i>l)&&(i=l,n=t));o(e,n||t)}(i):f?Z(i):n(r)?i._d=r:function(i){var o=i._i;void 0===o?i._d=new Date:n(o)?i._d=new Date(+o):"string"==typeof o?function(t){var n=yt.exec(t._i);
9null!==n?t._d=new Date(+n[1]):(W(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}(i):t(o)?(i._a=function(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}(o.slice(0),function(e){return parseInt(e,10)}),J(i)):"object"==typeof o?function(e){if(!e._d){var t=T(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],J(e)}}(i):"number"==typeof o?i._d=new Date(o):e.createFromInputFallback(i)}(i),i))}function ee(e,t,n,i,o){var r,s={};return"boolean"==typeof n&&(i=n,n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=i,(r=new u(z(Q(s))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function te(e,t,n,i){return ee(e,t,n,i,!1)}function ne(e,n){var i,o;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return te();for(i=n[0],o=1;o<n.length;++o)(!n[o].isValid()||n[o][e](i))&&(i=n[o]);return i}function ie(e){var t=T(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+36e5*a,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=w(),this._bubble()}function oe(e){return e instanceof ie}function re(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+M(~~(e/60),2)+t+M(~~e%60,2)})}function se(e){var t=(e||"").match(tt)||[],n=((t[t.length-1]||[])+"").match(xt)||["-",0,0],i=60*n[1]+p(n[2]);return"+"===n[0]?i:-i}function ae(t,i){var o,r;return i._isUTC?(o=i.clone(),r=(d(t)||n(t)?+t:+te(t))-+o,o._d.setTime(+o._d+r),e.updateOffset(o,!1),o):te(t).local()}function le(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function ce(){return this._isUTC&&0===this._offset}function ue(e,t){var n,o,r,s=e,a=null;return oe(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(s={},t?s[t]=e:s.milliseconds=e):(a=Tt.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:p(a[at])*n,h:p(a[lt])*n,m:p(a[ct])*n,s:p(a[ut])*n,ms:p(a[dt])*n}):(a=kt.exec(e))?(n="-"===a[1]?-1:1,s={y:de(a[2],n),M:de(a[3],n),d:de(a[4],n),h:de(a[5],n),m:de(a[6],n),s:de(a[7],n),w:de(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=function(e,t){var n;return t=ae(t,e),e.isBefore(t)?n=fe(e,t):(n=fe(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}(te(s.from),te(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),o=new ie(s),oe(e)&&i(e,"_locale")&&(o._locale=e._locale),o}function de(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function fe(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function pe(e,t){return function(n,i){var o;return null===i||isNaN(+i)||(function(e){ht[e]||(B(),ht[e]=!0)}(t),o=n,n=i,i=o),he(this,ue(n="string"==typeof n?+n:n,i),e),this}}function he(t,n,i,o){var r=n._milliseconds,s=n._days,a=n._months;o=null==o||o,r&&t._d.setTime(+t._d+r*i),s&&C(t,"Date",S(t,"Date")+s*i),a&&H(t,S(t,"Month")+a*i),o&&e.updateOffset(t,s||a)}function me(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():O(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ge(e){var t;return void 0===e?this._locale._abbr:(null!=(t=w(e))&&(this._locale=t),this)}function ve(){return this._locale}function ye(e,t){$(0,[e,e.length],0,t)}function be(e,t,n){return X(te([e,11,31+t-n]),t,n).week}function we(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function _e(e,t){return t._meridiemParse}function xe(e,t){t[dt]=p(1e3*("0."+e))}function Te(e){return e}function ke(e,t,n,i){var o=w(),s=r().set(i,t);return o[n](s,e)}function Se(e,t,n,i,o){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return ke(e,t,n,o);var r,s=[];for(r=0;i>r;r++)s[r]=ke(e,r,n,o);return s}function Ce(e,t,n,i){var o=ue(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function De(e){return 0>e?Math.floor(e):Math.ceil(e)}function Me(e){return 4800*e/146097}function $e(e){return 146097*e/4800}function Ee(e){return function(){return this.as(e)}}function Oe(e){return function(){return this._data[e]}}function Ae(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function Pe(){var e,t,n=rn(this._milliseconds)/1e3,i=rn(this._days),o=rn(this._months);e=f(n/60),t=f(e/60),n%=60,e%=60;var r=f(o/12),s=o%=12,a=i,l=t,c=e,u=n,d=this.asSeconds();return d?(0>
9d?"-":"")+"P"+(r?r+"Y":"")+(s?s+"M":"")+(a?a+"D":"")+(l||c||u?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(u?u+"S":""):"P0D"}var Ie,Ne,Fe=e.momentProperties=[],Le=!1,je={},He={},Re=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ze=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},qe={},We=/\d/,Ye=/\d\d/,Ue=/\d{3}/,Ge=/\d{4}/,Ve=/[+-]?\d{6}/,Xe=/\d\d?/,Ke=/\d{1,3}/,Je=/\d{1,4}/,Ze=/[+-]?\d{1,6}/,Qe=/\d+/,et=/[+-]?\d+/,tt=/Z|[+-]\d\d:?\d\d/gi,nt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,it={},ot={},rt=0,st=1,at=2,lt=3,ct=4,ut=5,dt=6;$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),_("month","M"),P("M",Xe),P("MM",Xe,Ye),P("MMM",nt),P("MMMM",nt),N(["M","MM"],function(e,t){t[st]=p(e)-1}),N(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[st]=o:s(n).invalidMonth=e});var ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ht={};e.suppressDeprecationWarnings=!1;var mt=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],vt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],yt=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=q(0,function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),_("year","y"),P("Y",et),P("YY",Xe,Ye),P("YYYY",Je,Ge),P("YYYYY",Ze,Ve),P("YYYYYY",Ze,Ve),N(["YYYYY","YYYYYY"],rt),N("YYYY",function(t,n){n[rt]=2===t.length?e.parseTwoDigitYear(t):p(t)}),N("YY",function(t,n){n[rt]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return p(e)+(p(e)>68?1900:2e3)};var bt=k("FullYear",!1);$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),_("week","w"),_("isoWeek","W"),P("w",Xe),P("ww",Xe,Ye),P("W",Xe),P("WW",Xe,Ye),F(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=p(e)});$("DDD",["DDDD",3],"DDDo","dayOfYear"),_("dayOfYear","DDD"),P("DDD",Ke),P("DDDD",Ue),N(["DDD","DDDD"],function(e,t,n){n._dayOfYear=p(e)}),e.ISO_8601=function(){};var wt=q(0,function(){var e=te.apply(null,arguments);return this>e?this:e}),_t=q(0,function(){var e=te.apply(null,arguments);return e>this?this:e});re("Z",":"),re("ZZ",""),P("Z",tt),P("ZZ",tt),N(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=se(e)});var xt=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Tt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,kt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;ue.fn=ie.prototype;var St=pe(1,"add"),Ct=pe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Dt=q(0,function(e){return void 0===e?this.localeData():this.locale(e)});$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ye("gggg","weekYear"),ye("ggggg","weekYear"),ye("GGGG","isoWeekYear"),ye("GGGGG","isoWeekYear"),_("weekYear","gg"),_("isoWeekYear","GG"),P("G",et),P("g",et),P("GG",Xe,Ye),P("gg",Xe,Ye),P("GGGG",Je,Ge),P("gggg",Je,Ge),P("GGGGG",Ze,Ve),P("ggggg",Ze,Ve),F(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=p(e)}),F(["gg","GG"],function(t,n,i,o){n[o]=e.parseTwoDigitYear(t)}),$("Q",0,0,"quarter"),_("quarter","Q"),P("Q",We),N("Q",function(e,t){t[st]=3*(p(e)-1)}),$("D",["DD",2],"Do","date"),_("date","D"),P("D",Xe),P("DD",Xe,Ye),P("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),N(["D","DD"],at),N("Do",function(e,t){t[at]=p(e.match(Xe)[0])});var Mt=k("Date",!0);$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),_("day","d"),_("weekday","e"),_("isoWeekday","E"),P("d",Xe),P("e",Xe),P("E",Xe),P("dd",nt),P("ddd",nt),P("dddd",nt),F(["dd","ddd","dddd"],function(e,t,n){var i=n._locale.weekdaysParse(e);null!=i?t.d=i:s(n).invalidWeekday=e}),F(["d","e","E"],function(e,t,n,i){t[i]=p(e)});var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Et="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ot="Su_Mo_Tu_We_Th_Fr_Sa".split("_");$("H",["HH",2],0,"hour"),$("h",["hh",2],0,function(){return this.hours()%12||12}),we("a",!0),we("A",!1),_("hour","h"),P("a",_e),P("A",_e),P("H",Xe),P("h",Xe),P("HH",Xe,Ye),P("hh",Xe,Ye),N(["H","HH"],lt),N(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),N(["h","hh"],function(e,t,n){t[lt]=p(e),s(n).bigHour=!0});var At=k("Hours",!0);$("m",["mm",2],0,"minute"),_("minute","m"),P("m",Xe),P("mm",Xe,Ye),N(["m","mm"],ct);var Pt=k("Minutes",!1);$("s",["ss",2],0,"second"),_("second","s"),P("s",Xe),P("ss",Xe,Ye),N(["s","ss"],ut);var It,Nt=k("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),_("millisecond","ms"),P("S",Ke,We),P("SS",Ke,Ye),P("SSS",Ke,Ue),It="SSSS";It.length<=9;It+="S")P(It,Qe);for(It="S";It.length<=9;It+="S")N(It,xe);var Ft=k("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var Lt=u.prototype;Lt.add=St,Lt.calendar=function(e,t){var n=e||te(),i=ae(n,this).startOf("day"),o=this.diff(i,"days",!0),r=-6>o?"sameElse":-1>o?"lastWeek":0>o?"lastDay":1>o?"sameDay":2>o?"nextDay":7>o?"nextWeek":"sameElse";return this.format(t&&t[r]||this.localeData().calendar(r,this,te(n)))},Lt.clone=function(){return new u(this)},Lt.diff=function(e,t,n){var i,o,r=ae(e,this),s=6e4*(r.utcOffset()-this.utcOffset());return"year"===(t=x(t))||"month"===t||"quarter"===t?(o=function(e,t){var n,i,o=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(o,"months");return 0>t-r?(n=e.clone().add(o-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(o+1,"months"),i=(t-r)/(n-r)),-(o+i)}(this,r),"quarter"===t?o/=3:"year"===t&&(o/=12)):(i=this-r,o="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-s)/864e5:"week"===t?(i-s)/6048e5:i),n?o:f(o)},Lt.endOf=function(e){return void 0===(e=x(e))||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},Lt.format=function(t){var n=O(this,t||e.defaultFormat);return this.localeData().postformat(n)},Lt.from=function(e,t){return this.isValid()?ue({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Lt.fromNow=function(e){return this.from(te(),e)},Lt.to=function(e,t){return this.isValid()?ue({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Lt.toNow=function(e){return this.to(te(),e)}
9,Lt.get=D,Lt.invalidAt=function(){return s(this).overflow},Lt.isAfter=function(e,t){return"millisecond"===(t=x(void 0!==t?t:"millisecond"))?+this>+(e=d(e)?e:te(e)):(d(e)?+e:+te(e))<+this.clone().startOf(t)},Lt.isBefore=function(e,t){var n;return"millisecond"===(t=x(void 0!==t?t:"millisecond"))?+(e=d(e)?e:te(e))>+this:(n=d(e)?+e:+te(e),+this.clone().endOf(t)<n)},Lt.isBetween=function(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)},Lt.isSame=function(e,t){var n;return"millisecond"===(t=x(t||"millisecond"))?+this===+(e=d(e)?e:te(e)):(n=+te(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},Lt.isValid=function(){return a(this)},Lt.lang=Dt,Lt.locale=ge,Lt.localeData=ve,Lt.max=_t,Lt.min=wt,Lt.parsingFlags=function(){return o({},s(this))},Lt.set=D,Lt.startOf=function(e){switch(e=x(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},Lt.subtract=Ct,Lt.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Lt.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Lt.toDate=function(){return this._offset?new Date(+this):this._d},Lt.toISOString=me,Lt.toJSON=me,Lt.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Lt.unix=function(){return Math.floor(+this/1e3)},Lt.valueOf=function(){return+this._d-6e4*(this._offset||0)},Lt.year=bt,Lt.isLeapYear=function(){return V(this.year())},Lt.weekYear=function(e){var t=X(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},Lt.isoWeekYear=function(e){var t=X(this,1,4).year;return null==e?t:this.add(e-t,"y")},Lt.quarter=Lt.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Lt.month=R,Lt.daysInMonth=function(){return j(this.year(),this.month())},Lt.week=Lt.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Lt.isoWeek=Lt.isoWeeks=function(e){var t=X(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Lt.weeksInYear=function(){var e=this.localeData()._week;return be(this.year(),e.dow,e.doy)},Lt.isoWeeksInYear=function(){return be(this.year(),1,4)},Lt.date=Mt,Lt.day=Lt.days=function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Lt.weekday=function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Lt.isoWeekday=function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},Lt.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Lt.hour=Lt.hours=At,Lt.minute=Lt.minutes=Pt,Lt.second=Lt.seconds=Nt,Lt.millisecond=Lt.milliseconds=Ft,Lt.utcOffset=function(t,n){var i,o=this._offset||0;return null!=t?("string"==typeof t&&(t=se(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(i=le(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!n||this._changeInProgress?he(this,ue(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:le(this)},Lt.utc=function(e){return this.utcOffset(0,e)},Lt.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(le(this),"m")),this},Lt.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(se(this._i)),this},Lt.hasAlignedHourOffset=function(e){return e=e?te(e).utcOffset():0,(this.utcOffset()-e)%60==0},Lt.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Lt.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(c(e,this),(e=Q(e))._a){var t=e._isUTC?r(e._a):te(e._a);this._isDSTShifted=this.isValid()&&h(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},Lt.isLocal=function(){return!this._isUTC},Lt.isUtcOffset=function(){return this._isUTC},Lt.isUtc=ce,Lt.isUTC=ce,Lt.zoneAbbr=function(){return this._isUTC?"UTC":""},Lt.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Lt.dates=q(0,Mt),Lt.months=q(0,R),Lt.years=q(0,bt),Lt.zone=q(0,function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()});var jt=Lt,Ht=m.prototype;Ht._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ht.calendar=function(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.call(t,n):i},Ht._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ht.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}
9,Ht._invalidDate="Invalid date",Ht.invalidDate=function(){return this._invalidDate},Ht._ordinal="%d",Ht.ordinal=function(e){return this._ordinal.replace("%d",e)},Ht._ordinalParse=/\d{1,2}/,Ht.preparse=Te,Ht.postformat=Te,Ht._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ht.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return"function"==typeof o?o(e,t,n,i):o.replace(/%d/i,e)},Ht.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},Ht.set=function(e){var t,n;for(n in e)"function"==typeof(t=e[n])?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},Ht.months=function(e){return this._months[e.month()]},Ht._months=ft,Ht.monthsShort=function(e){return this._monthsShort[e.month()]},Ht._monthsShort=pt,Ht.monthsParse=function(e,t,n){var i,o,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(o=r([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Ht.week=function(e){return X(e,this._week.dow,this._week.doy).week},Ht._week={dow:0,doy:6},Ht.firstDayOfYear=function(){return this._week.doy},Ht.firstDayOfWeek=function(){return this._week.dow},Ht.weekdays=function(e){return this._weekdays[e.day()]},Ht._weekdays=$t,Ht.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},Ht._weekdaysMin=Ot,Ht.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},Ht._weekdaysShort=Et,Ht.weekdaysParse=function(e){var t,n,i;for(this._weekdaysParse=this._weekdaysParse||[],t=0;7>t;t++)if(this._weekdaysParse[t]||(n=te([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},Ht.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Ht._meridiemParse=/[ap]\.?m?\.?/i,Ht.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},y("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=q(0,y),e.langData=q(0,w);var Rt=Math.abs,zt=Ee("ms"),Bt=Ee("s"),qt=Ee("m"),Wt=Ee("h"),Yt=Ee("d"),Ut=Ee("w"),Gt=Ee("M"),Vt=Ee("y"),Xt=Oe("milliseconds"),Kt=Oe("seconds"),Jt=Oe("minutes"),Zt=Oe("hours"),Qt=Oe("days"),en=Oe("months"),tn=Oe("years"),nn=Math.round,on={s:45,m:45,h:22,d:26,M:11},rn=Math.abs,sn=ie.prototype;return sn.abs=function(){var e=this._data;return this._milliseconds=Rt(this._milliseconds),this._days=Rt(this._days),this._months=Rt(this._months),e.milliseconds=Rt(e.milliseconds),e.seconds=Rt(e.seconds),e.minutes=Rt(e.minutes),e.hours=Rt(e.hours),e.months=Rt(e.months),e.years=Rt(e.years),this},sn.add=function(e,t){return Ce(this,e,t,1)},sn.subtract=function(e,t){return Ce(this,e,t,-1)},sn.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=x(e))||"year"===e)return t=this._days+i/864e5,n=this._months+Me(t),"month"===e?n:n/12;switch(t=this._days+Math.round($e(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},sn.asMilliseconds=zt,sn.asSeconds=Bt,sn.asMinutes=qt,sn.asHours=Wt,sn.asDays=Yt,sn.asWeeks=Ut,sn.asMonths=Gt,sn.asYears=Vt,sn.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12)},sn._bubble=function(){var e,t,n,i,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||0>=r&&0>=s&&0>=a||(r+=864e5*De($e(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=f(r/1e3),l.seconds=e%60,t=f(e/60),l.minutes=t%60,n=f(t/60),l.hours=n%24,s+=f(n/24),a+=o=f(Me(s)),s-=De($e(o)),i=f(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},sn.get=function(e){return this[(e=x(e))+"s"]()},sn.milliseconds=Xt,sn.seconds=Kt,sn.minutes=Jt,sn.hours=Zt,sn.days=Qt,sn.weeks=function(){return f(this.days()/7)},sn.months=en,sn.years=tn,sn.humanize=function(e){var t,n,i,o,r,s,a,l,c,u,d,f=this.localeData(),p=(n=!e,i=f,o=ue(t=this).abs(),r=nn(o.as("s")),s=nn(o.as("m")),a=nn(o.as("h")),l=nn(o.as("d")),c=nn(o.as("M")),u=nn(o.as("y")),(d=r<on.s&&["s",r]||1===s&&["m"]||s<on.m&&["mm",s]||1===a&&["h"]||a<on.h&&["hh",a]||1===l&&["d"]||l<on.d&&["dd",l]||1===c&&["M"]||c<on.M&&["MM",c]||1===u&&["y"]||["yy",u])[2]=n,d[3]=+t>0,d[4]=i,Ae.apply(null,d));return e&&(p=f.pastFuture(+this,p)),f.postformat(p)},sn.toISOString=Pe,sn.toString=Pe,sn.toJSON=Pe,sn.locale=ge,sn.localeData=ve,sn.toIsoString=q(0,Pe),sn.lang=Dt,$("X",0,0,"unix"),$("x",0,0,"valueOf"),P("x",et),P("X",/[+-]?\d+(\.\d{1,3})?/),N("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),N("x",function(e,t,n){n._d=new Date(p(e))}),e.version="2.10.6",Ie=te,e.fn=jt,e.min=function(){return ne("isBefore",[].slice.call(arguments,0))},e.max=function(){return ne("isAfter",[].slice.call(arguments,0))},e.utc=r,e.unix=function(e){return te(1e3*e)},e.months=function(e,t){return Se(e,t,"months",12,"month")}
9,e.isDate=n,e.locale=y,e.invalid=l,e.duration=ue,e.isMoment=d,e.weekdays=function(e,t){return Se(e,t,"weekdays",7,"day")},e.parseZone=function(){return te.apply(null,arguments).parseZone()},e.localeData=w,e.isDuration=oe,e.monthsShort=function(e,t){return Se(e,t,"monthsShort",12,"month")},e.weekdaysMin=function(e,t){return Se(e,t,"weekdaysMin",7,"day")},e.defineLocale=b,e.weekdaysShort=function(e,t){return Se(e,t,"weekdaysShort",7,"day")},e.normalizeUnits=x,e.relativeTimeThreshold=function(e,t){return void 0!==on[e]&&(void 0===t?on[e]:(on[e]=t,!0))},e}),function(e){var t={i18n:{ar:{months:["Å®ÂŧŮÂÅ®ÂŮ Å§ŮÂÅŤÅ§ŮÂÅ®Â","ŴŨŧÅË","ÅËŰŧÅÄ
","Å®ÂÅ®ÂÅÅŧŮÂ","Å®Â
ŧŮÂÅ®Â","ÅÅËÅ®ÂÅÄ
ŧŮÂ","ÅÅÅ®Â
Å®ÂÅË","ÅËŨ","ÅÅÅ®ÂÅ®ÂÅ®ÂÅ®Â","ÅÅÅ´ÅÄ
Å®ÂŮ Å§ŮÂÅÅÅ®ÂÅ®Â","ÅÅÅ´ÅÄ
Å®ÂŮ Å§ŮÂÅŤÅ§ŮÂÅ®Â","Å®ÂŧŮÂÅ®ÂŮ Å§ŮÂÅÅÅ®ÂÅ®Â"],dayOfWeek:["Å®Â","ÅŤ","ÅÅ¡","ÅŽ","ÅŹ","ÅÅ","Å"]},ro:{months:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],dayOfWeek:["l","ma","mi","j","v","s","d"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeek:["Sen","Sel","Rab","Kam","Jum","Sab","Min"]},bg:{months:["ÄÅ»ÄËÅÂİÅÂĸ","ĤľÄËÅÂÅÂİÅÂĸ","ÄÂİÅÂÅÂ","ÄÂÄżÅÂĸÄÅ¥","ÄÂİÄÅ¡","ÄŽÄËĸ","ÄŽÄťĸ","ÄÂÄËÄÅÅ
9ÂÅÂÅÂ","ÄÄľĿÅÂľğÄËÅÂĸ","ÄÂÄÅÅÂĞğÄËÅÂĸ","ÄÂĞľğÄËÅÂĸ","ÄÂÄľÄÅľğÄËÅÂĸ"],dayOfWeek:["ÄÂÄ´","ÄÂÄË","ÄÂÅÂ","ÄÄÅÂ","ħÅÂ","ÄÂÅÂ","ÄÄÄÄ
"]},fa:{months:["Å®ÂÅÄ
Å®ÂÅÄ
ÅŻŰÂÅ®Â","ŧÅÄ
ÅŻŰÂŨŮÂÅ´ÅÅ","ÅŽÅÄ
ÅŻŧÅÅ»","ÅÅŰÂÅÄ
","Å®Â
ÅÄ
ÅŻŧÅÅ»","Å´ŮÂÅÄ
ŰÂÅ®ÂÅÄ
","Å®Â
Å®ÂÅÄ
","ÅËŨŧŮÂ","ÅËŰÅÄ
","ÅŻŰÂ","ŨŮÂÅ®Â
Å®Â","ŧÅÅÅ®ÂÅ®ÂÅÅ»"],dayOfWeek:["ŰÂÃÅ Å´ŮÂŨŮÂ","ÅŻŮÂÅ´ŮÂŨŮÂ","ÅÅŮ Å´ŮÂŨŮÂ","ÃÂÅ®ÂŧÅÄ
Å´ŮÂŨŮÂ","ŮžŮÂÅŹÅ´ŮÂŨŮÂ","ÅŹŮÂ
ÅšŮÂ","Å´ŮÂŨŮÂ"]},ru:{months:["ÄÅ»ÄËÄËİÅÂÅÂ","ĤľÄËÅÂİÄÅ¥ÅÂ","ÄÂİÅÂÅÂ","ÄÂÄżÅÂÄľÄÅ¥ÅÂ","ÄÂİÄÅ¡","ÄÂÅÂÄËÅÂ","ÄÂÅÂÄÅ¥ÅÂ","ÄÂÄËÄÅÅÂÅÂÅÂ","ÄÄÄľÄËÅÂÅÂÄÄ
ÅÂÅÂ","ÄÂÄÅÅÂÅÂÄÄ
ÅÂÅÂ","ÄÂÄžÅÂÄÄ
ÅÂÅÂ","ÄÂÄľÄÅİÄÄ
ÅÂÅÂ"],dayOfWeek:["ÄÂÅÂÄÅ","ÄÂÄË","ÄÂÅÂ","ÄÄÅÂ","ħÅÂ","ÄÂÅÂ","ÄÄÄÄ
"]},uk:{months:["ÄÄÅÂÅÂÄľÄËÅÂ","ÄÂÅÂÅÂĸÄÅ¡","ÄÂÄľÅÂÄľÄËÄľÄËÅÂ","ÄÂÄËÅÂÅÂÄľÄËÅÂ","ÄËÅÂİÄËÄľÄËÅÂ","ħľÅÂÄËÄľÄËÅÂ","ÄÂĸĿľÄËÅÂ","ÄÄÄľÅÂĿľÄËÅÂ","ÄÂÄľÅÂÄľÅÂÄľÄËÅÂ","ÄÂÄžÄËÅÂÄľÄËÅÂ","ÄÂĸÅÂÅÂĞĿİĴ","ÄÂÅÂÅÂÄ´ÄľÄËÅÂ"],dayOfWeek:["ÄÂÄ´ÄÅ¥","ÄÂÄËÄ´","ÄÂÅÂÅÂ","ÄÄÅÂÄ´","ħÅÂÄË","ÄÂÅÂÄË","ÄÄÄÄ
ÅÂ"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},el:{months:["ÃÂÃÄ
ÃËÃżÄÂ
ÃŹÄÂÃÅ¡ÃżÄÂ","ÃÅÃľÃËÄÂÃżÄÂ
ÃŹÄÂÃÅ¡ÃżÄÂ","ÃÂÃŹÄÂÄÂÃÅ¡ÃżÄÂ","ÃÂÄÂÄÂÃÅ»ÃÅ¥ÃÅ¡ÃżÄÂ","ÃÂÃŹÃÅ¡ÃżÄÂ","ÃÂÃżÄÂÃËÃÅ¡ÃżÄÂ","ÃÂÃżÄÂÃÅ¥ÃÅ¡ÃżÄÂ","ÃÂÄÂÃÅÃżÄÂ
ÄÂÄÂÃżÄÂ","ÃÅÃľÄÂÄÂÃÃźÃËÄÂÃÅ¡ÃżÄÂ","ÃÂÃÅÄÂÄÂÃËÄÂÃÅ¡ÃżÄÂ","ÃÂÃżÃÃźÃËÄÂÃÅ¡ÃżÄÂ","ÃÂÃľÃÅÃÃźÃËÄÂÃÅ¡ÃżÄÂ"],dayOfWeek:["ÃÂÄÂ
ÄÂ","ÃÂÃľÄÂ
","äÄÂÃÅ¡","Ã¤ÃľÄÂ","à ÃľÃź","à ÃÄ
ÄÂ","ÃÅÃÄ
ÃË"]},de:{months:["Januar","Februar","MĤrz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeek:["So","Mo","Di","Mi","Do","Fr","Sa"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeek:["zo","ma","di","wo","do","vr","za"]},tr:{months:["Ocak","ĹÂubat","Mart","Nisan","MayÃÄ
s","Haziran","Temmuz","AÃÂustos","EylÄźl","Ekim","KasÃÄ
m","AralÃÄ
k"],dayOfWeek:["Paz","Pts","Sal","ÄÂar","Per","Cum","Cts"]},fr:{months:["Janvier","FÄÅ vrier","Mars","Avril","Mai","Juin","Juillet","AoÄÅ¥t","Septembre","Octobre","Novembre","DÄÅ cembre"],dayOfWeek:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeek:["Dom","Lun","Mar","MiÄÅ ","Jue","Vie","SÄÄb"]},th:{months:["ŸÄŸÂŸÅŸËŸÂŸÄ","ŸÂŸ¸Å¸ÄŸ ŸËŸÂŸÄ
ŸÂŸÂÅÅ¡Â","ŸÄŸľÅ¸ÂŸËŸÂŸÄ","ÅšŸğŠÅ¸ËŸËŸÂ","ŸÂŸ¤Å¸ŠÅ¸ ŸËŸÂŸÄ","ŸÄŸ´Å¸ÂŸ¸Å¸ÂŸËŸËŸÂ","ŸÂŸÅŸÂŸÂŸËŸÂŸÄ","ŸÅŸ´Å¸ÂŸŤÅ¸ËŸÂŸÄ","ŸÂŸÄ
ŸÂŸËŸËŸËŸÂ","ŸÂŸ¸Å¸ĽÅ¸ËŸÂŸÄ","ŸÂŸ¤Å¸¨Å¸ÂŸ´Å¸ÂŸËŸËŸÂ","ŸÂŸÄ
ŸÂŸ§Å¸ËŸÂŸÄ"],dayOfWeek:["ŸŸË.","ŸÂ.","Ÿ.","ŸÂ.","ŸÂŸ¤.","Ÿ¨.","ŸÅ."]},pl:{months:["styczeÅ","luty","marzec","kwiecieÅ","maj","czerwiec","lipiec","sierpieÅ","wrzesieÅ","październik","listopad","grudzieÅ"],dayOfWeek:["nd","pn","wt","År","cz","pt","sb"]},pt:{months:["Janeiro","Fevereiro","Marħo","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]},ch:{months:["ä¸ÂÄÂÂ","äÅÂÄÂÂ","ä¸ÂÄÂÂ","ĺÂÂÄÂÂ","äÅÂÄÂÂ","ĺÂ
ÄÂÂ","ä¸ÂÄÂÂ","ĺÂ
ŤÄÂÂ","äšÂÄÂÂ","ĺÂÂÄÂÂ","ĺÂÂä¸ÂÄÂÂ","ĺÂÂäÅÂÄÂÂ"],dayOfWeek:["ÄÂĽ","ä¸Â","äÅÂ","ä¸Â","ĺÂÂ","äÅÂ","ĺÂ
"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeek:["SÄÅn","MÄĽn","Tis","Ons","Tor","Fre","LÄÅr"]},kr:{months:["1ÄÂÂ","2ÄÂÂ","3ÄÂÂ","4ÄÂÂ","5ÄÂÂ","6ÄÂÂ","7ÄÂÂ","8ÄÂÂ","9ÄÂÂ","10ÄÂÂ","11ÄÂÂ","12ÄÂÂ"],dayOfWeek:["ÄÂź","ÄÂÂ","ÃÂÂ","ÄÂÂ","ëÅÅ ","ĸÂ","à"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeek:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeek:["Sĸn","Man","Tir","Ons","Tor","Fre","Lĸr"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeek:["Sĸn","Man","Tir","Ons","Tor","Fre","Lĸr"]},ja:{months:["1ÄÂÂ","2ÄÂÂ","3ÄÂÂ","4ÄÂÂ","5ÄÂÂ","6ÄÂÂ","7ÄÂÂ","8ÄÂÂ","9ÄÂÂ","10ÄÂÂ","11ÄÂÂ","12ÄÂÂ"],dayOfWeek:["ÄÂĽ","ÄÂÂ","çÂŤ","İ´","Ĩ","éÂÂ","ĺÂÂ"]},vi:{months:["ThÄÄng 1","ThÄÄng 2","ThÄÄng 3","ThÄÄng 4","ThÄÄng 5","ThÄÄng 6","ThÄÄng 7","ThÄÄng 8","ThÄÄng 9","ThÄÄng 10","ThÄÄng 11","ThÄÄng 12"],dayOfWeek:["CN","T2","T3","T4","T5","T6","T7"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeek:["Ned","Pon","Tor","Sre","ÃÂet","Pet","Sob"]},cs:{months:["Leden","ÄÂnor","BĹÂezen","Duben","KvÃÂten","ÃÂerven","ÃÂervenec","Srpen","ZÄÄĹÂÄ","ĹÂÄjen","Listopad","Prosinec"],dayOfWeek:["Ne","Po","ÄÂt","St","ÃÂt","PÄÄ","So"]},hu:{months:["JanuÄÄr","FebruÄÄr","MÄÄrcius","ÄÂprilis","MÄÄjus","JÄÅnius","JÄÅlius","Augusztus","Szeptember","OktÄÅber","November","December"],dayOfWeek:["Va","HÄÅ ","Ke","Sze","Cs","PÄÅ ","Szo"]}},value:"",lang:"en",format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],yearOffset:0,beforeShowDay:null};Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n,i;for(n=t||0,i=this.length;n<i;n+=1)if(this[n]===e)return n;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t){return this.each(function(){var n,i,o,r,s,a=e(this),l=function(e){var t,n={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n.x=t.clientX,n.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(n.x=e.clientX,n.y=e.clientY),n},c=100,u=!1,d=0,f=0,p=0,h=!1,m=0,g=function(){};e(this).hasClass("xdsoft_scroller_box")||(n=a.children().eq(0),i=a[0].clientHeight,o=n[0].offsetHeight,r=e('<div class="xdsoft_scrollbar"></div>'),s=e('<div class="xdsoft_scroller"></div>'),r.append(s),a.addClass("xdsoft_scroller_box").append(r),g=function(e){var t=l(e).y-d+m;t<0&&(t=0),t+s[0].offsetHeight>p&&(t=p-s[0].offsetHeight),a.trigger("scroll_element.xdsoft_scroller",[c?t/c:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(n){i||a.trigger("resize_scroll.xdsoft_scroller",[t]),d=l(n).y,m=parseInt(s.css("margin-top"),10),p=r[0].offsetHeight,"mousedown"===n.type?(document&&e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("mouseup.xdsoft_scroller",function t(){e([document.body,window]).off("mouseup.xdsoft_scroller",t).off("mousemove.xdsoft_scroller",g).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",g)):(h=!0,n.stopPropagation(),n.preventDefault())}).on("touchmove",function(e){h&&(e.preventDefault(),g(e))}).on("touchend touchcancel",function(e){h=!1,m=0}),a.on("scroll_element.xdsoft_scroller",function(e,t){i||a.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,s.css("margin-top",c*t),setTimeout(function(){n.css("marginTop",-parseInt((n[0].offsetHeight-i)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,l){var u,d;i=a[0].clientHeight,o=n[0].offsetHeight,d=(u=i/o)*r[0].offsetHeight,u>1?s.hide():(s.show(),s.css("height",parseInt(d>10?d:10,10)),c=r[0].offsetHeight-s[0].offsetHeight,!0!==l&&a.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(n.css("marginTop"),10))/(o-i)]))}),a.on("mousewheel",function(e){var t=Math.abs(parseInt(n.css("marginTop"),10));return(t-=20*e.deltaY)<0&&(t=0),a.trigger("scroll_element.xdsoft_scroller",[t/(o-i)]),e.stopPropagation(),!1}),a.on("touchstart",function(e){u=l(e),f=Math.abs(parseInt(n.css("marginTop"),10))}),a.on("touchmove",function(e){if(u){e.preventDefault();var t=l(e);a.trigger("scroll_element.xdsoft_scroller",[(f-(t.y-u.y))/(o-i)])}}),a.on("touchend touchcancel",function(e){u=!1,f=0})),a.trigger("resize_scroll.xdsoft_scroller",[t])})},e.fn.datetimepicker=function(n){var i,o,r,s=17,a=46,l=13,c=27,u=37,d=38,f=39,p=40,h=9,m=116,g=65,v=67,y=86,b=90,w=89,_=!1,x=e.isPlainObject(n)||!n?e.extend(!0,{},t,n):e.extend(!0,{},t),T=0;return i=function(t){var i,o,T,k,S,C=e("<div "+(x.id?'id="'+x.id+'"':"")+" "+(x.style?'style="'+x.style+'"':"")+' class="xdsoft_datetimepicker xdsoft_'+x.theme+" xdsoft_noselect "+(x.weeks?" xdsoft_showweeks":"")+x.className+'"></div>'),D=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),M=e('<div class="xdsoft_datepicker active"></div>'),$=e('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),E=e('<div class="xdsoft_calendar"></div>'),O=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),A=O.find(".xdsoft_time_box").eq(0),P=e('<div class="xdsoft_time_variant"></div>'),I=e('<div class="xdsoft_scrollbar"></div>'),N=(e('<div class="xdsoft_scroller"></div>'),e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>
9')),F=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),L=!1,j=0;function H(){var e,n=!1;return x.startDate?n=r.strToDate(x.startDate):(n=x.value||(t&&t.val&&t.val()?t.val():""))?n=r.strToDateTime(n):x.defaultDate&&(n=r.strToDate(x.defaultDate),x.defaultTime&&(e=r.strtotime(x.defaultTime),n.setHours(e.getHours()),n.setMinutes(e.getMinutes()))),n&&r.isValidDate(n)?C.data("changed",!0):n="",n||0}$.find(".xdsoft_month span").after(N),$.find(".xdsoft_year span").after(F),$.find(".xdsoft_month,.xdsoft_year").on("mousedown.xdsoft",function(t){var n,i,o=e(this).find(".xdsoft_select").eq(0),s=0,a=0,l=o.is(":visible");for($.find(".xdsoft_select").hide(),r.currentTime&&(s=r.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),o[l?"hide":"show"](),n=o.find("div.xdsoft_option"),i=0;i<n.length&&n.eq(i).data("value")!==s;i+=1)a+=n[0].offsetHeight;return o.xdsoftScroller(a/(o.children()[0].offsetHeight-o[0].clientHeight)),t.stopPropagation(),!1}),$.find(".xdsoft_select").xdsoftScroller().on("mousedown.xdsoft",function(e){e.stopPropagation(),e.preventDefault()}).on("mousedown.xdsoft",".xdsoft_option",function(t){var n=r.currentTime.getFullYear();r&&r.currentTime&&r.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),C.trigger("xchange.xdsoft"),x.onChangeMonth&&e.isFunction(x.onChangeMonth)&&x.onChangeMonth.call(C,r.currentTime,C.data("input")),n!==r.currentTime.getFullYear()&&e.isFunction(x.onChangeYear)&&x.onChangeYear.call(C,r.currentTime,C.data("input"))}),C.setOptions=function(n){if(x=e.extend(!0,{},x,n),n.allowTimes&&e.isArray(n.allowTimes)&&n.allowTimes.length&&(x.allowTimes=e.extend(!0,[],n.allowTimes)),n.weekends&&e.isArray(n.weekends)&&n.weekends.length&&(x.weekends=e.extend(!0,[],n.weekends)),!x.open&&!x.opened||x.inline||t.trigger("open.xdsoft"),x.inline&&(L=!0,C.addClass("xdsoft_inline"),t.after(C).hide()),x.inverseButton&&(x.next="xdsoft_prev",x.prev="xdsoft_next"),x.datepicker?M.addClass("active"):M.removeClass("active"),x.timepicker?O.addClass("active"):O.removeClass("active"),x.value&&(t&&t.val&&t.val(x.value),r.setCurrentTime(x.value)),isNaN(x.dayOfWeekStart)?x.dayOfWeekStart=0:x.dayOfWeekStart=parseInt(x.dayOfWeekStart,10)%7,x.timepickerScrollbar||I.hide(),x.minDate&&/^-(.*)$/.test(x.minDate)&&(x.minDate=r.strToDateTime(x.minDate).dateFormat(x.formatDate)),x.maxDate&&/^\+(.*)$/.test(x.maxDate)&&(x.maxDate=r.strToDateTime(x.maxDate).dateFormat(x.formatDate)),$.find(".xdsoft_today_button").css("visibility",x.todayButton?"visible":"hidden"),x.mask){var i=function(e,t){var n=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(n).test(t)};t.off("keydown.xdsoft"),!0===x.mask&&(x.mask=x.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(x.mask)&&(i(x.mask,t.val())||t.val(x.mask.replace(/[0-9]/g,"_")),t.on("keydown.xdsoft",function(n){var o,r,T=this.value,k=n.which;if(k>=48&&k<=57||k>=96&&k<=105||8===k||k===a){for(o=function(e){try{if(document.selection&&document.selection.createRange)return document.selection.createRange().getBookmark().charCodeAt(2)-2;if(e.setSelectionRange)return e.selectionStart}catch(e){return 0}}(this),r=8!==k&&k!==a?String.fromCharCode(96<=k&&k<=105?k-48:k):"_",8!==k&&k!==a||!o||(o-=1,r="_");/[^0-9_]/.test(x.mask.substr(o,1))&&o<x.mask.length&&o>0;)o+=8===k||k===a?-1:1;if(T=T.substr(0,o)+r+T.substr(o+1),""===e.trim(T))T=x.mask.replace(/[0-9]/g,"_");else if(o===x.mask.length)return n.preventDefault(),!1;for(o+=8===k||k===a?0:1;/[^0-9_]/.test(x.mask.substr(o,1))&&o<x.mask.length&&o>0;)o+=8===k||k===a?-1:1;i(x.mask,T)?(this.value=T,function(e,t){if(!(e="string"==typeof e||e instanceof String?document.getElementById(e):e))return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select(),!0}!!e.setSelectionRange&&e.setSelectionRange(t,t)}(this,o)):""===e.trim(T)?this.value=x.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft")}else if(-1!==[g,v,y,b,w].indexOf(k)&&_||-1!==[c,d,p,u,f,m,s,h,l].indexOf(k))return!0;return n.preventDefault(),!1}))}x.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",function(){x.allowBlank&&!e.trim(e(this).val()).length?(e(this).val(null),C.data("xdsoft_datetime").empty()):(Date.parseDate(e(this).val(),x.format)||e(this).val(r.now().dateFormat(x.format)),C.data("xdsoft_datetime").setCurrentTime(e(this).val())),C.trigger("changedatetime.xdsoft")}),x.dayOfWeekStartPrev=0===x.dayOfWeekStart?6:x.dayOfWeekStart-1,C.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},C.data("options",x).on("mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),F.hide(),N.hide(),!1}
9),A.append(P),A.xdsoftScroller(),C.on("afterOpen.xdsoft",function(){A.xdsoftScroller()}),C.append(M).append(O),!0!==x.withoutCopyright&&C.append(D),M.append($).append(E),e(x.parentID).append(C),i=function(){var t=this;t.now=function(e){var n,i,o=new Date;return!e&&x.defaultDate&&(n=t.strToDate(x.defaultDate),o.setFullYear(n.getFullYear()),o.setMonth(n.getMonth()),o.setDate(n.getDate())),x.yearOffset&&o.setFullYear(o.getFullYear()+x.yearOffset),!e&&x.defaultTime&&(i=t.strtotime(x.defaultTime),o.setHours(i.getHours()),o.setMinutes(i.getMinutes())),o},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e){t.currentTime="string"==typeof e?t.strToDateTime(e):t.isValidDate(e)?e:t.now(),C.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(e){return t.currentTime},t.nextMonth=function(){var n,i=t.currentTime.getMonth()+1;return 12===i&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),i=0),n=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),i+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(i),x.onChangeMonth&&e.isFunction(x.onChangeMonth)&&x.onChangeMonth.call(C,r.currentTime,C.data("input")),n!==t.currentTime.getFullYear()&&e.isFunction(x.onChangeYear)&&x.onChangeYear.call(C,r.currentTime,C.data("input")),C.trigger("xchange.xdsoft"),i},t.prevMonth=function(){var n=t.currentTime.getMonth()-1;return-1===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),n=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),x.onChangeMonth&&e.isFunction(x.onChangeMonth)&&x.onChangeMonth.call(C,r.currentTime,C.data("input")),C.trigger("xchange.xdsoft"),n},t.getWeekOfYear=function(e){var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+t.getDay()+1)/7)},t.strToDateTime=function(e){var n,i,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((o=/^(\+|\-)(.*)$/.exec(e))&&(o[2]=Date.parseDate(o[2],x.formatDate)),o&&o[2]?(n=o[2].getTime()-6e4*o[2].getTimezoneOffset(),i=new Date(r.now().getTime()+parseInt(o[1]+"1",10)*n)):i=e?Date.parseDate(e,x.format):t.now(),t.isValidDate(i)||(i=t.now()),i)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?Date.parseDate(e,x.formatDate):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var n=e?Date.parseDate(e,x.formatTime):t.now(!0);return t.isValidDate(n)||(n=t.now(!0)),n},t.str=function(){return t.currentTime.dateFormat(x.format)},t.currentTime=this.now()},r=new i,$.find(".xdsoft_today_button").on("mousedown.xdsoft",function(){C.data("changed",!0),r.setCurrentTime(0),C.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){t.val(r.str()),C.trigger("close.xdsoft")}),$.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,i=!1;!function e(o){r.currentTime.getMonth();t.hasClass(x.next)?r.nextMonth():t.hasClass(x.prev)&&r.prevMonth(),x.monthChangeSpinner&&(i||(n=setTimeout(e,o||100)))}(500),e([document.body,window]).on("mouseup.xdsoft",function t(){clearTimeout(n),i=!0,e([document.body,window]).off("mouseup.xdsoft",t)})}),O.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,i=!1,o=110;!function e(r){var s=A[0].clientHeight,a=P[0].offsetHeight,l=Math.abs(parseInt(P.css("marginTop"),10));t.hasClass(x.next)&&a-s-x.timeHeightInTimePicker>=l?P.css("marginTop","-"+(l+x.timeHeightInTimePicker)+"px"):t.hasClass(x.prev)&&l-x.timeHeightInTimePicker>=0&&P.css("marginTop","-"+(l-x.timeHeightInTimePicker)+"px"),A.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(P.css("marginTop"),10)/(a-s))]),o=o>10?10:o-10,i||(n=setTimeout(e,r||o))}(500),e([document.body,window]).on("mouseup.xdsoft",function t(){clearTimeout(n),i=!0,e([document.body,window]).off("mouseup.xdsoft",t)})}),o=0,C.on("xchange.xdsoft",function(t){clearTimeout(o),o=setTimeout(function(){for(var t,i,o,s,a,l,c,u="",d=new Date(r.currentTime.getFullYear(),r.currentTime.getMonth(),1,12,0,0),f=0,p=r.now(),h=!1,m=!1,g=[],v=!0,y="";d.getDay()!==x.dayOfWeekStart;)d.setDate(d.getDate()-1);for(u+="<table><thead><tr>",x.weeks&&(u+="<th></th>"),t=0;t<7;t+=1)u+="<th>"+x.i18n[x.lang].dayOfWeek[(t+x.dayOfWeekStart)%7]+"</th>";for(u+="</tr></thead>",u+="<tbody>",!1!==x.maxDate&&(h=r.strToDate(x.maxDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate(),23,59,59,999)),!1!==x.minDate&&(m=r.strToDate(x.minDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate()));f<r.currentTime.countDaysInMonth()||d.getDay()!==x.dayOfWeekStart||r.currentTime.getMonth()===d.getMonth();)g=[],f+=1,i=d.getDate(),o=d.getFullYear(),s=d.getMonth(),a=r.getWeekOfYear(d),g.push("xdsoft_date"),l=x.beforeShowDay&&e.isFunction(x.beforeShowDay.call)?x.beforeShowDay.call(C,d):null,(!1!==h&&d>h||!1!==m&&d<m||l&&!1===l[0])&&g.push("xdsoft_disabled"),l&&""!==l[1]&&g.push(l[1]),r.currentTime.getMonth()!==s&&g.push("xdsoft_other_month"),(x.defaultSelect||C.data("changed"))&&r.currentTime.dateFormat(x.formatDate)===d.dateFormat(x.formatDate)&&g.push("xdsoft_current"),p.dateFormat(x.formatDate)===d.dateFormat(x.formatDate)&&g.push("xdsoft_today"),0!==d.getDay()&&6!==d.getDay()&&-1!==x.weekends.indexOf(d.dateFormat(x.formatDate))||g.push("xdsoft_weekend"),x.beforeShowDay&&e.isFunction(x.beforeShowDay)&&g.push(x.beforeShowDay(d)),v&&(u+="<tr>",v=!1,x.weeks&&(u+="<th>"+a+"</th>")),u+='<td data-date="'+i+'" data-month="'+s+'" data-year="'+o+'" class="xdsoft_date xdsoft_day_of_week'+d.getDay()+" "+g.join(" ")+'"><div>'+i+"</div></td>",d.getDay()===x.dayOfWeekStartPrev&&(u+="</tr>",v=!0),d.setDate(i+1);if(u+="</tbody></table>",E.html(u),$.find(".xdsoft_label span").eq(0).text(x.i18n[x.lang].months[r.currentTime.getMonth()]),$.find(".xdsoft_label span").eq(1).text(r.currentTime.getFullYear()),y="",s="",c=function(e,t){var n=r.now();n.setHours(e),e=parseInt(n.getHours(),10),n.setMinutes(t),t=parseInt(n.getMinutes(),10),g=[],
9(!1!==x.maxTime&&r.strtotime(x.maxTime).getTime()<n.getTime()||!1!==x.minTime&&r.strtotime(x.minTime).getTime()>n.getTime())&&g.push("xdsoft_disabled"),(x.initTime||x.defaultSelect||C.data("changed"))&&parseInt(r.currentTime.getHours(),10)===parseInt(e,10)&&(x.step>59||Math[x.roundTime](r.currentTime.getMinutes()/x.step)*x.step===parseInt(t,10))&&(x.defaultSelect||C.data("changed")?g.push("xdsoft_current"):x.initTime&&g.push("xdsoft_init_time")),parseInt(p.getHours(),10)===parseInt(e,10)&&parseInt(p.getMinutes(),10)===parseInt(t,10)&&g.push("xdsoft_today"),y+='<div class="xdsoft_time '+g.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+n.dateFormat(x.formatTime)+"</div>"},x.allowTimes&&e.isArray(x.allowTimes)&&x.allowTimes.length)for(f=0;f<x.allowTimes.length;f+=1)c(r.strtotime(x.allowTimes[f]).getHours(),s=r.strtotime(x.allowTimes[f]).getMinutes());else for(f=0,t=0;f<(x.hours12?12:24);f+=1)for(t=0;t<60;t+=x.step)c((f<10?"0":"")+f,s=(t<10?"0":"")+t);for(P.html(y),n="",f=0,f=parseInt(x.yearStart,10)+x.yearOffset;f<=parseInt(x.yearEnd,10)+x.yearOffset;f+=1)n+='<div class="xdsoft_option '+(r.currentTime.getFullYear()===f?"xdsoft_current":"")+'" data-value="'+f+'">'+f+"</div>";for(F.children().eq(0).html(n),f=0,n="";f<=11;f+=1)n+='<div class="xdsoft_option '+(r.currentTime.getMonth()===f?"xdsoft_current":"")+'" data-value="'+f+'">'+x.i18n[x.lang].months[f]+"</div>";N.children().eq(0).html(n),e(C).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,n,i;x.timepicker&&(P.find(".xdsoft_current").length?e=".xdsoft_current":P.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=A[0].clientHeight,(n=P[0].offsetHeight)-t<(i=P.find(e).index()*x.timeHeightInTimePicker+1)&&(i=n-t),A.trigger("scroll_element.xdsoft_scroller",[parseInt(i,10)/(n-t)])):A.trigger("scroll_element.xdsoft_scroller",[0]))}),T=0,E.on("click.xdsoft","td",function(n){n.stopPropagation(),T+=1;var i=e(this),o=r.currentTime;if(null==o&&(r.currentTime=r.now(),o=r.currentTime),i.hasClass("xdsoft_disabled"))return!1;o.setDate(1),o.setFullYear(i.data("year")),o.setMonth(i.data("month")),o.setDate(i.data("date")),C.trigger("select.xdsoft",[o]),t.val(r.str()),(T>1||!0===x.closeOnDateSelect||0===x.closeOnDateSelect&&!x.timepicker)&&!x.inline&&C.trigger("close.xdsoft"),x.onSelectDate&&e.isFunction(x.onSelectDate)&&x.onSelectDate.call(C,r.currentTime,C.data("input"),n),C.data("changed",!0),C.trigger("xchange.xdsoft"),C.trigger("changedatetime.xdsoft"),setTimeout(function(){T=0},200)}),P.on("click.xdsoft","div",function(t){t.stopPropagation();var n=e(this),i=r.currentTime;if(null==i&&(r.currentTime=r.now(),i=r.currentTime),n.hasClass("xdsoft_disabled"))return!1;i.setHours(n.data("hour")),i.setMinutes(n.data("minute")),C.trigger("select.xdsoft",[i]),C.data("input").val(r.str()),x.inline||C.trigger("close.xdsoft"),x.onSelectTime&&e.isFunction(x.onSelectTime)&&x.onSelectTime.call(C,r.currentTime,C.data("input"),t),C.data("changed",!0),C.trigger("xchange.xdsoft"),C.trigger("changedatetime.xdsoft")}),M.on("mousewheel.xdsoft",function(e){return!x.scrollMonth||(e.deltaY<0?r.nextMonth():r.prevMonth(),!1)}),t.on("mousewheel.xdsoft",function(e){return!x.scrollInput||(!x.datepicker&&x.timepicker?((k=P.find(".xdsoft_current").length?P.find(".xdsoft_current").eq(0).index():0)+e.deltaY>=0&&k+e.deltaY<P.children().length&&(k+=e.deltaY),P.children().eq(k).length&&P.children().eq(k).trigger("mousedown"),!1):x.datepicker&&!x.timepicker?(M.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),t.val&&t.val(r.str()),C.trigger("changedatetime.xdsoft"),!1):void 0)}),C.on("changedatetime.xdsoft",function(t){if(x.onChangeDateTime&&e.isFunction(x.onChangeDateTime)){var n=C.data("input");x.onChangeDateTime.call(C,r.currentTime,n,t),delete x.value,n.trigger("change")}}).on("generate.xdsoft",function(){x.onGenerate&&e.isFunction(x.onGenerate)&&x.onGenerate.call(C,r.currentTime,C.data("input")),L&&(C.trigger("afterOpen.xdsoft"),L=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),k=0,S=function(){var t=C.data("input").offset(),n=t.top+C.data("input")[0].offsetHeight-1,i=t.left,o="absolute";x.fixed?(n-=e(window).scrollTop(),i-=e(window).scrollLeft(),o="fixed"):(n+C[0].offsetHeight>
9e(window).height()+e(window).scrollTop()&&(n=t.top-C[0].offsetHeight+1),n<0&&(n=0),i+C[0].offsetWidth>e(window).width()&&(i=e(window).width()-C[0].offsetWidth)),C.css({left:i,top:n,position:o})},C.on("open.xdsoft",function(t){var n=!0;x.onShow&&e.isFunction(x.onShow)&&(n=x.onShow.call(C,r.currentTime,C.data("input"),t)),!1!==n&&(C.show(),S(),e(window).off("resize.xdsoft",S).on("resize.xdsoft",S),x.closeOnWithoutClick&&e([document.body,window]).on("mousedown.xdsoft",function t(){C.trigger("close.xdsoft"),e([document.body,window]).off("mousedown.xdsoft",t)}))}).on("close.xdsoft",function(t){var n=!0;$.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),x.onClose&&e.isFunction(x.onClose)&&(n=x.onClose.call(C,r.currentTime,C.data("input"),t)),!1===n||x.opened||x.inline||C.hide(),t.stopPropagation()}).data("input",t),j=0,C.data("xdsoft_datetime",r),C.setOptions(x),r.setCurrentTime(H()),t.data("xdsoft_datetimepicker",C).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function(e){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||t.data("xdsoft_datetimepicker").is(":visible")&&x.closeOnInputClick||(clearTimeout(j),j=setTimeout(function(){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||(L=!0,r.setCurrentTime(H()),C.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){this.value;var n,i=t.which;return-1!==[l].indexOf(i)?(n=e("input:visible,textarea:visible"),C.trigger("close.xdsoft"),n.eq(n.index(this)+1).focus(),!1):-1!==[h].indexOf(i)?(C.trigger("close.xdsoft"),!0):void 0})},o=function(t){var n=t.data("xdsoft_datetimepicker");n&&(n.data("xdsoft_datetime",null),n.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft"),t.unmousewheel&&t.unmousewheel())},e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===s&&(_=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===s&&(_=!1)}),this.each(function(){var t,r=e(this).data("xdsoft_datetimepicker");if(r){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),r.trigger("open.xdsoft");break;case"hide":r.trigger("close.xdsoft");break;case"destroy":o(e(this));break;case"reset":this.value=this.defaultValue,this.value&&r.data("xdsoft_datetime").isValidDate(Date.parseDate(this.value,x.format))||r.data("changed",!1),r.data("xdsoft_datetime").setCurrentTime(this.value)}else r.setOptions(n);return 0}"string"!==e.type(n)&&(!x.lazyInit||x.open||x.inline?i(e(this)):(t=e(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function e(n){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||t.data("xdsoft_datetimepicker")||(clearTimeout(T),T=setTimeout(function(){t.data("xdsoft_datetimepicker")||i(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft",e).trigger("open.xdsoft")},100))}))})},e.fn.datetimepicker.defaults=t}(jQuery),function(){var a;a=function(e){function t(t){var s=t||window.event,a=l.call(arguments,1),c=0,d=0,f=0,p=0,h=0,m=0;if((t=e.event.fix(s)).type="mousewheel","detail"in s&&(f=-1*s.detail),"wheelDelta"in s&&(f=s.wheelDelta),"wheelDeltaY"in s&&(f=s.wheelDeltaY),"wheelDeltaX"in s&&(d=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=-1*f,f=0),c=0===f?d:f,"deltaY"in s&&(c=f=-1*s.deltaY),"deltaX"in s&&(d=s.deltaX,0===f&&(c=-1*d)),0!==f||0!==d){if(1===s.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,f*=g,d*=g}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,f*=v,d*=v}if(p=Math.max(Math.abs(f),Math.abs(d)),(!r||r>p)&&(r=p,i(s,p)&&(r/=40)),i(s,p)&&(c/=40,d/=40,f/=40),c=Math[c>=1?"floor":"ceil"](c/r),d=Math[d>=1?"floor":"ceil"](d/r),f=Math[f>=1?"floor":"ceil"](f/r),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();h=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=d,t.deltaY=f,t.deltaFactor=r,t.offsetX=h,t.offsetY=m,t.deltaMode=0,a.unshift(t,c,d,f),o&&clearTimeout(o),o=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function n(){r=null}function i(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,r,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>
9=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=s.length;c;)e.event.fixHooks[s[--c]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=a.length;n;)this.addEventListener(a[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=a.length;n;)this.removeEventListener(a[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery),Date.parseFunctions={count:0},Date.parseRegexes=[],Date.formatFunctions={count:0},Date.prototype.dateFormat=function(e){return"unixtime"==e?parseInt(this.getTime()/1e3):(null==Date.formatFunctions[e]&&Date.createNewFormat(e),this[Date.formatFunctions[e]]())},Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;for(var code="Date.prototype."+funcName+" = function() {return ",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,code+="'"+String.escape(ch)+"' + "):code+=Date.getFormatCode(ch):special=!0;eval(code.substring(0,code.length-3)+";}")},Date.getFormatCode=function(e){switch(e){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(e)+"' + "}},Date.parseDate=function(e,t){if("unixtime"==t)return new Date(isNaN(parseInt(e))?0:1e3*parseInt(e));null==Date.parseFunctions[t]&&Date.createParser(t);var n=Date.parseFunctions[t];return Date[n](e)},Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++,regexNum=Date.parseRegexes.length,currentGroup=1;Date.parseFunctions[format]=funcName;for(var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {",regex="",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,regex+=String.escape(ch)):(obj=Date.formatCodeToRegex(ch,currentGroup),currentGroup+=obj.g,regex+=obj.s,obj.g&&obj.c&&(code+=obj.c)):special=!0;code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}",code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}",Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$"),eval(code)},Date.formatCodeToRegex=function(e,t){switch(e){case"D":return{g:0,c:null,
9s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+t+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(e)}}},Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")},Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0")},Date.prototype.getDayOfYear=function(){var e=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var t=0;t<this.getMonth();++t)e+=Date.daysInMonth[t];return e+this.getDate()},Date.prototype.getWeekOfYear=function(){var e=this.getDayOfYear()+(4-this.getDay()),t=7-new Date(this.getFullYear(),0,1).getDay()+4;return String.leftPad(Math.ceil((e-t)/7)+1,2,"0")},Date.prototype.isLeapYear=function(){var e=this.getFullYear();return!(3&e)&&(e%100||e%400==0&&e)},Date.prototype.getFirstDayOfMonth=function(){var e=(this.getDay()-(this.getDate()-1))%7;return e<0?e+7:e},Date.prototype.getLastDayOfMonth=function(){var e=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return e<0?e+7:e},Date.prototype.getDaysInMonth=function(){return Date.daysInMonth[1]=this.isLeapYear()?29:28,Date.daysInMonth[this.getMonth()]},Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},String.escape=function(e){return e.replace(/('|\\)/g,"\\$1")},String.leftPad=function(e,t,n){var i=new String(e);for(null==n&&(n=" ");i.length<t;)i=n+i;return i},Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31],Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.y2kYear=50,Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"}}(),function(){var e,t;e=this.jQuery||window.jQuery,t=e(window),e.fn.stick_in_parent=function(n){var i,o,r,s,a,l,c,u,d,f,p;for(null==n&&(n={}),p=n.sticky_class,a=n.inner_scrolling,f=n.recalc_every,d=n.parent,u=n.offset_top,c=n.spacer,o=n.bottoming,null==u&&(u=0),null==d&&(d=void 0),null==a&&(a=!0),null==p&&(p="is_stuck"),i=e(document),null==o&&(o=!0),r=function(n,r,s,l,h,m,g,v){var y,b,w,_,x,T,k,S,C,D,M,$;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),x=i.height(),k=n.parent(),null!=d&&(k=k.closest(d)),!k.length)throw"failed to find stick parent";if(y=w=!1,(M=null!=c?c&&n.closest(c):e("<div />"))&&M.css("position",n.css("position")),(S=function(){var e,t,o;if(!v&&(x=i.height(),e=parseInt(k.css("border-top-width"),10),t=parseInt(k.css("padding-top"),10),r=parseInt(k.css("padding-bottom"),10),s=k.offset().top+e+t,l=k.height(),w&&(y=w=!1,null==c&&(n.insertAfter(M),M.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(p),o=!0),h=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-u,m=n.outerHeight(!0),g=n.css("float"),M&&M.css({width:n.outerWidth(!0),height:m,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:g}),o))return $()})(),m!==l)return _=void 0,T=u,D=f,$=function(){var e,d,b,C;if(!v&&(b=!1,null!=D&&(0>=--D&&(D=f,S(),b=!0)),b||i.height()===x||S(),b=t.scrollTop(),null!=_&&(d=b-_),_=b,w?(o&&(C=b+m+T>l+s,y&&!C&&(y=!1,n.css({position:"fixed",bottom:"",top:T}).trigger("sticky_kit:unbottom"))),b<h&&(w=!1,T=u,null==c&&("left"!==g&&"right"!==g||n.insertAfter(M),M.detach()),e={position:"",width:"",top:""},n.css(e).removeClass(p).trigger("sticky_kit:unstick")),a&&(e=t.height(),m+u>e&&!y&&(T-=d,T=Math.max(e-m,T),T=Math.min(u,T),w&&n.css({top:T+"px"})))):b>h&&(w=!0,(e={position:"fixed",top:T}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(e).addClass(p),null==c&&(n.after(M),"left"!==g&&"right"!==g||M.append(n)),n.trigger("sticky_kit:stick")),w&&o&&(null==C&&(C=b+m+T>l+s),!y&&C)))return y=!0,"static"===k.css("position")&&k.css({position:"relative"}),n.css({position:"absolute",bottom:r,top:"auto"}).trigger("sticky_kit:bottom")},C=function(){return S(),$()},b=function(){if(v=!0,t.off("touchmove",$),t.off("scroll",$),t.off("resize",C),e(document.body).off("sticky_kit:recalc",C),n.off("sticky_kit:detach",b),n.removeData("sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),k.position("position",""),w)return null==c&&("left"!==g&&"right"!==g||n.insertAfter(M),M.remove()),n.removeClass(p)},t.on("touchmove",$),t.on("scroll",$),t.on("resize",C),e(document.body).on("sticky_kit:recalc",C),n.on("sticky_kit:detach",b),setTimeout($,0)}},s=0,l=this.length;s<l;s++)n=this[s],r(e(n));return this}}.call(this),function(e,t,n){"use strict";"function"==typeof window.define&&window.define.amd?window.define(n):"undefined"!=typeof module&&module.exports?module.exports=n():t.exports?t.exports=n():t.Fingerprint2=n()}(0,this,function(){"use strict";var e=function(t){if(!(this instanceof e))return new e(t);this.options=this.extend(t,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[],excludeDoNotTrack:!0,excludePixelRatio:!0}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return e.prototype={extend:function(e,t){if(null==e)return t;for(var n in e)null!=e[n]&&t[n]!==e[n]&&(t[n]=e[n]);return t},get:function(e){var t=this,n={data:[],addPreprocessedComponent:function(e){var i=e.value;"function"==typeof t.options.preprocessor&&(i=t.options.preprocessor(e.key,i)),n.data.push({key:e.key,value:i})}};n=this.userAgentKey(n),n=this.languageKey(n),n=this.colorDepthKey(n),n=this.deviceMemoryKey(n),n=this.pixelRatioKey(n),n=this.hardwareConcurrencyKey(n),n=this.screenResolutionKey(n),n=this.availableScreenResolutionKey(n),n=this.timezoneOffsetKey(n),n=this.sessionStorageKey(n),n=this.localStorageKey(n),n=this.indexedDbKey(n),n=this.addBehaviorKey(n),n=this.openDatabaseKey(n),n=this.cpuClassKey(n),n=this.platformKey(n),n=this.doNotTrackKey(n),n=this.pluginsKey(n),n=this.canvasKey(n),n=this.webglKey(n),n=this.webglVendorAndRendererKey(n),n=this.adBlockKey(n),n=this.hasLiedLanguagesKey(n),n=this.hasLiedResolutionKey(n),n=this.hasLiedOsKey(n),n=this.hasLiedBrowser
9Key(n),n=this.touchSupportKey(n),n=this.customEntropyFunction(n),this.fontsKey(n,function(n){var i=[];t.each(n.data,function(e){var t=e.value;t&&"function"==typeof t.join&&(t=t.join(";")),i.push(t)});var o=t.x64hash128(i.join("~~~"),31);return e(o,n.data)})},customEntropyFunction:function(e){return"function"==typeof this.options.customFunction&&e.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),e},userAgentKey:function(e){return this.options.excludeUserAgent||e.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),e},getUserAgent:function(){return navigator.userAgent},languageKey:function(e){return this.options.excludeLanguage||e.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),e},colorDepthKey:function(e){return this.options.excludeColorDepth||e.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),e},deviceMemoryKey:function(e){return this.options.excludeDeviceMemory||e.addPreprocessedComponent({key:"device_memory",value:this.getDeviceMemory()}),e},getDeviceMemory:function(){return navigator.deviceMemory||-1},pixelRatioKey:function(e){return this.options.excludePixelRatio||e.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),e},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(e){return this.options.excludeScreenResolution?e:this.getScreenResolution(e)},getScreenResolution:function(e){var t;return t=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height],e.addPreprocessedComponent({key:"resolution",value:t}),e},availableScreenResolutionKey:function(e){return this.options.excludeAvailableScreenResolution?e:this.getAvailableScreenResolution(e)},getAvailableScreenResolution:function(e){var t;return window.screen.availWidth&&window.screen.availHeight&&(t=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==t&&e.addPreprocessedComponent({key:"available_resolution",value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.addPreprocessedComponent({key:"session_storage",value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.addPreprocessedComponent({key:"local_storage",value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.addPreprocessedComponent({key:"indexed_db",value:1}),e},addBehaviorKey:function(e){return!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior&&e.addPreprocessedComponent({key:"add_behavior",value:1}),e},openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.addPreprocessedComponent({key:"open_database",value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),e},webglKey:function(e){return!this.options.excludeWebGL&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),e},webglVendorAndRendererKey:function(e){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&e.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),e},adBlockKey:function(e){return this.options.excludeAdBlock||e.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),e}
9,hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(e,t){return this.options.excludeFlashFonts?t(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?t(e):void this.loadSwfAndDetectFonts(function(n){e.addPreprocessedComponent({key:"swf_fonts",value:n.join(";")}),t(e)}):t(e)},jsFontsKey:function(e,t){var n=this;return setTimeout(function(){var i=["monospace","sans-serif","serif"],o=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];n.options.extendedJsFonts&&(o=o
vendor: 6,136 bytes, line 9
9.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])
9),o=(o=o.concat(n.options.userDefinedFonts)).filter(function(e,t){return o.indexOf(e)===t});var r=document.getElementsByTagName("body")[0],s=document.createElement("div"),a=document.createElement("div"),l={},c={},u=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},d=function(e){for(var t=!1,n=0;n<i.length;n++)if(t=e[n].offsetWidth!==l[i[n]]||e[n].offsetHeight!==c[i[n]])return t;return t},f=function(){for(var e=[],t=0,n=i.length;t<n;t++){var o=u();o.style.fontFamily=i[t],s.appendChild(o),e.push(o)}return e}();r.appendChild(s);for(var p=0,h=i.length;p<h;p++)l[i[p]]=f[p].offsetWidth,c[i[p]]=f[p].offsetHeight;var m=function(){for(var e,t,n,r={},s=0,l=o.length;s<l;s++){for(var c=[],d=0,f=i.length;d<f;d++){var p=(e=o[s],t=i[d],n=void 0,(n=u()).style.fontFamily="'"+e+"',"+t,n);a.appendChild(p),c.push(p)}r[o[s]]=c}return r}();r.appendChild(a);for(var g=[],v=0,y=o.length;v<y;v++)d(m[o[v]])&&g.push(o[v]);r.removeChild(a),r.removeChild(s),e.addPreprocessedComponent({key:"js_fonts",value:g}),t(e)},1)},pluginsKey:function(e){return this.options.excludePlugins||(this.isIE()?this.options.excludeIEPlugins||e.addPreprocessedComponent({key:"ie_plugins",value:this.getIEPlugins()}):e.addPreprocessedComponent({key:"regular_plugins",value:this.getRegularPlugins()})),e},getRegularPlugins:function(){var e=[];if(navigator.plugins)for(var t=0,n=navigator.plugins.length;t<n;t++)navigator.plugins[t]&&e.push(navigator.plugins[t]);return this.pluginsShouldBeSorted()&&(e=e.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),this.map(e,function(e){var t=this.map(e,function(e){return[e.type,e.suffixes].join("~")}).join(",");return[e.name,e.description,t].join("::")},this)},getIEPlugins:function(){var e=[];return(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window)&&(e=this.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],function(e){try{return new window.ActiveXObject(e),e}catch(e){return null}})),navigator.plugins&&(e=e.concat(this.getRegularPlugins())),e},pluginsShouldBeSorted:function(){for(var e=!1,t=0,n=this.options.sortPluginsFor.length;t<n;t++){var i=this.options.sortPluginsFor[t];if(navigator.userAgent.match(i)){e=!0;break}}return e},touchSupportKey:function(e){return this.options.excludeTouchSupport||e.addPreprocessedComponent({key:"touch_support",value:this.getTouchSupport()}),e},hardwareConcurrencyKey:function(e){return this.options.excludeHardwareConcurrency||e.addPreprocessedComponent({key:"hardware_concurrency",value:this.getHardwareConcurrency()}),e},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},hasLocalStorage:function(){try{return!!window.localStorage}catch(e){return!0}},hasIndexedDB:function(){try{return!!window.indexedDB}catch(e){return!0}},getHardwareConcurrency:function(){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:"unknown"},getNavigatorCpuClass:function(){return navigator.cpuClass?navigator.cpuClass:"unknown"},getNavigatorPlatform:function(){return navigator.platform?navigator.platform:"unknown"},getDoNotTrack:function(){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:"unknown"},getTouchSupport:function(){var e=0,t=!1;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){}return[e,t,"ontouchstart"in window]},getCanvasFp:function(){var e=[],t=document.createElement("canvas");t.width=2e3,t.height=200,t.style.display="inline";var n=t.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),e.push("canvas winding:"+(!1===n.isPointInPath(
95,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",this.options.dontUseFakeFontInCanvas?n.font="11pt Arial":n.font="11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, ð",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, ð",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),t.toDataURL&&e.push("canvas fp:"+t.toDataURL()),e.join("~")},getWebglFp:function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=this.getWebglCanvas()))return null;var n=[],i=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,i);var o=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,o,e.STATIC_DRAW),i.itemSize=3,i.numItems=3;var r=e.createProgram(),s=e.createShader(e.VERTEX_SHADER);e.shaderSource(s,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(s);var a=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(a,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(a),e.attachShader(r,s),e.attachShader(r,a),e.linkProgram(r),e.useProgram(r),r.vertexPosAttrib=e.getAttribLocation(r,"attrVertex"),r.offsetUniform=e.getUniformLocation(r,"uniformOffset"),e.enableVertexAttribArray(r.vertexPosArray),e.vertexAttribPointer(r.vertexPosAttrib,i.itemSize,e.FLOAT,!1,0,0),e.uniform2f(r.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,i.numItems);try{n.push(e.canvas.toDataURL())}catch(e){}n.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),n.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),n.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),n.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),n.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),n.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),n.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),n.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),n.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(e)),n.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),n.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),n.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),n.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),n.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),n.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),n.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),n.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),n.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),n.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),n.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),n.push("webgl red bits:"+e.getParameter(e.RED_BITS)),n.push("webgl renderer:"+e.getParameter(e.RENDERER)),n.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),n.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),n.push("webgl vendor:"+e.getParameter(e.VENDOR)),n.push("webgl version:"+e.getParameter(e.VERSION));try{var l=e.getExtension("WEBGL_debug_renderer_info");l&&(n.push("webgl unmasked vendor:"+e.getParameter(l.UNMASKED_VENDOR_WEBGL)),n.push("webgl unmasked renderer:"+e.getParameter(l.UNMASKED_RENDERER_WEBGL)))}catch(e){}return e.getShaderPrecisionFormat?(n.push("webgl vertex shader high float precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision),n.push("webgl vertex shader high float precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).rangeMin),n.push("webgl vertex shader high float precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).rangeMax),n.push("webgl vertex shader medium float precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision),n.push("webgl vertex shader medium float precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).rangeMin),n.push("webgl vertex shader medium float precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).rangeMax),n.push("webgl vertex shader low float precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_FLOAT).precision),n.push("webgl vertex shader low float precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_FLOAT).rangeMin),n.push("webgl vertex shader low float precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_FLOAT).rangeMax),n.push("webgl fragment shader high float precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision),n.push("webgl fragment shader high float precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).rangeMin),n.push("webgl fragment shader high float precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).rangeMax),n.push("webgl fragment shader medium float precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision),n.push("webgl fragment shader medium float precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).rangeMin),n.push("webgl fragment shader medium float precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).rangeMax),n.push("webgl fragment shader low float precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_FLOAT).precision),n.push("webgl fragment shader low float precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_FLOAT).rangeMin),n.push("webgl fragment shader low float precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_FLOAT).rangeMax),n.push("webgl vertex shader high int precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_INT).precision),n.push("webgl vertex shader high int precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_INT).rangeMin),n.push("webgl vertex shader high int precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_INT).rangeMax),n.push("webgl vertex shader medium int precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_INT).precision),n.push("webgl vertex shader medium int precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_INT).rangeMin),n.push("webgl vertex shader medium int precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_INT).rangeMax),n.push("webgl vertex shader low int precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_INT).precision),n.push("webgl vertex shader low int precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_INT).rangeMin),n.push("webgl vertex shader low int precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_INT).rangeMax),n.push("webgl fragment shader high int precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_INT).precision),n.push("webgl fragment shader high int precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_INT).rangeMin),n.push("webgl fragment shader high int precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_INT).rangeMax),n.push("webgl fragment shader medium int precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_INT).precision),n.push("webgl fragment shader medium int precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_INT).rangeMin),n.push("webgl fragment shader medium int precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_INT).rangeMax),n.push("webgl fragment shader low int precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_INT).precision),n.push("webgl fragment shader low int precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_INT).rangeMin),n.push("webgl fragment shader low int precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_INT).rangeMax),n.join("~")):n.join("~")},getWebglVendorAndRenderer:function(){try{var e=this.getWebglCanvas(),t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(e){return null}},getAdBlock:function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t},getHasLiedLanguages:function(){if(void 0!==navigator.languages)try{if
9(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1},getHasLiedResolution:function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},getHasLiedOs:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,i=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return i.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(i.indexOf("linux")>=0||i.indexOf("android")>=0||i.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(i.indexOf("mac")>=0||i.indexOf("ipad")>=0||i.indexOf("ipod")>=0||i.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e},getHasLiedBrowser:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var i,o=eval.toString().length;if(37===o&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===o&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===o&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(e){try{e.toSource(),i=!0}catch(e){i=!1}}return!(!i||"Firefox"===e||"Other"===e)},isCanvasSupported:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var e=this.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return void 0!==window.swfobject},hasMinFlashInstalled:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var e=document.createElement("div");e.setAttribute("id",this.options.swfContainerId),document.body.appendChild(e)},loadSwfAndDetectFonts:function(e){var t="___fp_swf_loaded";window[t]=function(t){e(t)};var n=this.options.swfContainerId;this.addFlashDivNode();var i={onReady:t};window.swfobject.embedSWF(this.options.swfPath,n,"1","1","9.0.0",!1,i,{allowScriptAccess:"always",menu:"false"},{})},getWebglCanvas:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t},each:function(e,t,n){if(null!==e)if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,n);else if(e.length===+e.length){for(var i=0,o=e.length;i<o;i++)if(t.call(n,e[i],i,e)==={})return}else for(var r in e)if(e.hasOwnProperty(r)&&t.call(n,e[r],r,e)==={})return},map:function(e,t,n){var i=[];return null==e?i:this.nativeMap&&e.map===this.nativeMap?e.map(t,n):(this.each(e,function(e,o,r){i[i.length]=t.call(n,e,o,r)}),i)},x64Add:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},x64Multiply:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},x64Rotl:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},x64LeftShift:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},x64Xor:function(e,t){return[e[0]^t[0],e[1]^t[1]]},x64Fmix:function(e){return e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){t=t||0;for(var n=(e=e||"").length%16,i=e.length-n,o=[0,t],r=[0,t],s=[0,0],a=[0,0],l=[2277735313,289559509],c=[1291169091,658871167],u=0;u<i;u+=16)s=[255&e.charCodeAt(u+4)|(255&e.charCodeAt(u+5))<<8|(255&e.charCodeAt(u+6))<<16|(255&e.charCodeAt(u+7))<<24,255&e.charCodeAt(u)|(255&e.charCodeAt(u+1))<<8|(255&e.charCodeAt(u+2))<<16|(255&e.charCodeAt(u+3))<<24],a=[255&e.charCodeAt(u+12)|(255&e.charCodeAt(u+13))<<8|(255&e.charCodeAt(u+14))<<16|(255&e.charCodeAt(u+15))<<24,255&e.charCodeAt(u+8)|(255&e.charCodeAt(u+9))<<8|(255&e.charCodeAt(u+10))<<16|(255&e.charCodeAt(u+11))<<24],s=this.x64Multiply(s,l),s=this.x64Rotl(s,31),s=this.x64Multiply(s,c),o=this.x64Xor(o,s),o=this.x64Rotl(o,27),o=this.x64Add(o,r),o=this.x64Add(this.x64Multiply(o,[0,5]),[0,1390208809]),a=this.x64Multiply(a,c),a=this.x64Rotl(a,33),a=this.x64Multiply(a,l),r=this.x64Xor(r,a),r=this.x64Rotl(r,31),r=this.x64Add(r,o),r=this.x64Add(this.x64Multiply(r,[0,5]),[0,944331445]);switch(s=[0,0],a=[0,0],n){case 15:a=this.x64Xor(a,this.x64LeftShift([0,e.charCodeAt(u+14)],48));case 14:a=this.x64Xor(a,this.x64LeftShift([0,e.charCodeAt(u+13)],40));case 13:a=this.x64Xor(a,this.x64LeftShift([0,e.charCodeAt(u+12)],32));case 12:a=this.x64Xor(a,this.x64LeftShift([0,e.charCodeAt(u+11)],24));case 11:a=this.x64Xor(a,this.x64LeftShift([0,e.charCodeAt(u+10)],16));case 10:a=this.x64Xor(a,this.x64LeftShift([0,e.charCodeAt(u+9)],8));case 9:a=this.x64Xor(a,[0,e.charCodeAt(u+8)]),a=this.x64Multiply(a,c),a=this.x64Rotl(a,33),a=this.x64Multiply(a,l),r=this.x64Xor(r,a);case 8:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+7)],56));case 7:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+6)],48));case 6:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+5)],40));case 5:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+4)],32));case 4:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+3)],24));case 3:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+2)],16));case 2:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+1)],8));case 1:s=this.x64Xor(s,[0,e.charCodeAt(u)]),s=this.x64Multiply(s,l),s=this.x64Rotl(s,31),s=this.x64Multiply(s,c),o=this.x64Xor(o,s)}return o=this.x64Xor(o,[0,e.length]),r=this.x64Xor(r,[0,e.length]),o=this.x64Add(o,r),r=this.x64Add(r,o),o=this.x64Fmix(o),r=this.x64Fmix(r),o=this.x64Add(o,r),r=this.x64Add(r,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(r[0]>>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)}},e.VERSION="1.8.0",e}), 10/*! hellojs v1.10.1 | (c) 2012-2016 Andrew Dodson | MIT https://ado
10dson.com/hello.js/LICENSE */ 11Object.create||(Object.create=function(){function e(){}return function(t){if(1!=arguments.length)throw new Error("Object.create implementation only accepts one parameter.");return e.prototype=t,new e}}()),Object.keys||(Object.keys=function(e,t,n){for(t in n=[],e)n.hasOwnProperty.call(e,t)&&n.push(t);return n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=arguments.length>=2?arguments[1]:void 0,o=0;n>o;o++)o in t&&e.call(i,t[o],o,t);return this}),Array.prototype.filter||(Array.prototype.filter=function(e,t){var n=[];return this.forEach(function(i,o,r){e.call(t||void 0,i,o,r)&&n.push(i)}),n}),Array.prototype.map||(Array.prototype.map=function(e,t){var n=[];return this.forEach(function(i,o,r){n.push(e.call(t||void 0,i,o,r))}),n}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),"object"!=typeof window||"object"!=typeof window.location||window.location.assign||(window.location.assign=function(e){window.location=e}),Function.prototype.bind||(Function.prototype.bind=function(e){function t(){}if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var n=[].slice,i=n.call(arguments,1),o=this,r=function(){return o.apply(this instanceof t?this:e||window,i.concat(n.call(arguments)))};return t.prototype=this.prototype,r.prototype=new t,r});var hello=function(e){return hello.use(e)};hello.utils={extend:function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(e instanceof Object&&t instanceof Object&&e!==t)for(var n in t)e[n]=hello.utils.extend(e[n],t[n]);else e=t}),e}},hello.utils.extend(hello,{settings:{redirect_uri:window.location.href.split("#")[0],response_type:"token",display:"popup",state:"",oauth_proxy:"https://auth-server.herokuapp.com/proxy",timeout:2e4,popup:{resizable:1,scrollbars:1,width:500,height:550},default_service:null,force:null,page_uri:window.location.href},services:{},use:function(e){var t=Object.create(this);return t.settings=Object.create(this.settings),e&&(t.settings.default_service=e),t.utils.Event.call(t),t},init:function(e,t){var n=this.utils;if(!e)return this.services;for(var i in e)e.hasOwnProperty(i)&&"object"!=typeof e[i]&&(e[i]={id:e[i]});for(i in n.extend(this.services,e),this.services)this.services.hasOwnProperty(i)&&(this.services[i].scope=this.services[i].scope||{});return t&&(n.extend(this.settings,t),"redirect_uri"in t&&(this.settings.redirect_uri=n.url(t.redirect_uri).href)),this},login:function(){function e(e,t){hello.emit(e,t)}function t(e){return e}function n(e){return!!e}var i,o=this,r=o.utils,s=r.error,a=r.Promise(),l=r.args({network:"s",options:"o",callback:"f"},arguments),c=r.diffKey(l.options,o.settings),u=l.options=r.merge(o.settings,l.options||{});if(u.popup=r.merge(o.settings.popup,l.options.popup||{}),l.network=l.network||o.settings.default_service,a.proxy.then(l.callback,l.callback),a.proxy.then(e.bind(this,"auth.login auth"),e.bind(this,"auth.failed auth")),"string"!=typeof l.network||!(l.network in o.services))return a.reject(s("invalid_network","The provided network was not recognized"));var d=o.services[l.network],f=r.globalEvent(function(e){var t;(t=e?JSON.parse(e):s("cancelled","The authentication was not completed")).error?a.reject(t):(r.store(t.network,t),a.fulfill({network:t.network,authResponse:t}))}),p=r.url(u.redirect_uri).href,h=d.oauth.response_type||u.response_type;/\bcode\b/.test(h)&&!d.oauth.grant&&(h=h.replace(/\bcode\b/,"token")),l.qs=r.merge(c,{client_id:encodeURIComponent(d.id),response_type:encodeURIComponent(h),redirect_uri:encodeURIComponent(p),display:u.display,state:{client_id:d.id,network:l.network,display:u.display,callback:f,state:u.state,redirect_uri:p}});var m=r.store(l.network),g=/[,\s]+/,v=[];if((u.scope&&v.push(u.scope.toString()),"basic"in d.scope&&v.push("basic"),m&&"scope"in m&&m.scope instanceof String&&v.push(m.scope),v=v.join(",").split(g),v=r.unique(v).filter(n),l.qs.state.scope=v.join(","),v=(v=v.map(function(e){if(e in d.scope)return d.scope[e];for(var t in o.services){var n=o.services[t].scope;if(n&&e in n)return""}return e})).join(",").split(g),v=r.unique(v).filter(n),l.qs.scope=v.join(d.scope_delim||","),!1===u.force&&m&&"access_token"in m&&m.access_token&&"expires"in m&&m.expires>(new Date).getTime()/1e3)&&0===r.diff((m.scope||"").split(g),(l.qs.state.scope||"").split(g)).length)return a.fulfill({unchanged:!0,network:l.network,authResponse:m}),a;if("page"===u.display&&u.page_uri&&(l.qs.state.page_uri=r.url(u.page_uri).href),"login"in d&&"function"==typeof d.login&&d.login(l),(!/\btoken\b/.test(h)||parseInt(d.oauth.version,10)<2||"none"===u.display&&d.oauth.grant&&m&&m.refresh_token)&&(l.qs.state.oauth=d.oauth,l.qs.state.oauth_proxy=u.oauth_proxy),l.qs.state=encodeURIComponent(JSON.stringify(l.qs.state)),1===parseInt(d.oauth.version,10)?i=r.qs(u.oauth_proxy,l.qs,t):"none"===u.display&&d.oauth.grant&&m&&m.refresh_token?(l.qs.refresh_token=m.refresh_token,i=r.qs(u.oauth_proxy,l.qs,t)):i=r.qs(d.oauth.auth,l.qs,t),e("auth.init",l),"none"===u.display)r.iframe(i,p);else if("popup"===u.display)var y=r.popup(i,p,u.popup),b=setInterval(function(){if((!y||y.closed)&&(clearInterval(b),!a.state)){var e=s("cancelled","Login has been cancelled");y||(e=s("blocked","Popup was blocked")),e.network=l.network,a.reject(e)}},100);else window.location=i;return a.proxy},logout:function(){function e(e,t){hello.emit(e,t)}var t=this,n=t.utils,i=n.error,o=n.Promise(),r=n.args({name:"s",options:"o",callback:"f"},arguments);if(r.options=r.options||{},o.proxy.then(r.callback,r.callback),o.proxy.then(e.bind(this,"auth.logout auth"),e.bind(this,"error")),r.name=r.name||this.settings.default_service,r.authResponse=n.store(r.name),!r.name||r.name in t.services)if(r.name&&r.authResponse){var s=function(e){n.store(r.name,null),o.fulfill(hello.utils.merge({network:r.name},e||{}))},a={};if(r.options.force){var l=t.services[r.name].logout;if(l)if("function"==typeof l&&(l=l(s,r)),"string"==typeof l)n.iframe(l),a.force=null,a.message="Logout success on providers site was indeterminate";else if(void 0===l)return o.proxy}s(a)}else o.reject(i("invalid_session","There was no session to remove"));else o.reject(i("invalid_network","The network was unrecognized"));return o.proxy},getAuthResponse:function(e){return(e=e||this.settings.default_service)&&e in this.services&&this.utils.store(e)||null},events:{}}),hello.utils.extend(hello.utils,{error:function(e,t){return{error:{code:e,message:t}}},qs:function(e,t,n){if(t)for(var i in n=n||encodeURIComponent,t){var o=new RegExp("([\\?\\&])"+i+"=[^\\&]*");e.match(o)&&(e=e.replace(o,"$1"+i+"="+n(t[i])),delete t[i])}return this.isEmpty(t)?e:e+(e.indexOf("?")>-1?"&":"?")+this.param(t,n)},param:function(e,t){var n,i,o={};if("string"==typeof e){if(t=t||decodeURIComponent,i=e.replace(/^[\#\?]/,"").match(/([^=\/\&]+)=([^\&]+)/g))for(var r=0;r<i.length;r++)o[(n=i[r].match(/([^=]+)=(.*)/))[1]]=t(n[2]);return o}t=t||encodeURIComponent;var s=e;for(var a in o=[],s)s.hasOwnProperty(a)&&s.hasOwnProperty(a)&&o.push([a,"?"===s[a]?"?":t(s[a]
11)].join("="));return o.join("&")},store:function(){for(var e,t=["localStorage","sessionStorage"],n=-1,i="test";t[++n];)try{(e=window[t[n]]).setItem(i+n,n),e.removeItem(i+n);break}catch(t){e=null}if(!e){var o=null;e={getItem:function(e){e+="=";for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var i=t[n].replace(/(^\s+|\s+$)/,"");if(i&&0===i.indexOf(e))return i.substr(e.length)}return o},setItem:function(e,t){o=t,document.cookie=e+"="+t}},o=e.getItem("hello")}return function(t,n,i){var o,r=function(){var t={};try{t=JSON.parse(e.getItem("hello"))||{}}catch(e){}return t}();if(t&&void 0===n)return r[t]||null;if(t&&null===n)try{delete r[t]}catch(e){r[t]=null}else{if(!t)return r;r[t]=n}return o=r,e.setItem("hello",JSON.stringify(o)),r||null}}(),append:function(e,t,n){var i="string"==typeof e?document.createElement(e):e;if("object"==typeof t)if("tagName"in t)n=t;else for(var o in t)if(t.hasOwnProperty(o))if("object"==typeof t[o])for(var r in t[o])t[o].hasOwnProperty(r)&&(i[o][r]=t[o][r]);else"html"===o?i.innerHTML=t[o]:/^on/.test(o)?i[o]=t[o]:i.setAttribute(o,t[o]);return"body"===n?function e(){document.body?document.body.appendChild(i):setTimeout(e,16)}():"object"==typeof n?n.appendChild(i):"string"==typeof n&&document.getElementsByTagName(n)[0].appendChild(i),i},iframe:function(e){this.append("iframe",{src:e,style:{position:"absolute",left:"-1000px",bottom:0,height:"1px",width:"1px"}},"body")},merge:function(){var e=Array.prototype.slice.call(arguments);return e.unshift({}),this.extend.apply(null,e)},args:function(e,t){var n={},i=0,o=null,r=null;for(r in e)if(e.hasOwnProperty(r))break;if(1===t.length&&"object"==typeof t[0]&&"o!"!=e[r])for(r in t[0])if(e.hasOwnProperty(r)&&r in e)return t[0];for(r in e)if(e.hasOwnProperty(r))if(o=typeof t[i],"function"==typeof e[r]&&e[r].test(t[i])||"string"==typeof e[r]&&(e[r].indexOf("s")>-1&&"string"===o||e[r].indexOf("o")>-1&&"object"===o||e[r].indexOf("i")>-1&&"number"===o||e[r].indexOf("a")>-1&&"object"===o||e[r].indexOf("f")>-1&&"function"===o))n[r]=t[i++];else if("string"==typeof e[r]&&e[r].indexOf("!")>-1)return!1;return n},url:function(e){if(e){if(window.URL&&URL instanceof Function&&0!==URL.length)return new URL(e,window.location);var t=document.createElement("a");return t.href=e,t.cloneNode(!1)}return window.location},diff:function(e,t){return t.filter(function(t){return-1===e.indexOf(t)})},diffKey:function(e,t){if(e||!t){var n={};for(var i in e)i in t||(n[i]=e[i]);return n}return e},unique:function(e){return Array.isArray(e)?e.filter(function(t,n){return e.indexOf(t)===n}):[]},isEmpty:function(e){if(!e)return!0;if(Array.isArray(e))return!e.length;if("object"==typeof e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},Promise:function(){var e=function(t){return this instanceof e?(this.id="Thenable/1.0.6",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},void("function"==typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this)))):new e(t)};e.prototype={fulfill:function(e){return t(this,1,"fulfillValue",e)},reject:function(e){return t(this,2,"rejectReason",e)},then:function(t,i){var r=this,s=new e;return r.onFulfilled.push(o(t,s,"fulfill")),r.onRejected.push(o(i,s,"reject")),n(r),s.proxy}};var t=function(e,t,i,o){return 0===e.state&&(e.state=t,e[i]=o,n(e)),e},n=function(e){1===e.state?i(e,"onFulfilled",e.fulfillValue):2===e.state&&i(e,"onRejected",e.rejectReason)},i=function(e,t,n){if(0!==e[t].length){var i=e[t];e[t]=[];var o=function(){for(var e=0;e<i.length;e++)i[e](n)};"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(o):"function"==typeof setImmediate?setImmediate(o):setTimeout(o,0)}},o=function(e,t,n){return function(i){if("function"!=typeof e)t[n].call(t,i);else{var o;try{o=e(i)}catch(e){return void t.reject(e)}r(t,o)}}},r=function(e,t){if(e!==t&&e.proxy!==t){var n;if("object"==typeof t&&null!==t||"function"==typeof t)try{n=t.then}catch(t){return void e.reject(t)}if("function"!=typeof n)e.fulfill(t);else{var i=!1;try{n.call(t,function(n){i||(i=!0,n===t?e.reject(new TypeError("circular thenable chain")):r(e,n))},function(t){i||(i=!0,e.reject(t))})}catch(t){i||e.reject(t)}}}else e.reject(new TypeError("cannot resolve promise with itself"))};return e}(),Event:function(){var e=/[\s\,]+/;return this.parent={events:this.events,findEvents:this.findEvents,parent:this.parent,utils:this.utils},this.events={},this.on=function(t,n){if(n&&"function"==typeof n)for(var i=t.split(e),o=0;o<i.length;o++)this.events[i[o]]=[n].concat(this.events[i[o]]||[]);return this},this.off=function(e,t){return this.findEvents(e,function(e,n){t&&this.events[e][n]!==t||(this.events[e][n]=null)}),this},this.emit=function(e){var t=Array.prototype.slice.call(arguments,1
11);t.push(e);for(var n=function(n,i){t[t.length-1]="*"===n?e:n,this.events[n][i].apply(this,t)},i=this;i&&i.findEvents;)i.findEvents(e+",*",n),i=i.parent;return this},this.emitAfter=function(){var e=this,t=arguments;return setTimeout(function(){e.emit.apply(e,t)},0),this},this.findEvents=function(t,n){var i=t.split(e);for(var o in this.events)if(this.events.hasOwnProperty(o)&&i.indexOf(o)>-1)for(var r=0;r<this.events[o].length;r++)this.events[o][r]&&n.call(this,o,r)},this},globalEvent:function(e,t){return t=t||"_hellojs_"+parseInt(1e12*Math.random(),10).toString(36),window[t]=function(){try{e.apply(this,arguments)&&delete window[t]}catch(e){}},t},popup:function(e,t,n){var i=document.documentElement;if(n.height){var o=void 0!==window.screenTop?window.screenTop:screen.top,r=screen.height||window.innerHeight||i.clientHeight;n.top=parseInt((r-n.height)/2,10)+o}if(n.width){var s=void 0!==window.screenLeft?window.screenLeft:screen.left,a=screen.width||window.innerWidth||i.clientWidth;n.left=parseInt((a-n.width)/2,10)+s}var l=[];Object.keys(n).forEach(function(e){var t=n[e];l.push(e+(null!==t?"="+t:""))});var c=function(e){var n=window.open(e,"_blank",l.join(","));try{if(n&&n.addEventListener){var i=hello.utils.url(t),o=i.origin||i.protocol+"//"+i.hostname;n.addEventListener("loadstart",function(e){var t=e.url;if(0===t.indexOf(o)){var i=hello.utils.url(t),r={location:{assign:function(e){n.addEventListener("exit",function(){setTimeout(function(){c(e)},1e3)})},search:i.search,hash:i.hash,href:i.href},close:function(){n.close&&n.close()}};hello.utils.responseHandler(r,window),r.close()}})}}catch(e){}return n&&n.focus&&n.focus(),n};return-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&(e=t+"#oauth_redirect="+encodeURIComponent(encodeURIComponent(e))),c(e)},responseHandler:function(e,t){function n(e,t,n){var o=e.callback,s=e.network;if(r.store(s,e),!("display"in e)||"page"!==e.display){if(n&&o&&o in n){try{delete e.callback}catch(e){}r.store(s,e);var a=JSON.stringify(e);try{n[o](a)}catch(e){}}i()}}function i(){if(e.frameElement)t.document.body.removeChild(e.frameElement);else{try{e.close()}catch(e){}e.addEventListener&&e.addEventListener("load",function(){e.close()})}}var o,r=this,s=e.location;if((o=r.param(s.search))&&o.state&&(o.code||o.oauth_token)){var a=JSON.parse(o.state);o.redirect_uri=a.redirect_uri||s.href.replace(/[\?\#].*$/,"");var l=a.oauth_proxy+"?"+r.param(o);s.assign(l)}else if((o=r.merge(r.param(s.search||""),r.param(s.hash||"")))&&"state"in o){try{var c=JSON.parse(o.state);r.extend(o,c)}catch(e){}if("access_token"in o&&o.access_token&&o.network)o.expires_in&&0!==parseInt(o.expires_in,10)||(o.expires_in=0),o.expires_in=parseInt(o.expires_in,10),o.expires=(new Date).getTime()/1e3+(o.expires_in||31536e3),n(o,0,t);else if("error"in o&&o.error&&o.network)o.error={code:o.error,message:o.error_message||o.error_description},n(o,0,t);else if(o.callback&&o.callback in t){var u=!(!("result"in o)||!o.result)&&JSON.parse(o.result);t[o.callback](u),i()}o.page_uri&&s.assign(o.page_uri)}else if("oauth_redirect"in o)return void s.assign(decodeURIComponent(o.oauth_redirect))}}),hello.utils.Event.call(hello),function(e){var t={},n={};e.on("auth.login, auth.logout",function(n){n&&"object"==typeof n&&n.network&&(t[n.network]=e.utils.store(n.network)||{})}),function i(){var o=(new Date).getTime()/1e3,r=function(t){e.emit("auth."+t,{network:s,authResponse:a})};for(var s in e.services)if(e.services.hasOwnProperty(s)){if(!e.services[s].id)continue;var a=e.utils.store(s)||{},l=e.services[s],c=t[s]||{};if(a&&"callback"in a){var u=a.callback;try{delete a.callback}catch(e){}e.utils.store(s,a);try{window[u](a)}catch(e){}}if(a&&"expires"in a&&a.expires<o){var d=l.refresh||a.refresh_token;d&&(!(s in n)||n[s]<o)?(e.emit("notice",s+" has expired trying to resignin"),e.login(s,{display:"none",force:!1}),n[s]=o+600):d||s in n||(r("expired"),n[s]=!0);continue}if(c.access_token===a.access_token&&c.expires===a.expires)continue;!a.access_token&&c.access_token?r("logout"):a.access_token&&!c.access_token?r("login"):a.expires!==c.expires&&r("update"),t[s]=a,s in n&&delete n[s]}setTimeout(i,1e3)}()}(hello),hello.api=function(){function e(e){(e=e.replace(/\@\{([a-z\_\-]+)(\|.*?)?\}/gi,function(e,t,n){var s=n?n.replace(/^\|/,""):"";return t in r.query?(s=r.query[t],delete r.query[t]):r.data&&t in r.data?(s=r.data[t],delete r.data[t]):n||o.reject(i("missing_attribute","The attribute "+t+" is missing from the request")),s})).match(/^https?:\/\//)||(e=c.base+e),r.url=e,n.request(r,function(e,t){if(r.formatResponse){if(!0===e?e={success:!0}:e||(e={}),"delete"===r.method&&(e=!e||n.isEmpty(e)?{success:!0}:e),c.wrap&&(r.path in c.wrap||"default"in c.wrap)){var i=r.path in c.wrap?r.path:"default",s=((new Date).getTime(),c.wrap[i](e,t,r));s&&(e=s)}e&&"paging"in e&&e.paging.next&&("?"===e.paging.next[0]?e.paging.next=r.path+e.paging.next:e.paging.next+="#"+r.path),!e||"error"in e?o.reject(e):o.fulfill(e)}else("object"==typeof t?t.statusCode>=400:"object"==typeof e&&"error"in e)?o.reject(e):o.fulfill(e)})}var t=this,n=t.utils,i=n.error,o=n.Promise(),r=n.args({path:"s!",query:"o",method:"s",data:"o",timeout:"i",callback:"f"},arguments);r.method=(r.method||"get").toLowerCase(),r.headers=r.headers||{},r.query=r.query||{},("get"===r.method||"delete"===r.method)&&(n.extend(r.query,r.data),r.data={});var s=r.data=r.data||{};if(o.then(r.callback,r.callback),!r.path)return o.reject(i("invalid_path","Missing the path parameter from the request"));r.path=r.path.replace(/^\/+/,"");var a=(r.path.split(/[\/\:]/,2)||[])[0].toLowerCase();if(a in t.services){r.network=a;var l=new RegExp("^"+a+":?/?");r.path=r.path.replace(l,"")}r.network=t.settings.default_service=r.network||t.settings.default_service;var c=t.services[r.network];if(!c)return o.reject(i("invalid_network","Could not match the service requested: "+r.network));if(r.method in c&&r.path in c[r.method]&&!1===c[r.method][r.path])return o.reject(i("invalid_path","The provided path is not available on the selected network"));r.oauth_proxy||(r.oauth_proxy=t.settings.oauth_proxy),"proxy"in r||(r.proxy=r.oauth_proxy&&c.oauth&&1===parseInt(c.oauth.version,10)),"timeout"in r||(r.timeout=t.settings.timeout),"formatResponse"in r||(r.formatResponse=!0),r.authResponse=t.getAuthResponse(r.network),r.authResponse&&r.authResponse.access_token&&(r.query.access_token=r.authResponse.access_token);var u,d=r.path;r.options=n.clone(r.query),r.data=n.clone(s);var f=c[{delete:"del"}[r.method]||r.method]||{};if("get"===r.method){var p=d.split(/[\?#]/)[1];p&&(n.extend(r.query,n.param(p)),d=d.replace(/\?.*?(#|$)/,"$1"))}return(u=d.match(/#(.+)/,""))?(d=d.split("#")[0],r.path=u[1]):d in f?(r.path=d,d=f[d]):"default"in f&&(d=f.default),r.redirect_uri=t.settings.redirect_uri,r.xhr=c.xhr,r.jsonp=c.jsonp,r.form=c.form,"function"==typeof d?d(r,e):e(d),o.proxy},hello.utils.extend(hello.utils,{request:function(e,t){function n(e,t){var n;e.authResponse&&e.authResponse.oauth&&1===parseInt(e.authResponse.oauth.version,10)&&(n=e.query.access_token,delete e.query.access_token,e.proxy=!0),!e.data||"get"!==e.method&&"delete"!==e.method||(i.extend(e.query,e.data),e.data=null);var o=i.qs(e.url,e.query);e.proxy&&(o=i.qs(e.oauth_proxy,{path:o,access_token:n||"",then:e.proxy_response_type||("get"===e.method.toLowerCase()?"redirect":"proxy"),method:e.method.toLowerCase(),suppress_response_codes:!0})),t(o)}var i=this,o=i.error;if(i.isEmpty(e.data)||"FileList"in window||!i.hasBinary(e.data)||(e.xhr=!1,e.jsonp=!1),this.request_cors(function(){return void 0===e.xhr||e.xhr&&("function"!=typeof e.xhr||e.xhr(e,e.query))}))n(e,function(n){var o=i.xhr(e.method,n,e.headers,e.data,t);o.onprogress=e.onprogress||null,o.upload&&e.onuploadprogress&&(o.upload.onprogress=e.onuploadprogress)});else{var r,s=e.query;if(e.query=i.clone(e.query),e.callbackID=i.globalEvent(),!1!==e.jsonp){if(e.query.callback=e.callbackID,"function"==typeof e.jsonp&&e.jsonp(e,e.query),"get"===e.method)return void n(e,function(n){i.jsonp(n,t,e.callbackID,e.timeout)});e.query=s}if(!1!==e.form)if(e.query.redirect_uri=e.redirect_uri,e.query.state=JSON.stringify({callback:e.callbackID}),"function"==typeof e.form&&(r=e.form(e,e.query)),"post"===e.method&&!1!==r)return void n(e,function(n){i.post(n,e.data,r,t,e.callbackID,e.timeout)});t(o("invalid_request","There was no mechanism for handling this request"))}},request_cors:function(e){return"withCredentials"in new XMLHttpRequest&&e()},domInstance:function(e,t){var n="HTML"+(e||"").replace(/^[a-z]/,function(e){return e.toUpperCase()})+"Element";return!!t&&(window[n]?t instanceof window[n]:window.Element?t instanceof window.Element&&(!e||t.tagName&&t.tagName.toLowerCase()===e):!(t instanceof Object||t instanceof Array||t instanceof String||t instanceof Number)&&t.tagName&&t.tagName.toLowerCase()===e)},clone:function(e){if(null===e||"object"!=typeof e||e instanceof Date||"nodeName"in e||this.isBinary(e))return e;if(Array.isArray(e))return e.map(this.clone.bind(this));var t={};for(var n in e)t[n]=this.clone(e[n]);return t},xhr:function(e,t,n,i,o){var r,s=new XMLHttpRequest,a=this.error,l=!1;if("blob"===e&&(l=e,e="GET"),e=e.toUpperCase(),s.onload=function(t){var n=s.response;try{n=JSON.parse(s.responseText)}
11catch(e){401===s.status&&(n=a("access_denied",s.statusText))}var i=function(e){for(var t,n={},i=/([a-z\-]+):\s?(.*);?/gi;t=i.exec(e);)n[t[1]]=t[2];return n}(s.getAllResponseHeaders());i.statusCode=s.status,o(n||("GET"===e?a("empty_response","Could not get resource"):{}),i)},s.onerror=function(e){var t=s.responseText;try{t=JSON.parse(s.responseText)}catch(e){}o(t||a("access_denied","Could not get resource"))},"GET"===e||"DELETE"===e)i=null;else if(!(!i||"string"==typeof i||i instanceof FormData||i instanceof File||i instanceof Blob)){var c=new FormData;for(r in i)i.hasOwnProperty(r)&&(i[r]instanceof HTMLInputElement?"files"in i[r]&&i[r].files.length>0&&c.append(r,i[r].files[0]):i[r]instanceof Blob?c.append(r,i[r],i.name):c.append(r,i[r]));i=c}if(s.open(e,t,!0),l&&("responseType"in s?s.responseType=l:s.overrideMimeType("text/plain; charset=x-user-defined")),n)for(r in n)s.setRequestHeader(r,n[r]);return s.send(i),s},jsonp:function(e,t,n,i){var o,r=this,s=r.error,a=0,l=document.getElementsByTagName("head")[0],c=s("server_error","server_error"),u=function(){a++||window.setTimeout(function(){t(c),l.removeChild(d)},0)};n=r.globalEvent(function(e){return c=e,!0},n),e=e.replace(new RegExp("=\\?(&|$)"),"="+n+"$1");var d=r.append("script",{id:n,name:n,src:e,async:!0,onload:u,onerror:u,onreadystatechange:function(){/loaded|complete/i.test(this.readyState)&&u()}});window.navigator.userAgent.toLowerCase().indexOf("opera")>-1&&(o=r.append("script",{text:"document.getElementById('"+n+"').onerror();"}),d.async=!1),i&&window.setTimeout(function(){c=s("timeout","timeout"),u()},i),l.appendChild(d),o&&l.appendChild(o)},post:function(e,t,n,i,o,r){var s,a,l=this,c=l.error,u=document,d=null,f=[],p=0,h=null,m=0,g=function(e){m++||i(e)};l.globalEvent(g,o);try{a=u.createElement('<iframe name="'+o+'">')}catch(e){a=u.createElement("iframe")}if(a.name=o,a.id=o,a.style.display="none",n&&n.callbackonload&&(a.onload=function(){g({response:"posted",message:"Content was posted"})}),r&&setTimeout(function(){g(c("timeout","The post operation timed out"))},r),u.body.appendChild(a),l.domInstance("form",t)){for(d=t.form,p=0;p<d.elements.length;p++)d.elements[p]!==t&&d.elements[p].setAttribute("disabled",!0);t=d}if(l.domInstance("form",t))for(d=t,p=0;p<d.elements.length;p++)d.elements[p].disabled||"file"!==d.elements[p].type||(d.encoding=d.enctype="multipart/form-data",d.elements[p].setAttribute("name","file"));else{for(h in t)t.hasOwnProperty(h)&&l.domInstance("input",t[h])&&"file"===t[h].type&&((d=t[h].form).encoding=d.enctype="multipart/form-data");var v;for(h in d||(d=u.createElement("form"),u.body.appendChild(d),s=d),t)if(t.hasOwnProperty(h)){var y=l.domInstance("input",t[h])||l.domInstance("textArea",t[h])||l.domInstance("select",t[h]);if(y&&t[h].form===d)y&&t[h].name!==h&&(t[h].setAttribute("name",h),t[h].name=h);else{var b=d.elements[h];if(v)for(b instanceof NodeList||(b=[b]),p=0;p<b.length;p++)b[p].parentNode.removeChild(b[p]);(v=u.createElement("input")).setAttribute("type","hidden"),v.setAttribute("name",h),v.value=y?t[h].value:l.domInstance(null,t[h])?t[h].innerHTML||t[h].innerText:t[h],d.appendChild(v)}}for(p=0;p<d.elements.length;p++)(v=d.elements[p]).name in t||!0===v.getAttribute("disabled")||(v.setAttribute("disabled",!0),f.push(v))}d.setAttribute("method","POST"),d.setAttribute("target",o),d.target=o,d.setAttribute("action",e),setTimeout(function(){d.submit(),setTimeout(function(){try{s&&s.parentNode.removeChild(s)}catch(e){}for(var e=0;e<f.length;e++)f[e]&&(f[e].setAttribute("disabled",!1),f[e].disabled=!1)},0)},100)},hasBinary:function(e){for(var t in e)if(e.hasOwnProperty(t)&&this.isBinary(e[t]))return!0;return!1},isBinary:function(e){return e instanceof Object&&(this.domInstance("input",e)&&"file"===e.type||"FileList"in window&&e instanceof window.FileList||"File"in window&&e instanceof window.File||"Blob"in window&&e instanceof window.Blob)},toBlob:function(e){var t=/^data\:([^;,]+(\;charset=[^;,]+)?)(\;base64)?,/i,n=e.match(t);if(!n)return e;for(var i=atob(e.replace(t,"")),o=[],r=0;r<i.length;r++)o.push(i.charCodeAt(r));return new Blob([new Uint8Array(o)],{type:n[1]})}}),function(e){var t=e.api,n=e.utils;n.extend(n,{dataToJSON:function(e){var t=this,n=window,i=e.data;if(t.domInstance("form",i)?i=t.nodeListToJSON(i.elements):"NodeList"in n&&i instanceof NodeList?i=t.nodeListToJSON(i):t.domInstance("input",i)&&(i=t.nodeListToJSON([i])),("File"in n&&i instanceof n.File||"Blob"in n&&i instanceof n.Blob||"FileList"in n&&i instanceof n.FileList)&&(i={file:i}),!("FormData"in n&&i instanceof n.FormData))for(var o in i)if(i.hasOwnProperty(o))if("FileList"in n&&i[o]instanceof n.FileList)1===i[o].length&&(i[o]=i[o][0]);else{if(t.domInstance("input",i[o])&&"file"===i[o].type)continue;t.domInstance("input",i[o])||t.domInstance("select",i[o])||t.domInstance("textArea",i[o])?i[o]=i[o].value:t.domInstance(null,i[o])&&(i[o]=i[o].innerHTML||i[o].innerText)}return e.data=i,i},nodeListToJSON:function(e){for(var t={},n=0;n<e.length;n++){var i=e[n];!i.disabled&&i.name&&(t[i.name]="file"===i.type?i:i.value||i.innerHTML)}return t}}),e.api=function(){var e=n.args({path:"s!",method:"s",data:"o",timeout:"i",callback:"f"},arguments);return e.data&&n.dataToJSON(e),t.call(this,e)}}(hello),hello.utils.responseHandler(window,window.opener||window.parent),"object"==typeof chrome&&"object"==typeof chrome.identity&&chrome.identity.launchWebAuthFlow&&function(){function e(t,n){var i={closed:!1}
11;return chrome.identity.launchWebAuthFlow({url:t,interactive:n},function(t){if(void 0!==t){var n=hello.utils.url(t),o={location:{assign:function(t){e(t,!1)},search:n.search,hash:n.hash,href:n.href},close:function(){}};hello.utils.responseHandler(o,window)}else i.closed=!0}),i}hello.utils.popup=function(t){return e(t,!0)},hello.utils.iframe=function(t){e(t,!1)},hello.utils.request_cors=function(e){return e(),!0};var t={};chrome.storage.local.get("hello",function(e){t=e.hello||{}}),hello.utils.store=function(e,n){return 0===arguments.length?t:1===arguments.length?t[e]||null:n?(t[e]=n,chrome.storage.local.set({hello:t}),n):null===n?(delete t[e],chrome.storage.local.set({hello:t}),null):void 0}}(),function(e){function t(e){e&&"error"in e&&(e.error={code:"server_error",message:e.error.message||e.error})}function n(t,n,i){if(!("object"!=typeof t||"undefined"!=typeof Blob&&t instanceof Blob||"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer||"error"in t)){var o=("app_folder"!==t.root?t.root:"")+t.path.replace(/\&/g,"%26");o=o.replace(/^\//,""),t.thumb_exists&&(t.thumbnail=i.oauth_proxy+"?path="+encodeURIComponent("https://api-content.dropbox.com/1/thumbnails/auto/"+o+"?format=jpeg&size=m")+"&access_token="+i.options.access_token),t.type=t.is_dir?"folder":t.mime_type,t.name=t.path.replace(/.*\//g,""),t.is_dir?t.files=o.replace(/^\//,""):(t.downloadLink=e.settings.oauth_proxy+"?path="+encodeURIComponent("https://api-content.dropbox.com/1/files/auto/"+o)+"&access_token="+i.options.access_token,t.file="https://api-content.dropbox.com/1/files/auto/"+o),t.id||(t.id=t.path.replace(/^\//,""))}}function i(e){return function(t,n){delete t.query.limit,n(e)}}var o={version:"1.0",auth:"https://www.dropbox.com/1/oauth/authorize",request:"https://api.dropbox.com/1/oauth/request_token",token:"https://api.dropbox.com/1/oauth/access_token"},r={version:2,auth:"https://www.dropbox.com/1/oauth2/authorize",grant:"https://api.dropbox.com/1/oauth2/token"};e.init({dropbox:{name:"Dropbox",oauth:r,login:function(t){t.qs.scope="",delete t.qs.display;var n=decodeURIComponent(t.qs.redirect_uri);e.services.dropbox.oauth=0===n.indexOf("http:")&&0!==n.indexOf("http://localhost/")?o:r,t.options.popup.width=1e3,t.options.popup.height=1e3},base:"https://api.dropbox.com/1/",root:"sandbox",get:{me:"account/info","me/files":i("metadata/auto/@{parent|}"),"me/folder":i("metadata/auto/@{id}"),"me/folders":i("metadata/auto/"),default:function(e,t){e.path.match("https://api-content.dropbox.com/1/files/")&&(e.method="blob"),t(e.path)}},post:{"me/files":function(t,n){var i=t.data.parent,o=t.data.name;t.data={file:t.data.file},"string"==typeof t.data.file&&(t.data.file=e.utils.toBlob(t.data.file)),n("https://api-content.dropbox.com/1/files_put/auto/"+i+"/"+o)},"me/folders":function(t,n){var i=t.data.name;t.data={},n("fileops/create_folder?root=@{root|sandbox}&"+e.utils.param({path:i}))}},del:{"me/files":"fileops/delete?root=@{root|sandbox}&path=@{id}","me/folder":"fileops/delete?root=@{root|sandbox}&path=@{id}"},wrap:{me:function(e){if(t(e),!e.uid)return e;e.name=e.display_name;var n=e.name.split(" ");return e.first_name=n.shift(),e.last_name=n.join(" "),e.id=e.uid,delete e.uid,delete e.display_name,e},default:function(e,i,o){return t(e),e.is_dir&&e.contents&&(e.data=e.contents,delete e.contents,e.data.forEach(function(t){t.root=e.root,n(t,0,o)})),n(e,0,o),e.is_deleted&&(e.success=!0),e}},xhr:function(e){if(e.data&&e.data.file){var t=e.data.file;t&&(e.data=t.files?t.files[0]:t)}return"delete"===e.method&&(e.method="post"),!0},form:function(e,t){delete t.state,delete t.redirect_uri}}})}(hello),function(e){function t(e){return e.id&&(e.thumbnail=e.picture="https://graph.facebook.com/"+e.id+"/picture"),e}function n(e){return"data"in e&&e.data.forEach(t),e}function i(e,t,n){if("boolean"==typeof e&&(e={success:e}),e&&"data"in e){var i=n.query.access_token;if(!(e.data instanceof Array)){var r=e.data;delete e.data,e.data=[r]}e.data.forEach(function(e){e.picture&&(e.thumbnail=e.picture),e.pictures=(e.images||[]).sort(function(e,t){return e.width-t.width}),e.cover_photo&&e.cover_photo.id&&(e.thumbnail=o+e.cover_photo.id+"/picture?access_token="+i),"album"===e.type&&(e.files=e.photos=o+e.id+"/photos"),e.can_upload&&(e.upload_location=o+e.id+"/photos")})}return e}e.init({facebook:{name:"Facebook",oauth:{version:2,auth:"https://www.facebook.com/dialog/oauth/",grant:"https://graph.facebook.com/oauth/access_token"},scope:{basic:"public_profile",email:"email",share:"user_posts",birthday:"user_birthday",events:"user_events",photos:"user_photos",videos:"user_videos",friends:"user_friends",files:"user_photos,user_videos",publish_files:"user_photos,user_videos,publish_actions",publish:"publish_actions",offline_access:"offline_access"},refresh:!0,login:function(e){e.options.force&&(e.qs.auth_type="reauthenticate"),e.options.popup.width=580,e.o
11ptions.popup.height=400},logout:function(t,n){var i=e.utils.globalEvent(t),o=encodeURIComponent(e.settings.redirect_uri+"?"+e.utils.param({callback:i,result:JSON.stringify({force:!0}),state:"{}"})),r=(n.authResponse||{}).access_token;return e.utils.iframe("https://www.facebook.com/logout.php?next="+o+"&access_token="+r),!!r&&void 0},base:"https://graph.facebook.com/v2.4/",get:{me:"me?fields=email,first_name,last_name,name,timezone,verified","me/friends":"me/friends","me/following":"me/friends","me/followers":"me/friends","me/share":"me/feed","me/like":"me/likes","me/files":"me/albums","me/albums":"me/albums?fields=cover_photo,name","me/album":"@{id}/photos?fields=picture","me/photos":"me/photos","me/photo":"@{id}","friend/albums":"@{id}/albums","friend/photos":"@{id}/photos"},post:{"me/share":"me/feed","me/photo":"@{id}"},wrap:{me:t,"me/friends":n,"me/following":n,"me/followers":n,"me/albums":i,"me/photos":i,"me/files":i,default:i},xhr:function(t,n){return("get"===t.method||"post"===t.method)&&(n.suppress_response_codes=!0),"post"===t.method&&t.data&&"string"==typeof t.data.file&&(t.data.file=e.utils.toBlob(t.data.file)),!0},jsonp:function(t,n){var i=t.method;"get"===i||e.utils.hasBinary(t.data)?"delete"===t.method&&(n.method="delete",t.method="post"):(t.data.method=i,t.method="get")},form:function(e){return{callbackonload:!0}}}});var o="https://graph.facebook.com/"}(hello),function(e){function t(t,n,i){var o=(i?"":"flickr:")+"?method="+t+"&api_key="+e.services.flickr.id+"&format=json";for(var r in n)n.hasOwnProperty(r)&&(o+="&"+r+"="+n[r]);return o}function n(n,i){return i||(i={}),function(o,r){!function(t){var n=e.getAuthResponse("flickr");t(n&&n.user_nsid?n.user_nsid:null)}(function(e){i.user_id=e,r(t(n,i,!0))})}}function i(e,t){var n="https://www.flickr.com/images/buddyicon.gif";return e.nsid&&e.iconserver&&e.iconfarm&&(n="https://farm"+e.iconfarm+".staticflickr.com/"+e.iconserver+"/buddyicons/"+e.nsid+(t?"_"+t:"")+".jpg"),n}function o(e,t,n,i,o){return"https://farm"+t+".staticflickr.com/"+n+"/"+e+"_"+i+(o=o?"_"+o:"")+".jpg"}function r(e){e&&e.stat&&"ok"!=e.stat.toLowerCase()&&(e.error={code:"invalid_request",message:e.message})}function s(e){if(e.photoset||e.photos){u(e=l(e,"photoset"in e?"photoset":"photos")),e.data=e.photo,delete e.photo;for(var t=0;t<e.data.length;t++){var n=e.data[t];n.name=n.title,n.picture=o(n.id,n.farm,n.server,n.secret,""),n.pictures=a(n.id,n.farm,n.server,n.secret),n.source=o(n.id,n.farm,n.server,n.secret,"b"),n.thumbnail=o(n.id,n.farm,n.server,n.secret,"m")}}return e}function a(e,t,n,i){return[{id:"t",max:100},{id:"m",max:240},{id:"n",max:320},{id:"",max:500},{id:"z",max:640},{id:"c",max:800},{id:"b",max:1024},{id:"h",max:1600},{id:"k",max:2048},{id:"o",max:2048}].map(function(r){return{source:o(e,t,n,i,r.id),width:r.max,height:r.max}})}function l(e,t){return t in e?e=e[t]:"error"in e||(e.error={code:"invalid_request",message:e.message||"Failed to get data from Flickr"}),e}function c(e){if(r(e),e.contacts){u(e=l(e,"contacts")),e.data=e.contact,delete e.contact;
11for(var t=0;t<e.data.length;t++){var n=e.data[t];n.id=n.nsid,n.name=n.realname||n.username,n.thumbnail=i(n,"m")}}return e}function u(e){e.page&&e.pages&&e.page!==e.pages&&(e.paging={next:"?page="+ ++e.page})}e.init({flickr:{name:"Flickr",oauth:{version:"1.0a",auth:"https://www.flickr.com/services/oauth/authorize?perms=read",request:"https://www.flickr.com/services/oauth/request_token",token:"https://www.flickr.com/services/oauth/access_token"},base:"https://api.flickr.com/services/rest",get:{me:n("flickr.people.getInfo"),"me/friends":n("flickr.contacts.getList",{per_page:"@{limit|50}"}),"me/following":n("flickr.contacts.getList",{per_page:"@{limit|50}"}),"me/followers":n("flickr.contacts.getList",{per_page:"@{limit|50}"}),"me/albums":n("flickr.photosets.getList",{per_page:"@{limit|50}"}),"me/album":n("flickr.photosets.getPhotos",{photoset_id:"@{id}"}),"me/photos":n("flickr.people.getPhotos",{per_page:"@{limit|50}"})},wrap:{me:function(e){if(r(e),(e=l(e,"person")).id){if(e.realname){e.name=e.realname._content;var t=e.name.split(" ");e.first_name=t.shift(),e.last_name=t.join(" ")}e.thumbnail=i(e,"l"),e.picture=i(e,"l")}return e},"me/friends":c,"me/followers":c,"me/following":c,"me/albums":function(e){return r(e),u(e=l(e,"photosets")),e.photoset&&(e.data=e.photoset,e.data.forEach(function(e){e.name=e.title._content,e.photos="https://api.flickr.com/services/rest"+t("flickr.photosets.getPhotos",{photoset_id:e.id},!0)}),delete e.photoset),e},"me/photos":function(e){return r(e),s(e)},default:function(e){return r(e),s(e)}},xhr:!1,jsonp:function(e,t){"get"==e.method&&(delete t.callback,t.jsoncallback=e.callbackID)}}})}(hello),function(e){function t(e){!e.meta||400!==e.meta.code&&401!==e.meta.code||(e.error={code:"access_denied",message:e.meta.errorDetail})}function n(e){e&&e.id&&(e.thumbnail=e.photo.prefix+"100x100"+e.photo.suffix,e.name=e.firstName+" "+e.lastName,e.first_name=e.firstName,e.last_name=e.lastName,e.contact&&e.contact.email&&(e.email=e.contact.email))}function i(e,t){var n=t.access_token;return delete t.access_token,t.oauth_token=n,t.v=20121125,!0}hello.init({foursquare:{name:"Foursquare",oauth:{version:2,auth:"https://foursquare.com/oauth2/authenticate",grant:"https://foursquare.com/oauth2/access_token"},refresh:!0,base:"https://api.foursquare.com/v2/",get:{me:"users/self","me/friends":"users/self/friends","me/followers":"users/self/friends","me/following":"users/self/friends"},wrap:{me:function(e){return t(e),e&&e.response&&n(e=e.response.user),e},default:function(e){return t(e),e&&"response"in e&&"friends"in e.response&&"items"in e.response.friends&&(e.data=e.response.friends.items,e.data.forEach(n),delete e.response),e}},xhr:i,jsonp:i}})}(),function(e){function t(e,t){var n=t?t.statusCode:e&&"meta"in e&&"status"in e.meta&&e.meta.status;(401===n||403===n)&&(e.error={code:"access_denied",message:e.message||(e.data?e.data.message:"Could not get response")},delete e.message)}function n(e){e.id&&(e.thumbnail=e.picture=e.avatar_url,e.name=e.login)}hello.init({github:{name:"GitHub",oauth:{version:2,auth:"https://github.com/login/oauth/authorize",grant:"https://github.com/login/oauth/access_token",response_type:"code"},scope:{email:"user:email"},base:"https://api.github.com/",get:{me:"user","me/friends":"user/following?per_page=@{limit|100}","me/following":"user/following?per_page=@{limit|100}","me/followers":"user/followers?per_page=@{limit|100}","me/like":"user/starred?per_page=@{limit|100}"},wrap:{me:function(e,i){return t(e,i),n(e),e},default:function(e,i,o){return t(e,i),Array.isArray(e)&&(e={data:e}),e.data&&(function(e,t){if(e.data&&e.data.length&&t&&t.Link){var n=t.Link.match(/<(.*?)>;\s*rel=\"next\"/);n&&(e.paging={next:n[1]})}}(e,i),e.data.forEach(n)),e}},xhr:function(e){return"get"!==e.method&&e.data&&(e.headers=e.headers||{},e.headers["Content-Type"]="application/json","object"==typeof e.data&&(e.data=JSON.stringify(e.data))),!0}}})}(),function(e){function t(e){return parseInt(e,10)}function n(e){return c(e),e.data=e.items,delete e.items,e}function i(e){return e.error?void 0:(e.name||(e.name=e.title||e.message),e.picture||(e.picture=e.thumbnailLink),e.thumbnail||(e.thumbnail=e.thumbnailLink),"application/vnd.google-apps.folder"===e.mimeType&&(e.type="folder",e.files="https://www.googleapis.com/drive/v2/files?q=%22"+e.id+"%22+in+parents"),e)}
11function o(e){return{source:e.url,width:e.width,height:e.height}}function r(e){if(c(e),"feed"in e&&"entry"in e.feed)e.data=e.feed.entry.map(l),delete e.feed;else{if("entry"in e)return l(e.entry);"items"in e?(e.data=e.items.map(i),delete e.items):i(e)}return e}function s(e){e.name=e.displayName||e.name,e.picture=e.picture||(e.image?e.image.url:null),e.thumbnail=e.picture}function a(e,t,n){if(c(e),"feed"in e&&"entry"in e.feed){for(var i=n.query.access_token,o=0;o<e.feed.entry.length;o++){var r=e.feed.entry[o];if(r.id=r.id.$t,r.name=r.title.$t,delete r.title,r.gd$email&&(r.email=r.gd$email&&r.gd$email.length>0?r.gd$email[0].address:null,r.emails=r.gd$email,delete r.gd$email),r.updated&&(r.updated=r.updated.$t),r.link){var s=r.link.length>0?r.link[0].href:null;s&&r.link[0].gd$etag&&(s+=(s.indexOf("?")>-1?"&":"?")+"access_token="+i,r.picture=s,r.thumbnail=s),delete r.link}r.category&&delete r.category}e.data=e.feed.entry,delete e.feed}return e}function l(e){var t,n=e.media$group,i=n.media$content.length?n.media$content[0]:{},r=n.media$content||[],s=n.media$thumbnail||[],a=r.concat(s).map(o).sort(function(e,t){return e.width-t.width}),l=0,c={id:e.id.$t,name:e.title.$t,description:e.summary.$t,updated_time:e.updated.$t,created_time:e.published.$t,picture:i?i.url:null,pictures:a,images:[],thumbnail:i?i.url:null,width:i.width,height:i.height};if("link"in e)for(l=0;l<e.link.length;l++){var u=e.link[l];if(u.rel.match(/\#feed$/)){c.upload_location=c.files=c.photos=u.href;break}}if("category"in e&&e.category.length)for(t=e.category,l=0;l<t.length;l++)t[l].scheme&&t[l].scheme.match(/\#kind$/)&&(c.type=t[l].term.replace(/^.*?\#/,""));return"media$thumbnail"in n&&n.media$thumbnail.length&&(t=n.media$thumbnail,c.thumbnail=t[0].url,c.images=t.map(o)),(t=n.media$content)&&t.length&&c.images.push(o(t[0])),c}function c(e){if("feed"in e&&e.feed.openSearch$itemsPerPage){var n=t(e.feed.openSearch$itemsPerPage.$t),i=t(e.feed.openSearch$startIndex.$t);t(e.feed.openSearch$totalResults.$t)>i+n&&(e.paging={next:"?start="+(i+n)})}else"nextPageToken"in e&&(e.paging={next:"?pageToken="+e.nextPageToken})}function u(){function e(e){var n=new FileReader;n.onload=function(n){t(btoa(n.target.result),e.type+r+"Content-Transfer-Encoding: base64")},n.readAsBinaryString(e)}function t(e,t){n.push(r+"Content-Type: "+t+r+r+e),o--,a()}var n=[],i=(1e10*Math.random()).toString(32),o=0,r="\r\n",s=r+"--"+i,a=function(){},l=/^data\:([^;,]+(\;charset=[^;,]+)?)(\;base64)?,/i;this.append=function(n,i){"string"!=typeof n&&"length"in Object(n)||(n=[n]);for(var s=0;s<n.length;s++){o++;var a=n[s];if("undefined"!=typeof File&&a instanceof File||"undefined"!=typeof Blob&&a instanceof Blob)e(a);else if("string"==typeof a&&a.match(l)){var c=a.match(l);t(a.replace(l,""),c[1]+r+"Content-Transfer-Encoding: base64")}else t(a,i)}},this.onready=function(e){(a=function(){0===o&&(n.unshift(""),n.push("--"),e(n.join(s),i),n=[])})()}}function d(e,t){var n,i={};if(e.data&&"undefined"!=typeof HTMLInputElement&&e.data instanceof HTMLInputElement&&(e.data={file:e.data}),!e.data.name&&Object(Object(e.data.file).files).length&&"post"===e.method&&(e.data.name=e.data.file.files[0].name),"post"===e.method?e.data={title:e.data.name,parents:[{id:e.data.parent||"root"}],file:e.data.file}:(i=e.data,e.data={},i.parent&&(e.data.parents=[{id:e.data.parent||"root"}]),i.file&&(e.data.file=i.file),i.name&&(e.data.title=i.name)),!("file"in e.data)||(n=e.data.file,delete e.data.file,"object"==typeof n&&"files"in n&&(n=n.files),n&&n.length)){var o=new u;o.append(JSON.stringify(e.data),"application/json"),n&&o.append(n),o.onready(function(n,o){e.headers["content-type"]='multipart/related; boundary="'+o+'"',e.data=n,t("upload/drive/v2/files"+(i.id?"/"+i.id:"")+"?uploadType=multipart")})}else t({error:{code:"request_invalid",message:"There were no files attached with this request to upload"}})}var f="https://www.google.com/m8/feeds/contacts/default/full?v=3.0&alt=json&max-results=@{limit|1000}&start-index=@{start|1}";e.init({google:{name:"Google Plus",oauth:{version:2,auth:"https://accounts.google.com/o/oauth2/auth",grant:"https://accounts.google.com/o/oauth2/token"},scope:{basic:"https://www.googleapis.com/auth/plus.me profile",email:"email",birthday:"",events:"",photos:"https://picasaweb.google.com/data/",videos:"http://gdata.youtube.com",friends:"https://www.google.com/m8/feeds, https://www.googleapis.com/auth/plus.login",files:"https://www.googleapis.com/auth/drive.readonly",publish:"",publish_files:"https://www.googleapis.com/auth/drive",create_event:"",offline_access:""},scope_delim:" ",login:function(e){"none"===e.qs.display&&(e.qs.display=""),"code"===e.qs.response_type&&(e.qs.access_type="offline"),e.options.force&&(e.qs.approval_prompt="force")},base:"https://www.googleapis.com/",get:{me:"plus/v1/people/me","me/friends":"plus/v1/people/me/people/visible?maxResults=@{limit|100}","me/following":f,"me/followers":f,"me/contacts":f,"me/share":"plus/v1/people/me/activities/public?maxResults=@{limit|100}","me/feed":"plus/v1/people/me/activities/public?maxResults=@{limit|100}","me/albums":"https://picasaweb.google.com/data/feed/api/user/default?alt=json&max-results=@{limit|100}&start-index=@{start|1}","me/album":function(e,t){var n=e.query.id;delete e.query.id,t(n.replace("/entry/","/feed/"))},"me/photos":"https://picasaweb.google.com/data/feed/api/user/default?alt=json&kind=photo&max-results=@{limit|100}&start-index=@{start|1}","me/file":"drive/v2/files/@{id}","me/files":"drive/v2/files?q=%22@{parent|root}%22+in+parents+and+trashed=false&maxResults=@{limit|100}","me/folders":"drive/v2/files?q=%22@{id|root}%22+in+parents+and+mimeType+=+%22application/vnd.google-apps.folder%22+and+trashed=false&maxResults=@{limit|100}","me/folder":"drive/v2/files?q=%22@{id|root}%22+in+parents+and+trashed=false&maxResults=@{limit|100}"},post:{"me/files":d,"me/folders":function(e,t){e.data={title:e.data.name,parents:[{id:e.data.parent||"root"}],mimeType:"application/vnd.google-apps.folder"},t("drive/v2/files")}},put:{"me/files":d},del:{"me/files":"drive/v2/files/@{id}","me/folder":"drive/v2/files/@{id}"},patch:{"me/file":"drive/v2/files/@{id}"},wrap:{me:function(e){return e.id&&(e.last_name=e.family_name||(e.name?e.name.familyName:null),e.first_name=e.given_name||(e.name?e.name.givenName:null),e.emails&&e.emails.length&&(e.email=e.emails[0].value),s(e)),e},"me/friends":function(e){return e.items&&(c(e),e.data=e.items,e.data.forEach(s),delete e.items),e},"me/contacts":a,"me/followers":a,"me/following":a,"me/share":n,"me/feed":n,"me/albums":r,"me/photos":function(e){e.data=e.feed.entry.map(l),delete e.feed},default:r},xhr:function(t){return"post"===t.method||"put"===t.method?function(e){if("object"==typeof e.data)try{e.data=JSON.stringify(e.data),e.headers["content-type"]="application/json"}catch(e){}}(t):"patch"===t.method&&(e.utils.extend(t.query,t.data),t.data=null),!0},form:!1}})}(hello),function(e){function t(e){return"string"==typeof e?{error:{code:"invalid_request",message:e}}:(e&&"meta"in e&&"error_type"in e.meta&&(e.error={code:e.meta.error_type,message:e.meta.error_message}),e)}function n(e){return o(e),e&&"data"in e&&e.data.forEach(i),e}function i(e){e.id&&(e.thumbnail=e.profile_picture,e.name=e.full_name||e.username)}function o(e){"pagination"in e&&(e.paging={next:e.pagination.next_url},delete e.pagination)}hello.init({instagram:{name:"Instagram",oauth:{version:2,auth:"https://instagram.com/oauth/authorize/",grant:"https://api.instagram.com/oauth/access_token"},refresh:!0,scope:{basic:"basic",photos:"",friends:"relationships",publish:"likes comments"},scope_delim:" ",login:function(e){e.qs.display=""},base:"https://api.instagram.com/v1/",get:{me:"users/self","me/feed":"users/self/feed?count=@{limit|100}
11","me/photos":"users/self/media/recent?min_id=0&count=@{limit|100}","me/friends":"users/self/follows?count=@{limit|100}","me/following":"users/self/follows?count=@{limit|100}","me/followers":"users/self/followed-by?count=@{limit|100}","friend/photos":"users/@{id}/media/recent?min_id=0&count=@{limit|100}"},post:{"me/like":function(e,t){var n=e.data.id;e.data={},t("media/"+n+"/likes")}},del:{"me/like":"media/@{id}/likes"},wrap:{me:function(e){return t(e),"data"in e&&(e.id=e.data.id,e.thumbnail=e.data.profile_picture,e.name=e.data.full_name||e.data.username),e},"me/friends":n,"me/following":n,"me/followers":n,"me/photos":function(e){return t(e),o(e),"data"in e&&(e.data=e.data.filter(function(e){return"image"===e.type}),e.data.forEach(function(e){e.name=e.caption?e.caption.text:null,e.thumbnail=e.images.thumbnail.url,e.picture=e.images.standard_resolution.url,e.pictures=Object.keys(e.images).map(function(t){return function(e){return{source:e.url,width:e.width,height:e.height}}(e.images[t])}).sort(function(e,t){return e.width-t.width})})),e},default:function(e){return o(e=t(e)),e}},xhr:function(e,t){var n=e.method,i="get"!==n;return i&&("post"!==n&&"put"!==n||!e.query.access_token||(e.data.access_token=e.query.access_token,delete e.query.access_token),e.proxy=i),i},form:!1}})}(),function(e){function t(e,t){var n,i;return e&&"Message"in e&&(i=e.Message,delete e.Message,"ErrorCode"in e?(n=e.ErrorCode,delete e.ErrorCode):n=function(e){switch(e.statusCode){case 400:return"invalid_request";case 403:return"stale_token";case 401:return"invalid_token";default:return"server_error"}}(t),e.error={code:n,message:i,details:e}),e}hello.init({joinme:{name:"join.me",oauth:{version:2,auth:"https://secure.join.me/api/public/v1/auth/oauth2",grant:"https://secure.join.me/api/public/v1/auth/oauth2"},refresh:!1,scope:{basic:"user_info",user:"user_info",scheduler:"scheduler",start:"start_meeting"},scope_delim:" ",login:function(e){e.options.popup.width=400,e.options.popup.height=700},base:"https://api.join.me/v1/",get:{me:"user",meetings:"meetings","meetings/info":"meetings/@{id}"},post:{"meetings/start/adhoc":function(e,t){t("meetings/start")},"meetings/start/scheduled":function(e,t){var n=e.data.meetingId;e.data={},t("meetings/"+n+"/start")},"meetings/schedule":function(e,t){t("meetings")}},patch:{"meetings/update":function(e,t){t("meetings/"+e.data.meetingId)}},del:{"meetings/delete":"meetings/@{id}"},wrap:{me:function(e,n){return t(e,n),e.email?(e.name=e.fullName,e.first_name=e.name.split(" ")[0],e.last_name=e.name.split(" ")[1],e.id=e.email,e):e},default:function(e,n){return t(e,n),e}},xhr:function(e,t){var n=t.access_token;return delete t.access_token,e.headers.Authorization="Bearer "+n,"get"!==e.method&&e.data&&(e.headers["Content-Type"]="application/json","object"==typeof e.data&&(e.data=JSON.stringify(e.data))),"put"===e.method&&(e.method="patch"),!0}}})}(),function(e){function t(e){e&&"errorCode"in e&&(e.error={code:e.status,message:e.message})}function n(e){return e.error?void 0:(e.first_name=e.firstName,e.last_name=e.lastName,e.name=e.formattedName||e.first_name+" "+e.last_name,e.thumbnail=e.pictureUrl,e.email=e.emailAddress,e)}function i(e){return t(e),o(e),e.values&&(e.data=e.values.map(n),delete e.values),e}function o(e){"_count"in e&&"_start"in e&&e._count+e._start<e._total&&(e.paging={next:"?start="+(e._start+e._count)+"&count="+e._count})}function r(e){e.access_token&&(e.oauth2_access_token=e.access_token,delete e.access_token)}function s(e,t){e.headers["x-li-format"]="json";var n=e.data.id;e.data=("delete"!==e.method).toString(),e.method="put",t("people/~/network/updates/key="+n+"/is-liked")}hello.init({linkedin:{oauth:{version:2,response_type:"code",auth:"https://www.linkedin.com/uas/oauth2/authorization",grant:"https://www.linkedin.com/uas/oauth2/accessToken"},refresh:!0,scope:{basic:"r_basicprofile",email:"r_emailaddress",friends:"",publish:"w_share"},scope_delim:" ",base:"https://api.linkedin.com/v1/",get:{me:"people/~:(picture-url,first-name,last-name,id,formatted-name,email-address)","me/share":"people/~/network/updates?count=@{limit|250}"},post:{"me/share":function(e,t){var n={visibility:{code:"anyone"}};e.data.id?n.attribution={share:{id:e.data.id}}:(n.comment=e.data.message,e.data.picture&&e.data.link&&(n.content={"submitted-url":e.data.link,"submitted-image-url":e.data.picture})),e.data=JSON.stringify(n),t("people/~/shares?format=json")},"me/like":s},del:{"me/like":s},wrap:{me:function(e){return t(e),n(e),e},"me/friends":i,"me/following":i,"me/followers":i,"me/share":function(e){return t(e),o(e),e.values&&(e.data=e.values.map(n),e.data.forEach(function(e){e.message=e.headline}),delete e.values),e},default:function(e,n){t(e),function(e,t){"{}"===JSON.stringify(e)&&200===t.statusCode&&(e.success=!0)}(e,n),o(e)}},jsonp:function(e,t){r(t),"get"===e.method&&(t.format="jsonp",t["error-callback"]=e.callbackID)},xhr:function(e,t){return"get"!==e.method&&(r(t),e.headers["Content-Type"]="application/json",e.headers["x-li-format"]="json",e.proxy=!0,!0)}}})}(),function(e){function t(e,t){var n=t.access_token;return delete t.access_token,t.oauth_token=n,t["_status_code_map[302]"]=200,!0}function n(e){return e.id&&(e.picture=e.avatar_url,e.thumbnail=e.avatar_url,e.name=e.username||e.full_name),e}hello.init({soundcloud:{name:"SoundCloud",oauth:{version:2,auth:"https://soundcloud.com/connect",grant:"https://soundcloud.com/oauth2/token"},base:"https://api.soundcloud.com/",get:{me:"me.json","me/friends":"me/followings.json","me/followers":"me/followers.json","me/following":"me/followings.json",default:function(e,t){t(e.path+".json")}},wrap:{me:function(e){return n(e),e},default:function(e){return Array.isArray(e)&&(e={data:e.map(n)}),function(e){"next_href"in e&&(e.paging={next:e.next_href})}(e),e}},xhr:t,jsonp:t}}
11)}(),function(e){function t(e){if(e.id){if(e.name){var t=e.name.split(" ");e.first_name=t.shift(),e.last_name=t.join(" ")}e.thumbnail=e.profile_image_url_https||e.profile_image_url}return e}function n(e){return i(e),o(e),e.users&&(e.data=e.users.map(t),delete e.users),e}function i(e){if(e.errors){var t=e.errors[0];e.error={code:"request_failed",message:t.message}}}function o(e){"next_cursor_str"in e&&(e.paging={next:"?cursor="+e.next_cursor_str})}var r="https://api.twitter.com/";e.init({twitter:{oauth:{version:"1.0a",auth:r+"oauth/authenticate",request:r+"oauth/request_token",token:r+"oauth/access_token"},login:function(e){var t="?force_login=true";this.oauth.auth=this.oauth.auth.replace(t,"")+(e.options.force?t:"")},base:r+"1.1/",get:{me:"account/verify_credentials.json","me/friends":"friends/list.json?count=@{limit|200}","me/following":"friends/list.json?count=@{limit|200}","me/followers":"followers/list.json?count=@{limit|200}","me/share":"statuses/user_timeline.json?count=@{limit|200}","me/like":"favorites/list.json?count=@{limit|200}"},post:{"me/share":function(t,n){var i=t.data;t.data=null;var o=[];i.message&&(o.push(i.message),delete i.message),i.link&&(o.push(i.link),delete i.link),i.picture&&(o.push(i.picture),delete i.picture),o.length&&(i.status=o.join(" ")),i.file?(i["media[]"]=i.file,delete i.file,t.data=i,n("statuses/update_with_media.json")):"id"in i?n("statuses/retweet/"+i.id+".json"):(e.utils.extend(t.query,i),n("statuses/update.json?include_entities=1"))},"me/like":function(e,t){var n=e.data.id;e.data=null,t("favorites/create.json?id="+n)}},del:{"me/like":function(){p.method="post";var e=p.data.id;p.data=null,callback("favorites/destroy.json?id="+e)}},wrap:{me:function(e){return i(e),t(e),e},"me/friends":n,"me/followers":n,"me/following":n,"me/share":function(e){return i(e),o(e),!e.error&&"length"in e?{data:e}:e},default:function(e){return o(e=function(e){return Array.isArray(e)?{data:e}:e}(e)),e}},xhr:function(e){return"get"!==e.method}}})}(hello),hello.init({vk:{name:"Vk",oauth:{version:2,auth:"https://oauth.vk.com/authorize",grant:"https://oauth.vk.com/access_token"},scope:{email:"email",offline_access:"offline"},refresh:!0,login:function(e){e.qs.display=window.navigator&&window.navigator.userAgent&&/ipad|phone|phone|android/.test(window.navigator.userAgent.toLowerCase())?"mobile":"popup"},base:"https://api.vk.com/method/",get:{me:function(e,t){e.query.fields="id,first_name,last_name,photo_max",t("users.get")}},wrap:{me:function(e,t,n){return function(e){if(e.error){var t=e.error;e.error={code:t.error_code,message:t.error_msg}}}(e),function(e,t){return null!==e&&"response"in e&&null!==e.response&&e.response.length&&((e=e.response[0]).id=e.uid,e.thumbnail=e.picture=e.photo_max,e.name=e.first_name+" "+e.last_name,t.authResponse&&null!==t.authResponse.email&&(e.email=t.authResponse.email)),e}(e,n)}},xhr:!1,jsonp:!0,form:!1}}),function(e){function t(e){return"data"in e&&e.data.forEach(function(e){e.picture&&(e.thumbnail=e.picture),e.images&&(e.pictures=e.images.map(n).sort(function(e,t){return e.width-t.width}))}),e}function n(e){return{width:e.width,height:e.height,source:e.source}}function i(e,t,n){if(e.id){var i=n.query.access_token;if(e.emails&&(e.email=e.emails.preferred),!1!==e.is_friend){var o=e.user_id||e.id;e.thumbnail=e.picture="https://apis.live.net/v5.0/"+o+"/picture?access_token="+i}}return e}function o(e,t,n){return"data"in e&&e.data.forEach(function(e){i(e,0,n)}),e}e.init({windows:{name:"Windows live",oauth:{version:2,auth:"https://login.live.com/oauth20_authorize.srf",grant:"https://login.live.com/oauth20_token.srf"},refresh:!0,logout:function(){return"http://login.live.com/oauth20_logout.srf?ts="+(new Date).getTime()},scope:{basic:"wl.signin,wl.basic",email:"wl.emails",birthday:"wl.birthday",events:"wl.calendars",photos:"wl.photos",videos:"wl.photos",friends:"wl.contacts_emails",files:"wl.skydrive",publish:"wl.share",publish_files:"wl.skydrive_update",create_event:"wl.calendars_update,wl.events_create",offline_access:"wl.offline_access"},base:"https://apis.live.net/v5.0/",get:{me:"me","me/friends":"me/friends","me/following":"me/contacts","me/followers":"me/friends","me/contacts":"me/contacts","me/albums":"me/albums","me/album":"@{id}/files","me/photo":"@{id}","me/files":"@{parent|me/skydrive}/files","me/folders":"@{id|me/skydrive}/files","me/folder":"@{id|me/skydrive}/files"},post:{"me/albums":"me/albums","me/album":"@{id}/files/","me/folders":"@{id|me/skydrive/}","me/files":"@{parent|me/skydrive}/files"},del:{"me/album":"@{id}","me/photo":"@{id}","me/folder":"@{id}","me/files":"@{id}"},wrap:{me:i,"me/friends":o,"me/contacts":o,"me/followers":o,"me/following":o,"me/albums":function(e){return"data"in e&&e.data.forEach(function(e){e.photos=e.files="https://apis.live.net/v5.0/"+e.id+"/photos"}),e},"me/photos":t,default:t},xhr:function(t){return"get"===t.method||"delete"===t.method||e.utils.hasBinary(t.data)||("string"==typeof t.data.file?t.data.file=e.utils.toBlob(t.data.file):(t.data=JSON.stringify(t.data),t.headers={"Content-Type":"application/json"})),!0},jsonp:function(t){"get"===t.method||e.utils.hasBinary(t.data)||(t.data.method=t.method,t.method="get")}}})}(hello),function(e){function t(e){e&&"meta"in e&&"error_type"in e.meta&&(e.error={code:e.meta.error_type,message:e.meta.error_message})}function n(e,n,r){return t(e),o(e,n,r),e.query&&e.query.results&&e.query.results.contact&&(e.data=e.query.results.contact,delete e.query,Array.isArray(e.data)||(e.data=[e.data]),e.data.forEach(i)),e}function i(e){e.id=null,!e.fields||e.fields instanceof Array||(e.fields=[e.fields]),(e.fields||[]).forEac
11h(function(t){"email"===t.type&&(e.email=t.value),"name"===t.type&&(e.first_name=t.value.givenName,e.last_name=t.value.familyName,e.name=t.value.givenName+" "+t.value.familyName),"yahooid"===t.type&&(e.id=t.value)})}function o(e,t,n){return e.query&&e.query.count&&n.options&&(e.paging={next:"?start="+(e.query.count+(+n.options.start||1))}),e}function r(e){return"https://query.yahooapis.com/v1/yql?q="+(e+" limit @{limit|100} offset @{start|0}").replace(/\s/g,"%20")+"&format=json"}hello.init({yahoo:{oauth:{version:"1.0a",auth:"https://api.login.yahoo.com/oauth/v2/request_auth",request:"https://api.login.yahoo.com/oauth/v2/get_request_token",token:"https://api.login.yahoo.com/oauth/v2/get_token"},login:function(e){e.options.popup.width=560;try{delete e.qs.state.scope}catch(e){}},base:"https://social.yahooapis.com/v1/",get:{me:r("select * from social.profile(0) where guid=me"),"me/friends":r("select * from social.contacts(0) where guid=me"),"me/following":r("select * from social.contacts(0) where guid=me")},wrap:{me:function(e){if(t(e),e.query&&e.query.results&&e.query.results.profile){(e=e.query.results.profile).id=e.guid,e.last_name=e.familyName,e.first_name=e.givenName||e.nickname;var n=[];e.first_name&&n.push(e.first_name),e.last_name&&n.push(e.last_name),e.name=n.join(" "),e.email=e.emails&&e.emails[0]?e.emails[0].handle:null,e.thumbnail=e.image?e.image.imageUrl:null}return e},"me/friends":n,"me/following":n,default:o}}})}(),"function"==typeof define&&define.amd&&define(function(){return hello}),"object"==typeof module&&module.exports&&(module.exports=hello),function(e){var t={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};e.fn.bxSlider=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){e(this).bxSlider(n)}),this;var o={},r=this,s=e(window).width(),a=e(window).height();if(!e(r).data("bxSlider")){var l=function(){e(r).data("bxSlider")||(o.settings=e.extend({},t,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"===o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!==o.settings.mode&&function(){for(var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=0;n<t.length;n++)if(void 0!==e.style[t[n]])return o.cssPrefix=t[n].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"===o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),c())},c=function(){var t=o.children.eq(o.settings.startSlide);r.wrap('<div class="'+o.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.settings.ariaLive&&!o.settings.ticker&&o.viewport.attr("aria-live","polite"),o.loader=e('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"===o.settings.mode?1e3*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.settings.controls||o.viewport.parent().css({margin:"0 auto 0px"}
vendor: 8,976 bytes, line 11
11),o.children.css({float:"horizontal"===o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",h()),"horizontal"===o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"===o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"===o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=e('<div class="bx-controls" />'),o.settings.captions&&k(),o.active.last=o.settings.startSlide===g()-1,o.settings.video&&r.fitVids(),("all"===o.settings.preloadImages||o.settings.ticker)&&(t=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.controls&&x(),o.settings.auto&&o.settings.autoControls&&T(),o.settings.pager&&_(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),u(t,d)},u=function(t,n){var i=t.find('img:not([src=""]), iframe').length,o=0;return 0===i?void n():void t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++o===i&&n()}).each(function(){this.complete&&e(this).trigger("load")})})},d=function(){if(o.settings.infiniteLoop&&"fade"!==o.settings.mode&&!o.settings.ticker){var t="vertical"===o.settings.mode?o.settings.minSlides:o.settings.maxSlides,n=o.children.slice(0,t).clone(!0).addClass("bx-clone"),i=o.children.slice(-t).clone(!0).addClass("bx-clone");o.settings.ariaHidden&&(n.attr("aria-hidden",!0),i.attr("aria-hidden",!0)),r.append(n).prepend(i)}o.loader.remove(),y(),"vertical"===o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(f()),r.redrawSlider(),o.settings.onSliderLoad.call(r,o.active.index),o.initialized=!0,o.settings.responsive&&e(window).bind("resize",W),o.settings.auto&&o.settings.autoStart&&(g()>1||o.settings.autoSlideForOnePage)&&I(),o.settings.ticker&&N(),o.settings.pager&&E(o.settings.startSlide),o.settings.controls&&P(),o.settings.touchEnabled&&!o.settings.ticker&&H(),o.settings.keyboardEnabled&&!o.settings.ticker&&e(document).keydown(j)},f=function(){var t=0,n=e();if("vertical"===o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var r=1===o.settings.moveSlides?o.active.index:o.active.index*v();for(n=o.children.eq(r),i=1;i<=o.settings.maxSlides-1;i++)n=r+i>=o.children.length?n.add(o.children.eq(i-1)):n.add(o.children.eq(r+i))}else n=o.children.eq(o.active.index);else n=o.children;return"vertical"===o.settings.mode?(n.each(function(n){t+=e(this).outerHeight()}),o.settings.slideMargin>0&&(t+=o.settings.slideMargin*(o.settings.minSlides-1))):t=Math.max.apply(Math,n.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"===o.viewport.css("box-sizing")?t+=parseFloat(o.viewport.css("padding-top"))+parseFloat(o.viewport.css("padding-bottom"))+parseFloat(o.viewport.css("border-top-width"))+parseFloat(o.viewport.css("border-bottom-width")):"padding-box"===o.viewport.css("box-sizing")&&(t+=parseFloat(o.viewport.css("padding-top"))+parseFloat(o.viewport.css("padding-bottom"))),t},p=function(){var e="100%";return o.settings.slideWidth>0&&(e="horizontal"===o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),e},h=function(){var e=o.settings.slideWidth,t=o.viewport.width();if(0===o.settings.slideWidth||o.settings.slideWidth>t&&!o.carousel||"vertical"===o.settings.mode)e=t;else if(o.settings.maxSlides>1&&"horizontal"===o.settings.mode){if(t>o.maxThreshold)return e;t<o.minThreshold?e=(t-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides:o.settings.shrinkItems&&(e=Math.floor((t+o.settings.slideMargin)/Math.ceil((t+o.settings.slideMargin)/(e+o.settings.slideMargin))-o.settings.slideMargin))}return e},m=function(){var e=1,t=null;return"horizontal"===o.settings.mode&&o.settings.slideWidth>0?o.viewport.width()<o.minThreshold?e=o.settings.minSlides:o.viewport.width()>o.maxThreshold?e=o.settings.maxSlides:(t=o.children.first().width()+o.settings.slideMargin,e=Math.floor((o.viewport.width()+o.settings.slideMargin)/t)):"vertical"===o.settings.mode&&(e=o.settings.minSlides),e},g=function(){var e=0,t=0,n=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)e=Math.ceil(o.children.length/v());else for(;t<o.children.length;)++e,t=n+m(),n+=o.settings.moveSlides<=m()?o.settings.moveSlides:m();else e=Math.ceil(o.children.length/m());return e},v=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=m()?o.settings.moveSlides:m()},y=function(){var e,t,n;o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop?"horizontal"===o.settings.mode?(e=(t=o.children.last()).position(),b(-(e.left-(o.viewport.width()-t.outerWidth())),"reset",0)):"vertical"===o.settings.mode&&(n=o.children.length-o.settings.minSlides,e=o.children.eq(n).position(),b(-e.top,"reset",0)):(e=o.children.eq(o.active.index*v()).position(),o.active.index===g()-1&&(o.active.last=!0),void 0!==e&&("horizontal"===o.settings.mode?b(-e.left,"reset",0):"vertical"===o.settings.mode&&b(-e.top,"reset",0)))},b=function(t,n,i,s){var a,l;o.usingCSS?(l="vertical"===o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===n?(r.css(o.animProp,l),0!==i?r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){e(t.target).is(r)&&(r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),O())}):O()):"reset"===n?r.css(o.animProp,l):"ticker"===n&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,l),0!==i?r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){e(t.target).is(r)&&(r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),F())}):(b(s.resetValue,"reset",0),F()))):((a={})[o.animProp]=t,"slide"===n?r.animate(a,i,o.settings.easing,function(){O()}):"reset"===n?r.css(o.animProp,t):"ticker"===n&&r.animate(a,i,"linear",function(){b(s.resetValue,"reset",0),F()}))},w=function(){for(var t="",n="",i=g(),r=0;r<i;r++)n="",o.settings.buildPager&&e.isFunction(o.settings.buildPager)||o.settings.pagerCustom?(n=o.settings.buildPager(r),o.pagerEl.addClass("bx-custom-pager")):(n=r+1,o.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+r+'" class="bx-pager-link">'+n+"</a></div>";o.pagerEl.html(t)},_=function(){o.settings.pagerCustom?o.pagerEl=e(o.settings.pagerCustom):(o.pagerEl=e('<div class="bx-pager" />'),o.settings.pagerSelector?e(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click touchend","a",$)},x=function(){o.controls.next=e('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=e('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click touchend",S),o.controls.prev.bind("click touchend",C),o.settings.nextSelector&&e(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&e(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=e('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},T=function(){o.controls.start=e('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=e('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=e('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",D),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?e(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},k=function(){o.children.each(function(t){var n=e(this).find("img:first").attr("title");void 0!==n&&(""+n).length&&e(this).append('<div class="bx-caption"><span>'+n+"</span></div>")})},S=function(e){e.preventDefault(),o.controls.el.hasClass("disabled")||(o.settings.auto&&o.settings.stopAutoOnClick&&r.stopAuto(),r.goToNextSlide())},C=function(e){e.preventDefault(),o.controls.el.hasClass("disabled")||(o.settings.auto&&o.settings.stopAutoOnClick&&r.stopAuto(),r.goToPrevSlide())},D=function(e){r.startAuto(),e.preventDefault()},M=function(e){r.stopAuto(),e.preventDefault()},$=function(t){var n,i;t.preventDefault(),o.controls.el.hasClass("disabled")||(o.settings.auto&&o.settings.stopAutoOnClick&&r.stopAuto(),void 0!==(n=e(t.currentTarget)).attr("data-sli
11de-index")&&((i=parseInt(n.attr("data-slide-index")))!==o.active.index&&r.goToSlide(i)))},E=function(t){var n=o.children.length;return"short"===o.settings.pagerType?(o.settings.maxSlides>1&&(n=Math.ceil(o.children.length/o.settings.maxSlides)),void o.pagerEl.html(t+1+o.settings.pagerShortSeparator+n)):(o.pagerEl.find("a").removeClass("active"),void o.pagerEl.each(function(n,i){e(i).find("a").eq(t).addClass("active")}))},O=function(){if(o.settings.infiniteLoop){var e="";0===o.active.index?e=o.children.eq(0).position():o.active.index===g()-1&&o.carousel?e=o.children.eq((g()-1)*v()).position():o.active.index===o.children.length-1&&(e=o.children.eq(o.children.length-1).position()),e&&("horizontal"===o.settings.mode?b(-e.left,"reset",0):"vertical"===o.settings.mode&&b(-e.top,"reset",0))}o.working=!1,o.settings.onSlideAfter.call(r,o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(e){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[e]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))},P=function(){1===g()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0===o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index===g()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},I=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):(r.startAuto(),e(window).focus(function(){r.startAuto()}).blur(function(){r.stopAuto()})),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},N=function(){var t,n,i,s,a,l,c,u,d=0;"next"===o.settings.autoDirection?r.append(o.children.clone().addClass("bx-clone")):(r.prepend(o.children.clone().addClass("bx-clone")),t=o.children.first().position(),d="horizontal"===o.settings.mode?-t.left:-t.top),b(d,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&(o.usingCSS?(s="horizontal"===o.settings.mode?4:5,o.viewport.hover(function(){n=r.css("-"+o.cssPrefix+"-transform"),i=parseFloat(n.split(",")[s]),b(i,"reset",0)},function(){u=0,o.children.each(function(t){u+="horizontal"===o.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)}),a=o.settings.speed/u,l="horizontal"===o.settings.mode?"left":"top",c=a*(u-Math.abs(parseInt(i))),F(c)})):o.viewport.hover(function(){r.stop()},function(){u=0,o.children.each(function(t){u+="horizontal"===o.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)}),a=o.settings.speed/u,l="horizontal"===o.settings.mode?"left":"top",c=a*(u-Math.abs(parseInt(r.css(l)))),F(c)})),F()},F=function(e){var t,n,i=e||o.settings.speed,s={left:0,top:0},a={left:0,top:0};"next"===o.settings.autoDirection?s=r.find(".bx-clone").first().position():a=o.children.first().position(),t="horizontal"===o.settings.mode?-s.left:-s.top,n="horizontal"===o.settings.mode?-a.left:-a.top,b(t,"ticker",i,{resetValue:n})},L=function(t){var n=e(window),i={top:n.scrollTop(),left:n.scrollLeft()},o=t.offset();return i.right=i.left+n.width(),i.bottom=i.top+n.height(),o.right=o.left+t.outerWidth(),o.bottom=o.top+t.outerHeight(),!(i.right<o.left||i.left>o.right||i.bottom<o.top||i.top>o.bottom)},j=function(e){var t=document.activeElement.tagName.toLowerCase();if(null==new RegExp(t,["i"]).exec("input|textarea")&&L(r)){if(39===e.keyCode)return S(e),!1;if(37===e.keyCode)return C(e),!1}},H=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart MSPointerDown pointerdown",R),o.viewport.on("click",".bxslider a",function(e){o.viewport.hasClass("click-disabled")&&(e.preventDefault(),o.viewport.removeClass("click-disabled"))})},R=function(e){if(o.controls.el.addClass("disabled"),o.working)e.preventDefault(),o.controls.el.removeClass("disabled");else{o.touch.originalPos=r.position();var t=e.originalEvent,n=void 0!==t.changedTouches?t.changedTouches:[t];o.touch.start.x=n[0].pageX,o.touch.start.y=n[0].pageY,o.viewport.get(0).setPointerCapture&&(o.pointerId=t.pointerId,o.viewport.get(0).setPointerCapture(o.pointerId)),o.viewport.bind("touchmove MSPointerMove pointermove",B),o.viewport.bind("touchend MSPointerUp pointerup",q),o.viewport.bind("MSPointerCancel pointercancel",z)}},z=function(e){b(o.touch.originalPos.left,"reset",0),o.controls.el.removeClass("disabled"),o.viewport.unbind("MSPointerCancel pointercancel",z),o.viewport.unbind("touchmove MSPointerMove pointermove",B),o.viewport.unbind("touchend MSPointerUp pointerup",q),o.viewport.get(0).releasePointerCapture&&o.viewport.get(0).releasePointerCapture(o.pointerId)},B=function(e){var t=e.originalEvent,n=void 0!==t.changedTouches?t.changedTouches:[t],i=Math.abs(n[0].pageX-o.touch.start.x),r=Math.abs(n[0].pageY-o.touch.start.y),s=0,a=0;(3*i>r&&o.settings.preventDefaultSwipeX||3*r>i&&o.settings.preventDefaultSwipeY)&&e.preventDefault(),"fade"!==o.settings.mode&&o.settings.oneToOneTouch&&("horizontal"===o.settings.mode?(a=n[0].pageX-o.touch.start.x,s=o.touch.originalPos.left+a):(a=n[0].pageY-o.touch.start.y,s=o.touch.originalPos.top+a),b(s,"reset",0))},q=function(e){o.viewport.unbind("touchmove MSPointerMove pointermove",B),o.controls.el.removeClass("disabled");var t=e.originalEvent,n=void 0!==t.changedTouches?t.changedTouches:[t],i=0,s=0;o.touch.end.x=n[0].pageX,o.touch.end.y=n[0].pageY,"fade"===o.settings.mode?(s=Math.abs(o.touch.start.x-o.touch.end.x))>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):("horizontal"===o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0===o.active.index&&s>0||o.active.last&&s<0)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(s<0?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)),o.viewport.unbind("touchend MSPointerUp pointerup",q),o.viewport.get(0).releasePointerCapture&&o.viewport.get(0).releasePointerCapture(o.pointerId)},W=function(t){if(o.initialized)if(o.working)window.setTimeout(W,10);else{var n=e(window).width(),i=e(window).height();s===n&&a===i||(s=n,a=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))}},Y=function(e){var t=m();o.settings.ariaHidden&&!o.settings.ticker&&(o.children.attr("aria-hidden","true"),o.children.slice(e,e+t).attr("aria-hidden","false"))};return r.goToSlide=function(t,n){var i,s,a,l,c=!0,u=0,d={left:0,top:0},p=null;if(o.oldIndex=o.active.index,o.active.index=function(e){return e<0?o.settings.infiniteLoop?g()-1:o.active.index:e>=g()?o.settings.infiniteLoop?0:o.active.index:e}(t),!o.working&&o.active.index!==o.oldIndex){if(o.working=!0,void 0!==(c=o.settings.onSlideBefore.call(r,o.children.eq(o.active.index),o.oldIndex,o.active.index))&&!c)return o.active.index=o.oldIndex,void(o.working=!1);"next"===n?o.settings.onSlideNext.call(r,o.children.eq(o.active.index),o.oldIndex,o.active.index)||(c=!1):"prev"===n&&(o.settings.onSlidePrev.call(r,o.children.eq(o.active.index),o.oldIndex,o.active.index)||(c=!1)),o.active.last=o.active.index>=g()-1,(o.settings.pager||o.settings.pagerCustom)&&E(o.active.index),o.settings.controls&&P(),"fade"===o.settings.mode?(o.settings.adaptiveHeight&&o.viewport.height()!==f()&&o.viewport.animate({height:f()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){e(this).css("zIndex",o.settings.slideZIndex),O()})):(o.settings.adaptiveHeight&&o.viewport.height()!==f()&&o.viewport.animate({height:f()},o.settings.adaptiveHeightSpeed),!o.settings.infiniteLoop&&o.carousel&&o.active.last?"horizontal"===o.settings.mode?(d=(p=o.children.eq(o.children.length-1)).position(),u=o.viewport.width()-p.outerWidth()):(i=o.children.length-o.settings.minSlides,d=o.children.eq(i).position()):o.carousel&&o.active.last&&"prev"===n?(s=1===o.settings.moveSlides?o.settings.maxSlides-v():(g()-1)*v()-(o.children.length-o.settings.maxSlides),d=(p=r.children(".bx-clone").eq(s)).position()):"next"===n&&0===o.active.index?(d=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1):t>=0&&(l=t*parseInt(v()),d=o.children.eq(l).position()),void 0!==d?(a="horizontal"===o.settings.mode?-(d.left-u):-d.top,b(a,"slide",o.settings.speed)):o.working=!1),o.settings.ariaHidden&&Y(o.active.index*v())}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var e=parseInt(o.active.index)+1;r.goToSlide(e,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!==o.active.index){var e=parseInt(o.active.index)-1;r.goToSlide(e,"prev")}},r.startAuto=function(e){o.interval||(o.interval=setInterval(function(){"next"===o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&!0!==e&&A("stop"))},r.stopAuto=function(e){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&!0!==e&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideElement=function(e){return o.children.eq(e)},r.getSlideCount=function(){return o.children.length},r.isWorking=function(){return o.working},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(h()),o.viewport.css("height",f()),o.settings.ticker||y(),o.active.last&&(o.active.index=g()-1),o.active.index>=g()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),E(o.active.index)),o.settings.ariaHidden&&Y(o.active.index*v())},r.destroySlider=function(){o.initialized&&(o.initialized=!1,e(".bx-clone",this).remove(),o.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&!o.settings.pagerCustom&&o.pagerEl.remove(),e(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&e(window).unbind("resize",W),o.settings.keyboardEnabled&&e(document).unbind("
11keydown",j),e(this).removeData("bxSlider"))},r.reloadSlider=function(t){void 0!==t&&(n=t),r.destroySlider(),l(),e(r).data("bxSlider",this)},l(),e(r).data("bxSlider",this),this}}}(jQuery),function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(e){"use strict";function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=c),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each(function(){var i=e(this),o=i.data(D);o||(o=new n(this,t),i.data(D,o))})}function n(t,n){function M(t){if(!(!0===xe.data(D+"_intouch")||e(t.target).closest(n.excludedElements,xe).length>0)){var a=t.originalEvent?t.originalEvent:t;if(!a.pointerType||"mouse"!=a.pointerType||0!=n.fallbackToMouseEvents){var l,c=a.touches,u=c?c[0]:a;return Te=w,c?ke=c.length:!1!==n.preventDefaultEvents&&t.preventDefault(),fe=0,pe=null,he=null,we=null,me=0,ge=0,ve=0,ye=1,be=0,(d={})[i]=te(i),d[o]=te(o),d[r]=te(r),d[s]=te(s),_e=d,X(),Z(0,u),!c||ke===n.fingers||n.fingers===y||z()?(Ce=re(),2==ke&&(Z(1,c[1]),ge=ve=ie(Se[0].start,Se[1].start)),(n.swipeStatus||n.pinchStatus)&&(l=N(a,Te))):l=!1,!1===l?(N(a,Te=T),l):(n.hold&&(Ae=setTimeout(e.proxy(function(){xe.trigger("hold",[a.target]),n.hold&&(l=n.hold.call(xe,a,a.target))},this),n.longTapThreshold)),J(!0),null)}}var d}function $(t){var d,f,p=t.originalEvent?t.originalEvent:t;if(Te!==x&&Te!==T&&!K()){var h,m=p.touches,b=Q(m?m[0]:p);if(De=re(),m&&(ke=m.length),n.hold&&clearTimeout(Ae),Te=_,2==ke&&(0==ge?(Z(1,m[1]),ge=ve=ie(Se[0].start,Se[1].start)):(Q(m[1]),ve=ie(Se[0].end,Se[1].end),Se[0].end,Se[1].end,we=ye<1?l:a),ye=(ve/ge*1).toFixed(2),be=Math.abs(ge-ve)),ke===n.fingers||n.fingers===y||!m||z()){if(pe=oe(b.start,b.end),function(e,t){if(!1!==n.preventDefaultEvents)if(n.allowPageScroll===c)e.preventDefault();else{var a=n.allowPageScroll===u;switch(t){case i:(n.swipeLeft&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case o:(n.swipeRight&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case r:(n.swipeUp&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault();break;case s:(n.swipeDown&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault()}}}(t,he=oe(b.last,b.end)),d=b.start,f=b.end,fe=Math.round(Math.sqrt(Math.pow(f.x-d.x,2)+Math.pow(f.y-d.y,2))),me=ne(),function(e,t){e!=c&&(t=Math.max(t,ee(e)),_e[e].distance=t)}(pe,fe),h=N(p,Te),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var w=!0;if(n.triggerOnTouchLeave){var k=function(t){var n=(t=e(t)).offset(),i={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return i}(this);w=function(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}(b.end,k)}!n.triggerOnTouchEnd&&w?Te=I(_):n.triggerOnTouchLeave&&!w&&(Te=I(x)),Te!=T&&Te!=x||N(p,Te)}}else N(p,Te=T);!1===h&&N(p,Te=T)}}function E(e){var t=e.originalEvent?e.originalEvent:e,i=t.touches;if(i){if(i.length&&!K())return function(e){Me=re(),$e=e.touches.length+1}(t),!0;if(i.length&&K())return!0}return K()&&(ke=$e),De=re(),me=ne(),j()||!L()?N(t,Te=T):n.triggerOnTouchEnd||!1===n.triggerOnTouchEnd&&Te===_?(!1!==n.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),N(t,Te=x)):!n.triggerOnTouchEnd&&U()?F(t,Te=x,p):Te===_&&N(t,Te=T),J(!1),null}function O(){ke=0,De=0,Ce=0,ge=0,ve=0,ye=1,X(),J(!1)}function A(e){var t=e.originalEvent?e.originalEvent:e;n.triggerOnTouchLeave&&N(t,Te=I(x))}function P(){xe.unbind(ae,M),xe.unbind(de,O),xe.unbind(le,$),xe.unbind(ce,E),ue&&xe.unbind(ue,A),J(!1)}function I(e){var t=e,i=H(),o=L(),r=j();return!i||r?t=T:!o||e!=_||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!o&&e==x&&n.triggerOnTouchLeave&&(t=T):t=x,t}function N(e,t){var i,o=e.touches;return(!(!B()||!q())||q())&&(i=F(e,t,d)),(!(!R()||!z())||z())&&!1!==i&&(i=F(e,t,f)),V()&&G()&&!1!==i?i=F(e,t,h):me>n.longTapThreshold&&fe<b&&n.longTap&&!1!==i?i=F(e,t,m):!(1!==ke&&k||!(isNaN(fe)||fe<n.threshold)||!U())&&!1!==i&&(i=F(e,t,p)),t===T&&O(),t===x&&(o&&o.length||O()),i}function F(t,c,u){var g;if(u==d){if(xe.trigger("swipeStatus",[c,pe||null,fe||0,me||0,ke,Se,he]),n.swipeStatus&&!1===(g=n.swipeStatus.call(xe,t,c,pe||null,fe||0,me||0,ke,Se,he)))return!1;
11if(c==x&&B()){if(clearTimeout(Oe),clearTimeout(Ae),xe.trigger("swipe",[pe,fe,me,ke,Se,he]),n.swipe&&!1===(g=n.swipe.call(xe,t,pe,fe,me,ke,Se,he)))return!1;switch(pe){case i:xe.trigger("swipeLeft",[pe,fe,me,ke,Se,he]),n.swipeLeft&&(g=n.swipeLeft.call(xe,t,pe,fe,me,ke,Se,he));break;case o:xe.trigger("swipeRight",[pe,fe,me,ke,Se,he]),n.swipeRight&&(g=n.swipeRight.call(xe,t,pe,fe,me,ke,Se,he));break;case r:xe.trigger("swipeUp",[pe,fe,me,ke,Se,he]),n.swipeUp&&(g=n.swipeUp.call(xe,t,pe,fe,me,ke,Se,he));break;case s:xe.trigger("swipeDown",[pe,fe,me,ke,Se,he]),n.swipeDown&&(g=n.swipeDown.call(xe,t,pe,fe,me,ke,Se,he))}}}if(u==f){if(xe.trigger("pinchStatus",[c,we||null,be||0,me||0,ke,ye,Se]),n.pinchStatus&&!1===(g=n.pinchStatus.call(xe,t,c,we||null,be||0,me||0,ke,ye,Se)))return!1;if(c==x&&R())switch(we){case a:xe.trigger("pinchIn",[we||null,be||0,me||0,ke,ye,Se]),n.pinchIn&&(g=n.pinchIn.call(xe,t,we||null,be||0,me||0,ke,ye,Se));break;case l:xe.trigger("pinchOut",[we||null,be||0,me||0,ke,ye,Se]),n.pinchOut&&(g=n.pinchOut.call(xe,t,we||null,be||0,me||0,ke,ye,Se))}}return u==p?c!==T&&c!==x||(clearTimeout(Oe),clearTimeout(Ae),G()&&!V()?(Ee=re(),Oe=setTimeout(e.proxy(function(){Ee=null,xe.trigger("tap",[t.target]),n.tap&&(g=n.tap.call(xe,t,t.target))},this),n.doubleTapThreshold)):(Ee=null,xe.trigger("tap",[t.target]),n.tap&&(g=n.tap.call(xe,t,t.target)))):u==h?c!==T&&c!==x||(clearTimeout(Oe),clearTimeout(Ae),Ee=null,xe.trigger("doubletap",[t.target]),n.doubleTap&&(g=n.doubleTap.call(xe,t,t.target))):u==m&&(c!==T&&c!==x||(clearTimeout(Oe),Ee=null,xe.trigger("longtap",[t.target]),n.longTap&&(g=n.longTap.call(xe,t,t.target)))),g}function L(){var e=!0;return null!==n.threshold&&(e=fe>=n.threshold),e}function j(){var e=!1;return null!==n.cancelThreshold&&null!==pe&&(e=ee(pe)-fe>=n.cancelThreshold),e}function H(){return!(n.maxTimeThreshold&&me>=n.maxTimeThreshold)}function R(){var e=W(),t=Y(),i=null===n.pinchThreshold||be>=n.pinchThreshold;return e&&t&&i}function z(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function B(){var e=H(),t=L(),n=W(),i=Y();return!j()&&i&&n&&t&&e}function q(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function W(){return ke===n.fingers||n.fingers===y||!k}function Y(){return 0!==Se[0].end.x}
11function U(){return!!n.tap}function G(){return!!n.doubleTap}function V(){if(null==Ee)return!1;var e=re();return G()&&e-Ee<=n.doubleTapThreshold}function X(){Me=0,$e=0}function K(){var e=!1;Me&&(re()-Me<=n.fingerReleaseThreshold&&(e=!0));return e}function J(e){xe&&(!0===e?(xe.bind(le,$),xe.bind(ce,E),ue&&xe.bind(ue,A)):(xe.unbind(le,$,!1),xe.unbind(ce,E,!1),ue&&xe.unbind(ue,A,!1)),xe.data(D+"_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,Se[e]=n,n}function Q(e){var t=void 0!==e.identifier?e.identifier:0,n=function(e){return Se[e]||null}(t);return null===n&&(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 ee(e){if(_e[e])return _e[e].distance}function te(e){return{direction:e,distance:0}}function ne(){return De-Ce}function ie(e,t){var n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+i*i))}function oe(e,t){if(a=t,(n=e).x==a.x&&n.y==a.y)return c;var n,a,l=function(e,t){var n=e.x-t.x,i=t.y-e.y,o=Math.atan2(i,n),r=Math.round(180*o/Math.PI);return r<0&&(r=360-Math.abs(r)),r}(e,t);return l<=45&&l>=0||l<=360&&l>=315?i:l>=135&&l<=225?o:l>45&&l<135?s:r}function re(){return(new Date).getTime()}n=e.extend({},n);var se=k||C||!n.fallbackToMouseEvents,ae=se?C?S?"MSPointerDown":"pointerdown":"touchstart":"mousedown",le=se?C?S?"MSPointerMove":"pointermove":"touchmove":"mousemove",ce=se?C?S?"MSPointerUp":"pointerup":"touchend":"mouseup",ue=se?C?"mouseleave":null:"mouseleave",de=C?S?"MSPointerCancel":"pointercancel":"touchcancel",fe=0,pe=null,he=null,me=0,ge=0,ve=0,ye=1,be=0,we=0,_e=null,xe=e(t),Te="start",ke=0,Se={},Ce=0,De=0,Me=0,$e=0,Ee=0,Oe=null,Ae=null;try{xe.bind(ae,M),xe.bind(de,O)}catch(t){e.error("events not supported "+ae+","+de+" on jQuery.swipe")}this.enable=function(){return this.disable(),xe.bind(ae,M),xe.bind(de,O),xe},this.disable=function(){return P(),xe},this.destroy=function(){P(),xe.data(D,null),xe=null},this.option=function(t,i){if("object"==typeof t)n=e.extend(n,t);else if(void 0!==n[t]){if(void 0===i)return n[t];n[t]=i}else{if(!t)return n;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var i="left",o="right",r="up",s="down",a="in",l="out",c="none",u="auto",d="swipe",f="pinch",p="tap",h="doubletap",m="longtap",g="horizontal",v="vertical",y="all",b=10,w="start",_="move",x="end",T="cancel",k="ontouchstart"in window,S=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!k,C=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!k,D="TouchSwipe";e.fn.swipe=function(n){var i=e(this),o=i.data(D);if(o&&"string"==typeof n){if(o[n])return o[n].apply(o,Array.prototype.slice.call(arguments,1));e.error("Method "+n+" does not exist on jQuery.swipe")}else if(o&&"object"==typeof n)o.option.apply(o,arguments);else if(!(o||"object"!=typeof n&&n))return t.apply(this,arguments);return i},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:w,PHASE_MOVE:_,PHASE_END:x,PHASE_CANCEL:T},e.fn.swipe.directions={LEFT:i,RIGHT:o,UP:r,DOWN:s,IN:a,OUT:l},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:g,VERTICAL:v,AUTO:u},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}}),window.PORTAL={domain:"tuzory.pl",city:"Żory",map:{lat:"50.044700",lng:"18.700200",markerLat:50.0447,markerLng:18.7002,markerLabel:"tuŻory.pl"}};var PORTAL=window.PORTAL||{},PORTAL_DOMAIN=PORTAL.domain||(location.host||"").replace(/^www\./,""),PORTAL_MAP=PORTAL.map||{};"#!"==window.location.hash&&(window.location=window.location.href.split("#")[0]),String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)}
11,$.fn.calendarStrip=function(e){var t=$(".months li a",this),n=$(".weekdays",this);for(var i in e.activeDates)e.activeDates[i]=e.activeDates[i].toDateString();$(".previous-day a",this).click(function(){var t=new Date(n.find("li").first().data("timestamp")),i=t.clone();switch(!0){case 1==t.getDate():i.add(-e.width).days();break;case t.getDate()<=e.width:i.setDate(1);break;default:i.add(-e.width).days()}return r(i),!1}),$(".next-day a",this).click(function(){var t=new Date(n.find("li").last().data("timestamp")),i=t.clone(),o=t.clone().moveToLastDayOfMonth();switch(!0){case t.getDate()==o.getDate():i.add(1).days();break;case t.getDate()>o.getDate()-e.width:i.moveToLastDayOfMonth().add(1-e.width).days();break;default:i.add(1).day()}return r(i),!1}),t.click(a),t.on("contextmenu",a);var o=e.centerDate.clone();function r(i){!function(e){html="",html+="<span>"+e.getFullYear()+"</span>",html+=e.toString("MMMM").capitalize(),t.html(html)}(i),function(t){var i,o,r="";for(i=0;i<e.width;++i)(o=t.clone()).add(i).days(),r+="<li"+($.inArray(o.toDateString(),e.activeDates)>-1?' class="active"':"")+' data-timestamp="'+o.getTime()+'"><a href="'+s(o)+'"><span>'+o.toString("ddd")+"</span>"+o.getDate()+"</a></li>";n.html(r)}(i)}function s(t){return e.linkBase+t.toString("yyyy_MM_dd")+e.linkPostfix}function a(e){var t=new Date(n.find("li").first().data("timestamp")).clone();1==e.which?t.moveToLastDayOfMonth().add(1).day():t.addMonths(-1).setDate(1),r(t),e.preventDefault()}o.add(-Math.floor(e.width/2)).days(),r(o)};var social={};function Airly(){$(".airly-wrapper").length&&$.ajax({type:"GET",url:"/airly-get"}).done(function(e){e&&$(".airly-wrapper").replaceWith(e)})}function AirlyChangeLocalization(){$(document).on("click","[data-sensorid]",function(e){e.preventDefault(),eraseCookie("airly_loc_new"),createCookie("airly_loc_new",$(this).data("sensorid"),999999),window.location.reload()})}function CommercialBreakSystem(){if(!$("#cbreak").hasClass("home"))return!1;$(window).width();var e=new Date,t=e.getMonth()+1,n=e.getUTCDate(),i=e.getFullYear(),o=new Date,r=new Date,s=new Date;o.setHours(0,0,0,0),r.setHours(0,0,0,0);var a=new Date("2024-03-27"),l=new Date("2020-10-22");a.setHours(0,0,0,0),l.setHours(0,0,0,0);var c=new Date("2024-04-02"),u=new Date("2018-10-21");c.setHours(0,0,0,0),u.setHours(0,0,0,0);var d=readCookie("advertcb1_2024-03-27"),f=readCookie("advertcb2_2020-12-15"),p=readCookie("advertcbdatecb1_2024-03-27"),h=readCookie("advertcbdatecb2_2020-12-15");if(void 0===p)m=!1;else var m=new Date(p);if("Invalid Date"===m||m<o)var g=!0;else if(parseInt(d)<1)g=!0;else g=!1;if(void 0===h)v=!1;else var v=new Date(h);if("Invalid Date"===v||v<r)var y=!0;else if(parseInt(f)<1)y=!0;else y=!1;if(s>=a&&s<=c&&g){if(m<o){var b=!0;eraseCookie("advertcb1_2024-03-27"),eraseCookie("advertcbdatecb1_2024-03-27"),createCookie("advertcb1_2024-03-27",1,1),createCookie("advertcbdatecb1_2024-03-27",o,1)}else b=!1;$("#cbreak").removeClass("hidden"),$("#cbreak .cb-1").removeClass("hidden");var w=i+"-"+t+"-"+n,_=!1;function x(){_||(_=!0,d?createCookie("advertcb1_2024-03-27",b?parseInt(d):parseInt(d)+1,1):(createCookie("advertcbdatecb1_2024-03-27",w,1),createCookie("advertcb1_2024-03-27",1,1)),document.getElementById("cbreak").style.display="none")}d=readCookie("advertcb1_2024-03-27"),$(".cb-1 .hideCB").on("click",function(e){e.preventDefault(),x()}),setTimeout(function(){x()},1e4);var T=10,k=setInterval(function(){if((T-=1)<=0)return clearInterval(k),void x();$(".cb-1 .time").text(T)},1e3)}if(r>=l&&r<=u&&y){if(v<r){var S=!0;eraseCookie("advertcb2_2020-12-15"),eraseCookie("advertcbdatecb2_2020-12-15"),createCookie("advertcb2_2020-12-15",1,1),createCookie("advertcbdatecb2_2020-12-15",r,1)}else S=!1;$("#cbreak").removeClass("hidden"),$("#cbreak .cb-2").removeClass("hidden");var C=i+"-"+t+"-"+n,D=!1;function M(){D||(D=!0,f?createCookie("advertcb2_2020-12-15",S?parseInt(f):parseInt(f)+1,1):(createCookie("advertcbdatecb2_2020-12-15",C,1),createCookie("advertcb2_2020-12-15",1,1)),document.getElementById("cbreak").style.display="none")}advertcookie=readCookie("advertcb2_2020-12-15"),$(".hideCB").on("click",function(e){e.preventDefault(),M()}),setTimeout(function(){M()},1e4);var E=8,O=setInterval(function(){if((E-=1)<=0)return clearInterval(O),void M();$(".cb-2 .time").text(E)},1e3)}}function detectIE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)}
11function EventCarouDots(){try{var e=$("#event-carou .carousel-inner >div").length,t=$("#event-carou .carousel-indicators >li").length;if(e<t)for(var n=e;n<t;n++)$("#event-carou .carousel-indicators >li").eq(n).hide()}catch(e){}}function calculateCatalogPrices(){if($("#package-price-year").html(packages[selectedPackage].year),$("#package-price-month").html(packages[selectedPackage].month),companyPackage){var e=12*packages[selectedPackage].price-12*packages[companyPackage].price;e>0&&$("#package-price-add").html(e)}$(".price-container").removeClass("hidden")}function prepareCatalogForm(e){if(e){$('.industry-form *[class*="type-"]').show();var t=$(".industry-form").parents("form"),n=t.data("url")+selectedPackage;t.prop("action",n)}$('.industry-form *[class*="type-"]').not(".type-"+selectedPackage).hide()}function is_touch_device(){return!!("ontouchstart"in window)}function CatalogRollDown(){is_touch_device()?($(".cf-categories li a .roll-down").show(),$(".cf-categories li a .roll-down").on("click",function(e){e.preventDefault()})):$(".cf-categories li a .roll-down").hide()}function ad36060(){try{if($(window).width()>=991){if(0==$(".page-content .row-advert .mobile-hide").outerHeight()){var e=$("#home-news").outerHeight()-$(".home-news-wrapper").outerHeight()-15;$(".page-content .row-advert").css("position","relative"),$(".page-content .row-advert").css("width","360px"),$(".page-content .row-advert").css("float","right"),$(".page-content .row-advert").css("margin-top","-"+e+"px"),$("#home-news").outerHeight()>$(".news-main-page-col").outerHeight()+$(".page-content .row-advert").outerHeight()&&$(".container.page-content").css()}}else $(".gallery-section .page.content").css("overflow","")}catch(e){}}function positionAd(){var e=$(".page-content .row-advert .mobile-hide").outerHeight();if($(".mobile-hide").length&&e>0){if($(window).width()<=768&&$(window).width()>=680)$(".mobile-hide").css("top","-"+$(".news-main-page-col").outerHeight()+"px");else if($(window).width()<680){var t=$(".news-main-page-col").outerHeight()+25;$(".mobile-hide").css("top","-"+t+"px")}else if(1024==$(window).width()){t=$(".news-container >.row:nth-child(2)").outerHeight()-$(".news-container >.row:nth-child(2) .col-sm-8").outerHeight()-25;$(".row-advert").css("position","relative"),$(".row-advert").css("top","-"+t+"px"),$(".row-advert").css("margin-bottom","-"+t+"px")}}else $(".news-main-page-col").css("top","0px")}function skyscraper(){$(".skyscraper").length&&$(".skyscraper").stick_in_parent({offset_top:170})}function validateAmountInput(){$('#paymentForm input[name="amount"]').keyup(function(){"NaN"==parseFloat($(this).val()).toFixed(2)?$('#paymentForm input[name="submit"]').attr("disabled","disabled"):$('#paymentForm input[name="submit"]').removeAttr("disabled")})}function isInt(e){return Number(e)===e&&e%1==0}function isFloat(e){return Number(e)===e&&e%1!=0}function rwdMenu(){let e=document.querySelector(".hamburger-wrapper"),t=document.querySelector(".search-image");e&&e.addEventListener("click",function(e){let t=e.currentTarget.closest(".portal-head");t&&t.classList.toggle("open")}),t&&t.addEventListener("click",function(e){let t=e.currentTarget.closest(".portal-head");t&&t.classList.toggle("open-search")})}function UploadFileNameToInput(){$(".fileToUpload").on("change",function(){var e=$
11(this).attr("id");$el=$("#image-"+e),0==$el.length&&($el=$("input#"+e)),$el.length>0&&$el.attr("value",$(this).val())})}function flatGmap(e){try{var t=[[PORTAL_MAP.markerLat,PORTAL_MAP.markerLng,PORTAL_MAP.markerLabel,"/layout/default/dist/gfx/ico/marker.png"]],n=new google.maps.StyledMapType([],{name:"Styled Map"}),o=new google.maps.LatLngBounds;for(map=new google.maps.Map(document.getElementById(e),{scrollwheel:!1,panorama:!1,clickToGo:!1,draggable:!0,mapTypeId:"roadmap",clickable:!0,navigationControl:!1,streetViewControl:!1,mapTypeControl:!1,stylers:[{color:"#99FF33"}]}),i=0;i<t.length;i++){var r=new google.maps.LatLng(t[i][0],t[i][1]);o.extend(r);var s=new google.maps.MarkerImage(t[i][3],new google.maps.Size(84,109),new google.maps.Point(0,0),new google.maps.Point(42,90));marker=new google.maps.Marker({position:r,map:map,title:t[i][2],icon:s}),map.fitBounds(o)}var a=google.maps.event.addListener(map,"bounds_changed",function(e){this.setZoom(16),google.maps.event.removeListener(a)});map.mapTypes.set("map_style",n)}catch(e){return}map.setMapTypeId("map_style")}function SelectSetActive(){$(".select-list-wrapper .dropdown-menu a").on("click",function(e){var t=$(this).text(),n=$(".select-list-wrapper .current-select").text();$(".select-list-wrapper .current-select").text(t),$(this).text(n)})}function galleryOverlay(e){$(".gallery-overlay #news-img-big").carouFredSel({responsive:!0,circular:!1,infinite:!1,auto:!1,prev:{button:".prev-popup",key:"left"},next:{button:".next-popup",key:"right"},height:"variable",items:{visible:1,width:770,height:"variable"},scroll:{fx:"directscroll",onAfter:function(e){var t=String($(e.items.visible[0]).data("number")),n=String($(e.items.visible[0]).data("url")),i={slider:t};history.pushState(i,"Galeria zdjÄÄ",n),"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview"],n),$(".current-img").text($(e.items.visible[0]).data("number"))}},swipe:{onTouch:!0,onMouse:!1}});$(".gallery-overlay #thumbs-img-slider-popup").carouFredSel({responsive:!0,circular:!0,infinite:!0,auto:!1,next:"#next-popup",swipe:{onTouch:!0,onMouse:!0},items:{visible:{min:2,max:9},width:75,height:75}});$(".gallery-overlay #thumbs-img-slider-popup a").click(function(){return $(".gallery-overlay #news-img-big").trigger("slideTo","#"+this.href.split("#").pop()),$(".current-img").text($(".gallery-overlay #news-img-big").triggerHandler("currentPosition")+1),$(".gallery-overlay #thumbs-img-slider-popup a").removeClass("selected"),$(this).addClass("selected"),!1}
11),$(".popup-gallery-nav a").click(function(){var e=$(".gallery-overlay #news-img-big").triggerHandler("currentPosition")+1;return $(".current-img").text(e),$(".gallery-overlay #thumbs-img-slider-popup a").removeClass("selected"),$(".gallery-overlay #thumbs-img-slider-popup a").eq(e-1).addClass("selected"),!1}),e&&$(".gallery-overlay #news-img-big").trigger("slideTo",e-1),$(document).keyup(function(e){27==e.keyCode&&$(".gallery-overlay").fadeOut(500)})}social.fb={},social.redirect="http://www."+PORTAL_DOMAIN+"/api/redirect",$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(document).ready(function(){$.fn.summernote&&$(".summernote").summernote({height:200,lang:"pl-PL",toolbar:[["style",["bold","italic","underline","clear"]]]}),0!=$("#boiler-counter").length&&BoilerCounter(),setTimeout(fingerprint(),100),"function"==typeof catalogForm&&catalogForm(),0!=$(".arrow.down").length&&0!=$(".developed").length&&ReklamaWSerwisie($(".arrow.down"),$(".developed"));var e,t=readCookie("pd_info_status"),n=readCookie("pd_info_later");if(t||n||$("#pd-modal").modal("show"),$(document).on("click","#pd-modal .btn-pd-later",function(e){e.preventDefault(),createCookie("pd_info_later","1",30),$("#pd-modal").modal("hide")}),$(document).on("click","#pd-modal .btn-pd-ok",function(e){e.preventDefault(),createCookie("pd_info_status","1",3650),$("#pd-modal").modal("hide")}),CommercialBreakSystem(),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&$("body").addClass("firefox-browser"),detectIE()&&$("body").addClass("ie-family-browser"),CatalogRollDown(),$(window).resize(function(){$(".row-advert").css("top","0px"),$(".row-advert").css("margin-bottom","0px")}),"undefined"!=typeof _gaq){var i=$('a[href^="http"]').not('[href*="'+PORTAL_DOMAIN+'"]');i.length&&$.each(i,function(e){$a=$(this),$a.on("click",function(e){$e=$(this),_gaq.push(["_trackEvent","Linki zewnÄtrzne",$e.prop("href"),$e.text()])})})}($(".js-confirm").on("click",function(e){href=$(this).prop("href"),e.preventDefault(),confirm("Czy na pewno chcesz to zrobiÄ?. Operacji nie da siÄ cofnÄ
Ä ani zatrzymaÄ.")&&(window.location=href)}),$(".social-ico.comment-ico").on("click",function(e){e.preventDefault(),$("html, body").animate({scrollTop:$(".news-comments").offset().top},400)}),$("a.tblank, a.tBlank").attr("target","_blank"),$(".btn-resign").on("click",function(e){e.preventDefault(),history.back(1)}),$(".datetimepicker").datetimepicker({lazyInit:!0,format:"Y-m-d H:i",lang:"pl",mask:!0,timepicker:!0}),$(".datepicker").datetimepicker({lazyInit:!0,format:"Y-m-d",lang:"pl",mask:!0,timepicker:!1}
11),$("select[data-img-change]").on("change",function(){var e=$(this).val();$("img[data-img-target]").hide(),$('img[data-img-target="'+e+'"]').show()}),$("select[data-img-change]").change(),$(".announcement-list li.menu-height >a:not(.allow-click)").on("click",function(e){e.preventDefault()}),$('form .calculate-price, form:not(#alertForm) .fileToUpload, form.advert-form select[name="category"]').on("change",function(){var e=$(this).parents("form"),t=[];e.find(".promotion_c_list :checkbox:checked").each(function(e){t[e]=$(this).val()});var n={id:e.find('[name="id"]').val(),userid:e.find('[name="userid"]').val(),type:e.find('[name="type"]').val(),s_www:e.find('[name="s_www"]').is(":checked"),www:e.find('[name="www"]').val(),image_1:e.find("#ftu-1.fileToUpload").val(),image_2:e.find("#ftu-2.fileToUpload").val(),image_3:e.find("#ftu-3.fileToUpload").val(),image_4:e.find("#ftu-4.fileToUpload").val(),image_5:e.find("#ftu-5.fileToUpload").val(),image_6:e.find("#ftu-6.fileToUpload").val(),image_7:e.find("#ftu-7.fileToUpload").val(),promotion:e.find('[name="promotion"]').is(":checked"),city:t,category:e.find('select[name="category"]').val()};$.ajax({type:"POST",url:"/ogloszenia/cena",data:$.param(n),success:function(t){t=jQuery.parseJSON(t),$("#vad-cost").text(t.price),t.forbidden&&($text="Przekroczony limit ogÅoszeÅ promowanych w kategorii w portalu:",$.each(t.forbidden,function(t,n){e.find('.promotion_c_list [value="'+n+'"]').prop("checked",!1),$text=$text+"<br>- "+n}),$("#promo-count-info").html($text))}})}),$("form.advert-form").length&&($("input.publtr").on("click",function(e){$("input.publicate").val(0)}),$("input.submit").on("click",function(e){$("input.publicate").val(1)}),$("form.advert-form").find('.calculate-price[name="promotion"]').trigger("change")),$(".advert-moto-form").length)&&((e={show:["51","52","54"],div:".moto-showhide"}).typField=$('.advert-moto-form select[name="typ"]'),e.markaField=$('.advert-moto-form select[name="marka"]'),e.modelField=$('.advert-moto-form select[name="model"]'),e.cenaField=$('.advert-moto-form input[name="price"]'),e.typ=e.typField.val(),e.marka=e.markaField.val(),e.model=e.modelField.val(),e.id=$('.advert-moto-form input[name="id"]').val(),e.start1=!0,e.start2=!0,$('.advert-moto-form select[name="category"]').on("change",function(){var t=$(this).val();""!=t&&$.inArray(t,e.show)>-1?$(e.div).show():($(e.div).hide(),e.typField.prop("selectedIndex",0),e.markaField.prop("selectedIndex",0),e.modelField.prop("selectedIndex",0),e.cenaField.val(0))}),e.typField.on("change",function(){var t=$(this);e.typ=t.val(),e.markaField.children("option").prop("disabled",!0).hide(),e.markaField.children('option[value^="'+e.typ+'"]').prop("disabled",!1).show(),e.start1||"0"==e.id?e.start1=!1:e.markaField.prop("selectedIndex",0)}),e.markaField.on("change",function(){var t=$(this).val().split(",");e.marka=t[1],e.modelField.children("option").prop("disabled",!0).hide(),e.modelField.children('option[value^="'+e.marka+'"]').prop("disabled",!1).show(),e.start2||"0"==e.id?e.start2=!1:e.modelField.prop("selectedIndex",0)}),$('.advert-moto-form select[name="category"]').change(),e.typField.change(),e.markaField.change(),e.modelField.change());
11$(".moto-search-a").length&&((e={div:".moto-showhide"}).typField=$('.moto-search-a select[name="t"]'),e.markaField=$('.moto-search-a select[name="m"]'),e.modelField=$('.moto-search-a select[name="mo"]'),e.typ=e.typField.val(),e.marka=e.markaField.val(),e.model=e.modelField.val(),e.start1=!0,e.start2=!0,e.typField.on("change",function(){var t=$(this);e.typ=t.val(),e.markaField.children("option").prop("disabled",!0).hide(),e.markaField.children('option[value^="'+e.typ+'"]').prop("disabled",!1).show(),e.start1||"0"==e.id?e.start1=!1:e.markaField.prop("selectedIndex",0)}),e.markaField.on("change",function(){var t=$(this).val().split(",");e.marka=t[1],e.modelField.children("option").prop("disabled",!0).hide(),e.modelField.children('option[value^="'+e.marka+'"]').prop("disabled",!1).show(),e.start2||"0"==e.id?e.start2=!1:e.modelField.prop("selectedIndex",0)}),e.typField.change(),e.markaField.change(),e.modelField.change());if($(".advert-nier-form").length){var o={};o.settings=$nierSettings,o.typ=null,o.start=!0,o.catField=$('.advert-nier-form select[name="category"]'),o.rodzajField=$('.advert-nier-form select[name="a_rodzaj"]'),o.rodzajWrapper=$(".advert-nier-form .advert-nier-rodzaj"),o.id=$('.advert-nier-form input[name="id"]').val(),o.switchFields=function(e){null==e?($(".advert-nier-form input[data-nier-show]").val(null),$(".advert-nier-form input[data-nier-show]").prop("disabled",!0)):$(".advert-nier-form input[data-nier-show]").each(function(){$e=$(this).data("nier-show"),-1==$e.indexOf(e)?$(this).val(null).prop("disabled",!0):$(this).prop("disabled",!1)})},o.rodzajEmpty=function(){o.rodzajField.children('option[style!="display: none;"]').length>0?o.rodzajWrapper.show():o.rodzajWrapper.hide()}
11,o.catField.on("change",function(){var e=$(this).val();o.typ=o.settings.type[e],o.rodzajField.children("option").prop("disabled",!0).hide(),o.rodzajField.children('option[value^="'+o.typ+'"]').prop("disabled",!1).show(),o.rodzajEmpty(),o.start||"0"==o.id?o.start=!1:o.rodzajField.prop("selectedIndex",0),o.switchFields(o.typ)}),o.catField.change()}($(".account-form").length&&$("input.f").on("keyup",function(){var e=$(this),t=e.prop("name"),n=e.val(),i=$('[data-f="'+t+'"]');i.length&&("localNum"==t?n="/"+n:"nip"==t&&(n="NIP: "+n),i.html(n))}),$("[data-slide-trigger]").on("click",function(e){e.preventDefault();var t=$(this).data("slide-trigger"),n=$('[data-slide-target="'+t+'"]');$("html, body").animate({scrollTop:n.offset().top},400)}),"undefined"!=typeof $slideToImages&&1==$slideToImages)&&((r=$("#advert-img-big")).length&&$("html, body").animate({scrollTop:r.offset().top},400));rwdMenu(),$(".carousel").swiperight(function(){$(this).carousel("prev")}),$(".carousel").swipeleft(function(){$(this).carousel("next")}),$(".switch-tab").on("click",function(e){if(e.preventDefault(),$(this).data("href"))var t=$(this).data("href");else t=$(this).attr("href");$('.nav-tabs a[href="'+t+'"], .nav-pills a[href="'+t+'"]').tab("show")});var r,s=document.location.toString();if(s.match("#")&&$('.nav-tabs a[href="#'+s.split("#")[1]+'"], .nav-pills a[href="#'+s.split("#")[1]+'"]').tab("show"),$(".nav-tabs a, .nav-pills a").on("shown.bs.tab",function(e){window.location.hash=e.target.hash}),$(".history-back").click(function(){return window.history.back(),!1}),$(".calendar-strip").length&&("undefined"==typeof calendarStripActiveDates&&(calendarStripActiveDates=[]),$(".calendar-strip").calendarStrip({activeDates:calendarStripActiveDates,centerDate:new Date,width:10,linkBase:"kalendarz-na-dzien,cod2-",linkPostfix:".html"})),$("#home-news-mobile").length&&$("#home-news-mobile").carouFredSel({auto:{pauseOnHover:"resume",progress:"#home-news-mobile-timer",timeoutDuration:7e3},pagination:{container:"#home-news-mobile-pagination"},swipe:{onTouch:!0,onMouse:!0}},{transition:!0}),$("#comment-home-slider").length&&$("#comment-home-slider").carouFredSel({next:".comment-next",prev:".comment-prev",direction:"up",infinite:!1,auto:!1,scroll:{items:1,duration:450,timeoutDuration:0,easing:"linear"},items:{visible:{min:1,max:1},height:"variable"},swipe:{onMouse:!1,onTouch:!0}}),$("[data-tooltip]").on("click",function(e){e.preventDefault();var t=$(this).data("tooltip");$(".company-tooltip").fadeOut(500),$(t).fadeIn(500)}),$(".company-tooltip").on("click",function(e){e.stopPropagation()}),$(".company-tooltip .ico-close").on("click",function(e){e.stopPropagation(),$(this).parent().fadeOut(500)}),$(".all-video-cat-btn").on("click",function(){$(this).toggleClass("active")}),$("#thumbs-img-slider a").length>=5){let e=document.querySelector("#thumbs-img-slider"),t=!(!e||!e.dataset.swipe);$("#thumbs-img-slider").carouFredSel({responsive:!0,circular:!0,infinite:!1,auto:!1,prev:{button:"#prev",key:"left"},next:{button:"#next",key:"right"},items:{visible:{min:2,max:9},width:175,height:100},swipe:{onTouch:t,onMouse:t}})}else $(".thumbs-img-slider-wrapper").css("display","inline-block");"undefined"!=typeof $image_scroll&&1==$image_scroll&&($image_id>1&&$("#thumbs-img-slider").trigger("slideTo",[$(this),$thumb_slide]),(r=$(".imgid-target")).length&&$("html, body").animate({scrollTop:r.offset().top-15},400));if($("[data-href]").on("click",function(e){"a"!=e.target.nodeName&&(window.location.href=$(this).data("href"))}),$("[data-href-blank]").on("click",function(){window.open($(this).data("href-blank"))}),$("#commentForm textarea").on("click",function(){$(this).css("height","200px")}),$("body").click(function(e){var t=$(e.target);t.is("#commentForm textarea")||$("#commentForm textarea").css("height","51px"),t.is(".all-video-cat-btn")||$(".all-video-cat-btn").removeClass("active")}),$("#commentForm").on("submit",function(){if($txt=$('#commentForm textarea[name="comment"]').val(),""==$txt)return!1;$('#commentForm input[type="submit"]').prop("disabled","disabled")}),galleryOverlay(),$(".close-popup-gallery").on("click",function(){$("body").attr("style","overflow: auto"),$(".gallery-overlay").fadeOut(500),$(document).find(".sumome-share-client").fadeIn(500),$("#sticky-footer-adv").fadeIn()}),$(document).keyup(function(e){"Escape"===e.key&&$("body").attr("style","overflow: auto")}),$('[data-gallery="show"]').on("click",function(e){e.preventDefault(),$("body").attr("style","overflow: hidden!important"),$(".gallery-overlay").fadeIn(500),$(document).find(".sumome-share-client").fadeOut(500),$("#sticky-footer-adv").fadeOut(),galleryOverlay($(this).data("img-id"))}
11),UploadFileNameToInput(),SelectSetActive(),$("#officeMap").length)if("undefined"!=typeof google&&void 0!==google.maps)flatGmap("officeMap");else{var a=setInterval(function(){"undefined"!=typeof google&&void 0!==google.maps&&(clearInterval(a),flatGmap("officeMap"))},100);setTimeout(function(){clearInterval(a)},1e4)}if($(".add-another-attachment").on("click",function(){$(".row-upload.hide").eq(0).removeClass("hide"),$(".row-upload.hide").length||$(".add-another-attachment").hide()}),$(".menu-height").each(function(){$(this).on("mouseenter",function(){if($(this).children("div").length>0){var e=parseInt($(this).children("div").css("height").replace("px",""),10),t=parseInt($(this).children("a").css("height").replace("px",""),10),n=e+t+"px";$(this).css("height",n),$(this).on("mouseleave",function(){$(this).css("height",t+"px")})}})}),$(".btn-display").each(function(e){$("block-visibility");$(this).on("click",function(e){var t=$(this).closest(".upper-text").find(".block-visibility");"none"===t.css("display")?(t.css("display","block"),$(this).html("zwiÅ ▴")):(t.css("display","none"),$(this).html("rozwiÅ ▾")),e.preventDefault()})}),$("#map_canvas").length>0)if("undefined"!=typeof google&&void 0!==google.maps)initialize(PORTAL_MAP.lat,PORTAL_MAP.lng,13);else{var l=setInterval(function(){"undefined"!=typeof google&&void 0!==google.maps&&(clearInterval(l),initialize(PORTAL_MAP.lat,PORTAL_MAP.lng,13))},100);setTimeout(function(){clearInterval(l)},1e4)}comments_voting(),object_voting(),validateAmountInput(),setTimeout(function(){$(window).resize()},500),$(".adult-check .btn-ok").on("click",function(e){e.preventDefault(),createCookie("cookieadult","true",30),window.location.reload()}),$(".katalog-trigger").on("click",function(e){e.preventDefault();var t=$(this),n=$("."+t.data("target"));t.toggleClass("active"),n.is(":visible")?n.slideUp():n.slideDown()}),$("h3.katalog-header").css("cursor","pointer").on("click",function(e){$(".katalog-trigger").trigger("click")}),null!==typeof selectedPackage&&"undefined"!=typeof selectedPackage&&$(".industry-form").length&&prepareCatalogForm(),$("#pckg-change").on("click",function(e){e.preventDefault,$("#packages-modal").off("shown.bs.modal").on("shown.bs.modal",function(){$("#packages-modal .pckg-change").off("click").on("click",function(e){e.preventDefault(),selectedPackage=$(this).data("package"),prepareCatalogForm(!0),$(".package-name").html(packages[selectedPackage].name),calculateCatalogPrices(),$("#packages-modal").modal("hide"),"function"==typeof initializeGMap&&!0!==window.GMapInitialized&&(window.GMapInitialized=!0,initializeGMap()),$("html, body").animate({scrollTop:0})})}).modal("show").css("position","fixed").css("left","0")}),$(".bxslider").length&&$(".bxslider").bxSlider({pager:!1,adaptiveHeight:!0,responsive:!0,slideWidth:500}),$("[data-c]").on("click",function(e){e.preventDefault();var t=$(this),n=t.data("type"),i=t.data("c");if("tel"==n)var o="tel:"+i;else if("mail"==n)o="mailto:"+i;t.text(i).prop("href",o).off("click")}),$(".details[data-item]").on("click",function(e){e.preventDefault();var t=$(this).data("item");setTimeout(function(){$('.item[data-item="'+t+'"').css("display","block")},100)}),reklamaEqualizeHeightOfCarouselItems(),thankYouModal(),pomagamyJs(),galleryPopupMergedSwipe(),galleryPopupMergedEsc()});var map=null,geocoder=null,markerOptions=null,markersArray=[],image="layout/default/gfx/map/blue_Marker.png",shadow="layout/default/gfx/map/Marker_shadow.png";function initialize(e,t,n){var i=new google.maps.Point(5,1),o=new google.maps.Point(10,34),r=new google.maps.LatLng(e,t),s={zoom:n,center:r,mapTypeId:google.maps.MapTypeId.ROADMAP,size:[1170,600],panControl:!0,mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},scaleControl:!0,streetViewControl:!0,overviewMapControl:!0};map=new google.maps.Map(document.getElementById("map_canvas"),s);var a=document.createElement("div");a.style.padding="5px";var l=document.createElement("div");l.style.backgroundColor="white",l.style.borderStyle="solid",l.style.borderWidth="2px",l.style.cursor="pointer",l.style.textAlign="center",l.title="Legenda korków korkowo.pl",l.innerHTML='<div style="text-align:center;padding-left:8px;"><a href="http://korkowo.pl" target="_blank"><img src="/layout/default/gfx/map/k_map_legend.png" alt="Legenda korków"></a></div>',a.appendChild(l);var c=document.createElement("div");c.style.fontFamily="Arial,sans-serif",c.style.fontSize="12px",c.style.paddingLeft="4px",c.style.paddingRight="4px",c.style.paddingBottom="4px",c.innerHTML="<strong>Legenda korków</strong>",l.appendChild(c),map.controls[google.maps.ControlPosition.TOP_RIGHT].push(a);var u=new google.maps.Marker({position:r,map:map,icon:image,shadow:shadow,infoWindowAnchor:i,iconAnchor:o,draggable:!0}),d=new google.maps.LatLng(e,t);
11u.setMap(map),showLinkToTarget(d),markersArray.push(u);var f=new google.maps.ImageMapType({getTileUrl:function(e,t){Math.pow(2,t);return"http://map3.korkowo.pl/traffic/layer-traffic/"+t+"/"+e.x+"/"+e.y+".png"},tileSize:new google.maps.Size(256,256),isPng:!0,maxZoom:16,minZoom:6});map.overlayMapTypes.insertAt(0,f),google.maps.event.addListener(map,"zoomend",function(e,t){centerPoint=map.getCenter(),showLinkToTarget(centerPoint)}),google.maps.event.addListener(map,"click",function(e){var t=new google.maps.LatLng(e.latLng.lat(),e.latLng.lng()),n=new google.maps.Marker({map:map,icon:image,shadow:shadow,infoWindowAnchor:i,iconAnchor:o,draggable:!0});markersArray[0].setMap(null),n.setPosition(t),n.setMap(map),markersArray[0]=n,window.setTimeout(function(){map.panTo(t)},1e3),showLinkToTarget(t)}),geocoder=new google.maps.Geocoder}function showAddress(e,t){1==t&&(e=e+" "+(window.PORTAL&&window.PORTAL.city||"Rybnik")),geocoder&&geocoder.geocode({address:e},function(e,t){if(t==google.maps.GeocoderStatus.OK){var n=e[0].geometry.location,i=n.lat().toString().substr(0,12),o=n.lng().toString().substr(0,12),r=new google.maps.LatLng(i,o),s=new google.maps.Marker({map:map,icon:image,shadow:shadow,infoWindowAnchor:infoWindowAnchor,iconAnchor:iconAnchor,draggable:!0});map.setCenter(r,15),markersArray[0].setMap(null),s.setPosition(r),s.setMap(map),markersArray[0]=s,window.setTimeout(function(){map.panTo(r)},1e3),showLinkToTarget(r)}else alert("error: "+t+" nie znaleziono")})}function showLinkToTarget(e){var t=e.toString();t=(t=(t=(t=t.replace(/\(/g,"")).replace(/\)/g,"")).replace(/ /g,"")).replace(/-/g,"M"),points=t.split(","),xp=points[0],yp=points[1],z=map.getZoom(),targetLink="http://www."+PORTAL_DOMAIN+"/plan-miasta,pms6-scp-x="+xp+"+y="+yp+"+z="+z+".html",document.linkTargetForm.linkToTarget.value=targetLink}function showCoordinates(e,t,n,i,o){map.setCenter(new GLatLng(e,t),n);var r=new GLatLng(e,t),s=new google.maps.Marker(r,markerOptions);map.addOverlay(s),""!=i&&(HTML='<span class="TXT_FG TXT_12 TXT_DY"><B>'+i+'</B></span><br><span class="TXT_FT TXT_11 TXT_G">'+o+"</span>",s.openInfoWindowHtml(HTML)),showLinkToTarget(r)}function comments_voting(){if("comments"==window.location.hash.substr(1)){var e=$(".news-comments");e.length&&$("html, body").animate({scrollTop:e.offset().top},400)}$(".comment-minus, .comment-plus").on("click",function(e){e.preventDefault();var t=$(this),n=$(this).text(),i=t.parent(),o={id:t.parent().data("cid"),action:t.data("action"),fgp:window.fingerprint};$.ajax({type:"POST",url:"/comments,vote",data:$.param(o),success:function(e){"yes"==e.update&&(t.text(parseInt(n)+1),!0===e.both&&("+1"==e.action?$i=i.find(".minus"):$i=i.find(".plus"),$i.text(parseInt($i.text())-1)))}})}),$(".comment-mod").on("click",function(e){e.preventDefault();var t=$(this),n={id:t.parent().data("cid")};$.ajax({type:"POST",url:"/comments,moderate",data:$.param(n),success:function(e){"success"==e.status&&t.hide()}})})}function object_voting(){$(".rating-minus, .rating-plus").on("click",function(e){e.preventDefault();var t=$(this),n=t.find(".count"),i=n.text(),o=t.closest(".comment-rate"),r={id:o.data("cid"),action:t.data("action")};$.ajax({type:"POST",url:"/rating,vote",data:$.param(r),success:function(e){"yes"==e.update&&(n.text(parseInt(i)+1),!0===e.both&&("+1"==e.action?$i=o.find(".minus .count"):$i=o.find(".plus .count"),$i.text(parseInt($i.text())-1)))}})})}function createCookie(e,t,n){var i="."+window.location.hostname.replace("www.","").replace("blogi.","").replace("pomagamy.","").replace("dev.","");if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var r="; expires="+o.toGMTString()}else r="";document.cookie=e+"="+t+r+";domain="+i+";path=/;secure"}function readCookie(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}function eraseCookie(e){createCookie(e,"",-1)}function skyscraper(){if($(".skyscraper").length){var e=$(window).scrollTop();if($("#div-gpt-ad-1466056514088-0").length)var t=140+$("#div-gpt-ad-1466056514088-0").height();else t=140+0;var n=$(".skyscraper-container").outerHeight()-470;if(e>=t)if(e>n){$(".page-footer").outerHeight();$(".skyscraper").is(":visible")&&($(".skyscraper").css("position","absolute"),$(".skyscraper").css("top","auto"),$(".skyscraper").css("bottom","10px"))}else $(".skyscraper").is(":visible")&&($(".skyscraper").css("position","fixed"),$(".skyscraper").css("top","10px"),$(".skyscraper").css("bottom","auto"));else if($(".skyscraper").is(":visible")){var i=205-e;$(".skyscraper").css("position","fixed"),$(".skyscraper").css("top",i+"px"),$(".skyscraper").css("bottom","auto")}
11if($(window).scroll(function(){var e=$(window).scrollTop(),n=$(".skyscraper-container").outerHeight()-470;if(e>=t)if(e>n){$(".page-footer").outerHeight();$(".skyscraper").is(":visible")&&($(".skyscraper").css("position","absolute"),$(".skyscraper").css("top","auto"),$(".skyscraper").css("bottom","10px"))}else $(".skyscraper").is(":visible")&&($(".skyscraper").css("position","fixed"),$(".skyscraper").css("top","10px"),$(".skyscraper").css("bottom","auto"));else if($(".skyscraper").is(":visible")){var i=205-e;$(".skyscraper").css("position","fixed"),$(".skyscraper").css("top",i+"px"),$(".skyscraper").css("bottom","auto")}}),$(window).width()<=1366&&$(window).width()>=1260&&$(".skyscraper").is(":visible")){var o=$(".skyscraper-container").children();$("#div-gpt-ad-1466056514088-0").css("position","relative"),$("#div-gpt-ad-1466056514088-0").css("left","-35px"),$("body >.container-fluid").css("position","relative"),$("body >.container-fluid").css("left","-35px"),$.each(o,function(e,t){$(this).hasClass("skyscraper")||$(this).hasClass("gallery-section")||($(this).css("position","relative"),$(this).css("left","-25px")),$(this).hasClass("container-fluid")&&($(".page-content").css("position","relative"),$(".page-content").css("left","-25px"),$(".gallery-section .page-content").css("left","-45px"),$(".neighbors-section").css("left","0"),$(".neighbors-section >.page-content").css("left","-45px"))})}$(window).width()<1260&&$(".skyscraper").hide(),$(".skyscraper .close-ad").on("click",function(){$(".skyscraper").hide()})}}function statusChangeCallback(e){"connected"!==e.status&&clearSessionFB()}function clearSessionFB(){$.ajax({type:"POST",url:"/api/clear"})}function checkLoginState(){FB.getLoginStatus(function(e){statusChangeCallback(e)})}function fingerprint(){try{(new Fingerprint2).get(function(e){window.fingerprint=e,createCookie("portalcomments",e,730)})}catch(e){return}}function catalogForm(){$('.account-trigger > input[type="checkbox"]').is(":checked")&&($("#no_account_cnt").hide(),$("#has_account_cnt").show()),$('.account-trigger > input[type="checkbox"]').on("change",function(e){$(this).is(":checked")?($("#no_account_cnt").slideUp(),$("#has_account_cnt").slideDown()):($("#no_account_cnt").slideDown(),$("#has_account_cnt").slideUp())})}function reklamaEqualizeHeightOfCarouselItems(){var e=$("#reklama-w-serwisie #home-gallery .carousel-inner .item"),t=200;e.each(function(){$(this).height()>t&&(t=$(this).height())}),e.each(function(){$(this).height(t)})}function thankYouModal(){var e=$("#thank-you-modal");e.length&&e.modal("show")}function pomagamyJs(){$(".page-pomagamy nav ul li a[data-target]").on("click",function(e){e.preventDefault();var t=$(this).data("target");""!=t&&$("#"+t).length&&$([document.documentElement,document.body]).animate({scrollTop:$("#"+t).offset().top},500)})}function ReklamaWSerwisie(e,t){e.on("click",function(n){n.preventDefault(),e.find("img").toggleClass("active"),t.slideToggle("slow")})}function BoilerCounter(){if(0!=$("#boiler-counter").lengt){const e=new Date("Jan 1, 2022 00:00:00").getTime(),t=function(){const t=(new Date).getTime(),i=e-t,o=String(Math.floor(i/864e5)),r=String(Math.floor(i%864e5/36e5)),s=String(Math.floor(i%36e5/6e4)),a=String(Math.floor(i%6e4/1e3));$("#boiler-counter .fs-counter-item").each(function(e){switch(e){case 0:this.innerHTML=o[2]?o[0]:0;break;case 1:this.innerHTML=o[2]?o[1]:o[1]?o[0]:0;break;case 2:this.innerHTML=o[2]||o[1]||o[0];break;case 3:this.innerHTML=r[1]?r[0]:0;break;case 4:this.innerHTML=r[1]||r[0];break;case 5:this.innerHTML=s[1]?s[0]:0;break;case 6:this.innerHTML=s[1]||s[0];break;case 7:this.innerHTML=a[1]?a[0]:0;break;case 8:this.innerHTML=a[1]||a[0]}}),i<0&&(clearInterval(n),$("#boiler-counter .fs-counter-item").each(function(){this.innerHTML=0}),$("#boiler-counter .fs-counter").css("display","none"))},n=setInterval(t,1e3);t()}}$(function(){function e(e,i,o){return e&&($(e).parent().find("a").removeClass("active"),$(e).addClass("active")),$("#home-events").load(function(e,t){var i="kalendarz-na-dzien,cod2-"+n(e);t&&(i+="-"+n(t));return i+".html"}(i,o),function(){$("#events-buffer").html($("#home-events .carousel-inner").html()),$("#event-types ul a").click(t),EventCarouDots()}),!1}function t(e){$("#event-types button span:first-child").html($(this).html());var t=$(this).attr("href").slice(1),n=[];$("#events-buffer li").each(function(e,i){$(i).data("type")!=t&&0!=t||n.push(i)});var i,o="";for(i in n)i%5==0&&(o+='<div class="item'+(0==i?" active":"")+'" data-href="#"><ul class="dot-gray-list">'),o+=n[i].outerHTML,i%5==4&&(o+="</ul></div>");i%5!=4&&(o+="</ul></div>"),$("#home-events .carousel-inner").html(o);var r=Math.ceil((Number(i)+1)/5);if(o="",r>
111)for(o='<li data-target="#event-carou" data-slide-to="0" class="active"></li>',i=1;i<r;++i)o+='<li data-target="#event-carou" data-slide-to="'+i+'"></li>';$("#home-events .carousel-indicators").html(o),e.preventDefault()}function n(e){return e.toString("yyyy_MM_dd")}$(".calendar-left a.today").click(function(){return e(this,new Date)}),$(".calendar-left a.tomorrow").click(function(){return e(this,new Date.parse("tomorrow"))}),$(".calendar-left a.weekend").click(function(){var t,n;switch((new Date).getDay()){case 5:t=new Date,n=Date.next().sunday();break;case 6:t=Date.parse("yesterday"),n=Date.parse("tomorrow");break;case 0:t=Date.parse("2 days ago"),n=new Date;break;default:t=Date.next().friday(),n=Date.next().sunday()}return e(this,t,n)}),e(null,new Date),skyscraper()}),$(document).ready(function(){}),logInWithFacebook=function(){return FB.login(function(e){e.authResponse&&window.location.reload()}),!1},window.fbAsyncInit=function(){};var body_observer=new MutationObserver(function(e){"class"===e[0].attributeName&&document.body.classList.contains("adfm-fullscreen")&&document.querySelector("body").classList.remove("adfm-fullscreen","adfm-fullscreen-mouse","adfm-zindex-auto")}),html_observer=new MutationObserver(function(e){if("class"===e[0].attributeName){var t=document.querySelector("html");t.classList.contains("adfm-fullscreen")&&t.classList.remove("adfm-fullscreen","adfm-fullscreen-mouse","adfm-zindex-auto")}}),config={attributes:!0};function galleryPopupMergedSwipe(){let e=document.querySelector(".gallery-overlay-new .news-gallery-wrapper .news-img-slider .slider");var t,n;e&&(e.addEventListener("touchstart",function(e){t=e.touches[0].clientX,n=e.touches[0].clientY},!1),e.addEventListener("touchend",function(e){var i=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY;let r=i-t,s=o-n;if(Math.abs(r)>Math.abs(s)){let e=parseFloat(r/window.screen.width);if(e<-.3){let e=document.querySelector(".gallery-overlay-new .popup-gallery-nav-new .next-popup");e&&e.click()}else if(e>.3){let e=document.querySelector(".gallery-overlay-new .popup-gallery-nav-new .prev-popup");e&&e.click()}}},!1))}function galleryPopupMergedEsc(){let e=document.querySelector(".gallery-overlay-new");if(e){let t=e.querySelector(".close-popup-gallery-new"),n=t?t.getAttribute("href"):null;n&&document.addEventListener("keydown",e=>{e.preventDefault(),"Escape"===e.key&&(window.location.href=n)})}}function verticalGalleryHandler(){const e=$(".gallery-vertical"),t=$(".js-scroll-to-gallery");if(e){const n=e.find(".news-vertical-gallery-wrapper"),i=window.location.href;n.each((e,t)=>{new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting&&1===t.intersectionRatio){const e=t.target.getAttribute("data-nm-image-url");e&&(window.history.pushState({},"",e),"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview"],e))}else(!t.isIntersecting&&t.boundingClientRect.top>0&&1===e||!t.isIntersecting&&t.boundingClientRect.top<0&&e===n.length-1)&&window.history.pushState({},"",i)})},{threshold:1}).observe(t)}),t.each((t,n)=>{n.addEventListener("click",t=>{let n;t.preventDefault(),n="IMG"===t.target.tagName?t.target.closest(".js-scroll-to-gallery")?.getAttribute("href"):t.target.getAttribute("href");const i=e.find(`[data-nm-image-url="${n}"]`),o=i[0]?.getBoundingClientRect().top+window.pageYOffset-200;window.scrollTo({top:o,behavior:"smooth"})})})}}body_observer.observe(document.body,config),html_observer.observe(document.querySelector("html"),config),document.addEventListener("DOMContentLoaded",()=>{verticalGalleryHandler()});const shareButtons=document.querySelectorAll(".js-news-share-button");shareButtons.forEach(e=>{navigator.share?e.addEventListener("click",async e=>{e.preventDefault();try{await navigator.share({title:document.title,url:window.location.href})}catch(e){}}):e.style.display="none"});const passwordInputs=document.getElementsByClassName("password"),ruleCase=document.getElementById("rule-case"),ruleSpecial=document.getElementById("rule-special"),ruleLength=document.getElementById("rule-length");function toggleClass(e,t){e.classList.toggle("valid",t)}
11Array.from(passwordInputs).forEach(e=>{const t=e.closest(".password-wrapper")?.querySelector(".toggle-password");t&&t.addEventListener("click",function(){const t="password"===e.type;e.type=t?"text":"password"}),e.addEventListener("input",()=>{const t=e.value,n=/[a-z]/.test(t),i=/[A-Z]/.test(t);toggleClass(ruleCase,n&&i);const o=/[!@#$%^&*(),.?":{}|<>0-9]/.test(t);toggleClass(ruleSpecial,o),toggleClass(ruleLength,t.length>=8)})}),document.getElementById("togglePassword")?.addEventListener("click",function(){const e="password"===passwordInput.type;passwordInput.type=e?"text":"password"});const copyButtons=document.querySelectorAll(".js-button-copy");copyButtons.forEach(e=>{const t=e.getAttribute("data-nm-link");t&&e.addEventListener("click",async n=>{n.preventDefault();try{await navigator.clipboard.writeText(t),$(e).tooltip({title:"Skopiowano link do schowka",trigger:"manual"}).tooltip("show"),setTimeout(()=>{$(e).tooltip("hide")},2e3)}catch(e){}})});const goBackButton=document.querySelector(".js-button-goback");if(goBackButton){goBackButton.addEventListener("click",e=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})});const e=document.querySelector(".news-goback-sentinel"),t=new IntersectionObserver(e=>{e.forEach(e=>{!e.isIntersecting&&e.boundingClientRect.top<0?goBackButton.classList.add("visible"):goBackButton.classList.remove("visible")})});e&&t.observe(e)}function AC_AddExtension(e,t){return-1!=e.indexOf("?")?e.replace(/\?/,t+"?"):e+t}function AC_Generateobj(e,t,n){var i="<object ";for(var o in e)i+=o+'="'+e[o]+'" ';for(var o in i+=">",t)i+='<param name="'+o+'" value="'+t[o]+'" /> ';for(var o in i+="<embed ",n)i+=o+'="'+n[o]+'" ';i+=" ></embed></object>",document.write(i)}function AC_FL_RunContent(){var e=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(e.objAttrs,e.params,e.embedAttrs)}function AC_SW_RunContent(){var e=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(e.objAttrs,e.params,e.embedAttrs)}function AC_GetArgs(e,t,n,i,o){var r=new Object;r.embedAttrs=new Object,r.params=new Object,r.objAttrs=new Object;for(var s=0;s<e.length;s+=2){switch(e[s].toLowerCase()){case"classid":break;case"pluginspage":r.embedAttrs[e[s]]=e[s+1];break;case"src":case"movie":e[s+1]=AC_AddExtension(e[s+1],t),r.embedAttrs.src=e[s+1],r.params[n]=e[s+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":r.objAttrs[e[s]]=e[s+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"id":case"tabindex":r.embedAttrs[e[s]]=r.objAttrs[e[s]]=e[s+1];break;default:r.embedAttrs[e[s]]=r.params[e[s]]=e[s+1]}}return r.objAttrs.classid=i,o&&(r.embedAttrs.type=o),r}function Counter(e,t,n){setInterval(function(){var n,o,r,s,a=Math.abs(e)-new Date;e<0&&(a=-a);a<0&&(clearInterval(this.timer),a=0);s=i((a/=1e3)%60),r=i((a/=60)%60),o=i((a/=60)%24),n=i(a/24),t(n,o,r,s)},1e3);function i(e){return e=Math.floor(e),n?e<10?"0"+e:e.toString():e}n||(zeropad=!1)}function czasu(e,t){var n={"milleniów":["millenium","millenia"],"wieków":["wiek","wieki"],lat:["rok","lata"],"kwartaÅów":["kwartaÅ","kwartaÅy"],"miesiÄcy":["miesiÄ
c","miesiÄ
ce"],tygodni:["tydzieÅ","tygodnie"],dni:["dzieÅ","dni"]};return n[t]||(n[t]=[t+"a",t+"y"]),1==e?n[t][0]:(e>21&&(e%=10),e>=2&&e<=4?n[t][1]:t)}$("#newsTabs a").click(function(e){e.preventDefault(),$(this).tab("show")}),$.fn.countDown=function(e,t,n){var i=this;t||(t=function(e,t,n,o){$(".days",i).html(e),$(".hours",i).html(t),$(".minutes",i).html(n),$(".seconds",i).html(o)}),new Counter(e,t,n)},$.fn.countUp=function(e,t,n){$(this).countdown(-e,t,n)},$(function(){$("#voting .details").click(function(){return $("#voting #details-popup .item").hide(),$('#voting #details-popup .item[data-item="'+$
11(this).data("item")+'"]').show().css("display","flex"),$("#voting #details-popup").fadeIn().css("display","flex"),$("#sticky-footer-adv").fadeOut(),!1}),$("#voting .popup a.close-btn").click(function(){return $("#voting .popup").fadeOut(),$("#sticky-footer-adv").fadeIn(),!1}),$("#voting-results .timer").length&&$("#voting-results .timer").countDown(new Date.parse(votingDate),function(e,t,n){$("#voting-results .days.digits").html(e),$("#voting-results .days.txt").html(czasu(e,"dni")),$("#voting-results .hours.digits").html(t),$("#voting-results .hours.txt").html(czasu(t,"godzin")),$("#voting-results .minutes.digits").html(n),$("#voting-results .minutes.txt").html(czasu(n,"minut"))}),$("#voting-results .vote").click(function(){var e=$(this).data("voting-item-id");return $("#voting #voting-popup a.vote-fb").attr("href","/voting/vote_fb/"+e),$("#voting #voting-popup a.vote-user").attr("href","/voting/vote_user/"+e),$("#voting #voting-popup a.vote-anon").attr("href","/voting/vote/"+e),$("#voting #voting-popup").fadeIn().css("display","flex"),!1})});const NmRestrictedContent={cookieName:"nmrc",cookieDays:30,redirectTo:"/",adult:0,start:function(){this.getFromCookie(),this.addButtonListener()},removeOverlay:function(){document.getElementById("rc-overlay").remove()},redirect:function(){window.location.href=this.redirectTo},addButtonListener:function(){let e=document.querySelectorAll("[data-rcbutton][data-rcaction]");if(e.length)for(let t=0;t<e.length;t++){e[t].addEventListener("click",function(e){let t=e.target.getAttribute("data-rcaction");"yes"==t?(NmRestrictedContent.grant(),NmRestrictedContent.save(),NmRestrictedContent.removeOverlay()):"no"==t&&(NmRestrictedContent.deny(),NmRestrictedContent.save(),NmRestrictedContent.redirect())},!1)}},grant:function(){this.adult=1},deny:function(){this.adult=0},getFromCookie:function(){let e=this.readFromCookie();return!1!==e&&"0"!=e&&(this.adult=e,!0)},save:function(){this.setCookie(this.adult)},readFromCookie:function(){let e=this.getCookie();return"string"==typeof e&&e},setCookie:function(e){let t=new Date;t.setTime(t.getTime()+24*this.cookieDays*60*60*1e3);let n="expires="+t.toUTCString();document.cookie=this.cookieName+"="+e+"; "+n+"; path=/; samesite=lax"},getCookie:function(){let e=this.cookieName+"=",t=document.cookie.split(";");for(let n=0;n<t.length;n++){let i=t[n];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return!1}};document.addEventListener("DOMContentLoaded",function(){let e=NmRestrictedContent.getFromCookie();try{if(!1===e&&"undefined"!=typeof RC_OVERLAY){let e=document.createElement("template");html=RC_OVERLAY.trim(),e.innerHTML=html,document.body.appendChild(e.content.firstChild),NmRestrictedContent.start()}}catch(e){}},!1);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.