!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(C,e){function t(e,t){return t.toUpperCase()}var d=[],h=C.document,u=d.slice,m=d.concat,s=d.push,r=d.indexOf,n={},i=n.toString,v=n.hasOwnProperty,g={},o="1.12.4",T=function(e,t){return new T.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,l=/-([\da-z])/gi;function p(e){var t=!!e&&"length"in e&&e.length,n=T.type(e);return"function"!==n&&!T.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}T.fn=T.prototype={jquery:o,constructor:T,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return T.each(this,e)},map:function(n){return this.pushStack(T.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:d.sort,splice:d.splice},T.extend=T.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||T.isFunction(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(r=arguments[s]))for(i in r)e=a[i],a!==(n=r[i])&&(l&&n&&(T.isPlainObject(n)||(t=T.isArray(n)))?(o=t?(t=!1,e&&T.isArray(e)?e:[]):e&&T.isPlainObject(e)?e:{},a[i]=T.extend(l,o,n)):void 0!==n&&(a[i]=n));return a},T.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===T.type(e)},isArray:Array.isArray||function(e){return"array"===T.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!T.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==T.type(e)||e.nodeType||T.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!g.ownFirst)for(t in e)return v.call(e,t);for(t in e);return void 0===t||v.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e},globalEval:function(e){e&&T.trim(e)&&(C.execScript||function(e){C.eval.call(C,e)})(e)},camelCase:function(e){return e.replace(c,"ms-").replace(l,t)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(p(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(a,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?T.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(r)return r.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!=a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(p(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return m.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(r=e[t],t=e,e=r),T.isFunction(e)?(n=u.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||T.guid++,i):void 0},now:function(){return+new Date},support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=d[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var f=function(n){function d(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function r(){x()}var e,h,w,o,a,m,p,v,k,c,l,x,C,s,T,g,u,f,y,S="sizzle"+ +new Date,b=n.document,_=0,i=0,E=re(),A=re(),N=re(),I=function(e,t){return e===t&&(l=!0),0},O={}.hasOwnProperty,t=[],F=t.pop,M=t.push,j=t.push,P=t.slice,D=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",z="\\["+R+"*("+H+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+R+"*\\]",q=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),W=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),$=new RegExp("^"+R+"*,"+R+"*"),V=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),G=new RegExp(q),K=new RegExp("^"+H+"$"),X={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig");try{j.apply(t=P.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){j={apply:t.length?function(e,t){M.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,n,i){var r,o,a,s,c,l,u,d,p=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!i&&((t?t.ownerDocument||t:b)!==C&&x(t),t=t||C,T)){if(11!==f&&(l=J.exec(e)))if(r=l[1]){if(9===f){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(p&&(a=p.getElementById(r))&&y(t,a)&&a.id===r)return n.push(a),n}else{if(l[2])return j.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&h.getElementsByClassName&&t.getElementsByClassName)return j.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&!N[e+" "]&&(!g||!g.test(e))){if(1!==f)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,"\\$&"):t.setAttribute("id",s=S),o=(u=m(e)).length,c=K.test(s)?"#"+s:"[id='"+s+"']";o--;)u[o]=c+" "+he(u[o]);d=u.join(","),p=ee.test(e)&&pe(t.parentNode)||t}if(d)try{return j.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{s===S&&t.removeAttribute("id")}}}return v(e.replace(W,"$1"),t,n,i)}function re(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function oe(e){return e[S]=!0,e}function ae(e){var t=C.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function le(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ue(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function de(a){return oe(function(o){return o=+o,oe(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=ie.support={},a=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},x=ie.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!==C&&9===i.nodeType&&i.documentElement&&(s=(C=i).documentElement,T=!a(C),(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),h.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=ae(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=Z.test(C.getElementsByClassName),h.getById=ae(function(e){return s.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),h.getById?(w.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}},w.filter.ID=function(e){var t=e.replace(ne,d);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var n=e.replace(ne,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),w.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&T?t.getElementsByClassName(e):void 0},u=[],g=[],(h.qsa=Z.test(C.querySelectorAll))&&(ae(function(e){s.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+S+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||g.push(".#.+[+~]")}),ae(function(e){var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=Z.test(f=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ae(function(e){h.disconnectedMatch=f.call(e,"div"),f.call(e,"[s!='']:x"),u.push("!=",q)}),g=g.length&&new RegExp(g.join("|")),u=u.length&&new RegExp(u.join("|")),t=Z.test(s.compareDocumentPosition),y=t||Z.test(s.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},I=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===b&&y(b,e)?-1:t===C||t.ownerDocument===b&&y(b,t)?1:c?D(c,e)-D(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===C?-1:t===C?1:r?-1:o?1:c?D(c,e)-D(c,t):0;if(r===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ce(a[i],s[i]):a[i]===b?-1:s[i]===b?1:0}),C},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&x(e),t=t.replace(U,"='$1']"),h.matchesSelector&&T&&!N[t+" "]&&(!u||!u.test(t))&&(!g||!g.test(t)))try{var n=f.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,C,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==C&&x(e),y(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==C&&x(e);var n=w.attrHandle[t.toLowerCase()],i=n&&O.call(w.attrHandle,t.toLowerCase())?n(e,t,!T):void 0;return void 0!==i?i:h.attributes||!T?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],i=0,r=0;if(l=!h.detectDuplicates,c=!h.sortStable&&e.slice(0),e.sort(I),l){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return c=null,e},o=ie.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},(w=ie.selectors={cacheLength:50,createPseudo:oe,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,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=ie.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(B," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,m,v){var g="nth"!==h.slice(0,3),y="last"!==h.slice(-4),b="of-type"===e;return 1===m&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,c,l=g!=y?"nextSibling":"previousSibling",u=e.parentNode,d=b&&e.nodeName.toLowerCase(),p=!n&&!b,f=!1;if(u){if(g){for(;l;){for(a=e;a=a[l];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;c=l="only"===h&&!c&&"nextSibling"}return!0}if(c=[y?u.firstChild:u.lastChild],y&&p){for(f=(s=(i=(r=(o=(a=u)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===_&&i[1])&&i[2],a=s&&u.childNodes[s];a=++s&&a&&a[l]||(f=s=0)||c.pop();)if(1===a.nodeType&&++f&&a===e){r[h]=[_,s,f];break}}else if(p&&(f=s=(i=(r=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===_&&i[1]),!1===f)for(;(a=++s&&a&&a[l]||(f=s=0)||c.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++f||(p&&((r=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[_,f]),a!==e)););return(f-=v)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=D(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:oe(function(e){var i=[],r=[],s=p(e.replace(W,"$1"));return s[S]?oe(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:oe(function(t){return function(e){return 0<ie(t,e).length}}),contains:oe(function(t){return t=t.replace(ne,d),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:oe(function(n){return K.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(ne,d).toLowerCase(),function(e){var t;do{if(t=T?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return Y.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:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=le(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=ue(e);function fe(){}function he(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function me(s,e,t){var c=e.dir,l=t&&"parentNode"===c,u=i++;return e.first?function(e,t,n){for(;e=e[c];)if(1===e.nodeType||l)return s(e,t,n)}:function(e,t,n){var i,r,o,a=[_,u];if(n){for(;e=e[c];)if((1===e.nodeType||l)&&s(e,t,n))return!0}else for(;e=e[c];)if(1===e.nodeType||l){if((i=(r=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}))[c])&&i[0]===_&&i[1]===u)return a[2]=i[2];if((r[c]=a)[2]=s(e,t,n))return!0}}}function ve(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function ge(e,t,n,i,r){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),l&&t.push(s)));return a}function ye(f,h,m,v,g,e){return v&&!v[S]&&(v=ye(v)),g&&!g[S]&&(g=ye(g,e)),oe(function(e,t,n,i){var r,o,a,s=[],c=[],l=t.length,u=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ie(e,t[i],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!f||!e&&h?u:ge(u,s,f,n,i),p=m?g||(e?f:l||v)?[]:t:d;if(m&&m(d,p,n,i),v)for(r=ge(p,c),v(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[c[o]]=!(d[c[o]]=a));if(e){if(g||f){if(g){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(d[o]=a);g(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=g?D(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=ge(p===t?p.splice(l,p.length):p),g?g(null,t,p,i):j.apply(t,p)})}function be(e){for(var r,t,n,i=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,c=me(function(e){return e===r},a,!0),l=me(function(e){return-1<D(r,e)},a,!0),u=[function(e,t,n){var i=!o&&(n||t!==k)||((r=t).nodeType?c:l)(e,t,n);return r=null,i}];s<i;s++)if(t=w.relative[e[s].type])u=[me(ve(u),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<i&&!w.relative[e[n].type];n++);return ye(1<s&&ve(u),1<s&&he(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(W,"$1"),t,s<n&&be(e.slice(s,n)),n<i&&be(e=e.slice(n)),n<i&&he(e))}u.push(t)}return ve(u)}function we(v,g){function e(e,t,n,i,r){var o,a,s,c=0,l="0",u=e&&[],d=[],p=k,f=e||b&&w.find.TAG("*",r),h=_+=null==p?1:Math.random()||.1,m=f.length;for(r&&(k=t===C||t||r);l!==m&&null!=(o=f[l]);l++){if(b&&o){for(a=0,t||o.ownerDocument===C||(x(o),n=!T);s=v[a++];)if(s(o,t||C,n)){i.push(o);break}r&&(_=h)}y&&((o=!s&&o)&&c--,e&&u.push(o))}if(c+=l,y&&l!==c){for(a=0;s=g[a++];)s(u,d,t,n);if(e){if(0<c)for(;l--;)u[l]||d[l]||(d[l]=F.call(i));d=ge(d)}j.apply(i,d),r&&!e&&0<d.length&&1<c+g.length&&ie.uniqueSort(i)}return r&&(_=h,k=p),u}var y=0<g.length,b=0<v.length;return y?oe(e):e}return fe.prototype=w.filters=w.pseudos,w.setFilters=new fe,m=ie.tokenize=function(e,t){var n,i,r,o,a,s,c,l=A[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],c=w.preFilter;a;){for(o in n&&!(i=$.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=V.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(W," ")}),a=a.slice(n.length)),w.filter)!(i=X[o].exec(a))||c[o]&&!(i=c[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ie.error(e):A(e,s).slice(0)},p=ie.compile=function(e,t){var n,i=[],r=[],o=N[e+" "];if(!o){for(n=(t=t||m(e)).length;n--;)(o=be(t[n]))[S]?i.push(o):r.push(o);(o=N(e,we(r,i))).selector=e}return o},v=ie.select=function(e,t,n,i){var r,o,a,s,c,l="function"==typeof e&&e,u=!i&&m(e=l.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(a=o[0]).type&&h.getById&&9===t.nodeType&&T&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ne,d),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=X.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((c=w.find[s])&&(i=c(a.matches[0].replace(ne,d),ee.test(o[0].type)&&pe(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&he(o)))return j.apply(n,i),n;break}}return(l||p(e,u))(i,t,!T,n,!t||ee.test(e)&&pe(t.parentNode)||t),n},h.sortStable=S.split("").sort(I).join("")===S,h.detectDuplicates=!!l,x(),h.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(C.createElement("div"))}),ae(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||se("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&ae(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||se("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),ae(function(e){return null==e.getAttribute("disabled")})||se(L,function(e,t,n){var i;return n?void 0:!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ie}(C);T.find=f,T.expr=f.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=f.uniqueSort,T.text=f.getText,T.isXMLDoc=f.isXML,T.contains=f.contains;function y(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&T(e).is(n))break;i.push(e)}return i}function b(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var w=T.expr.match.needsContext,k=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function S(e,n,i){if(T.isFunction(n))return T.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return T.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(x.test(n))return T.filter(n,e,i);n=T.filter(n,e)}return T.grep(e,function(e){return-1<T.inArray(e,n)!==i})}T.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0}));for(t=0;t<r;t++)T.find(e,i[t],n);return(n=this.pushStack(1<r?T.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&w.test(e)?T(e):e||[],!1).length}});var _,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||_,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):T.isFunction(e)?void 0!==n.ready?n.ready(e):e(T):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),T.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:E.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),k.test(i[1])&&T.isPlainObject(t))for(i in t)T.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((r=h.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return _.find(e);this.length=1,this[0]=r}return this.context=h,this.selector=e,this}).prototype=T.fn,_=T(h);var A=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t,n=T(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(T.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=w.test(e)||"string"!=typeof e?T(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?T.inArray(this[0],T(e)):T.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return y(e,"parentNode")},parentsUntil:function(e,t,n){return y(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return y(e,"nextSibling")},prevAll:function(e){return y(e,"previousSibling")},nextUntil:function(e,t,n){return y(e,"nextSibling",n)},prevUntil:function(e,t,n){return y(e,"previousSibling",n)},siblings:function(e){return b((e.parentNode||{}).firstChild,e)},children:function(e){return b(e.firstChild)},contents:function(e){return T.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:T.merge([],e.childNodes)}},function(i,r){T.fn[i]=function(e,t){var n=T.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=T.filter(t,n)),1<this.length&&(N[i]||(n=T.uniqueSort(n)),A.test(i)&&(n=n.reverse())),this.pushStack(n)}});var O,F,M=/\S+/g;function j(){h.addEventListener?(h.removeEventListener("DOMContentLoaded",P),C.removeEventListener("load",P)):(h.detachEvent("onreadystatechange",P),C.detachEvent("onload",P))}function P(){!h.addEventListener&&"load"!==C.event.type&&"complete"!==h.readyState||(j(),T.ready())}for(F in T.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},T.each(e.match(M)||[],function(e,t){n[t]=!0}),n):T.extend({},i);function r(){for(s=i.once,a=o=!0;l.length;u=-1)for(t=l.shift();++u<c.length;)!1===c[u].apply(t[0],t[1])&&i.stopOnFalse&&(u=c.length,t=!1);i.memory||(t=!1),o=!1,s&&(c=t?[]:"")}var o,t,a,s,c=[],l=[],u=-1,d={add:function(){return c&&(t&&!o&&(u=c.length-1,l.push(t)),function n(e){T.each(e,function(e,t){T.isFunction(t)?i.unique&&d.has(t)||c.push(t):t&&t.length&&"string"!==T.type(t)&&n(t)})}(arguments),t&&!o&&r()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;-1<(n=T.inArray(t,c,n));)c.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<T.inArray(e,c):0<c.length},empty:function(){return c=c&&[],this},disable:function(){return s=l=[],c=t="",this},disabled:function(){return!c},lock:function(){return s=!0,t||d.disable(),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),o||r()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},T.extend({Deferred:function(e){var o=[["resolve","done",T.Callbacks("once memory"),"resolved"],["reject","fail",T.Callbacks("once memory"),"rejected"],["notify","progress",T.Callbacks("memory")]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return T.Deferred(function(i){T.each(o,function(e,t){var n=T.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&T.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?T.extend(e,a):a}},s={};return a.pipe=a.then,T.each(o,function(e,t){var n=t[2],i=t[3];a[t[1]]=n.add,i&&n.add(function(){r=i},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?u.call(arguments):e,i===r?l.notifyWith(n,i):--c||l.resolveWith(n,i)}}var r,n,i,o=0,a=u.call(arguments),s=a.length,c=1!==s||e&&T.isFunction(e.promise)?s:0,l=1===c?e:T.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)a[o]&&T.isFunction(a[o].promise)?a[o].promise().progress(t(o,n,r)).done(t(o,i,a)).fail(l.reject):--c;return c||l.resolveWith(i,a),l.promise()}}),T.fn.ready=function(e){return T.ready.promise().done(e),this},T.extend({isReady:!1,readyWait:1,holdReady:function(e){e?T.readyWait++:T.ready(!0)},ready:function(e){(!0===e?--T.readyWait:T.isReady)||((T.isReady=!0)!==e&&0<--T.readyWait||(O.resolveWith(h,[T]),T.fn.triggerHandler&&(T(h).triggerHandler("ready"),T(h).off("ready"))))}}),T.ready.promise=function(e){if(!O)if(O=T.Deferred(),"complete"===h.readyState||"loading"!==h.readyState&&!h.documentElement.doScroll)C.setTimeout(T.ready);else if(h.addEventListener)h.addEventListener("DOMContentLoaded",P),C.addEventListener("load",P);else{h.attachEvent("onreadystatechange",P),C.attachEvent("onload",P);var n=!1;try{n=null==C.frameElement&&h.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!T.isReady){try{n.doScroll("left")}catch(e){return C.setTimeout(t,50)}j(),T.ready()}}()}return O.promise(e)},T.ready.promise(),T(g))break;g.ownFirst="0"===F,g.inlineBlockNeedsLayout=!1,T(function(){var e,t,n,i;(n=h.getElementsByTagName("body")[0])&&n.style&&(t=h.createElement("div"),(i=h.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",g.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=h.createElement("div");g.deleteExpando=!0;try{delete e.test}catch(e){g.deleteExpando=!1}e=null}();function D(e){var t=T.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)}var L,R=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function z(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(H,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:R.test(n)?T.parseJSON(n):n)}catch(e){}T.data(e,t,n)}else n=void 0}return n}function q(e){var t;for(t in e)if(("data"!==t||!T.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}function B(e,t,n,i){if(D(e)){var r,o,a=T.expando,s=e.nodeType,c=s?T.cache:e,l=s?e[a]:e[a]&&a;if(l&&c[l]&&(i||c[l].data)||void 0!==n||"string"!=typeof t)return c[l=l||(s?e[a]=d.pop()||T.guid++:a)]||(c[l]=s?{}:{toJSON:T.noop}),"object"!=typeof t&&"function"!=typeof t||(i?c[l]=T.extend(c[l],t):c[l].data=T.extend(c[l].data,t)),o=c[l],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[T.camelCase(t)]=n),"string"==typeof t?null==(r=o[t])&&(r=o[T.camelCase(t)]):r=o,r}}function W(e,t,n){if(D(e)){var i,r,o=e.nodeType,a=o?T.cache:e,s=o?e[T.expando]:T.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){r=(t=T.isArray(t)?t.concat(T.map(t,T.camelCase)):t in i?[t]:(t=T.camelCase(t))in i?[t]:t.split(" ")).length;for(;r--;)delete i[t[r]];if(n?!q(i):!T.isEmptyObject(i))return}(n||(delete a[s].data,q(a[s])))&&(o?T.cleanData([e],!0):g.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}T.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?T.cache[e[T.expando]]:e[T.expando])&&!q(e)},data:function(e,t,n){return B(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return B(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)}}),T.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){T.data(this,e)}):1<arguments.length?this.each(function(){T.data(this,e,t)}):o?z(o,e,T.data(o,e)):void 0;if(this.length&&(r=T.data(o),1===o.nodeType&&!T._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(0===(i=a[n].name).indexOf("data-")&&z(o,i=T.camelCase(i.slice(5)),r[i]));T._data(o,"parsedAttrs",!0)}return r},removeData:function(e){return this.each(function(){T.removeData(this,e)})}}),T.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=T._data(e,t),n&&(!i||T.isArray(n)?i=T._data(e,t,T.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),i=n.length,r=n.shift(),o=T._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){T.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return T._data(e,n)||T._data(e,n,{empty:T.Callbacks("once memory").add(function(){T._removeData(e,t+"queue"),T._removeData(e,n)})})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each(function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=T.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=T._data(a[s],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(t)}}),g.shrinkWrapBlocks=function(){return null!=L?L:(L=!1,(t=h.getElementsByTagName("body")[0])&&t.style?(e=h.createElement("div"),(n=h.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(h.createElement("div")).style.width="5px",L=3!==e.offsetWidth),t.removeChild(n),L):void 0);var e,t,n};function $(e,t){return e=t||e,"none"===T.css(e,"display")||!T.contains(e.ownerDocument,e)}var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),G=["Top","Right","Bottom","Left"];function K(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return T.css(e,t,"")},c=s(),l=n&&n[3]||(T.cssNumber[t]?"":"px"),u=(T.cssNumber[t]||"px"!==l&&+c)&&U.exec(T.css(e,t));if(u&&u[3]!==l)for(l=l||u[3],n=n||[],u=+c||1;u/=o=o||".5",T.style(e,t,u+l),o!==(o=s()/c)&&1!==o&&--a;);return n&&(u=+u||+c||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}var X,Y,Q,Z=function(e,t,n,i,r,o,a){var s=0,c=e.length,l=null==n;if("object"===T.type(n))for(s in r=!0,n)Z(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,T.isFunction(i)||(a=!0),l&&(t=a?(t.call(e,i),null):(l=t,function(e,t,n){return l.call(T(e),n)})),t))for(;s<c;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):c?t(e[0],n):o},J=/^(?:checkbox|radio)$/i,ee=/<([\w:-]+)/,te=/^$|\/(?:java|ecma)script/i,ne=/^\s+/,ie="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function re(e){var t=ie.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}X=h.createElement("div"),Y=h.createDocumentFragment(),Q=h.createElement("input"),X.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",g.leadingWhitespace=3===X.firstChild.nodeType,g.tbody=!X.getElementsByTagName("tbody").length,g.htmlSerialize=!!X.getElementsByTagName("link").length,g.html5Clone="<:nav></:nav>"!==h.createElement("nav").cloneNode(!0).outerHTML,Q.type="checkbox",Q.checked=!0,Y.appendChild(Q),g.appendChecked=Q.checked,X.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!X.cloneNode(!0).lastChild.defaultValue,Y.appendChild(X),(Q=h.createElement("input")).setAttribute("type","radio"),Q.setAttribute("checked","checked"),Q.setAttribute("name","t"),X.appendChild(Q),g.checkClone=X.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!!X.addEventListener,X[T.expando]=1,g.attributes=!X.getAttribute(T.expando);var oe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:g.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function ae(e,t){var n,i,r=0,o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||T.nodeName(i,t)?o.push(i):T.merge(o,ae(i,t));return void 0===t||t&&T.nodeName(e,t)?T.merge([e],o):o}function se(e,t){for(var n,i=0;null!=(n=e[i]);i++)T._data(n,"globalEval",!t||T._data(t[i],"globalEval"))}oe.optgroup=oe.option,oe.tbody=oe.tfoot=oe.colgroup=oe.caption=oe.thead,oe.th=oe.td;var ce=/<|&#?\w+;/,le=/<tbody/i;function ue(e){J.test(e.type)&&(e.defaultChecked=e.checked)}function de(e,t,n,i,r){for(var o,a,s,c,l,u,d,p=e.length,f=re(t),h=[],m=0;m<p;m++)if((a=e[m])||0===a)if("object"===T.type(a))T.merge(h,a.nodeType?[a]:a);else if(ce.test(a)){for(c=c||f.appendChild(t.createElement("div")),l=(ee.exec(a)||["",""])[1].toLowerCase(),d=oe[l]||oe._default,c.innerHTML=d[1]+T.htmlPrefilter(a)+d[2],o=d[0];o--;)c=c.lastChild;if(!g.leadingWhitespace&&ne.test(a)&&h.push(t.createTextNode(ne.exec(a)[0])),!g.tbody)for(o=(a="table"!==l||le.test(a)?"<table>"!==d[1]||le.test(a)?0:c:c.firstChild)&&a.childNodes.length;o--;)T.nodeName(u=a.childNodes[o],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(T.merge(h,c.childNodes),c.textContent="";c.firstChild;)c.removeChild(c.firstChild);c=f.lastChild}else h.push(t.createTextNode(a));for(c&&f.removeChild(c),g.appendChecked||T.grep(ae(h,"input"),ue),m=0;a=h[m++];)if(i&&-1<T.inArray(a,i))r&&r.push(a);else if(s=T.contains(a.ownerDocument,a),c=ae(f.appendChild(a),"script"),s&&se(c),n)for(o=0;a=c[o++];)te.test(a.type||"")&&n.push(a);return c=null,f}!function(){var e,t,n=h.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(g[e]=t in C)||(n.setAttribute(t,"t"),g[e]=!1===n.attributes[t].expando);n=null}();var pe=/^(?:input|select|textarea)$/i,fe=/^key/,he=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,me=/^(?:focusinfocus|focusoutblur)$/,ve=/^([^.]*)(?:\.(.+)|)/;function ge(){return!0}function ye(){return!1}function be(){try{return h.activeElement}catch(e){}}function we(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)we(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=ye;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each(function(){T.event.add(this,t,r,i,n)})}T.event={global:{},add:function(e,t,n,i,r){var o,a,s,c,l,u,d,p,f,h,m,v=T._data(e);if(v){for(n.handler&&(n=(c=n).handler,r=c.selector),n.guid||(n.guid=T.guid++),(a=v.events)||(a=v.events={}),(u=v.handle)||((u=v.handle=function(e){return void 0===T||e&&T.event.triggered===e.type?void 0:T.event.dispatch.apply(u.elem,arguments)}).elem=e),s=(t=(t||"").match(M)||[""]).length;s--;)f=m=(o=ve.exec(t[s])||[])[1],h=(o[2]||"").split(".").sort(),f&&(l=T.event.special[f]||{},f=(r?l.delegateType:l.bindType)||f,l=T.event.special[f]||{},d=T.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:h.join(".")},c),(p=a[f])||((p=a[f]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,i,h,u)||(e.addEventListener?e.addEventListener(f,u,!1):e.attachEvent&&e.attachEvent("on"+f,u))),l.add&&(l.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),T.event.global[f]=!0);e=null}},remove:function(e,t,n,i,r){var o,a,s,c,l,u,d,p,f,h,m,v=T.hasData(e)&&T._data(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(M)||[""]).length;l--;)if(f=m=(s=ve.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=T.event.special[f]||{},p=u[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=o=p.length;o--;)a=p[o],!r&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount--,d.remove&&d.remove.call(e,a));c&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,v.handle)||T.removeEvent(e,f,v.handle),delete u[f])}else for(f in u)T.event.remove(e,f+t[l],n,i,!0);T.isEmptyObject(u)&&(delete v.handle,T._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,c,l,u,d=[n||h],p=v.call(e,"type")?e.type:e,f=v.call(e,"namespace")?e.namespace.split("."):[];if(a=l=n=n||h,3!==n.nodeType&&8!==n.nodeType&&!me.test(p+T.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),o=p.indexOf(":")<0&&"on"+p,(e=e[T.expando]?e:new T.Event(p,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),c=T.event.special[p]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!T.isWindow(n)){for(s=c.delegateType||p,me.test(s+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(n.ownerDocument||h)&&d.push(l.defaultView||l.parentWindow||C)}for(u=0;(a=d[u++])&&!e.isPropagationStopped();)e.type=1<u?s:c.bindType||p,(r=(T._data(a,"events")||{})[e.type]&&T._data(a,"handle"))&&r.apply(a,t),(r=o&&a[o])&&r.apply&&D(a)&&(e.result=r.apply(a,t),!1===e.result&&e.preventDefault());if(e.type=p,!i&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(d.pop(),t))&&D(n)&&o&&n[p]&&!T.isWindow(n)){(l=n[o])&&(n[o]=null),T.event.triggered=p;try{n[p]()}catch(e){}T.event.triggered=void 0,l&&(n[o]=l)}return e.result}},dispatch:function(e){e=T.event.fix(e);var t,n,i,r,o,a=[],s=u.call(arguments),c=(T._data(this,"events")||{})[e.type]||[],l=T.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(a=T.event.handlers.call(this,e,c),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(i=((T.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)void 0===i[r=(o=t[n]).selector+" "]&&(i[r]=o.needsContext?-1<T(r,this).index(c):T.find(r,this,null,[c]).length),i[r]&&i.push(o);i.length&&a.push({elem:c,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[T.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=he.test(r)?this.mouseHooks:fe.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new T.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||h),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(i=e.target.ownerDocument||h).documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===be()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return T.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return T.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},T.removeEvent=h.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&(void 0===e[i]&&(e[i]=null),e.detachEvent(i,n))},T.Event=function(e,t){return this instanceof T.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ge:ye):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||T.now(),void(this[T.expando]=!0)):new T.Event(e,t)},T.Event.prototype={constructor:T.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ge,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ge,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ge,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){T.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||T.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),g.submit||(T.event.special.submit={setup:function(){return!T.nodeName(this,"form")&&void T.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=T.nodeName(t,"input")||T.nodeName(t,"button")?T.prop(t,"form"):void 0;n&&!T._data(n,"submit")&&(T.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),T._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&T.event.simulate("submit",this.parentNode,e))},teardown:function(){return!T.nodeName(this,"form")&&void T.event.remove(this,"._submit")}}),g.change||(T.event.special.change={setup:function(){return pe.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(T.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),T.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),T.event.simulate("change",this,e)})),!1):void T.event.add(this,"beforeactivate._change",function(e){var t=e.target;pe.test(t.nodeName)&&!T._data(t,"change")&&(T.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||T.event.simulate("change",this.parentNode,e)}),T._data(t,"change",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return T.event.remove(this,"._change"),!pe.test(this.nodeName)}}),g.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,i){function r(e){T.event.simulate(i,e.target,T.event.fix(e))}T.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=T._data(e,i);t||e.addEventListener(n,r,!0),T._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=T._data(e,i)-1;t?T._data(e,i,t):(e.removeEventListener(n,r,!0),T._removeData(e,i))}}}),T.fn.extend({on:function(e,t,n,i){return we(this,e,t,n,i)},one:function(e,t,n,i){return we(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each(function(){T.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this},trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?T.event.trigger(e,t,n,!0):void 0}});var ke=/ jQuery\d+="(?:null|\d+)"/g,xe=new RegExp("<(?:"+ie+")[\\s/>]","i"),Ce=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Te=/<script|<style|<link/i,Se=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/^true\/(.*)/,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ae=re(h).appendChild(h.createElement("div"));function Ne(e,t){return T.nodeName(e,"table")&&T.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ie(e){return e.type=(null!==T.find.attr(e,"type"))+"/"+e.type,e}function Oe(e){var t=_e.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Fe(e,t){if(1===t.nodeType&&T.hasData(e)){var n,i,r,o=T._data(e),a=T._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(i=0,r=s[n].length;i<r;i++)T.event.add(t,n,s[n][i]);a.data&&(a.data=T.extend({},a.data))}}function Me(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!g.noCloneEvent&&t[T.expando]){for(i in(r=T._data(t)).events)T.removeEvent(t,i,r.handle);t.removeAttribute(T.expando)}"script"===n&&t.text!==e.text?(Ie(t).text=e.text,Oe(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),g.html5Clone&&e.innerHTML&&!T.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&J.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function je(n,i,r,o){i=m.apply([],i);var e,t,a,s,c,l,u=0,d=n.length,p=d-1,f=i[0],h=T.isFunction(f);if(h||1<d&&"string"==typeof f&&!g.checkClone&&Se.test(f))return n.each(function(e){var t=n.eq(e);h&&(i[0]=f.call(this,e,t.html())),je(t,i,r,o)});if(d&&(e=(l=de(i,n[0].ownerDocument,!1,n,o)).firstChild,1===l.childNodes.length&&(l=e),e||o)){for(a=(s=T.map(ae(l,"script"),Ie)).length;u<d;u++)t=l,u!==p&&(t=T.clone(t,!0,!0),a&&T.merge(s,ae(t,"script"))),r.call(n[u],t,u);if(a)for(c=s[s.length-1].ownerDocument,T.map(s,Oe),u=0;u<a;u++)t=s[u],te.test(t.type||"")&&!T._data(t,"globalEval")&&T.contains(c,t)&&(t.src?T._evalUrl&&T._evalUrl(t.src):T.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ee,"")));l=e=null}return n}function Pe(e,t,n){for(var i,r=t?T.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(ae(i)),i.parentNode&&(n&&T.contains(i.ownerDocument,i)&&se(ae(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e.replace(Ce,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,c=T.contains(e.ownerDocument,e);if(g.html5Clone||T.isXMLDoc(e)||!xe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ae.innerHTML=e.outerHTML,Ae.removeChild(o=Ae.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(i=ae(o),s=ae(e),a=0;null!=(r=s[a]);++a)i[a]&&Me(r,i[a]);if(t)if(n)for(s=s||ae(e),i=i||ae(o),a=0;null!=(r=s[a]);a++)Fe(r,i[a]);else Fe(e,o);return 0<(i=ae(o,"script")).length&&se(i,!c&&ae(e,"script")),i=s=r=null,o},cleanData:function(e,t){for(var n,i,r,o,a=0,s=T.expando,c=T.cache,l=g.attributes,u=T.event.special;null!=(n=e[a]);a++)if((t||D(n))&&(o=(r=n[s])&&c[r])){if(o.events)for(i in o.events)u[i]?T.event.remove(n,i):T.removeEvent(n,i,o.handle);c[r]&&(delete c[r],l||void 0===n.removeAttribute?n[s]=void 0:n.removeAttribute(s),d.push(r))}}}),T.fn.extend({domManip:je,detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return Z(this,function(e){return void 0===e?T.text(this):this.empty().append((this[0]&&this[0].ownerDocument||h).createTextNode(e))},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&T.cleanData(ae(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&T.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return Z(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ke,""):void 0;if("string"==typeof e&&!Te.test(e)&&(g.htmlSerialize||!xe.test(e))&&(g.leadingWhitespace||!ne.test(e))&&!oe[(ee.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(ae(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return je(this,arguments,function(e){var t=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(ae(this)),t&&t.replaceChild(e,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){T.fn[e]=function(e){for(var t,n=0,i=[],r=T(e),o=r.length-1;n<=o;n++)t=n===o?this:this.clone(!0),T(r[n])[a](t),s.apply(i,t.get());return this.pushStack(i)}});var De,Le={HTML:"block",BODY:"block"};function Re(e,t){var n=T(t.createElement(e)).appendTo(t.body),i=T.css(n[0],"display");return n.detach(),i}function He(e){var t=h,n=Le[e];return n||("none"!==(n=Re(e,t))&&n||((t=((De=(De||T("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||De[0].contentDocument).document).write(),t.close(),n=Re(e,t),De.detach()),Le[e]=n),n}function ze(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r}var qe=/^margin/,Be=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),We=h.documentElement;!function(){var i,r,o,a,s,c,l=h.createElement("div"),u=h.createElement("div");if(u.style){function e(){var e,t,n=h.documentElement;n.appendChild(l),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=o=c=!1,r=s=!0,C.getComputedStyle&&(t=C.getComputedStyle(u),i="1%"!==(t||{}).top,c="2px"===(t||{}).marginLeft,o="4px"===(t||{width:"4px"}).width,u.style.marginRight="50%",r="4px"===(t||{marginRight:"4px"}).marginRight,(e=u.appendChild(h.createElement("div"))).style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",u.style.width="1px",s=!parseFloat((C.getComputedStyle(e)||{}).marginRight),u.removeChild(e)),u.style.display="none",(a=0===u.getClientRects().length)&&(u.style.display="",u.innerHTML="<table><tr><td></td><td>t</td></tr></table>",u.childNodes[0].style.borderCollapse="separate",(e=u.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",a=0===e[0].offsetHeight)),n.removeChild(l)}u.style.cssText="float:left;opacity:.5",g.opacity="0.5"===u.style.opacity,g.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,(l=h.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),g.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,T.extend(g,{reliableHiddenOffsets:function(){return null==i&&e(),a},boxSizingReliable:function(){return null==i&&e(),o},pixelMarginRight:function(){return null==i&&e(),r},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),s},reliableMarginLeft:function(){return null==i&&e(),c}})}}();var $e,Ve,Ue=/^(top|right|bottom|left)$/;function Ge(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}C.getComputedStyle?($e=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Ve=function(e,t,n){var i,r,o,a,s=e.style;return""!==(a=(n=n||$e(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||T.contains(e.ownerDocument,e)||(a=T.style(e,t)),n&&!g.pixelMarginRight()&&Be.test(a)&&qe.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0===a?a:a+""}):We.currentStyle&&($e=function(e){return e.currentStyle},Ve=function(e,t,n){var i,r,o,a,s=e.style;return null==(a=(n=n||$e(e))?n[t]:void 0)&&s&&s[t]&&(a=s[t]),Be.test(a)&&!Ue.test(t)&&(i=s.left,(o=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),void 0===a?a:a+""||"auto"});var Ke=/alpha\([^)]*\)/i,Xe=/opacity\s*=\s*([^)]*)/i,Ye=/^(none|table(?!-c[ea]).+)/,Qe=new RegExp("^("+V+")(.*)$","i"),Ze={position:"absolute",visibility:"hidden",display:"block"},Je={letterSpacing:"0",fontWeight:"400"},et=["Webkit","O","Moz","ms"],tt=h.createElement("div").style;function nt(e){if(e in tt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}function it(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=T._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&$(i)&&(o[a]=T._data(i,"olddisplay",He(i.nodeName)))):(r=$(i),(n&&"none"!==n||!r)&&T._data(i,"olddisplay",r?n:T.css(i,"display"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function rt(e,t,n){var i=Qe.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function ot(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=T.css(e,n+G[o],!0,r)),i?("content"===n&&(a-=T.css(e,"padding"+G[o],!0,r)),"margin"!==n&&(a-=T.css(e,"border"+G[o]+"Width",!0,r))):(a+=T.css(e,"padding"+G[o],!0,r),"padding"!==n&&(a+=T.css(e,"border"+G[o]+"Width",!0,r)));return a}function at(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=$e(e),a=g.boxSizing&&"border-box"===T.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Ve(e,t,o))<0||null==r)&&(r=e.style[t]),Be.test(r))return r;i=a&&(g.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+ot(e,t,n||(a?"border":"content"),i,o)+"px"}function st(e,t,n,i,r){return new st.prototype.init(e,t,n,i,r)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:g.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=T.camelCase(t),c=e.style;if(t=T.cssProps[s]||(T.cssProps[s]=nt(s)||s),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];if("string"===(o=typeof n)&&(r=U.exec(n))&&r[1]&&(n=K(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{c[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o,a,s=T.camelCase(t);return t=T.cssProps[s]||(T.cssProps[s]=nt(s)||s),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ve(e,t,i)),"normal"===o&&t in Je&&(o=Je[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),T.each(["height","width"],function(e,r){T.cssHooks[r]={get:function(e,t,n){return t?Ye.test(T.css(e,"display"))&&0===e.offsetWidth?ze(e,Ze,function(){return at(e,r,n)}):at(e,r,n):void 0},set:function(e,t,n){var i=n&&$e(e);return rt(0,t,n?ot(e,r,n,g.boxSizing&&"border-box"===T.css(e,"boxSizing",!1,i),i):0)}}}),g.opacity||(T.cssHooks.opacity={get:function(e,t){return Xe.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=T.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===T.trim(o.replace(Ke,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ke.test(o)?o.replace(Ke,r):o+" "+r)}}),T.cssHooks.marginRight=Ge(g.reliableMarginRight,function(e,t){return t?ze(e,{display:"inline-block"},Ve,[e,"marginRight"]):void 0}),T.cssHooks.marginLeft=Ge(g.reliableMarginLeft,function(e,t){return t?(parseFloat(Ve(e,"marginLeft"))||(T.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ze(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px":void 0}),T.each({margin:"",padding:"",border:"Width"},function(r,o){T.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+G[t]+o]=i[t]||i[t-2]||i[0];return n}},qe.test(r)||(T.cssHooks[r+o].set=rt)}),T.fn.extend({css:function(e,t){return Z(this,function(e,t,n){var i,r,o={},a=0;if(T.isArray(t)){for(i=$e(e),r=t.length;a<r;a++)o[t[a]]=T.css(e,t[a],!1,i);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,1<arguments.length)},show:function(){return it(this,!0)},hide:function(){return it(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){$(this)?T(this).show():T(this).hide()})}}),((T.Tween=st).prototype={constructor:st,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=st.propHooks[this.prop];return e&&e.get?e.get(this):st.propHooks._default.get(this)},run:function(e){var t,n=st.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):st.propHooks._default.set(this),this}}).init.prototype=st.prototype,(st.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[T.cssProps[e.prop]]&&!T.cssHooks[e.prop]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=st.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=st.prototype.init,T.fx.step={};var ct,lt,ut,dt,pt,ft,ht,mt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;function gt(){return C.setTimeout(function(){ct=void 0}),ct=T.now()}function yt(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=G[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var i,r=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function wt(o,e,t){var n,a,i=0,r=wt.prefilters.length,s=T.Deferred().always(function(){delete c.elem}),c=function(){if(a)return!1;for(var e=ct||gt(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),i=0,r=l.tweens.length;i<r;i++)l.tweens[i].run(n);return s.notifyWith(o,[l,n,t]),n<1&&r?t:(s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:ct||gt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=T.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),u=l.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=T.camelCase(n)],o=e[n],T.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=T.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,l.opts.specialEasing);i<r;i++)if(n=wt.prefilters[i].call(l,o,u,l.opts))return T.isFunction(n.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=T.proxy(n.stop,n)),n;return T.map(u,bt,l),T.isFunction(l.opts.start)&&l.opts.start.call(o,l),T.fx.timer(T.extend(c,{elem:o,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}T.Animation=T.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return K(n.elem,e,U.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,r=(e=T.isFunction(e)?(t=e,["*"]):e.match(M)).length;i<r;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var i,r,o,a,s,c,l,u=this,d={},p=t.style,f=t.nodeType&&$(t),h=T._data(t,"fxshow");for(i in n.queue||(null==(s=T._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,c=s.empty.fire,s.empty.fire=function(){s.unqueued||c()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,T.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(l=T.css(t,"display"))?T._data(t,"olddisplay")||He(t.nodeName):l)&&"none"===T.css(t,"float")&&(g.inlineBlockNeedsLayout&&"inline"!==He(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",g.shrinkWrapBlocks()||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(r=e[i],mt.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!h||void 0===h[i])continue;f=!0}d[i]=h&&h[i]||T.style(t,i)}else l=void 0;if(T.isEmptyObject(d))"inline"===("none"===l?He(t.nodeName):l)&&(p.display=l);else for(i in h?"hidden"in h&&(f=h.hidden):h=T._data(t,"fxshow",{}),o&&(h.hidden=!f),f?T(t).show():u.done(function(){T(t).hide()}),u.done(function(){var e;for(e in T._removeData(t,"fxshow"),d)T.style(t,e,d[e])}),d)a=bt(f?h[i]:0,i,u),i in h||(h[i]=a.start,f&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),T.speed=function(e,t,n){var i=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||T.isFunction(e)&&e,duration:e,easing:n&&t||t&&!T.isFunction(t)&&t};return i.duration=T.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in T.fx.speeds?T.fx.speeds[i.duration]:T.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){T.isFunction(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(e,t,n,i){return this.filter($).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function r(){var e=wt(this,T.extend({},t),a);(o||T._data(this,"finish"))&&e.stop(!0)}var o=T.isEmptyObject(t),a=T.speed(e,n,i);return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=T.timers,i=T._data(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&vt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||T.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=T._data(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=T.timers,o=n?n.length:0;for(t.finish=!0,T.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,i){var r=T.fn[i];T.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(yt(i,!0),e,t,n)}}),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){T.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),T.timers=[],T.fx.tick=function(){var e,t=T.timers,n=0;for(ct=T.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||T.fx.stop(),ct=void 0},T.fx.timer=function(e){T.timers.push(e),e()?T.fx.start():T.timers.pop()},T.fx.interval=13,T.fx.start=function(){lt=lt||C.setInterval(T.fx.tick,T.fx.interval)},T.fx.stop=function(){C.clearInterval(lt),lt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(i,e){return i=T.fx&&T.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,i);t.stop=function(){C.clearTimeout(n)}})},dt=h.createElement("input"),pt=h.createElement("div"),ft=h.createElement("select"),ht=ft.appendChild(h.createElement("option")),(pt=h.createElement("div")).setAttribute("className","t"),pt.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ut=pt.getElementsByTagName("a")[0],dt.setAttribute("type","checkbox"),pt.appendChild(dt),(ut=pt.getElementsByTagName("a")[0]).style.cssText="top:1px",g.getSetAttribute="t"!==pt.className,g.style=/top/.test(ut.getAttribute("style")),g.hrefNormalized="/a"===ut.getAttribute("href"),g.checkOn=!!dt.value,g.optSelected=ht.selected,g.enctype=!!h.createElement("form").enctype,ft.disabled=!0,g.optDisabled=!ht.disabled,(dt=h.createElement("input")).setAttribute("value",""),g.input=""===dt.getAttribute("value"),dt.value="t",dt.setAttribute("type","radio"),g.radioValue="t"===dt.value;var kt=/\r/g,xt=/[\x20\t\r\n\f]+/g;T.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=T.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,T(this).val()):n)?t="":"number"==typeof t?t+="":T.isArray(t)&&(t=T.map(t,function(e){return null==e?"":e+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=T.valHooks[t.type]||T.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(kt,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:T.trim(T.text(e)).replace(xt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,c=r<0?s:o?r:0;c<s;c++)if(((n=i[c]).selected||c===r)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!T.nodeName(n.parentNode,"optgroup"))){if(t=T(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=T.makeArray(t),a=r.length;a--;)if(i=r[a],-1<T.inArray(T.valHooks.option.get(i),o))try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){return T.isArray(t)?e.checked=-1<T.inArray(T(e).val(),t):void 0}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Ct,Tt,St=T.expr.attrHandle,_t=/^(?:checked|selected)$/i,Et=g.getSetAttribute,At=g.input;T.fn.extend({attr:function(e,t){return Z(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(t=t.toLowerCase(),r=T.attrHooks[t]||(T.expr.match.bool.test(t)?Tt:Ct)),void 0!==n?null===n?void T.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=T.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&T.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(M);if(o&&1===e.nodeType)for(;n=o[r++];)i=T.propFix[n]||n,T.expr.match.bool.test(n)?At&&Et||!_t.test(n)?e[i]=!1:e[T.camelCase("default-"+n)]=e[i]=!1:T.attr(e,n,""),e.removeAttribute(Et?n:i)}}),Tt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):At&&Et||!_t.test(n)?e.setAttribute(!Et&&T.propFix[n]||n,n):e[T.camelCase("default-"+n)]=e[n]=!0,n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var o=St[t]||T.find.attr;At&&Et||!_t.test(t)?St[t]=function(e,t,n){var i,r;return n||(r=St[t],St[t]=i,i=null!=o(e,t,n)?t.toLowerCase():null,St[t]=r),i}:St[t]=function(e,t,n){return n?void 0:e[T.camelCase("default-"+t)]?t.toLowerCase():null}}),At&&Et||(T.attrHooks.value={set:function(e,t,n){return T.nodeName(e,"input")?void(e.defaultValue=t):Ct&&Ct.set(e,t,n)}}),Et||(Ct={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},St.id=St.name=St.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},T.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:Ct.set},T.attrHooks.contenteditable={set:function(e,t,n){Ct.set(e,""!==t&&t,n)}},T.each(["width","height"],function(e,n){T.attrHooks[n]={set:function(e,t){return""===t?(e.setAttribute(n,"auto"),t):void 0}}})),g.style||(T.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Nt=/^(?:input|select|textarea|button|object)$/i,It=/^(?:a|area)$/i;T.fn.extend({prop:function(e,t){return Z(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return e=T.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),T.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,r=T.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):Nt.test(e.nodeName)||It.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.hrefNormalized||T.each(["href","src"],function(e,t){T.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),g.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),g.enctype||(T.propFix.enctype="encoding");var Ot=/[\t\r\n\f]/g;function Ft(e){return T.attr(e,"class")||""}T.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,c=0;if(T.isFunction(t))return this.each(function(e){T(this).addClass(t.call(this,e,Ft(this)))});if("string"==typeof t&&t)for(e=t.match(M)||[];n=this[c++];)if(r=Ft(n),i=1===n.nodeType&&(" "+r+" ").replace(Ot," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=T.trim(i))&&T.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,c=0;if(T.isFunction(t))return this.each(function(e){T(this).removeClass(t.call(this,e,Ft(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(M)||[];n=this[c++];)if(r=Ft(n),i=1===n.nodeType&&(" "+r+" ").replace(Ot," ")){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=T.trim(i))&&T.attr(n,"class",s)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"==o?t?this.addClass(r):this.removeClass(r):T.isFunction(r)?this.each(function(e){T(this).toggleClass(r.call(this,e,Ft(this),t),t)}):this.each(function(){var e,t,n,i;if("string"==o)for(t=0,n=T(this),i=r.match(M)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!=o||((e=Ft(this))&&T._data(this,"__className__",e),T.attr(this,"class",!e&&!1!==r&&T._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+Ft(n)+" ").replace(Ot," ").indexOf(t))return!0;return!1}}),T.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),T.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Mt=C.location,jt=T.now(),Pt=/\?/,Dt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;T.parseJSON=function(e){if(C.JSON&&C.JSON.parse)return C.JSON.parse(e+"");var r,o=null,t=T.trim(e+"");return t&&!T.trim(t.replace(Dt,function(e,t,n,i){return r&&t&&(o=0),0===o?e:(r=n||t,o+=!i-!n,"")}))?Function("return "+t)():T.error("Invalid JSON: "+e)},T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{C.DOMParser?t=(new C.DOMParser).parseFromString(e,"text/xml"):((t=new C.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var Lt=/#.*$/,Rt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,zt=/^(?:GET|HEAD)$/,qt=/^\/\//,Bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Wt={},$t={},Vt="*/".concat("*"),Ut=Mt.href,Gt=Bt.exec(Ut.toLowerCase())||[];function Kt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(M)||[];if(T.isFunction(t))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Xt(t,r,o,a){var s={},c=t===$t;function l(e){var i;return s[e]=!0,T.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||c||s[n]?c?!(i=n):void 0:(r.dataTypes.unshift(n),l(n),!1)}),i}return l(r.dataTypes[0])||!s["*"]&&l("*")}function Yt(e,t){var n,i,r=T.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n=n||{})[i]=t[i]);return n&&T.extend(!0,e,n),e}T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ut,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Gt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":T.parseJSON,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,T.ajaxSettings),t):Yt(T.ajaxSettings,e)},ajaxPrefilter:Kt(Wt),ajaxTransport:Kt($t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,u,d,p,f,h,r,m=T.ajaxSetup({},t),v=m.context||m,g=m.context&&(v.nodeType||v.jquery)?T(v):T.event,y=T.Deferred(),b=T.Callbacks("once memory"),w=m.statusCode||{},o={},a={},k=0,s="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===k){if(!r)for(r={};t=Ht.exec(d);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===k?d:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return k||(e=a[n]=a[n]||e,o[e]=t),this},overrideMimeType:function(e){return k||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(k<2)for(t in e)w[t]=[w[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||s;return h&&h.abort(t),c(0,t),this}};if(y.promise(x).complete=b.add,x.success=x.done,x.error=x.fail,m.url=((e||m.url||Ut)+"").replace(Lt,"").replace(qt,Gt[1]+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=T.trim(m.dataType||"*").toLowerCase().match(M)||[""],null==m.crossDomain&&(n=Bt.exec(m.url.toLowerCase()),m.crossDomain=!(!n||n[1]===Gt[1]&&n[2]===Gt[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Gt[3]||("http:"===Gt[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=T.param(m.data,m.traditional)),Xt(Wt,m,t,x),2===k)return x;for(i in(f=T.event&&m.global)&&0==T.active++&&T.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!zt.test(m.type),u=m.url,m.hasContent||(m.data&&(u=m.url+=(Pt.test(u)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Rt.test(u)?u.replace(Rt,"$1_="+jt++):u+(Pt.test(u)?"&":"?")+"_="+jt++)),m.ifModified&&(T.lastModified[u]&&x.setRequestHeader("If-Modified-Since",T.lastModified[u]),T.etag[u]&&x.setRequestHeader("If-None-Match",T.etag[u])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Vt+"; q=0.01":""):m.accepts["*"]),m.headers)x.setRequestHeader(i,m.headers[i]);if(m.beforeSend&&(!1===m.beforeSend.call(v,x,m)||2===k))return x.abort();for(i in s="abort",{success:1,error:1,complete:1})x[i](m[i]);if(h=Xt($t,m,t,x)){if(x.readyState=1,f&&g.trigger("ajaxSend",[x,m]),2===k)return x;m.async&&0<m.timeout&&(p=C.setTimeout(function(){x.abort("timeout")},m.timeout));try{k=1,h.send(o,c)}catch(e){if(!(k<2))throw e;c(-1,e)}}else c(-1,"No Transport");function c(e,t,n,i){var r,o,a,s,c,l=t;2!==k&&(k=2,p&&C.clearTimeout(p),h=void 0,d=i||"",x.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,r,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){c.unshift(a);break}if(c[0]in n)o=c[0];else{for(a in n){if(!c[0]||e.converters[a+" "+c[0]]){o=a;break}i=i||a}o=o||i}return o?(o!==c[0]&&c.unshift(o),n[o]):void 0}(m,x,n)),s=function(e,t,n,i){var r,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(r in l)if((s=r.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[r]:!0!==l[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(m,s,x,r),r?(m.ifModified&&((c=x.getResponseHeader("Last-Modified"))&&(T.lastModified[u]=c),(c=x.getResponseHeader("etag"))&&(T.etag[u]=c)),204===e||"HEAD"===m.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,r=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),x.status=e,x.statusText=(t||l)+"",r?y.resolveWith(v,[o,l,x]):y.rejectWith(v,[x,l,a]),x.statusCode(w),w=void 0,f&&g.trigger(r?"ajaxSuccess":"ajaxError",[x,m,r?o:a]),b.fireWith(v,[x,l]),f&&(g.trigger("ajaxComplete",[x,m]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,r){T[r]=function(e,t,n,i){return T.isFunction(t)&&(i=i||n,n=t,t=void 0),T.ajax(T.extend({url:e,type:r,dataType:i,data:t,success:n},T.isPlainObject(e)&&e))}}),T._evalUrl=function(e){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},T.fn.extend({wrapAll:function(t){if(T.isFunction(t))return this.each(function(e){T(this).wrapAll(t.call(this,e))});if(this[0]){var e=T(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return T.isFunction(n)?this.each(function(e){T(this).wrapInner(n.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=T.isFunction(t);return this.each(function(e){T(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){T.nodeName(this,"body")||T(this).replaceWith(this.childNodes)}).end()}}),T.expr.filters.hidden=function(e){return g.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:function(e){if(!T.contains(e.ownerDocument||h,e))return!0;for(;e&&1===e.nodeType;){if("none"===((t=e).style&&t.style.display||T.css(t,"display"))||"hidden"===e.type)return!0;e=e.parentNode}var t;return!1}(e)},T.expr.filters.visible=function(e){return!T.expr.filters.hidden(e)};var Qt=/%20/g,Zt=/\[\]$/,Jt=/\r?\n/g,en=/^(?:submit|button|image|reset|file)$/i,tn=/^(?:input|select|textarea|keygen)/i;function nn(n,e,i,r){var t;if(T.isArray(e))T.each(e,function(e,t){i||Zt.test(n)?r(n,t):nn(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==T.type(e))r(n,e);else for(t in e)nn(n+"["+t+"]",e[t],i,r)}T.param=function(e,t){function n(e,t){t=T.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var i,r=[];if(void 0===t&&(t=T.ajaxSettings&&T.ajaxSettings.traditional),T.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){n(this.name,this.value)});else for(i in e)nn(i,e[i],t,n);return r.join("&").replace(Qt,"+")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&tn.test(this.nodeName)&&!en.test(e)&&(this.checked||!J.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:T.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Jt,"\r\n")}}):{name:t.name,value:n.replace(Jt,"\r\n")}}).get()}}),T.ajaxSettings.xhr=void 0!==C.ActiveXObject?function(){return this.isLocal?cn():8<h.documentMode?sn():/^(get|post|head|put|delete|options)$/i.test(this.type)&&sn()||cn()}:sn;var rn=0,on={},an=T.ajaxSettings.xhr();function sn(){try{return new C.XMLHttpRequest}catch(e){}}function cn(){try{return new C.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}C.attachEvent&&C.attachEvent("onunload",function(){for(var e in on)on[e](void 0,!0)}),g.cors=!!an&&"withCredentials"in an,(an=g.ajax=!!an)&&T.ajaxTransport(function(c){var l;if(!c.crossDomain||g.cors)return{send:function(e,o){var t,a=c.xhr(),s=++rn;if(a.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(t in c.xhrFields)a[t]=c.xhrFields[t];for(t in c.mimeType&&a.overrideMimeType&&a.overrideMimeType(c.mimeType),c.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&a.setRequestHeader(t,e[t]+"");a.send(c.hasContent&&c.data||null),l=function(e,t){var n,i,r;if(l&&(t||4===a.readyState))if(delete on[s],l=void 0,a.onreadystatechange=T.noop,t)4!==a.readyState&&a.abort();else{r={},n=a.status,"string"==typeof a.responseText&&(r.text=a.responseText);try{i=a.statusText}catch(e){i=""}n||!c.isLocal||c.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&o(n,i,r,a.getAllResponseHeaders())},c.async?4===a.readyState?C.setTimeout(l):a.onreadystatechange=on[s]=l:l()},abort:function(){l&&l(void 0,!0)}}}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),T.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=h.head||T("head")[0]||h.documentElement;return{send:function(e,n){(i=h.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}}});var ln=[],un=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ln.pop()||T.expando+"_"+jt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(un.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=T.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(un,"$1"+i):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=C[i],C[i]=function(){o=arguments},n.always(function(){void 0===r?T(C).removeProp(i):C[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,ln.push(i)),o&&T.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),T.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||h;var i=k.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=de([e],t,r),r&&r.length&&T(r).remove(),T.merge([],i.childNodes))};var dn=T.fn.load;function pn(e){return T.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}T.fn.load=function(e,t,n){if("string"!=typeof e&&dn)return dn.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=T.trim(e.slice(s,e.length)),e=e.slice(0,s)),T.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&T.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?T("<div>").append(T.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.filters.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var i,r,o,a,s,c,l=T.css(e,"position"),u=T(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=T.css(e,"top"),c=T.css(e,"left"),r=("absolute"===l||"fixed"===l)&&-1<T.inArray("auto",[o,c])?(a=(i=u.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(c)||0),T.isFunction(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(e=o.documentElement,T.contains(e,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=pn(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===T.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),T.nodeName(e[0],"html")||(n=e.offset()),n.top+=T.css(e[0],"borderTopWidth",!0),n.left+=T.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-T.css(i,"marginTop",!0),left:t.left-n.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!T.nodeName(e,"html")&&"static"===T.css(e,"position");)e=e.offsetParent;return e||We})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o=/Y/.test(r);T.fn[t]=function(e){return Z(this,function(e,t,n){var i=pn(e);return void 0===n?i?r in i?i[r]:i.document.documentElement[t]:e[t]:void(i?i.scrollTo(o?T(i).scrollLeft():n,o?n:T(i).scrollTop()):e[t]=n)},t,e,arguments.length,null)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Ge(g.pixelPosition,function(e,t){return t?(t=Ve(e,n),Be.test(t)?T(e).position()[n]+"px":t):void 0})}),T.each({Height:"height",Width:"width"},function(o,a){T.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){T.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return Z(this,function(e,t,n){var i;return T.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?T.css(e,t,r):T.style(e,t,n,r)},a,n?e:void 0,n,null)}})}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),T.fn.size=function(){return this.length},T.fn.andSelf=T.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var fn=C.jQuery,hn=C.$;return T.noConflict=function(e){return C.$===T&&(C.$=hn),e&&C.jQuery===T&&(C.jQuery=fn),T},e||(C.jQuery=C.$=T),T});var audioplayer_swfobject=function(){var c,l,u,d,s,p,g="undefined",y="object",f="Shockwave Flash",h="application/x-shockwave-flash",m="SWFObjectExprInst",e="onreadystatechange",v=window,b=document,w=navigator,k=!1,i=[function(){(k?function(){var t=b.getElementsByTagName("body")[0],n=L(y);n.setAttribute("type",h);var i=t.appendChild(n);if(i){var r=0;!function(){if(typeof i.GetVariable!=g){var e=i.GetVariable("$version");e&&(e=e.split(" ")[1].split(","),S.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)])}else if(r<10)return r++,setTimeout(arguments.callee,10);t.removeChild(n),i=null,E()}()}else E()}:E)()}],x=[],C=[],a=[],r=!1,T=!1,o=!0,S=function(){var e=typeof b.getElementById!=g&&typeof b.getElementsByTagName!=g&&typeof b.createElement!=g,t=w.userAgent.toLowerCase(),n=w.platform.toLowerCase(),i=/win/.test(n||t),r=/mac/.test(n||t),o=!!/webkit/.test(t)&&parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),a=!1,s=[0,0,0],c=null;if(typeof w.plugins!=g&&typeof w.plugins[f]==y)!(c=w.plugins[f].description)||typeof w.mimeTypes!=g&&w.mimeTypes[h]&&!w.mimeTypes[h].enabledPlugin||(a=!(k=!0),c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=parseInt(c.replace(/^(.*)\..*$/,"$1"),10),s[1]=parseInt(c.replace(/^.*\.(.*)\s.*$/,"$1"),10),s[2]=/[a-zA-Z]/.test(c)?parseInt(c.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof v.ActiveXObject!=g)try{var l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");l&&(c=l.GetVariable("$version"))&&(a=!0,c=c.split(" ")[1].split(","),s=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)])}catch(e){}return{w3:e,pv:s,wk:o,ie:a,win:i,mac:r}}();S.w3&&((typeof b.readyState!=g&&"complete"==b.readyState||typeof b.readyState==g&&(b.getElementsByTagName("body")[0]||b.body))&&t(),r||(typeof b.addEventListener!=g&&b.addEventListener("DOMContentLoaded",t,!1),S.ie&&S.win&&(b.attachEvent(e,function(){"complete"==b.readyState&&(b.detachEvent(e,arguments.callee),t())}),v==top&&function(){if(!r){try{b.documentElement.doScroll("left")}catch(e){return setTimeout(arguments.callee,0)}t()}}()),S.wk&&function(){r||(/loaded|complete/.test(b.readyState)?t():setTimeout(arguments.callee,0))}(),_(t)));function t(){if(!r){try{var e=b.getElementsByTagName("body")[0].appendChild(L("span"));e.parentNode.removeChild(e)}catch(e){return}r=!0;for(var t=i.length,n=0;n<t;n++)i[n]()}}function n(e){r?e():i[i.length]=e}function _(e){if(typeof v.addEventListener!=g)v.addEventListener("load",e,!1);else if(typeof b.addEventListener!=g)b.addEventListener("load",e,!1);else if(typeof v.attachEvent!=g)i="onload",r=e,(n=v).attachEvent(i,r),a[a.length]=[n,i,r];else if("function"==typeof v.onload){var t=v.onload;v.onload=function(){t(),e()}}else v.onload=e;var n,i,r}function E(){var e=x.length;if(0<e)for(var t=0;t<e;t++){var n=x[t].id,i=x[t].callbackFn,r={success:!1,id:n};if(0<S.pv[0]){var o=D(n);if(o)if(!R(x[t].swfVersion)||S.wk&&S.wk<312)if(x[t].expressInstall&&N()){var a={};a.data=x[t].expressInstall,a.width=o.getAttribute("width")||"0",a.height=o.getAttribute("height")||"0",o.getAttribute("class")&&(a.styleclass=o.getAttribute("class")),o.getAttribute("align")&&(a.align=o.getAttribute("align"));for(var s={},c=o.getElementsByTagName("param"),l=c.length,u=0;u<l;u++)"movie"!=c[u].getAttribute("name").toLowerCase()&&(s[c[u].getAttribute("name")]=c[u].getAttribute("value"));I(a,s,n,i)}else O(o),i&&i(r);else z(n,!0),i&&(r.success=!0,r.ref=A(n),i(r))}else if(z(n,!0),i){var d=A(n);d&&typeof d.SetVariable!=g&&(r.success=!0,r.ref=d),i(r)}}}function A(e){var t=null,n=D(e);if(n&&"OBJECT"==n.nodeName)if(typeof n.SetVariable!=g)t=n;else{var i=n.getElementsByTagName(y)[0];i&&(t=i)}return t}function N(){return!T&&R("6.0.65")&&(S.win||S.mac)&&!(S.wk&&S.wk<312)}function I(e,t,n,i){u=i||null,d={success:!(T=!0),id:n};var r=D(n);if(r){l="OBJECT"==r.nodeName?(c=F(r),null):(c=r,n),e.id=m,(typeof e.width==g||!/%$/.test(e.width)&&parseInt(e.width,10)<310)&&(e.width="310"),(typeof e.height==g||!/%$/.test(e.height)&&parseInt(e.height,10)<137)&&(e.height="137"),b.title=b.title.slice(0,47)+" - Flash Player Installation";var o=S.ie&&S.win?"ActiveX":"PlugIn",a="MMredirectURL="+v.location.toString().replace(/&/g,"%26")+"&MMplayerType="+o+"&MMdoctitle="+b.title;if(typeof t.flashvars!=g?t.flashvars+="&"+a:t.flashvars=a,S.ie&&S.win&&4!=r.readyState){var s=L("div");n+="SWFObjectNew",s.setAttribute("id",n),r.parentNode.insertBefore(s,r),r.style.display="none",function(){4==r.readyState?r.parentNode.removeChild(r):setTimeout(arguments.callee,10)}()}M(e,t,n)}}function O(e){if(S.ie&&S.win&&4!=e.readyState){var t=L("div");e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(F(e),t),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}()}else e.parentNode.replaceChild(F(e),e)}function F(e){var t=L("div");if(S.win&&S.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(y)[0];if(n){var i=n.childNodes;if(i)for(var r=i.length,o=0;o<r;o++)1==i[o].nodeType&&"PARAM"==i[o].nodeName||8==i[o].nodeType||t.appendChild(i[o].cloneNode(!0))}}return t}function M(e,t,n){var i,r=D(n);if(S.wk&&S.wk<312)return i;if(r)if(typeof e.id==g&&(e.id=n),S.ie&&S.win){var o="";for(var a in e)e[a]!=Object.prototype[a]&&("data"==a.toLowerCase()?t.movie=e[a]:"styleclass"==a.toLowerCase()?o+=' class="'+e[a]+'"':"classid"!=a.toLowerCase()&&(o+=" "+a+'="'+e[a]+'"'));var s="";for(var c in t)t[c]!=Object.prototype[c]&&(s+='<param name="'+c+'" value="'+t[c]+'" />');r.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+o+">"+s+"</object>",C[C.length]=e.id,i=D(e.id)}else{var l=L(y);for(var u in l.setAttribute("type",h),e)e[u]!=Object.prototype[u]&&("styleclass"==u.toLowerCase()?l.setAttribute("class",e[u]):"classid"!=u.toLowerCase()&&l.setAttribute(u,e[u]));for(var d in t)t[d]!=Object.prototype[d]&&"movie"!=d.toLowerCase()&&j(l,d,t[d]);r.parentNode.replaceChild(l,r),i=l}return i}function j(e,t,n){var i=L("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function P(e){var t=D(e);t&&"OBJECT"==t.nodeName&&(S.ie&&S.win?(t.style.display="none",function(){4==t.readyState?function(e){var t=D(e);if(t){for(var n in t)"function"==typeof t[n]&&(t[n]=null);t.parentNode.removeChild(t)}}(e):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))}function D(e){var t=null;try{t=b.getElementById(e)}catch(e){}return t}function L(e){return b.createElement(e)}function R(e){var t=S.pv,n=e.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]}function H(e,t,n,i){if(!S.ie||!S.mac){var r=b.getElementsByTagName("head")[0];if(r){var o=n&&"string"==typeof n?n:"screen";if(i&&(p=s=null),!s||p!=o){var a=L("style");a.setAttribute("type","text/css"),a.setAttribute("media",o),s=r.appendChild(a),S.ie&&S.win&&typeof b.styleSheets!=g&&0<b.styleSheets.length&&(s=b.styleSheets[b.styleSheets.length-1]),p=o}S.ie&&S.win?s&&typeof s.addRule==y&&s.addRule(e,t):s&&typeof b.createTextNode!=g&&s.appendChild(b.createTextNode(e+" {"+t+"}"))}}}function z(e,t){if(o){var n=t?"visible":"hidden";r&&D(e)?D(e).style.visibility=n:H("#"+e,"visibility:"+n)}}function q(e){return null!=/[\\\"<>\.;]/.exec(e)&&typeof encodeURIComponent!=g?encodeURIComponent(e):e}S.ie&&S.win&&window.attachEvent("onunload",function(){for(var e=a.length,t=0;t<e;t++)a[t][0].detachEvent(a[t][1],a[t][2]);for(var n=C.length,i=0;i<n;i++)P(C[i]);for(var r in S)S[r]=null;for(var o in S=null,audioplayer_swfobject)audioplayer_swfobject[o]=null;audioplayer_swfobject=null});return{registerObject:function(e,t,n,i){if(S.w3&&e&&t){var r={};r.id=e,r.swfVersion=t,r.expressInstall=n,r.callbackFn=i,x[x.length]=r,z(e,!1)}else i&&i({success:!1,id:e})},getObjectById:function(e){if(S.w3)return A(e)},embedSWF:function(a,s,c,l,u,d,p,f,h,m){var v={success:!1,id:s};S.w3&&!(S.wk&&S.wk<312)&&a&&s&&c&&l&&u?(z(s,!1),n(function(){c+="",l+="";var e={};if(h&&typeof h===y)for(var t in h)e[t]=h[t];e.data=a,e.width=c,e.height=l;var n={};if(f&&typeof f===y)for(var i in f)n[i]=f[i];if(p&&typeof p===y)for(var r in p)typeof n.flashvars!=g?n.flashvars+="&"+r+"="+p[r]:n.flashvars=r+"="+p[r];if(R(u)){var o=M(e,n,s);e.id==s&&z(s,!0),v.success=!0,v.ref=o}else{if(d&&N())return e.data=d,void I(e,n,s,m);z(s,!0)}m&&m(v)})):m&&m(v)},switchOffAutoHideShow:function(){o=!1},ua:S,getFlashPlayerVersion:function(){return{major:S.pv[0],minor:S.pv[1],release:S.pv[2]}},hasFlashPlayerVersion:R,createSWF:function(e,t,n){return S.w3?M(e,t,n):void 0},showExpressInstall:function(e,t,n,i){S.w3&&N()&&I(e,t,n,i)},removeSWF:function(e){S.w3&&P(e)},createCSS:function(e,t,n,i){S.w3&&H(e,t,n,i)},addDomLoadEvent:n,addLoadEvent:_,getQueryParamValue:function(e){var t=b.location.search||b.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),null==e)return q(t);for(var n=t.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==e)return q(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(T){var e=D(m);e&&c&&(e.parentNode.replaceChild(c,e),l&&(z(l,!0),S.ie&&S.win&&(c.style.display="block")),u&&u(d)),T=!1}}}}(),AudioPlayer=function(){var s=[],c={},i={},l="",u={},r=-1;function o(e){if(document.all&&!window[e])for(var t=0;t<document.forms.length;t++)if(document.forms[t][e])return document.forms[t][e];return document.all?window[e]:document[e]}return{setup:function(e,t){l=e,u=t,audioplayer_swfobject.hasFlashPlayerVersion("9")&&(audioplayer_swfobject.switchOffAutoHideShow(),audioplayer_swfobject.createCSS("p.audioplayer_container span","visibility:hidden;height:24px;overflow:hidden;padding:0;border:none;"))},getPlayer:function(e){return o(e)},addListener:function(e,t,n){var i,r;i=t,r=n,o(e).addListener(i,r)},embed:function(e,t){var n,i={},r={},o={},a={};for(n in u)i[n]=u[n];for(n in t)i[n]=t[n];for(n in"yes"==i.transparentpagebg?(r.bgcolor="#FFFFFF",r.wmode="transparent"):(i.pagebg&&(r.bgcolor="#"+i.pagebg),r.wmode="opaque"),r.menu="false",i)"pagebg"!=n&&"width"!=n&&"transparentpagebg"!=n&&(o[n]=i[n]);a.name=e,a.style="outline: none",o.playerID=e,audioplayer_swfobject.embedSWF(l,e,i.width.toString(),"24","9",!1,o,r,a),s.push(e),t.group&&(c[e]=t.group)},syncVolumes:function(e,t){if(!c[e]){r=t;for(var n=0;n<s.length;n++)c[s[n]]||s[n]==e||o(s[n]).setVolume(r)}},activate:function(e,t){for(var n in i)n!=e&&(c[e]==c[n]&&(c[e]||c[n])||this.close(n));i[e]=1},load:function(e,t,n,i){o(e).load(t,n,i)},close:function(e){o(e).close(),e in i&&delete i[e]},open:function(e,t){null==t&&(t=1),o(e).open(null==t?0:t-1)},getVolume:function(e){return r}}}();!function(a){var n,e,r,i,o,s,c,l,u,d,t,p,f,h,m,v,g,y,b,w=(e={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!(n=65)},r=function(e){var t,n=a(this).parent().parent();0<this.parentNode.className.indexOf("_hex")?n.data("colorpicker").color=t=v(m(this.value)):0<this.parentNode.className.indexOf("_hsb")?n.data("colorpicker").color=t=f({h:parseInt(n.data("colorpicker").fields.eq(4).val(),10),s:parseInt(n.data("colorpicker").fields.eq(5).val(),10),b:parseInt(n.data("colorpicker").fields.eq(6).val(),10)}):n.data("colorpicker").color=t=g(h({r:parseInt(n.data("colorpicker").fields.eq(1).val(),10),g:parseInt(n.data("colorpicker").fields.eq(2).val(),10),b:parseInt(n.data("colorpicker").fields.eq(3).val(),10)})),e&&(k(t,n.get(0)),C(t,n.get(0)),x(t,n.get(0))),T(t,n.get(0)),S(t,n.get(0)),E(t,n.get(0)),n.data("colorpicker").onChange.apply(n,[t,b(t),y(t)])},i=function(e){return e.data.field.val(Math.max(0,Math.min(e.data.max,parseInt(e.data.val+e.pageY-e.data.y,10)))),e.data.preview&&r.apply(e.data.field.get(0),[!0]),!1},o=function(e){return r.apply(e.data.field.get(0),[!0]),e.data.el.removeClass("colorpicker_slider").find("input").focus(),a(document).unbind("mouseup",o),a(document).unbind("mousemove",i),!1},s=function(e){return r.apply(e.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,e.pageY-e.data.y)))/150,10)).get(0),[e.data.preview]),!1},c=function(e){return k(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),C(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),a(document).unbind("mouseup",c),a(document).unbind("mousemove",s),!1},l=function(e){return r.apply(e.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,e.pageY-e.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,e.pageX-e.data.pos.left))/150,10)).get(0),[e.data.preview]),!1},u=function(e){return k(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),C(e.data.cal.data("colorpicker").color,e.data.cal.get(0)),a(document).unbind("mouseup",u),a(document).unbind("mousemove",l),!1},d=function(e){t(e.data.cal.get(0),e.target,e.data.cal.get(0))||(0!=e.data.cal.data("colorpicker").onHide.apply(this,[e.data.cal.get(0)])&&e.data.cal.hide(),a(document).unbind("mousedown",d))},t=function(e,t,n){if(e==t)return!0;if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return!!(16&e.compareDocumentPosition(t));for(var i=t.parentNode;i&&i!=n;){if(i==e)return!0;i=i.parentNode}return!1},p=function(){var e="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(e?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(e?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(e?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(e?document.documentElement.clientHeight:document.body.clientHeight)}},f=function(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}},h=function(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}},m=function(e){var t=6-e.length;if(0<t){for(var n=[],i=0;i<t;i++)n.push("0");n.push(e),e=n.join("")}return e},v=function(e){return g((t=e,{r:(t=parseInt(-1<t.indexOf("#")?t.substring(1):t,16))>>16,g:(65280&t)>>8,b:255&t}));var t},g=function(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),i=Math.max(e.r,e.g,e.b),r=i-n;return t.b=i,t.s=0!=i?255*r/i:0,0!=t.s?e.r==i?t.h=(e.g-e.b)/r:e.g==i?t.h=2+(e.b-e.r)/r:t.h=4+(e.r-e.g)/r:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t},y=function(e){var t={},n=Math.round(e.h),i=Math.round(255*e.s/100),r=Math.round(255*e.b/100);if(0==i)t.r=t.g=t.b=r;else{var o=r,a=(255-i)*r/255,s=n%60*(o-a)/60;360==n&&(n=0),n<60?(t.r=o,t.b=a,t.g=a+s):n<120?(t.g=o,t.b=a,t.r=o-s):n<180?(t.g=o,t.r=a,t.b=a+s):n<240?(t.b=o,t.r=a,t.g=o-s):n<300?(t.b=o,t.g=a,t.r=a+s):n<360?(t.r=o,t.g=a,t.b=o-s):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},b=function(e){return t=y(e),n=[t.r.toString(16),t.g.toString(16),t.b.toString(16)],a.each(n,function(e,t){1==t.length&&(n[e]="0"+t)}),n.join("");var t,n},{init:function(i){if("string"==typeof(i=a.extend({},e,i||{})).color)i.color=v(i.color);else if(null!=i.color.r&&null!=i.color.g&&null!=i.color.b)i.color=g(i.color);else{if(null==i.color.h||null==i.color.s||null==i.color.b)return this;i.color=f(i.color)}return this.each(function(){if(!a(this).data("colorpickerId")){var e=a.extend({},i);e.origColor=i.color;var t="collorpicker_"+parseInt(1e3*Math.random());a(this).data("colorpickerId",t);var n=a('<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>').attr("id",t);e.flat?n.appendTo(this).show():n.appendTo(document.body),e.fields=n.find("input").bind("keyup",A).bind("change",r).bind("blur",N).bind("focus",I),n.find("span").bind("mousedown",O).end().find(">div.colorpicker_current_color").bind("click",R),e.selector=n.find("div.colorpicker_color").bind("mousedown",M),e.selectorIndic=e.selector.find("div div"),e.el=this,e.hue=n.find("div.colorpicker_hue div"),n.find("div.colorpicker_hue").bind("mousedown",F),e.newColor=n.find("div.colorpicker_new_color"),e.currentColor=n.find("div.colorpicker_current_color"),n.data("colorpicker",e),n.find("div.colorpicker_submit").bind("mouseenter",j).bind("mouseleave",P).bind("click",D),k(e.color,n.get(0)),x(e.color,n.get(0)),C(e.color,n.get(0)),S(e.color,n.get(0)),T(e.color,n.get(0)),_(e.color,n.get(0)),E(e.color,n.get(0)),e.flat?n.css({position:"relative",display:"block"}):a(this).bind(e.eventName,L)}})},showPicker:function(){return this.each(function(){a(this).data("colorpickerId")&&L.apply(this)})},hidePicker:function(){return this.each(function(){a(this).data("colorpickerId")&&a("#"+a(this).data("colorpickerId")).hide()})},setColor:function(t){if("string"==typeof t)t=v(t);else if(null!=t.r&&null!=t.g&&null!=t.b)t=g(t);else{if(null==t.h||null==t.s||null==t.b)return this;t=f(t)}return this.each(function(){if(a(this).data("colorpickerId")){var e=a("#"+a(this).data("colorpickerId"));e.data("colorpicker").color=t,e.data("colorpicker").origColor=t,k(t,e.get(0)),x(t,e.get(0)),C(t,e.get(0)),S(t,e.get(0)),T(t,e.get(0)),_(t,e.get(0)),E(t,e.get(0))}})}});function k(e,t){var n=y(e);a(t).data("colorpicker").fields.eq(1).val(n.r).end().eq(2).val(n.g).end().eq(3).val(n.b).end()}function x(e,t){a(t).data("colorpicker").fields.eq(4).val(e.h).end().eq(5).val(e.s).end().eq(6).val(e.b).end()}function C(e,t){a(t).data("colorpicker").fields.eq(0).val(b(e)).end()}function T(e,t){a(t).data("colorpicker").selector.css("backgroundColor","#"+b({h:e.h,s:100,b:100})),a(t).data("colorpicker").selectorIndic.css({left:parseInt(150*e.s/100,10),top:parseInt(150*(100-e.b)/100,10)})}function S(e,t){a(t).data("colorpicker").hue.css("top",parseInt(150-150*e.h/360,10))}function _(e,t){a(t).data("colorpicker").currentColor.css("backgroundColor","#"+b(e))}function E(e,t){a(t).data("colorpicker").newColor.css("backgroundColor","#"+b(e))}function A(e){var t=e.charCode||e.keyCode||-1;if(n<t&&t<=90||32==t)return!1;!0===a(this).parent().parent().data("colorpicker").livePreview&&r.apply(this)}function N(e){a(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus")}function I(){n=0<this.parentNode.className.indexOf("_hex")?70:65,a(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus"),a(this).parent().addClass("colorpicker_focus")}function O(e){var t=a(this).parent().find("input").focus(),n={el:a(this).parent().addClass("colorpicker_slider"),max:0<this.parentNode.className.indexOf("_hsb_h")?360:0<this.parentNode.className.indexOf("_hsb")?100:255,y:e.pageY,field:t,val:parseInt(t.val(),10),preview:a(this).parent().parent().data("colorpicker").livePreview};a(document).bind("mouseup",n,o),a(document).bind("mousemove",n,i)}function F(e){var t={cal:a(this).parent(),y:a(this).offset().top};t.preview=t.cal.data("colorpicker").livePreview,a(document).bind("mouseup",t,c),a(document).bind("mousemove",t,s)}function M(e){var t={cal:a(this).parent(),pos:a(this).offset()};t.preview=t.cal.data("colorpicker").livePreview,a(document).bind("mouseup",t,u),a(document).bind("mousemove",t,l)}function j(e){a(this).addClass("colorpicker_focus")}function P(e){a(this).removeClass("colorpicker_focus")}function D(e){var t=a(this).parent(),n=t.data("colorpicker").color;t.data("colorpicker").origColor=n,_(n,t.get(0)),t.data("colorpicker").onSubmit(n,b(n),y(n),t.data("colorpicker").el)}function L(e){var t=a("#"+a(this).data("colorpickerId"));t.data("colorpicker").onBeforeShow.apply(this,[t.get(0)]);var n=a(this).offset(),i=p(),r=n.top+this.offsetHeight,o=n.left;return r+176>i.t+i.h&&(r-=this.offsetHeight+176),o+356>i.l+i.w&&(o-=356),t.css({left:o+"px",top:r+"px"}),0!=t.data("colorpicker").onShow.apply(this,[t.get(0)])&&t.show(),a(document).bind("mousedown",{cal:t},d),!1}function R(){var e=a(this).parent(),t=e.data("colorpicker").origColor;e.data("colorpicker").color=t,k(t,e.get(0)),C(t,e.get(0)),x(t,e.get(0)),T(t,e.get(0)),S(t,e.get(0)),E(t,e.get(0))}a.fn.extend({ColorPicker:w.init,ColorPickerHide:w.hidePicker,ColorPickerShow:w.showPicker,ColorPickerSetColor:w.setColor})}(jQuery);var $jscomp=$jscomp||{};function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}$jscomp.scope={},$jscomp.findInternal=function(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,r=0;r<i;r++){var o=e[r];if(t.call(n,o,r,e))return{i:r,v:o}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},$jscomp.getGlobal=function(e){return("undefined"==typeof window||window!==e)&&"undefined"!=typeof global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,n,i){if(t){for(n=$jscomp.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];r in n||(n[r]={}),n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}},"es6","es3"),function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"undefined"==typeof Meteor?module.exports=e(require("jquery")):e(t||n)}(function(a){function s(l,y,b){var w={invalid:[],getCaret:function(){try{var e=0,t=l.get(0),n=document.selection,i=t.selectionStart;if(n&&-1===navigator.appVersion.indexOf("MSIE 10")){var r=n.createRange();r.moveStart("character",-w.val().length),e=r.text.length}else!i&&"0"!==i||(e=i);return e}catch(e){}},setCaret:function(e){try{if(l.is(":focus")){var t=l.get(0);if(t.setSelectionRange)t.setSelectionRange(e,e);else{var n=t.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select()}}}catch(e){}},events:function(){l.on("keydown.mask",function(e){l.data("mask-keycode",e.keyCode||e.which),l.data("mask-previus-value",l.val()),l.data("mask-previus-caret-pos",w.getCaret()),w.maskDigitPosMapOld=w.maskDigitPosMap}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",w.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){l.keydown().keyup()},100)}).on("change.mask",function(){l.data("changed",!0)}).on("blur.mask",function(){o===w.val()||l.data("changed")||l.trigger("change"),l.data("changed",!1)}).on("blur.mask",function(){o=w.val()}).on("focus.mask",function(e){!0===b.selectOnFocus&&a(e.target).select()}).on("focusout.mask",function(){b.clearIfNotMatch&&!i.test(w.val())&&w.val("")})},getRegexMask:function(){for(var e,t,n,i,r=[],o=0;o<y.length;o++)(e=k.translation[y.charAt(o)])?(t=e.pattern.toString().replace(/.{1}$|^.{1}/g,""),n=e.optional,(e=e.recursive)?(r.push(y.charAt(o)),i={digit:y.charAt(o),pattern:t}):r.push(n||e?t+"?":t)):r.push(y.charAt(o).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return r=r.join(""),i&&(r=r.replace(new RegExp("("+i.digit+"(.*"+i.digit+")?)"),"($1)?").replace(new RegExp(i.digit,"g"),i.pattern)),new RegExp(r)},destroyEvents:function(){l.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(e){var t=l.is("input")?"val":"text";return t=0<arguments.length?(l[t]()!==e&&l[t](e),l):l[t]()},calculateCaretPosition:function(e){var t=w.getMasked(),n=w.getCaret();if(e!==t){var i=l.data("mask-previus-caret-pos")||0;t=t.length;var r,o=e.length,a=e=0,s=0,c=0;for(r=n;r<t&&w.maskDigitPosMap[r];r++)a++;for(r=n-1;0<=r&&w.maskDigitPosMap[r];r--)e++;for(r=n-1;0<=r;r--)w.maskDigitPosMap[r]&&s++;for(r=i-1;0<=r;r--)w.maskDigitPosMapOld[r]&&c++;o<n?n=10*t:n<=i&&i!==o?w.maskDigitPosMapOld[n]||(n=(i=n)-(c-s)-e,w.maskDigitPosMap[n]&&(n=i)):i<n&&(n=n+(s-c)+a)}return n},behaviour:function(e){e=e||window.event,w.invalid=[];var t=l.data("mask-keycode");if(-1===a.inArray(t,k.byPassKeys)){t=w.getMasked();var n=w.getCaret(),i=l.data("mask-previus-value")||"";return setTimeout(function(){w.setCaret(w.calculateCaretPosition(i))},a.jMaskGlobals.keyStrokeCompensation),w.val(t),w.setCaret(n),w.callbacks(e)}},getMasked:function(e,t){var n,i=[],r=void 0===t?w.val():t+"",o=0,a=y.length,s=0,c=r.length,l=1,u="push",d=-1,p=0;if(t=[],b.reverse){u="unshift",l=-1;var f=0;o=a-1,s=c-1;var h=function(){return-1<o&&-1<s}}else f=a-1,h=function(){return o<a&&s<c};for(;h();){var m=y.charAt(o),v=r.charAt(s),g=k.translation[m];g?(v.match(g.pattern)?(i[u](v),g.recursive&&(-1===d?d=o:o===f&&o!==d&&(o=d-l),f===d&&(o-=l)),o+=l):v===n?(p--,n=void 0):g.optional?(o+=l,s-=l):g.fallback?(i[u](g.fallback),o+=l,s-=l):w.invalid.push({p:s,v:v,e:g.pattern}),s+=l):(e||i[u](m),v===m?(t.push(s),s+=l):(n=m,t.push(s+p),p++),o+=l)}return e=y.charAt(f),a!==c+1||k.translation[e]||i.push(e),i=i.join(""),w.mapMaskdigitPositions(i,t,c),i},mapMaskdigitPositions:function(e,t,n){for(e=b.reverse?e.length-n:0,w.maskDigitPosMap={},n=0;n<t.length;n++)w.maskDigitPosMap[t[n]+e]=1},callbacks:function(e){function t(e,t,n){"function"==typeof b[e]&&t&&b[e].apply(this,n)}var n=w.val(),i=n!==o,r=[n,e,l,b];t("onChange",!0==i,r),t("onKeyPress",!0==i,r),t("onComplete",n.length===y.length,r),t("onInvalid",0<w.invalid.length,[n,e,l,w.invalid,b])}};l=a(l);var i,k=this,o=w.val();y="function"==typeof y?y(w.val(),void 0,l,b):y,k.mask=y,k.options=b,k.remove=function(){var e=w.getCaret();return k.options.placeholder&&l.removeAttr("placeholder"),l.data("mask-maxlength")&&l.removeAttr("maxlength"),w.destroyEvents(),w.val(k.getCleanVal()),w.setCaret(e),l},k.getCleanVal=function(){return w.getMasked(!0)},k.getMaskedVal=function(e){return w.getMasked(!1,e)},k.init=function(e){if(e=e||!1,b=b||{},k.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch,k.byPassKeys=a.jMaskGlobals.byPassKeys,k.translation=a.extend({},a.jMaskGlobals.translation,b.translation),k=a.extend(!0,{},k,b),i=w.getRegexMask(),e)w.events(),w.val(w.getMasked());else{b.placeholder&&l.attr("placeholder",b.placeholder),l.data("mask")&&l.attr("autocomplete","off");for(var t=!(e=0);e<y.length;e++){var n=k.translation[y.charAt(e)];if(n&&n.recursive){t=!1;break}}t&&l.attr("maxlength",y.length).data("mask-maxlength",!0),w.destroyEvents(),w.events(),e=w.getCaret(),w.val(w.getMasked()),w.setCaret(e)}},k.init(!l.is("input"))}a.maskWatchers={};function t(){var e=a(this),t={},n=e.attr("data-mask");if(e.attr("data-mask-reverse")&&(t.reverse=!0),e.attr("data-mask-clearifnotmatch")&&(t.clearIfNotMatch=!0),"true"===e.attr("data-mask-selectonfocus")&&(t.selectOnFocus=!0),c(e,n,t))return e.data("mask",new s(this,n,t))}var c=function(e,t,n){n=n||{};var i=a(e).data("mask"),r=JSON.stringify;e=a(e).val()||a(e).text();try{return"function"==typeof t&&(t=t(e)),"object"!=typeof i||r(i.options)!==r(n)||i.mask!==t}catch(e){}},e=function(e){var t=document.createElement("div"),n=(e="on"+e)in t;return n||(t.setAttribute(e,"return;"),n="function"==typeof t[e]),n};a.fn.mask=function(e,t){t=t||{};var n=this.selector,i=a.jMaskGlobals,r=i.watchInterval;i=t.watchInputs||i.watchInputs;function o(){if(c(this,e,t))return a(this).data("mask",new s(this,e,t))}return a(this).each(o),n&&""!==n&&i&&(clearInterval(a.maskWatchers[n]),a.maskWatchers[n]=setInterval(function(){a(document).find(n).each(o)},r)),this},a.fn.masked=function(e){return this.data("mask").getMaskedVal(e)},a.fn.unmask=function(){return clearInterval(a.maskWatchers[this.selector]),delete a.maskWatchers[this.selector],this.each(function(){var e=a(this).data("mask");e&&e.remove().removeData("mask")})},a.fn.cleanVal=function(){return this.data("mask").getCleanVal()},a.applyDataMask=function(e){((e=e||a.jMaskGlobals.maskElements)instanceof a?e:a(e)).filter(a.jMaskGlobals.dataMaskAttr).each(t)},e={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&e("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}},a.jMaskGlobals=a.jMaskGlobals||{},(e=a.jMaskGlobals=a.extend(!0,{},e,a.jMaskGlobals)).dataMask&&a.applyDataMask(),setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},e.watchInterval)},window.jQuery,window.Zepto),function(l){l.extend(l.fn,{validate:function(e){if(this.length){var n=l.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new l.validator(e,this[0]),l.data(this[0],"validator",n),n.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){n.settings.submitHandler&&(n.submitButton=e.target),l(e.target).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==l(e.target).attr("formnovalidate")&&(n.cancelSubmit=!0)}),this.submit(function(t){function e(){var e;return!n.settings.submitHandler||(n.submitButton&&(e=l("<input type='hidden'/>").attr("name",n.submitButton.name).val(l(n.submitButton).val()).appendTo(n.currentForm)),n.settings.submitHandler.call(n,n.currentForm,t),n.submitButton&&e.remove(),!1)}return n.settings.debug&&t.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,e()):n.form()?n.pendingRequest?!(n.formSubmitted=!0):e():(n.focusInvalid(),!1)})),n)}e&&e.debug&&window.console},valid:function(){var e,t;return l(this[0]).is("form")?e=this.validate().form():(e=!0,t=l(this[0].form).validate(),this.each(function(){e=t.element(this)&&e})),e},removeAttrs:function(e){var n={},i=this;return l.each(e.split(/\s/),function(e,t){n[t]=i.attr(t),i.removeAttr(t)}),n},rules:function(e,t){var n,i,r,o,a,s,c=this[0];if(e)switch(n=l.data(c.form,"validator").settings,i=n.rules,r=l.validator.staticRules(c),e){case"add":l.extend(r,l.validator.normalizeRule(t)),delete r.messages,i[c.name]=r,t.messages&&(n.messages[c.name]=l.extend(n.messages[c.name],t.messages));break;case"remove":return t?(s={},l.each(t.split(/\s/),function(e,t){s[t]=r[t],delete r[t],"required"===t&&l(c).removeAttr("aria-required")}),s):(delete i[c.name],r)}return(o=l.validator.normalizeRules(l.extend({},l.validator.classRules(c),l.validator.attributeRules(c),l.validator.dataRules(c),l.validator.staticRules(c)),c)).required&&(a=o.required,delete o.required,o=l.extend({required:a},o),l(c).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=l.extend(o,{remote:a})),o}}),l.extend(l.expr[":"],{blank:function(e){return!l.trim(""+l(e).val())},filled:function(e){return!!l.trim(""+l(e).val())},unchecked:function(e){return!l(e).prop("checked")}}),l.validator=function(e,t){this.settings=l.extend(!0,{},l.validator.defaults,e),this.currentForm=t,this.init()},l.validator.format=function(n,e){return 1===arguments.length?function(){var e=l.makeArray(arguments);return e.unshift(n),l.validator.format.apply(this,e)}:(2<arguments.length&&e.constructor!==Array&&(e=l.makeArray(arguments).slice(1)),e.constructor!==Array&&(e=[e]),l.each(e,function(e,t){n=n.replace(new RegExp("\\{"+e+"\\}","g"),function(){return t})}),n)},l.extend(l.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:l([]),errorLabelContainer:l([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(e)).hide())},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||!(e.name in this.submitted||e===this.lastElement)||this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(n):l(e).addClass(t).removeClass(n)},unhighlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(n):l(e).removeClass(t).addClass(n)}},setDefaults:function(e){l.extend(l.validator.defaults,e)},messages:{required:"Campo obrigat�rio",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:l.validator.format("Please enter no more than {0} characters."),minlength:l.validator.format("Please enter at least {0} characters."),rangelength:l.validator.format("Please enter a value between {0} and {1} characters long."),range:l.validator.format("Please enter a value between {0} and {1}."),max:l.validator.format("Please enter a value less than or equal to {0}."),min:l.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var t=l.data(this[0].form,"validator"),n="on"+e.type.replace(/^validate/,""),i=t.settings;i[n]&&!this.is(i.ignore)&&i[n].call(t,this[0],e)}this.labelContainer=l(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||l(this.currentForm),this.containers=l(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.groups={};l.each(this.settings.groups,function(n,e){"string"==typeof e&&(e=e.split(/\s/)),l.each(e,function(e,t){i[t]=n})}),n=this.settings.rules,l.each(n,function(e,t){n[e]=l.validator.normalizeRule(t)}),l(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&l(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),l(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),l.extend(this.submitted,this.errorMap),this.invalid=l.extend({},this.errorMap),this.valid()||l(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){var t=this.clean(e),n=this.validationTargetFor(t),i=!0;return void 0===(this.lastElement=n)?delete this.invalid[t.name]:(this.prepareElement(n),this.currentElements=l(n),(i=!1!==this.check(n))?delete this.invalid[n.name]:this.invalid[n.name]=!0),l(e).attr("aria-invalid",!i),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){for(var e in l.extend(this.errorMap,t),this.errorList=[],t)this.errorList.push({message:t[e],element:this.findByName(e)[0]});this.successList=l.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){l.fn.resetForm&&l(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)n++;return n},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{l(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===l.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var e=this,t={};return l(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console,!(this.name in t||!e.objectLength(l(this).rules()))&&(t[this.name]=!0)})},clean:function(e){return l(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return l(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=l([]),this.toHide=l([]),this.currentElements=l([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t,n=l(e),i=n.attr("type");return"radio"===i||"checkbox"===i?l("input[name='"+n.attr("name")+"']:checked").val():"string"==typeof(t=n.val())?t.replace(/\r/g,""):t},check:function(e){e=this.validationTargetFor(this.clean(e));var t,n,i,r=l(e).rules(),o=l.map(r,function(e,t){return t}).length,a=!1,s=this.elementValue(e);for(n in r){i={method:n,parameters:r[n]};try{if("dependency-mismatch"===(t=l.validator.methods[n].call(this,s,e,i.parameters))&&1===o){a=!0;continue}if(a=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,i),!1}catch(e){throw this.settings.debug&&window.console,e}}if(!a)return this.objectLength(r)&&this.successList.push(e),!0},customDataMessage:function(e,t){return l(e).data("msg"+t[0].toUpperCase()+t.substring(1).toLowerCase())||l(e).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){return this.findDefined(this.customMessage(e.name,t),this.customDataMessage(e,t),!this.settings.ignoreTitle&&e.title||void 0,l.validator.messages[t],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t.method),i=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=l.validator.format(n.replace(i,"{$1}"),t.parameters)),this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return l(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n=this.errorsFor(e);n.length?(n.removeClass(this.settings.validClass).addClass(this.settings.errorClass),n.html(t)):(n=l("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(n).length||(this.settings.errorPlacement?this.settings.errorPlacement(n,l(e)):n.insertAfter(e))),!t&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n,e)),this.toShow=this.toShow.add(n)},errorsFor:function(e){var t=this.idOrName(e);return this.errors().filter(function(){return l(this).attr("for")===t})},idOrName:function(e){return this.groups[e.name]||!this.checkable(e)&&e.id||e.name},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name).not(this.settings.ignore)[0]),e},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return l(this.currentForm).find("[name='"+e+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return l("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(e,t){return!!l(e,t.form).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!l.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(l(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(l(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return l.data(e,"previousValue")||l.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:l.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=l(e).attr("class");return n&&l.each(n.split(" "),function(){this in l.validator.classRuleSettings&&l.extend(t,l.validator.classRuleSettings[this])}),t},attributeRules:function(e){var t,n,i={},r=l(e),o=e.getAttribute("type");for(t in l.validator.methods)n="required"===t?(""===(n=e.getAttribute(t))&&(n=!0),!!n):r.attr(t),/min|max/.test(t)&&(null===o||/number|range|text/.test(o))&&(n=Number(n)),n||0===n?i[t]=n:o===t&&"range"!==o&&(i[t]=!0);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var t,n,i={},r=l(e);for(t in l.validator.methods)void 0!==(n=r.data("rule"+t[0].toUpperCase()+t.substring(1).toLowerCase()))&&(i[t]=n);return i},staticRules:function(e){var t={},n=l.data(e.form,"validator");return n.settings.rules&&(t=l.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(i,r){return l.each(i,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":n=!!l(t.depends,r.form).length;break;case"function":n=t.depends.call(r,r)}n?i[e]=void 0===t.param||t.param:delete i[e]}}else delete i[e]}),l.each(i,function(e,t){i[e]=l.isFunction(t)?t(r):t}),l.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),l.each(["rangelength","range"],function(){var e;i[this]&&(l.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(e=i[this].split(/[\s,]+/),i[this]=[Number(e[0]),Number(e[1])]))}),l.validator.autoCreateRanges&&(i.min&&i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),i.minlength&&i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(e){if("string"==typeof e){var t={};l.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,n){l.validator.methods[e]=t,l.validator.messages[e]=void 0!==n?n:l.validator.messages[e],t.length<3&&l.validator.addClassRules(e,l.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"!==t.nodeName.toLowerCase())return this.checkable(t)?0<this.getLength(e,t):0<l.trim(e).length;var i=l(t).val();return i&&0<i.length},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(e)},number:function(e,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(e))return!1;var n,i,r=0,o=0,a=!1;if((e=e.replace(/\D/g,"")).length<13||19<e.length)return!1;for(n=e.length-1;0<=n;n--)i=e.charAt(n),o=parseInt(i,10),a&&9<(o*=2)&&(o-=9),r+=o,a=!a;return r%10==0},minlength:function(e,t,n){var i=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||n<=i},maxlength:function(e,t,n){var i=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||i<=n},rangelength:function(e,t,n){var i=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||i>=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},equalTo:function(e,t,n){var i=l(n);return this.settings.onfocusout&&i.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){l(t).valid()}),e===i.val()},remote:function(o,a,e){if(this.optional(a))return"dependency-mismatch";var s,t,c=this.previousValue(a);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),c.originalMessage=this.settings.messages[a.name].remote,this.settings.messages[a.name].remote=c.message,e="string"==typeof e?{url:e}:e,c.old===o?c.valid:(c.old=o,(s=this).startRequest(a),(t={})[a.name]=o,l.ajax(l.extend(!0,{url:e,mode:"abort",port:"validate"+a.name,dataType:"json",data:t,context:s.currentForm,success:function(e){var t,n,i,r=!0===e||"true"===e;s.settings.messages[a.name].remote=c.originalMessage,r?(i=s.formSubmitted,s.prepareElement(a),s.formSubmitted=i,s.successList.push(a),delete s.invalid[a.name],s.showErrors()):(t={},n=e||s.defaultMessage(a,"remote"),t[a.name]=c.message=l.isFunction(n)?n(o):n,s.invalid[a.name]=!0,s.showErrors(t)),c.valid=r,s.stopRequest(a,r)}},e)),"pending")}}}),l.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."}}(jQuery),function(i){var r,o={};i.ajaxPrefilter?i.ajaxPrefilter(function(e,t,n){var i=e.port;"abort"===e.mode&&(o[i]&&o[i].abort(),o[i]=n)}):(r=i.ajax,i.ajax=function(e){var t=("mode"in e?e:i.ajaxSettings).mode,n=("port"in e?e:i.ajaxSettings).port;return"abort"===t?(o[n]&&o[n].abort(),o[n]=r.apply(this,arguments),o[n]):r.apply(this,arguments)})}(jQuery),function(r){r.extend(r.fn,{validateDelegate:function(n,e,i){return this.bind(e,function(e){var t=r(e.target);return t.is(n)?i.apply(t,arguments):void 0})}})}(jQuery),function(e,t){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.LazyLoad=t()}(this,function(){"use strict";function r(e,t){var n,i=new e(t);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:i}})}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:i})}window.dispatchEvent(n)}function d(e,t){return e.getAttribute("data-"+t)}function o(e,t,n){var i="data-"+t;null!==n?e.setAttribute(i,n):e.removeAttribute(i)}function a(e){return"true"===d(e,"was-processed")}function f(e,t){return o(e,"ll-timeout",t)}function h(e){return d(e,"ll-timeout")}function m(e,t,n,i){e&&(void 0===i?void 0===n?e(t):e(t,n):e(t,n,i))}function p(e,t){e._loadingCount+=t,0===e._elements.length&&0===e._loadingCount&&m(e._settings.callback_finish,e)}function i(e){for(var t,n=[],i=0;t=e.children[i];i+=1)"SOURCE"===t.tagName&&n.push(t);return n}function n(e,t,n){n&&e.setAttribute(t,n)}function s(e,t){n(e,"sizes",d(e,t.data_sizes)),n(e,"srcset",d(e,t.data_srcset)),n(e,"src",d(e,t.data_src))}function c(e,t){_?e.classList.add(t):e.className+=(e.className?" ":"")+t}function l(e,t){_?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function u(e,t,n){e.addEventListener(t,n)}function v(e,t,n){e.removeEventListener(t,n)}function g(e,t,n){v(e,"load",t),v(e,"loadeddata",t),v(e,"error",n)}function y(e,t,n){var i=n._settings,r=t?i.class_loaded:i.class_error,o=t?i.callback_loaded:i.callback_error,a=e.target;l(a,i.class_loading),c(a,r),m(o,a,n),p(n,-1)}function b(n,i){function r(e){y(e,!0,i),g(n,r,a)}var e,t,o,a=function e(t){y(t,!1,i),g(n,r,e)};o=a,u(e=n,"load",t=r),u(e,"loadeddata",t),u(e,"error",o)}function w(e,t){var n=t._observer;I(e,t),n&&t._settings.auto_unobserve&&n.unobserve(e)}function k(e){var t=h(e);t&&(clearTimeout(t),f(e,null))}function x(p){return!!t&&(p._observer=new IntersectionObserver(function(e){e.forEach(function(e){return e.isIntersecting||0<e.intersectionRatio?(r=e.target,o=e,d=(a=p)._settings,m(d.callback_enter,r,o,a),void(d.load_delay?(s=r,l=(c=a)._settings.load_delay,(u=h(s))||(u=setTimeout(function(){w(s,c),k(s)},l),f(s,u))):w(r,a))):(t=e.target,n=e,i=p._settings,m(i.callback_exit,t,n,p),void(i.load_delay&&k(t)));var t,n,i,r,o,a,s,c,l,u,d})},{root:(e=p._settings).container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),!0);var e}function C(e,t){return i=e||(n=t).container.querySelectorAll(n.elements_selector),Array.prototype.slice.call(i).filter(function(e){return!a(e)});var n,i}function e(e,t){var i;this._settings=_extends({},E,e),this._loadingCount=0,x(this),this.update(t),i=this,T&&window.addEventListener("online",function(e){var t,n;_toConsumableArray((n=(t=i)._settings).container.querySelectorAll("."+n.class_error)).forEach(function(e){l(e,n.class_error),o(e,"was-processed",null)}),t.update()})}var T="undefined"!=typeof window,S=T&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),t=T&&"IntersectionObserver"in window,_=T&&"classList"in document.createElement("p"),E={elements_selector:"img",container:S||T?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},A={IMG:function(e,t){var n=e.parentNode;n&&"PICTURE"===n.tagName&&i(n).forEach(function(e){s(e,t)}),s(e,t)},IFRAME:function(e,t){n(e,"src",d(e,t.data_src))},VIDEO:function(e,t){i(e).forEach(function(e){n(e,"src",d(e,t.data_src))}),n(e,"src",d(e,t.data_src)),e.load()}},N=["IMG","IFRAME","VIDEO"],I=function(e,t,n){var i=t._settings;!n&&a(e)||(-1<N.indexOf(e.tagName)&&(b(e,t),c(e,i.class_loading)),function(e,t){var n,i,r,o,a,s,c=t._settings,l=e.tagName,u=A[l];if(u)return u(e,c),p(t,1),t._elements=(n=t._elements,i=e,n.filter(function(e){return e!==i}));a=d(r=e,(o=c).data_src),s=d(r,o.data_bg),a&&(r.style.backgroundImage='url("'.concat(a,'")')),s&&(r.style.backgroundImage=s)}(e,t),o(e,"was-processed","true"),m(i.callback_reveal,e,t),m(i.callback_set,e,t))},O=["IMG","IFRAME"];return e.prototype={update:function(e){var t,n=this,i=this._settings;this._elements=C(e,i),!S&&this._observer?(i.use_native&&"loading"in HTMLImageElement.prototype&&((t=this)._elements.forEach(function(e){-1!==O.indexOf(e.tagName)&&(e.setAttribute("loading","lazy"),I(e,t))}),this._elements=C(e,i)),this._elements.forEach(function(e){n._observer.observe(e)})):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(e,t){I(e,this,t)},loadAll:function(){var t=this;this._elements.forEach(function(e){w(e,t)})}},T&&function(e,t){if(t)if(t.length)for(var n,i=0;n=t[i];i+=1)r(e,n);else r(e,t)}(e,window.lazyLoadOptions),e}),function(u){function e(){}function d(e,t){m.ev.on("mfp"+e+k,t)}function p(e,t,n,i){var r=document.createElement("div");return r.className="mfp-"+e,n&&(r.innerHTML=n),i?t&&t.appendChild(r):(r=u(r),t&&r.appendTo(t)),r}function f(e,t){m.ev.triggerHandler("mfp"+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e]&&m.st.callbacks[e].apply(m,u.isArray(t)?t:[t]))}function h(e){return e===t&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=u(m.st.closeMarkup.replace("%title%",m.st.tClose)),t=e),m.currTemplate.closeBtn}function o(){u.magnificPopup.instance||((m=new e).init(),u.magnificPopup.instance=m)}var m,i,v,g,r,y,t,c="Close",l="BeforeClose",b="MarkupParse",w="Open",k=".mfp",x="mfp-ready",n="mfp-removing",a="mfp-prevent-close",s=!!window.jQuery,C=u(window);e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isIE7=-1!==e.indexOf("MSIE 7."),m.isIE8=-1!==e.indexOf("MSIE 8."),m.isLowIE=m.isIE7||m.isIE8,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=u(document),m.popupsCache={}},open:function(e){var t;if(v=v||u(document.body),!1===e.isObj){m.items=e.items.toArray(),m.index=0;var n,i=e.items;for(t=0;t<i.length;t++)if((n=i[t]).parsed&&(n=n.el[0]),n===e.el[0]){m.index=t;break}}else m.items=u.isArray(e.items)?e.items:[e.items],m.index=e.index||0;if(!m.isOpen){m.types=[],y="",e.mainEl&&e.mainEl.length?m.ev=e.mainEl.eq(0):m.ev=g,e.key?(m.popupsCache[e.key]||(m.popupsCache[e.key]={}),m.currTemplate=m.popupsCache[e.key]):m.currTemplate={},m.st=u.extend(!0,{},u.magnificPopup.defaults,e),m.fixedContentPos="auto"===m.st.fixedContentPos?!m.probablyMobile:m.st.fixedContentPos,m.st.modal&&(m.st.closeOnContentClick=!1,m.st.closeOnBgClick=!1,m.st.showCloseBtn=!1,m.st.enableEscapeKey=!1),m.bgOverlay||(m.bgOverlay=p("bg").on("click"+k,function(){m.close()}),m.wrap=p("wrap").attr("tabindex",-1).on("click"+k,function(e){m._checkIfClose(e.target)&&m.close()}),m.container=p("container",m.wrap)),m.contentContainer=p("content"),m.st.preloader&&(m.preloader=p("preloader",m.container,m.st.tLoading));var r=u.magnificPopup.modules;for(t=0;t<r.length;t++){var o=r[t];o=o.charAt(0).toUpperCase()+o.slice(1),m["init"+o].call(m)}f("BeforeOpen"),m.st.showCloseBtn&&(m.st.closeBtnInside?(d(b,function(e,t,n,i){n.close_replaceWith=h(i.type)}),y+=" mfp-close-btn-in"):m.wrap.append(h())),m.st.alignTop&&(y+=" mfp-align-top"),m.fixedContentPos?m.wrap.css({overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY}):m.wrap.css({top:C.scrollTop(),position:"absolute"}),!1!==m.st.fixedBgPos&&("auto"!==m.st.fixedBgPos||m.fixedContentPos)||m.bgOverlay.css({height:g.height(),position:"absolute"}),m.st.enableEscapeKey&&g.on("keyup"+k,function(e){27===e.keyCode&&m.close()}),C.on("resize"+k,function(){m.updateSize()}),m.st.closeOnContentClick||(y+=" mfp-auto-cursor"),y&&m.wrap.addClass(y);var a=m.wH=C.height(),s={};if(m.fixedContentPos&&m._hasScrollBar(a)){var c=m._getScrollbarSize();c&&(s.marginRight=c)}m.fixedContentPos&&(m.isIE7?u("body, html").css("overflow","hidden"):s.overflow="hidden");var l=m.st.mainClass;return m.isIE7&&(l+=" mfp-ie7"),l&&m._addClassToMFP(l),m.updateItemHTML(),f("BuildControls"),u("html").css(s),m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||v),m._lastFocusedEl=document.activeElement,setTimeout(function(){m.content?(m._addClassToMFP(x),m._setFocus()):m.bgOverlay.addClass(x),g.on("focusin"+k,m._onFocusIn)},16),m.isOpen=!0,m.updateSize(a),f(w),e}m.updateItemHTML()},close:function(){m.isOpen&&(f(l),m.isOpen=!1,m.st.removalDelay&&!m.isLowIE&&m.supportsTransition?(m._addClassToMFP(n),setTimeout(function(){m._close()},m.st.removalDelay)):m._close())},_close:function(){f(c);var e=n+" "+x+" ";if(m.bgOverlay.detach(),m.wrap.detach(),m.container.empty(),m.st.mainClass&&(e+=m.st.mainClass+" "),m._removeClassFromMFP(e),m.fixedContentPos){var t={marginRight:""};m.isIE7?u("body, html").css("overflow",""):t.overflow="",u("html").css(t)}g.off("keyup.mfp focusin"+k),m.ev.off(k),m.wrap.attr("class","mfp-wrap").removeAttr("style"),m.bgOverlay.attr("class","mfp-bg"),m.container.attr("class","mfp-container"),!m.st.showCloseBtn||m.st.closeBtnInside&&!0!==m.currTemplate[m.currItem.type]||!m.currTemplate.closeBtn||m.currTemplate.closeBtn.detach(),m._lastFocusedEl&&u(m._lastFocusedEl).focus(),m.currItem=null,m.content=null,m.currTemplate=null,m.prevHeight=0,f("AfterClose")},updateSize:function(e){if(m.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*t;m.wrap.css("height",n),m.wH=n}else m.wH=e||C.height();m.fixedContentPos||m.wrap.css("height",m.wH),f("Resize")},updateItemHTML:function(){var e=m.items[m.index];m.contentContainer.detach(),m.content&&m.content.detach(),e.parsed||(e=m.parseEl(m.index));var t=e.type;if(f("BeforeChange",[m.currItem?m.currItem.type:"",t]),m.currItem=e,!m.currTemplate[t]){var n=!!m.st[t]&&m.st[t].markup;f("FirstMarkupParse",n),m.currTemplate[t]=!n||u(n)}r&&r!==e.type&&m.container.removeClass("mfp-"+r+"-holder");var i=m["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,m.currTemplate[t]);m.appendContent(i,t),e.preloaded=!0,f("Change",e),r=e.type,m.container.prepend(m.contentContainer),f("AfterChange")},appendContent:function(e,t){(m.content=e)?m.st.showCloseBtn&&m.st.closeBtnInside&&!0===m.currTemplate[t]?m.content.find(".mfp-close").length||m.content.append(h()):m.content=e:m.content="",f("BeforeAppend"),m.container.addClass("mfp-"+t+"-holder"),m.contentContainer.append(m.content)},parseEl:function(e){var t,n=m.items[e];if((n=n.tagName?{el:u(n)}:(t=n.type,{data:n,src:n.src})).el){for(var i=m.types,r=0;r<i.length;r++)if(n.el.hasClass("mfp-"+i[r])){t=i[r];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||m.st.type||"inline",n.index=e,n.parsed=!0,m.items[e]=n,f("ElementParse",n),m.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,m._openClick(e,t,n)}var i="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(i).on(i,e)):(n.isObj=!1,n.delegate?t.off(i).on(i,n.delegate,e):(n.items=t).off(i).on(i,e))},_openClick:function(e,t,n){if((void 0!==n.midClick?n.midClick:u.magnificPopup.defaults.midClick)||2!==e.which&&!e.ctrlKey&&!e.metaKey){var i=void 0!==n.disableOn?n.disableOn:u.magnificPopup.defaults.disableOn;if(i)if(u.isFunction(i)){if(!i.call(m))return!0}else if(C.width()<i)return!0;e.type&&(e.preventDefault(),m.isOpen&&e.stopPropagation()),n.el=u(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),m.open(n)}},updateStatus:function(e,t){if(m.preloader){i!==e&&m.container.removeClass("mfp-s-"+i),t||"loading"!==e||(t=m.st.tLoading);var n={status:e,text:t};f("UpdateStatus",n),e=n.status,t=n.text,m.preloader.html(t),m.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),m.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(e){if(!u(e).hasClass(a)){var t=m.st.closeOnContentClick,n=m.st.closeOnBgClick;if(t&&n)return!0;if(!m.content||u(e).hasClass("mfp-close")||m.preloader&&e===m.preloader[0])return!0;if(e===m.content[0]||u.contains(m.content[0],e)){if(t)return!0}else if(n&&u.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){m.bgOverlay.addClass(e),m.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),m.wrap.removeClass(e)},_hasScrollBar:function(e){return(m.isIE7?g.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!u.contains(m.wrap[0],e.target))return m._setFocus(),!1},_parseMarkup:function(r,e,t){var o;t.data&&(e=u.extend(t.data,e)),f(b,[r,e,t]),u.each(e,function(e,t){if(void 0===t||!1===t)return!0;if(1<(o=e.split("_")).length){var n=r.find(k+"-"+o[0]);if(0<n.length){var i=o[1];"replaceWith"===i?n[0]!==t[0]&&n.replaceWith(t):"img"===i?n.is("img")?n.attr("src",t):n.replaceWith('<img src="'+t+'" class="'+n.attr("class")+'" />'):n.attr(o[1],t)}}else r.find(k+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===m.scrollbarSize){var e=document.createElement("div");e.id="mfp-sbm",e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return m.scrollbarSize}},u.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return o(),(e=e?u.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return u.magnificPopup.instance&&u.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(u.magnificPopup.defaults[e]=t.options),u.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},u.fn.magnificPopup=function(e){o();var t=u(this);if("string"==typeof e)if("open"===e){var n,i=s?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;n=i.items?i.items[r]:(n=t,i.delegate&&(n=n.find(i.delegate)),n.eq(r)),m._openClick({mfpEl:n},t,i)}else m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1));else e=u.extend(!0,{},e),s?t.data("magnificPopup",e):t[0].magnificPopup=e,m.addGroup(t,e);return t};function T(){E&&(_.after(E.addClass(S)).detach(),E=null)}var S,_,E,A="inline";u.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(A),d(c+"."+A,function(){T()})},getInline:function(e,t){if(T(),e.src){var n=m.st.inline,i=u(e.src);if(i.length){var r=i[0].parentNode;r&&r.tagName&&(_||(S=n.hiddenClass,_=p(S),S="mfp-"+S),E=i.after(_).detach().removeClass(S)),m.updateStatus("ready")}else m.updateStatus("error",n.tNotFound),i=u("<div>");return e.inlineElement=i}return m.updateStatus("ready"),m._parseMarkup(t,{},e),t}}});function N(){O&&v.removeClass(O)}function I(){N(),m.req&&m.req.abort()}var O,F="ajax";u.magnificPopup.registerModule(F,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){m.types.push(F),O=m.st.ajax.cursor,d(c+"."+F,I),d("BeforeChange."+F,I)},getAjax:function(r){O&&v.addClass(O),m.updateStatus("loading");var e=u.extend({url:r.src,success:function(e,t,n){var i={data:e,xhr:n};f("ParseAjax",i),m.appendContent(u(i.data),F),r.finished=!0,N(),m._setFocus(),setTimeout(function(){m.wrap.addClass(x)},16),m.updateStatus("ready"),f("AjaxContentAdded")},error:function(){N(),r.finished=r.loadError=!0,m.updateStatus("error",m.st.ajax.tError.replace("%url%",r.src))}},m.st.ajax.settings);return m.req=u.ajax(e),""}}});var M;u.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image"),d(w+t,function(){"image"===m.currItem.type&&e.cursor&&v.addClass(e.cursor)}),d(c+t,function(){e.cursor&&v.removeClass(e.cursor),C.off("resize"+k)}),d("Resize"+t,m.resizeImage),m.isLowIE&&d("AfterChange",m.resizeImage)},resizeImage:function(){var e=m.currItem;if(e&&e.img&&m.st.image.verticalFit){var t=0;m.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",m.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,M&&clearInterval(M),e.isCheckingImgSize=!1,f("ImageHasSize",e),e.imgHidden&&(m.content&&m.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],r=function(e){M&&clearInterval(M),M=setInterval(function(){0<i.naturalWidth?m._onImageHasSize(t):(200<n&&clearInterval(M),3===++n?r(10):40===n?r(50):100===n&&r(500))},e)};r(1)},getImage:function(e,t){var n=0,i=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,f("ImageLoadComplete")):++n<200?setTimeout(i,100):r())},r=function(){e&&(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("error",o.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},o=m.st.image,a=t.find(".mfp-img");if(a.length){var s=document.createElement("img");s.className="mfp-img",e.img=u(s).on("load.mfploader",i).on("error.mfploader",r),s.src=e.src,a.is("img")&&(e.img=e.img.clone()),0<(s=e.img[0]).naturalWidth?e.hasSize=!0:s.width||(e.hasSize=!1)}return m._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=m.st.image.titleSrc;if(t){if(u.isFunction(t))return t.call(m,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),m.resizeImage(),e.hasSize?(M&&clearInterval(M),e.loadError?(t.addClass("mfp-loading"),m.updateStatus("error",o.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),m.updateStatus("ready"))):(m.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),m.findImageSize(e))),t}}});var j;u.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,o=m.st.zoom,t=".zoom";if(o.enabled&&m.supportsTransition){function n(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=n,t.css(i),t}function i(){m.content.css("visibility","visible")}var r,a,s=o.duration;d("BuildControls"+t,function(){if(m._allowZoom()){if(clearTimeout(r),m.content.css("visibility","hidden"),!(e=m._getItemToZoom()))return void i();(a=n(e)).css(m._getOffset()),m.wrap.append(a),r=setTimeout(function(){a.css(m._getOffset(!0)),r=setTimeout(function(){i(),setTimeout(function(){a.remove(),e=a=null,f("ZoomAnimationEnded")},16)},s)},16)}}),d(l+t,function(){if(m._allowZoom()){if(clearTimeout(r),m.st.removalDelay=s,!e){if(!(e=m._getItemToZoom()))return;a=n(e)}a.css(m._getOffset(!0)),m.wrap.append(a),m.content.css("visibility","hidden"),setTimeout(function(){a.css(m._getOffset())},16)}}),d(c+t,function(){m._allowZoom()&&(i(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===m.currItem.type},_getItemToZoom:function(){return!!m.currItem.hasSize&&m.currItem.img},_getOffset:function(e){var t,n=(t=e?m.currItem.img:m.st.zoom.opener(m.currItem.el||m.currItem)).offset(),i=parseInt(t.css("padding-top"),10),r=parseInt(t.css("padding-bottom"),10);n.top-=u(window).scrollTop()-i;var o={width:t.width(),height:(s?t.innerHeight():t[0].offsetHeight)-r-i};return void 0===j&&(j=void 0!==document.createElement("p").style.MozTransform),j?o["-moz-transform"]=o.transform="translate("+n.left+"px,"+n.top+"px)":(o.left=n.left,o.top=n.top),o}}});function P(e){if(m.currTemplate[D]){var t=m.currTemplate[D].find("iframe");t.length&&(e||(t[0].src="//about:blank"),m.isIE8&&t.css("display",e?"block":"none"))}}var D="iframe";u.magnificPopup.registerModule(D,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(D),d("BeforeChange",function(e,t,n){t!==n&&(t===D?P():n===D&&P(!0))}),d(c+"."+D,function(){P()})},getIframe:function(e,t){var n=e.src,i=m.st.iframe;u.each(i.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1});var r={};return i.srcAction&&(r[i.srcAction]=n),m._parseMarkup(t,r,e),m.updateStatus("ready"),t}}});function L(e){var t=m.items.length;return t-1<e?e-t:e<0?t+e:e}function R(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}u.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=m.st.gallery,e=".mfp-gallery",r=Boolean(u.fn.mfpFastClick);if(m.direction=!0,!o||!o.enabled)return!1;y+=" mfp-gallery",d(w+e,function(){o.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){if(1<m.items.length)return m.next(),!1}),g.on("keydown"+e,function(e){37===e.keyCode?m.prev():39===e.keyCode&&m.next()})}),d("UpdateStatus"+e,function(e,t){t.text&&(t.text=R(t.text,m.currItem.index,m.items.length))}),d(b+e,function(e,t,n,i){var r=m.items.length;n.counter=1<r?R(o.tCounter,i.index,r):""}),d("BuildControls"+e,function(){if(1<m.items.length&&o.arrows&&!m.arrowLeft){var e=o.arrowMarkup,t=m.arrowLeft=u(e.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(a),n=m.arrowRight=u(e.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(a),i=r?"mfpFastClick":"click";t[i](function(){m.prev()}),n[i](function(){m.next()}),m.isIE7&&(p("b",t[0],!1,!0),p("a",t[0],!1,!0),p("b",n[0],!1,!0),p("a",n[0],!1,!0)),m.container.append(t.add(n))}}),d("Change"+e,function(){m._preloadTimeout&&clearTimeout(m._preloadTimeout),m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages(),m._preloadTimeout=null},16)}),d(c+e,function(){g.off(e),m.wrap.off("click"+e),m.arrowLeft&&r&&m.arrowLeft.add(m.arrowRight).destroyMfpFastClick(),m.arrowRight=m.arrowLeft=null})},next:function(){m.direction=!0,m.index=L(m.index+1),m.updateItemHTML()},prev:function(){m.direction=!1,m.index=L(m.index-1),m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){var e,t=m.st.gallery.preload,n=Math.min(t[0],m.items.length),i=Math.min(t[1],m.items.length);for(e=1;e<=(m.direction?i:n);e++)m._preloadItem(m.index+e);for(e=1;e<=(m.direction?n:i);e++)m._preloadItem(m.index-e)},_preloadItem:function(e){if(e=L(e),!m.items[e].preloaded){var t=m.items[e];t.parsed||(t=m.parseEl(e)),f("LazyLoad",t),"image"===t.type&&(t.img=u('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,f("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}}),o()}(window.jQuery||window.Zepto),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).firebase=t()}(this,function(){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function h(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=h(e[n],t[n]));return e}var e,t,r,p=(r=Error,n(e=a,t=r),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o),a);function o(){this.constructor=e}function a(e,t){var n=r.call(this,t)||this;return n.code=e,n.name="FirebaseError",Object.setPrototypeOf(n,a.prototype),Error.captureStackTrace&&Error.captureStackTrace(n,m.prototype.create),n}var m=(s.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=t[0]||{},r=this.service+"/"+e,o=this.errors[e],a=o?function(i){return o.replace(f,function(e,t){var n=i[t];return null!=n?n.toString():"<"+t+"?>"})}(i):"Error",s=this.serviceName+": "+a+" ("+r+").",c=new p(r,s),l=0,u=Object.keys(i);l<u.length;l++){var d=u[l];"_"!==d.slice(-1)&&(c[d]=i[d])}return c},s);function s(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var f=/\{\$([^}]+)}/g;function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){var n=new u(e,t);return n.subscribe.bind(n)}var c,l,u=(d.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},d.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},d.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},d.prototype.subscribe=function(e,t,n){var i,r=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(e){if("object"==typeof e&&null!==e)for(var t=0,n=["next","error","complete"];t<n.length;t++){var i=n[t];if(i in e&&"function"==typeof e[i])return 1}}(e)?e:{next:e,error:t,complete:n}).next&&(i.next=y),void 0===i.error&&(i.error=y),void 0===i.complete&&(i.complete=y);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(e){}}),this.observers.push(i),o},d.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],--this.observerCount,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},d.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},d.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){}})},d.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},d);function d(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}function y(){}function b(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){(new Date).toISOString();switch(t){case c.DEBUG:case c.VERBOSE:case c.INFO:case c.WARN:case c.ERROR:break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}}(l=c=c||{})[l.DEBUG=0]="DEBUG",l[l.VERBOSE=1]="VERBOSE",l[l.INFO=2]="INFO",l[l.WARN=3]="WARN",l[l.ERROR=4]="ERROR",l[l.SILENT=5]="SILENT";var w,k=c.INFO,x=(Object.defineProperty(C.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in c))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),C.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,c.DEBUG].concat(e))},C.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,c.VERBOSE].concat(e))},C.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,c.INFO].concat(e))},C.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,c.WARN].concat(e))},C.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,c.ERROR].concat(e))},C);function C(e){this.name=e,this._logLevel=k,this._logHandler=b}var T=((w={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",w["bad-app-name"]="Illegal App name: '{$appName}",w["duplicate-app"]="Firebase App named '{$appName}' already exists",w["app-deleted"]="Firebase App named '{$appName}' already deleted",w["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",w),S=new m("app","Firebase",T),_="[DEFAULT]",E=[],A=(Object.defineProperty(N.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(N.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),N.prototype.delete=function(){var s=this;return new Promise(function(e){s.checkDestroyed_(),e()}).then(function(){s.firebase_.INTERNAL.removeApp(s.name_);for(var e=[],t=0,n=Object.keys(s.services_);t<n.length;t++)for(var i=n[t],r=0,o=Object.keys(s.services_[i]);r<o.length;r++){var a=o[r];e.push(s.services_[i][a])}return Promise.all(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))}).then(function(){s.isDeleted_=!0,s.services_={}})},N.prototype._getService=function(e,t){if(void 0===t&&(t=_),this.checkDestroyed_(),this.services_[e]||(this.services_[e]={}),!this.services_[e][t]){var n=t!==_?t:void 0,i=this.firebase_.INTERNAL.factories[e](this,this.extendApp.bind(this),n);this.services_[e][t]=i}return this.services_[e][t]},N.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=_),this.services_[e]&&this.services_[e][t]&&delete this.services_[e][t]},N.prototype.extendApp=function(e){var t=this;h(this,e),e.INTERNAL&&e.INTERNAL.addAuthTokenListener&&(E.forEach(function(e){t.INTERNAL.addAuthTokenListener(e)}),E=[])},N.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw S.create("app-deleted",{appName:this.name_})},N);function N(e,t,n){this.firebase_=n,this.isDeleted_=!1,this.services_={},this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=h(void 0,e),this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(e){E.push(e),setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(t){E=E.filter(function(e){return e!==t})}}}A.prototype.name&&A.prototype.options||A.prototype.delete;var I=new x("@firebase/app");if("object"==typeof self&&self.self===self&&void 0!==self.firebase){I.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var O=self.firebase.SDK_VERSION;O&&0<=O.indexOf("LITE")&&I.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var F=function e(){var a,o,s,c,l,t=(a=A,o={},c={},(l={__esModule:!0,initializeApp:function(e,t){void 0===t&&(t={}),"object"==typeof t&&null!==t||(t={name:t});var n=t;void 0===n.name&&(n.name=_);var i=n.name;if("string"!=typeof i||!i)throw S.create("bad-app-name",{appName:String(i)});if(v(o,i))throw S.create("duplicate-app",{appName:i});var r=new a(e,n,l);return p(o[i]=r,"create"),r},app:u,apps:null,SDK_VERSION:"6.6.1",INTERNAL:{registerService:function(n,e,t,i,r){if(void 0===r&&(r=!1),s[n])return I.debug("There were multiple attempts to register service "+n+"."),l[n];function o(e){if(void 0===e&&(e=u()),"function"!=typeof e[n])throw S.create("invalid-app-argument",{appName:n});return e[n]()}return s[n]=e,i&&(c[n]=i,d().forEach(function(e){i("create",e)})),void 0!==t&&h(o,t),l[n]=o,a.prototype[n]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,n).apply(this,r?e:[])},o},removeApp:function(e){p(o[e],"delete"),delete o[e]},factories:s={},useAsService:f}}).default=l,Object.defineProperty(l,"apps",{get:d}),u.App=a,l);function u(e){if(!v(o,e=e||_))throw S.create("no-app",{appName:e});return o[e]}function d(){return Object.keys(o).map(function(e){return o[e]})}function p(e,t){for(var n=0,i=Object.keys(s);n<i.length;n++){var r=f(0,i[n]);if(null===r)return;c[r]&&c[r](t,e)}}function f(e,t){return"serverAuth"===t?null:t}return t.INTERNAL=i({},t.INTERNAL,{createFirebaseNamespace:e,extendNamespace:function(e){h(t,e)},createSubscribe:g,ErrorFactory:m,deepExtend:h}),t}(),M=F.initializeApp;return F.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return}}()&&I.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),M.apply(void 0,e)},F}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],t):t((e=e||self).firebase)}(this,function(te){"use strict";try{(function(){te=te&&te.hasOwnProperty("default")?te.default:te;var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function e(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function m(o,a,s,c){return new(s=s||Promise)(function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,i)}r((c=c.apply(o,a||[])).next())})}function v(n,i){var r,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=i.call(n,s)}catch(e){t=[6,e],o=0}finally{r=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function n(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}var r,p=(e(o,r=Error),o);function o(e,t){var n=r.call(this,t)||this;return n.code=e,n.name="FirebaseError",Object.setPrototypeOf(n,o.prototype),Error.captureStackTrace&&Error.captureStackTrace(n,s.prototype.create),n}var s=(t.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=t[0]||{},r=this.service+"/"+e,o=this.errors[e],a=o?function(i){return o.replace(f,function(e,t){var n=i[t];return null!=n?n.toString():"<"+t+"?>"})}(i):"Error",s=this.serviceName+": "+a+" ("+r+").",c=new p(r,s),l=0,u=Object.keys(i);l<u.length;l++){var d=u[l];"_"!==d.slice(-1)&&(c[d]=i[d])}return c},t);function t(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var f=/\{\$([^}]+)}/g;function c(e,t){var n=new u(e,t);return n.subscribe.bind(n)}var l,u=(d.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},d.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},d.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},d.prototype.subscribe=function(e,t,n){var i,r=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(e){if("object"==typeof e&&null!==e)for(var t=0,n=["next","error","complete"];t<n.length;t++){var i=n[t];if(i in e&&"function"==typeof e[i])return 1}}(e)?e:{next:e,error:t,complete:n}).next&&(i.next=h),void 0===i.error&&(i.error=h),void 0===i.complete&&(i.complete=h);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(e){}}),this.observers.push(i),o},d.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],--this.observerCount,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},d.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},d.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){}})},d.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},d);function d(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}function h(){}var g,y,b,w,k=((l={})["only-available-in-window"]="This method is available in a Window context.",l["only-available-in-sw"]="This method is available in a service worker context.",l["should-be-overriden"]="This method should be overriden by extended classes.",l["bad-sender-id"]="Please ensure that 'messagingSenderId' is set correctly in the options passed into firebase.initializeApp().",l["permission-default"]="The required permissions were not granted and dismissed instead.",l["permission-blocked"]="The required permissions were not granted and blocked instead.",l["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",l["notifications-blocked"]="Notifications have been blocked.",l["failed-serviceworker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",l["sw-registration-expected"]="A service worker registration was the expected input.",l["get-subscription-failed"]="There was an error when trying to get any existing Push Subscriptions.",l["invalid-saved-token"]="Unable to access details of the saved token.",l["sw-reg-redundant"]="The service worker being used for push was made redundant.",l["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",l["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",l["token-subscribe-no-push-set"]="FCM returned an invalid response when getting an FCM token.",l["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",l["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",l["token-update-no-token"]="FCM returned no token when updating the user to push.",l["use-sw-before-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",l["invalid-delete-token"]="You must pass a valid token into deleteToken(), i.e. the token from getToken().",l["delete-token-not-found"]="The deletion attempt for token could not be performed as the token was not found.",l["delete-scope-not-found"]="The deletion attempt for service worker scope could not be performed as the scope was not found.",l["bg-handler-function-expected"]="The input to setBackgroundMessageHandler() must be a function.",l["no-window-client-to-msg"]="An attempt was made to message a non-existant window client.",l["unable-to-resubscribe"]="There was an error while re-subscribing the FCM token for push messaging. Will have to resubscribe the user on next visit. {$errorInfo}",l["no-fcm-token-for-resubscribe"]="Could not find an FCM token and as a result, unable to resubscribe. Will have to resubscribe the user on next visit.",l["failed-to-delete-token"]="Unable to delete the currently saved token.",l["no-sw-in-reg"]="Even though the service worker registration was successful, there was a problem accessing the service worker itself.",l["bad-scope"]="The service worker scope must be a string with at least one character.",l["bad-vapid-key"]="The public VAPID key is not a Uint8Array with 65 bytes.",l["bad-subscription"]="The subscription must be a valid PushSubscription.",l["bad-token"]="The FCM Token used for storage / lookup was not a valid token string.",l["bad-push-set"]="The FCM push set used for storage / lookup was not not a valid push set string.",l["failed-delete-vapid-key"]="The VAPID key could not be deleted.",l["invalid-public-vapid-key"]="The public VAPID key must be a string.",l["use-public-key-before-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",l["public-vapid-key-decryption-failed"]="The public VAPID key did not equal 65 bytes when decrypted.",l),x=new s("messaging","Messaging",k),C=new Uint8Array([4,51,148,247,223,161,235,177,220,3,162,94,21,113,219,72,211,46,237,237,178,52,219,183,71,58,12,143,196,204,225,111,60,140,132,223,171,182,102,62,242,12,212,139,254,227,249,118,47,20,28,99,8,106,111,45,177,26,149,176,206,55,192,156,110]),T="https://fcm.googleapis.com";function S(e,t){if(null==e||null==t)return!1;if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e),i=new DataView(t),r=0;r<e.byteLength;r++)if(n.getUint8(r)!==i.getUint8(r))return!1;return!0}function _(e){return t=new Uint8Array(e),btoa(String.fromCharCode.apply(String,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e}(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var t}(y=g=g||{}).TYPE_OF_MSG="firebase-messaging-msg-type",y.DATA="firebase-messaging-msg-data",(w=b=b||{}).PUSH_MSG_RECEIVED="push-msg-received",w.NOTIFICATION_CLICKED="notification-clicked";var E=(A.prototype.getToken=function(u,d,p){return m(this,void 0,void 0,function(){var t,n,i,r,o,a,s,c,l;return v(this,function(e){switch(e.label){case 0:t=_(d.getKey("p256dh")),n=_(d.getKey("auth")),i="authorized_entity="+u+"&endpoint="+d.endpoint+"&encryption_key="+t+"&encryption_auth="+n,S(p.buffer,C.buffer)||(r=_(p),i+="&application_pub_key="+r),(o=new Headers).append("Content-Type","application/x-www-form-urlencoded"),a={method:"POST",headers:o,body:i},e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(T+"/fcm/connect/subscribe",a)];case 2:return[4,e.sent().json()];case 3:return s=e.sent(),[3,5];case 4:throw c=e.sent(),x.create("token-subscribe-failed",{errorInfo:c});case 5:if(s.error)throw l=s.error.message,x.create("token-subscribe-failed",{errorInfo:l});if(!s.token)throw x.create("token-subscribe-no-token");if(!s.pushSet)throw x.create("token-subscribe-no-push-set");return[2,{token:s.token,pushSet:s.pushSet}]}})})},A.prototype.updateToken=function(u,d,p,f,h){return m(this,void 0,void 0,function(){var t,n,i,r,o,a,s,c,l;return v(this,function(e){switch(e.label){case 0:t=_(f.getKey("p256dh")),n=_(f.getKey("auth")),i="push_set="+p+"&token="+d+"&authorized_entity="+u+"&endpoint="+f.endpoint+"&encryption_key="+t+"&encryption_auth="+n,S(h.buffer,C.buffer)||(r=_(h),i+="&application_pub_key="+r),(o=new Headers).append("Content-Type","application/x-www-form-urlencoded"),a={method:"POST",headers:o,body:i},e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(T+"/fcm/connect/subscribe",a)];case 2:return[4,e.sent().json()];case 3:return s=e.sent(),[3,5];case 4:throw c=e.sent(),x.create("token-update-failed",{errorInfo:c});case 5:if(s.error)throw l=s.error.message,x.create("token-update-failed",{errorInfo:l});if(!s.token)throw x.create("token-update-no-token");return[2,s.token]}})})},A.prototype.deleteToken=function(s,c,l){return m(this,void 0,void 0,function(){var t,n,i,r,o,a;return v(this,function(e){switch(e.label){case 0:t="authorized_entity="+s+"&token="+c+"&pushSet="+l,(n=new Headers).append("Content-Type","application/x-www-form-urlencoded"),i={method:"POST",headers:n,body:t},e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(T+"/fcm/connect/unsubscribe",i)];case 2:return[4,e.sent().json()];case 3:if((r=e.sent()).error)throw o=r.error.message,x.create("token-unsubscribe-failed",{errorInfo:o});return[3,5];case 4:throw a=e.sent(),x.create("token-unsubscribe-failed",{errorInfo:a});case 5:return[2]}})})},A);function A(){}function N(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i}var I="undefined",O="fcm_token_object_Store";var F=(M.prototype.get=function(t){return this.createTransaction(function(e){return e.get(t)})},M.prototype.getIndex=function(t,n){return this.createTransaction(function(e){return e.index(t).get(n)})},M.prototype.put=function(t){return this.createTransaction(function(e){return e.put(t)},"readwrite")},M.prototype.delete=function(t){return this.createTransaction(function(e){return e.delete(t)},"readwrite")},M.prototype.closeDatabase=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return this.dbPromise?[4,this.dbPromise]:[3,2];case 1:e.sent().close(),this.dbPromise=null,e.label=2;case 2:return[2]}})})},M.prototype.createTransaction=function(a,s){return void 0===s&&(s="readonly"),m(this,void 0,void 0,function(){var t,i,r,o;return v(this,function(e){switch(e.label){case 0:return[4,this.getDb()];case 1:return t=e.sent(),i=t.transaction(this.objectStoreName,s),r=i.objectStore(this.objectStoreName),[4,(n=a(r),new Promise(function(e,t){n.onsuccess=function(){e(n.result)},n.onerror=function(){t(n.error)}}))];case 2:return o=e.sent(),[2,new Promise(function(e,t){i.oncomplete=function(){e(o)},i.onerror=function(){t(i.error)}})]}var n})})},M.prototype.getDb=function(){var i=this;return this.dbPromise||(this.dbPromise=new Promise(function(e,t){var n=indexedDB.open(i.dbName,i.dbVersion);n.onsuccess=function(){e(n.result)},n.onerror=function(){i.dbPromise=null,t(n.error)},n.onupgradeneeded=function(e){return i.onDbUpgrade(n,e)}})),this.dbPromise},M);function M(){this.dbPromise=null}var j,P=(e(D,j=F),D.prototype.onDbUpgrade=function(e,t){var n,i=e.result;switch(t.oldVersion){case 0:(r=i.createObjectStore(this.objectStoreName,{keyPath:"swScope"})).createIndex("fcmSenderId","fcmSenderId",{unique:!1}),r.createIndex("fcmToken","fcmToken",{unique:!0});case 1:(n=indexedDB.open(I)).onerror=function(e){},n.onsuccess=function(e){!function(n){if(n.objectStoreNames.contains(O)){var e=n.transaction(O).objectStore(O),i=new E,r=e.openCursor();r.onerror=function(e){},r.onsuccess=function(){var e=r.result;if(e){var t=e.value;i.deleteToken(t.fcmSenderId,t.fcmToken,t.fcmPushSet),e.continue()}else n.close(),indexedDB.deleteDatabase(I)}}}(n.result)};case 2:var r,o=(r=e.transaction.objectStore(this.objectStoreName)).openCursor();o.onsuccess=function(){var e=o.result;if(e){var t=e.value,n=a({},t);t.createTime||(n.createTime=Date.now()),"string"==typeof t.vapidKey&&(n.vapidKey=N(t.vapidKey)),"string"==typeof t.auth&&(n.auth=N(t.auth).buffer),"string"==typeof t.auth&&(n.p256dh=N(t.p256dh).buffer),e.update(n),e.continue()}}}},D.prototype.getTokenDetailsFromToken=function(t){return m(this,void 0,void 0,function(){return v(this,function(e){if(!t)throw x.create("bad-token");return L({fcmToken:t}),[2,this.getIndex("fcmToken",t)]})})},D.prototype.getTokenDetailsFromSWScope=function(t){return m(this,void 0,void 0,function(){return v(this,function(e){if(!t)throw x.create("bad-scope");return L({swScope:t}),[2,this.get(t)]})})},D.prototype.saveTokenDetails=function(t){return m(this,void 0,void 0,function(){return v(this,function(e){if(!t.swScope)throw x.create("bad-scope");if(!t.vapidKey)throw x.create("bad-vapid-key");if(!t.endpoint||!t.auth||!t.p256dh)throw x.create("bad-subscription");if(!t.fcmSenderId)throw x.create("bad-sender-id");if(!t.fcmToken)throw x.create("bad-token");if(!t.fcmPushSet)throw x.create("bad-push-set");return L(t),[2,this.put(t)]})})},D.prototype.deleteToken=function(n){return m(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return"string"!=typeof n||0===n.length?[2,Promise.reject(x.create("invalid-delete-token"))]:[4,this.getTokenDetailsFromToken(n)];case 1:if(!(t=e.sent()))throw x.create("delete-token-not-found");return[4,this.delete(t.swScope)];case 2:return e.sent(),[2,t]}})})},D);function D(){var e=null!==j&&j.apply(this,arguments)||this;return e.dbName="fcm_token_details_db",e.dbVersion=3,e.objectStoreName="fcm_token_object_Store",e}function L(e){if(e.fcmToken&&("string"!=typeof e.fcmToken||0===e.fcmToken.length))throw x.create("bad-token");if(e.swScope&&("string"!=typeof e.swScope||0===e.swScope.length))throw x.create("bad-scope");if(e.vapidKey&&(!(e.vapidKey instanceof Uint8Array)||65!==e.vapidKey.length))throw x.create("bad-vapid-key");if(e.endpoint&&("string"!=typeof e.endpoint||0===e.endpoint.length))throw x.create("bad-subscription");if(e.auth&&!(e.auth instanceof ArrayBuffer))throw x.create("bad-subscription");if(e.p256dh&&!(e.p256dh instanceof ArrayBuffer))throw x.create("bad-subscription");if(e.fcmSenderId&&("string"!=typeof e.fcmSenderId||0===e.fcmSenderId.length))throw x.create("bad-sender-id");if(e.fcmPushSet&&("string"!=typeof e.fcmPushSet||0===e.fcmPushSet.length))throw x.create("bad-push-set")}var R,H=(e(z,R=F),z.prototype.onDbUpgrade=function(e){e.result.createObjectStore(this.objectStoreName,{keyPath:"swScope"})},z.prototype.getVapidFromSWScope=function(n){return m(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:if("string"!=typeof n||0===n.length)throw x.create("bad-scope");return[4,this.get(n)];case 1:return[2,(t=e.sent())?t.vapidKey:void 0]}})})},z.prototype.saveVapidDetails=function(n,i){return m(this,void 0,void 0,function(){var t;return v(this,function(e){if("string"!=typeof n||0===n.length)throw x.create("bad-scope");if(null===i||65!==i.length)throw x.create("bad-vapid-key");return t={swScope:n,vapidKey:i},[2,this.put(t)]})})},z.prototype.deleteVapidDetails=function(n){return m(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return[4,this.getVapidFromSWScope(n)];case 1:if(!(t=e.sent()))throw x.create("delete-scope-not-found");return[4,this.delete(n)];case 2:return e.sent(),[2,t]}})})},z);function z(){var e=null!==R&&R.apply(this,arguments)||this;return e.dbName="fcm_vapid_details_db",e.dbVersion=1,e.objectStoreName="fcm_vapid_object_Store",e}var q="messagingSenderId",B=(W.prototype.getToken=function(){return m(this,void 0,void 0,function(){var t,n,i,r,o;return v(this,function(e){switch(e.label){case 0:if("denied"===(t=this.getNotificationPermission_()))throw x.create("notifications-blocked");return"granted"!==t?[2,null]:[4,this.getSWRegistration_()];case 1:return n=e.sent(),[4,this.getPublicVapidKey_()];case 2:return i=e.sent(),[4,this.getPushSubscription(n,i)];case 3:return r=e.sent(),[4,this.tokenDetailsModel.getTokenDetailsFromSWScope(n.scope)];case 4:return(o=e.sent())?[2,this.manageExistingToken(n,r,i,o)]:[2,this.getNewToken(n,r,i)]}})})},W.prototype.manageExistingToken=function(t,n,i,r){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return function(e,t,n){if(n.vapidKey&&S(t.buffer,n.vapidKey.buffer)){var i=e.endpoint===n.endpoint,r=S(e.getKey("auth"),n.auth),o=S(e.getKey("p256dh"),n.p256dh);return i&&r&&o}}(n,i,r)?Date.now()<r.createTime+6048e5?[2,r.fcmToken]:[2,this.updateToken(t,n,i,r)]:[4,this.deleteTokenFromDB(r.fcmToken)];case 1:return e.sent(),[2,this.getNewToken(t,n,i)]}})})},W.prototype.updateToken=function(r,o,a,s){return m(this,void 0,void 0,function(){var t,n,i;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,4,,6]),[4,this.iidModel.updateToken(this.messagingSenderId,s.fcmToken,s.fcmPushSet,o,a)];case 1:return t=e.sent(),n={swScope:r.scope,vapidKey:a,fcmSenderId:this.messagingSenderId,fcmToken:t,fcmPushSet:s.fcmPushSet,createTime:Date.now(),endpoint:o.endpoint,auth:o.getKey("auth"),p256dh:o.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(n)];case 2:return e.sent(),[4,this.vapidDetailsModel.saveVapidDetails(r.scope,a)];case 3:return e.sent(),[2,t];case 4:return i=e.sent(),[4,this.deleteToken(s.fcmToken)];case 5:throw e.sent(),i;case 6:return[2]}})})},W.prototype.getNewToken=function(i,r,o){return m(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:return[4,this.iidModel.getToken(this.messagingSenderId,r,o)];case 1:return t=e.sent(),n={swScope:i.scope,vapidKey:o,fcmSenderId:this.messagingSenderId,fcmToken:t.token,fcmPushSet:t.pushSet,createTime:Date.now(),endpoint:r.endpoint,auth:r.getKey("auth"),p256dh:r.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(n)];case 2:return e.sent(),[4,this.vapidDetailsModel.saveVapidDetails(i.scope,o)];case 3:return e.sent(),[2,t.token]}})})},W.prototype.deleteToken=function(i){return m(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:return[4,this.deleteTokenFromDB(i)];case 1:return e.sent(),[4,this.getSWRegistration_()];case 2:return(t=e.sent())?[4,t.pushManager.getSubscription()]:[3,4];case 3:if(n=e.sent())return[2,n.unsubscribe()];e.label=4;case 4:return[2,!0]}})})},W.prototype.deleteTokenFromDB=function(n){return m(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return[4,this.tokenDetailsModel.deleteToken(n)];case 1:return t=e.sent(),[4,this.iidModel.deleteToken(t.fcmSenderId,t.fcmToken,t.fcmPushSet)];case 2:return e.sent(),[2]}})})},W.prototype.getPushSubscription=function(t,n){return t.pushManager.getSubscription().then(function(e){return e||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:n})})},W.prototype.requestPermission=function(){throw x.create("only-available-in-window")},W.prototype.useServiceWorker=function(e){throw x.create("only-available-in-window")},W.prototype.usePublicVapidKey=function(e){throw x.create("only-available-in-window")},W.prototype.onMessage=function(e,t,n){throw x.create("only-available-in-window")},W.prototype.onTokenRefresh=function(e,t,n){throw x.create("only-available-in-window")},W.prototype.setBackgroundMessageHandler=function(e){throw x.create("only-available-in-sw")},W.prototype.delete=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.tokenDetailsModel.closeDatabase(),this.vapidDetailsModel.closeDatabase()])];case 1:return e.sent(),[2]}})})},W.prototype.getNotificationPermission_=function(){return Notification.permission},W.prototype.getTokenDetailsModel=function(){return this.tokenDetailsModel},W.prototype.getVapidDetailsModel=function(){return this.vapidDetailsModel},W.prototype.getIidModel=function(){return this.iidModel},W);function W(e){var t=this;if(!e.options[q]||"string"!=typeof e.options[q])throw x.create("bad-sender-id");this.messagingSenderId=e.options[q],this.tokenDetailsModel=new P,this.vapidDetailsModel=new H,this.iidModel=new E,this.app=e,this.INTERNAL={delete:function(){return t.delete()}}}var $,V="FCM_MSG",U=(e(G,$=B),G.prototype.onPush=function(e){e.waitUntil(this.onPush_(e))},G.prototype.onSubChange=function(e){e.waitUntil(this.onSubChange_(e))},G.prototype.onNotificationClick=function(e){e.waitUntil(this.onNotificationClick_(e))},G.prototype.onPush_=function(s){return m(this,void 0,void 0,function(){var t,n,i,r,o,a;return v(this,function(e){switch(e.label){case 0:if(!s.data)return[2];try{t=s.data.json()}catch(e){return[2]}return[4,this.hasVisibleClients_()];case 1:return e.sent()?[2,this.sendMessageToWindowClients_(t)]:(n=this.getNotificationData_(t))?(i=n.title||"",[4,this.getSWRegistration_()]):[3,3];case 2:return r=e.sent(),o=n.actions,a=Notification.maxActions,o&&a&&o.length,[2,r.showNotification(i,n)];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:return e.sent(),[2];case 5:return[2]}})})},G.prototype.onSubChange_=function(e){return m(this,void 0,void 0,function(){var t,n,i,r;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getSWRegistration_()];case 1:return t=e.sent(),[3,3];case 2:throw n=e.sent(),x.create("unable-to-resubscribe",{errorInfo:n});case 3:return e.trys.push([3,5,,8]),[4,t.pushManager.getSubscription()];case 4:return e.sent(),[3,8];case 5:return i=e.sent(),[4,this.getTokenDetailsModel().getTokenDetailsFromSWScope(t.scope)];case 6:if(!(r=e.sent()))throw i;return[4,this.deleteToken(r.fcmToken)];case 7:throw e.sent(),i;case 8:return[2]}})})},G.prototype.onNotificationClick_=function(o){return m(this,void 0,void 0,function(){var t,n,i,r;return v(this,function(e){switch(e.label){case 0:return!(o.notification&&o.notification.data&&o.notification.data[V])||o.action?[2]:(o.stopImmediatePropagation(),o.notification.close(),(t=o.notification.data[V]).notification&&(n=t.fcmOptions&&t.fcmOptions.link||t.notification.click_action)?[4,this.getWindowClient_(n)]:[2]);case 1:return(i=e.sent())?[3,3]:[4,self.clients.openWindow(n)];case 2:return i=e.sent(),[3,5];case 3:return[4,i.focus()];case 4:i=e.sent(),e.label=5;case 5:return i?(delete t.notification,delete t.fcmOptions,r=X(b.NOTIFICATION_CLICKED,t),[2,this.attemptToMessageClient_(i,r)]):[2]}})})},G.prototype.getNotificationData_=function(e){var t;if(e&&"object"==typeof e.notification){var n=a({},e.notification);return n.data=a({},e.notification.data,((t={})[V]=e,t)),n}},G.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw x.create("bg-handler-function-expected");this.bgMessageHandler=e},G.prototype.getWindowClient_=function(o){return m(this,void 0,void 0,function(){var t,n,i,r;return v(this,function(e){switch(e.label){case 0:return t=new URL(o,self.location.href).href,[4,K()];case 1:for(n=e.sent(),i=null,r=0;r<n.length;r++)if(new URL(n[r].url,self.location.href).href===t){i=n[r];break}return[2,i]}})})},G.prototype.attemptToMessageClient_=function(t,n){return m(this,void 0,void 0,function(){return v(this,function(e){if(!t)throw x.create("no-window-client-to-msg");return t.postMessage(n),[2]})})},G.prototype.hasVisibleClients_=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,K()];case 1:return[2,e.sent().some(function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")})]}})})},G.prototype.sendMessageToWindowClients_=function(r){return m(this,void 0,void 0,function(){var t,n,i=this;return v(this,function(e){switch(e.label){case 0:return[4,K()];case 1:return t=e.sent(),n=X(b.PUSH_MSG_RECEIVED,r),[4,Promise.all(t.map(function(e){return i.attemptToMessageClient_(e,n)}))];case 2:return e.sent(),[2]}})})},G.prototype.getSWRegistration_=function(){return m(this,void 0,void 0,function(){return v(this,function(e){return[2,self.registration]})})},G.prototype.getPublicVapidKey_=function(){return m(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:return[4,this.getSWRegistration_()];case 1:if(!(t=e.sent()))throw x.create("sw-registration-expected");return[4,this.getVapidDetailsModel().getVapidFromSWScope(t.scope)];case 2:return null==(n=e.sent())?[2,C]:[2,n]}})})},G);function G(e){var t=$.call(this,e)||this;return t.bgMessageHandler=null,self.addEventListener("push",function(e){t.onPush(e)}),self.addEventListener("pushsubscriptionchange",function(e){t.onSubChange(e)}),self.addEventListener("notificationclick",function(e){t.onNotificationClick(e)}),t}function K(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function X(e,t){var n;return(n={})[g.TYPE_OF_MSG]=e,n[g.DATA]=t,n}var Y,Q,Z=(e(J,Y=B),J.prototype.requestPermission=function(){return m(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return"granted"===this.getNotificationPermission_()?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw"denied"===t?x.create("permission-blocked"):x.create("permission-default")}})})},J.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw x.create("sw-registration-expected");if(null!=this.registrationToUse)throw x.create("use-sw-before-get-token");this.registrationToUse=e},J.prototype.usePublicVapidKey=function(e){if("string"!=typeof e)throw x.create("invalid-public-vapid-key");if(null!=this.publicVapidKeyToUse)throw x.create("use-public-key-before-get-token");var t=N(e);if(65!==t.length)throw x.create("public-vapid-key-decryption-failed");this.publicVapidKeyToUse=t},J.prototype.onMessage=function(e,t,n){return"function"==typeof e?this.onMessageInternal(e,t,n):this.onMessageInternal(e)},J.prototype.onTokenRefresh=function(e,t,n){return"function"==typeof e?this.onTokenRefreshInternal(e,t,n):this.onTokenRefreshInternal(e)},J.prototype.waitForRegistrationToActivate_=function(i){var r=i.installing||i.waiting||i.active;return new Promise(function(e,t){if(r)if("activated"!==r.state)if("redundant"!==r.state){var n=function(){if("activated"===r.state)e(i);else{if("redundant"!==r.state)return;t(x.create("sw-reg-redundant"))}r.removeEventListener("statechange",n)};r.addEventListener("statechange",n)}else t(x.create("sw-reg-redundant"));else e(i);else t(x.create("no-sw-in-reg"))})},J.prototype.getSWRegistration_=function(){var t=this;return this.registrationToUse?this.waitForRegistrationToActivate_(this.registrationToUse):(this.registrationToUse=null,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}).catch(function(e){throw x.create("failed-serviceworker-registration",{browserErrorMessage:e.message})}).then(function(e){return t.waitForRegistrationToActivate_(e).then(function(){return(t.registrationToUse=e).update(),e})}))},J.prototype.getPublicVapidKey_=function(){return m(this,void 0,void 0,function(){return v(this,function(e){return this.publicVapidKeyToUse?[2,this.publicVapidKeyToUse]:[2,C]})})},J.prototype.setupSWMessageListener_=function(){var i=this;navigator.serviceWorker.addEventListener("message",function(e){if(e.data&&e.data[g.TYPE_OF_MSG]){var t=e.data;switch(t[g.TYPE_OF_MSG]){case b.PUSH_MSG_RECEIVED:case b.NOTIFICATION_CLICKED:var n=t[g.DATA];i.messageObserver&&i.messageObserver.next(n)}}},!1)},J);function J(e){var t=Y.call(this,e)||this;return t.registrationToUse=null,t.publicVapidKeyToUse=null,t.messageObserver=null,t.tokenRefreshObserver=null,t.onMessageInternal=c(function(e){t.messageObserver=e}),t.onTokenRefreshInternal=c(function(e){t.tokenRefreshObserver=e}),t.setupSWMessageListener_(),t}function ee(){return self&&"ServiceWorkerGlobalScope"in self?"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}Q={isSupported:ee},te.INTERNAL.registerService("messaging",function(e){if(!ee())throw x.create("unsupported-browser");return new(self&&"ServiceWorkerGlobalScope"in self?U:Z)(e)},Q)}).apply(this,arguments)}catch(e){throw new Error("Cannot instantiate firebase-messaging - be sure to load firebase-app.js first.")}}),function(e){("object"!=typeof exports||"undefined"==typeof module)&&"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var c,i,r=(i={topSpacing:0,bottomSpacing:0,containerSelector:!(c=".stickySidebar"),innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",resizeSensor:!0,minWidth:!1},function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}(l,[{key:"initialize",value:function(){var n=this;if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){var e=document.createElement("div");for(e.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(e);this.sidebar.firstChild!=e;)e.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){var t=document.querySelectorAll(this.options.containerSelector);if((t=Array.prototype.slice.call(t)).forEach(function(e,t){e.contains(n.sidebar)&&(n.container=e)}),!t.length)throw new Error("The container does not contains on the sidebar.")}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}},{key:"bindEvents",value:function(){window.addEventListener("resize",this,{passive:!0,capture:!1}),window.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+c,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent))}},{key:"handleEvent",value:function(e){this.updateSticky(e)}},{key:"calcDimensions",value:function(){if(!this._breakpoint){var e=this.dimensions;e.containerTop=l.offsetRelative(this.container).top,e.containerHeight=this.container.clientHeight,e.containerBottom=e.containerTop+e.containerHeight,e.sidebarHeight=this.sidebarInner.offsetHeight,e.sidebarWidth=this.sidebar.offsetWidth,e.viewportHeight=window.innerHeight,this._calcDimensionsWithScroll()}}},{key:"_calcDimensionsWithScroll",value:function(){var e=this.dimensions;e.sidebarLeft=l.offsetRelative(this.sidebar).left,e.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,e.viewportBottom=e.viewportTop+e.viewportHeight,e.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,e.topSpacing=this.options.topSpacing,e.bottomSpacing=this.options.bottomSpacing,"function"==typeof e.topSpacing&&(e.topSpacing=parseInt(e.topSpacing(this.sidebar))||0),"function"==typeof e.bottomSpacing&&(e.bottomSpacing=parseInt(e.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?e.topSpacing<e.lastTopSpacing&&(e.translateY+=e.lastTopSpacing-e.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&e.bottomSpacing<e.lastBottomSpacing&&(e.translateY+=e.lastBottomSpacing-e.bottomSpacing,this._reStyle=!0),e.lastTopSpacing=e.topSpacing,e.lastBottomSpacing=e.bottomSpacing}},{key:"isSidebarFitsViewport",value:function(){return this.dimensions.sidebarHeight<this.dimensions.viewportHeight}},{key:"observeScrollDir",value:function(){var e=this.dimensions;if(e.lastViewportTop!==e.viewportTop){var t="down"===this.direction?Math.min:Math.max;e.viewportTop===t(e.viewportTop,e.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down")}}},{key:"getAffixType",value:function(){var e=this.dimensions,t=!1;this._calcDimensionsWithScroll();var n=e.sidebarHeight+e.containerTop,i=e.viewportTop+e.topSpacing,r=e.viewportBottom-e.bottomSpacing;return"up"===this.direction?i<=e.containerTop?(e.translateY=0,t="STATIC"):i<=e.translateY+e.containerTop?(e.translateY=i-e.containerTop,t="VIEWPORT-TOP"):!this.isSidebarFitsViewport()&&e.containerTop<=i&&(t="VIEWPORT-UNBOTTOM"):this.isSidebarFitsViewport()?e.sidebarHeight+i>=e.containerBottom?(e.translateY=e.containerBottom-n,t="CONTAINER-BOTTOM"):i>=e.containerTop&&(e.translateY=i-e.containerTop,t="VIEWPORT-TOP"):e.containerBottom<=r?(e.translateY=e.containerBottom-n,t="CONTAINER-BOTTOM"):n+e.translateY<=r?(e.translateY=r-n,t="VIEWPORT-BOTTOM"):e.containerTop+e.translateY<=i&&(t="VIEWPORT-UNBOTTOM"),e.translateY=Math.max(0,e.translateY),e.translateY=Math.min(e.containerHeight,e.translateY),e.lastViewportTop=e.viewportTop,t}},{key:"_getStyle",value:function(e){if(void 0!==e){var t={inner:{},outer:{}},n=this.dimensions;switch(e){case"VIEWPORT-TOP":t.inner={position:"fixed",top:n.topSpacing,left:n.sidebarLeft-n.viewportLeft,width:n.sidebarWidth};break;case"VIEWPORT-BOTTOM":t.inner={position:"fixed",top:"auto",left:n.sidebarLeft,bottom:n.bottomSpacing,width:n.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":var i=this._getTranslate(0,n.translateY+"px");t.inner=i?{transform:i}:{position:"absolute",top:n.translateY,width:n.sidebarWidth}}switch(e){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":t.outer={height:n.sidebarHeight,position:"relative"}}return t.outer=l.extend({height:"",position:""},t.outer),t.inner=l.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:this._getTranslate()},t.inner),t}}},{key:"stickyPosition",value:function(e){if(!this._breakpoint){e=this._reStyle||e||!1;var t=this.getAffixType(),n=this._getStyle(t);if((this.affixedType!=t||e)&&t){var i="affix."+t.toLowerCase().replace("viewport-","")+c;for(var r in l.eventTrigger(this.sidebar,i),"STATIC"===t?l.removeClass(this.sidebar,this.options.stickyClass):l.addClass(this.sidebar,this.options.stickyClass),n.outer)this.sidebar.style[r]=n.outer[r];for(var o in n.inner){var a="number"==typeof n.inner[o]?"px":"";this.sidebarInner.style[o]=n.inner[o]+a}var s="affixed."+t.toLowerCase().replace("viewport-","")+c;l.eventTrigger(this.sidebar,s)}else this._initialized&&(this.sidebarInner.style.left=n.inner.left);this.affixedType=t}}},{key:"_widthBreakpoint",value:function(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),l.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}},{key:"updateSticky",value:function(){var e,t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._running||(this._running=!0,e=n.type,requestAnimationFrame(function(){switch(e){case"scroll":t._calcDimensionsWithScroll(),t.observeScrollDir(),t.stickyPosition();break;case"resize":default:t._widthBreakpoint(),t.calcDimensions(),t.stickyPosition(!0)}t._running=!1}))}},{key:"_setSupportFeatures",value:function(){var e=this.support;e.transform=l.supportTransform(),e.transform3d=l.supportTransform(!0)}},{key:"_getTranslate",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;return this.support.transform3d?"translate3d("+e+", "+t+", "+n+")":!!this.support.translate&&"translate("+e+", "+t+")"}},{key:"destroy",value:function(){window.removeEventListener("resize",this,{caption:!1}),window.removeEventListener("scroll",this,{caption:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+c,this);var e={inner:{},outer:{}};for(var t in e.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},e.outer={height:"",position:""},e.outer)this.sidebar.style[t]=e.outer[t];for(var n in e.inner)this.sidebarInner.style[n]=e.inner[n];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}}],[{key:"supportTransform",value:function(e){var n=!1,t=e?"perspective":"transform",i=t.charAt(0).toUpperCase()+t.slice(1),r=document.createElement("support").style;return(t+" "+["Webkit","Moz","O","ms"].join(i+" ")+i).split(" ").forEach(function(e,t){if(void 0!==r[e])return n=e,!1}),n}},{key:"eventTrigger",value:function(e,t,n){try{var i=new CustomEvent(t,{detail:n})}catch(e){(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n)}e.dispatchEvent(i)}},{key:"extend",value:function(e,t){var n={};for(var i in e)void 0!==t[i]?n[i]=t[i]:n[i]=e[i];return n}},{key:"offsetRelative",value:function(e){var t={left:0,top:0};do{var n=e.offsetTop,i=e.offsetLeft;isNaN(n)||(t.top+=n),isNaN(i)||(t.left+=i),e="BODY"===e.tagName?e.parentElement:e.offsetParent}while(e);return t}},{key:"addClass",value:function(e,t){l.hasClass(e,t)||(e.classList?e.classList.add(t):e.className+=" "+t)}},{key:"removeClass",value:function(e,t){l.hasClass(e,t)&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}}]),l);function l(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),this.options=l.extend(i,n),this.sidebar="string"==typeof e?document.querySelector(e):e,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this._resizeListeners=[],this.dimensions={translateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(function(e){t[e]=t[e].bind(t)}),this.initialize()}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}window.StickySidebar=r,function(){if("undefined"!=typeof window){var i=window.$||window.jQuery||window.Zepto;if(i){i.fn.stickySidebar=function(n){return this.each(function(){var e=i(this),t=i(this).data("stickySidebar");if(t||(t=new r(this,"object"==typeof n&&n),e.data("stickySidebar",t)),"string"==typeof n){if(void 0===t[n]&&-1===["destroy","updateSticky"].indexOf(n))throw new Error('No method named "'+n+'"');t[n]()}})},i.fn.stickySidebar.Constructor=r;var e=i.fn.stickySidebar;i.fn.stickySidebar.noConflict=function(){return i.fn.stickySidebar=e,this}}}}()}),function(o,a){"use strict";a.intervals=a.intervals||[];var s=/^[a-zA-Z0-9_\-\.\+\^!#\$%&*+\/\=\?\`\|\{\}~\']+@((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.?)+|((\[[0-9]{1,3}(\.[0-9]{1,3}){3}|[0-9a-fA-F]{1,4}(\:[0-9a-fA-F]{1,4}){7})\]))$/i,r=Math.floor(Date.now()/1e3);function e(e){if(0!==e.length){var i={},t=o("body").data("timestamp");if(void 0!==t){var n=Math.floor(Date.now()/1e3)-r+t;i._t=Math.floor(n/30)}i.boxes={},e.each(function(){var e=o(this),t=e.data("box"),n=e.data("aba");i.boxes[t]=[n]}),o.ajax({url:"/ajax/mercado-futuro.php",data:i,cache:!0,success:function(r){e.each(function(){var e=o(this),t=e.data("box"),n=e.data("aba"),i=e.parent().parent().siblings("div.wrap-cot-table");i.html(r[t][n]),e.parent().siblings("li").removeClass("active"),e.parent().addClass("active"),i.find(".open-bmf-window").length&&(i||o("div.cotacao div.wrap-cot-table")).find(".open-bmf-window").each(function(){var e=o(this),t=e.find(":first"),n=e.data("codigo"),i=t.html();t.empty(),o('<a href="#">'+i+"</a>").appendTo(t).click(function(){return window.open("https://quotes.enfoque.com.br/noticiasagricolas/login.aspx?cod="+n,n,"width=760,height=440,scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,resizable=yes,left=0,top=0"),!1})})})}})}}function i(e,t,n){var i={};e&&(i.estado=e),t.removeClass("loaded"),o.ajax({url:"/ajax/clima.php",data:i,dataType:"json",cache:!0,success:function(e){t.find(".imgclima").html("<img src='"+e.icon+"'>"),t.find(".tempmax").html(e.temp_max+"&deg;C"),t.find(".tempmin").html(e.temp_min+"&deg;C"),n.val(e.estado),t.addClass("loaded")}})}o(document).ready(function(){setTimeout(function(){new LazyLoad({elements_selector:".lazy",use_native:!0})},0),setTimeout(function(){bindLoginPopup()},0),setTimeout(function(){var t,n;t=o(".box-clima"),(n=t.find("#previsaotempo")).change(function(){var e=this.value;localStorage.setItem("clima-estado",e),i(e,t,n)}),i(localStorage.getItem("clima-estado"),t,n)},0),setTimeout(function(){o(".lazy-embed").each(function(){var e=o(this),t=e.data("src"),n=o("html").hasClass("mobile-site");n||(t+="?autoplay=1");var i='<iframe src="'+t+'" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>';n?e.parent().html(i):e.on("click",function(){o("body").addClass("video-playing"),e.parent().html(i)})})},25),setTimeout(function(){bindValidacaoGenerica()},50),setTimeout(function(){var i,r;i=o("#newsletter"),(r=i.find("form")).submit(function(){var t=r.find("input:text"),e=o.trim(t.val()),n=!1;return""===e?(errorMessage(t,"Preencha seu e-mail (exemplo@example.com)"),n=!0):s.test(e)?removeErrorMessage(t):(errorMessage(t,"Formato de email inválido (exemplo@example.com)"),n=!0),n||o.ajax({method:"post",url:"/ajax/cadastro-mailing.php",data:{email:e},beforeSend:function(){r.addClass("loading")},success:function(e){"ok"===e?(r.remove(),i.find(".wrapper").append('<div class="sucesso mensagem">Feito! Agora você receberá boletins diários com as principais notícias do dia.</div>')):"e_mail_invalido"===e?errorMessage(t,"Formato de email inválido (exemplo@example.com)"):errorMessage(t,"Ops. Algum erro desconhecido aconteceu!")},complete:function(){r.removeClass("loading")}}),!1})},100),setTimeout(function(){o("div.mercado-futuro.auto-refresh li a").click(function(){return e(o(this)),!1}),e(o("div.mercado-futuro.auto-refresh li.active a")),setInterval(function(){e(o("div.mercado-futuro.auto-refresh li.active a"))},12e4)},300),setTimeout(function(){!function(){var e=navigator.userAgent.toLowerCase(),t=o("body");if(t.hasClass("count-view")&&!/googlebot|adsbot|robot|spider|crawler|curl|^$/i.test(e)){var n=t.attr("class"),i=/view-type-([^\s]*)/i.exec(n),r=/view-id-([^\s]*)/i.exec(n);o.ajax({method:"post",data:{id:r[1],tipo:i[1]},url:"/ajax/incrementa-visualizacao.php"})}}()},1e3),setTimeout(function(){var t,n;t=o(".cotacao-investing"),n=t.find(".content-wrap div"),t.find("ul a").click(function(){var e=n.filter("."+o(this).data("aba"));return e.hasClass("loaded")||e.prepend(e.data("iframe")).addClass("loaded"),n.removeClass("active"),t.find("ul li").removeClass("active"),e.addClass("active"),o(this).parent().addClass("active"),!1}),o(window).bind("scroll.investing-box",function(){t.hasClass("loaded")||t.addClass("loaded").find("ul li.active a").click()}),100<o(window).scrollTop()&&o(window).trigger("scroll.investing-box")},1100),setTimeout(function(){!function(){var e,t=o(".fb-pages"),n=o(a),i=["JoaoBOlivi","NoticiasAgricolas"],r="";if(0===t.length)return;for(e in i)r+='<div class="fb-page" data-href="https://www.facebook.com/'+i[e]+'?ref=bookmarks" data-width="357" data-height="830" data-hide-cover="false" data-show-facepile="true" data-show-posts="true"></div>';n.bind("scroll.fb-pages",function(){t.hasClass("loaded")||(t.addClass("loaded").html(r),FB.XFBML.parse(t.get(0)),n.unbind("scroll.fb-pages"))}),100<n.scrollTop()&&n.trigger("scroll.fb-pages")}()},1500),setTimeout(function(){!function(){var e=[/youtube/,/facebook/,/vimeo/],t=!0,i=o("#content"),r=o("body");if([/login/,/cadastro/,/meus-dados/,/fale-conosco/].forEach(function(e){e.test(location.pathname)&&(t=!1)}),!t)return;a.intervals.page=setInterval(function(){var n=!0;i.find("textarea").each(function(){var e=o(this);""!==e.val()&&(n=!1)}),(r.hasClass("live-video")||r.hasClass("video-playing"))&&(n=!1),i.find("iframe").each(function(){var t=o(this);e.forEach(function(e){e.test(t.attr("src"))&&(n=!1)})}),n&&window.location.reload()},3e5)}()},2500),setTimeout(function(){!function(){var e=document.getElementById("audima");if(e){e.innerHTML="";var t=document.createElement("iframe");t.border=0,t.frameBorder=0,t.width=320,t.height=50,e.appendChild(t);var n=function(){try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("Could not create HTTP request object.")}();n.open("GET","https://audima.co/dfp_frame_new.txt",!0),n.send(null),n.onreadystatechange=function(){4==n.readyState&&(t.contentWindow.document.open("text/html"),t.contentWindow.document.write(n.responseText),t.contentWindow.document.close())}}}()},0),setTimeout(function(){var t,n;t=o("#box-lista-noticias"),(n=t.find("ul.abas a")).click(function(){var e=o(this);return n.removeClass("selected"),e.addClass("selected"),o.ajax({url:"/ajax/mais-noticias.php",data:{aba:e.data("aba")},success:function(e){t.find(".content").html(e)}}),!1})},300)}),a.errorMessage=function(e,t){0<o(".mensagem.erro",o(e).parent()).length?o(".mensagem.erro",o(e)).text(t):o(e).addClass("erro").after('<div class="erro mensagem">'+t+"</div>")},a.removeErrorMessage=function(e){o(e).removeClass("erro"),o(".mensagem.erro",o(e).parent()).remove()},a.getCookie=function(e){var t,n,i,r=document.cookie.split(";");for(t=0;t<r.length;t++)if(n=r[t].substr(0,r[t].indexOf("=")),i=r[t].substr(r[t].indexOf("=")+1),(n=n.replace(/^\s+|\s+$/g,""))===e)return unescape(i)},a.bindLoginPopup=function(){o("a.ajax-popup-login:not(.popup-login-bound)").addClass("popup-login-bound").magnificPopup({type:"ajax",mainClass:"login-popup",callbacks:{ajaxContentAdded:function(e,t,n){var i=o(this.st.el).find(":input:first");o(".mfp-content form").submit(function(e){e.preventDefault();var r=o(this);return o.ajax({type:"POST",url:"/api/login",data:o(this).serialize(),cache:!1,beforeSend:function(){o.magnificPopup.instance.updateStatus("loading","Carregando..."),r.find(".messages").remove(),r.find("input").removeClass("erro")},success:function(e){o("a.ajax-popup-login").find("form").data(e),o("a.ajax-popup-login:not(.no-unwrap)").children().unwrap(),o("div#usuario,div#usuario-imagem,div#header-login,div.login-menu").removeClass("deslogado").addClass("logado"),o.magnificPopup.close(),"imagens-do-dia"===e.destino&&o(".ajax-popup-imagem").click(),0===a.location.pathname.lastIndexOf("/cadastro/")&&a.location.reload(),0<i.length&&i.get(0).focus()},error:function(e){var t=JSON.parse(e.responseText),n=[];for(var i in t.errors)r.find("[name="+i+"]").addClass("erro"),n.push(t.errors[i]);r.find("fieldset legend").first().after('<div class="messages error"><ul><li>'+n.join("</li><li>")+"</li></ul></div>")},complete:function(){o.magnificPopup.instance.updateStatus("ready","")}}),!1})}}})},a.bindValidacaoGenerica=function(){o("form:not(.validation-processed)").each(function(){var i=o(this);i.addClass("validation-processed"),o("input[type=submit]",i).bind("click",function(){var e=!0;removeErrorMessage(i),o(".validation-processed",i).trigger("blur.validation").promise().done(function(){o(".mensagem.erro").length&&(o("html, body").animate({scrollTop:o(".mensagem.erro").first().offset().top-150},750,function(){o(".validation-processed.erro").first().focus()}),e=!1)});var t=o(".g-recaptcha",i),n=t.find("textarea.g-recaptcha-response");return 0<t.length&&0<n.length&&0===n.val().length&&(errorMessage(t,"Captcha inválido!"),e=!1),e}),o("input.required, select.required, textarea.required",i).on("blur.validation",function(){this.value=o.trim(this.value),this.value?removeErrorMessage(o(this)):errorMessage(this,"Campo obrigatório!")}),o("input.validate-email",i).on("keyup.validation blur.validation",function(){this.value=o.trim(this.value),this.value&&(s.test(this.value)?removeErrorMessage(o(this)):errorMessage(this,"Formato de email inválido (exemplo@example.com)"))})})}}(jQuery,window),function(r,n){n.googletag=n.googletag||{cmd:[]},n._czmbT=n._czmbT||[],n._taboola=n._taboola||[];var e,t,i=[],o=r("#dfp-terceiro-rich-media, #dfp-banner-base-fixa").length;function a(){if(--o<=0){var e=n.document.createElement("script"),t=n.document.getElementsByTagName("script")[0];e.async=!0,e.src="https://api.cazamba.com/d46ba1638e29674ef89b951ac60f2908.js",t.parentNode.insertBefore(e,t)}}function s(){e=e||r("#sidebar"),(t=t||e.data("stickySidebar"))&&t.updateSticky()}o<=0&&a(),n._taboola.push({listenTo:"render",handler:function(){s()}});function c(){n.googletag.cmd.push(function(){n.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t=e.slot.getSlotElementId(),n=r("#"+t);"function"==typeof i[t]&&i[t](e,n),n.addClass("render-end"),e.isEmpty&&n.hasClass("collapse-empty")?n.hide():e.isEmpty||n.show(),s()})})}void 0!==n.pg?(n._pb=n._pb||{cmd:[]},n._pb.cmd.push(c)):c(),i["dfp-envelopamento"]=function(e,t){e.isEmpty?t.parent().css("display","none"):(t.parent().css("width","100%"),t.parent().css("margin-bottom","-810px"),t.parent().css("display","flex"),t.parent().css("justify-content","center"))},i["dfp-banner-base-fixa"]=i["dfp-terceiro-rich-media"]=function(e,t){if(e.isEmpty)a();else{var n=r('<a href="#" class="close">FECHAR <span>X</span></a>'),i=t.data("fechar-em");t.css({marginLeft:"-"+e.size[0]/2+"px",width:e.size[0],height:e.size[1],display:"block"}),"dfp-terceiro-rich-media"===e.slot.getSlotElementId()&&t.css({marginTop:"-"+e.size[1]/2+"px"}),n.prependTo(t).bind("click.popup",function(){return t.fadeOut(500,function(){t.remove()}),!1}),0<i&&setTimeout(function(){n.trigger("click.popup")},1e3*i)}},i.noticiasagricolas_mob_anchor=function(e,t){if(!e.isEmpty){var n=r('<a href="#" class="close-footer fas fa-window-close"></a>');r("#noticiasagricolas_mob_anchor").show(),n.prependTo(t).bind("click.popup",function(){return t.fadeOut(500,function(){t.remove()}),!1}),a()}}}(jQuery,window),function(i){"use strict";function e(){i(".fb-login").bind("click",function(){var n=i(this).closest("form");return n.find(".messages").remove(),FB.login(function(e){var r,t;e.authResponse?(r=n,t=e.authResponse.accessToken,i.ajax({url:"/api/fb-login",data:{access_token:t},cache:!1,beforeSend:function(){i.magnificPopup.instance.isOpen&&i.magnificPopup.instance.updateStatus("loading","Carregando..."),r.find(".messages").remove(),r.find("input").removeClass("erro")},success:function(e){if(i.magnificPopup.instance.isOpen){var t=i.magnificPopup.instance.st.el.find(":input:first");delete e.success,i("a.ajax-popup-login").find("form").data(e),i("a.ajax-popup-login:not(.no-unwrap)").children().unwrap(),i("div#usuario,div#usuario-imagem,div#header-login").removeClass("deslogado").addClass("logado"),i.magnificPopup.close(),0<t.length&&t.get(0).focus()}else{var n=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}("destination");window.location=""!==n?n:"/"}},error:function(e){var t=JSON.parse(e.responseText),n=[];for(var i in t.errors)r.find("[name="+i+"]").addClass("erro"),n.push(t.errors[i]);r.find("fieldset legend").first().after('<div class="messages error"><ul><li>'+n.join("</li><li>")+"</li></ul></div>")},complete:function(){i.magnificPopup.instance.isOpen&&i.magnificPopup.instance.updateStatus("ready","")}})):n.find("fieldset legend").first().after('<div class="messages error">Você precisa autorizar o Notícias Agrícolas a acessar os dados do seu Facebook.</div>')},{scope:"public_profile,email,user_location"}),!1})}i(document).ready(function(){e(),i("a.ajax-popup-login").on("mfpAjaxContentAdded",function(){e()})})}(jQuery,window),function(d,p){"use strict";p.intervals=p.intervals||[],p.isLive=p.isLive||!1;var o=0,f=Math.floor(Date.now()/1e3);function e(){var e={},r=d("body"),t=r.data("timestamp"),n=parseInt(p.localStorage.getItem("live_stuck_stop")||0);if(!(!r.hasClass("home")&&n&&f<n+3600)){if(void 0!==t){var i=Math.floor(Date.now()/1e3)-f+t;e._t=Math.floor(i/20)}d.ajax({url:"/ajax/ao-vivo.php",data:e,dataType:"json",cache:!0,success:function(e){var t=d(".live-wrapper");if(e.live){if(o!==e.id){d(".videos-topo .video").removeClass("active");var n=e.info.url;e.info.isFacebook&&(n="https://www.facebook.com/v4.0/plugins/video.php?app_id=419904948190832&autoplay=true&locale=pt_BR&show_text=false&href="+encodeURIComponent(n));var i='<iframe src="'+n+'" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>';t.find(".video").html(i),t.find(".box-informacoes > a").removeAttr("href"),t.find(".saiba-mais").hide(),p.isLive=!0,d(window).trigger("scroll.live"),r.addClass("live-video"),1===e.info.perguntas&&(t.find(".abrir-pergunta").show(),d("#destaque-video .abrir-pergunta").unbind().click(function(){return d(".box-pergunta").slideDown(),!1}),d("#cancelar-pergunta").unbind().click(function(){return d(".box-pergunta").slideUp(),d("#pergunta-nome").val(""),d("#pergunta-email").val(""),d("#pergunta-cidade").val(""),d("#pergunta-uf").val(""),d("#pergunta-pergunta").val(""),!1}),d("#frm-perguntar").unbind().submit(function(){return d.post("/ajax/perguntas.php",{nome:d("#pergunta-nome").val(),email:d("#pergunta-email").val(),cidadeuf:d("#pergunta-cidade").val(),pergunta:d("#pergunta-pergunta").val()}),d("#cancelar-pergunta").trigger("click"),!1}))}t.find(".titulo").html(e.info.entrevistado),t.find(".descricao").html(e.info.titulo+"<br>"+e.info.texto)}else o!==e.id&&(r.hasClass("home")&&window.location.reload(),t.find("a.close").trigger("click"));o=e.id}})}}d(document).ready(function(){setTimeout(function(){e()},0),setTimeout(function(){var e,i,r,o,a,s,c,t,l,u;e=d(".live-wrapper"),i=d(window),r=d("body"),o=e.find(".video-wrapper"),a=e.find(".video"),s=a.outerHeight(),c=d('<a href="#" class="fas fa-angle-double-down close">'),t=parseInt(p.localStorage.getItem("live_stuck_stop")||0),l=!1,u=t&&f<t+3600,c.on("click",function(){return u=!0,a.css("animation","fade-in-down 0.75s ease forwards"),setTimeout(function(){r.removeClass("live-video"),a.removeClass("stuck").removeAttr("style"),r.hasClass("home")||a.remove(),p.localStorage.setItem("live_stuck_stop",f)},750),!1}),i.on("scroll.live",function(){if(!u&&p.isLive){var e=i.scrollTop(),t=s+o.offset().top,n=r.hasClass("home");if(!l&&(!n||t<e))return l=!0,o.height(s),a.addClass("stuck"),void c.prependTo(a);l&&n&&e<t&&(l=!1,o.height("auto"),a.removeClass("stuck"))}})},100),setTimeout(function(){var e;0<(e=d("#sidebar")).length&&e.stickySidebar({topSpacing:20,bottomSpacing:20,containerSelector:"#page > .content-container"})},200),setTimeout(function(){!function(){if(getCookie("force_full_site")){var e='<div class="wrapper"><a class="full-mobile-site" href="#">Acessar versão para celular</a></div>';d("body").append(e).prepend(e),d("a.full-mobile-site").click(function(){return document.cookie="force_full_site=0; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;",location.reload(),!1})}}()},2200),p.intervals.aovivo=setInterval(function(){e()},6e4)})}(jQuery,window),function(r,o){"use strict";o.intervals=o.intervals||[],o.isLive=o.isLive||!1,r(document).ready(function(){r("body").hasClass("home")&&(setTimeout(function(){var n,e,i;n=r(".videos-topo .video"),e=n.first(),i=r("#destaque-video"),e.addClass("active"),n.on("click",function(){var e=r(this);r("body").removeClass("live-video"),o.isLive=!1,clearInterval(o.intervals.aovivo),n.removeClass("active"),e.addClass("active"),i.find(".saiba-mais").show(),i.find(".abrir-pergunta").hide(),i.find(".box-informacoes > a").attr("href",e.data("url")),i.find(".video").html(e.data("video")),i.find(".titulo").text(e.data("titulo")),i.find(".descricao").text(e.data("descricao"));var t=i.find("iframe");0<t.length&&-1!==t.attr("src").indexOf("vimeo")&&new Vimeo.Player(t.get(0)).play()})},0),function(){var e=document.getElementById("audima_desktop");e.innerHTML="";var t=document.createElement("iframe");t.border=0,t.frameBorder=0,t.width=300,t.height=250,e.appendChild(t);var n=function(){try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("Could not create HTTP request object.")}();n.open("GET","https://audima.co/dfp_frame_new_300x250.txt",!0),n.send(null),n.onreadystatechange=function(){4==n.readyState&&(t.contentWindow.document.open("text/html"),t.contentWindow.document.write(n.responseText),t.contentWindow.document.close())}}())})}(jQuery,window),function(c){"use strict";function e(e){var t,n,i,r,o=c(e),a=(o.find("img"),o.attr("title")),s=o.data("img");t=s,n=a,i=c("#galeria").find("#main-img"),r=i.find("#img-desc"),i.css("background","url("+t+")"),r.html(n)}c(document).ready(function(){c("body").hasClass("acompanhamento-de-safras")&&(e(c("#thumbs a")[0]),c("#thumbs a").click(function(){return e(c(this)),!1}))})}(jQuery),function(t){"use strict";function e(){var e=t(".original").offset().top;t(window).scrollTop()>=e?(t(".cloned").css("left",0).css("top",0).show(),t(".original").css("visibility","hidden")):(t(".cloned").hide(),t(".original").css("visibility","visible"))}t(document).ready(function(){t("body").hasClass("aplicativo")&&(t(".background-app").addClass("original").clone().insertAfter(".background-app").addClass("cloned").removeClass("original").hide(),t(".original").offset().top&&setInterval(e,10))})}(jQuery),function(e){function t(){profissao=e("#profissao").val(),1==profissao?e("#area-producao").css("display","block"):e("#area-producao").css("display","none")}e(document).ready(function(){e("body").hasClass("cadastro")&&0<e("#frm-cadastro").length&&(e("input[name=senha]").addClass("validation-processed").on("keyup.validation blur.validation",function(){this.value&&(this.value.length<6?errorMessage(this,"Por favor digite uma senha com pelo menos 6 caracteres."):(this.value!==e("input[name=confirmasenha]").val()?errorMessage(e("input[name=confirmasenha]"),"As senhas não são iguais."):removeErrorMessage(e("input[name=confirmasenha]")),removeErrorMessage(e(this))))}),e("input[name=confirmasenha]").addClass("validation-processed").on("keyup.validation blur.validation",function(){this.value&&(this.value!==e("input[name=senha]").val()?errorMessage(this,"As senhas não são iguais."):removeErrorMessage(e(this)))})),t(),e("#profissao").change(function(){t()})})}(jQuery),function(k){"use strict";function t(){var e=x(k("#chicago").val()),t=x(k("#premio").val()),n=x(k("#dolar").val()),i=x(k("#portuaria").val()),r=x(k("#corretor").val()),o=x(k("#cambio").val()),a=x(k("#porto").val()),s=x(k("#frete").val()),c=x(k("#despesas").val());if(r/=100,o/=100,a/=100,0==x(k("#cultura").val()))var l=x((e+t)/100*36.7454);else l=x((e+t)/100*39.3682);var u=x(l*n),d=x(l/16.667),p=x(u/16.667),f=x(l-i-r*l-o*l-a*l),h=x(f*n),m=x(f/16.667),v=x(h/16.667),g=x(f-(s/n+c/n)),y=x(g/16.667),b=x(g*n),w=x(y*n);k("#dolar_tonelada_div").html("US$"+l+"/ton"),k("#reais_tonelada_div").html("R$"+u+"/ton"),k("#reais_saca_div").html("R$"+p+"/sc"),k("#dolar_saca_div").html("US$"+d+"/sc"),k("#dolar_tonelada_2_div").html("US$"+f+"/ton"),k("#reais_tonelada_2_div").html("R$"+h+"/ton"),k("#dolar_saca_2_div").html("US$"+m+"/sc"),k("#reais_saca_2_div").html("R$"+v+"/sc"),k("#dolar_tonelada_3_div").html("US$"+g+"/ton"),k("#dolar_saca_3_div").html("US$"+y+"/sc"),k("#reais_tonelada_3_div").html("R$"+b+"/ton"),k("#reais_saca_3_div").html("R$"+w+"/sc")}function x(e){return""==e&&(e=0),("string"==typeof e||e instanceof String)&&(e=e.replace(",",".")),e=parseFloat(e).toFixed(2),e=Math.round(100*e)/100}k(document).ready(function(){k("body").hasClass("calculadora")&&(setTimeout(function(){t()},500),k(".atualiza").keyup(function(){t()}),k(".select").on("change",function(){var e=this.value;e=Math.round(100*e)/100,k("#chicago").val(e),t()}),k(".select1").on("change",function(){var e=this.value;k("#premio").val(e),t()}),k("#paridade_soja").on("click",function(e){k(e.delegateTarget).css("background-color","#207fc6"),k(e.delegateTarget).css("color","white"),k("#paridade_milho").css("background-color","white"),k("#paridade_milho").css("color","#207fc6"),k("#premio_soja").show(),k("#preco_soja").show(),k("#preco_milho").hide(),k("#premio_milho").hide(),k("#cultura").val("0"),t()}),k("#paridade_milho").on("click",function(e){k(e.delegateTarget).css("background-color","#207fc6"),k(e.delegateTarget).css("color","white"),k("#paridade_soja").css("background-color","white"),k("#paridade_soja").css("color","#207fc6"),k("#premio_milho").show(),k("#preco_milho").show(),k("#preco_soja").hide(),k("#premio_soja").hide(),k("#cultura").val("1"),t()}))})}(jQuery),function(u){u(document).ready(function(){u("body").hasClass("conversor-de-medidas")&&(u("input").keypress(function(e){var t=e.charCode?e.charCode:e.keyCode;if(!(35<=t&&t<=57||8==t||9==t))return!1}),u("input:not(.moeda)").keyup(function(){""!=u(this).val()&&(u(this).val(u(this).val().replace(".",",")),","!=u(this).val().substr(u(this).val().length-1,1)&&"-"!=u(this).val()&&e.converter(u(this)))}),u(".moeda").keyup(function(){""!=u(this).val()&&(u(this).val(u(this).val().replace(".",",")),","!=u(this).val().substr(u(this).val().length-1,1)&&"-"!=u(this).val()&&e.convmoeda(u(this)))}),u("input").focusin(function(){"0"==u(this).val()&&u(this).val("")}),u("input").focusout(function(){""==u(this).val()&&u(this).val("0")}))});var e={dolar:u("#na_wr_cont1").data("valordolar"),quot_convert:function(e,t,n,i){var r=new Array;return t==e+0&&(r[0]=n),t==e+1&&(r[0]=n/100),t==e+2&&(r[0]=n/i),t==e+3&&(r[0]=n/(.06*i)),r[1]=100*r[0],r[2]=r[0]*i,r[3]=r[0]*(.06*i),r},meas_convert:function(e,t,n,i){var r=new Array;return t==e+0&&(r[0]=n),t==e+1&&(r[0]=n*i),t==e+2&&(r[0]=n*i/1e3*60),t==e+3&&(r[0]=n*i/1e3),r[1]=r[0]/i,r[2]=r[0]/i*1e3/60,r[3]=r[0]/i*1e3,r},paracampo:function(e,t){for(i=0;i<t.length;i++)t[i]=Math.round(100*t[i])/100,u("#"+e+i).val(t[i].toString().replace(".",","))},moeda:function(e,t,n){if(t==e+0&&0!=n)if(0!=u("#moeda2").val()){var i=n*parseFloat(u("#moeda2").val().replace(",","."));u("#moeda1").val(i.toFixed(2).replace(".",","))}else if(0!=u("#moeda1").val()){var r=n/parseFloat(u("#moeda2").val().replace(",","."));u("#moeda1").val(r.toFixed(2).replace(".",","))}if(t==e+1&&0!=n&&0!=u("#moeda0").val()){var o=n/parseFloat(u("#moeda0").val().replace(",","."));u("#moeda2").val(o.toFixed(2).replace(".",","))}if(t==e+2&&0!=n&&0!=u("#moeda0").val()){var a=parseFloat(u("#moeda0").val().replace(",","."))*n;u("#moeda1").val(a.toFixed(2).replace(".",","))}if(t==e+3&&0!=n)if(0!=u("#moeda5").val()&&0!=u("#moeda3").val()){var s=n*parseFloat(u("#moeda5").val().replace(",","."));u("#moeda4").val(s.toFixed(2).replace(".",","))}else if(0!=u("#moeda4").val()&&0!=u("#moeda3").val()){parseFloat(u("#moeda3").val().replace(",","."));u("#moeda5").val(s.toFixed(2).replace(".",","))}if(t==e+4&&0!=n&&0!=u("#moeda3").val()){var c=n/parseFloat(u("#moeda3").val().replace(",","."));u("#moeda5").val(c.toFixed(2).replace(".",","))}if(t==e+5&&0!=n&&0!=u("#moeda3").val()){var l=parseFloat(u("#moeda3").val().replace(",","."))*n;u("#moeda4").val(l.toFixed(2).replace(".",","))}},conversao:function(e,t,n){var i=parseFloat(this.dolar),r=new Array;switch(e){case"area":t==e+0&&(r[0]=n),t==e+1&&(r[0]=n/2.471),r[1]=2.471*r[0];break;case"temp":t==e+0&&(r[0]=n),t==e+1&&(r[0]=5*(n-32)/9),r[1]=9*r[0]/5+32;break;case"comp":t==e+0&&(r[0]=n),t==e+1&&(r[0]=n/2.54),t==e+2&&(r[0]=n/25.4),r[1]=2.54*r[0],r[2]=25.4*r[0];break;case"quot1":r=this.quot_convert(e,t,n,36.74371);break;case"quot2":r=this.quot_convert(e,t,n,39.3679);break;case"quot3":t==e+0&&(r[0]=n),t==e+1&&(r[0]=100*n),t==e+2&&(r[0]=n/i/132.28*100),t==e+3&&(r[0]=n/i/132.28*100*60),r[1]=r[0]/100,r[2]=r[0]*i*132.28/100,r[3]=r[0]*i*132.28/100/60;break;case"quot4":t==e+0&&(r[0]=n),t==e+1&&(r[0]=100*n),t==e+2&&(r[0]=n/i/33.069*100),t==e+3&&(r[0]=n/i/33.069*100*14.69),r[1]=r[0]/100,r[2]=r[0]*i*33.069/100,r[3]=r[0]*i*33.069/100/14.69;break;case"meas1":r=this.meas_convert(e,t,n,36.74371);break;case"meas2":r=this.meas_convert(e,t,n,39.3679);break;case"meas3":r=this.meas_convert(e,t,n,45.92964);break;case"meas4":r=this.meas_convert(e,t,n,68.89446)}this.paracampo(e,r)},converter:function(e){var t=parseFloat(u(e).val().replace(",","."));this.conversao(u(e).attr("class"),u(e).attr("id"),t)},convmoeda:function(e){var t=parseFloat(u(e).val().replace(",","."));this.moeda(u(e).attr("class"),u(e).attr("id"),t)}}}(jQuery),function(i){"use strict";i(document).ready(function(){i("body").hasClass("cotacoes")&&i("#cotacoes-por-data").on("change",function(){var e=i(this).val(),t=window.location.pathname.split("/"),n="/"+t[1]+"/"+t[2];void 0===t[3]||/^\d{4}-\d{2}-\d{2}$/.test(t[3])||(n+="/"+t[3]),window.location.href=n+"/"+e})})}(jQuery),function(l){"use strict";function u(e){e.find("form.responder-mensagem").submit(function(e){e.preventDefault();var t=l(this),n=t.find("textarea.comments_textarea"),i=n.val().replace(/([\u201C\u201D])/g,'"'),r=t.prev(".childrens"),o=l('<li><span class="nome"></span><span class="local"></span><time class="horario"></time><p></p></li>'),a=t.data("nome"),s=t.data("cidade_uf"),c=t.data("data");return r=r.length?r:l('<ul class="childrens"></ul>').insertBefore(t),n.val(i),l.ajax({type:"POST",url:"/fala-produtor/",data:t.serialize(),error:function(){o.remove(),n.val(i)},dataType:"json"}),n.val(""),o.find(".nome").text(a.toUpperCase()),o.find(".local").text(s.toUpperCase()),o.find(".horario").text(c),o.find("p").text(i),o.appendTo(r),!1})}function d(e){e.find(".like-wrapper a, .dislike-wrapper a").click(function(){var t,n,e=l(this),i=e.closest("li").data("id"),r=e.hasClass("like")?"like":"dislike";if(e.hasClass("sent"))return!1;t=i,n=r,l.ajax({type:"POST",url:"/ajax/update-likes.php",data:{id:t,type:n},success:function(e){if(e.success)try{localStorage.setItem("fala-produtor-"+n+"-"+t,1)}catch(e){}}}),e.siblings("span").text(e.data("count")+1),e.addClass("sent")}).each(function(){var e=l(this),t=e.closest("li").data("id"),n="fala-produtor-"+(e.hasClass("like")?"like":"dislike")+"-"+t;try{localStorage.getItem(n)&&e.addClass("sent")}catch(e){}})}l(document).ready(function(){var e=l(".comments-list > li, #fala-produtor-list > li");u(e),d(e),l("body").hasClass("fala-produtor")&&(l("#formEnviarComentario").submit(function(e){e.preventDefault();var t=l(this),n=t.find("textarea.comments_textarea"),i=n.val().replace(/([\u201C\u201D])/g,'"'),r=l("#fala-produtor-list"),o=r.find("li:first").clone(!1),a=t.data("nome"),s=t.data("cidade_uf"),c=t.data("data");return n.val(i),l.ajax({type:"POST",url:"/fala-produtor/",data:t.serialize(),error:function(){o.remove(),n.val(i)},dataType:"json"}),n.val(""),o.find(".reference").remove(),o.find(".nome").text(a.toUpperCase()),o.find(".cidade").text(s.toUpperCase()),o.find(".data").removeAttr("href").text(c),o.find(".comment").html("<p>"+i.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br>$2")+"</p>"),o.addClass("aguardando-aprovacao").removeClass("aprovado"),o.find("span.notice").length||o.find(".main").prepend('<span class="notice">Aguardando aprovação.</span>'),o.find("ul.childrens").empty(),o.find("div.prev-childrens-container").remove(),o.find("form.responder-mensagem").remove(),o.find(".actions").remove(),o.prependTo(r),!1}),function(){if(l("body").hasClass("fala-produtor-lista")){var n=".paginacao",i=n+" .next a",r=l(i).attr("href"),o="#fala-produtor-list > li",a=l(o),s=!1,e=l(window),c=l(o).slice(-3).offset().top;l(window).bind("scroll.infinite",function(){c-e.height()<e.scrollTop()&&!s&&(s=!0,l.ajax({url:r,success:function(e){var t=l(e).find(o).appendTo(a.parent());u(t),d(t),bindLoginPopup(),ga("send","pageview",r),r=l(e).find(i).attr("href"),l(n).html(l(e).find(n).html()),c=l(o).slice(-3).offset().top,s=!1}}))})}}())})}(jQuery),function(l){"use strict";var u=86400;function c(){l("img.open-lightbox").parent("a").add("a[rel~=lytebox]").add(".slideshowPlugin div a").magnificPopup({type:"image",closeBtnInside:!1,closeOnContentClick:!0,gallery:{enabled:!0},image:{verticalFit:!0,titleSrc:function(e){return e.el.find("img").attr("alt")}}});var e=l(".actions[data-id]");e.find(".like-wrapper a, .dislike-wrapper a").click(function(){var t,e,n=l(this),i=n.closest("div").attr("data-id"),r=n.hasClass("like")?"likes":"dislikes";if(n.hasClass("sent"))return!1;t=i,e=r,l.ajax({type:"POST",url:"/ajax/image-likes.php",data:{id:t,type:e},success:function(e){if(e.success)try{localStorage.setItem("imagem-dia-"+t,1)}catch(e){}else;}}),n.siblings("span").text(n.data("count")+1),n.addClass("sent")}).each(function(){var e=l(this),t=e.closest("div").attr("id"),n=(e.hasClass("like"),"imagem-dia-"+t);try{localStorage.getItem(n)&&e.addClass("sent")}catch(e){}})}l(document).ready(function(){if(l("body").hasClass("imagem-do-dia")){var e=l(".dia-atual").html();if(e)var t=parseInt(e.substring(0,2)),n=parseInt(e.substring(3,5)),i=parseInt(e.substring(6,10));var r=new Date(i,n-1,t),o=new Date,a=Math.abs(o.getTime()-r.getTime()),s=Math.ceil(a/864e5);u=86400*s,l("a.ajax-popup-imagem").magnificPopup({type:"iframe",mainClass:"imagem-popup"}),l(".carregar-mais").click(function(){var e;e=u,l.post("/imagens-do-dia.php",{data:e},function(e){var t=l(e).filter(".dia-atual").text(),n=parseInt(t.substring(0,2)),i=parseInt(t.substring(3,5)),r=parseInt(t.substring(6,10)),o=new Date(r,i-1,n),a=new Date,s=Math.abs(a.getTime()-o.getTime()),c=Math.ceil(s/864e5);u=86400*c,document.getElementById("diasanteriores").innerHTML+=e}).done(function(){c()})}),c()}l("input.imagedia[name=image]").change(function(){4e6<this.files[0].size&&alert("Tamanho da imagem supera o permitido de 4MB!")})})}(jQuery),function(a){"use strict";function e(i){var r=i.find("ul.tabs li a"),o=i.find(".tab");r.on("click",function(){var e=a(this),t=e.data("tab-id"),n=i.find("#"+t);return o.removeClass("active"),n.addClass("active"),r.removeClass("active"),e.addClass("active"),!1})}a(document).ready(function(){a("body").hasClass("meteorologia")&&(e(a(".previsao-brasil")),e(a(".previsao-regiao")),function(){var e=a(".satelite img");if(0===e.length)return;var t=e.data("imagens"),n=0;e.addClass("loaded").on("load",function(){a(this).addClass("loaded")}),setInterval(function(){t&&(n===t.length&&(n=0),e.hasClass("loaded")&&(e.attr("src",t[n].imagem).removeClass("loaded"),n++))},500)}())})}(jQuery),function(e){"use strict";e(document).ready(function(){e("body").hasClass("midiakit")&&(e(".midiakit-wrapper .mk-cont").hide(),e(".midiakit-wrapper h3").on("click",function(){e(this).parent(".midiakit-wrapper").find(".mk-cont").slideToggle()}),e("a.ajax-popup-midiakit").not(".popup-login-bound").addClass("popup-login-bound").magnificPopup({type:"ajax",mainClass:"login-popup",callbacks:{ajaxContentAdded:function(e,t,n){bindValidacaoGenerica()}}}))})}(jQuery),function(l){var n=1;function t(e){l(".mySlides").each(function(){l(this).css("display","none")}),l(".dot").each(function(){l(this).removeClass("active")}),5<e?n=1:e<1&&(n=5);var t=n-1;l(".mySlides:eq("+t+")").css("display","block"),l(".dot:eq("+t+")").addClass("active")}l(document).ready(function(){var e,c;l("body").hasClass("exibicao-conteudo")&&(l("img.open-lightbox").parent("a").add("a[rel~=lytebox]").add(".slideshowPlugin li a").magnificPopup({type:"image",closeBtnInside:!1,closeOnContentClick:!0,gallery:{enabled:!0},image:{verticalFit:!0,titleSrc:function(e){return e.el.find("img").attr("alt")}}}),l(".slideshowPlugin li a img").each(function(){var e=l(this),t=e.attr("alt");t&&0<t.length&&e.parent().append("<span>"+t+"</span>")}),e=l("#comentarios"),c=e.find("ul.comments-list"),e.find("form#comentario-conteudo").submit(function(e){e.preventDefault();var t=l(this),n=t.find("textarea#comentario"),i=l('<li class="aguardando-aprovacao"><div class="main"><span class="notice">Aguardando aprovação.</span><h2><span class="nome"></span><span class="cidade"></span><time class="data"></time></h2><p></p></div></li>'),r=n.val().replace(/([\u201C\u201D])/g,'"'),o=t.data("nome"),a=t.data("cidade_uf"),s=t.data("data");return n.val(r),l.ajax({type:"POST",url:"/fala-produtor/",data:t.serialize(),error:function(){i.remove(),n.val(r)},dataType:"json"}),n.val(""),i.find(".nome").text(o.toUpperCase()),i.find(".cidade").text(a.toUpperCase()),i.find(".data").text(s),i.find("p").html(r.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br>$2")),i.prependTo(c),!1}),t(n),l("#next").click(function(){t(n+=1)}),l("#prev").click(function(){t(n+=-1)}),l(".dot").click(function(){t(n=l(this).attr("data-id"))}),function(){if(getCookie("backend_user")){var e=l("body").attr("class"),t=/view-id-([^\s]*)/i.exec(e);t&&l("h1.page-title").after('<a href="https://backend.noticiasagricolas.com.br/lettera/lettera/formCadastro.php?pagina=1&id='+t[1]+'&acao=A" target="_blank">Editar</a> <a href="https://backend.noticiasagricolas.com.br/push/form.php?url=https://www.noticiasagricolas.com.br/noticia/'+t[1]+'" target="_blank">Enviar via Push</a>')}}())})}(jQuery),function(e){"use strict";e(document).ready(function(){void 0!==AudioPlayer&&(AudioPlayer.setup("/static/flash/podcast-player.swf",{width:600}),e("p.podcast-player").each(function(){AudioPlayer.embed(e(this).attr("id"),{soundFile:e(this).data("src")})}))})}(jQuery),function(r){"use strict";function i(e,t){var n=function(e){var t=r("meta[name=subsection]").attr("content"),n=JSON.parse(window.localStorage.getItem("pushTopics")),i=null==n?0:n.length;null==n&&(n=["default"]);"string"==typeof t&&-1===n.indexOf(t)&&n.push(t);return!(!e&&n.length===i)&&(window.localStorage.setItem("pushTopics",JSON.stringify(n)),n)}(t);!t&&!1===n||r.post("/ajax/push-token.php",{token:e,agent:navigator.userAgent,topics:n})}r(document).ready(function(){if("serviceWorker"in navigator&&"Notification"in window){firebase.initializeApp({messagingSenderId:"876526481730"});var t,e,n=firebase.messaging();n.usePublicVapidKey("BEXMW7SkOVqAb8CSYCITwnwfx2LB32T_HfySWdn8qlqki3twECtUlGl9O2wCuig2S8Gk01V0eLS8t6sFkTKQx4o"),t=n,Notification.requestPermission().then(function(e){"granted"===e&&t.getToken().then(function(e){e&&i(e,!1)}).catch(function(e){})}),(e=n).onTokenRefresh(function(){e.getToken().then(function(e){i(e,!0)}).catch(function(e){})})}})}(jQuery),function(r){"use strict";r(document).on("click",'a[href^="#"]',function(e){var t=r(this).attr("href"),n=r(t);if(0!==n.length){e.preventDefault();var i=n.offset().top;r("body, html").animate({scrollTop:i})}});var t=["ACRE (AC)","ALAGOAS (AL)","AMAZONAS (AM)","AMAPÁ (AP)","BAHIA (BA)","CEARÁ (CE)","DISTRITO FEDERAL (DF)","ESPÍRITO SANTOS (ES)","GOIÁS (GO)","MARANHÃO (MA)","MINAS GERAIS (MG)","MATO GROSSO DO SUL (MS)","MATO GROSSO (MT)","PARÁ (PA)","PARAÍBA (PB)","PERNAMBUCO (PE)","PIAUÍ (PI)","PARANÁ (PR)","RIO DE JANEIRO (RJ)","RIO GRANDE DO NORTE (RN)","RONDÔNIA (RO)","RORAIMA (RR)","RIO GRANDE DO SUL (RS)","SANTA CATARINA (SC)","SERGIPE (SE)","SÃO PAULO (SP)","TOCANTINS (TO)"],n=["Região Norte","Região Nordeste","Região Norte","Região Norte","Região Nordeste","Região Nordeste","Região Centro Oeste","Região Sudeste","Região Centro Oeste","Região Nordeste","Região Sudeste","Região Centro Oeste","Região Centro Oeste","Região Norte","Região Nordeste","Região Nordeste","Região Nordeste","Região Sul","Região Sudeste","Região Nordeste","Região Norte","Região Norte","Região Sul","Região Sul","Região Nordeste","Região Sudeste","Região Norte"],i=[],o=[],a=[],s=["1,5","1,7","2,2","20,9","1580,1","","73,2","","3476,4","992,4","1574,9","2853,7","9699,5","561,4","","","758,1","5437,5","","","333,7","40","5777,5","664,6","","996,2","1028,6"],c=["1,9","1,7","2","20,9","1600,6","","74,5","","3545,1","1000,3","1606,9","2950,7","9972,1","565,3","","","788,4","5486,4","","","343,7","40","5873,1","673,9","","1105,3","1061,9"],l=["26,6","-","-9,1","-","1,3","","1,8","","2","0,8","2","3,4","2,8","0,7","","","4","0,9","","","3","-","1,7","1,4","","11","3,2"],u=["2940","2790","2400","2751","3360","","3300","","3290","2940","3222","2980","3346","3044","","","3063","2989","","","3324","2700","3321","3585","","3029","2850"],d=["2939","2645","2325","2837","3310","","3447","","3301","3029","3367","3217","3328","3117","","","3087","3509","","","3268","3044","3153","3527","","3311","2978"],p=["-","-5,2","-3,1","3,1","-1,5","","4,5","","0,3","3","4,5","8","-0,5","2,4","","","0,8","17,4","","","-1,7","12,7","-5,1","-1,6","","9,3","4,5"],f=["4,4","4,7","5,3","57,5","5309,1","","241,6","","11437,4","2917,7","5074,3","8504","32454,5","1708,9","","","2322,1","16252,7","","","1109,2","108","19187,1","2382,6","","3017,5","2931,5"],h=["5,6","4,5","4,7","59,3","5298","","256,8","","11702,4","3029,9","5410,4","9492,4","33187,1","1762","","","2433,8","19251,8","","","1123,2","121,8","18517,9","2376,8","","3659,6","3162,3"],m=["27,3","-4,3","-11,3","3,1","-0,2","","6,3","","2,3","3,8","6,6","11,6","2,3","3,1","","","4,8","18,5","","","1,3","12,8","-3,5","-0,2","","21,3","7,9"],v=["/static/img/realidades-da-safra/estados/AC.png","/static/img/realidades-da-safra/estados/AL.png","/static/img/realidades-da-safra/estados/AM.png","/static/img/realidades-da-safra/estados/AP.png","/static/img/realidades-da-safra/estados/BA.png","","/static/img/realidades-da-safra/estados/DF.png","","/static/img/realidades-da-safra/estados/GO.png","/static/img/realidades-da-safra/estados/MA.png","/static/img/realidades-da-safra/estados/MG.png","/static/img/realidades-da-safra/estados/MS.png","/static/img/realidades-da-safra/estados/MT.png","/static/img/realidades-da-safra/estados/PA.png","","","/static/img/realidades-da-safra/estados/PI.png","/static/img/realidades-da-safra/estados/PR.png","","","/static/img/realidades-da-safra/estados/RO.png","/static/img/realidades-da-safra/estados/RR.png","/static/img/realidades-da-safra/estados/RS.png","/static/img/realidades-da-safra/estados/SC.png","","/static/img/realidades-da-safra/estados/SP.png","/static/img/realidades-da-safra/estados/TO.png"];function g(e){r("#estado").html(t[e]),r("#regiao").html(n[e]),r("#plantioautorizado").html(i[e]),r("#plantioefetivo").html(o[e]),r("#percentualplantado").html(a[e]),r("#area1").html(s[e]),r("#area2").html(c[e]),r("#areapercentual").html(l[e]),r("#produtividade1").html(u[e]),r("#produtividade2").html(d[e]),r("#produtividadevariacao").html(p[e]),r("#producao1").html(f[e]),r("#producao2").html(h[e]),r("#producaopercentual").html(m[e]),r("#imagemestado").attr("src",v[e])}r(document).ready(function(){var e,t;r("body").hasClass("realidades-da-safra")&&(r(".st0").bind("click",function(e){r(".estados").slideUp(1e3),r(".safrabr").slideUp(1e3);var t=this.id;setTimeout(function(){g(t),r(".fechar").slideDown(1e3),r(".estados").slideDown(1e3),r(".safrabr").slideDown(1e3)},1e3)}),r(".fechar").bind("click",function(e){r(".estados").slideUp(1e3),r(".safrabr").slideUp(1e3),r(".fechar").slideUp(1e3),setTimeout(function(){r("#estado").html("BRASIL"),r("#regiao").html("Safra Brasileira de Grãos"),r("#area1").html("35.874,1"),r("#area2").html("36.571,2"),r("#areapercentual").html("1,9"),r("#produtividade1").html("3.206"),r("#produtividade2").html("3.292"),r("#produtividadevariacao").html("2,7"),r("#producao1").html("115.030,1"),r("#producao2").html("120.393,1"),r("#producaopercentual").html("4,7"),r("#imagemestado").attr("src","/static/img/realidades-da-safra/estados/BR.png"),r(".estados").slideDown(1e3)},1e3),r(".estados").slideDown(1e3)}),r(".mapa-mobile").bind("click",function(e){r(".mapa-mobile").slideUp(1e3),r(".estados-mobile").show(1e3),r(".estados-mobile").css("display","inline-block"),r(".fechar-mobile").slideDown(1e3)}),r(".clica-estado").bind("click",function(e){var t=this.id;r(".estados-mobile").slideUp(1e3),g(t),r(".estados").slideDown(1e3),r(".fechar-mobile").slideDown(1e3)}),r(".fechar-mobile").bind("click",function(e){r(".estados").slideUp(1e3),r(".safrabr").slideUp(1e3),r(".fechar-mobile").slideUp(1e3),r(".estados-mobile").slideUp(1e3),r(".mapa-mobile").slideDown(1e3)}),(t=r(".videos").first()).addClass("active"),r(".videos").on("click",function(e){var t=r(this);r(".videos.active").removeClass("active"),t.addClass("active"),r(".video_ativo").html(t.data("video")),r(".titulo-materia-video").html(t.data("titulo")),r(".lead-materia-video").html(t.data("lead")),r("a.link_materia-video").attr("href","/noticia/"+t.data("url"))}),t.click(),(e=r(".videos_mobile").first()).addClass("active"),r(".videos_mobile").on("click",function(e){var t=r(this);r(".videos_mobile.active").removeClass("active"),t.addClass("active"),r(".video_ativo").html(t.data("video")),r(".titulo-materia-video").html(t.data("titulo")),r("a.link_materia-video").attr("href","/noticia/"+t.data("url"))}),e.click())})}(jQuery),function(d){d(document).ready(function(){d("body").hasClass("widgets")&&(d("body.widgets fieldset h2").click(function(){d("body.widgets fieldset .hide").hide("fast"),d(this).parent().find(".hide").show("fast")}),d("input[name=cortexto],input[name=corlink],input[name=cotacao-cortexto],input[name=cotacao-corcabecalho],input[name=cotacao-corlinha]").ColorPicker({onSubmit:function(e,t,n,i){d(i).val(t),d(i).ColorPickerHide()},onBeforeShow:function(){d(this).ColorPickerSetColor(this.value)}}).bind("keyup",function(){d(this).ColorPickerSetColor(this.value)}),d(".secao").click(function(){d("."+d(this).attr("id")).attr("checked",d(this).attr("checked"))}),d("#not-visualizar").click(function(){var n=new Array;d(".subsecao:checked").each(function(e,t){n[e]=d(t).val()});var e=n.join(","),t=d("input[name=largura]").val(),i=d("input[name=altura]").val(),r=escape(d("select[name=fonte]").val()),o=d("input[name=tamanho]").val(),a=d("input[name=cortexto]").val(),s=d("input[name=corlink]").val(),c=d("input[name=qtd]").val(),l=location.protocol+"//"+location.host+"/widget/noticias.js.php?subsecao="+e+"&largura="+t+"&altura="+i+"&fonte="+r+"&tamanho="+o+"&cortexto="+a+"&corlink="+s+"&qtd="+c,u='\x3c!-- Widgets Notícias Agrícolas - www.noticiasagricolas.com.br/widgets --\x3e\n<script type="text/javascript" src="'+l+'&output=js"><\/script>';d("textarea[name=codigo]").val(u),d("#visualiza-codigo").show("fast"),d("#visualizacao").load(l+"&output=html")}),d("#cot-visualizar").click(function(){var e=d("select[name=cotacao-id]").val(),t=escape(d("select[name=cotacao-fonte]").val()),n=d("input[name=cotacao-tamanho]").val(),i=d("input[name=cotacao-largura]").val(),r=d("input[name=cotacao-cortexto]").val(),o=d("input[name=cotacao-corcabecalho]").val(),a=d("input[name=cotacao-corlinha]").val(),s=d("input[name=cotacao-imagem]").is(":checked"),c=location.protocol+"//"+location.host+"/widget/cotacoes.js.php?id="+e+"&fonte="+t+"&tamanho="+n+"&largura="+i+"&cortexto="+r+"&corcabecalho="+o+"&corlinha="+a+"&imagem="+s,l='\x3c!-- Widgets Notícias Agrícolas - www.noticiasagricolas.com.br/widgets --\x3e\n<script type="text/javascript" src="'+c+'&output=js"><\/script>';d("textarea[name=codigo]").val(l),d("#visualiza-codigo").show(),d("#visualizacao").load(c+"&output=html")}),d("textarea[name=codigo]").click(function(){this.select()}))})}(jQuery);