summaryrefslogtreecommitdiff
path: root/src/pixelated_www/app.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pixelated_www/app.min.js')
-rw-r--r--src/pixelated_www/app.min.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/pixelated_www/app.min.js b/src/pixelated_www/app.min.js
new file mode 100644
index 00000000..68eb2638
--- /dev/null
+++ b/src/pixelated_www/app.min.js
@@ -0,0 +1,27 @@
+window.Modernizr=function(t,e,i){function n(t){_.cssText=t}function s(t,e){return n(k.join(t+";")+(e||""))}function a(t,e){return typeof t===e}function r(t,e){return!!~(""+t).indexOf(e)}function o(t,e){for(var n in t){var s=t[n];if(!r(s,"-")&&_[s]!==i)return"pfx"==e?s:!0}return!1}function l(t,e,n){for(var s in t){var r=e[t[s]];if(r!==i)return n===!1?t[s]:a(r,"function")?r.bind(n||e):r}return!1}function c(t,e,i){var n=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+S.join(n+" ")+n).split(" ");return a(e,"string")||a(e,"undefined")?o(s,e):(s=(t+" "+D.join(n+" ")+n).split(" "),l(s,e,i))}function u(){f.input=function(i){for(var n=0,s=i.length;s>n;n++)M[i[n]]=!!(i[n]in y);return M.list&&(M.list=!(!e.createElement("datalist")||!t.HTMLDataListElement)),M}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),f.inputtypes=function(t){for(var n,s,a,r=0,o=t.length;o>r;r++)y.setAttribute("type",s=t[r]),n="text"!==y.type,n&&(y.value=w,y.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(s)&&y.style.WebkitAppearance!==i?(m.appendChild(y),a=e.defaultView,n=a.getComputedStyle&&"textfield"!==a.getComputedStyle(y,null).WebkitAppearance&&0!==y.offsetHeight,m.removeChild(y)):/^(search|tel)$/.test(s)||(n=/^(url|email)$/.test(s)?y.checkValidity&&y.checkValidity()===!1:y.value!=w)),E[t[r]]=!!n;return E}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var h,d,p="2.8.3",f={},g=!0,m=e.documentElement,v="modernizr",b=e.createElement(v),_=b.style,y=e.createElement("input"),w=":)",x={}.toString,k=" -webkit- -moz- -o- -ms- ".split(" "),C="Webkit Moz O ms",S=C.split(" "),D=C.toLowerCase().split(" "),T={svg:"http://www.w3.org/2000/svg"},A={},E={},M={},P=[],I=P.slice,N=function(t,i,n,s){var a,r,o,l,c=e.createElement("div"),u=e.body,h=u||e.createElement("body");if(parseInt(n,10))for(;n--;)o=e.createElement("div"),o.id=s?s[n]:v+(n+1),c.appendChild(o);return a=["&#173;",'<style id="s',v,'">',t,"</style>"].join(""),c.id=v,(u?c:h).innerHTML+=a,h.appendChild(c),u||(h.style.background="",h.style.overflow="hidden",l=m.style.overflow,m.style.overflow="hidden",m.appendChild(h)),r=i(c,t),u?c.parentNode.removeChild(c):(h.parentNode.removeChild(h),m.style.overflow=l),!!r},F=function(e){var i=t.matchMedia||t.msMatchMedia;if(i)return i(e)&&i(e).matches||!1;var n;return N("@media "+e+" { #"+v+" { position: absolute; } }",function(e){n="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position}),n},O=function(){function t(t,s){s=s||e.createElement(n[t]||"div"),t="on"+t;var r=t in s;return r||(s.setAttribute||(s=e.createElement("div")),s.setAttribute&&s.removeAttribute&&(s.setAttribute(t,""),r=a(s[t],"function"),a(s[t],"undefined")||(s[t]=i),s.removeAttribute(t))),s=null,r}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),R={}.hasOwnProperty;d=a(R,"undefined")||a(R.call,"undefined")?function(t,e){return e in t&&a(t.constructor.prototype[e],"undefined")}:function(t,e){return R.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=I.call(arguments,1),n=function(){if(this instanceof n){var s=function(){};s.prototype=e.prototype;var a=new s,r=e.apply(a,i.concat(I.call(arguments)));return Object(r)===r?r:a}return e.apply(t,i.concat(I.call(arguments)))};return n}),A.flexbox=function(){return c("flexWrap")},A.flexboxlegacy=function(){return c("boxDirection")},A.canvas=function(){var t=e.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},A.canvastext=function(){return!(!f.canvas||!a(e.createElement("canvas").getContext("2d").fillText,"function"))},A.webgl=function(){return!!t.WebGLRenderingContext},A.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:N(["@media (",k.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){i=9===t.offsetTop}),i},A.geolocation=function(){return"geolocation"in navigator},A.postmessage=function(){return!!t.postMessage},A.websqldatabase=function(){return!!t.openDatabase},A.indexedDB=function(){return!!c("indexedDB",t)},A.hashchange=function(){return O("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},A.history=function(){return!(!t.history||!history.pushState)},A.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},A.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},A.rgba=function(){return n("background-color:rgba(150,255,150,.5)"),r(_.backgroundColor,"rgba")},A.hsla=function(){return n("background-color:hsla(120,40%,100%,.5)"),r(_.backgroundColor,"rgba")||r(_.backgroundColor,"hsla")},A.multiplebgs=function(){return n("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(_.background)},A.backgroundsize=function(){return c("backgroundSize")},A.borderimage=function(){return c("borderImage")},A.borderradius=function(){return c("borderRadius")},A.boxshadow=function(){return c("boxShadow")},A.textshadow=function(){return""===e.createElement("div").style.textShadow},A.opacity=function(){return s("opacity:.55"),/^0.55$/.test(_.opacity)},A.cssanimations=function(){return c("animationName")},A.csscolumns=function(){return c("columnCount")},A.cssgradients=function(){var t="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return n((t+"-webkit- ".split(" ").join(e+t)+k.join(i+t)).slice(0,-t.length)),r(_.backgroundImage,"gradient")},A.cssreflections=function(){return c("boxReflect")},A.csstransforms=function(){return!!c("transform")},A.csstransforms3d=function(){var t=!!c("perspective");return t&&"webkitPerspective"in m.style&&N("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,i){t=9===e.offsetLeft&&3===e.offsetHeight}),t},A.csstransitions=function(){return c("transition")},A.fontface=function(){var t;return N('@font-face {font-family:"font";src:url("https://")}',function(i,n){var s=e.getElementById("smodernizr"),a=s.sheet||s.styleSheet,r=a?a.cssRules&&a.cssRules[0]?a.cssRules[0].cssText:a.cssText||"":"";t=/src/i.test(r)&&0===r.indexOf(n.split(" ")[0])}),t},A.generatedcontent=function(){var t;return N(["#",v,"{font:0/0 a}#",v,':after{content:"',w,'";visibility:hidden;font:3px/1 a}'].join(""),function(e){t=e.offsetHeight>=3}),t},A.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&(i=new Boolean(i),i.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(n){}return i},A.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&(i=new Boolean(i),i.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return i},A.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(t){return!1}},A.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(t){return!1}},A.webworkers=function(){return!!t.Worker},A.applicationcache=function(){return!!t.applicationCache},A.svg=function(){return!!e.createElementNS&&!!e.createElementNS(T.svg,"svg").createSVGRect},A.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==T.svg},A.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(x.call(e.createElementNS(T.svg,"animate")))},A.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(x.call(e.createElementNS(T.svg,"clipPath")))};for(var j in A)d(A,j)&&(h=j.toLowerCase(),f[h]=A[j](),P.push((f[h]?"":"no-")+h));return f.input||u(),f.addTest=function(t,e){if("object"==typeof t)for(var n in t)d(t,n)&&f.addTest(n,t[n]);else{if(t=t.toLowerCase(),f[t]!==i)return f;e="function"==typeof e?e():e,"undefined"!=typeof g&&g&&(m.className+=" "+(e?"":"no-")+t),f[t]=e}return f},n(""),b=y=null,function(t,e){function i(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}function n(){var t=b.elements;return"string"==typeof t?t.split(" "):t}function s(t){var e=v[t[g]];return e||(e={},m++,t[g]=m,v[m]=e),e}function a(t,i,n){if(i||(i=e),u)return i.createElement(t);n||(n=s(i));var a;return a=n.cache[t]?n.cache[t].cloneNode():f.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t),!a.canHaveChildren||p.test(t)||a.tagUrn?a:n.frag.appendChild(a)}function r(t,i){if(t||(t=e),u)return t.createDocumentFragment();i=i||s(t);for(var a=i.frag.cloneNode(),r=0,o=n(),l=o.length;l>r;r++)a.createElement(o[r]);return a}function o(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return b.shivMethods?a(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(b,e.frag)}function l(t){t||(t=e);var n=s(t);return!b.shivCSS||c||n.hasCSS||(n.hasCSS=!!i(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||o(t,n),t}var c,u,h="3.7.0",d=t.html5||{},p=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",m=0,v={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",c="hidden"in t,u=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}()}catch(i){c=!0,u=!0}}();var b={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:h,shivCSS:d.shivCSS!==!1,supportsUnknownElements:u,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:l,createElement:a,createDocumentFragment:r};t.html5=b,l(e)}(this,e),f._version=p,f._prefixes=k,f._domPrefixes=D,f._cssomPrefixes=S,f.mq=F,f.hasEvent=O,f.testProp=function(t){return o([t])},f.testAllProps=c,f.testStyles=N,f.prefixed=function(t,e,i){return e?c(t,e,i):c(t,"pfx")},m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(g?" js "+P.join(" "):""),f}(this,this.document),function(){function t(t,e,i){for(var n=(i||0)-1,s=t?t.length:0;++n<s;)if(t[n]===e)return n;return-1}function e(e,i){var n=typeof i;if(e=e.cache,"boolean"==n||null==i)return e[i]?0:-1;"number"!=n&&"string"!=n&&(n="object");var s="number"==n?i:v+i;return e=(e=e[n])&&e[s],"object"==n?e&&t(e,i)>-1?0:-1:e?0:-1}function i(t){var e=this.cache,i=typeof t;if("boolean"==i||null==t)e[t]=!0;else{"number"!=i&&"string"!=i&&(i="object");var n="number"==i?t:v+t,s=e[i]||(e[i]={});"object"==i?(s[n]||(s[n]=[])).push(t):s[n]=!0}}function n(t){return t.charCodeAt(0)}function s(t,e){for(var i=t.criteria,n=e.criteria,s=-1,a=i.length;++s<a;){var r=i[s],o=n[s];if(r!==o){if(r>o||"undefined"==typeof r)return 1;if(o>r||"undefined"==typeof o)return-1}}return t.index-e.index}function a(t){var e=-1,n=t.length,s=t[0],a=t[n/2|0],r=t[n-1];if(s&&"object"==typeof s&&a&&"object"==typeof a&&r&&"object"==typeof r)return!1;var o=l();o["false"]=o["null"]=o["true"]=o.undefined=!1;var c=l();for(c.array=t,c.cache=o,c.push=i;++e<n;)c.push(t[e]);return c}function r(t){return"\\"+Y[t]}function o(){return f.pop()||[]}function l(){return g.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function c(t){t.length=0,f.length<_&&f.push(t)}function u(t){var e=t.cache;e&&u(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,g.length<_&&g.push(t)}function h(t,e,i){e||(e=0),"undefined"==typeof i&&(i=t?t.length:0);for(var n=-1,s=i-e||0,a=Array(0>s?0:s);++n<s;)a[n]=t[e+n];return a}function d(i){function f(t){return t&&"object"==typeof t&&!Qi(t)&&Ni.call(t,"__wrapped__")?t:new g(t)}function g(t,e){this.__chain__=!!e,this.__wrapped__=t}function _(t){function e(){if(n){var t=h(n);Fi.apply(t,arguments)}if(this instanceof e){var a=G(i.prototype),r=i.apply(a,t||arguments);return Mt(r)?r:a}return i.apply(s,t||arguments)}var i=t[0],n=t[2],s=t[4];return Xi(e,t),e}function Y(t,e,i,n,s){if(i){var a=i(t);if("undefined"!=typeof a)return a}var r=Mt(t);if(!r)return t;var l=Di.call(t);if(!$[l])return t;var u=Ki[l];switch(l){case R:case j:return new u(+t);case H:case q:return new u(t);case B:return a=u(t.source,S.exec(t)),a.lastIndex=t.lastIndex,a}var d=Qi(t);if(e){var p=!n;n||(n=o()),s||(s=o());for(var f=n.length;f--;)if(n[f]==t)return s[f];a=d?u(t.length):{}}else a=d?h(t):an({},t);return d&&(Ni.call(t,"index")&&(a.index=t.index),Ni.call(t,"input")&&(a.input=t.input)),e?(n.push(t),s.push(a),(d?Xt:ln)(t,function(t,r){a[r]=Y(t,e,i,n,s)}),p&&(c(n),c(s)),a):a}function G(t,e){return Mt(t)?Hi(t):{}}function X(t,e,i){if("function"!=typeof t)return Qe;if("undefined"==typeof e||!("prototype"in t))return t;var n=t.__bindData__;if("undefined"==typeof n&&(Gi.funcNames&&(n=!t.name),n=n||!Gi.funcDecomp,!n)){var s=Pi.call(t);Gi.funcNames||(n=!D.test(s)),n||(n=M.test(s),Xi(t,n))}if(n===!1||n!==!0&&1&n[1])return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,s){return t.call(e,i,n,s)};case 4:return function(i,n,s,a){return t.call(e,i,n,s,a)}}return Fe(t,e)}function Q(t){function e(){var t=l?r:this;if(s){var f=h(s);Fi.apply(f,arguments)}if((a||u)&&(f||(f=h(arguments)),a&&Fi.apply(f,a),u&&f.length<o))return n|=16,Q([i,d?n:-4&n,f,null,r,o]);if(f||(f=arguments),c&&(i=t[p]),this instanceof e){t=G(i.prototype);var g=i.apply(t,f);return Mt(g)?g:t}return i.apply(t,f)}var i=t[0],n=t[1],s=t[2],a=t[3],r=t[4],o=t[5],l=1&n,c=2&n,u=4&n,d=8&n,p=i;return Xi(e,t),e}function J(i,n){var s=-1,r=lt(),o=i?i.length:0,l=o>=b&&r===t,c=[];if(l){var h=a(n);h?(r=e,n=h):l=!1}for(;++s<o;){var d=i[s];r(n,d)<0&&c.push(d)}return l&&u(n),c}function tt(t,e,i,n){for(var s=(n||0)-1,a=t?t.length:0,r=[];++s<a;){var o=t[s];if(o&&"object"==typeof o&&"number"==typeof o.length&&(Qi(o)||dt(o))){e||(o=tt(o,e,i));var l=-1,c=o.length,u=r.length;for(r.length+=c;++l<c;)r[u++]=o[l]}else i||r.push(o)}return r}function et(t,e,i,n,s,a){if(i){var r=i(t,e);if("undefined"!=typeof r)return!!r}if(t===e)return 0!==t||1/t==1/e;var l=typeof t,u=typeof e;if(!(t!==t||t&&V[l]||e&&V[u]))return!1;if(null==t||null==e)return t===e;var h=Di.call(t),d=Di.call(e);if(h==F&&(h=z),d==F&&(d=z),h!=d)return!1;switch(h){case R:case j:return+t==+e;case H:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case B:case q:return t==wi(e)}var p=h==O;if(!p){var f=Ni.call(t,"__wrapped__"),g=Ni.call(e,"__wrapped__");if(f||g)return et(f?t.__wrapped__:t,g?e.__wrapped__:e,i,n,s,a);if(h!=z)return!1;var m=t.constructor,v=e.constructor;if(m!=v&&!(Et(m)&&m instanceof m&&Et(v)&&v instanceof v)&&"constructor"in t&&"constructor"in e)return!1}var b=!s;s||(s=o()),a||(a=o());for(var _=s.length;_--;)if(s[_]==t)return a[_]==e;var y=0;if(r=!0,s.push(t),a.push(e),p){if(_=t.length,y=e.length,r=y==_,r||n)for(;y--;){var w=_,x=e[y];if(n)for(;w--&&!(r=et(t[w],x,i,n,s,a)););else if(!(r=et(t[y],x,i,n,s,a)))break}}else on(e,function(e,o,l){return Ni.call(l,o)?(y++,r=Ni.call(t,o)&&et(t[o],e,i,n,s,a)):void 0}),r&&!n&&on(t,function(t,e,i){return Ni.call(i,e)?r=--y>-1:void 0});return s.pop(),a.pop(),b&&(c(s),c(a)),r}function it(t,e,i,n,s){(Qi(e)?Xt:ln)(e,function(e,a){var r,o,l=e,c=t[a];if(e&&((o=Qi(e))||cn(e))){for(var u=n.length;u--;)if(r=n[u]==e){c=s[u];break}if(!r){var h;i&&(l=i(c,e),(h="undefined"!=typeof l)&&(c=l)),h||(c=o?Qi(c)?c:[]:cn(c)?c:{}),n.push(e),s.push(c),h||it(c,e,i,n,s)}}else i&&(l=i(c,e),"undefined"==typeof l&&(l=e)),"undefined"!=typeof l&&(c=l);t[a]=c})}function nt(t,e){return t+Mi(Yi()*(e-t+1))}function st(i,n,s){var r=-1,l=lt(),h=i?i.length:0,d=[],p=!n&&h>=b&&l===t,f=s||p?o():d;if(p){var g=a(f);l=e,f=g}for(;++r<h;){var m=i[r],v=s?s(m,r,i):m;(n?!r||f[f.length-1]!==v:l(f,v)<0)&&((s||p)&&f.push(v),d.push(m))}return p?(c(f.array),u(f)):s&&c(f),d}function at(t){return function(e,i,n){var s={};i=f.createCallback(i,n,3);var a=-1,r=e?e.length:0;if("number"==typeof r)for(;++a<r;){var o=e[a];t(s,o,i(o,a,e),e)}else ln(e,function(e,n,a){t(s,e,i(e,n,a),a)});return s}}function rt(t,e,i,n,s,a){var r=1&e,o=2&e,l=4&e,c=16&e,u=32&e;if(!o&&!Et(t))throw new xi;c&&!i.length&&(e&=-17,c=i=!1),u&&!n.length&&(e&=-33,u=n=!1);var d=t&&t.__bindData__;if(d&&d!==!0)return d=h(d),d[2]&&(d[2]=h(d[2])),d[3]&&(d[3]=h(d[3])),!r||1&d[1]||(d[4]=s),!r&&1&d[1]&&(e|=8),!l||4&d[1]||(d[5]=a),c&&Fi.apply(d[2]||(d[2]=[]),i),u&&ji.apply(d[3]||(d[3]=[]),n),d[1]|=e,rt.apply(null,d);var p=1==e||17===e?_:Q;return p([t,e,i,n,s,a])}function ot(t){return tn[t]}function lt(){var e=(e=f.indexOf)===ve?t:e;return e}function ct(t){return"function"==typeof t&&Ti.test(t)}function ut(t){var e,i;return t&&Di.call(t)==z&&(e=t.constructor,!Et(e)||e instanceof e)?(on(t,function(t,e){i=e}),"undefined"==typeof i||Ni.call(t,i)):!1}function ht(t){return en[t]}function dt(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Di.call(t)==F||!1}function pt(t,e,i,n){return"boolean"!=typeof e&&null!=e&&(n=i,i=e,e=!1),Y(t,e,"function"==typeof i&&X(i,n,1))}function ft(t,e,i){return Y(t,!0,"function"==typeof e&&X(e,i,1))}function gt(t,e){var i=G(t);return e?an(i,e):i}function mt(t,e,i){var n;return e=f.createCallback(e,i,3),ln(t,function(t,i,s){return e(t,i,s)?(n=i,!1):void 0}),n}function vt(t,e,i){var n;return e=f.createCallback(e,i,3),_t(t,function(t,i,s){return e(t,i,s)?(n=i,!1):void 0}),n}function bt(t,e,i){var n=[];on(t,function(t,e){n.push(e,t)});var s=n.length;for(e=X(e,i,3);s--&&e(n[s--],n[s],t)!==!1;);return t}function _t(t,e,i){var n=Zi(t),s=n.length;for(e=X(e,i,3);s--;){var a=n[s];if(e(t[a],a,t)===!1)break}return t}function yt(t){var e=[];return on(t,function(t,i){Et(t)&&e.push(i)}),e.sort()}function wt(t,e){return t?Ni.call(t,e):!1}function xt(t){for(var e=-1,i=Zi(t),n=i.length,s={};++e<n;){var a=i[e];s[t[a]]=a}return s}function kt(t){return t===!0||t===!1||t&&"object"==typeof t&&Di.call(t)==R||!1}function Ct(t){return t&&"object"==typeof t&&Di.call(t)==j||!1}function St(t){return t&&1===t.nodeType||!1}function Dt(t){var e=!0;if(!t)return e;var i=Di.call(t),n=t.length;return i==O||i==q||i==F||i==z&&"number"==typeof n&&Et(t.splice)?!n:(ln(t,function(){return e=!1}),e)}function Tt(t,e,i,n){return et(t,e,"function"==typeof i&&X(i,n,2))}function At(t){return Bi(t)&&!qi(parseFloat(t))}function Et(t){return"function"==typeof t}function Mt(t){return!(!t||!V[typeof t])}function Pt(t){return Nt(t)&&t!=+t}function It(t){return null===t}function Nt(t){return"number"==typeof t||t&&"object"==typeof t&&Di.call(t)==H||!1}function Ft(t){return t&&"object"==typeof t&&Di.call(t)==B||!1}function Ot(t){return"string"==typeof t||t&&"object"==typeof t&&Di.call(t)==q||!1}function Rt(t){return"undefined"==typeof t}function jt(t,e,i){var n={};return e=f.createCallback(e,i,3),ln(t,function(t,i,s){n[i]=e(t,i,s)}),n}function Lt(t){var e=arguments,i=2;if(!Mt(t))return t;if("number"!=typeof e[2]&&(i=e.length),i>3&&"function"==typeof e[i-2])var n=X(e[--i-1],e[i--],2);else i>2&&"function"==typeof e[i-1]&&(n=e[--i]);for(var s=h(arguments,1,i),a=-1,r=o(),l=o();++a<i;)it(t,s[a],n,r,l);return c(r),c(l),t}function Ht(t,e,i){var n={};if("function"!=typeof e){var s=[];on(t,function(t,e){s.push(e)}),s=J(s,tt(arguments,!0,!1,1));for(var a=-1,r=s.length;++a<r;){var o=s[a];n[o]=t[o]}}else e=f.createCallback(e,i,3),on(t,function(t,i,s){e(t,i,s)||(n[i]=t)});return n}function zt(t){for(var e=-1,i=Zi(t),n=i.length,s=pi(n);++e<n;){var a=i[e];s[e]=[a,t[a]]}return s}function Bt(t,e,i){var n={};if("function"!=typeof e)for(var s=-1,a=tt(arguments,!0,!1,1),r=Mt(t)?a.length:0;++s<r;){var o=a[s];o in t&&(n[o]=t[o])}else e=f.createCallback(e,i,3),on(t,function(t,i,s){e(t,i,s)&&(n[i]=t)});return n}function qt(t,e,i,n){var s=Qi(t);if(null==i)if(s)i=[];else{var a=t&&t.constructor,r=a&&a.prototype;i=G(r)}return e&&(e=f.createCallback(e,n,4),(s?Xt:ln)(t,function(t,n,s){return e(i,t,n,s)})),i}function $t(t){for(var e=-1,i=Zi(t),n=i.length,s=pi(n);++e<n;)s[e]=t[i[e]];return s}function Wt(t){for(var e=arguments,i=-1,n=tt(e,!0,!1,1),s=e[2]&&e[2][e[1]]===t?1:n.length,a=pi(s);++i<s;)a[i]=t[n[i]];return a}function Ut(t,e,i){var n=-1,s=lt(),a=t?t.length:0,r=!1;return i=(0>i?Wi(0,a+i):i)||0,Qi(t)?r=s(t,e,i)>-1:"number"==typeof a?r=(Ot(t)?t.indexOf(e,i):s(t,e,i))>-1:ln(t,function(t){return++n>=i?!(r=t===e):void 0}),r}function Vt(t,e,i){var n=!0;e=f.createCallback(e,i,3);var s=-1,a=t?t.length:0;if("number"==typeof a)for(;++s<a&&(n=!!e(t[s],s,t)););else ln(t,function(t,i,s){return n=!!e(t,i,s)});return n}function Yt(t,e,i){var n=[];e=f.createCallback(e,i,3);var s=-1,a=t?t.length:0;if("number"==typeof a)for(;++s<a;){var r=t[s];e(r,s,t)&&n.push(r)}else ln(t,function(t,i,s){e(t,i,s)&&n.push(t)});return n}function Kt(t,e,i){e=f.createCallback(e,i,3);var n=-1,s=t?t.length:0;if("number"!=typeof s){var a;return ln(t,function(t,i,n){return e(t,i,n)?(a=t,!1):void 0}),a}for(;++n<s;){var r=t[n];if(e(r,n,t))return r}}function Gt(t,e,i){var n;return e=f.createCallback(e,i,3),Qt(t,function(t,i,s){return e(t,i,s)?(n=t,!1):void 0}),n}function Xt(t,e,i){var n=-1,s=t?t.length:0;if(e=e&&"undefined"==typeof i?e:X(e,i,3),"number"==typeof s)for(;++n<s&&e(t[n],n,t)!==!1;);else ln(t,e);return t}function Qt(t,e,i){var n=t?t.length:0;if(e=e&&"undefined"==typeof i?e:X(e,i,3),"number"==typeof n)for(;n--&&e(t[n],n,t)!==!1;);else{var s=Zi(t);n=s.length,ln(t,function(t,i,a){return i=s?s[--n]:--n,e(a[i],i,a)})}return t}function Jt(t,e){var i=h(arguments,2),n=-1,s="function"==typeof e,a=t?t.length:0,r=pi("number"==typeof a?a:0);return Xt(t,function(t){r[++n]=(s?e:t[e]).apply(t,i)}),r}function Zt(t,e,i){var n=-1,s=t?t.length:0;if(e=f.createCallback(e,i,3),"number"==typeof s)for(var a=pi(s);++n<s;)a[n]=e(t[n],n,t);else a=[],ln(t,function(t,i,s){a[++n]=e(t,i,s)});return a}function te(t,e,i){var s=-(1/0),a=s;if("function"!=typeof e&&i&&i[e]===t&&(e=null),null==e&&Qi(t))for(var r=-1,o=t.length;++r<o;){var l=t[r];l>a&&(a=l)}else e=null==e&&Ot(t)?n:f.createCallback(e,i,3),Xt(t,function(t,i,n){var r=e(t,i,n);r>s&&(s=r,a=t)});return a}function ee(t,e,i){var s=1/0,a=s;if("function"!=typeof e&&i&&i[e]===t&&(e=null),null==e&&Qi(t))for(var r=-1,o=t.length;++r<o;){var l=t[r];a>l&&(a=l)}else e=null==e&&Ot(t)?n:f.createCallback(e,i,3),Xt(t,function(t,i,n){var r=e(t,i,n);s>r&&(s=r,a=t)});return a}function ie(t,e,i,n){if(!t)return i;var s=arguments.length<3;e=f.createCallback(e,n,4);var a=-1,r=t.length;if("number"==typeof r)for(s&&(i=t[++a]);++a<r;)i=e(i,t[a],a,t);else ln(t,function(t,n,a){i=s?(s=!1,t):e(i,t,n,a)});return i}function ne(t,e,i,n){var s=arguments.length<3;return e=f.createCallback(e,n,4),Qt(t,function(t,n,a){i=s?(s=!1,t):e(i,t,n,a)}),i}function se(t,e,i){return e=f.createCallback(e,i,3),Yt(t,function(t,i,n){return!e(t,i,n)})}function ae(t,e,i){if(t&&"number"!=typeof t.length&&(t=$t(t)),null==e||i)return t?t[nt(0,t.length-1)]:p;var n=re(t);return n.length=Ui(Wi(0,e),n.length),n}function re(t){var e=-1,i=t?t.length:0,n=pi("number"==typeof i?i:0);return Xt(t,function(t){var i=nt(0,++e);n[e]=n[i],n[i]=t}),n}function oe(t){var e=t?t.length:0;return"number"==typeof e?e:Zi(t).length}function le(t,e,i){var n;e=f.createCallback(e,i,3);var s=-1,a=t?t.length:0;if("number"==typeof a)for(;++s<a&&!(n=e(t[s],s,t)););else ln(t,function(t,i,s){return!(n=e(t,i,s))});return!!n}function ce(t,e,i){var n=-1,a=Qi(e),r=t?t.length:0,h=pi("number"==typeof r?r:0);for(a||(e=f.createCallback(e,i,3)),Xt(t,function(t,i,s){var r=h[++n]=l();a?r.criteria=Zt(e,function(e){return t[e]}):(r.criteria=o())[0]=e(t,i,s),r.index=n,r.value=t}),r=h.length,h.sort(s);r--;){var d=h[r];h[r]=d.value,a||c(d.criteria),u(d)}return h}function ue(t){return t&&"number"==typeof t.length?h(t):$t(t)}function he(t){for(var e=-1,i=t?t.length:0,n=[];++e<i;){var s=t[e];s&&n.push(s)}return n}function de(t){return J(t,tt(arguments,!0,!0,1))}function pe(t,e,i){var n=-1,s=t?t.length:0;for(e=f.createCallback(e,i,3);++n<s;)if(e(t[n],n,t))return n;return-1}function fe(t,e,i){var n=t?t.length:0;for(e=f.createCallback(e,i,3);n--;)if(e(t[n],n,t))return n;return-1}function ge(t,e,i){var n=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var a=-1;for(e=f.createCallback(e,i,3);++a<s&&e(t[a],a,t);)n++}else if(n=e,null==n||i)return t?t[0]:p;return h(t,0,Ui(Wi(0,n),s))}function me(t,e,i,n){return"boolean"!=typeof e&&null!=e&&(n=i,i="function"!=typeof e&&n&&n[e]===t?null:e,e=!1),null!=i&&(t=Zt(t,i,n)),tt(t,e)}function ve(e,i,n){if("number"==typeof n){var s=e?e.length:0;n=0>n?Wi(0,s+n):n||0}else if(n){var a=De(e,i);return e[a]===i?a:-1}return t(e,i,n)}function be(t,e,i){var n=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var a=s;for(e=f.createCallback(e,i,3);a--&&e(t[a],a,t);)n++}else n=null==e||i?1:e||n;return h(t,0,Ui(Wi(0,s-n),s))}function _e(){for(var i=[],n=-1,s=arguments.length,r=o(),l=lt(),h=l===t,d=o();++n<s;){var p=arguments[n];(Qi(p)||dt(p))&&(i.push(p),r.push(h&&p.length>=b&&a(n?i[n]:d)))}var f=i[0],g=-1,m=f?f.length:0,v=[];t:for(;++g<m;){var _=r[0];if(p=f[g],(_?e(_,p):l(d,p))<0){for(n=s,(_||d).push(p);--n;)if(_=r[n],(_?e(_,p):l(i[n],p))<0)continue t;v.push(p)}}for(;s--;)_=r[s],_&&u(_);return c(r),c(d),v}function ye(t,e,i){var n=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var a=s;for(e=f.createCallback(e,i,3);a--&&e(t[a],a,t);)n++}else if(n=e,null==n||i)return t?t[s-1]:p;return h(t,Wi(0,s-n))}function we(t,e,i){var n=t?t.length:0;for("number"==typeof i&&(n=(0>i?Wi(0,n+i):Ui(i,n-1))+1);n--;)if(t[n]===e)return n;return-1}function xe(t){for(var e=arguments,i=0,n=e.length,s=t?t.length:0;++i<n;)for(var a=-1,r=e[i];++a<s;)t[a]===r&&(Ri.call(t,a--,1),s--);return t}function ke(t,e,i){t=+t||0,i="number"==typeof i?i:+i||1,null==e&&(e=t,t=0);for(var n=-1,s=Wi(0,Ai((e-t)/(i||1))),a=pi(s);++n<s;)a[n]=t,t+=i;return a}function Ce(t,e,i){var n=-1,s=t?t.length:0,a=[];for(e=f.createCallback(e,i,3);++n<s;){var r=t[n];e(r,n,t)&&(a.push(r),Ri.call(t,n--,1),s--)}return a}function Se(t,e,i){if("number"!=typeof e&&null!=e){var n=0,s=-1,a=t?t.length:0;for(e=f.createCallback(e,i,3);++s<a&&e(t[s],s,t);)n++}else n=null==e||i?1:Wi(0,e);return h(t,n)}function De(t,e,i,n){var s=0,a=t?t.length:s;for(i=i?f.createCallback(i,n,1):Qe,e=i(e);a>s;){var r=s+a>>>1;i(t[r])<e?s=r+1:a=r}return s}function Te(){return st(tt(arguments,!0,!0))}function Ae(t,e,i,n){return"boolean"!=typeof e&&null!=e&&(n=i,i="function"!=typeof e&&n&&n[e]===t?null:e,e=!1),null!=i&&(i=f.createCallback(i,n,3)),st(t,e,i)}function Ee(t){return J(t,h(arguments,1))}function Me(){for(var t=-1,e=arguments.length;++t<e;){var i=arguments[t];if(Qi(i)||dt(i))var n=n?st(J(n,i).concat(J(i,n))):i}return n||[]}function Pe(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,i=t?te(pn(t,"length")):0,n=pi(0>i?0:i);++e<i;)n[e]=pn(t,e);return n}function Ie(t,e){var i=-1,n=t?t.length:0,s={};for(e||!n||Qi(t[0])||(e=[]);++i<n;){var a=t[i];e?s[a]=e[i]:a&&(s[a[0]]=a[1])}return s}function Ne(t,e){if(!Et(e))throw new xi;return function(){return--t<1?e.apply(this,arguments):void 0}}function Fe(t,e){return arguments.length>2?rt(t,17,h(arguments,2),null,e):rt(t,1,null,null,e)}function Oe(t){for(var e=arguments.length>1?tt(arguments,!0,!1,1):yt(t),i=-1,n=e.length;++i<n;){var s=e[i];t[s]=rt(t[s],1,null,null,t)}return t}function Re(t,e){return arguments.length>2?rt(e,19,h(arguments,2),null,t):rt(e,3,null,null,t)}function je(){for(var t=arguments,e=t.length;e--;)if(!Et(t[e]))throw new xi;return function(){for(var e=arguments,i=t.length;i--;)e=[t[i].apply(this,e)];return e[0]}}function Le(t,e){return e="number"==typeof e?e:+e||t.length,rt(t,4,null,null,null,e)}function He(t,e,i){var n,s,a,r,o,l,c,u=0,h=!1,d=!0;if(!Et(t))throw new xi;if(e=Wi(0,e)||0,i===!0){var f=!0;d=!1}else Mt(i)&&(f=i.leading,h="maxWait"in i&&(Wi(e,i.maxWait)||0),d="trailing"in i?i.trailing:d);var g=function(){var i=e-(gn()-r);if(0>=i){s&&Ei(s);var h=c;s=l=c=p,h&&(u=gn(),a=t.apply(o,n),l||s||(n=o=null))}else l=Oi(g,i)},m=function(){l&&Ei(l),s=l=c=p,(d||h!==e)&&(u=gn(),a=t.apply(o,n),l||s||(n=o=null))};return function(){if(n=arguments,r=gn(),o=this,c=d&&(l||!f),h===!1)var i=f&&!l;else{s||f||(u=r);var p=h-(r-u),v=0>=p;v?(s&&(s=Ei(s)),u=r,a=t.apply(o,n)):s||(s=Oi(m,p))}return v&&l?l=Ei(l):l||e===h||(l=Oi(g,e)),i&&(v=!0,a=t.apply(o,n)),!v||l||s||(n=o=null),a}}function ze(t){if(!Et(t))throw new xi;var e=h(arguments,1);return Oi(function(){t.apply(p,e)},1)}function Be(t,e){if(!Et(t))throw new xi;var i=h(arguments,2);return Oi(function(){t.apply(p,i)},e)}function qe(t,e){if(!Et(t))throw new xi;var i=function(){var n=i.cache,s=e?e.apply(this,arguments):v+arguments[0];return Ni.call(n,s)?n[s]:n[s]=t.apply(this,arguments)};return i.cache={},i}function $e(t){var e,i;if(!Et(t))throw new xi;return function(){return e?i:(e=!0,i=t.apply(this,arguments),t=null,i)}}function We(t){return rt(t,16,h(arguments,1))}function Ue(t){return rt(t,32,null,h(arguments,1))}function Ve(t,e,i){var n=!0,s=!0;if(!Et(t))throw new xi;return i===!1?n=!1:Mt(i)&&(n="leading"in i?i.leading:n,s="trailing"in i?i.trailing:s),W.leading=n,W.maxWait=e,W.trailing=s,He(t,e,W)}function Ye(t,e){return rt(e,16,[t])}function Ke(t){return function(){return t}}function Ge(t,e,i){var n=typeof t;if(null==t||"function"==n)return X(t,e,i);if("object"!=n)return ei(t);var s=Zi(t),a=s[0],r=t[a];return 1!=s.length||r!==r||Mt(r)?function(e){for(var i=s.length,n=!1;i--&&(n=et(e[s[i]],t[s[i]],null,!0)););return n}:function(t){var e=t[a];return r===e&&(0!==r||1/r==1/e)}}function Xe(t){return null==t?"":wi(t).replace(sn,ot)}function Qe(t){return t}function Je(t,e,i){var n=!0,s=e&&yt(e);e&&(i||s.length)||(null==i&&(i=e),a=g,e=t,t=f,s=yt(e)),i===!1?n=!1:Mt(i)&&"chain"in i&&(n=i.chain);var a=t,r=Et(a);Xt(s,function(i){var s=t[i]=e[i];r&&(a.prototype[i]=function(){var e=this.__chain__,i=this.__wrapped__,r=[i];Fi.apply(r,arguments);var o=s.apply(t,r);if(n||e){if(i===o&&Mt(o))return this;o=new a(o),o.__chain__=e}return o})})}function Ze(){return i._=Si,this}function ti(){}function ei(t){return function(e){return e[t]}}function ii(t,e,i){var n=null==t,s=null==e;if(null==i&&("boolean"==typeof t&&s?(i=t,t=1):s||"boolean"!=typeof e||(i=e,s=!0)),n&&s&&(e=1),t=+t||0,s?(e=t,t=0):e=+e||0,i||t%1||e%1){var a=Yi();return Ui(t+a*(e-t+parseFloat("1e-"+((a+"").length-1))),e)}return nt(t,e)}function ni(t,e){if(t){var i=t[e];return Et(i)?t[e]():i}}function si(t,e,i){var n=f.templateSettings;t=wi(t||""),i=rn({},i,n);var s,a=rn({},i.imports,n.imports),o=Zi(a),l=$t(a),c=0,u=i.interpolate||E,h="__p += '",d=yi((i.escape||E).source+"|"+u.source+"|"+(u===T?C:E).source+"|"+(i.evaluate||E).source+"|$","g");t.replace(d,function(e,i,n,a,o,l){return n||(n=a),h+=t.slice(c,l).replace(P,r),i&&(h+="' +\n__e("+i+") +\n'"),o&&(s=!0,h+="';\n"+o+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),h+="';\n";var g=i.variable,m=g;m||(g="obj",h="with ("+g+") {\n"+h+"\n}\n"),h=(s?h.replace(w,""):h).replace(x,"$1").replace(k,"$1;"),h="function("+g+") {\n"+(m?"":g+" || ("+g+" = {});\n")+"var __t, __p = '', __e = _.escape"+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";
+var v="\n/*\n//# sourceURL="+(i.sourceURL||"/lodash/template/source["+N++ +"]")+"\n*/";try{var b=mi(o,"return "+h+v).apply(p,l)}catch(_){throw _.source=h,_}return e?b(e):(b.source=h,b)}function ai(t,e,i){t=(t=+t)>-1?t:0;var n=-1,s=pi(t);for(e=X(e,i,1);++n<t;)s[n]=e(n);return s}function ri(t){return null==t?"":wi(t).replace(nn,ht)}function oi(t){var e=++m;return wi(null==t?"":t)+e}function li(t){return t=new g(t),t.__chain__=!0,t}function ci(t,e){return e(t),t}function ui(){return this.__chain__=!0,this}function hi(){return wi(this.__wrapped__)}function di(){return this.__wrapped__}i=i?Z.defaults(K.Object(),i,Z.pick(K,I)):K;var pi=i.Array,fi=i.Boolean,gi=i.Date,mi=i.Function,vi=i.Math,bi=i.Number,_i=i.Object,yi=i.RegExp,wi=i.String,xi=i.TypeError,ki=[],Ci=_i.prototype,Si=i._,Di=Ci.toString,Ti=yi("^"+wi(Di).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Ai=vi.ceil,Ei=i.clearTimeout,Mi=vi.floor,Pi=mi.prototype.toString,Ii=ct(Ii=_i.getPrototypeOf)&&Ii,Ni=Ci.hasOwnProperty,Fi=ki.push,Oi=i.setTimeout,Ri=ki.splice,ji=ki.unshift,Li=function(){try{var t={},e=ct(e=_i.defineProperty)&&e,i=e(t,t,t)&&e}catch(n){}return i}(),Hi=ct(Hi=_i.create)&&Hi,zi=ct(zi=pi.isArray)&&zi,Bi=i.isFinite,qi=i.isNaN,$i=ct($i=_i.keys)&&$i,Wi=vi.max,Ui=vi.min,Vi=i.parseInt,Yi=vi.random,Ki={};Ki[O]=pi,Ki[R]=fi,Ki[j]=gi,Ki[L]=mi,Ki[z]=_i,Ki[H]=bi,Ki[B]=yi,Ki[q]=wi,g.prototype=f.prototype;var Gi=f.support={};Gi.funcDecomp=!ct(i.WinRTError)&&M.test(d),Gi.funcNames="string"==typeof mi.name,f.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:T,variable:"",imports:{_:f}},Hi||(G=function(){function t(){}return function(e){if(Mt(e)){t.prototype=e;var n=new t;t.prototype=null}return n||i.Object()}}());var Xi=Li?function(t,e){U.value=e,Li(t,"__bindData__",U)}:ti,Qi=zi||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Di.call(t)==O||!1},Ji=function(t){var e,i=t,n=[];if(!i)return n;if(!V[typeof t])return n;for(e in i)Ni.call(i,e)&&n.push(e);return n},Zi=$i?function(t){return Mt(t)?$i(t):[]}:Ji,tn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},en=xt(tn),nn=yi("("+Zi(en).join("|")+")","g"),sn=yi("["+Zi(tn).join("")+"]","g"),an=function(t,e,i){var n,s=t,a=s;if(!s)return a;var r=arguments,o=0,l="number"==typeof i?2:r.length;if(l>3&&"function"==typeof r[l-2])var c=X(r[--l-1],r[l--],2);else l>2&&"function"==typeof r[l-1]&&(c=r[--l]);for(;++o<l;)if(s=r[o],s&&V[typeof s])for(var u=-1,h=V[typeof s]&&Zi(s),d=h?h.length:0;++u<d;)n=h[u],a[n]=c?c(a[n],s[n]):s[n];return a},rn=function(t,e,i){var n,s=t,a=s;if(!s)return a;for(var r=arguments,o=0,l="number"==typeof i?2:r.length;++o<l;)if(s=r[o],s&&V[typeof s])for(var c=-1,u=V[typeof s]&&Zi(s),h=u?u.length:0;++c<h;)n=u[c],"undefined"==typeof a[n]&&(a[n]=s[n]);return a},on=function(t,e,i){var n,s=t,a=s;if(!s)return a;if(!V[typeof s])return a;e=e&&"undefined"==typeof i?e:X(e,i,3);for(n in s)if(e(s[n],n,t)===!1)return a;return a},ln=function(t,e,i){var n,s=t,a=s;if(!s)return a;if(!V[typeof s])return a;e=e&&"undefined"==typeof i?e:X(e,i,3);for(var r=-1,o=V[typeof s]&&Zi(s),l=o?o.length:0;++r<l;)if(n=o[r],e(s[n],n,t)===!1)return a;return a},cn=Ii?function(t){if(!t||Di.call(t)!=z)return!1;var e=t.valueOf,i=ct(e)&&(i=Ii(e))&&Ii(i);return i?t==i||Ii(t)==i:ut(t)}:ut,un=at(function(t,e,i){Ni.call(t,i)?t[i]++:t[i]=1}),hn=at(function(t,e,i){(Ni.call(t,i)?t[i]:t[i]=[]).push(e)}),dn=at(function(t,e,i){t[i]=e}),pn=Zt,fn=Yt,gn=ct(gn=gi.now)&&gn||function(){return(new gi).getTime()},mn=8==Vi(y+"08")?Vi:function(t,e){return Vi(Ot(t)?t.replace(A,""):t,e||0)};return f.after=Ne,f.assign=an,f.at=Wt,f.bind=Fe,f.bindAll=Oe,f.bindKey=Re,f.chain=li,f.compact=he,f.compose=je,f.constant=Ke,f.countBy=un,f.create=gt,f.createCallback=Ge,f.curry=Le,f.debounce=He,f.defaults=rn,f.defer=ze,f.delay=Be,f.difference=de,f.filter=Yt,f.flatten=me,f.forEach=Xt,f.forEachRight=Qt,f.forIn=on,f.forInRight=bt,f.forOwn=ln,f.forOwnRight=_t,f.functions=yt,f.groupBy=hn,f.indexBy=dn,f.initial=be,f.intersection=_e,f.invert=xt,f.invoke=Jt,f.keys=Zi,f.map=Zt,f.mapValues=jt,f.max=te,f.memoize=qe,f.merge=Lt,f.min=ee,f.omit=Ht,f.once=$e,f.pairs=zt,f.partial=We,f.partialRight=Ue,f.pick=Bt,f.pluck=pn,f.property=ei,f.pull=xe,f.range=ke,f.reject=se,f.remove=Ce,f.rest=Se,f.shuffle=re,f.sortBy=ce,f.tap=ci,f.throttle=Ve,f.times=ai,f.toArray=ue,f.transform=qt,f.union=Te,f.uniq=Ae,f.values=$t,f.where=fn,f.without=Ee,f.wrap=Ye,f.xor=Me,f.zip=Pe,f.zipObject=Ie,f.collect=Zt,f.drop=Se,f.each=Xt,f.eachRight=Qt,f.extend=an,f.methods=yt,f.object=Ie,f.select=Yt,f.tail=Se,f.unique=Ae,f.unzip=Pe,Je(f),f.clone=pt,f.cloneDeep=ft,f.contains=Ut,f.escape=Xe,f.every=Vt,f.find=Kt,f.findIndex=pe,f.findKey=mt,f.findLast=Gt,f.findLastIndex=fe,f.findLastKey=vt,f.has=wt,f.identity=Qe,f.indexOf=ve,f.isArguments=dt,f.isArray=Qi,f.isBoolean=kt,f.isDate=Ct,f.isElement=St,f.isEmpty=Dt,f.isEqual=Tt,f.isFinite=At,f.isFunction=Et,f.isNaN=Pt,f.isNull=It,f.isNumber=Nt,f.isObject=Mt,f.isPlainObject=cn,f.isRegExp=Ft,f.isString=Ot,f.isUndefined=Rt,f.lastIndexOf=we,f.mixin=Je,f.noConflict=Ze,f.noop=ti,f.now=gn,f.parseInt=mn,f.random=ii,f.reduce=ie,f.reduceRight=ne,f.result=ni,f.runInContext=d,f.size=oe,f.some=le,f.sortedIndex=De,f.template=si,f.unescape=ri,f.uniqueId=oi,f.all=Vt,f.any=le,f.detect=Kt,f.findWhere=Kt,f.foldl=ie,f.foldr=ne,f.include=Ut,f.inject=ie,Je(function(){var t={};return ln(f,function(e,i){f.prototype[i]||(t[i]=e)}),t}(),!1),f.first=ge,f.last=ye,f.sample=ae,f.take=ge,f.head=ge,ln(f,function(t,e){var i="sample"!==e;f.prototype[e]||(f.prototype[e]=function(e,n){var s=this.__chain__,a=t(this.__wrapped__,e,n);return s||null!=e&&(!n||i&&"function"==typeof e)?new g(a,s):a})}),f.VERSION="2.4.1",f.prototype.chain=ui,f.prototype.toString=hi,f.prototype.value=di,f.prototype.valueOf=di,Xt(["join","pop","shift"],function(t){var e=ki[t];f.prototype[t]=function(){var t=this.__chain__,i=e.apply(this.__wrapped__,arguments);return t?new g(i,t):i}}),Xt(["push","reverse","sort","unshift"],function(t){var e=ki[t];f.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Xt(["concat","slice","splice"],function(t){var e=ki[t];f.prototype[t]=function(){return new g(e.apply(this.__wrapped__,arguments),this.__chain__)}}),f}var p,f=[],g=[],m=0,v=+new Date+"",b=75,_=40,y=" \x0B\f \ufeff\n\r\u2028\u2029 ᠎              ",w=/\b__p \+= '';/g,x=/\b(__p \+=) '' \+/g,k=/(__e\(.*?\)|\b__t\)) \+\n'';/g,C=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,S=/\w*$/,D=/^\s*function[ \n\r\t]+\w/,T=/<%=([\s\S]+?)%>/g,A=RegExp("^["+y+"]*0+(?=.$)"),E=/($^)/,M=/\bthis\b/,P=/['\n\r\t\u2028\u2029\\]/g,I=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],N=0,F="[object Arguments]",O="[object Array]",R="[object Boolean]",j="[object Date]",L="[object Function]",H="[object Number]",z="[object Object]",B="[object RegExp]",q="[object String]",$={};$[L]=!1,$[F]=$[O]=$[R]=$[j]=$[H]=$[z]=$[B]=$[q]=!0;var W={leading:!1,maxWait:0,trailing:!1},U={configurable:!1,enumerable:!1,value:null,writable:!1},V={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Y={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},K=V[typeof window]&&window||this,G=V[typeof exports]&&exports&&!exports.nodeType&&exports,X=V[typeof module]&&module&&!module.nodeType&&module,Q=X&&X.exports===G&&G,J=V[typeof global]&&global;!J||J.global!==J&&J.window!==J||(K=J);var Z=d();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(K._=Z,define(function(){return Z})):G&&X?Q?(X.exports=Z)._=Z:G._=Z:K._=Z}.call(this),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=Z.type(t);return"function"===i||Z.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t}function n(t,e,i){if(Z.isFunction(e))return Z.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return Z.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(ot.test(e))return Z.filter(e,t,i);e=Z.filter(e,t)}return Z.grep(t,function(t){return V.call(e,t)>=0!==i})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e=ft[t]={};return Z.each(t.match(pt)||[],function(t,i){e[i]=!0}),e}function r(){Q.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1),Z.ready()}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+Math.random()}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(yt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:_t.test(i)?Z.parseJSON(i):i}catch(s){}bt.set(t,e,i)}else i=void 0;return i}function c(){return!0}function u(){return!1}function h(){try{return Q.activeElement}catch(t){}}function d(t,e){return Z.nodeName(t,"table")&&Z.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=Rt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var i=0,n=t.length;n>i;i++)vt.set(t[i],"globalEval",!e||vt.get(e[i],"globalEval"))}function m(t,e){var i,n,s,a,r,o,l,c;if(1===e.nodeType){if(vt.hasData(t)&&(a=vt.access(t),r=vt.set(e,a),c=a.events)){delete r.handle,r.events={};for(s in c)for(i=0,n=c[s].length;n>i;i++)Z.event.add(e,s,c[s][i])}bt.hasData(t)&&(o=bt.access(t),l=Z.extend({},o),bt.set(e,l))}}function v(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Z.nodeName(t,e)?Z.merge([t],i):i}function b(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Ct.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function _(e,i){var n,s=Z(i.createElement(e)).appendTo(i.body),a=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(s[0]))?n.display:Z.css(s[0],"display");return s.detach(),a}function y(t){var e=Q,i=zt[t];return i||(i=_(t,e),"none"!==i&&i||(Ht=(Ht||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Ht[0].contentDocument,e.write(),e.close(),i=_(t,e),Ht.detach()),zt[t]=i),i}function w(t,e,i){var n,s,a,r,o=t.style;return i=i||$t(t),i&&(r=i.getPropertyValue(e)||i[e]),i&&(""!==r||Z.contains(t.ownerDocument,t)||(r=Z.style(t,e)),qt.test(r)&&Bt.test(e)&&(n=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=s,o.maxWidth=a)),void 0!==r?r+"":r}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,s=Gt.length;s--;)if(e=Gt[s]+i,e in t)return e;return n}function C(t,e,i){var n=Ut.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function S(t,e,i,n,s){for(var a=i===(n?"border":"content")?4:"width"===e?1:0,r=0;4>a;a+=2)"margin"===i&&(r+=Z.css(t,i+xt[a],!0,s)),n?("content"===i&&(r-=Z.css(t,"padding"+xt[a],!0,s)),"margin"!==i&&(r-=Z.css(t,"border"+xt[a]+"Width",!0,s))):(r+=Z.css(t,"padding"+xt[a],!0,s),"padding"!==i&&(r+=Z.css(t,"border"+xt[a]+"Width",!0,s)));return r}function D(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,a=$t(t),r="border-box"===Z.css(t,"boxSizing",!1,a);if(0>=s||null==s){if(s=w(t,e,a),(0>s||null==s)&&(s=t.style[e]),qt.test(s))return s;n=r&&(X.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+S(t,e,i||(r?"border":"content"),n,a)+"px"}function T(t,e){for(var i,n,s,a=[],r=0,o=t.length;o>r;r++)n=t[r],n.style&&(a[r]=vt.get(n,"olddisplay"),i=n.style.display,e?(a[r]||"none"!==i||(n.style.display=""),""===n.style.display&&kt(n)&&(a[r]=vt.access(n,"olddisplay",y(n.nodeName)))):(s=kt(n),"none"===i&&s||vt.set(n,"olddisplay",s?i:Z.css(n,"display"))));for(r=0;o>r;r++)n=t[r],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?a[r]||"":"none"));return t}function A(t,e,i,n,s){return new A.prototype.init(t,e,i,n,s)}function E(){return setTimeout(function(){Xt=void 0}),Xt=Z.now()}function M(t,e){var i,n=0,s={height:t};for(e=e?1:0;4>n;n+=2-e)i=xt[n],s["margin"+i]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function P(t,e,i){for(var n,s=(ie[e]||[]).concat(ie["*"]),a=0,r=s.length;r>a;a++)if(n=s[a].call(i,e,t))return n}function I(t,e,i){var n,s,a,r,o,l,c,u,h=this,d={},p=t.style,f=t.nodeType&&kt(t),g=vt.get(t,"fxshow");i.queue||(o=Z._queueHooks(t,"fx"),null==o.unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,Z.queue(t,"fx").length||o.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],c=Z.css(t,"display"),u="none"===c?vt.get(t,"olddisplay")||y(t.nodeName):c,"inline"===u&&"none"===Z.css(t,"float")&&(p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in e)if(s=e[n],Jt.exec(s)){if(delete e[n],a=a||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;f=!0}d[n]=g&&g[n]||Z.style(t,n)}else c=void 0;if(Z.isEmptyObject(d))"inline"===("none"===c?y(t.nodeName):c)&&(p.display=c);else{g?"hidden"in g&&(f=g.hidden):g=vt.access(t,"fxshow",{}),a&&(g.hidden=!f),f?Z(t).show():h.done(function(){Z(t).hide()}),h.done(function(){var e;vt.remove(t,"fxshow");for(e in d)Z.style(t,e,d[e])});for(n in d)r=P(f?g[n]:0,n,h),n in g||(g[n]=r.start,f&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}}function N(t,e){var i,n,s,a,r;for(i in t)if(n=Z.camelCase(i),s=e[n],a=t[i],Z.isArray(a)&&(s=a[1],a=t[i]=a[0]),i!==n&&(t[n]=a,delete t[i]),r=Z.cssHooks[n],r&&"expand"in r){a=r.expand(a),delete t[n];for(i in a)i in t||(t[i]=a[i],e[i]=s)}else e[n]=s}function F(t,e,i){var n,s,a=0,r=ee.length,o=Z.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Xt||E(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,a=1-n,r=0,l=c.tweens.length;l>r;r++)c.tweens[r].run(a);return o.notifyWith(t,[c,a,i]),1>a&&l?i:(o.resolveWith(t,[c]),!1)},c=o.promise({elem:t,props:Z.extend({},e),opts:Z.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Xt||E(),duration:i.duration,tweens:[],createTween:function(e,i){var n=Z.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;n>i;i++)c.tweens[i].run(1);return e?o.resolveWith(t,[c,e]):o.rejectWith(t,[c,e]),this}}),u=c.props;for(N(u,c.opts.specialEasing);r>a;a++)if(n=ee[a].call(c,t,u,c.opts))return n;return Z.map(u,P,c),Z.isFunction(c.opts.start)&&c.opts.start.call(t,c),Z.fx.timer(Z.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function O(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,a=e.toLowerCase().match(pt)||[];if(Z.isFunction(i))for(;n=a[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function R(t,e,i,n){function s(o){var l;return a[o]=!0,Z.each(t[o]||[],function(t,o){var c=o(e,i,n);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}var a={},r=t===we;return s(e.dataTypes[0])||!a["*"]&&s("*")}function j(t,e){var i,n,s=Z.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&Z.extend(!0,t,n),t}function L(t,e,i){for(var n,s,a,r,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in o)if(o[s]&&o[s].test(n)){l.unshift(s);break}if(l[0]in i)a=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){a=s;break}r||(r=s)}a=a||r}return a?(a!==l[0]&&l.unshift(a),i[a]):void 0}function H(t,e,i,n){var s,a,r,o,l,c={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(a=u.shift();a;)if(t.responseFields[a]&&(i[t.responseFields[a]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(r=c[l+" "+a]||c["* "+a],!r)for(s in c)if(o=s.split(" "),o[1]===a&&(r=c[l+" "+o[0]]||c["* "+o[0]])){r===!0?r=c[s]:c[s]!==!0&&(a=o[0],u.unshift(o[1]));break}if(r!==!0)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(h){return{state:"parsererror",error:r?h:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function z(t,e,i,n){var s;if(Z.isArray(e))Z.each(e,function(e,s){i||Se.test(t)?n(t,s):z(t+"["+("object"==typeof s?e:"")+"]",s,i,n)});else if(i||"object"!==Z.type(e))n(t,e);else for(s in e)z(t+"["+s+"]",e[s],i,n)}function B(t){return Z.isWindow(t)?t:9===t.nodeType&&t.defaultView}var q=[],$=q.slice,W=q.concat,U=q.push,V=q.indexOf,Y={},K=Y.toString,G=Y.hasOwnProperty,X={},Q=t.document,J="2.1.1",Z=function(t,e){return new Z.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};Z.fn=Z.prototype={jquery:J,constructor:Z,selector:"",length:0,toArray:function(){return $.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:$.call(this)},pushStack:function(t){var e=Z.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Z.each(this,t,e)},map:function(t){return this.pushStack(Z.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack($.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:q.sort,splice:q.splice},Z.extend=Z.fn.extend=function(){var t,e,i,n,s,a,r=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[o]||{},o++),"object"==typeof r||Z.isFunction(r)||(r={}),o===l&&(r=this,o--);l>o;o++)if(null!=(t=arguments[o]))for(e in t)i=r[e],n=t[e],r!==n&&(c&&n&&(Z.isPlainObject(n)||(s=Z.isArray(n)))?(s?(s=!1,a=i&&Z.isArray(i)?i:[]):a=i&&Z.isPlainObject(i)?i:{},r[e]=Z.extend(c,a,n)):void 0!==n&&(r[e]=n));return r},Z.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===Z.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!Z.isArray(t)&&t-parseFloat(t)>=0},isPlainObject:function(t){return"object"!==Z.type(t)||t.nodeType||Z.isWindow(t)?!1:!t.constructor||G.call(t.constructor.prototype,"isPrototypeOf")},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Y[K.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=Z.trim(t),t&&(1===t.indexOf("use strict")?(e=Q.createElement("script"),e.text=t,Q.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var s,a=0,r=t.length,o=i(t);if(n){if(o)for(;r>a&&(s=e.apply(t[a],n),s!==!1);a++);else for(a in t)if(s=e.apply(t[a],n),s===!1)break}else if(o)for(;r>a&&(s=e.call(t[a],a,t[a]),s!==!1);a++);else for(a in t)if(s=e.call(t[a],a,t[a]),s===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?Z.merge(n,"string"==typeof t?[t]:t):U.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:V.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;i>n;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n,s=[],a=0,r=t.length,o=!i;r>a;a++)n=!e(t[a],a),n!==o&&s.push(t[a]);return s},map:function(t,e,n){var s,a=0,r=t.length,o=i(t),l=[];if(o)for(;r>a;a++)s=e(t[a],a,n),null!=s&&l.push(s);else for(a in t)s=e(t[a],a,n),null!=s&&l.push(s);return W.apply([],l)},guid:1,proxy:function(t,e){var i,n,s;return"string"==typeof e&&(i=t[e],e=t,t=i),Z.isFunction(t)?(n=$.call(arguments,2),s=function(){return t.apply(e||this,n.concat($.call(arguments)))},s.guid=t.guid=t.guid||Z.guid++,s):void 0},now:Date.now,support:X}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Y["[object "+e+"]"]=e.toLowerCase()});var st=function(t){function e(t,e,i,n){var s,a,r,o,l,c,h,p,f,g;if((e?e.ownerDocument||e:z)!==I&&P(e),e=e||I,i=i||[],!t||"string"!=typeof t)return i;if(1!==(o=e.nodeType)&&9!==o)return[];if(F&&!n){if(s=bt.exec(t))if(r=s[1]){if(9===o){if(a=e.getElementById(r),!a||!a.parentNode)return i;if(a.id===r)return i.push(a),i}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(r))&&L(e,a)&&a.id===r)return i.push(a),i}else{if(s[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((r=s[3])&&w.getElementsByClassName&&e.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(r)),i}if(w.qsa&&(!O||!O.test(t))){if(p=h=H,f=e,g=9===o&&t,1===o&&"object"!==e.nodeName.toLowerCase()){for(c=S(t),(h=e.getAttribute("id"))?p=h.replace(yt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=c.length;l--;)c[l]=p+d(c[l]);f=_t.test(t)&&u(e.parentNode)||e,g=c.join(",")}if(g)try{return Z.apply(i,f.querySelectorAll(g)),i}catch(m){}finally{h||e.removeAttribute("id")}}}return T(t.replace(lt,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>x.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[H]=!0,t}function s(t){var e=I.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var i=t.split("|"),n=t.length;n--;)x.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||K)-(~t.sourceIndex||K);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function o(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function c(t){return n(function(e){return e=+e,n(function(i,n){for(var s,a=t([],i.length,e),r=a.length;r--;)i[s=a[r]]&&(i[s]=!(n[s]=i[s]))})})}function u(t){return t&&typeof t.getElementsByTagName!==Y&&t}function h(){}function d(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function p(t,e,i){var n=e.dir,s=i&&"parentNode"===n,a=q++;return e.first?function(e,i,a){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,a)}:function(e,i,r){var o,l,c=[B,a];if(r){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,r))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if(l=e[H]||(e[H]={}),(o=l[n])&&o[0]===B&&o[1]===a)return c[2]=o[2];if(l[n]=c,c[2]=t(e,i,r))return!0}}}function f(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function g(t,i,n){for(var s=0,a=i.length;a>s;s++)e(t,i[s],n);return n}function m(t,e,i,n,s){for(var a,r=[],o=0,l=t.length,c=null!=e;l>o;o++)(a=t[o])&&(i&&!i(a,n,s)||(r.push(a),c&&e.push(o)));return r}function v(t,e,i,s,a,r){return s&&!s[H]&&(s=v(s)),a&&!a[H]&&(a=v(a,r)),n(function(n,r,o,l){var c,u,h,d=[],p=[],f=r.length,v=n||g(e||"*",o.nodeType?[o]:o,[]),b=!t||!n&&e?v:m(v,d,t,o,l),_=i?a||(n?t:f||s)?[]:r:b;if(i&&i(b,_,o,l),s)for(c=m(_,p),s(c,[],o,l),u=c.length;u--;)(h=c[u])&&(_[p[u]]=!(b[p[u]]=h));if(n){if(a||t){if(a){for(c=[],u=_.length;u--;)(h=_[u])&&c.push(b[u]=h);a(null,_=[],c,l)}for(u=_.length;u--;)(h=_[u])&&(c=a?et.call(n,h):d[u])>-1&&(n[c]=!(r[c]=h))}}else _=m(_===r?_.splice(f,_.length):_),a?a(null,r,_,l):Z.apply(r,_)})}function b(t){for(var e,i,n,s=t.length,a=x.relative[t[0].type],r=a||x.relative[" "],o=a?1:0,l=p(function(t){return t===e},r,!0),c=p(function(t){return et.call(e,t)>-1},r,!0),u=[function(t,i,n){return!a&&(n||i!==A)||((e=i).nodeType?l(t,i,n):c(t,i,n))}];s>o;o++)if(i=x.relative[t[o].type])u=[p(f(u),i)];else{if(i=x.filter[t[o].type].apply(null,t[o].matches),i[H]){for(n=++o;s>n&&!x.relative[t[n].type];n++);return v(o>1&&f(u),o>1&&d(t.slice(0,o-1).concat({value:" "===t[o-2].type?"*":""})).replace(lt,"$1"),i,n>o&&b(t.slice(o,n)),s>n&&b(t=t.slice(n)),s>n&&d(t))}u.push(i)}return f(u)}function _(t,i){var s=i.length>0,a=t.length>0,r=function(n,r,o,l,c){var u,h,d,p=0,f="0",g=n&&[],v=[],b=A,_=n||a&&x.find.TAG("*",c),y=B+=null==b?1:Math.random()||.1,w=_.length;for(c&&(A=r!==I&&r);f!==w&&null!=(u=_[f]);f++){if(a&&u){for(h=0;d=t[h++];)if(d(u,r,o)){l.push(u);break}c&&(B=y)}s&&((u=!d&&u)&&p--,n&&g.push(u))}if(p+=f,s&&f!==p){for(h=0;d=i[h++];)d(g,v,r,o);if(n){if(p>0)for(;f--;)g[f]||v[f]||(v[f]=Q.call(l));v=m(v)}Z.apply(l,v),c&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return c&&(B=y,A=b),g};return s?n(r):r}var y,w,x,k,C,S,D,T,A,E,M,P,I,N,F,O,R,j,L,H="sizzle"+-new Date,z=t.document,B=0,q=0,$=i(),W=i(),U=i(),V=function(t,e){return t===e&&(M=!0),0},Y="undefined",K=1<<31,G={}.hasOwnProperty,X=[],Q=X.pop,J=X.push,Z=X.push,tt=X.slice,et=X.indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(this[e]===t)return e;return-1},it="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",st="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",at=st.replace("w","w#"),rt="\\["+nt+"*("+st+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+at+"))|)"+nt+"*\\]",ot=":("+st+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",lt=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),ut=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ht=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(ot),pt=new RegExp("^"+at+"$"),ft={ID:new RegExp("^#("+st+")"),CLASS:new RegExp("^\\.("+st+")"),TAG:new RegExp("^("+st.replace("w","w*")+")"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+it+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_t=/[+~]/,yt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{Z.apply(X=tt.call(z.childNodes),z.childNodes),X[z.childNodes.length].nodeType}catch(kt){Z={apply:X.length?function(t,e){J.apply(t,tt.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}w=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},P=e.setDocument=function(t){var e,i=t?t.ownerDocument||t:z,n=i.defaultView;return i!==I&&9===i.nodeType&&i.documentElement?(I=i,N=i.documentElement,F=!C(i),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){P()},!1):n.attachEvent&&n.attachEvent("onunload",function(){P()})),w.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=s(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(i.getElementsByClassName)&&s(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),w.getById=s(function(t){return N.appendChild(t).id=H,!i.getElementsByName||!i.getElementsByName(H).length}),w.getById?(x.find.ID=function(t,e){if(typeof e.getElementById!==Y&&F){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var i=typeof t.getAttributeNode!==Y&&t.getAttributeNode("id");return i&&i.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==Y?e.getElementsByTagName(t):void 0}:function(t,e){var i,n=[],s=0,a=e.getElementsByTagName(t);if("*"===t){for(;i=a[s++];)1===i.nodeType&&n.push(i);return n}return a},x.find.CLASS=w.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==Y&&F?e.getElementsByClassName(t):void 0},R=[],O=[],(w.qsa=vt.test(i.querySelectorAll))&&(s(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&O.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+nt+"*(?:value|"+it+")"),t.querySelectorAll(":checked").length||O.push(":checked")}),s(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=vt.test(j=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&s(function(t){w.disconnectedMatch=j.call(t,"div"),j.call(t,"[s!='']:x"),R.push("!=",ot)}),O=O.length&&new RegExp(O.join("|")),R=R.length&&new RegExp(R.join("|")),e=vt.test(N.compareDocumentPosition),L=e||vt.test(N.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return M=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===z&&L(z,t)?-1:e===i||e.ownerDocument===z&&L(z,e)?1:E?et.call(E,t)-et.call(E,e):0:4&n?-1:1)}:function(t,e){if(t===e)return M=!0,0;var n,s=0,a=t.parentNode,o=e.parentNode,l=[t],c=[e];if(!a||!o)return t===i?-1:e===i?1:a?-1:o?1:E?et.call(E,t)-et.call(E,e):0;if(a===o)return r(t,e);for(n=t;n=n.parentNode;)l.unshift(n);for(n=e;n=n.parentNode;)c.unshift(n);for(;l[s]===c[s];)s++;return s?r(l[s],c[s]):l[s]===z?-1:c[s]===z?1:0},i):I},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==I&&P(t),i=i.replace(ht,"='$1']"),w.matchesSelector&&F&&(!R||!R.test(i))&&(!O||!O.test(i)))try{var n=j.call(t,i);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(s){}return e(i,I,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&&P(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&&P(t);var i=x.attrHandle[e.toLowerCase()],n=i&&G.call(x.attrHandle,e.toLowerCase())?i(t,e,!F):void 0;return void 0!==n?n:w.attributes||!F?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(M=!w.detectDuplicates,E=!w.sortStable&&t.slice(0),t.sort(V),M){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return E=null,t},k=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;
+for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},x=e.selectors={cacheLength:50,createPseudo:n,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&dt.test(i)&&(e=S(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=$[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&$(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==Y&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var a=e.attr(s,t);return null==a?"!="===i:i?(a+="","="===i?a===n:"!="===i?a!==n:"^="===i?n&&0===a.indexOf(n):"*="===i?n&&a.indexOf(n)>-1:"$="===i?n&&a.slice(-n.length)===n:"~="===i?(" "+a+" ").indexOf(n)>-1:"|="===i?a===n||a.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(t,e,i,n,s){var a="nth"!==t.slice(0,3),r="last"!==t.slice(-4),o="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,u,h,d,p,f,g=a!==r?"nextSibling":"previousSibling",m=e.parentNode,v=o&&e.nodeName.toLowerCase(),b=!l&&!o;if(m){if(a){for(;g;){for(h=e;h=h[g];)if(o?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&b){for(u=m[H]||(m[H]={}),c=u[t]||[],p=c[0]===B&&c[1],d=c[0]===B&&c[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(d=p=0)||f.pop();)if(1===h.nodeType&&++d&&h===e){u[t]=[B,p,d];break}}else if(b&&(c=(e[H]||(e[H]={}))[t])&&c[0]===B)d=c[1];else for(;(h=++p&&h&&h[g]||(d=p=0)||f.pop())&&((o?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++d||(b&&((h[H]||(h[H]={}))[t]=[B,d]),h!==e)););return d-=s,d===n||d%n===0&&d/n>=0}}},PSEUDO:function(t,i){var s,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[H]?a(i):a.length>1?(s=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=a(t,i),r=s.length;r--;)n=et.call(t,s[r]),t[n]=!(e[n]=s[r])}):function(t){return a(t,0,s)}):a}},pseudos:{not:n(function(t){var e=[],i=[],s=D(t.replace(lt,"$1"));return s[H]?n(function(t,e,i,n){for(var a,r=s(t,null,n,[]),o=t.length;o--;)(a=r[o])&&(t[o]=!(e[o]=a))}):function(t,n,a){return e[0]=t,s(e,null,a,i),!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var i;do if(i=F?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,i){return[0>i?i+e:i]}),even:c(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:c(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:c(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:c(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}},x.pseudos.nth=x.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[y]=o(y);for(y in{submit:!0,reset:!0})x.pseudos[y]=l(y);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,S=e.tokenize=function(t,i){var n,s,a,r,o,l,c,u=W[t+" "];if(u)return i?0:u.slice(0);for(o=t,l=[],c=x.preFilter;o;){n&&!(s=ct.exec(o))||(s&&(o=o.slice(s[0].length)||o),l.push(a=[])),n=!1,(s=ut.exec(o))&&(n=s.shift(),a.push({value:n,type:s[0].replace(lt," ")}),o=o.slice(n.length));for(r in x.filter)!(s=ft[r].exec(o))||c[r]&&!(s=c[r](s))||(n=s.shift(),a.push({value:n,type:r,matches:s}),o=o.slice(n.length));if(!n)break}return i?o.length:o?e.error(t):W(t,l).slice(0)},D=e.compile=function(t,e){var i,n=[],s=[],a=U[t+" "];if(!a){for(e||(e=S(t)),i=e.length;i--;)a=b(e[i]),a[H]?n.push(a):s.push(a);a=U(t,_(s,n)),a.selector=t}return a},T=e.select=function(t,e,i,n){var s,a,r,o,l,c="function"==typeof t&&t,h=!n&&S(t=c.selector||t);if(i=i||[],1===h.length){if(a=h[0]=h[0].slice(0),a.length>2&&"ID"===(r=a[0]).type&&w.getById&&9===e.nodeType&&F&&x.relative[a[1].type]){if(e=(x.find.ID(r.matches[0].replace(wt,xt),e)||[])[0],!e)return i;c&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(s=ft.needsContext.test(t)?0:a.length;s--&&(r=a[s],!x.relative[o=r.type]);)if((l=x.find[o])&&(n=l(r.matches[0].replace(wt,xt),_t.test(a[0].type)&&u(e.parentNode)||e))){if(a.splice(s,1),t=n.length&&d(a),!t)return Z.apply(i,n),i;break}}return(c||D(t,h))(n,e,!F,i,_t.test(t)&&u(e.parentNode)||e),i},w.sortStable=H.split("").sort(V).join("")===H,w.detectDuplicates=!!M,P(),w.sortDetached=s(function(t){return 1&t.compareDocumentPosition(I.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||a(it,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);Z.find=st,Z.expr=st.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=st.uniqueSort,Z.text=st.getText,Z.isXMLDoc=st.isXML,Z.contains=st.contains;var at=Z.expr.match.needsContext,rt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ot=/^.[^:#\[\.,]*$/;Z.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?Z.find.matchesSelector(n,t)?[n]:[]:Z.find.matches(t,Z.grep(e,function(t){return 1===t.nodeType}))},Z.fn.extend({find:function(t){var e,i=this.length,n=[],s=this;if("string"!=typeof t)return this.pushStack(Z(t).filter(function(){for(e=0;i>e;e++)if(Z.contains(s[e],this))return!0}));for(e=0;i>e;e++)Z.find(t,s[e],n);return n=this.pushStack(i>1?Z.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&at.test(t)?Z(t):t||[],!1).length}});var lt,ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ut=Z.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ct.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof Z?e[0]:e,Z.merge(this,Z.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),rt.test(i[1])&&Z.isPlainObject(e))for(i in e)Z.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=Q.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):Z.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(Z):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),Z.makeArray(t,this))};ut.prototype=Z.fn,lt=Z(Q);var ht=/^(?:parents|prev(?:Until|All))/,dt={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&Z(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),Z.fn.extend({has:function(t){var e=Z(t,this),i=e.length;return this.filter(function(){for(var t=0;i>t;t++)if(Z.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,a=[],r=at.test(t)||"string"!=typeof t?Z(t,e||this.context):0;s>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&Z.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(a.length>1?Z.unique(a):a)},index:function(t){return t?"string"==typeof t?V.call(Z(t),this[0]):V.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Z.unique(Z.merge(this.get(),Z(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Z.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Z.dir(t,"parentNode")},parentsUntil:function(t,e,i){return Z.dir(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return Z.dir(t,"nextSibling")},prevAll:function(t){return Z.dir(t,"previousSibling")},nextUntil:function(t,e,i){return Z.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return Z.dir(t,"previousSibling",i)},siblings:function(t){return Z.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Z.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Z.merge([],t.childNodes)}},function(t,e){Z.fn[t]=function(i,n){var s=Z.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=Z.filter(n,s)),this.length>1&&(dt[t]||Z.unique(s),ht.test(t)&&s.reverse()),this.pushStack(s)}});var pt=/\S+/g,ft={};Z.Callbacks=function(t){t="string"==typeof t?ft[t]||a(t):Z.extend({},t);var e,i,n,s,r,o,l=[],c=!t.once&&[],u=function(a){for(e=t.memory&&a,i=!0,o=s||0,s=0,r=l.length,n=!0;l&&r>o;o++)if(l[o].apply(a[0],a[1])===!1&&t.stopOnFalse){e=!1;break}n=!1,l&&(c?c.length&&u(c.shift()):e?l=[]:h.disable())},h={add:function(){if(l){var i=l.length;!function a(e){Z.each(e,function(e,i){var n=Z.type(i);"function"===n?t.unique&&h.has(i)||l.push(i):i&&i.length&&"string"!==n&&a(i)})}(arguments),n?r=l.length:e&&(s=i,u(e))}return this},remove:function(){return l&&Z.each(arguments,function(t,e){for(var i;(i=Z.inArray(e,l,i))>-1;)l.splice(i,1),n&&(r>=i&&r--,o>=i&&o--)}),this},has:function(t){return t?Z.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=c=e=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,e||h.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!l||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],n?c.push(e):u(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},Z.extend({Deferred:function(t){var e=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return Z.Deferred(function(i){Z.each(e,function(e,a){var r=Z.isFunction(t[e])&&t[e];s[a[1]](function(){var t=r&&r.apply(this,arguments);t&&Z.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a[0]+"With"](this===n?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?Z.extend(t,n):n}},s={};return n.pipe=n.then,Z.each(e,function(t,a){var r=a[2],o=a[3];n[a[1]]=r.add,o&&r.add(function(){i=o},e[1^t][2].disable,e[2][2].lock),s[a[0]]=function(){return s[a[0]+"With"](this===s?n:this,arguments),this},s[a[0]+"With"]=r.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,a=$.call(arguments),r=a.length,o=1!==r||t&&Z.isFunction(t.promise)?r:0,l=1===o?t:Z.Deferred(),c=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?$.call(arguments):s,n===e?l.notifyWith(i,n):--o||l.resolveWith(i,n)}};if(r>1)for(e=new Array(r),i=new Array(r),n=new Array(r);r>s;s++)a[s]&&Z.isFunction(a[s].promise)?a[s].promise().done(c(s,n,a)).fail(l.reject).progress(c(s,i,e)):--o;return o||l.resolveWith(n,a),l.promise()}});var gt;Z.fn.ready=function(t){return Z.ready.promise().done(t),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(t){t?Z.readyWait++:Z.ready(!0)},ready:function(t){(t===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,t!==!0&&--Z.readyWait>0||(gt.resolveWith(Q,[Z]),Z.fn.triggerHandler&&(Z(Q).triggerHandler("ready"),Z(Q).off("ready"))))}}),Z.ready.promise=function(e){return gt||(gt=Z.Deferred(),"complete"===Q.readyState?setTimeout(Z.ready):(Q.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1))),gt.promise(e)},Z.ready.promise();var mt=Z.access=function(t,e,i,n,s,a,r){var o=0,l=t.length,c=null==i;if("object"===Z.type(i)){s=!0;for(o in i)Z.access(t,e,o,i[o],!0,a,r)}else if(void 0!==n&&(s=!0,Z.isFunction(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(Z(t),i)})),e))for(;l>o;o++)e(t[o],i,r?n:n.call(t[o],o,e(t[o],i)));return s?t:c?e.call(t):l?e(t[0],i):a};Z.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},o.uid=1,o.accepts=Z.acceptData,o.prototype={key:function(t){if(!o.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=o.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,Z.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,s=this.key(t),a=this.cache[s];if("string"==typeof e)a[e]=i;else if(Z.isEmptyObject(a))Z.extend(this.cache[s],e);else for(n in e)a[n]=e[n];return a},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,Z.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,s,a=this.key(t),r=this.cache[a];if(void 0===e)this.cache[a]={};else{Z.isArray(e)?n=e.concat(e.map(Z.camelCase)):(s=Z.camelCase(e),e in r?n=[e,s]:(n=s,n=n in r?[n]:n.match(pt)||[])),i=n.length;for(;i--;)delete r[n[i]]}},hasData:function(t){return!Z.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new o,bt=new o,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,yt=/([A-Z])/g;Z.extend({hasData:function(t){return bt.hasData(t)||vt.hasData(t)},data:function(t,e,i){return bt.access(t,e,i)},removeData:function(t,e){bt.remove(t,e)},_data:function(t,e,i){return vt.access(t,e,i)},_removeData:function(t,e){vt.remove(t,e)}}),Z.fn.extend({data:function(t,e){var i,n,s,a=this[0],r=a&&a.attributes;if(void 0===t){if(this.length&&(s=bt.get(a),1===a.nodeType&&!vt.get(a,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=Z.camelCase(n.slice(5)),l(a,n,s[n])));vt.set(a,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){bt.set(this,t)}):mt(this,function(e){var i,n=Z.camelCase(t);if(a&&void 0===e){if(i=bt.get(a,t),void 0!==i)return i;if(i=bt.get(a,n),void 0!==i)return i;if(i=l(a,n,void 0),void 0!==i)return i}else this.each(function(){var i=bt.get(this,n);bt.set(this,n,e),-1!==t.indexOf("-")&&void 0!==i&&bt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){bt.remove(this,t)})}}),Z.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=vt.get(t,e),i&&(!n||Z.isArray(i)?n=vt.access(t,e,Z.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=Z.queue(t,e),n=i.length,s=i.shift(),a=Z._queueHooks(t,e),r=function(){Z.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete a.stop,s.call(t,r,a)),!n&&a&&a.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return vt.get(t,i)||vt.access(t,i,{empty:Z.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",i])})})}}),Z.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?Z.queue(this[0],t):void 0===e?this:this.each(function(){var i=Z.queue(this,t,e);Z._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&Z.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Z.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=Z.Deferred(),a=this,r=this.length,o=function(){--n||s.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)i=vt.get(a[r],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(o));return o(),s.promise(e)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xt=["Top","Right","Bottom","Left"],kt=function(t,e){return t=e||t,"none"===Z.css(t,"display")||!Z.contains(t.ownerDocument,t)},Ct=/^(?:checkbox|radio)$/i;!function(){var t=Q.createDocumentFragment(),e=t.appendChild(Q.createElement("div")),i=Q.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),X.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",X.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var St="undefined";X.focusinBubbles="onfocusin"in t;var Dt=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,At=/^(?:focusinfocus|focusoutblur)$/,Et=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(t,e,i,n,s){var a,r,o,l,c,u,h,d,p,f,g,m=vt.get(t);if(m)for(i.handler&&(a=i,i=a.handler,s=a.selector),i.guid||(i.guid=Z.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(e){return typeof Z!==St&&Z.event.triggered!==e.type?Z.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],c=e.length;c--;)o=Et.exec(e[c])||[],p=g=o[1],f=(o[2]||"").split(".").sort(),p&&(h=Z.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=Z.event.special[p]||{},u=Z.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&Z.expr.match.needsContext.test(s),namespace:f.join(".")},a),(d=l[p])||(d=l[p]=[],d.delegateCount=0,h.setup&&h.setup.call(t,n,f,r)!==!1||t.addEventListener&&t.addEventListener(p,r,!1)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),Z.event.global[p]=!0)},remove:function(t,e,i,n,s){var a,r,o,l,c,u,h,d,p,f,g,m=vt.hasData(t)&&vt.get(t);if(m&&(l=m.events)){for(e=(e||"").match(pt)||[""],c=e.length;c--;)if(o=Et.exec(e[c])||[],p=g=o[1],f=(o[2]||"").split(".").sort(),p){for(h=Z.event.special[p]||{},p=(n?h.delegateType:h.bindType)||p,d=l[p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=d.length;a--;)u=d[a],!s&&g!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));r&&!d.length&&(h.teardown&&h.teardown.call(t,f,m.handle)!==!1||Z.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)Z.event.remove(t,p+e[c],i,n,!0);Z.isEmptyObject(l)&&(delete m.handle,vt.remove(t,"events"))}},trigger:function(e,i,n,s){var a,r,o,l,c,u,h,d=[n||Q],p=G.call(e,"type")?e.type:e,f=G.call(e,"namespace")?e.namespace.split("."):[];if(r=o=n=n||Q,3!==n.nodeType&&8!==n.nodeType&&!At.test(p+Z.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[Z.expando]?e:new Z.Event(p,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:Z.makeArray(i,[e]),h=Z.event.special[p]||{},s||!h.trigger||h.trigger.apply(n,i)!==!1)){if(!s&&!h.noBubble&&!Z.isWindow(n)){for(l=h.delegateType||p,At.test(l+p)||(r=r.parentNode);r;r=r.parentNode)d.push(r),o=r;o===(n.ownerDocument||Q)&&d.push(o.defaultView||o.parentWindow||t)}for(a=0;(r=d[a++])&&!e.isPropagationStopped();)e.type=a>1?l:h.bindType||p,u=(vt.get(r,"events")||{})[e.type]&&vt.get(r,"handle"),u&&u.apply(r,i),u=c&&r[c],u&&u.apply&&Z.acceptData(r)&&(e.result=u.apply(r,i),e.result===!1&&e.preventDefault());return e.type=p,s||e.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),i)!==!1||!Z.acceptData(n)||c&&Z.isFunction(n[p])&&!Z.isWindow(n)&&(o=n[c],o&&(n[c]=null),Z.event.triggered=p,n[p](),Z.event.triggered=void 0,o&&(n[c]=o)),e.result}},dispatch:function(t){t=Z.event.fix(t);var e,i,n,s,a,r=[],o=$.call(arguments),l=(vt.get(this,"events")||{})[t.type]||[],c=Z.event.special[t.type]||{};if(o[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(r=Z.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(a=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(a.namespace)||(t.handleObj=a,t.data=a.data,n=((Z.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,a,r=[],o=e.delegateCount,l=t.target;if(o&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;o>i;i++)a=e[i],s=a.selector+" ",void 0===n[s]&&(n[s]=a.needsContext?Z(s,this).index(l)>=0:Z.find(s,this,null,[l]).length),n[s]&&n.push(a);n.length&&r.push({elem:l,handlers:n})}return o<e.length&&r.push({elem:this,handlers:e.slice(o)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s,a=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||Q,n=i.documentElement,s=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[Z.expando])return t;var e,i,n,s=t.type,a=t,r=this.fixHooks[s];for(r||(this.fixHooks[s]=r=Tt.test(s)?this.mouseHooks:Dt.test(s)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,t=new Z.Event(a),e=n.length;e--;)i=n[e],t[i]=a[i];return t.target||(t.target=Q),3===t.target.nodeType&&(t.target=t.target.parentNode),r.filter?r.filter(t,a):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==h()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Z.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return Z.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var s=Z.extend(new Z.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?Z.event.trigger(s,null,e):Z.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},Z.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)},Z.Event=function(t,e){return this instanceof Z.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?c:u):this.type=t,e&&Z.extend(this,e),this.timeStamp=t&&t.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(t,e)},Z.Event.prototype={isDefaultPrevented:u,isPropagationStopped:u,isImmediatePropagationStopped:u,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=c,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=c,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=c,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Z.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,a=t.handleObj;return s&&(s===n||Z.contains(n,s))||(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=e),i}}}),X.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){Z.event.simulate(e,t.target,Z.event.fix(t),!0)};Z.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=vt.access(n,e);s||n.addEventListener(t,i,!0),vt.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=vt.access(n,e)-1;s?vt.access(n,e,s):(n.removeEventListener(t,i,!0),vt.remove(n,e))}}}),Z.fn.extend({on:function(t,e,i,n,s){var a,r;if("object"==typeof t){"string"!=typeof e&&(i=i||e,e=void 0);for(r in t)this.on(r,e,i,t[r],s);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=u;else if(!n)return this;return 1===s&&(a=n,n=function(t){return Z().off(t),a.apply(this,arguments)},n.guid=a.guid||(a.guid=Z.guid++)),this.each(function(){Z.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,Z(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=u),this.each(function(){Z.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){Z.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?Z.event.trigger(t,e,i,!0):void 0}});var Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pt=/<([\w:]+)/,It=/<|&#?\w+;/,Nt=/<(?:script|style|link)/i,Ft=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^$|\/(?:java|ecma)script/i,Rt=/^true\/(.*)/,jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Lt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Lt.optgroup=Lt.option,Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead,Lt.th=Lt.td,Z.extend({clone:function(t,e,i){var n,s,a,r,o=t.cloneNode(!0),l=Z.contains(t.ownerDocument,t);if(!(X.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Z.isXMLDoc(t)))for(r=v(o),a=v(t),n=0,s=a.length;s>n;n++)b(a[n],r[n]);if(e)if(i)for(a=a||v(t),r=r||v(o),n=0,s=a.length;s>n;n++)m(a[n],r[n]);else m(t,o);return r=v(o,"script"),r.length>0&&g(r,!l&&v(t,"script")),o},buildFragment:function(t,e,i,n){for(var s,a,r,o,l,c,u=e.createDocumentFragment(),h=[],d=0,p=t.length;p>d;d++)if(s=t[d],s||0===s)if("object"===Z.type(s))Z.merge(h,s.nodeType?[s]:s);else if(It.test(s)){for(a=a||u.appendChild(e.createElement("div")),r=(Pt.exec(s)||["",""])[1].toLowerCase(),o=Lt[r]||Lt._default,a.innerHTML=o[1]+s.replace(Mt,"<$1></$2>")+o[2],c=o[0];c--;)a=a.lastChild;Z.merge(h,a.childNodes),a=u.firstChild,a.textContent=""}else h.push(e.createTextNode(s));for(u.textContent="",d=0;s=h[d++];)if((!n||-1===Z.inArray(s,n))&&(l=Z.contains(s.ownerDocument,s),a=v(u.appendChild(s),"script"),l&&g(a),i))for(c=0;s=a[c++];)Ot.test(s.type||"")&&i.push(s);return u},cleanData:function(t){for(var e,i,n,s,a=Z.event.special,r=0;void 0!==(i=t[r]);r++){if(Z.acceptData(i)&&(s=i[vt.expando],s&&(e=vt.cache[s]))){if(e.events)for(n in e.events)a[n]?Z.event.remove(i,n):Z.removeEvent(i,n,e.handle);vt.cache[s]&&delete vt.cache[s]}delete bt.cache[i[bt.expando]]}}}),Z.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?Z.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?Z.filter(t,this):this,s=0;null!=(i=n[s]);s++)e||1!==i.nodeType||Z.cleanData(v(i)),i.parentNode&&(e&&Z.contains(i.ownerDocument,i)&&g(v(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Z.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return Z.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Nt.test(t)&&!Lt[(Pt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Mt,"<$1></$2>");try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(Z.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,Z.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=W.apply([],t);var i,n,s,a,r,o,l=0,c=this.length,u=this,h=c-1,d=t[0],g=Z.isFunction(d);if(g||c>1&&"string"==typeof d&&!X.checkClone&&Ft.test(d))return this.each(function(i){var n=u.eq(i);g&&(t[0]=d.call(this,i,n.html())),n.domManip(t,e)});if(c&&(i=Z.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(s=Z.map(v(i,"script"),p),a=s.length;c>l;l++)r=i,l!==h&&(r=Z.clone(r,!0,!0),a&&Z.merge(s,v(r,"script"))),e.call(this[l],r,l);if(a)for(o=s[s.length-1].ownerDocument,Z.map(s,f),l=0;a>l;l++)r=s[l],Ot.test(r.type||"")&&!vt.access(r,"globalEval")&&Z.contains(o,r)&&(r.src?Z._evalUrl&&Z._evalUrl(r.src):Z.globalEval(r.textContent.replace(jt,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Z.fn[t]=function(t){for(var i,n=[],s=Z(t),a=s.length-1,r=0;a>=r;r++)i=r===a?this:this.clone(!0),
+Z(s[r])[e](i),U.apply(n,i.get());return this.pushStack(n)}});var Ht,zt={},Bt=/^margin/,qt=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),$t=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};!function(){function e(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r.innerHTML="",s.appendChild(a);var e=t.getComputedStyle(r,null);i="1%"!==e.top,n="4px"===e.width,s.removeChild(a)}var i,n,s=Q.documentElement,a=Q.createElement("div"),r=Q.createElement("div");r.style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===r.style.backgroundClip,a.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",a.appendChild(r),t.getComputedStyle&&Z.extend(X,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,i=r.appendChild(Q.createElement("div"));return i.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",r.style.width="1px",s.appendChild(a),e=!parseFloat(t.getComputedStyle(i,null).marginRight),s.removeChild(a),e}}))}(),Z.swap=function(t,e,i,n){var s,a,r={};for(a in e)r[a]=t.style[a],t.style[a]=e[a];s=i.apply(t,n||[]);for(a in e)t.style[a]=r[a];return s};var Wt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+wt+")(.*)$","i"),Vt=new RegExp("^([+-])=("+wt+")","i"),Yt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"},Gt=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=w(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,a,r,o=Z.camelCase(e),l=t.style;return e=Z.cssProps[o]||(Z.cssProps[o]=k(l,o)),r=Z.cssHooks[e]||Z.cssHooks[o],void 0===i?r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:l[e]:(a=typeof i,"string"===a&&(s=Vt.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(Z.css(t,e)),a="number"),null!=i&&i===i&&("number"!==a||Z.cssNumber[o]||(i+="px"),X.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var s,a,r,o=Z.camelCase(e);return e=Z.cssProps[o]||(Z.cssProps[o]=k(t.style,o)),r=Z.cssHooks[e]||Z.cssHooks[o],r&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=w(t,e,n)),"normal"===s&&e in Kt&&(s=Kt[e]),""===i||i?(a=parseFloat(s),i===!0||Z.isNumeric(a)?a||0:s):s}}),Z.each(["height","width"],function(t,e){Z.cssHooks[e]={get:function(t,i,n){return i?Wt.test(Z.css(t,"display"))&&0===t.offsetWidth?Z.swap(t,Yt,function(){return D(t,e,n)}):D(t,e,n):void 0},set:function(t,i,n){var s=n&&$t(t);return C(t,i,n?S(t,e,n,"border-box"===Z.css(t,"boxSizing",!1,s),s):0)}}}),Z.cssHooks.marginRight=x(X.reliableMarginRight,function(t,e){return e?Z.swap(t,{display:"inline-block"},w,[t,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(t,e){Z.cssHooks[t+e]={expand:function(i){for(var n=0,s={},a="string"==typeof i?i.split(" "):[i];4>n;n++)s[t+xt[n]+e]=a[n]||a[n-2]||a[0];return s}},Bt.test(t)||(Z.cssHooks[t+e].set=C)}),Z.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,s,a={},r=0;if(Z.isArray(e)){for(n=$t(t),s=e.length;s>r;r++)a[e[r]]=Z.css(t,e[r],!1,n);return a}return void 0!==i?Z.style(t,e,i):Z.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=A,A.prototype={constructor:A,init:function(t,e,i,n,s,a){this.elem=t,this.prop=i,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=a||(Z.cssNumber[i]?"":"px")},cur:function(){var t=A.propHooks[this.prop];return t&&t.get?t.get(this):A.propHooks._default.get(this)},run:function(t){var e,i=A.propHooks[this.prop];return this.options.duration?this.pos=e=Z.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=Z.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){Z.fx.step[t.prop]?Z.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Z.cssProps[t.prop]]||Z.cssHooks[t.prop])?Z.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Z.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Z.fx=A.prototype.init,Z.fx.step={};var Xt,Qt,Jt=/^(?:toggle|show|hide)$/,Zt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[I],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),s=Zt.exec(e),a=s&&s[3]||(Z.cssNumber[t]?"":"px"),r=(Z.cssNumber[t]||"px"!==a&&+n)&&Zt.exec(Z.css(i.elem,t)),o=1,l=20;if(r&&r[3]!==a){a=a||r[3],s=s||[],r=+n||1;do o=o||".5",r/=o,Z.style(i.elem,t,r+a);while(o!==(o=i.cur()/n)&&1!==o&&--l)}return s&&(r=i.start=+r||+n||0,i.unit=a,i.end=s[1]?r+(s[1]+1)*s[2]:+s[2]),i}]};Z.Animation=Z.extend(F,{tweener:function(t,e){Z.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,s=t.length;s>n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),Z.speed=function(t,e,i){var n=t&&"object"==typeof t?Z.extend({},t):{complete:i||!i&&e||Z.isFunction(t)&&t,duration:t,easing:i&&e||e&&!Z.isFunction(e)&&e};return n.duration=Z.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in Z.fx.speeds?Z.fx.speeds[n.duration]:Z.fx.speeds._default,null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){Z.isFunction(n.old)&&n.old.call(this),n.queue&&Z.dequeue(this,n.queue)},n},Z.fn.extend({fadeTo:function(t,e,i,n){return this.filter(kt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=Z.isEmptyObject(t),a=Z.speed(e,i,n),r=function(){var e=F(this,Z.extend({},t),a);(s||vt.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||a.queue===!1?this.each(r):this.queue(a.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",a=Z.timers,r=vt.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&te.test(s)&&n(r[s]);for(s=a.length;s--;)a[s].elem!==this||null!=t&&a[s].queue!==t||(a[s].anim.stop(i),e=!1,a.splice(s,1));!e&&i||Z.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=vt.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],a=Z.timers,r=n?n.length:0;for(i.finish=!0,Z.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;r>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),Z.each(["toggle","show","hide"],function(t,e){var i=Z.fn[e];Z.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(M(e,!0),t,n,s)}}),Z.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Z.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),Z.timers=[],Z.fx.tick=function(){var t,e=0,i=Z.timers;for(Xt=Z.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||Z.fx.stop(),Xt=void 0},Z.fx.timer=function(t){Z.timers.push(t),t()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Qt||(Qt=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Qt),Qt=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(t,e){return t=Z.fx?Z.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=Q.createElement("input"),e=Q.createElement("select"),i=e.appendChild(Q.createElement("option"));t.type="checkbox",X.checkOn=""!==t.value,X.optSelected=i.selected,e.disabled=!0,X.optDisabled=!i.disabled,t=Q.createElement("input"),t.value="t",t.type="radio",X.radioValue="t"===t.value}();var ne,se,ae=Z.expr.attrHandle;Z.fn.extend({attr:function(t,e){return mt(this,Z.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Z.removeAttr(this,t)})}}),Z.extend({attr:function(t,e,i){var n,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===St?Z.prop(t,e,i):(1===a&&Z.isXMLDoc(t)||(e=e.toLowerCase(),n=Z.attrHooks[e]||(Z.expr.match.bool.test(e)?se:ne)),void 0===i?n&&"get"in n&&null!==(s=n.get(t,e))?s:(s=Z.find.attr(t,e),null==s?void 0:s):null!==i?n&&"set"in n&&void 0!==(s=n.set(t,i,e))?s:(t.setAttribute(e,i+""),i):void Z.removeAttr(t,e))},removeAttr:function(t,e){var i,n,s=0,a=e&&e.match(pt);if(a&&1===t.nodeType)for(;i=a[s++];)n=Z.propFix[i]||i,Z.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!X.radioValue&&"radio"===e&&Z.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),se={set:function(t,e,i){return e===!1?Z.removeAttr(t,i):t.setAttribute(i,i),i}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ae[e]||Z.find.attr;ae[e]=function(t,e,n){var s,a;return n||(a=ae[e],ae[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,ae[e]=a),s}});var re=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(t,e){return mt(this,Z.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Z.propFix[t]||t]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,s,a,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return a=1!==r||!Z.isXMLDoc(t),a&&(e=Z.propFix[e]||e,s=Z.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||re.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),X.optSelected||(Z.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var oe=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(t){var e,i,n,s,a,r,o="string"==typeof t&&t,l=0,c=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).addClass(t.call(this,e,this.className))});if(o)for(e=(t||"").match(pt)||[];c>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(oe," "):" ")){for(a=0;s=e[a++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r=Z.trim(n),i.className!==r&&(i.className=r)}return this},removeClass:function(t){var e,i,n,s,a,r,o=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).removeClass(t.call(this,e,this.className))});if(o)for(e=(t||"").match(pt)||[];c>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(oe," "):"")){for(a=0;s=e[a++];)for(;n.indexOf(" "+s+" ")>=0;)n=n.replace(" "+s+" "," ");r=t?Z.trim(n):"",i.className!==r&&(i.className=r)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):Z.isFunction(t)?this.each(function(i){Z(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var e,n=0,s=Z(this),a=t.match(pt)||[];e=a[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else i!==St&&"boolean"!==i||(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(oe," ").indexOf(e)>=0)return!0;return!1}});var le=/\r/g;Z.fn.extend({val:function(t){var e,i,n,s=this[0];{if(arguments.length)return n=Z.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(s=n?t.call(this,i,Z(this).val()):t,null==s?s="":"number"==typeof s?s+="":Z.isArray(s)&&(s=Z.map(s,function(t){return null==t?"":t+""})),e=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))});if(s)return e=Z.valHooks[s.type]||Z.valHooks[s.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(le,""):null==i?"":i)}}}),Z.extend({valHooks:{option:{get:function(t){var e=Z.find.attr(t,"value");return null!=e?e:Z.trim(Z.text(t))}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,a="select-one"===t.type||0>s,r=a?null:[],o=a?s+1:n.length,l=0>s?o:a?s:0;o>l;l++)if(i=n[l],(i.selected||l===s)&&(X.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!Z.nodeName(i.parentNode,"optgroup"))){if(e=Z(i).val(),a)return e;r.push(e)}return r},set:function(t,e){for(var i,n,s=t.options,a=Z.makeArray(e),r=s.length;r--;)n=s[r],(n.selected=Z.inArray(n.value,a)>=0)&&(i=!0);return i||(t.selectedIndex=-1),a}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(t,e){return Z.isArray(e)?t.checked=Z.inArray(Z(t).val(),e)>=0:void 0}},X.checkOn||(Z.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),Z.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(t,e){Z.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),Z.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var ce=Z.now(),ue=/\?/;Z.parseJSON=function(t){return JSON.parse(t+"")},Z.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||Z.error("Invalid XML: "+t),e};var he,de,pe=/#.*$/,fe=/([?&])_=[^&]*/,ge=/^(.*?):[ \t]*([^\r\n]*)$/gm,me=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ve=/^(?:GET|HEAD)$/,be=/^\/\//,_e=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},we={},xe="*/".concat("*");try{de=location.href}catch(ke){de=Q.createElement("a"),de.href="",de=de.href}he=_e.exec(de.toLowerCase())||[],Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:de,type:"GET",isLocal:me.test(he[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?j(j(t,Z.ajaxSettings),e):j(Z.ajaxSettings,t)},ajaxPrefilter:O(ye),ajaxTransport:O(we),ajax:function(t,e){function i(t,e,i,r){var l,u,v,b,y,x=e;2!==_&&(_=2,o&&clearTimeout(o),n=void 0,a=r||"",w.readyState=t>0?4:0,l=t>=200&&300>t||304===t,i&&(b=L(h,w,i)),b=H(h,b,w,l),l?(h.ifModified&&(y=w.getResponseHeader("Last-Modified"),y&&(Z.lastModified[s]=y),y=w.getResponseHeader("etag"),y&&(Z.etag[s]=y)),204===t||"HEAD"===h.type?x="nocontent":304===t?x="notmodified":(x=b.state,u=b.data,v=b.error,l=!v)):(v=x,!t&&x||(x="error",0>t&&(t=0))),w.status=t,w.statusText=(e||x)+"",l?f.resolveWith(d,[u,x,w]):f.rejectWith(d,[w,x,v]),w.statusCode(m),m=void 0,c&&p.trigger(l?"ajaxSuccess":"ajaxError",[w,h,l?u:v]),g.fireWith(d,[w,x]),c&&(p.trigger("ajaxComplete",[w,h]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,s,a,r,o,l,c,u,h=Z.ajaxSetup({},e),d=h.context||h,p=h.context&&(d.nodeType||d.jquery)?Z(d):Z.event,f=Z.Deferred(),g=Z.Callbacks("once memory"),m=h.statusCode||{},v={},b={},_=0,y="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!r)for(r={};e=ge.exec(a);)r[e[1].toLowerCase()]=e[2];e=r[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return _||(t=b[i]=b[i]||t,v[t]=e),this},overrideMimeType:function(t){return _||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>_)for(e in t)m[e]=[m[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||y;return n&&n.abort(e),i(0,e),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,h.url=((t||h.url||de)+"").replace(pe,"").replace(be,he[1]+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=Z.trim(h.dataType||"*").toLowerCase().match(pt)||[""],null==h.crossDomain&&(l=_e.exec(h.url.toLowerCase()),h.crossDomain=!(!l||l[1]===he[1]&&l[2]===he[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(he[3]||("http:"===he[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Z.param(h.data,h.traditional)),R(ye,h,e,w),2===_)return w;c=h.global,c&&0===Z.active++&&Z.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ve.test(h.type),s=h.url,h.hasContent||(h.data&&(s=h.url+=(ue.test(s)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=fe.test(s)?s.replace(fe,"$1_="+ce++):s+(ue.test(s)?"&":"?")+"_="+ce++)),h.ifModified&&(Z.lastModified[s]&&w.setRequestHeader("If-Modified-Since",Z.lastModified[s]),Z.etag[s]&&w.setRequestHeader("If-None-Match",Z.etag[s])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&w.setRequestHeader("Content-Type",h.contentType),w.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+xe+"; q=0.01":""):h.accepts["*"]);for(u in h.headers)w.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(h.beforeSend.call(d,w,h)===!1||2===_))return w.abort();y="abort";for(u in{success:1,error:1,complete:1})w[u](h[u]);if(n=R(we,h,e,w)){w.readyState=1,c&&p.trigger("ajaxSend",[w,h]),h.async&&h.timeout>0&&(o=setTimeout(function(){w.abort("timeout")},h.timeout));try{_=1,n.send(v,i)}catch(x){if(!(2>_))throw x;i(-1,x)}}else i(-1,"No Transport");return w},getJSON:function(t,e,i){return Z.get(t,e,i,"json")},getScript:function(t,e){return Z.get(t,void 0,e,"script")}}),Z.each(["get","post"],function(t,e){Z[e]=function(t,i,n,s){return Z.isFunction(i)&&(s=s||n,n=i,i=void 0),Z.ajax({url:t,type:e,dataType:s,data:i,success:n})}}),Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Z.fn[e]=function(t){return this.on(e,t)}}),Z._evalUrl=function(t){return Z.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(t){var e;return Z.isFunction(t)?this.each(function(e){Z(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Z(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return Z.isFunction(t)?this.each(function(e){Z(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Z(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=Z.isFunction(t);return this.each(function(i){Z(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Z.expr.filters.visible=function(t){return!Z.expr.filters.hidden(t)};var Ce=/%20/g,Se=/\[\]$/,De=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;Z.param=function(t,e){var i,n=[],s=function(t,e){e=Z.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(t)||t.jquery&&!Z.isPlainObject(t))Z.each(t,function(){s(this.name,this.value)});else for(i in t)z(i,t[i],e,s);return n.join("&").replace(Ce,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Z.prop(this,"elements");return t?Z.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Z(this).is(":disabled")&&Ae.test(this.nodeName)&&!Te.test(t)&&(this.checked||!Ct.test(t))}).map(function(t,e){var i=Z(this).val();return null==i?null:Z.isArray(i)?Z.map(i,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:i.replace(De,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,Me={},Pe={0:200,1223:204},Ie=Z.ajaxSettings.xhr();t.ActiveXObject&&Z(t).on("unload",function(){for(var t in Me)Me[t]()}),X.cors=!!Ie&&"withCredentials"in Ie,X.ajax=Ie=!!Ie,Z.ajaxTransport(function(t){var e;return X.cors||Ie&&!t.crossDomain?{send:function(i,n){var s,a=t.xhr(),r=++Ee;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(delete Me[r],e=a.onload=a.onerror=null,"abort"===t?a.abort():"error"===t?n(a.status,a.statusText):n(Pe[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=e(),a.onerror=e("error"),e=Me[r]=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(o){if(e)throw o}},abort:function(){e&&e()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Z.globalEval(t),t}}}),Z.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Z.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,s){e=Z("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),Q.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Ne=[],Fe=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ne.pop()||Z.expando+"_"+ce++;return this[t]=!0,t}}),Z.ajaxPrefilter("json jsonp",function(e,i,n){var s,a,r,o=e.jsonp!==!1&&(Fe.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Fe.test(e.data)&&"data");return o||"jsonp"===e.dataTypes[0]?(s=e.jsonpCallback=Z.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Fe,"$1"+s):e.jsonp!==!1&&(e.url+=(ue.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||Z.error(s+" was not called"),r[0]},e.dataTypes[0]="json",a=t[s],t[s]=function(){r=arguments},n.always(function(){t[s]=a,e[s]&&(e.jsonpCallback=i.jsonpCallback,Ne.push(s)),r&&Z.isFunction(a)&&a(r[0]),r=a=void 0}),"script"):void 0}),Z.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||Q;var n=rt.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=Z.buildFragment([t],e,s),s&&s.length&&Z(s).remove(),Z.merge([],n.childNodes))};var Oe=Z.fn.load;Z.fn.load=function(t,e,i){if("string"!=typeof t&&Oe)return Oe.apply(this,arguments);var n,s,a,r=this,o=t.indexOf(" ");return o>=0&&(n=Z.trim(t.slice(o)),t=t.slice(0,o)),Z.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&Z.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){a=arguments,r.html(n?Z("<div>").append(Z.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){r.each(i,a||[t.responseText,e,t])}),this},Z.expr.filters.animated=function(t){return Z.grep(Z.timers,function(e){return t===e.elem}).length};var Re=t.document.documentElement;Z.offset={setOffset:function(t,e,i){var n,s,a,r,o,l,c,u=Z.css(t,"position"),h=Z(t),d={};"static"===u&&(t.style.position="relative"),o=h.offset(),a=Z.css(t,"top"),l=Z.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1,c?(n=h.position(),r=n.top,s=n.left):(r=parseFloat(a)||0,s=parseFloat(l)||0),Z.isFunction(e)&&(e=e.call(t,i,o)),null!=e.top&&(d.top=e.top-o.top+r),null!=e.left&&(d.left=e.left-o.left+s),"using"in e?e.using.call(t,d):h.css(d)}},Z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Z.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},a=n&&n.ownerDocument;if(a)return e=a.documentElement,Z.contains(e,n)?(typeof n.getBoundingClientRect!==St&&(s=n.getBoundingClientRect()),i=B(a),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===Z.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Z.nodeName(t[0],"html")||(n=t.offset()),n.top+=Z.css(t[0],"borderTopWidth",!0),n.left+=Z.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-Z.css(i,"marginTop",!0),left:e.left-n.left-Z.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Re;t&&!Z.nodeName(t,"html")&&"static"===Z.css(t,"position");)t=t.offsetParent;return t||Re})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;Z.fn[e]=function(s){return mt(this,function(e,s,a){var r=B(e);return void 0===a?r?r[i]:e[s]:void(r?r.scrollTo(n?t.pageXOffset:a,n?a:t.pageYOffset):e[s]=a)},e,s,arguments.length,null)}}),Z.each(["top","left"],function(t,e){Z.cssHooks[e]=x(X.pixelPosition,function(t,i){return i?(i=w(t,e),qt.test(i)?Z(t).position()[e]+"px":i):void 0})}),Z.each({Height:"height",Width:"width"},function(t,e){Z.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){Z.fn[n]=function(n,s){var a=arguments.length&&(i||"boolean"!=typeof n),r=i||(n===!0||s===!0?"margin":"border");return mt(this,function(e,i,n){var s;return Z.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?Z.css(e,i,r):Z.style(e,i,n,r)},e,a?n:void 0,a,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var je=t.jQuery,Le=t.$;return Z.noConflict=function(e){return t.$===Z&&(t.$=Le),e&&t.jQuery===Z&&(t.jQuery=je),Z},typeof e===St&&(t.jQuery=t.$=Z),Z}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(e,n){var s,a,r,o=e.nodeName.toLowerCase();return"area"===o?(s=e.parentNode,a=s.name,e.href&&a&&"map"===s.nodeName.toLowerCase()?(r=t("img[usemap='#"+a+"']")[0],!!r&&i(r)):!1):(/^(input|select|textarea|button|object)$/.test(o)?!e.disabled:"a"===o?e.href||n:n)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}function n(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=a(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",r)}function r(){t.datepicker._isDisabledDatepicker(v.inline?v.dpDiv.parent()[0]:v.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function o(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var e=t(this);return n&&"static"===e.css("position")?!1:s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:t(this[0].ownerDocument||document);
+},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var n=t.attr(i,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(i,!s)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){function n(e,i,n,a){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each(function(){t(this).css(a,n(this,e)+"px")})},t.fn["outer"+i]=function(e,s){return"number"!=typeof e?r["outer"+i].call(this,e):this.each(function(){t(this).css(a,n(this,e,!0,s)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,s=t(this[0]);s.length&&s[0]!==document;){if(i=s.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(n=parseInt(s.css("zIndex"),10),!isNaN(n)&&0!==n))return n;s=s.parent()}return 0}}),t.ui.plugin={add:function(e,i,n){var s,a=t.ui[e].prototype;for(s in n)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([i,n[s]])},call:function(t,e,i,n){var s,a=t.plugins[e];if(a&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<a.length;s++)t.options[a[s][0]]&&a[s][1].apply(t.element,i)}};var c=0,u=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,s,a;for(a=0;null!=(s=i[a]);a++)try{n=t._data(s,"events"),n&&n.remove&&t(s).triggerHandler("remove")}catch(r){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var s,a,r,o,l={},c=e.split(".")[0];return e=e.split(".")[1],s=c+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[c]=t[c]||{},a=t[c][e],r=t[c][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),o=new i,o.options=t.widget.extend({},o.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},s=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,a=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=a,e}}()):void(l[e]=n)}),r.prototype=t.widget.extend(o,{widgetEventPrefix:a?o.widgetEventPrefix||e:e},l,{constructor:r,namespace:c,widgetName:e,widgetFullName:s}),a?(t.each(a._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete a._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,n,s=u.call(arguments,1),a=0,r=s.length;r>a;a++)for(i in s[a])n=s[a][i],s[a].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var a="string"==typeof s,r=u.call(arguments,1),o=this;return a?this.each(function(){var i,a=t.data(this,n);return"instance"===s?(o=a,!1):a?t.isFunction(a[s])&&"_"!==s.charAt(0)?(i=a[s].apply(a,r),i!==a&&void 0!==i?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):(r.length&&(s=t.widget.extend.apply(null,[s].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(s||{}),e._init&&e._init()):t.data(this,n,new i(s,this))})),o}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,a,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(s=r[e]=t.widget.extend({},this.options[e]),a=0;a<n.length-1;a++)s[n[a]]=s[n[a]]||{},s=s[n[a]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,n){var s,a=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,r){function o(){return e||a.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):void 0}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?s.delegate(u,c,o):i.bind(c,o)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(i).undelegate(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var s,a,r=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,n),!(t.isFunction(r)&&r.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,a){"string"==typeof s&&(s={effect:s});var r,o=s?s===!0||"number"==typeof s?i:s.effect||i:e;s=s||{},"number"==typeof s&&(s={duration:s}),r=!t.isEmptyObject(s),s.complete=a,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[o]?n[e](s):o!==e&&n[o]?n[o](s.duration,s.easing,a):n.queue(function(i){t(this)[e](),a&&a.call(n[0]),i()})}});var h=(t.widget,!1);t(document).mouseup(function(){h=!1});t.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!h){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,s="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return n&&!s&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),h=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),h=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function e(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var s,a,r=Math.max,o=Math.abs,l=Math.round,c=/left|center|right/,u=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=n.children()[0];return t("body").append(n),e=a.offsetWidth,n.css("overflow","scroll"),i=a.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),s=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n||s?i.width():i.outerWidth(),height:n||s?i.height():i.outerHeight()}}},t.fn.position=function(s){if(!s||!s.of)return f.apply(this,arguments);s=t.extend({},s);var p,g,m,v,b,_,y=t(s.of),w=t.position.getWithinInfo(s.within),x=t.position.getScrollInfo(w),k=(s.collision||"flip").split(" "),C={};return _=n(y),y[0].preventDefault&&(s.at="left top"),g=_.width,m=_.height,v=_.offset,b=t.extend({},v),t.each(["my","at"],function(){var t,e,i=(s[this]||"").split(" ");1===i.length&&(i=c.test(i[0])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i[0]=c.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),C[this]=[t?t[0]:0,e?e[0]:0],s[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===s.at[0]?b.left+=g:"center"===s.at[0]&&(b.left+=g/2),"bottom"===s.at[1]?b.top+=m:"center"===s.at[1]&&(b.top+=m/2),p=e(C.at,g,m),b.left+=p[0],b.top+=p[1],this.each(function(){var n,c,u=t(this),h=u.outerWidth(),d=u.outerHeight(),f=i(this,"marginLeft"),_=i(this,"marginTop"),S=h+f+i(this,"marginRight")+x.width,D=d+_+i(this,"marginBottom")+x.height,T=t.extend({},b),A=e(C.my,u.outerWidth(),u.outerHeight());"right"===s.my[0]?T.left-=h:"center"===s.my[0]&&(T.left-=h/2),"bottom"===s.my[1]?T.top-=d:"center"===s.my[1]&&(T.top-=d/2),T.left+=A[0],T.top+=A[1],a||(T.left=l(T.left),T.top=l(T.top)),n={marginLeft:f,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[k[e]]&&t.ui.position[k[e]][i](T,{targetWidth:g,targetHeight:m,elemWidth:h,elemHeight:d,collisionPosition:n,collisionWidth:S,collisionHeight:D,offset:[p[0]+A[0],p[1]+A[1]],my:s.my,at:s.at,within:w,elem:u})}),s.using&&(c=function(t){var e=v.left-T.left,i=e+g-h,n=v.top-T.top,a=n+m-d,l={target:{element:y,left:v.left,top:v.top,width:g,height:m},element:{element:u,left:T.left,top:T.top,width:h,height:d},horizontal:0>i?"left":e>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};h>g&&o(e+i)<g&&(l.horizontal="center"),d>m&&o(n+a)<m&&(l.vertical="middle"),r(o(e),o(i))>r(o(n),o(a))?l.important="horizontal":l.important="vertical",s.using.call(this,t,l)}),u.offset(t.extend(T,{using:c}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,c=o+e.collisionWidth-a-s;e.collisionWidth>a?l>0&&0>=c?(i=t.left+l+e.collisionWidth-a-s,t.left+=l-i):c>0&&0>=l?t.left=s:l>c?t.left=s+a-e.collisionWidth:t.left=s:l>0?t.left+=l:c>0?t.left-=c:t.left=r(t.left-o,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,o=t.top-e.collisionPosition.marginTop,l=s-o,c=o+e.collisionHeight-a-s;e.collisionHeight>a?l>0&&0>=c?(i=t.top+l+e.collisionHeight-a-s,t.top+=l-i):c>0&&0>=l?t.top=s:l>c?t.top=s+a-e.collisionHeight:t.top=s:l>0?t.top+=l:c>0?t.top-=c:t.top=r(t.top-o,t.top)}},flip:{left:function(t,e){var i,n,s=e.within,a=s.offset.left+s.scrollLeft,r=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,h=c+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>u?(i=t.left+d+p+f+e.collisionWidth-r-a,(0>i||i<o(u))&&(t.left+=d+p+f)):h>0&&(n=t.left-e.collisionPosition.marginLeft+d+p+f-l,(n>0||o(n)<h)&&(t.left+=d+p+f))},top:function(t,e){var i,n,s=e.within,a=s.offset.top+s.scrollTop,r=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,h=c+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>u?(n=t.top+p+f+g+e.collisionHeight-r-a,(0>n||n<o(u))&&(t.top+=p+f+g)):h>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||o(i)<h)&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,s,r,o=document.getElementsByTagName("body")[0],l=document.createElement("div");e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(r in n)e.style[r]=n[r];e.appendChild(l),i=o||document.documentElement,i.insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",s=t(l).offset().left,a=s>10&&11>s,e.innerHTML="",i.removeChild(e)}()}();t.ui.position,t.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),a=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:a=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[n-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),a.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),s=n.uniqueId().attr("id");e.attr("aria-controls",s),n.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget),a=s[0]===n[0],r=a&&i.collapsible,o=r?t():s.next(),l=n.next(),c={oldHeader:n,oldPanel:l,newHeader:r?t():s,newPanel:o};e.preventDefault(),a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=r?!1:this.headers.index(s),this.active=a?t():s,this._toggle(c),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),a||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),s.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,s,a,r=this,o=0,l=t.css("box-sizing"),c=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},h=c&&u.down||u,d=function(){r._toggleComplete(i)};return"number"==typeof h&&(a=h),"string"==typeof h&&(s=h),s=s||h.easing||u.easing,a=a||h.duration||u.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:s,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(o+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-o),o=0)}})):e.animate(this.hideProps,a,s,d):t.animate(this.showProps,a,s,d)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var i,n,s,a,r=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:r=!1,n=this.previousFilter||"",s=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),s===n?a=!0:s=n+s,i=this._filterMenuItems(s),i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(s=String.fromCharCode(e.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(e,i),this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,i,n=this,s=this.options.icons.submenu,a=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.parent(),n=t("<span>").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),e=a.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);n._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),i.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),
+this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,s,a,r,o;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-n,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=e.outerHeight(),0>s?this.activeMenu.scrollTop(a+s):s+o>r&&this.activeMenu.scrollTop(a+s-r+o))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-s<0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+s>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(t.trim(t(this).text()))})}});t.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,s=this.element[0].nodeName.toLowerCase(),a="textarea"===s,r="input"===s;this.isMultiLine=a?!0:r?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[a||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var a=t.ui.keyCode;switch(s.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",s);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case a.UP:e=!0,this._keyEvent("previous",s);break;case a.DOWN:e=!0,this._keyEvent("next",s);break;case a.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case a.TAB:this.menu.active&&this.menu.select(s);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){var n,s;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(s=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),n=i.item.attr("aria-label")||s.value,void(n&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").text(i.label).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}});var d,p=(t.ui.autocomplete,"ui-button ui-widget ui-state-default ui-corner-all"),f="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",g=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},m=function(e){var i=e.name,n=e.form,s=t([]);return i&&(i=i.replace(/'/g,"\\'"),s=n?t(n).find("[name='"+i+"'][type=radio]"):t("[name='"+i+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})),s};t.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,g),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,i=this.options,n="checkbox"===this.type||"radio"===this.type,s=n?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(p).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){i.disabled||this===d&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){i.disabled||t(this).removeClass(s)}).bind("click"+this.eventNamespace,function(t){i.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),n&&this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return i.disabled?!1:void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var n=e.element[0];m(n).not(n).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return i.disabled?!1:(t(this).addClass("ui-state-active"),d=this,void e.document.one("mouseup",function(){d=null}))}).bind("mouseup"+this.eventNamespace,function(){return i.disabled?!1:void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return i.disabled?!1:void(e.keyCode!==t.ui.keyCode.SPACE&&e.keyCode!==t.ui.keyCode.ENTER||t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",i.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(p+" ui-state-active "+f).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),void(e&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")))):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?m(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var e=this.buttonElement.removeClass(f),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,s=n.primary&&n.secondary,a=[];n.primary||n.secondary?(this.options.text&&a.push("ui-button-text-icon"+(s?"s":n.primary?"-primary":"-secondary")),n.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(a.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):a.push("ui-button-text-only"),e.addClass(a.join(" "))}}),t.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction"),i=this.element.find(this.options.items),n=i.filter(":ui-button");i.not(":ui-button").button(),n.button("refresh"),this.buttons=i.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});t.ui.button;t.extend(t.ui,{datepicker:{version:"1.11.4"}});var v;t.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,a;n=e.nodeName.toLowerCase(),s="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),a=this._newInst(t(e),s),a.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?a(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[o?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,"showOn"),"focus"!==n&&"both"!==n||e.focus(this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:s,title:s}):s)),e[o?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,a=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},a.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,a){var r,l,c,u,h,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),o(d.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),v===s&&(v=null))},_enableDatepicker:function(e){var i,n,s=t(e),a=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||(n=s.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,s=t(e),a=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||(n=s.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,a,r,l,c=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.extend({},c.settings):this._get(c,i):null:(s=i||{},"string"==typeof i&&(s={},s[i]=n),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),o(c.settings,s),null!==r&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,r)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,s,a=t.datepicker._getInst(e.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv),s[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,s[0]),i=t.datepicker._get(a,"onSelect"),i?(n=t.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,s=t.datepicker._getInst(e.target);return t.datepicker._get(s,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">n||!i||i.indexOf(n)>-1):void 0},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(s){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,s,a,r,l,c,u;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),s=t.datepicker._get(i,"beforeShow"),a=s?s.apply(e,[e,i]):{},a!==!1&&(o(i.settings,a),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),l=t.datepicker._checkOffset(i,l,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(c=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",n(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?i.dpDiv.show(c,t.datepicker._get(i,"showOptions"),u):i.dpDiv[c||"show"](c?u:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,v=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),s=n[1],a=17,o=e.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&r.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&e.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",a*s+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,s,a,r=this._curInst;!r||e&&r!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,a=this._get(r,"onClose"),a&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),
+this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i+("M"===n?this._get(a,"showCurrentAtPos"):0),n),this._updateDatepicker(a))},_gotoToday:function(e){var i,n=t(e),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(e,i,n,s){var a,r=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||(a=this._getInst(r[0]),a.selectedDay=a.currentDay=t("a",s).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),n=this._get(a,"onSelect"),n?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,a=this._get(e,"altField");a&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(a).each(function(){t(this).val(s)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var s,a,r,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,_=!1,y=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},w=function(t){var e=y(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s="y"===t?n:1,a=new RegExp("^\\d{"+s+","+n+"}"),r=i.substring(l).match(a);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},x=function(e,n,s){var a=-1,r=t.map(y(e)?s:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(a=e[0],l+=n.length,!1):void 0}),-1!==a)return a+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<e.length;s++)if(_)"'"!==e.charAt(s)||y("'")?k():_=!1;else switch(e.charAt(s)){case"d":v=w("d");break;case"D":x("D",h,d);break;case"o":b=w("o");break;case"m":m=w("m");break;case"M":m=x("M",p,f);break;case"y":g=w("y");break;case"@":o=new Date(w("@")),g=o.getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"!":o=new Date((w("!")-this._ticksTo1970)/1e4),g=o.getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"'":y("'")?k():_=!0;break;default:k()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=g?0:-100)),b>-1)for(m=1,v=b;;){if(a=this._getDaysInMonth(g,m-1),a>=v)break;m++,v-=a}if(o=this._daylightSavingAdjust(new Date(g,m-1,v)),o.getFullYear()!==g||o.getMonth()+1!==m||o.getDate()!==v)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return l(t)?n[e]:i[e]},h="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?h+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":h+=c("d",e.getDate(),2);break;case"D":h+=u("D",e.getDay(),s,a);break;case"o":h+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",e.getMonth()+1,2);break;case"M":h+=u("M",e.getMonth(),r,o);break;case"y":h+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i="",n=!1,s=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),a=s,r=this._getFormatConfig(t);try{a=this.parseDate(i,n,r)||s}catch(o){n=e?"":n}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=n?a.getDate():0,t.currentMonth=n?a.getMonth():0,t.currentYear=n?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(n){}for(var s=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=s.getFullYear(),r=s.getMonth(),o=s.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,c=l.exec(i);c;){switch(c[2]||"d"){case"d":case"D":o+=parseInt(c[1],10);break;case"w":case"W":o+=7*parseInt(c[1],10);break;case"m":case"M":r+=parseInt(c[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(a,r));break;case"y":case"Y":a+=parseInt(c[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(a,r))}c=l.exec(i)}return new Date(a,r,o)},r=null==i||""===i?n:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?n:s(i):new Date(i.getTime());return r=r&&"Invalid Date"===r.toString()?n:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,a=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),s===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,s,a,r,o,l,c,u,h,d,p,f,g,m,v,b,_,y,w,x,k,C,S,D,T,A,E,M,P,I,N,F,O,R,j,L,H,z=new Date,B=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth(),z.getDate())),q=this._get(t,"isRTL"),$=this._get(t,"showButtonPanel"),W=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),V=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),K=this._get(t,"stepMonths"),G=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-Y,tt=t.drawYear;if(0>Z&&(Z+=12,tt--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-V[0]*V[1]+1,J.getDate())),e=Q&&Q>e?Q:e;this._daylightSavingAdjust(new Date(tt,Z,1))>e;)Z--,0>Z&&(Z=11,tt--);for(t.drawMonth=Z,t.drawYear=tt,i=this._get(t,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Z-K,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"e":"w")+"'>"+i+"</span></a>":W?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"e":"w")+"'>"+i+"</span></a>",s=this._get(t,"nextText"),s=U?this.formatDate(s,this._daylightSavingAdjust(new Date(tt,Z+K,1)),this._getFormatConfig(t)):s,a=this._canAdjustMonth(t,1,tt,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"w":"e")+"'>"+s+"</span></a>":W?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"w":"e")+"'>"+s+"</span></a>",r=this._get(t,"currentText"),o=this._get(t,"gotoCurrent")&&t.currentDay?X:B,r=U?this.formatDate(r,o,this._getFormatConfig(t)):r,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",c=$?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(q?l:"")+(this._isInRange(t,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(q?"":l)+"</div>":"",u=parseInt(this._get(t,"firstDay"),10),u=isNaN(u)?0:u,h=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),y="",x=0;x<V[0];x++){for(k="",this.maxRows=4,C=0;C<V[1];C++){if(S=this._daylightSavingAdjust(new Date(tt,Z,t.selectedDay)),D=" ui-corner-all",T="",G){if(T+="<div class='ui-datepicker-group",V[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",D=" ui-corner-"+(q?"right":"left");break;case V[1]-1:T+=" ui-datepicker-group-last",D=" ui-corner-"+(q?"left":"right");break;default:T+=" ui-datepicker-group-middle",D=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===x?q?a:n:"")+(/all|right/.test(D)&&0===x?q?n:a:"")+this._generateMonthYearHeader(t,Z,tt,Q,J,x>0||C>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)E=(w+u)%7,A+="<th scope='col'"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[E]+"'>"+p[E]+"</span></th>";for(T+=A+"</tr></thead><tbody>",M=this._getDaysInMonth(tt,Z),tt===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),P=(this._getFirstDayOfMonth(tt,Z)-u+7)%7,I=Math.ceil((P+M)/7),N=G&&this.maxRows>I?this.maxRows:I,this.maxRows=N,F=this._daylightSavingAdjust(new Date(tt,Z,1-P)),O=0;N>O;O++){for(T+="<tr>",R=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(F)+"</td>":"",w=0;7>w;w++)j=m?m.apply(t.input?t.input[0]:null,[F]):[!0,""],L=F.getMonth()!==Z,H=L&&!b||!j[0]||Q&&Q>F||J&&F>J,R+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(F.getTime()===S.getTime()&&Z===t.selectedMonth&&t._keyEvent||_.getTime()===F.getTime()&&_.getTime()===S.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!v?"":" "+j[1]+(F.getTime()===X.getTime()?" "+this._currentClass:"")+(F.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(L&&!v||!j[2]?"":" title='"+j[2].replace(/'/g,"&#39;")+"'")+(H?"":" data-handler='selectDay' data-event='click' data-month='"+F.getMonth()+"' data-year='"+F.getFullYear()+"'")+">"+(L&&!v?"&#xa0;":H?"<span class='ui-state-default'>"+F.getDate()+"</span>":"<a class='ui-state-default"+(F.getTime()===B.getTime()?" ui-state-highlight":"")+(F.getTime()===X.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#'>"+F.getDate()+"</a>")+"</td>",F.setDate(F.getDate()+1),F=this._daylightSavingAdjust(F);T+=R+"</tr>"}Z++,Z>11&&(Z=0,tt++),T+="</tbody></table>"+(G?"</div>"+(V[0]>0&&C===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),k+=T}y+=k}return y+=c,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,n,s,a,r,o){var l,c,u,h,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",y="";if(a||!m)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;12>u;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(y+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+o[u]+"</option>");y+="</select>"}if(b||(_+=y+(!a&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",a||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(h[0]),g=Math.max(f,p(h[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),b&&(_+=(!a&&m&&v?"":"&#xa0;")+y),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),s=t.drawMonth+("M"===i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,a)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&i>e?i:e;return n&&s>n?n:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,n+(0>e?e:s[0]*s[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),r=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||e.getTime()>=s.getTime())&&(!a||e.getTime()<=a.getTime())&&(!r||e.getFullYear()>=r)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.11.4";t.datepicker;t.widget("ui.draggable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return this._blurActiveElement(e),this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=this.document[0];if(this.handleElement.is(e.target))try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&t(i.activeElement).blur()}catch(n){}},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._normalizeRightBottom(),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(this._trigger("drag",e,n)===!1)return this._mouseUp({}),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper),s=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options,a=this.document[0];return this.relativeContainer=null,s.containment?"window"===s.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,t(a).width()-this.helperProportions.width-this.margins.left,(t(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),i=t(s.containment),n=i[0],void(n&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},
+drag:function(e,i,n){t.each(n.sortables,function(){var s=!1,a=this;a.positionAbs=n.positionAbs,a.helperProportions=n.helperProportions,a.offset.click=n.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,t.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&t.contains(a.element[0],this.element[0])&&(s=!1),s})),s?(a.isOver||(a.isOver=1,n._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},e.target=a.currentItem[0],a._mouseCapture(e,!0),a._mouseStart(e,!0,!0),a.offset.click.top=n.offset.click.top,a.offset.click.left=n.offset.click.left,a.offset.parent.left-=n.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=n.offset.parent.top-a.offset.parent.top,n._trigger("toSortable",e),n.dropped=a.element,t.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,a.fromOutside=n),a.currentItem&&(a._mouseDrag(e),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",e,a._uiHash(a)),a._mouseStop(e,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),a=n.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),a=n.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,a=!1,r=n.scrollParentNotHidden[0],o=n.document[0];r!==o&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-e.pageY<s.scrollSensitivity?r.scrollTop=a=r.scrollTop+s.scrollSpeed:e.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-e.pageX<s.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+s.scrollSpeed:e.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(o).scrollTop()<s.scrollSensitivity?a=t(o).scrollTop(t(o).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(o).scrollTop())<s.scrollSensitivity&&(a=t(o).scrollTop(t(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(o).scrollLeft()<s.scrollSensitivity?a=t(o).scrollLeft(t(o).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(o).scrollLeft())<s.scrollSensitivity&&(a=t(o).scrollLeft(t(o).scrollLeft()+s.scrollSpeed)))),a!==!1&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var s=n.options;n.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){var s,a,r,o,l,c,u,h,d,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,b=i.offset.top,_=b+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)l=n.snapElements[d].left-n.margins.left,c=l+n.snapElements[d].width,u=n.snapElements[d].top-n.margins.top,h=u+n.snapElements[d].height,l-g>v||m>c+g||u-g>_||b>h+g||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(u-_)<=g,a=Math.abs(h-b)<=g,r=Math.abs(l-v)<=g,o=Math.abs(c-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=s||a||r||o,"outer"!==f.snapMode&&(s=Math.abs(u-b)<=g,a=Math.abs(h-_)<=g,r=Math.abs(l-m)<=g,o=Math.abs(c-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(s||a||r||o||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=s||a||r||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,a=n.options,r=t.makeArray(t(a.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});r.length&&(s=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",s+e)}),this.css("zIndex",s+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var s=t(i.helper),a=n.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}});t.ui.draggable;t.widget("ui.resizable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0?!0:(e[n]=1,s=e[n]>0,e[n]=0,s)},_create:function(){var e,i,n,s,a,r=this,o=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!o.aspectRatio,aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)n=t.trim(e[i]),a="ui-resizable-"+n,s=t("<div class='ui-resizable-handle "+a+"'></div>"),s.css({zIndex:o.zIndex}),"se"===n&&s.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(s);this._renderAxis=function(e){var i,n,s,a;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){r.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=s&&s[1]?s[1]:"se")}),o.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(t(this).removeClass("ui-resizable-autohide"),r._handles.show())}).mouseleave(function(){o.disabled||r.resizing||(t(this).addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)n=t(this.handles[i])[0],(n===e.target||t.contains(n,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,n,s,a=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),a.containment&&(i+=t(a.containment).scrollLeft()||0,n+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),r.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,s=this.originalMousePosition,a=this.axis,r=e.pageX-s.left||0,o=e.pageY-s.top||0,l=this._change[a];return this._updatePrevProperties(),l?(i=l.apply(this,[e,r,o]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,n,s,a,r,o,l,c=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),s=n&&this._hasScroll(i[0],"left")?0:u.sizeDiff.height,a=n?0:u.sizeDiff.width,r={width:u.helper.width()-a,height:u.helper.height()-s},o=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,l=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(t.extend(r,{top:l,left:o})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,s,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),n>a.minHeight&&(a.minHeight=n),i<a.maxWidth&&(a.maxWidth=i),s<a.maxHeight&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,o=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(i),u=/nw|ne|n/.test(i);return a&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),a&&c&&(t.left=o-e.minWidth),n&&c&&(t.left=o-e.maxWidth),r&&u&&(t.top=l-e.minHeight),s&&u&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseInt(n[e],10)||0,i[e]+=parseInt(s[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,n=this.originalPosition;return{left:n.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize,s=this.originalPosition;return{top:s.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,a=s.length&&/textarea/i.test(s[0].nodeName),r=a&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,o=a?0:i.sizeDiff.width,l={width:i.size.width-o,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,u&&c?{top:u,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,s,a,r,o,l=t(this).resizable("instance"),c=l.options,u=l.element,h=c.containment,d=h instanceof t?h.get(0):/parent/.test(h)?u.parent().get(0):h;d&&(l.containerElement=t(d),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){i[t]=l._num(e.css("padding"+n))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,a=l.containerSize.width,r=l._hasScroll(d,"left")?d.scrollWidth:a,o=l._hasScroll(d)?d.scrollHeight:s,l.parentData={element:d,left:n.left,top:n.top,width:r,height:o}))},resize:function(e){var i,n,s,a,r=t(this).resizable("instance"),o=r.options,l=r.containerOffset,c=r.position,u=r._aspectRatio||e.shiftKey,h={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-h.left),u&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=o.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),u&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),a=/relative|absolute/.test(r.containerElement.css("position")),s&&a?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-h.left:r.offset.left-l.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-h.top:r.offset.top-l.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,u&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,u&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.containerPosition,a=e.containerElement,r=t(e.helper),o=r.offset(),l=r.outerWidth()-e.sizeDiff.width,c=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(a.css("position"))&&t(this).css({left:o.left-s.left-n.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(a.css("position"))&&t(this).css({left:o.left-s.left-n.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})},resize:function(e,i){var n=t(this).resizable("instance"),s=n.options,a=n.originalSize,r=n.originalPosition,o={height:n.size.height-a.height||0,width:n.size.width-a.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};t(s.alsoResize).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),s={},a=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(n[e]||0)+(o[e]||0);i&&i>=0&&(s[e]=i||null)}),e.css(s)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,s=i.size,a=i.originalSize,r=i.originalPosition,o=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,u=l[1]||1,h=Math.round((s.width-a.width)/c)*c,d=Math.round((s.height-a.height)/u)*u,p=a.width+h,f=a.height+d,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,b=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=c),b&&(f+=u),g&&(p-=c),m&&(f-=u),/^(se|s|e)$/.test(o)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.left=r.left-h):((0>=f-u||0>=p-c)&&(e=i._getPaddingPlusBorderDimensions(this)),f-u>0?(i.size.height=f,i.position.top=r.top-d):(f=u-e.height,i.size.height=f,i.position.top=r.top+a.height-f),p-c>0?(i.size.width=p,i.position.left=r.left-h):(p=c-e.width,i.size.width=p,i.position.left=r.left+a.width-p))}});t.ui.resizable,t.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i,n=this;if(this._isOpen&&this._trigger("beforeClose",e)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{i=this.document[0].activeElement,i&&"body"!==i.nodeName.toLowerCase()&&t(i).blur()}catch(s){}this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),a=Math.max.apply(null,s);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),s=i.filter(":last");e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){s.focus()}),e.preventDefault()):(this._delay(function(){n.focus()}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var s,a;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),s=n.click,n.click=function(){s.apply(e.element[0],arguments)},a={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("<button></button>",n).button(a).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(s))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(s,a){var r=a.offset.left-i.document.scrollLeft(),o=a.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(o>=0?"+":"")+o,of:i.window},t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,s=n.resizable,a=this.uiDialog.css("position"),r="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:r,start:function(n,s){t(this).addClass("ui-dialog-resizing"),
+i._blockFrames(),i._trigger("resizeStart",n,e(s))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(s,a){var r=i.uiDialog.offset(),o=r.left-i.document.scrollLeft(),l=r.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(l>=0?"+":"")+l,of:i.window},t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,e(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,s={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,n,s=this.uiDialog;"dialogClass"===t&&s.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=s.is(":data(ui-draggable)"),i&&!e&&s.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(n=s.is(":data(ui-resizable)"),n&&!e&&s.resizable("destroy"),n&&"string"==typeof e&&s.resizable("option","handles",e),n||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}});t.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,s=!1;return n&&(n.currentItem||n.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(s=!0,!1):void 0}),s?!1:this.accept.call(this.element[0],n.currentItem||n.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,n,s){if(!i.offset)return!1;var a=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,o=a+e.helperProportions.width,l=r+e.helperProportions.height,c=i.offset.left,u=i.offset.top,h=c+i.proportions().width,d=u+i.proportions().height;switch(n){case"fit":return a>=c&&h>=o&&r>=u&&d>=l;case"intersect":return c<a+e.helperProportions.width/2&&o-e.helperProportions.width/2<h&&u<r+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return t(s.pageY,u,i.proportions().height)&&t(s.pageX,c,i.proportions().width);case"touch":return(r>=u&&d>=r||l>=u&&d>=l||u>r&&l>d)&&(a>=c&&h>=a||o>=c&&h>=o||c>a&&o>h);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n,s,a=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,o=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<a.length;n++)if(!(a[n].options.disabled||e&&!a[n].accept.call(a[n].element[0],e.currentItem||e.element))){for(s=0;s<o.length;s++)if(o[s]===a[n].element[0]){a[n].proportions().height=0;continue t}a[n].visible="none"!==a[n].element.css("display"),a[n].visible&&("mousedown"===r&&a[n]._activate.call(a[n],i),a[n].offset=a[n].element.offset(),a[n].proportions({width:a[n].element[0].offsetWidth,height:a[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,a,r=t.ui.intersect(e,this,this.options.tolerance,i),o=!r&&this.isover?"isout":r&&!this.isover?"isover":null;o&&(this.options.greedy&&(s=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===s}),a.length&&(n=t(a[0]).droppable("instance"),n.greedyChild="isover"===o)),n&&"isover"===o&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[o]=!0,this["isout"===o?"isover":"isout"]=!1,this["isover"===o?"_over":"_out"].call(this,i),n&&"isout"===o&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}};var b=(t.ui.droppable,"ui-effects-"),_=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var n=h[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=c(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,s){var a,r=s.re.exec(e),o=r&&s.parse(r),l=s.space||"rgba";return o?(a=i[l](o),i[u[l].cache]=a[u[l].cache],n=i._rgba=a._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&&t.extend(n,a.transparent),i):a[e]}function s(t,e,i){return i=(i+1)%1,1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}var a,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",o=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],c=t.Color=function(e,i,n,s){return new t.Color.fn.parse(e,i,n,s)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=c.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),c.fn=t.extend(c.prototype,{parse:function(s,r,o,l){if(s===e)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=t(s).css(r),r=e);var h=this,d=t.type(s),p=this._rgba=[];return r!==e&&(s=[s,r,o,l],d="array"),"string"===d?this.parse(n(s)||a._default):"array"===d?(f(u.rgba.props,function(t,e){p[e.idx]=i(s[e.idx],e)}),this):"object"===d?(s instanceof c?f(u,function(t,e){s[e.cache]&&(h[e.cache]=s[e.cache].slice())}):f(u,function(e,n){var a=n.cache;f(n.props,function(t,e){if(!h[a]&&n.to){if("alpha"===t||null==s[t])return;h[a]=n.to(h._rgba)}h[a][e.idx]=i(s[t],e,!0)}),h[a]&&t.inArray(null,h[a].slice(0,3))<0&&(h[a][3]=1,n.from&&(h._rgba=n.from(h[a])))}),this):void 0},is:function(t){var e=c(t),i=!0,n=this;return f(u,function(t,s){var a,r=e[s.cache];return r&&(a=n[s.cache]||s.to&&s.to(n._rgba)||[],f(s.props,function(t,e){return null!=r[e.idx]?i=r[e.idx]===a[e.idx]:void 0})),i}),i},_space:function(){var t=[],e=this;return f(u,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=c(t),s=n._space(),a=u[s],r=0===this.alpha()?c("transparent"):this,o=r[a.cache]||a.to(r._rgba),l=o.slice();return n=n[a.cache],f(a.props,function(t,s){var a=s.idx,r=o[a],c=n[a],u=h[s.type]||{};null!==c&&(null===r?l[a]=c:(u.mod&&(c-r>u.mod/2?r+=u.mod:r-c>u.mod/2&&(r-=u.mod)),l[a]=i((c-r)*e+r,s)))}),this[s](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),s=c(e)._rgba;return c(t.map(i,function(t,e){return(1-n)*s[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),c.fn.parse.prototype=c.fn,u.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,a=t[2]/255,r=t[3],o=Math.max(n,s,a),l=Math.min(n,s,a),c=o-l,u=o+l,h=.5*u;return e=l===o?0:n===o?60*(s-a)/c+360:s===o?60*(a-n)/c+120:60*(n-s)/c+240,i=0===c?0:.5>=h?c/u:c/(2-u),[Math.round(e)%360,i,h,null==r?1:r]},u.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],a=t[3],r=.5>=n?n*(1+i):n+i-n*i,o=2*n-r;return[Math.round(255*s(o,r,e+1/3)),Math.round(255*s(o,r,e)),Math.round(255*s(o,r,e-1/3)),a]},f(u,function(n,s){var a=s.props,r=s.cache,l=s.to,u=s.from;c.fn[n]=function(n){if(l&&!this[r]&&(this[r]=l(this._rgba)),n===e)return this[r].slice();var s,o=t.type(n),h="array"===o||"object"===o?n:arguments,d=this[r].slice();return f(a,function(t,e){var n=h["object"===o?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),u?(s=c(u(d)),s[r]=d,s):c(d)},f(a,function(e,i){c.fn[e]||(c.fn[e]=function(s){var a,r=t.type(s),l="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[l](),u=c[i.idx];return"undefined"===r?u:("function"===r&&(s=s.call(this,u),r=t.type(s)),null==s&&i.empty?this:("string"===r&&(a=o.exec(s),a&&(s=u+parseFloat(a[2])*("+"===a[1]?1:-1))),c[i.idx]=s,this[l](c)))})})}),c.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,s){var a,r,o="";if("transparent"!==s&&("string"!==t.type(s)||(a=n(s)))){if(s=c(a||s),!d.rgba&&1!==s._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===o||"transparent"===o)&&r&&r.style;)try{o=t.css(r,"backgroundColor"),r=r.parentNode}catch(l){}s=s.blend(o&&"transparent"!==o?o:"_default")}s=s.toRgbaString()}try{e.style[i]=s}catch(l){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=c(e.elem,i),e.end=c(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},c.hook(r),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(_),function(){function e(e){var i,n,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(s&&s.length&&s[0]&&s[s[0]])for(n=s.length;n--;)i=s[n],"string"==typeof s[i]&&(a[t.camelCase(i)]=s[i]);else for(i in s)"string"==typeof s[i]&&(a[i]=s[i]);return a}function i(e,i){var n,a,r={};for(n in i)a=i[n],e[n]!==a&&(s[n]||!t.fx.step[n]&&isNaN(parseFloat(a))||(r[n]=a));return r}var n=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(_.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(s,a,r,o){var l=t.speed(a,r,o);return this.queue(function(){var a,r=t(this),o=r.attr("class")||"",c=l.children?r.find("*").addBack():r;c=c.map(function(){var i=t(this);return{el:i,start:e(this)}}),a=function(){t.each(n,function(t,e){s[e]&&r[e+"Class"](s[e])})},a(),c=c.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),r.attr("class",o),c=c.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,c.get()).done(function(){a(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(r[0])})})},t.fn.extend({addClass:function(e){return function(i,n,s,a){return n?t.effects.animateClass.call(this,{add:i},n,s,a):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,s,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,s,a):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,s,a,r){return"boolean"==typeof n||void 0===n?s?t.effects.animateClass.call(this,n?{add:i}:{remove:i},s,a,r):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,s,a)}}(t.fn.toggleClass),switchClass:function(e,i,n,s,a){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,a)}})}(),function(){function e(e,i,n,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),t.isFunction(n)&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"==typeof e&&!e.effect:!0}t.extend(t.effects,{version:"1.11.4",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(b+e[i],t[0].style[e[i]])},restore:function(t,e){var i,n;for(n=0;n<e.length;n++)null!==e[n]&&(i=t.data(b+e[n]),void 0===i&&(i=""),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(r){a=document.body}return e.wrap(n),(e[0]===a||t.contains(e[0],a))&&t(a).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){var a=e.cssUnit(i);a[0]>0&&(s[i]=a[0]*n+a[1])}),s}}),t.fn.extend({effect:function(){function i(e){function i(){t.isFunction(a)&&a.call(s[0]),t.isFunction(e)&&e()}var s=t(this),a=n.complete,o=n.mode;(s.is(":hidden")?"hide"===o:"show"===o)?(s[o](),i()):r.call(s[0],n,i)}var n=e.apply(this,arguments),s=n.mode,a=n.queue,r=t.effects.effect[n.effect];return t.fx.off||!r?s?this[s](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):a===!1?this.each(i):this.queue(a||"fx",i)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}();t.effects,t.effects.effect.blind=function(e,i){var n,s,a,r=t(this),o=/up|down|vertical/,l=/up|left|vertical|horizontal/,c=["position","top","bottom","left","right","height","width"],u=t.effects.setMode(r,e.mode||"hide"),h=e.direction||"up",d=o.test(h),p=d?"height":"width",f=d?"top":"left",g=l.test(h),m={},v="show"===u;r.parent().is(".ui-effects-wrapper")?t.effects.save(r.parent(),c):t.effects.save(r,c),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),s=n[p](),a=parseFloat(n.css(f))||0,m[p]=v?s:0,g||(r.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),m[f]=v?a:s+a),v&&(n.css(p,0),g||n.css(f,a+s)),n.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===u&&r.hide(),t.effects.restore(r,c),t.effects.removeWrapper(r),i()}})},t.effects.effect.bounce=function(e,i){var n,s,a,r=t(this),o=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"effect"),c="hide"===l,u="show"===l,h=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(u||c?1:0),g=e.duration/f,m=e.easing,v="up"===h||"down"===h?"top":"left",b="up"===h||"left"===h,_=r.queue(),y=_.length;for((u||c)&&o.push("opacity"),t.effects.save(r,o),r.show(),t.effects.createWrapper(r),d||(d=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a={opacity:1},a[v]=0,r.css("opacity",0).css(v,b?2*-d:2*d).animate(a,g,m)),c&&(d/=Math.pow(2,p-1)),a={},a[v]=0,n=0;p>n;n++)s={},s[v]=(b?"-=":"+=")+d,r.animate(s,g,m).animate(a,g,m),d=c?2*d:d/2;c&&(s={opacity:0},s[v]=(b?"-=":"+=")+d,r.animate(s,g,m)),r.queue(function(){c&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}),y>1&&_.splice.apply(_,[1,0].concat(_.splice(y,f+1))),r.dequeue()},t.effects.effect.clip=function(e,i){var n,s,a,r=t(this),o=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"hide"),c="show"===l,u=e.direction||"vertical",h="vertical"===u,d=h?"height":"width",p=h?"top":"left",f={};t.effects.save(r,o),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),s="IMG"===r[0].tagName?n:r,a=s[d](),c&&(s.css(d,0),s.css(p,a/2)),f[d]=c?a:0,f[p]=c?0:a/2,s.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){c||r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}})},t.effects.effect.drop=function(e,i){var n,s=t(this),a=["position","top","bottom","left","right","opacity","height","width"],r=t.effects.setMode(s,e.mode||"hide"),o="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l?"pos":"neg",h={opacity:o?1:0};t.effects.save(s,a),s.show(),t.effects.createWrapper(s),n=e.distance||s["top"===c?"outerHeight":"outerWidth"](!0)/2,o&&s.css("opacity",0).css(c,"pos"===u?-n:n),h[c]=(o?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+n,s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&s.hide(),t.effects.restore(s,a),t.effects.removeWrapper(s),i()}})},t.effects.effect.explode=function(e,i){function n(){_.push(this),_.length===h*d&&s()}function s(){p.css({visibility:"visible"}),t(_).remove(),g||p.hide(),i()}var a,r,o,l,c,u,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=h,p=t(this),f=t.effects.setMode(p,e.mode||"hide"),g="show"===f,m=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),b=Math.ceil(p.outerHeight()/h),_=[];for(a=0;h>a;a++)for(l=m.top+a*b,u=a-(h-1)/2,r=0;d>r;r++)o=m.left+r*v,c=r-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*v,top:-a*b}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:b,left:o+(g?c*v:0),top:l+(g?u*b:0),opacity:g?0:1}).animate({left:o+(g?0:c*v),top:l+(g?0:u*b),opacity:g?1:0},e.duration||500,e.easing,n)},t.effects.effect.fade=function(e,i){var n=t(this),s=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:s},{queue:!1,duration:e.duration,easing:e.easing,complete:i})},t.effects.effect.fold=function(e,i){var n,s,a=t(this),r=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(a,e.mode||"hide"),l="show"===o,c="hide"===o,u=e.size||15,h=/([0-9]+)%/.exec(u),d=!!e.horizFirst,p=l!==d,f=p?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(a,r),a.show(),n=t.effects.createWrapper(a).css({overflow:"hidden"}),s=p?[n.width(),n.height()]:[n.height(),n.width()],h&&(u=parseInt(h[1],10)/100*s[c?0:1]),l&&n.css(d?{height:0,width:u}:{height:u,width:0}),m[f[0]]=l?s[0]:u,v[f[1]]=l?s[1]:0,n.animate(m,g,e.easing).animate(v,g,e.easing,function(){c&&a.hide(),t.effects.restore(a,r),t.effects.removeWrapper(a),i()})},t.effects.effect.highlight=function(e,i){var n=t(this),s=["backgroundImage","backgroundColor","opacity"],a=t.effects.setMode(n,e.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===a&&(r.opacity=0),t.effects.save(n,s),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&n.hide(),t.effects.restore(n,s),i()}})},t.effects.effect.size=function(e,i){var n,s,a,r=t(this),o=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],c=["width","height","overflow"],u=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(r,e.mode||"effect"),f=e.restore||"effect"!==p,g=e.scale||"both",m=e.origin||["middle","center"],v=r.css("position"),b=f?o:l,_={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),n={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===e.mode&&"show"===p?(r.from=e.to||_,r.to=e.from||n):(r.from=e.from||("show"===p?_:n),r.to=e.to||("hide"===p?_:n)),a={from:{y:r.from.height/n.height,x:r.from.width/n.width},to:{y:r.to.height/n.height,x:r.to.width/n.width}},"box"!==g&&"both"!==g||(a.from.y!==a.to.y&&(b=b.concat(h),r.from=t.effects.setTransition(r,h,a.from.y,r.from),r.to=t.effects.setTransition(r,h,a.to.y,r.to)),a.from.x!==a.to.x&&(b=b.concat(d),r.from=t.effects.setTransition(r,d,a.from.x,r.from),r.to=t.effects.setTransition(r,d,a.to.x,r.to))),"content"!==g&&"both"!==g||a.from.y!==a.to.y&&(b=b.concat(u).concat(c),r.from=t.effects.setTransition(r,u,a.from.y,r.from),r.to=t.effects.setTransition(r,u,a.to.y,r.to)),t.effects.save(r,b),r.show(),t.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),m&&(s=t.effects.getBaseline(m,n),r.from.top=(n.outerHeight-r.outerHeight())*s.y,r.from.left=(n.outerWidth-r.outerWidth())*s.x,r.to.top=(n.outerHeight-r.to.outerHeight)*s.y,r.to.left=(n.outerWidth-r.to.outerWidth)*s.x),r.css(r.from),"content"!==g&&"both"!==g||(h=h.concat(["marginTop","marginBottom"]).concat(u),d=d.concat(["marginLeft","marginRight"]),c=o.concat(h).concat(d),r.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,c),i.from={height:n.height*a.from.y,width:n.width*a.from.x,outerHeight:n.outerHeight*a.from.y,outerWidth:n.outerWidth*a.from.x},i.to={height:n.height*a.to.y,width:n.width*a.to.x,outerHeight:n.height*a.to.y,outerWidth:n.width*a.to.x},a.from.y!==a.to.y&&(i.from=t.effects.setTransition(i,h,a.from.y,i.from),i.to=t.effects.setTransition(i,h,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=t.effects.setTransition(i,d,a.from.x,i.from),i.to=t.effects.setTransition(i,d,a.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,c)})})),r.animate(r.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),t.effects.restore(r,b),f||("static"===v?r.css({position:"relative",top:r.to.top,left:r.to.left}):t.each(["top","left"],function(t,e){r.css(e,function(e,i){var n=parseInt(i,10),s=t?r.to.left:r.to.top;return"auto"===i?s+"px":n+s+"px"})})),t.effects.removeWrapper(r),i()}})},t.effects.effect.scale=function(e,i){var n=t(this),s=t.extend(!0,{},e),a=t.effects.setMode(n,e.mode||"effect"),r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===a?0:100),o=e.direction||"both",l=e.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},u={y:"horizontal"!==o?r/100:1,x:"vertical"!==o?r/100:1};s.effect="size",s.queue=!1,s.complete=i,"effect"!==a&&(s.origin=l||["middle","center"],s.restore=!0),s.from=e.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:c),s.to={height:c.height*u.y,width:c.width*u.x,outerHeight:c.outerHeight*u.y,outerWidth:c.outerWidth*u.x},s.fade&&("show"===a&&(s.from.opacity=0,s.to.opacity=1),"hide"===a&&(s.from.opacity=1,s.to.opacity=0)),n.effect(s)},t.effects.effect.puff=function(e,i){var n=t(this),s=t.effects.setMode(n,e.mode||"hide"),a="hide"===s,r=parseInt(e.percent,10)||150,o=r/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:s,complete:i,percent:a?r:100,from:a?l:{height:l.height*o,width:l.width*o,outerHeight:l.outerHeight*o,outerWidth:l.outerWidth*o}}),n.effect(e)},t.effects.effect.pulsate=function(e,i){var n,s=t(this),a=t.effects.setMode(s,e.mode||"show"),r="show"===a,o="hide"===a,l=r||"hide"===a,c=2*(e.times||5)+(l?1:0),u=e.duration/c,h=0,d=s.queue(),p=d.length;
+for(!r&&s.is(":visible")||(s.css("opacity",0).show(),h=1),n=1;c>n;n++)s.animate({opacity:h},u,e.easing),h=1-h;s.animate({opacity:h},u,e.easing),s.queue(function(){o&&s.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,c+1))),s.dequeue()},t.effects.effect.shake=function(e,i){var n,s=t(this),a=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(s,e.mode||"effect"),o=e.direction||"left",l=e.distance||20,c=e.times||3,u=2*c+1,h=Math.round(e.duration/u),d="up"===o||"down"===o?"top":"left",p="up"===o||"left"===o,f={},g={},m={},v=s.queue(),b=v.length;for(t.effects.save(s,a),s.show(),t.effects.createWrapper(s),f[d]=(p?"-=":"+=")+l,g[d]=(p?"+=":"-=")+2*l,m[d]=(p?"-=":"+=")+2*l,s.animate(f,h,e.easing),n=1;c>n;n++)s.animate(g,h,e.easing).animate(m,h,e.easing);s.animate(g,h,e.easing).animate(f,h/2,e.easing).queue(function(){"hide"===r&&s.hide(),t.effects.restore(s,a),t.effects.removeWrapper(s),i()}),b>1&&v.splice.apply(v,[1,0].concat(v.splice(b,u+1))),s.dequeue()},t.effects.effect.slide=function(e,i){var n,s=t(this),a=["position","top","bottom","left","right","width","height"],r=t.effects.setMode(s,e.mode||"show"),o="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,h={};t.effects.save(s,a),s.show(),n=e.distance||s["top"===c?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(s).css({overflow:"hidden"}),o&&s.css(c,u?isNaN(n)?"-"+n:-n:n),h[c]=(o?u?"+=":"-=":u?"-=":"+=")+n,s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&s.hide(),t.effects.restore(s,a),t.effects.removeWrapper(s),i()}})},t.effects.effect.transfer=function(e,i){var n=t(this),s=t(e.to),a="fixed"===s.css("position"),r=t("body"),o=a?r.scrollTop():0,l=a?r.scrollLeft():0,c=s.offset(),u={top:c.top-o,left:c.left-l,height:s.innerHeight(),width:s.innerWidth()},h=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:h.top-o,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:a?"fixed":"absolute"}).animate(u,e.duration,e.easing,function(){d.remove(),i()})},t.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,s=t.data(this,"selectable-item");return s?(n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),s.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,a=this.opos[0],r=this.opos[1],o=e.pageX,l=e.pageY;return a>o&&(i=o,o=a,a=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:a,top:r,width:o-a,height:l-r}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),c=!1;i&&i.element!==n.element[0]&&("touch"===s.tolerance?c=!(i.left>o||i.right<a||i.top>l||i.bottom<r):"fit"===s.tolerance&&(c=i.left>a&&i.right<o&&i.top>r&&i.bottom<l),c?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var e=this;this.label=t("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{"class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),t("<span>",{"class":"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=t("<span>",{"class":"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e.menuItems||e._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>",{"class":"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var t,e=this.element.find("option");e.length&&(this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(e,i){var n=this,s="";t.each(i,function(i,a){a.optgroup!==s&&(t("<li>",{"class":"ui-selectmenu-optgroup ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:a.optgroup}).appendTo(e),s=a.optgroup),n._renderItemData(e,a)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>");return i.disabled&&n.addClass("ui-state-disabled"),this._setText(n,i.label),n.appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),s+=":not(.ui-state-disabled)"),n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0),n.length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex);e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this._setText(this.buttonText,t.label),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){"icons"===t&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(e.button),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"disabled"===t&&(this.menuInstance.option("disabled",e),this.button.toggleClass("ui-state-disabled",e).attr("aria-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===t&&this._resizeButton()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;t||(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var i=[];e.each(function(e,n){var s=t(n),a=s.parent("optgroup");i.push({element:s,index:e,value:s.val(),label:s.text(),optgroup:a.attr("label")||"",disabled:a.prop("disabled")||s.prop("disabled")})}),this.items=i},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),t.widget("ui.slider",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",r=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),e=s.length;i>e;e++)r.push(a);this.handles=s.add(t(r.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,a,r,o,l,c,u=this,h=this.options;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-u.values(e));(s>i||s===i&&(e===u._lastChangedValue||u.values(e)===h.min))&&(s=i,a=t(this),r=e)}),o=this._start(e,r),o===!1?!1:(this._mouseSliding=!0,this._handleIndex=r,a.addClass("ui-state-active").focus(),l=a.offset(),c=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:e.pageX-l.left-a.width()/2,top:e.pageY-l.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),a=this._valueMin()+n*s,this._trimAlignValue(a)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,s,a;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&i>n||1===e&&n>i)&&(i=n),i!==this.values(e)&&(s=this.values(),s[e]=i,a=this._trigger("slide",t,{handle:this.handles[e],value:i,values:s}),n=this.values(e?0:1),a!==!1&&this.values(e,i))):i!==this.value()&&(a=this._trigger("slide",t,{handle:this.handles[e],value:i}),a!==!1&&this.value(i))},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,s,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,s=arguments[0],a=0;a<n.length;a+=1)n[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,i){var n,s=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(s=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!i),this._super(e,i),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;s>n;n+=1)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,n=Math.floor(+(t-e).toFixed(this._precision())/i)*i;t=n+e,this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var e,i,n,s,a,r=this.options.range,o=this.options,l=this,c=this._animateOff?!1:o.animate,u={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](u,o.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},o.animate),1===n&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:o.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},o.animate),1===n&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:o.animate}))),e=i}):(n=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(n-s)/(a-s)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:o.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:o.animate}))},_handleEvents:{keydown:function(e){var i,n,s,a,r=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),i=this._start(e,r),i===!1))return}switch(a=this.options.step,n=s=this.options.values&&this.options.values.length?this.values(r):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;s=this._trimAlignValue(n+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;s=this._trimAlignValue(n-a)}this._slide(e,r,s)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,a=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,a.widgetName+"-item")===a?(n=t(this),!1):void 0}),t.data(e.target,a.widgetName+"-item")===a&&(n=t(e.target)),n&&(!this.options.handle||i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(s=!0)}),s))?(this.currentItem=n,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(e,i,n){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,a,r=this.options,o=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-this.document.scrollTop()<r.scrollSensitivity?o=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<r.scrollSensitivity&&(o=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),e.pageX-this.document.scrollLeft()<r.scrollSensitivity?o=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(o=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),
+o!==!1&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],s=n.item[0],a=this._intersectsWithPointer(n),a&&n.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==s&&!t.contains(this.placeholder[0],s)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],s):!0)){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=t.left,r=a+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>o&&l>n+c,d="y"===this.options.axis||e+u>a&&r>e+u,p=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:a<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=e&&i,s=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return n?this.floating?a&&"right"===a||"down"===s?2:1:s&&("down"===s?2:1):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){o.push(this)}var n,s,a,r,o=[],l=[],c=this._connectWith();if(c&&e)for(n=c.length-1;n>=0;n--)for(a=t(c[n],this.document[0]),s=a.length-1;s>=0;s--)r=t.data(a[s],this.widgetFullName),r&&r!==this&&!r.options.disabled&&l.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(o)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,a,r,o,l,c,u=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(s=t(d[i],this.document[0]),n=s.length-1;n>=0;n--)a=t.data(s[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&(h.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));for(i=h.length-1;i>=0;i--)for(r=h[i][1],o=h[i][0],n=0,c=o.length;c>n;n++)l=t(o[n]),l.data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,n,s,a;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),a=s.offset(),n.left=a.left,n.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)a=this.containers[i].element.offset(),this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,s,a,r,o,l,c,u,h,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,u=d.floating||this._isFloating(this.currentItem),r=u?"left":"top",o=u?"width":"height",h=u?"clientX":"clientY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,e[h]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[h]-l)<s&&(s=Math.abs(e[h]-l),a=this.items[n],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,a=e.pageX,r=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<s.length;n++)s[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var s=i.attr(n);void 0!==s&&s.length&&(e[n]=s)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var t=this.element[0]===this.document[0].activeElement;t||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable"))},_setOptions:l(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null===t?!1:t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:l(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:l(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:l(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:l(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void l(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,n;e=e.cloneNode(!1),i=e.href.replace(t,""),n=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(s){}try{n=decodeURIComponent(n)}catch(s){}return e.hash.length>1&&i===n}}(),_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,s){return t(s).attr("aria-controls")===n?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n===this.options.active?!1:n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e>s&&(e=0),0>e&&(e=s),e}for(var s=this.tabs.length-1;-1!==t.inArray(n(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,n=this.anchors,s=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,n){var s,a,r,o=t(n).uniqueId().attr("id"),l=t(n).closest("li"),c=l.attr("aria-controls");e._isLocal(n)?(s=n.hash,r=s.substring(1),a=e.element.find(e._sanitizeSelector(s))):(r=l.attr("aria-controls")||t({}).uniqueId()[0].id,s="#"+r,a=e.element.find(s),a.length||(a=e._createPanel(r),a.insertAfter(e.panels[i-1]||e.tablist)),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":r,"aria-labelledby":o}),a.attr("aria-labelledby",o)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);
+for(var i,n=0;i=this.tabs[n];n++)e===!0||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget),a=s.closest("li"),r=a[0]===n[0],o=r&&i.collapsible,l=o?t():this._getPanelForTab(a),c=n.length?this._getPanelForTab(n):t(),u={oldTab:n,oldPanel:c,newTab:o?t():a,newPanel:l};e.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||this._trigger("beforeActivate",e,u)===!1||(i.active=o?!1:this.tabs.index(a),this.active=r?t():a,this.xhr&&this.xhr.abort(),c.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(a),e),this._toggle(e,u))},_toggle:function(e,i){function n(){a.running=!1,a._trigger("activate",e,i)}function s(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&a.options.show?a._show(r,a.options.show,n):(r.show(),n())}var a=this,r=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),s()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&o.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setupDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setupDisabled(i)}},load:function(e,i){e=this._getIndex(e);var n=this,s=this.tabs.eq(e),a=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),o={tab:s,panel:r},l=function(t,e){"abort"===e&&n.panels.stop(!1,!0),s.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr};this._isLocal(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(s.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,s){setTimeout(function(){r.html(t),n._trigger("load",i,o),l(s,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href"),beforeSend:function(e,a){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:a},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(i,n);-1!==s&&n.splice(s,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,i){var n=this;return"disabled"===e?(this[i?"_disable":"_enable"](),void(this.options[e]=i)):(this._super(e,i),void("content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e.element)})))},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n.element[0],e.close(s,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._registerCloseHandlers(e,n),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,s=this,a=e?e.type:null;return"string"==typeof n?this._open(e,t,n):(i=n.call(t[0],function(i){s._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=a),this._open(e,t,i))})}),void(i&&this._open(e,t,i)))},_open:function(e,i,n){function s(t){c.of=t,r.is(":hidden")||r.position(c)}var a,r,o,l,c=t.extend({},this.options.position);if(n){if(a=this._find(i))return void a.tooltip.find(".ui-tooltip-content").html(n);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),r=a.tooltip,this._addDescribedBy(i,r.attr("id")),r.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),n.clone?(l=n.clone(),l.removeAttr("id").find("[id]").removeAttr("id")):l=n,t("<div>").html(l).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:s}),s(e)):r.position(t.extend({of:i},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){r.is(":visible")&&(s(c.of),clearInterval(o))},t.fx.interval)),this._trigger("open",e,{tooltip:r})}},_registerCloseHandlers:function(e,i){var n={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(n.mouseleave="close"),e&&"focusin"!==e.type||(n.focusout="close"),this._on(!0,i,n)},close:function(e){var i,n=this,s=t(e?e.currentTarget:this.element),a=this._find(s);return a?(i=a.tooltip,void(a.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),a.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){n._removeTooltip(t(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),a.closing=!0,this._trigger("close",e,{tooltip:i}),a.hiding||(a.closing=!1)))):void s.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),n=i.uniqueId().attr("id");return t("<div>").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[n]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur"),a=n.element;s.target=s.currentTarget=a[0],e.close(s,!0),t("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],t):"object"==typeof exports?t(require("jquery"),require("./vendor/jquery.ui.widget")):t(window.jQuery)}(function(t){"use strict";function e(e){var i="dragover"===e;return function(n){n.dataTransfer=n.originalEvent&&n.originalEvent.dataTransfer;var s=n.dataTransfer;s&&-1!==t.inArray("Files",s.types)&&this._trigger(e,t.Event(e,{delegatedEvent:n}))!==!1&&(n.preventDefault(),i&&(s.dropEffect="copy"))}}t.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||t('<input type="file">').prop("disabled")),t.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),t.support.xhrFormDataFileUpload=!!window.FormData,t.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),t.widget("blueimp.fileupload",{options:{dropZone:t(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(e,i){return e=this.messages[e]||e.toString(),i&&t.each(i,function(t,i){e=e.replace("{"+t+"}",i)}),e},formData:function(t){return t.serializeArray()},add:function(e,i){return e.isDefaultPrevented()?!1:void((i.autoUpload||i.autoUpload!==!1&&t(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:t.support.blobSlice&&function(){var t=this.slice||this.webkitSlice||this.mozSlice;return t.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(t,e,i){var n=t-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(e-this.loaded)*(1e3/n)*8,this.loaded=e,this.timestamp=t),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&t.support.xhrFileUpload||t.support.xhrFormDataFileUpload)},_getFormData:function(e){var i;return"function"===t.type(e.formData)?e.formData(e.form):t.isArray(e.formData)?e.formData:"object"===t.type(e.formData)?(i=[],t.each(e.formData,function(t,e){i.push({name:t,value:e})}),i):[]},_getTotal:function(e){var i=0;return t.each(e,function(t,e){i+=e.size||1}),i},_initProgressObject:function(e){var i={loaded:0,total:0,bitrate:0};e._progress?t.extend(e._progress,i):e._progress=i},_initResponseObject:function(t){var e;if(t._response)for(e in t._response)t._response.hasOwnProperty(e)&&delete t._response[e];else t._response={}},_onProgress:function(e,i){if(e.lengthComputable){var n,s=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&s-i._time<i.progressInterval&&e.loaded!==e.total)return;i._time=s,n=Math.floor(e.loaded/e.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=n-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(s,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=n,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(s,n,i.bitrateInterval),this._trigger("progress",t.Event("progress",{delegatedEvent:e}),i),this._trigger("progressall",t.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(e){var i=this,n=e.xhr?e.xhr():t.ajaxSettings.xhr();n.upload&&(t(n.upload).bind("progress",function(t){var n=t.originalEvent;t.lengthComputable=n.lengthComputable,t.loaded=n.loaded,t.total=n.total,i._onProgress(t,e)}),e.xhr=function(){return n})},_isInstanceOf:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},_initXHRData:function(e){var i,n=this,s=e.files[0],a=e.multipart||!t.support.xhrFileUpload,r="array"===t.type(e.paramName)?e.paramName[0]:e.paramName;e.headers=t.extend({},e.headers),e.contentRange&&(e.headers["Content-Range"]=e.contentRange),a&&!e.blob&&this._isInstanceOf("File",s)||(e.headers["Content-Disposition"]='attachment; filename="'+encodeURI(s.name)+'"'),a?t.support.xhrFormDataFileUpload&&(e.postMessage?(i=this._getFormData(e),e.blob?i.push({name:r,value:e.blob}):t.each(e.files,function(n,s){i.push({name:"array"===t.type(e.paramName)&&e.paramName[n]||r,value:s})})):(n._isInstanceOf("FormData",e.formData)?i=e.formData:(i=new FormData,t.each(this._getFormData(e),function(t,e){i.append(e.name,e.value)})),e.blob?i.append(r,e.blob,s.name):t.each(e.files,function(s,a){(n._isInstanceOf("File",a)||n._isInstanceOf("Blob",a))&&i.append("array"===t.type(e.paramName)&&e.paramName[s]||r,a,a.uploadName||a.name)})),e.data=i):(e.contentType=s.type||"application/octet-stream",e.data=e.blob||s),e.blob=null},_initIframeSettings:function(e){var i=t("<a></a>").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&i&&i!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(t){this._isXHRUpload(t)?(this._chunkedUpload(t,!0)||(t.data||this._initXHRData(t),this._initProgressListener(t)),t.postMessage&&(t.dataType="postmessage "+(t.dataType||""))):this._initIframeSettings(t)},_getParamName:function(e){var i=t(e.fileInput),n=e.paramName;return n?t.isArray(n)||(n=[n]):(n=[],i.each(function(){for(var e=t(this),i=e.prop("name")||"files[]",s=(e.prop("files")||[1]).length;s;)n.push(i),s-=1}),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(e){e.form&&e.form.length||(e.form=t(e.fileInput.prop("form")),e.form.length||(e.form=t(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===t.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var i=t.extend({},this.options,e);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(t){return t.state?t.state():t.isResolved()?"resolved":t.isRejected()?"rejected":"pending"},_enhancePromise:function(t){return t.success=t.done,t.error=t.fail,t.complete=t.always,t},_getXHRPromise:function(e,i,n){var s=t.Deferred(),a=s.promise();return i=i||this.options.context||a,e===!0?s.resolveWith(i,n):e===!1&&s.rejectWith(i,n),a.abort=s.promise,this._enhancePromise(a)},_addConvenienceMethods:function(e,i){var n=this,s=function(e){return t.Deferred().resolveWith(n,e).promise()};i.process=function(e,a){return(e||a)&&(i._processQueue=this._processQueue=(this._processQueue||s([this])).pipe(function(){return i.errorThrown?t.Deferred().rejectWith(n,[i]).promise():s(arguments)}).pipe(e,a)),this._processQueue||s([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=n._trigger("submit",t.Event("submit",{delegatedEvent:e}),this)!==!1&&n._onSend(e,this)),this.jqXHR||n._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",n._trigger("fail",null,this),n._getXHRPromise(!1))},i.state=function(){return this.jqXHR?n._getDeferredState(this.jqXHR):this._processQueue?n._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===n._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(t){var e=t.getResponseHeader("Range"),i=e&&e.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(e,i){e.uploadedBytes=e.uploadedBytes||0;var n,s,a=this,r=e.files[0],o=r.size,l=e.uploadedBytes,c=e.maxChunkSize||o,u=this._blobSlice,h=t.Deferred(),d=h.promise();return this._isXHRUpload(e)&&u&&(l||o>c)&&!e.data?i?!0:l>=o?(r.error=e.i18n("uploadedBytes"),this._getXHRPromise(!1,e.context,[null,"error",r.error])):(s=function(){var i=t.extend({},e),d=i._progress.loaded;i.blob=u.call(r,l,l+c,r.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+o,a._initXHRData(i),a._initProgressListener(i),n=(a._trigger("chunksend",null,i)!==!1&&t.ajax(i)||a._getXHRPromise(!1,i.context)).done(function(n,r,c){l=a._getUploadedBytes(c)||l+i.chunkSize,d+i.chunkSize-i._progress.loaded&&a._onProgress(t.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),e.uploadedBytes=i.uploadedBytes=l,i.result=n,i.textStatus=r,i.jqXHR=c,a._trigger("chunkdone",null,i),a._trigger("chunkalways",null,i),o>l?s():h.resolveWith(i.context,[n,r,c])}).fail(function(t,e,n){i.jqXHR=t,i.textStatus=e,i.errorThrown=n,a._trigger("chunkfail",null,i),a._trigger("chunkalways",null,i),h.rejectWith(i.context,[t,e,n])})},this._enhancePromise(d),d.abort=function(){return n.abort()},s(),d):!1},_beforeSend:function(t,e){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(e),this._initProgressObject(e),e._progress.loaded=e.loaded=e.uploadedBytes||0,e._progress.total=e.total=this._getTotal(e.files)||1,e._progress.bitrate=e.bitrate=0,this._active+=1,this._progress.loaded+=e.loaded,this._progress.total+=e.total},_onDone:function(e,i,n,s){var a=s._progress.total,r=s._response;s._progress.loaded<a&&this._onProgress(t.Event("progress",{lengthComputable:!0,loaded:a,total:a}),s),r.result=s.result=e,r.textStatus=s.textStatus=i,r.jqXHR=s.jqXHR=n,this._trigger("done",null,s)},_onFail:function(t,e,i,n){var s=n._response;n.recalculateProgress&&(this._progress.loaded-=n._progress.loaded,this._progress.total-=n._progress.total),s.jqXHR=n.jqXHR=t,s.textStatus=n.textStatus=e,s.errorThrown=n.errorThrown=i,this._trigger("fail",null,n)},_onAlways:function(t,e,i,n){this._trigger("always",null,n)},_onSend:function(e,i){i.submit||this._addConvenienceMethods(e,i);var n,s,a,r,o=this,l=o._getAJAXSettings(i),c=function(){return o._sending+=1,l._bitrateTimer=new o._BitrateTimer,n=n||((s||o._trigger("send",t.Event("send",{delegatedEvent:e}),l)===!1)&&o._getXHRPromise(!1,l.context,s)||o._chunkedUpload(l)||t.ajax(l)).done(function(t,e,i){o._onDone(t,e,i,l)}).fail(function(t,e,i){o._onFail(t,e,i,l)}).always(function(t,e,i){if(o._onAlways(t,e,i,l),o._sending-=1,o._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>o._sending)for(var n=o._slots.shift();n;){if("pending"===o._getDeferredState(n)){n.resolve();break}n=o._slots.shift()}0===o._active&&o._trigger("stop")})};return this._beforeSend(e,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(a=t.Deferred(),this._slots.push(a),r=a.pipe(c)):(this._sequence=this._sequence.pipe(c,c),r=this._sequence),r.abort=function(){return s=[void 0,"abort","abort"],n?n.abort():(a&&a.rejectWith(l.context,s),c())},this._enhancePromise(r)):c()},_onAdd:function(e,i){var n,s,a,r,o=this,l=!0,c=t.extend({},this.options,i),u=i.files,h=u.length,d=c.limitMultiFileUploads,p=c.limitMultiFileUploadSize,f=c.limitMultiFileUploadSizeOverhead,g=0,m=this._getParamName(c),v=0;if(!h)return!1;if(p&&void 0===u[0].size&&(p=void 0),(c.singleFileUploads||d||p)&&this._isXHRUpload(c))if(c.singleFileUploads||p||!d)if(!c.singleFileUploads&&p)for(a=[],n=[],r=0;h>r;r+=1)g+=u[r].size+f,(r+1===h||g+u[r+1].size+f>p||d&&r+1-v>=d)&&(a.push(u.slice(v,r+1)),s=m.slice(v,r+1),s.length||(s=m),n.push(s),v=r+1,g=0);else n=m;else for(a=[],n=[],r=0;h>r;r+=d)a.push(u.slice(r,r+d)),s=m.slice(r,r+d),s.length||(s=m),n.push(s);else a=[u],n=[m];return i.originalFiles=u,t.each(a||u,function(s,r){var c=t.extend({},i);return c.files=a?r:[r],c.paramName=n[s],o._initResponseObject(c),o._initProgressObject(c),o._addConvenienceMethods(e,c),l=o._trigger("add",t.Event("add",{delegatedEvent:e}),c)}),l},_replaceFileInput:function(e){var i=e.fileInput,n=i.clone(!0),s=i.is(document.activeElement);e.fileInputClone=n,t("<form></form>").append(n)[0].reset(),i.after(n).detach(),s&&n.focus(),t.cleanData(i.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(t,e){return e===i[0]?n[0]:e}),i[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(e,i){var n,s=this,a=t.Deferred(),r=function(t){t&&!t.entry&&(t.entry=e),a.resolve([t])},o=function(t){s._handleFileTreeEntries(t,i+e.name+"/").done(function(t){a.resolve(t)}).fail(r)},l=function(){n.readEntries(function(t){t.length?(c=c.concat(t),l()):o(c)},r)},c=[];return i=i||"",e.isFile?e._file?(e._file.relativePath=i,a.resolve(e._file)):e.file(function(t){t.relativePath=i,a.resolve(t)},r):e.isDirectory?(n=e.createReader(),l()):a.resolve([]),a.promise()},_handleFileTreeEntries:function(e,i){var n=this;return t.when.apply(t,t.map(e,function(t){return n._handleFileTreeEntry(t,i)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(e){e=e||{};var i=e.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(t.map(i,function(t){var e;return t.webkitGetAsEntry?(e=t.webkitGetAsEntry(),e&&(e._file=t.getAsFile()),e):t.getAsEntry()})):t.Deferred().resolve(t.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){e=t(e);var i,n,s=e.prop("webkitEntries")||e.prop("entries");if(s&&s.length)return this._handleFileTreeEntries(s);if(i=t.makeArray(e.prop("files")),i.length)void 0===i[0].name&&i[0].fileName&&t.each(i,function(t,e){e.name=e.fileName,e.size=e.fileSize});else{if(n=e.prop("value"),!n)return t.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return t.Deferred().resolve(i).promise()},_getFileInputFiles:function(e){return e instanceof t&&1!==e.length?t.when.apply(t,t.map(e,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(e)},_onChange:function(e){var i=this,n={fileInput:t(e.target),form:t(e.target.form)};this._getFileInputFiles(n.fileInput).always(function(s){n.files=s,i.options.replaceFileInput&&i._replaceFileInput(n),i._trigger("change",t.Event("change",{delegatedEvent:e}),n)!==!1&&i._onAdd(e,n)})},_onPaste:function(e){var i=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,n={files:[]};i&&i.length&&(t.each(i,function(t,e){var i=e.getAsFile&&e.getAsFile();i&&n.files.push(i)}),this._trigger("paste",t.Event("paste",{delegatedEvent:e}),n)!==!1&&this._onAdd(e,n))},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var i=this,n=e.dataTransfer,s={};n&&n.files&&n.files.length&&(e.preventDefault(),this._getDroppedFiles(n).always(function(n){s.files=n,i._trigger("drop",t.Event("drop",{delegatedEvent:e}),s)!==!1&&i._onAdd(e,s)}))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),t.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(e,i){var n=-1!==t.inArray(e,this._specialOptions);n&&this._destroyEventHandlers(),this._super(e,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof t||(e.fileInput=t(e.fileInput)),e.dropZone instanceof t||(e.dropZone=t(e.dropZone)),e.pasteZone instanceof t||(e.pasteZone=t(e.pasteZone))},_getRegExp:function(t){var e=t.split("/"),i=e.pop();return e.shift(),new RegExp(e.join("/"),i)},_isRegExpOption:function(e,i){return"url"!==e&&"string"===t.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var e=this,i=this.options,n=this.element.data();t.each(this.element[0].attributes,function(t,s){var a,r=s.name.toLowerCase();/^data-/.test(r)&&(r=r.slice(5).replace(/-[a-z]/g,function(t){return t.charAt(1).toUpperCase()}),a=n[r],e._isRegExpOption(r,a)&&(a=e._getRegExp(a)),i[r]=a)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(e){var i=this;e&&!this.options.disabled&&(e.fileInput&&!e.files?this._getFileInputFiles(e.fileInput).always(function(t){e.files=t,i._onAdd(null,e)}):(e.files=t.makeArray(e.files),this._onAdd(null,e)))},send:function(e){if(e&&!this.options.disabled){if(e.fileInput&&!e.files){var i,n,s=this,a=t.Deferred(),r=a.promise();return r.abort=function(){return n=!0,i?i.abort():(a.reject(null,"abort","abort"),r)},this._getFileInputFiles(e.fileInput).always(function(t){if(!n){if(!t.length)return void a.reject();e.files=t,i=s._onSend(null,e),i.then(function(t,e,i){a.resolve(t,e,i)},function(t,e,i){a.reject(t,e,i)})}}),this._enhancePromise(r)}if(e.files=t.makeArray(e.files),e.files.length)return this._onSend(null,e)}return this._getXHRPromise(!1,e&&e.context)}})}),function(t){var e=function(i){if(i&&i.childNodes){var n=t.makeArray(i.childNodes),s=null;t.each(n,function(t,n){3===n.nodeType?""===n.nodeValue?i.removeChild(n):null!==s?(s.nodeValue+=n.nodeValue,i.removeChild(n)):s=n:(s=null,n.childNodes&&e(n))})}};t.fn.highlightRegex=function(i,n){return"object"!=typeof i||"RegExp"==i.constructor.name||i instanceof RegExp||(n=i,i=void 0),"undefined"==typeof n&&(n={}),n.className=n.className||"highlight",n.tagType=n.tagType||"span",n.attrs=n.attrs||{},"undefined"==typeof i||""===i.source?t(this).find(n.tagType+"."+n.className).each(function(){t(this).replaceWith(t(this).text()),e(t(this).parent().get(0))}):t(this).each(function(){var s=t(this).get(0);e(s),t.each(t.makeArray(s.childNodes),function(s,a){var r,o,l,c,u,h;if(e(a),3==a.nodeType){if(t(a).parent(n.tagType+"."+n.className).length)return;for(;a.data&&(c=a.data.search(i))>=0&&(u=a.data.slice(c).match(i)[0],u.length>0);)r=document.createElement(n.tagType),r.className=n.className,t(r).attr(n.attrs),h=a.parentNode,o=a.splitText(c),a=o.splitText(u.length),l=o.cloneNode(!0),r.appendChild(l),h.replaceChild(r,o)}else t(a).highlightRegex(i,n)})}),t(this)}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.Handlebars=t.Handlebars||e()}(this,function(){var t=function(){"use strict";function t(t){this.string=t}var e;return t.prototype.toString=function(){return""+this.string},e=t}(),e=function(t){"use strict";function e(t){return l[t]}function i(t){for(var e=1;e<arguments.length;e++)for(var i in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],i)&&(t[i]=arguments[e][i]);return t}function n(t){return t instanceof o?t.toString():null==t?"":t?(t=""+t,u.test(t)?t.replace(c,e):t):t+""}function s(t){return t||0===t?!(!p(t)||0!==t.length):!0}function a(t,e){return(t?t+".":"")+e}var r={},o=t,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/[&<>"'`]/g,u=/[&<>"'`]/;r.extend=i;var h=Object.prototype.toString;r.toString=h;var d=function(t){return"function"==typeof t};d(/x/)&&(d=function(t){return"function"==typeof t&&"[object Function]"===h.call(t)});var d;r.isFunction=d;var p=Array.isArray||function(t){return t&&"object"==typeof t?"[object Array]"===h.call(t):!1};return r.isArray=p,r.escapeExpression=n,r.isEmpty=s,r.appendContextPath=a,r}(t),i=function(){"use strict";function t(t,e){var n;e&&e.firstLine&&(n=e.firstLine,t+=" - "+n+":"+e.firstColumn);for(var s=Error.prototype.constructor.call(this,t),a=0;a<i.length;a++)this[i[a]]=s[i[a]];n&&(this.lineNumber=n,this.column=e.firstColumn)}var e,i=["description","fileName","lineNumber","message","name","number","stack"];return t.prototype=new Error,e=t}(),n=function(t,e){"use strict";function i(t,e){this.helpers=t||{},this.partials=e||{},n(this)}function n(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new r("Missing helper: '"+arguments[arguments.length-1].name+"'")}),t.registerHelper("blockHelperMissing",function(e,i){var n=i.inverse,s=i.fn;if(e===!0)return s(this);if(e===!1||null==e)return n(this);if(u(e))return e.length>0?(i.ids&&(i.ids=[i.name]),t.helpers.each(e,i)):n(this);
+if(i.data&&i.ids){var r=m(i.data);r.contextPath=a.appendContextPath(i.data.contextPath,i.name),i={data:r}}return s(e,i)}),t.registerHelper("each",function(t,e){if(!e)throw new r("Must pass iterator to #each");var i,n,s=e.fn,o=e.inverse,l=0,c="";if(e.data&&e.ids&&(n=a.appendContextPath(e.data.contextPath,e.ids[0])+"."),h(t)&&(t=t.call(this)),e.data&&(i=m(e.data)),t&&"object"==typeof t)if(u(t))for(var d=t.length;d>l;l++)i&&(i.index=l,i.first=0===l,i.last=l===t.length-1,n&&(i.contextPath=n+l)),c+=s(t[l],{data:i});else for(var p in t)t.hasOwnProperty(p)&&(i&&(i.key=p,i.index=l,i.first=0===l,n&&(i.contextPath=n+p)),c+=s(t[p],{data:i}),l++);return 0===l&&(c=o(this)),c}),t.registerHelper("if",function(t,e){return h(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||a.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,i){return t.helpers["if"].call(this,e,{fn:i.inverse,inverse:i.fn,hash:i.hash})}),t.registerHelper("with",function(t,e){h(t)&&(t=t.call(this));var i=e.fn;if(a.isEmpty(t))return e.inverse(this);if(e.data&&e.ids){var n=m(e.data);n.contextPath=a.appendContextPath(e.data.contextPath,e.ids[0]),e={data:n}}return i(t,e)}),t.registerHelper("log",function(e,i){var n=i.data&&null!=i.data.level?parseInt(i.data.level,10):1;t.log(n,e)}),t.registerHelper("lookup",function(t,e){return t&&t[e]})}var s={},a=t,r=e,o="2.0.0";s.VERSION=o;var l=6;s.COMPILER_REVISION=l;var c={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};s.REVISION_CHANGES=c;var u=a.isArray,h=a.isFunction,d=a.toString,p="[object Object]";s.HandlebarsEnvironment=i,i.prototype={constructor:i,logger:f,log:g,registerHelper:function(t,e){if(d.call(t)===p){if(e)throw new r("Arg not supported with multiple helpers");a.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){d.call(t)===p?a.extend(this.partials,t):this.partials[t]=e},unregisterPartial:function(t){delete this.partials[t]}};var f={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(t,e){if(f.level<=t){var i=f.methodMap[t];"undefined"!=typeof console&&console[i]&&console[i].call(console,e)}}};s.logger=f;var g=f.log;s.log=g;var m=function(t){var e=a.extend({},t);return e._parent=t,e};return s.createFrame=m,s}(e,i),s=function(t,e,i){"use strict";function n(t){var e=t&&t[0]||1,i=d;if(e!==i){if(i>e){var n=p[i],s=p[e];throw new h("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}throw new h("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}}function s(t,e){if(!e)throw new h("No environment passed to template");if(!t||!t.main)throw new h("Unknown template object: "+typeof t);e.VM.checkRevision(t.compiler);var i=function(i,n,s,a,r,o,l,c,d){r&&(a=u.extend({},a,r));var p=e.VM.invokePartial.call(this,i,s,a,o,l,c,d);if(null==p&&e.compile){var f={helpers:o,partials:l,data:c,depths:d};l[s]=e.compile(i,{data:void 0!==c,compat:t.compat},e),p=l[s](a,f)}if(null!=p){if(n){for(var g=p.split("\n"),m=0,v=g.length;v>m&&(g[m]||m+1!==v);m++)g[m]=n+g[m];p=g.join("\n")}return p}throw new h("The partial "+s+" could not be compiled when running in runtime-only mode")},n={lookup:function(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n]&&null!=t[n][e])return t[n][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:u.escapeExpression,invokePartial:i,fn:function(e){return t[e]},programs:[],program:function(t,e,i){var n=this.programs[t],s=this.fn(t);return e||i?n=a(this,t,s,e,i):n||(n=this.programs[t]=a(this,t,s)),n},data:function(t,e){for(;t&&e--;)t=t._parent;return t},merge:function(t,e){var i=t||e;return t&&e&&t!==e&&(i=u.extend({},e,t)),i},noop:e.VM.noop,compilerInfo:t.compiler},s=function(e,i){i=i||{};var a=i.data;s._setup(i),!i.partial&&t.useData&&(a=l(e,a));var r;return t.useDepths&&(r=i.depths?[e].concat(i.depths):[e]),t.main.call(n,e,n.helpers,n.partials,a,r)};return s.isTop=!0,s._setup=function(i){i.partial?(n.helpers=i.helpers,n.partials=i.partials):(n.helpers=n.merge(i.helpers,e.helpers),t.usePartial&&(n.partials=n.merge(i.partials,e.partials)))},s._child=function(e,i,s){if(t.useDepths&&!s)throw new h("must pass parent depths");return a(n,e,t[e],i,s)},s}function a(t,e,i,n,s){var a=function(e,a){return a=a||{},i.call(t,e,t.helpers,t.partials,a.data||n,s&&[e].concat(s))};return a.program=e,a.depth=s?s.length:0,a}function r(t,e,i,n,s,a,r){var o={partial:!0,helpers:n,partials:s,data:a,depths:r};if(void 0===t)throw new h("The partial "+e+" could not be found");return t instanceof Function?t(i,o):void 0}function o(){return""}function l(t,e){return e&&"root"in e||(e=e?f(e):{},e.root=t),e}var c={},u=t,h=e,d=i.COMPILER_REVISION,p=i.REVISION_CHANGES,f=i.createFrame;return c.checkRevision=n,c.template=s,c.program=a,c.invokePartial=r,c.noop=o,c}(e,i,n),a=function(t,e,i,n,s){"use strict";var a,r=t,o=e,l=i,c=n,u=s,h=function(){var t=new r.HandlebarsEnvironment;return c.extend(t,r),t.SafeString=o,t.Exception=l,t.Utils=c,t.escapeExpression=c.escapeExpression,t.VM=u,t.template=function(e){return u.template(e,t)},t},d=h();return d.create=h,d["default"]=d,a=d}(n,t,i,e,s),r=function(t){"use strict";function e(t){t=t||{},this.firstLine=t.first_line,this.firstColumn=t.first_column,this.lastColumn=t.last_column,this.lastLine=t.last_line}var i,n=t,s={ProgramNode:function(t,i,n){e.call(this,n),this.type="program",this.statements=t,this.strip=i},MustacheNode:function(t,i,n,a,r){if(e.call(this,r),this.type="mustache",this.strip=a,null!=n&&n.charAt){var o=n.charAt(3)||n.charAt(2);this.escaped="{"!==o&&"&"!==o}else this.escaped=!!n;t instanceof s.SexprNode?this.sexpr=t:this.sexpr=new s.SexprNode(t,i),this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(t,i,n){e.call(this,n),this.type="sexpr",this.hash=i;var s=this.id=t[0],a=this.params=t.slice(1);this.isHelper=!(!a.length&&!i),this.eligibleHelper=this.isHelper||s.isSimple},PartialNode:function(t,i,n,s,a){e.call(this,a),this.type="partial",this.partialName=t,this.context=i,this.hash=n,this.strip=s,this.strip.inlineStandalone=!0},BlockNode:function(t,i,n,s,a){e.call(this,a),this.type="block",this.mustache=t,this.program=i,this.inverse=n,this.strip=s,n&&!i&&(this.isInverse=!0)},RawBlockNode:function(t,i,a,r){if(e.call(this,r),t.sexpr.id.original!==a)throw new n(t.sexpr.id.original+" doesn't match "+a,this);i=new s.ContentNode(i,r),this.type="block",this.mustache=t,this.program=new s.ProgramNode([i],{},r)},ContentNode:function(t,i){e.call(this,i),this.type="content",this.original=this.string=t},HashNode:function(t,i){e.call(this,i),this.type="hash",this.pairs=t},IdNode:function(t,i){e.call(this,i),this.type="ID";for(var s="",a=[],r=0,o="",l=0,c=t.length;c>l;l++){var u=t[l].part;if(s+=(t[l].separator||"")+u,".."===u||"."===u||"this"===u){if(a.length>0)throw new n("Invalid path: "+s,this);".."===u?(r++,o+="../"):this.isScoped=!0}else a.push(u)}this.original=s,this.parts=a,this.string=a.join("."),this.depth=r,this.idName=o+this.string,this.isSimple=1===t.length&&!this.isScoped&&0===r,this.stringModeValue=this.string},PartialNameNode:function(t,i){e.call(this,i),this.type="PARTIAL_NAME",this.name=t.original},DataNode:function(t,i){e.call(this,i),this.type="DATA",this.id=t,this.stringModeValue=t.stringModeValue,this.idName="@"+t.stringModeValue},StringNode:function(t,i){e.call(this,i),this.type="STRING",this.original=this.string=this.stringModeValue=t},NumberNode:function(t,i){e.call(this,i),this.type="NUMBER",this.original=this.number=t,this.stringModeValue=Number(t)},BooleanNode:function(t,i){e.call(this,i),this.type="BOOLEAN",this.bool=t,this.stringModeValue="true"===t},CommentNode:function(t,i){e.call(this,i),this.type="comment",this.comment=t,this.strip={inlineStandalone:!0}}};return i=s}(i),o=function(){"use strict";var t,e=function(){function t(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,CONTENT:12,COMMENT:13,openRawBlock:14,END_RAW_BLOCK:15,OPEN_RAW_BLOCK:16,sexpr:17,CLOSE_RAW_BLOCK:18,openBlock:19,block_option0:20,closeBlock:21,openInverse:22,block_option1:23,OPEN_BLOCK:24,CLOSE:25,OPEN_INVERSE:26,inverseAndProgram:27,INVERSE:28,OPEN_ENDBLOCK:29,path:30,OPEN:31,OPEN_UNESCAPED:32,CLOSE_UNESCAPED:33,OPEN_PARTIAL:34,partialName:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataName:41,STRING:42,NUMBER:43,BOOLEAN:44,OPEN_SEXPR:45,CLOSE_SEXPR:46,hash:47,hash_repetition_plus0:48,hashSegment:49,ID:50,EQUALS:51,DATA:52,pathSegments:53,SEP:54,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function(t,e,i,n,s,a,r){var o=a.length-1;switch(s){case 1:return n.prepareProgram(a[o-1].statements,!0),a[o-1];case 2:this.$=new n.ProgramNode(n.prepareProgram(a[o]),{},this._$);break;case 3:this.$=a[o];break;case 4:this.$=a[o];break;case 5:this.$=a[o];break;case 6:this.$=a[o];break;case 7:this.$=new n.ContentNode(a[o],this._$);break;case 8:this.$=new n.CommentNode(a[o],this._$);break;case 9:this.$=new n.RawBlockNode(a[o-2],a[o-1],a[o],this._$);break;case 10:this.$=new n.MustacheNode(a[o-1],null,"","",this._$);break;case 11:this.$=n.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!1,this._$);break;case 12:this.$=n.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!0,this._$);break;case 13:this.$=new n.MustacheNode(a[o-1],null,a[o-2],n.stripFlags(a[o-2],a[o]),this._$);break;case 14:this.$=new n.MustacheNode(a[o-1],null,a[o-2],n.stripFlags(a[o-2],a[o]),this._$);break;case 15:this.$={strip:n.stripFlags(a[o-1],a[o-1]),program:a[o]};break;case 16:this.$={path:a[o-1],strip:n.stripFlags(a[o-2],a[o])};break;case 17:this.$=new n.MustacheNode(a[o-1],null,a[o-2],n.stripFlags(a[o-2],a[o]),this._$);break;case 18:this.$=new n.MustacheNode(a[o-1],null,a[o-2],n.stripFlags(a[o-2],a[o]),this._$);break;case 19:this.$=new n.PartialNode(a[o-3],a[o-2],a[o-1],n.stripFlags(a[o-4],a[o]),this._$);break;case 20:this.$=new n.PartialNode(a[o-2],void 0,a[o-1],n.stripFlags(a[o-3],a[o]),this._$);break;case 21:this.$=new n.SexprNode([a[o-2]].concat(a[o-1]),a[o],this._$);break;case 22:this.$=new n.SexprNode([a[o]],null,this._$);break;case 23:this.$=a[o];break;case 24:this.$=new n.StringNode(a[o],this._$);break;case 25:this.$=new n.NumberNode(a[o],this._$);break;case 26:this.$=new n.BooleanNode(a[o],this._$);break;case 27:this.$=a[o];break;case 28:a[o-1].isHelper=!0,this.$=a[o-1];break;case 29:this.$=new n.HashNode(a[o],this._$);break;case 30:this.$=[a[o-2],a[o]];break;case 31:this.$=new n.PartialNameNode(a[o],this._$);break;case 32:this.$=new n.PartialNameNode(new n.StringNode(a[o],this._$),this._$);break;case 33:this.$=new n.PartialNameNode(new n.NumberNode(a[o],this._$));break;case 34:this.$=new n.DataNode(a[o],this._$);break;case 35:this.$=new n.IdNode(a[o],this._$);break;case 36:a[o-2].push({part:a[o],separator:a[o-1]}),this.$=a[o-2];break;case 37:this.$=[{part:a[o]}];break;case 38:this.$=[];break;case 39:a[o-1].push(a[o]);break;case 48:this.$=[];break;case 49:a[o-1].push(a[o]);break;case 52:this.$=[a[o]];break;case 53:a[o-1].push(a[o])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function(t,e){throw new Error(t)},parse:function(t){function e(){var t;return t=i.lexer.lex()||1,"number"!=typeof t&&(t=i.symbols_[t]||t),t}var i=this,n=[0],s=[null],a=[],r=this.table,o="",l=0,c=0,u=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;a.push(h);var d=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,f,g,m,v,b,_,y,w,x={};;){if(g=n[n.length-1],this.defaultActions[g]?m=this.defaultActions[g]:(null!==p&&"undefined"!=typeof p||(p=e()),m=r[g]&&r[g][p]),"undefined"==typeof m||!m.length||!m[0]){var k="";if(!u){w=[];for(b in r[g])this.terminals_[b]&&b>2&&w.push("'"+this.terminals_[b]+"'");k=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:h,expected:w})}}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+p);switch(m[0]){case 1:n.push(p),s.push(this.lexer.yytext),a.push(this.lexer.yylloc),n.push(m[1]),p=null,f?(p=f,f=null):(c=this.lexer.yyleng,o=this.lexer.yytext,l=this.lexer.yylineno,h=this.lexer.yylloc,u>0&&u--);break;case 2:if(_=this.productions_[m[1]][1],x.$=s[s.length-_],x._$={first_line:a[a.length-(_||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(_||1)].first_column,last_column:a[a.length-1].last_column},d&&(x._$.range=[a[a.length-(_||1)].range[0],a[a.length-1].range[1]]),v=this.performAction.call(x,o,c,l,this.yy,m[1],s,a),"undefined"!=typeof v)return v;_&&(n=n.slice(0,-1*_*2),s=s.slice(0,-1*_),a=a.slice(0,-1*_)),n.push(this.productions_[m[1]][0]),s.push(x.$),a.push(x._$),y=r[n[n.length-2]][n[n.length-1]],n.push(y);break;case 3:return!0}}return!0}},i=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,i,n,s;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length&&(i=this._input.match(this.rules[a[r]]),!i||e&&!(i[0].length>e[0].length)||(e=i,n=r,this.options.flex));r++);return e?(s=e[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,a[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t?t:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return"undefined"!=typeof t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)}};return t.options={},t.performAction=function(t,e,i,n){function s(t,i){return e.yytext=e.yytext.substr(t,e.yyleng-i)}switch(i){case 0:if("\\\\"===e.yytext.slice(-2)?(s(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(s(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 12;break;case 1:return 12;case 2:return this.popState(),12;case 3:return e.yytext=e.yytext.substr(5,e.yyleng-9),this.popState(),15;case 4:return 12;case 5:return s(0,4),this.popState(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popState(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:return this.popState(),28;case 14:return this.popState(),28;case 15:return 26;case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popState(),this.begin("com");break;case 20:return s(3,5),this.popState(),13;case 21:return 31;case 22:return 51;case 23:return 50;case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popState(),33;case 28:return this.popState(),25;case 29:return e.yytext=s(1,2).replace(/\\"/g,'"'),42;case 30:return e.yytext=s(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:return 44;case 33:return 44;case 34:return 43;case 35:return 50;case 36:return e.yytext=s(1,2),50;case 37:return"INVALID";case 38:return 5}},t.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],t.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,38],inclusive:!0}},t}();return e.lexer=i,t.prototype=e,e.Parser=t,new t}();return t=e}(),l=function(t){"use strict";function e(t,e){return{left:"~"===t.charAt(2),right:"~"===e.charAt(e.length-3)}}function i(t,e,i,n,l,u){if(t.sexpr.id.original!==n.path.original)throw new c(t.sexpr.id.original+" doesn't match "+n.path.original,t);var h=i&&i.program,d={left:t.strip.left,right:n.strip.right,openStandalone:a(e.statements),closeStandalone:s((h||e).statements)};if(t.strip.right&&r(e.statements,null,!0),h){var p=i.strip;p.left&&o(e.statements,null,!0),p.right&&r(h.statements,null,!0),n.strip.left&&o(h.statements,null,!0),s(e.statements)&&a(h.statements)&&(o(e.statements),r(h.statements))}else n.strip.left&&o(e.statements,null,!0);return l?new this.BlockNode(t,h,e,d,u):new this.BlockNode(t,e,h,d,u)}function n(t,e){for(var i=0,n=t.length;n>i;i++){var l=t[i],c=l.strip;if(c){var u=s(t,i,e,"partial"===l.type),h=a(t,i,e),d=c.openStandalone&&u,p=c.closeStandalone&&h,f=c.inlineStandalone&&u&&h;c.right&&r(t,i,!0),c.left&&o(t,i,!0),f&&(r(t,i),o(t,i)&&"partial"===l.type&&(l.indent=/([ \t]+$)/.exec(t[i-1].original)?RegExp.$1:"")),d&&(r((l.program||l.inverse).statements),o(t,i)),p&&(r(t,i),o((l.inverse||l.program).statements))}}return t}function s(t,e,i){void 0===e&&(e=t.length);var n=t[e-1],s=t[e-2];return n?"content"===n.type?(s||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:i}function a(t,e,i){void 0===e&&(e=-1);var n=t[e+1],s=t[e+2];return n?"content"===n.type?(s||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:i}function r(t,e,i){var n=t[null==e?0:e+1];if(n&&"content"===n.type&&(i||!n.rightStripped)){var s=n.string;n.string=n.string.replace(i?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.string!==s}}function o(t,e,i){var n=t[null==e?t.length-1:e-1];if(n&&"content"===n.type&&(i||!n.leftStripped)){var s=n.string;return n.string=n.string.replace(i?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.string!==s,n.leftStripped}}var l={},c=t;return l.stripFlags=e,l.prepareBlock=i,l.prepareProgram=n,l}(i),c=function(t,e,i,n){"use strict";function s(t){return t.constructor===o.ProgramNode?t:(r.yy=u,r.parse(t))}var a={},r=t,o=e,l=i,c=n.extend;a.parser=r;var u={};return c(u,l,o),a.parse=s,a}(o,r,l,e),u=function(t,e){"use strict";function i(){}function n(t,e,i){if(null==t||"string"!=typeof t&&t.constructor!==i.AST.ProgramNode)throw new o("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=i.parse(t),s=(new i.Compiler).compile(n,e);return(new i.JavaScriptCompiler).compile(s,e)}function s(t,e,i){function n(){var n=i.parse(t),s=(new i.Compiler).compile(n,e),a=(new i.JavaScriptCompiler).compile(s,e,void 0,!0);return i.template(a)}if(null==t||"string"!=typeof t&&t.constructor!==i.AST.ProgramNode)throw new o("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var s,a=function(t,e){return s||(s=n()),s.call(this,t,e)};return a._setup=function(t){return s||(s=n()),s._setup(t)},a._child=function(t,e,i){return s||(s=n()),s._child(t,e,i)},a}function a(t,e){if(t===e)return!0;if(l(t)&&l(e)&&t.length===e.length){for(var i=0;i<t.length;i++)if(!a(t[i],e[i]))return!1;return!0}}var r={},o=t,l=e.isArray,c=[].slice;return r.Compiler=i,i.prototype={compiler:i,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return!1;for(var i=0;e>i;i++){var n=this.opcodes[i],s=t.opcodes[i];if(n.opcode!==s.opcode||!a(n.args,s.args))return!1}for(e=this.children.length,i=0;e>i;i++)if(!this.children[i].equals(t.children[i]))return!1;return!0},guid:0,compile:function(t,e){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=e,this.stringParams=e.stringParams,this.trackIds=e.trackIds;var i=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},i)for(var n in i)this.options.knownHelpers[n]=i[n];return this.accept(t)},accept:function(t){return this[t.type](t)},program:function(t){for(var e=t.statements,i=0,n=e.length;n>i;i++)this.accept(e[i]);return this.isSimple=1===n,this.depths.list=this.depths.list.sort(function(t,e){return t-e}),this},compileProgram:function(t){var e,i=(new this.compiler).compile(t,this.options),n=this.guid++;this.usePartial=this.usePartial||i.usePartial,this.children[n]=i;for(var s=0,a=i.depths.list.length;a>s;s++)e=i.depths.list[s],2>e||this.addDepth(e-1);return n},block:function(t){var e=t.mustache,i=t.program,n=t.inverse;i&&(i=this.compileProgram(i)),n&&(n=this.compileProgram(n));var s=e.sexpr,a=this.classifySexpr(s);"helper"===a?this.helperSexpr(s,i,n):"simple"===a?(this.simpleSexpr(s),this.opcode("pushProgram",i),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",s.id.original)):(this.ambiguousSexpr(s,i,n),this.opcode("pushProgram",i),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(t){var e,i,n=t.pairs;for(this.opcode("pushHash"),e=0,i=n.length;i>e;e++)this.pushParam(n[e][1]);for(;e--;)this.opcode("assignToHash",n[e][0]);this.opcode("popHash")},partial:function(t){var e=t.partialName;this.usePartial=!0,t.hash?this.accept(t.hash):this.opcode("push","undefined"),t.context?this.accept(t.context):(this.opcode("getContext",0),this.opcode("pushContext")),this.opcode("invokePartial",e.name,t.indent||""),this.opcode("append")},content:function(t){t.string&&this.opcode("appendContent",t.string)},mustache:function(t){this.sexpr(t.sexpr),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousSexpr:function(t,e,i){var n=t.id,s=n.parts[0],a=null!=e||null!=i;this.opcode("getContext",n.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",i),this.ID(n),this.opcode("invokeAmbiguous",s,a)},simpleSexpr:function(t){var e=t.id;"DATA"===e.type?this.DATA(e):e.parts.length?this.ID(e):(this.addDepth(e.depth),this.opcode("getContext",e.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,i){var n=this.setupFullMustacheParams(t,e,i),s=t.id,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",n.length,a);else{if(this.options.knownHelpersOnly)throw new o("You specified knownHelpersOnly, but used the unknown helper "+a,t);
+s.falsy=!0,this.ID(s),this.opcode("invokeHelper",n.length,s.original,s.isSimple)}},sexpr:function(t){var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ID:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0];e?this.opcode("lookupOnContext",t.parts,t.falsy,t.isScoped):this.opcode("pushContext")},DATA:function(t){this.options.data=!0,this.opcode("lookupData",t.id.depth,t.id.parts)},STRING:function(t){this.opcode("pushString",t.string)},NUMBER:function(t){this.opcode("pushLiteral",t.number)},BOOLEAN:function(t){this.opcode("pushLiteral",t.bool)},comment:function(){},opcode:function(t){this.opcodes.push({opcode:t,args:c.call(arguments,1)})},addDepth:function(t){0!==t&&(this.depths[t]||(this.depths[t]=!0,this.depths.list.push(t)))},classifySexpr:function(t){var e=t.isHelper,i=t.eligibleHelper,n=this.options;if(i&&!e){var s=t.id.parts[0];n.knownHelpers[s]?e=!0:n.knownHelpersOnly&&(i=!1)}return e?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var e=0,i=t.length;i>e;e++)this.pushParam(t[e])},pushParam:function(t){this.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.stringModeValue,t.type),"sexpr"===t.type&&this.sexpr(t)):(this.trackIds&&this.opcode("pushId",t.type,t.idName||t.stringModeValue),this.accept(t))},setupFullMustacheParams:function(t,e,i){var n=t.params;return this.pushParams(n),this.opcode("pushProgram",e),this.opcode("pushProgram",i),t.hash?this.hash(t.hash):this.opcode("emptyHash"),n}},r.precompile=n,r.compile=s,r}(i,e),h=function(t,e){"use strict";function i(t){this.value=t}function n(){}var s,a=t.COMPILER_REVISION,r=t.REVISION_CHANGES,o=e;n.prototype={nameLookup:function(t,e){return n.isValidJavaScriptVariableName(e)?t+"."+e:t+"['"+e+"']"},depthedLookup:function(t){return this.aliases.lookup="this.lookup",'lookup(depths, "'+t+'")'},compilerInfo:function(){var t=a,e=r[t];return[t,e]},appendToBuffer:function(t){return this.environment.isSimple?"return "+t+";":{appendToBuffer:!0,content:t,toString:function(){return"buffer += "+t+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(t,e,i,n){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.depths.list.length||this.options.compat;var s,a,r,l=t.opcodes;for(a=0,r=l.length;r>a;a++)s=l[a],this[s.opcode].apply(this,s.args);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o("Compile completed with content left on stack");var c=this.createFunctionContext(n);if(this.isChild)return c;var u={compiler:this.compilerInfo(),main:c},h=this.context.programs;for(a=0,r=h.length;r>a;a++)h[a]&&(u[a]=h[a]);return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.options.compat&&(u.compat=!0),n||(u.compiler=JSON.stringify(u.compiler),u=this.objectLiteral(u)),u},preamble:function(){this.lastContext=0,this.source=[]},createFunctionContext:function(t){var e="",i=this.stackVars.concat(this.registers.list);i.length>0&&(e+=", "+i.join(", "));for(var n in this.aliases)this.aliases.hasOwnProperty(n)&&(e+=", "+n+"="+this.aliases[n]);var s=["depth0","helpers","partials","data"];this.useDepths&&s.push("depths");var a=this.mergeSource(e);return t?(s.push(a),Function.apply(this,s)):"function("+s.join(",")+") {\n "+a+"}"},mergeSource:function(t){for(var e,i,n="",s=!this.forceBuffer,a=0,r=this.source.length;r>a;a++){var o=this.source[a];o.appendToBuffer?e=e?e+"\n + "+o.content:o.content:(e&&(n?n+="buffer += "+e+";\n ":(i=!0,n=e+";\n "),e=void 0),n+=o+"\n ",this.environment.isSimple||(s=!1))}return s?!e&&n||(n+="return "+(e||'""')+";\n"):(t+=", buffer = "+(i?"":this.initializeBuffer()),n+=e?"return buffer + "+e+";\n":"return buffer;\n"),t&&(n="var "+t.substring(2)+(i?"":";\n ")+n),n},blockValue:function(t){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var e=[this.contextName(0)];this.setupParams(t,0,e);var i=this.popStack();e.splice(1,0,i),this.push("blockHelperMissing.call("+e.join(", ")+")")},ambiguousBlockValue:function(){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var t=[this.contextName(0)];this.setupParams("",0,t,!0),this.flushInline();var e=this.topStack();t.splice(1,0,e),this.pushSource("if (!"+this.lastHelper+") { "+e+" = blockHelperMissing.call("+t.join(", ")+"); }")},appendContent:function(t){this.pendingContent&&(t=this.pendingContent+t),this.pendingContent=t},append:function(){this.flushInline();var t=this.popStack();this.pushSource("if ("+t+" != null) { "+this.appendToBuffer(t)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,i){var n=0,s=t.length;for(i||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[n++]));s>n;n++)this.replaceStack(function(i){var s=this.nameLookup(i,t[n],"context");return e?" && "+s:" != null ? "+s+" : "+i})},lookupData:function(t,e){t?this.pushStackLiteral("this.data(data, "+t+")"):this.pushStackLiteral("data");for(var i=e.length,n=0;i>n;n++)this.replaceStack(function(t){return" && "+this.nameLookup(t,e[n],"data")})},resolvePossibleLambda:function(){this.aliases.lambda="this.lambda",this.push("lambda("+this.popStack()+", "+this.contextName(0)+")")},pushStringParam:function(t,e){this.pushContext(),this.pushString(e),"sexpr"!==e&&("string"==typeof t?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(){this.pushStackLiteral("{}"),this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push("{"+t.ids.join(",")+"}"),this.stringParams&&(this.push("{"+t.contexts.join(",")+"}"),this.push("{"+t.types.join(",")+"}")),this.push("{\n "+t.values.join(",\n ")+"\n }")},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},push:function(t){return this.inlineStack.push(t),t},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){null!=t?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},invokeHelper:function(t,e,i){this.aliases.helperMissing="helpers.helperMissing";var n=this.popStack(),s=this.setupHelper(t,e),a=(i?s.name+" || ":"")+n+" || helperMissing";this.push("(("+a+").call("+s.callParams+"))")},invokeKnownHelper:function(t,e){var i=this.setupHelper(t,e);this.push(i.name+".call("+i.callParams+")")},invokeAmbiguous:function(t,e){this.aliases.functionType='"function"',this.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,t,e),s=this.lastHelper=this.nameLookup("helpers",t,"helper");this.push("((helper = (helper = "+s+" || "+i+") != null ? helper : helperMissing"+(n.paramsInit?"),("+n.paramsInit:"")+"),(typeof helper === functionType ? helper.call("+n.callParams+") : helper))")},invokePartial:function(t,e){var i=[this.nameLookup("partials",t,"partial"),"'"+e+"'","'"+t+"'",this.popStack(),this.popStack(),"helpers","partials"];this.options.data?i.push("data"):this.options.compat&&i.push("undefined"),this.options.compat&&i.push("depths"),this.push("this.invokePartial("+i.join(", ")+")")},assignToHash:function(t){var e,i,n,s=this.popStack();this.trackIds&&(n=this.popStack()),this.stringParams&&(i=this.popStack(),e=this.popStack());var a=this.hash;e&&a.contexts.push("'"+t+"': "+e),i&&a.types.push("'"+t+"': "+i),n&&a.ids.push("'"+t+"': "+n),a.values.push("'"+t+"': ("+s+")")},pushId:function(t,e){"ID"===t||"DATA"===t?this.pushString(e):"sexpr"===t?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:n,compileChildren:function(t,e){for(var i,n,s=t.children,a=0,r=s.length;r>a;a++){i=s[a],n=new this.compiler;var o=this.matchExistingProgram(i);null==o?(this.context.programs.push(""),o=this.context.programs.length,i.index=o,i.name="program"+o,this.context.programs[o]=n.compile(i,e,this.context,!this.precompile),this.context.environments[o]=i,this.useDepths=this.useDepths||n.useDepths):(i.index=o,i.name="program"+o)}},matchExistingProgram:function(t){for(var e=0,i=this.context.environments.length;i>e;e++){var n=this.context.environments[e];if(n&&n.equals(t))return e}},programExpression:function(t){var e=this.environment.children[t],i=(e.depths.list,this.useDepths),n=[e.index,"data"];return i&&n.push("depths"),"this.program("+n.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},pushStackLiteral:function(t){return this.push(new i(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),t&&this.source.push(t)},pushStack:function(t){this.flushInline();var e=this.incrStack();return this.pushSource(e+" = "+t+";"),this.compileStack.push(e),e},replaceStack:function(t){var e,n,s,a="";this.isInline();if(!this.isInline())throw new o("replaceStack on non-inline");var r=this.popStack(!0);if(r instanceof i)a=e=r.value,s=!0;else{n=!this.stackSlot;var l=n?this.incrStack():this.topStackName();a="("+this.push(l)+" = "+r+")",e=this.topStack()}var c=t.call(this,e);s||this.popStack(),n&&this.stackSlot--,this.push("("+a+c+")")},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;if(t.length){this.inlineStack=[];for(var e=0,n=t.length;n>e;e++){var s=t[e];s instanceof i?this.compileStack.push(s):this.pushStack(s)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var e=this.isInline(),n=(e?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof i)return n.value;if(!e){if(!this.stackSlot)throw new o("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,e=t[t.length-1];return e instanceof i?e.value:e},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(this.quotedString(i)+":"+t[i]);return"{"+e.join(",")+"}"},setupHelper:function(t,e,i){var n=[],s=this.setupParams(e,t,n,i),a=this.nameLookup("helpers",e,"helper");return{params:n,paramsInit:s,name:a,callParams:[this.contextName(0)].concat(n).join(", ")}},setupOptions:function(t,e,i){var n,s,a,r={},o=[],l=[],c=[];r.name=this.quotedString(t),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack()),s=this.popStack(),a=this.popStack(),(a||s)&&(a||(a="this.noop"),s||(s="this.noop"),r.fn=a,r.inverse=s);for(var u=e;u--;)n=this.popStack(),i[u]=n,this.trackIds&&(c[u]=this.popStack()),this.stringParams&&(l[u]=this.popStack(),o[u]=this.popStack());return this.trackIds&&(r.ids="["+c.join(",")+"]"),this.stringParams&&(r.types="["+l.join(",")+"]",r.contexts="["+o.join(",")+"]"),this.options.data&&(r.data="data"),r},setupParams:function(t,e,i,n){var s=this.objectLiteral(this.setupOptions(t,e,i));return n?(this.useRegister("options"),i.push("options"),"options="+s):(i.push(s),"")}};for(var l="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),c=n.RESERVED_WORDS={},u=0,h=l.length;h>u;u++)c[l[u]]=!0;return n.isValidJavaScriptVariableName=function(t){return!n.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)},s=n}(n,i),d=function(t,e,i,n,s){"use strict";var a,r=t,o=e,l=i.parser,c=i.parse,u=n.Compiler,h=n.compile,d=n.precompile,p=s,f=r.create,g=function(){var t=f();return t.compile=function(e,i){return h(e,i,t)},t.precompile=function(e,i){return d(e,i,t)},t.AST=o,t.Compiler=u,t.JavaScriptCompiler=p,t.Parser=l,t.parse=c,t};return r=g(),r.create=g,r["default"]=r,a=r}(a,r,c,u,h);return d}),function(t){var e=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return"undefined"==typeof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,i){function n(t,e){return i(e,t)}t.each(e,n)},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,function(t,s){return(n=i.call(null,s,t,e))?void 0:!1}),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,function(t,s){return(n=i.call(null,s,t,e))?!1:void 0}),!!n):n},mixin:t.extend,getUniqueId:function(){var t=0;return function(){return t++}}(),templatify:function(e){function i(){return String(e)}return t.isFunction(e)?e:i},defer:function(t){setTimeout(t,0)},debounce:function(t,e,i){var n,s;return function(){var a,r,o=this,l=arguments;return a=function(){n=null,i||(s=t.apply(o,l))},r=i&&!n,clearTimeout(n),n=setTimeout(a,e),r&&(s=t.apply(o,l)),s}},throttle:function(t,e){var i,n,s,a,r,o;return r=0,o=function(){r=new Date,s=null,a=t.apply(i,n)},function(){var l=new Date,c=e-(l-r);return i=this,n=arguments,0>=c?(clearTimeout(s),s=null,r=l,a=t.apply(i,n)):s||(s=setTimeout(o,c)),a}},noop:function(){}}}(),i="0.10.5",n=function(){"use strict";function t(t){return t=e.toStr(t),t?t.split(/\s+/):[]}function i(t){return t=e.toStr(t),t?t.split(/\W+/):[]}function n(t){return function(){var i=[].slice.call(arguments,0);return function(n){var s=[];return e.each(i,function(i){s=s.concat(t(e.toStr(n[i])))}),s}}}return{nonword:i,whitespace:t,obj:{nonword:n(i),whitespace:n(t)}}}(),s=function(){"use strict";function i(i){this.maxSize=e.isNumber(i)?i:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function n(){this.head=this.tail=null}function s(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(i.prototype,{set:function(t,e){var i,n=this.list.tail;this.size>=this.maxSize&&(this.list.remove(n),delete this.hash[n.key]),(i=this.hash[t])?(i.val=e,this.list.moveToFront(i)):(i=new s(t,e),this.list.add(i),this.hash[t]=i,this.size++)},get:function(t){var e=this.hash[t];return e?(this.list.moveToFront(e),e.val):void 0},reset:function(){this.size=0,this.hash={},this.list=new n}}),e.mixin(n.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),i}(),a=function(){"use strict";function t(t){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix))}function i(){return(new Date).getTime()}function n(t){return JSON.stringify(e.isUndefined(t)?null:t)}function s(t){return JSON.parse(t)}var a,r;try{a=window.localStorage,a.setItem("~~~","!"),a.removeItem("~~~")}catch(o){a=null}return r=a&&window.JSON?{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),s(a.getItem(this._prefix(t)))},set:function(t,s,r){return e.isNumber(r)?a.setItem(this._ttlKey(t),n(i()+r)):a.removeItem(this._ttlKey(t)),a.setItem(this._prefix(t),n(s))},remove:function(t){return a.removeItem(this._ttlKey(t)),a.removeItem(this._prefix(t)),this},clear:function(){var t,e,i=[],n=a.length;for(t=0;n>t;t++)(e=a.key(t)).match(this.keyMatcher)&&i.push(e.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(t){var n=s(a.getItem(this._ttlKey(t)));return!!(e.isNumber(n)&&i()>n)}}:{get:e.noop,set:e.noop,remove:e.noop,clear:e.noop,isExpired:e.noop},e.mixin(t.prototype,r),t}(),r=function(){"use strict";function i(e){e=e||{},this.cancelled=!1,this.lastUrl=null,this._send=e.transport?n(e.transport):t.ajax,this._get=e.rateLimiter?e.rateLimiter(this._get):this._get,this._cache=e.cache===!1?new s(0):l}function n(i){return function(n,s){function a(t){e.defer(function(){o.resolve(t)})}function r(t){e.defer(function(){o.reject(t)})}var o=t.Deferred();return i(n,s,a,r),o}}var a=0,r={},o=6,l=new s(10);return i.setMaxPendingRequests=function(t){o=t},i.resetCache=function(){l.reset()},e.mixin(i.prototype,{_get:function(t,e,i){function n(e){i&&i(null,e),u._cache.set(t,e)}function s(){i&&i(!0)}function l(){a--,delete r[t],u.onDeckRequestArgs&&(u._get.apply(u,u.onDeckRequestArgs),u.onDeckRequestArgs=null)}var c,u=this;this.cancelled||t!==this.lastUrl||((c=r[t])?c.done(n).fail(s):o>a?(a++,r[t]=this._send(t,e).done(n).fail(s).always(l)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(t,i,n){var s;return e.isFunction(i)&&(n=i,i={}),this.cancelled=!1,this.lastUrl=t,(s=this._cache.get(t))?e.defer(function(){n&&n(null,s)}):this._get(t,i,n),!!s},cancel:function(){this.cancelled=!0}}),i}(),o=function(){"use strict";function i(e){e=e||{},e.datumTokenizer&&e.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.datumTokenizer=e.datumTokenizer,this.queryTokenizer=e.queryTokenizer,this.reset()}function n(t){return t=e.filter(t,function(t){return!!t}),t=e.map(t,function(t){return t.toLowerCase()})}function s(){return{ids:[],children:{}}}function a(t){for(var e={},i=[],n=0,s=t.length;s>n;n++)e[t[n]]||(e[t[n]]=!0,i.push(t[n]));return i}function r(t,e){function i(t,e){return t-e}var n=0,s=0,a=[];t=t.sort(i),e=e.sort(i);for(var r=t.length,o=e.length;r>n&&o>s;)t[n]<e[s]?n++:t[n]>e[s]?s++:(a.push(t[n]),n++,s++);return a}return e.mixin(i.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var i=this;t=e.isArray(t)?t:[t],e.each(t,function(t){var a,r;a=i.datums.push(t)-1,r=n(i.datumTokenizer(t)),e.each(r,function(t){var e,n,r;for(e=i.trie,n=t.split("");r=n.shift();)e=e.children[r]||(e.children[r]=s()),e.ids.push(a)})})},get:function(t){var i,s,o=this;return i=n(this.queryTokenizer(t)),e.each(i,function(t){var e,i,n,a;if(s&&0===s.length)return!1;for(e=o.trie,i=t.split("");e&&(n=i.shift());)e=e.children[n];return e&&0===i.length?(a=e.ids.slice(0),void(s=s?r(s,a):a)):(s=[],!1)}),s?e.map(a(s),function(t){return o.datums[t]}):[]},reset:function(){this.datums=[],this.trie=s()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),l=function(){"use strict";function n(t){return t.local||null}function s(n){var s,a;return a={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(s=n.prefetch||null)&&(s=e.isString(s)?{url:s}:s,s=e.mixin(a,s),s.thumbprint=i+s.thumbprint,s.ajax.type=s.ajax.type||"GET",s.ajax.dataType=s.ajax.dataType||"json",!s.url&&t.error("prefetch requires url to be set")),s}function a(i){function n(t){return function(i){return e.debounce(i,t)}}function s(t){return function(i){return e.throttle(i,t)}}var a,r;return r={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(a=i.remote||null)&&(a=e.isString(a)?{url:a}:a,a=e.mixin(r,a),a.rateLimiter=/^throttle$/i.test(a.rateLimitBy)?s(a.rateLimitWait):n(a.rateLimitWait),a.ajax.type=a.ajax.type||"GET",a.ajax.dataType=a.ajax.dataType||"json",delete a.rateLimitBy,delete a.rateLimitWait,!a.url&&t.error("remote requires url to be set")),a}return{local:n,prefetch:s,remote:a}}();!function(i){"use strict";function s(e){e&&(e.local||e.prefetch||e.remote)||t.error("one of local, prefetch, or remote is required"),this.limit=e.limit||5,this.sorter=c(e.sorter),this.dupDetector=e.dupDetector||u,this.local=l.local(e),this.prefetch=l.prefetch(e),this.remote=l.remote(e),this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null,this.index=new o({datumTokenizer:e.datumTokenizer,queryTokenizer:e.queryTokenizer}),this.storage=this.cacheKey?new a(this.cacheKey):null}function c(t){function i(e){return e.sort(t)}function n(t){return t}return e.isFunction(t)?i:n}function u(){return!1}var h,d;return h=i.Bloodhound,d={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=s,s.noConflict=function(){return i.Bloodhound=h,s},s.tokenizers=n,e.mixin(s.prototype,{_loadPrefetch:function(e){function i(t){a.clear(),a.add(e.filter?e.filter(t):t),a._saveToStorage(a.index.serialize(),e.thumbprint,e.ttl)}var n,s,a=this;return(n=this._readFromStorage(e.thumbprint))?(this.index.bootstrap(n),s=t.Deferred().resolve()):s=t.ajax(e.url,e.ajax).done(i),s},_getFromRemote:function(t,e){function i(t,i){e(t?[]:a.remote.filter?a.remote.filter(i):i)}var n,s,a=this;if(this.transport)return t=t||"",s=encodeURIComponent(t),n=this.remote.replace?this.remote.replace(this.remote.url,t):this.remote.url.replace(this.remote.wildcard,s),this.transport.get(n,this.remote.ajax,i)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(t,e,i){this.storage&&(this.storage.set(d.data,t,i),this.storage.set(d.protocol,location.protocol,i),this.storage.set(d.thumbprint,e,i))},_readFromStorage:function(t){var e,i={};return this.storage&&(i.data=this.storage.get(d.data),i.protocol=this.storage.get(d.protocol),i.thumbprint=this.storage.get(d.thumbprint)),e=i.thumbprint!==t||i.protocol!==location.protocol,i.data&&!e?i.data:null},_initialize:function(){function i(){s.add(e.isFunction(a)?a():a)}var n,s=this,a=this.local;return n=this.prefetch?this._loadPrefetch(this.prefetch):t.Deferred().resolve(),a&&n.done(i),this.transport=this.remote?new r(this.remote):null,this.initPromise=n.promise()},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){this.index.add(t)},get:function(t,i){function n(t){var n=a.slice(0);e.each(t,function(t){var i;return i=e.some(n,function(e){return s.dupDetector(t,e)}),!i&&n.push(t),n.length<s.limit}),i&&i(s.sorter(n))}var s=this,a=[],r=!1;a=this.index.get(t),a=this.sorter(a).slice(0,this.limit),a.length<this.limit?r=this._getFromRemote(t,n):this._cancelLastRemoteRequest(),r||(a.length>0||!this.transport)&&i&&i(a)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&r.resetCache()},ttAdapter:function(){return e.bind(this.get,this)}}),s}(this);var c=function(){return{wrapper:'<span class="twitter-typeahead"></span>',dropdown:'<span class="tt-dropdown-menu"></span>',dataset:'<div class="tt-dataset-%CLASS%"></div>',suggestions:'<span class="tt-suggestions"></span>',suggestion:'<div class="tt-suggestion"></div>'}}(),u=function(){"use strict";var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),e.isMsie()&&e.isMsie()<=7&&e.mixin(t.input,{marginTop:"-1px"}),t}(),h=function(){"use strict";function i(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var n="typeahead:";return e.mixin(i.prototype,{trigger:function(t){var e=[].slice.call(arguments,1);this.$el.trigger(n+t,e)}}),i}(),d=function(){"use strict";function t(t,e,i,n){var s;if(!i)return this;for(e=e.split(l),i=n?o(i,n):i,this._callbacks=this._callbacks||{};s=e.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][t].push(i);return this}function e(e,i,n){return t.call(this,"async",e,i,n)}function i(e,i,n){return t.call(this,"sync",e,i,n)}function n(t){var e;if(!this._callbacks)return this;for(t=t.split(l);e=t.shift();)delete this._callbacks[e];return this}function s(t){var e,i,n,s,r;if(!this._callbacks)return this;for(t=t.split(l),n=[].slice.call(arguments,1);(e=t.shift())&&(i=this._callbacks[e]);)s=a(i.sync,this,[e].concat(n)),r=a(i.async,this,[e].concat(n)),s()&&c(r);return this}function a(t,e,i){function n(){for(var n,s=0,a=t.length;!n&&a>s;s+=1)n=t[s].apply(e,i)===!1;return!n}return n}function r(){var t;return t=window.setImmediate?function(t){setImmediate(function(){t()})}:function(t){setTimeout(function(){t()},0)}}function o(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}var l=/\s+/,c=r();return{onSync:i,onAsync:e,off:n,trigger:s}}(),p=function(t){"use strict";function i(t,i,n){for(var s,a=[],r=0,o=t.length;o>r;r++)a.push(e.escapeRegExChars(t[r]));return s=n?"\\b("+a.join("|")+")\\b":"("+a.join("|")+")",i?new RegExp(s):new RegExp(s,"i")}var n={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(s){function a(e){var i,n,a;return(i=o.exec(e.data))&&(a=t.createElement(s.tagName),s.className&&(a.className=s.className),n=e.splitText(i.index),n.splitText(i[0].length),a.appendChild(n.cloneNode(!0)),e.parentNode.replaceChild(a,n)),!!i}function r(t,e){for(var i,n=3,s=0;s<t.childNodes.length;s++)i=t.childNodes[s],i.nodeType===n?s+=e(i)?1:0:r(i,e)}var o;s=e.mixin({},n,s),s.node&&s.pattern&&(s.pattern=e.isArray(s.pattern)?s.pattern:[s.pattern],o=i(s.pattern,s.caseSensitive,s.wordsOnly),r(s.node,a))}}(window.document),f=function(){"use strict";function i(i){var s,a,o,l,c=this;i=i||{},i.input||t.error("input is missing"),s=e.bind(this._onBlur,this),a=e.bind(this._onFocus,this),o=e.bind(this._onKeydown,this),l=e.bind(this._onInput,this),this.$hint=t(i.hint),this.$input=t(i.input).on("blur.tt",s).on("focus.tt",a).on("keydown.tt",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=e.noop),e.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(t){r[t.which||t.keyCode]||e.defer(e.bind(c._onInput,c,t))}):this.$input.on("input.tt",l),this.query=this.$input.val(),this.$overflowHelper=n(this.$input)}function n(e){return t('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function s(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}function a(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}var r;return r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},e.mixin(i.prototype,d,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=r[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var i,n,s;switch(t){case"tab":n=this.getHint(),s=this.getInputValue(),i=n&&n!==s&&!a(e);break;case"up":case"down":i=!a(e);break;default:i=!1}i&&e.preventDefault()},_shouldTrigger:function(t,e){var i;switch(t){case"tab":i=!a(e);break;default:i=!0}return i},_checkInputValue:function(){var t,e,i;t=this.getInputValue(),e=s(t,this.query),i=e?this.query.length!==t.length:!1,this.query=t,e?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){this.$input.val(t),e?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,i,n;t=this.getInputValue(),e=this.getHint(),i=t!==e&&0===e.indexOf(t),n=""!==t&&i&&!this.hasOverflow(),!n&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,i,n;return t=this.$input.val().length,i=this.$input[0].selectionStart,e.isNumber(i)?i===t:document.selection?(n=document.selection.createRange(),n.moveStart("character",-t),t===n.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$hint=this.$input=this.$overflowHelper=null}}),i}(),g=function(){"use strict";function i(i){i=i||{},i.templates=i.templates||{},i.source||t.error("missing source"),i.name&&!a(i.name)&&t.error("invalid dataset name: "+i.name),this.query=null,this.highlight=!!i.highlight,this.name=i.name||e.getUniqueId(),this.source=i.source,this.displayFn=n(i.display||i.displayKey),this.templates=s(i.templates,this.displayFn),this.$el=t(c.dataset.replace("%CLASS%",this.name))}function n(t){function i(e){return e[t]}return t=t||"value",e.isFunction(t)?t:i}function s(t,i){function n(t){return"<p>"+i(t)+"</p>"}return{empty:t.empty&&e.templatify(t.empty),header:t.header&&e.templatify(t.header),footer:t.footer&&e.templatify(t.footer),suggestion:t.suggestion||n}}function a(t){return/^[_a-zA-Z0-9-]+$/.test(t)}var r="ttDataset",o="ttValue",l="ttDatum";return i.extractDatasetName=function(e){return t(e).data(r)},i.extractValue=function(e){return t(e).data(o)},i.extractDatum=function(e){return t(e).data(l)},e.mixin(i.prototype,d,{_render:function(i,n){function s(){return g.templates.empty({query:i,isEmpty:!0})}function a(){function s(e){var i;return i=t(c.suggestion).append(g.templates.suggestion(e)).data(r,g.name).data(o,g.displayFn(e)).data(l,e),i.children().each(function(){t(this).css(u.suggestionChild)}),i}var a,h;return a=t(c.suggestions).css(u.suggestions),h=e.map(n,s),a.append.apply(a,h),g.highlight&&p({className:"tt-highlight",node:a[0],pattern:i}),a}function h(){return g.templates.header({query:i,isEmpty:!f})}function d(){return g.templates.footer({query:i,isEmpty:!f})}if(this.$el){var f,g=this;
+this.$el.empty(),f=n&&n.length,!f&&this.templates.empty?this.$el.html(s()).prepend(g.templates.header?h():null).append(g.templates.footer?d():null):f&&this.$el.html(a()).prepend(g.templates.header?h():null).append(g.templates.footer?d():null),this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(t){function e(e){i.canceled||t!==i.query||i._render(t,e)}var i=this;this.query=t,this.canceled=!1,this.source(t,e)},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),i}(),m=function(){"use strict";function i(i){var s,a,r,o=this;i=i||{},i.menu||t.error("menu is required"),this.isOpen=!1,this.isEmpty=!0,this.datasets=e.map(i.datasets,n),s=e.bind(this._onSuggestionClick,this),a=e.bind(this._onSuggestionMouseEnter,this),r=e.bind(this._onSuggestionMouseLeave,this),this.$menu=t(i.menu).on("click.tt",".tt-suggestion",s).on("mouseenter.tt",".tt-suggestion",a).on("mouseleave.tt",".tt-suggestion",r),e.each(this.datasets,function(t){o.$menu.append(t.getRoot()),t.onSync("rendered",o._onRendered,o)})}function n(t){return new g(t)}return e.mixin(i.prototype,d,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",t(e.currentTarget))},_onSuggestionMouseEnter:function(e){this._removeCursor(),this._setCursor(t(e.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function t(t){return t.isEmpty()}this.isEmpty=e.every(this.datasets,t),this.isEmpty?this._hide():this.isOpen&&this._show(),this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(t,e){t.first().addClass("tt-cursor"),!e&&this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(t){var e,i,n,s;if(this.isOpen){if(i=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),n=e.index(i)+t,n=(n+1)%(e.length+1)-1,-1===n)return void this.trigger("cursorRemoved");-1>n&&(n=e.length-1),this._setCursor(s=e.eq(n)),this._ensureVisible(s)}},_ensureVisible:function(t){var e,i,n,s;e=t.position().top,i=e+t.outerHeight(!0),n=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),0>e?this.$menu.scrollTop(n+e):i>s&&this.$menu.scrollTop(n+(i-s))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?u.ltr:u.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:g.extractDatum(t),value:g.extractValue(t),datasetName:g.extractDatasetName(t)}),e},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(t){function i(e){e.update(t)}e.each(this.datasets,i)},empty:function(){function t(t){t.clear()}e.each(this.datasets,t),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function t(t){t.destroy()}this.$menu.off(".tt"),this.$menu=null,e.each(this.datasets,t)}}),i}(),v=function(){"use strict";function i(i){var s,a,r;i=i||{},i.input||t.error("missing input"),this.isActivated=!1,this.autoselect=!!i.autoselect,this.minLength=e.isNumber(i.minLength)?i.minLength:1,this.$node=n(i.input,i.withHint),s=this.$node.find(".tt-dropdown-menu"),a=this.$node.find(".tt-input"),r=this.$node.find(".tt-hint"),a.on("blur.tt",function(t){var i,n,r;i=document.activeElement,n=s.is(i),r=s.has(i).length>0,e.isMsie()&&(n||r)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer(function(){a.focus()}))}),s.on("mousedown.tt",function(t){t.preventDefault()}),this.eventBus=i.eventBus||new h({el:a}),this.dropdown=new m({menu:s,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new f({input:a,hint:r}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._setLanguageDirection()}function n(e,i){var n,a,o,l;n=t(e),a=t(c.wrapper).css(u.wrapper),o=t(c.dropdown).css(u.dropdown),l=n.clone().css(u.hint).css(s(n)),l.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1}),n.data(r,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")}),n.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(i?u.input:u.inputWithNoHint);try{!n.attr("dir")&&n.attr("dir","auto")}catch(h){}return n.wrap(a).parent().prepend(i?l:null).append(o)}function s(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function a(t){var i=t.find(".tt-input");e.each(i.data(r),function(t,n){e.isUndefined(t)?i.removeAttr(n):i.attr(n,t)}),i.detach().removeData(r).removeClass("tt-input").insertAfter(t),t.remove()}var r="ttAttrs";return e.mixin(i.prototype,{_onSuggestionClicked:function(t,e){var i;(i=this.dropdown.getDatumForSuggestion(e))&&this._select(i)},_onCursorMoved:function(){var t=this.dropdown.getDatumForCursor();this.input.setInputValue(t.value,!0),this.eventBus.trigger("cursorchanged",t.raw,t.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint(),this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0,this.dropdown.open()},_onBlurred:function(){this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()},_onEnterKeyed:function(t,e){var i,n;i=this.dropdown.getDatumForCursor(),n=this.dropdown.getDatumForTopSuggestion(),i?(this._select(i),e.preventDefault()):this.autoselect&&n&&(this._select(n),e.preventDefault())},_onTabKeyed:function(t,e){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),e.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t;this.dir!==(t=this.input.getLanguageDirection())&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,i,n,s,a,r;t=this.dropdown.getDatumForTopSuggestion(),t&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(i=this.input.getInputValue(),n=f.normalizeQuery(i),s=e.escapeRegExChars(n),a=new RegExp("^(?:"+s+")(.+$)","i"),r=a.exec(t.value),r?this.input.setHint(i+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,i,n,s;e=this.input.getHint(),i=this.input.getQuery(),n=t||this.input.isCursorAtEnd(),e&&i!==e&&n&&(s=this.dropdown.getDatumForTopSuggestion(),s&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t){this.input.setQuery(t.value),this.input.setInputValue(t.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",t.raw,t.datasetName),this.dropdown.close(),e.defer(e.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=e.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),a(this.$node),this.$node=null}}),i}();!function(){"use strict";var i,n,s;i=t.fn.typeahead,n="ttTypeahead",s={initialize:function(i,s){function a(){var a,r,o=t(this);e.each(s,function(t){t.highlight=!!i.highlight}),r=new v({input:o,eventBus:a=new h({el:o}),withHint:e.isUndefined(i.hint)?!0:!!i.hint,minLength:i.minLength,autoselect:i.autoselect,datasets:s}),o.data(n,r)}return s=e.isArray(s)?s:[].slice.call(arguments,1),i=i||{},this.each(a)},open:function(){function e(){var e,i=t(this);(e=i.data(n))&&e.open()}return this.each(e)},close:function(){function e(){var e,i=t(this);(e=i.data(n))&&e.close()}return this.each(e)},val:function(e){function i(){var i,s=t(this);(i=s.data(n))&&i.setVal(e)}function s(t){var e,i;return(e=t.data(n))&&(i=e.getVal()),i}return arguments.length?this.each(i):s(this.first())},destroy:function(){function e(){var e,i=t(this);(e=i.data(n))&&(e.destroy(),i.removeData(n))}return this.each(e)}},t.fn.typeahead=function(e){var i;return s[e]&&"initialize"!==e?(i=this.filter(function(){return!!t(this).data(n)}),s[e].apply(i,[].slice.call(arguments,1))):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=i,this}}()}(window.jQuery),function(t,e,i,n){"use strict";function s(t){return("string"==typeof t||t instanceof String)&&(t=t.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),t}var a=function(e){for(var i=e.length,n=t("head");i--;)0===n.has("."+e[i]).length&&n.append('<meta class="'+e[i]+'" />')};a(["foundation-mq-small","foundation-mq-medium","foundation-mq-large","foundation-mq-xlarge","foundation-mq-xxlarge","foundation-data-attribute-namespace"]),t(function(){"undefined"!=typeof FastClick&&"undefined"!=typeof i.body&&FastClick.attach(i.body)});var r=function(e,n){if("string"==typeof e){if(n){var s;if(n.jquery){if(s=n[0],!s)return n}else s=n;return t(s.querySelectorAll(e))}return t(i.querySelectorAll(e))}return t(e,n)},o=function(t){var e=[];return t||e.push("data"),this.namespace.length>0&&e.push(this.namespace),e.push(this.name),e.join("-")},l=function(t){for(var e=t.split("-"),i=e.length,n=[];i--;)0!==i?n.push(e[i]):this.namespace.length>0?n.push(this.namespace,e[i]):n.push(e[i]);return n.reverse().join("-")},c=function(e,i){var n=this,s=!r(this).data(this.attr_name(!0));return r(this.scope).is("["+this.attr_name()+"]")?(r(this.scope).data(this.attr_name(!0)+"-init",t.extend({},this.settings,i||e,this.data_options(r(this.scope)))),s&&this.events(this.scope)):r("["+this.attr_name()+"]",this.scope).each(function(){var s=!r(this).data(n.attr_name(!0)+"-init");r(this).data(n.attr_name(!0)+"-init",t.extend({},n.settings,i||e,n.data_options(r(this)))),s&&n.events(this)}),"string"==typeof e?this[e].call(this,i):void 0},u=function(t,e){function i(){e(t[0])}function n(){if(this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?void(t[0].complete||4===t[0].readyState?i():n.call(t)):void i()};e.matchMedia=e.matchMedia||function(t){var e,i=t.documentElement,n=i.firstElementChild||i.firstChild,s=t.createElement("body"),a=t.createElement("div");return a.id="mq-test-1",a.style.cssText="position:absolute;top:-100em",s.style.background="none",s.appendChild(a),function(t){return a.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(s,n),e=42===a.offsetWidth,i.removeChild(s),{matches:e,media:t}}}(i),function(t){function i(){n&&(r(i),l&&jQuery.fx.tick())}for(var n,s=0,a=["webkit","moz"],r=e.requestAnimationFrame,o=e.cancelAnimationFrame,l="undefined"!=typeof jQuery.fx;s<a.length&&!r;s++)r=e[a[s]+"RequestAnimationFrame"],o=o||e[a[s]+"CancelAnimationFrame"]||e[a[s]+"CancelRequestAnimationFrame"];r?(e.requestAnimationFrame=r,e.cancelAnimationFrame=o,l&&(jQuery.fx.timer=function(t){t()&&jQuery.timers.push(t)&&!n&&(n=!0,i())},jQuery.fx.stop=function(){n=!1})):(e.requestAnimationFrame=function(t){var i=(new Date).getTime(),n=Math.max(0,16-(i-s)),a=e.setTimeout(function(){t(i+n)},n);return s=i+n,a},e.cancelAnimationFrame=function(t){clearTimeout(t)})}(jQuery),e.Foundation={name:"Foundation",version:"5.4.7",media_queries:{small:r(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:r(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:r(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:r(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:r(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:t("<style></style>").appendTo("head")[0].sheet,global:{namespace:n},init:function(t,i,n,s,a){var o=[t,n,s,a],l=[];if(this.rtl=/rtl/i.test(r("html").attr("dir")),this.scope=t||this.scope,this.set_namespace(),i&&"string"==typeof i&&!/reflow/i.test(i))this.libs.hasOwnProperty(i)&&l.push(this.init_lib(i,o));else for(var c in this.libs)l.push(this.init_lib(c,i));return r(e).load(function(){r(e).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider")}),t},init_lib:function(e,i){return this.libs.hasOwnProperty(e)?(this.patch(this.libs[e]),i&&i.hasOwnProperty(e)?("undefined"!=typeof this.libs[e].settings?t.extend(!0,this.libs[e].settings,i[e]):"undefined"!=typeof this.libs[e].defaults&&t.extend(!0,this.libs[e].defaults,i[e]),this.libs[e].init.apply(this.libs[e],[this.scope,i[e]])):(i=i instanceof Array?i:new Array(i),this.libs[e].init.apply(this.libs[e],i))):function(){}},patch:function(t){t.scope=this.scope,t.namespace=this.global.namespace,t.rtl=this.rtl,t.data_options=this.utils.data_options,t.attr_name=o,t.add_namespace=l,t.bindings=c,t.S=this.utils.S},inherit:function(t,e){for(var i=e.split(" "),n=i.length;n--;)this.utils.hasOwnProperty(i[n])&&(t[i[n]]=this.utils[i[n]])},set_namespace:function(){var e=this.global.namespace===n?t(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=e===n||/false/i.test(e)?"":e},libs:{},utils:{S:r,throttle:function(t,e){var i=null;return function(){var n=this,s=arguments;null==i&&(i=setTimeout(function(){t.apply(n,s),i=null},e))}},debounce:function(t,e,i){var n,s;return function(){var a=this,r=arguments,o=function(){n=null,i||(s=t.apply(a,r))},l=i&&!n;return clearTimeout(n),n=setTimeout(o,e),l&&(s=t.apply(a,r)),s}},data_options:function(e,i){function n(t){return!isNaN(t-0)&&null!==t&&""!==t&&t!==!1&&t!==!0}function s(e){return"string"==typeof e?t.trim(e):e}i=i||"options";var a,r,o,l={},c=function(t){var e=Foundation.global.namespace;return e.length>0?t.data(e+"-"+i):t.data(i)},u=c(e);if("object"==typeof u)return u;for(o=(u||":").split(";"),a=o.length;a--;)r=o[a].split(":"),r=[r[0],r.slice(1).join(":")],/true/i.test(r[1])&&(r[1]=!0),/false/i.test(r[1])&&(r[1]=!1),n(r[1])&&(-1===r[1].indexOf(".")?r[1]=parseInt(r[1],10):r[1]=parseFloat(r[1])),2===r.length&&r[0].length>0&&(l[s(r[0])]=s(r[1]));return l},register_media:function(e,i){Foundation.media_queries[e]===n&&(t("head").append('<meta class="'+i+'"/>'),Foundation.media_queries[e]=s(t("."+i).css("font-family")))},add_custom_rule:function(t,e){if(e===n&&Foundation.stylesheet)Foundation.stylesheet.insertRule(t,Foundation.stylesheet.cssRules.length);else{var i=Foundation.media_queries[e];i!==n&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+t+" }")}},image_loaded:function(t,e){var i=this,n=t.length;0===n&&e(t),t.each(function(){u(i.S(this),function(){n-=1,0===n&&e(t)})})},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+new Date).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)}}},t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(t)),this})}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.abide={name:"abide",version:"5.4.7",settings:{live_validate:!0,focus_on_invalid:!0,error_labels:!0,error_class:"error",timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[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])?)+$/,url:/^(https?|ftp|file|ssh):\/\/(((([a-zA-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-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(t,e,n){var s=i.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,a=t.value,r=s===a;return r}}},timer:null,init:function(t,e,i){this.bindings(e,i)},events:function(e){var i=this,n=i.S(e).attr("novalidate","novalidate"),s=n.data(this.attr_name(!0)+"-init")||{};this.invalid_attr=this.add_namespace("data-invalid"),n.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",function(t){var e=/ajax/i.test(i.S(this).attr(i.attr_name()));return i.validate(i.S(this).find("input, textarea, select").get(),t,e)}).on("reset",function(){return i.reset(t(this))}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(t){i.validate([this],t)}).on("keydown.fndtn.abide",function(t){s.live_validate===!0&&(clearTimeout(i.timer),i.timer=setTimeout(function(){i.validate([this],t)}.bind(this),s.timeout))})},reset:function(e){e.removeAttr(this.invalid_attr),t(this.invalid_attr,e).removeAttr(this.invalid_attr),t("."+this.settings.error_class,e).not("small").removeClass(this.settings.error_class)},validate:function(t,e,i){for(var n=this.parse_patterns(t),s=n.length,a=this.S(t[0]).closest("form"),r=/submit/.test(e.type),o=0;s>o;o++)if(!n[o]&&(r||i))return this.settings.focus_on_invalid&&t[o].focus(),a.trigger("invalid"),this.S(t[o]).closest("form").attr(this.invalid_attr,""),!1;return(r||i)&&a.trigger("valid"),a.removeAttr(this.invalid_attr),!i},parse_patterns:function(t){for(var e=t.length,i=[];e--;)i.push(this.pattern(t[e]));return this.check_validation_and_apply_styles(i)},pattern:function(t){var e=t.getAttribute("type"),i="string"==typeof t.getAttribute("required"),n=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(n)&&n.length>0?[t,this.settings.patterns[n],i]:n.length>0?[t,new RegExp(n),i]:this.settings.patterns.hasOwnProperty(e)?[t,this.settings.patterns[e],i]:(n=/.*/,[t,n,i])},check_validation_and_apply_styles:function(e){var i=e.length,n=[],s=this.S(e[0][0]).closest("[data-"+this.attr_name(!0)+"]");for(s.data(this.attr_name(!0)+"-init")||{};i--;){var a,r,o=e[i][0],l=e[i][2],c=o.value.trim(),u=this.S(o).parent(),h=o.getAttribute(this.add_namespace("data-abide-validator")),d="radio"===o.type,p="checkbox"===o.type,f=this.S('label[for="'+o.getAttribute("id")+'"]'),g=l?o.value.length>0:!0,m=[];if(o.getAttribute(this.add_namespace("data-equalto"))&&(h="equalTo"),a=u.is("label")?u.parent():u,h&&(r=this.settings.validators[h].apply(this,[o,l,a]),m.push(r)),d&&l)m.push(this.valid_radio(o,l));else if(p&&l)m.push(this.valid_checkbox(o,l));else if(e[i][1].test(c)&&g||!l&&o.value.length<1||t(o).attr("disabled")?m.push(!0):m.push(!1),m=[m.every(function(t){return t})],m[0])this.S(o).removeAttr(this.invalid_attr),o.setAttribute("aria-invalid","false"),o.removeAttribute("aria-describedby"),a.removeClass(this.settings.error_class),f.length>0&&this.settings.error_labels&&f.removeClass(this.settings.error_class).removeAttr("role"),t(o).triggerHandler("valid");else{this.S(o).attr(this.invalid_attr,""),o.setAttribute("aria-invalid","true");var v=a.find("small."+this.settings.error_class,"span."+this.settings.error_class),b=v.length>0?v[0].id:"";b.length>0&&o.setAttribute("aria-describedby",b),a.addClass(this.settings.error_class),f.length>0&&this.settings.error_labels&&f.addClass(this.settings.error_class).attr("role","alert"),t(o).triggerHandler("invalid")}n.push(m[0])}return n=[n.every(function(t){return t})]},valid_checkbox:function(t,e){var t=this.S(t),i=t.is(":checked")||!e;return i?t.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class):t.attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),i},valid_radio:function(t,e){for(var i=t.getAttribute("name"),n=this.S(t).closest("[data-"+this.attr_name(!0)+"]").find("[name='"+i+"']"),s=n.length,a=!1,r=0;s>r;r++)n[r].checked&&(a=!0);for(var r=0;s>r;r++)a?this.S(n[r]).removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class):this.S(n[r]).attr(this.invalid_attr,"").parent().addClass(this.settings.error_class);return a},valid_equal:function(t,e,n){var s=i.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,a=t.value,r=s===a;return r?(this.S(t).removeAttr(this.invalid_attr),n.removeClass(this.settings.error_class),label.length>0&&settings.error_labels&&label.removeClass(this.settings.error_class)):(this.S(t).attr(this.invalid_attr,""),n.addClass(this.settings.error_class),label.length>0&&settings.error_labels&&label.addClass(this.settings.error_class)),r},valid_oneof:function(t,e,i,n){var t=this.S(t),s=this.S("["+this.add_namespace("data-oneof")+"]"),a=s.filter(":checked").length>0;if(a?t.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class):t.attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),!n){var r=this;s.each(function(){r.valid_oneof.call(r,this,null,null,!0)})}return a}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.4.7",settings:{content_class:"content",active_class:"active",multi_expand:!1,toggleable:!0,callback:function(){}},init:function(t,e,i){this.bindings(e,i)},events:function(){var e=this,i=this.S;i(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] > dd > a",function(n){var s=i(this).closest("["+e.attr_name()+"]"),a=e.attr_name()+"="+s.attr(e.attr_name()),r=s.data(e.attr_name(!0)+"-init"),o=i("#"+this.href.split("#")[1]),l=t("> dd",s),c=l.children("."+r.content_class),u=c.filter("."+r.active_class);return n.preventDefault(),s.attr(e.attr_name())&&(c=c.add("["+a+"] dd > ."+r.content_class),l=l.add("["+a+"] dd")),r.toggleable&&o.is(u)?(o.parent("dd").toggleClass(r.active_class,!1),o.toggleClass(r.active_class,!1),r.callback(o),o.triggerHandler("toggled",[s]),void s.triggerHandler("toggled",[o])):(r.multi_expand||(c.removeClass(r.active_class),l.removeClass(r.active_class)),o.addClass(r.active_class).parent().addClass(r.active_class),r.callback(o),o.triggerHandler("toggled",[s]),void s.triggerHandler("toggled",[o]))})},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.alert={name:"alert",version:"5.4.7",settings:{callback:function(){}},init:function(t,e,i){this.bindings(e,i)},events:function(){var e=this,i=this.S;t(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] .close",function(t){var n=i(this).closest("["+e.attr_name()+"]"),s=n.data(e.attr_name(!0)+"-init")||e.settings;t.preventDefault(),Modernizr.csstransitions?(n.addClass("alert-close"),n.on("transitionend webkitTransitionEnd oTransitionEnd",function(t){i(this).trigger("close").trigger("close.fndtn.alert").remove(),s.callback()})):n.fadeOut(300,function(){i(this).trigger("close").trigger("close.fndtn.alert").remove(),s.callback()})})},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.4.7",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><div class="clearing-touch-label"></div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close, div.clearing-blackout",open_selectors:"",skip_selector:"",touch_label:"",init:!1,locked:!1},init:function(t,e,i){var n=this;Foundation.inherit(this,"throttle image_loaded"),this.bindings(e,i),n.S(this.scope).is("["+this.attr_name()+"]")?this.assemble(n.S("li",this.scope)):n.S("["+this.attr_name()+"]",this.scope).each(function(){n.assemble(n.S("li",this))})},events:function(n){var s=this,a=s.S,r=t(".scroll-container");r.length>0&&(this.scope=r),a(this.scope).off(".clearing").on("click.fndtn.clearing","ul["+this.attr_name()+"] li "+this.settings.open_selectors,function(t,e,i){var e=e||a(this),i=i||e,n=e.next("li"),r=e.closest("["+s.attr_name()+"]").data(s.attr_name(!0)+"-init"),o=a(t.target);t.preventDefault(),r||(s.init(),r=e.closest("["+s.attr_name()+"]").data(s.attr_name(!0)+"-init")),i.hasClass("visible")&&e[0]===i[0]&&n.length>0&&s.is_open(e)&&(i=n,o=a("img",i)),s.open(o,e,i),s.update_paddles(i)}).on("click.fndtn.clearing",".clearing-main-next",function(t){s.nav(t,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(t){s.nav(t,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(t){Foundation.libs.clearing.close(t,this)}),t(i).on("keydown.fndtn.clearing",function(t){s.keydown(t)}),a(e).off(".clearing").on("resize.fndtn.clearing",function(){s.resize()}),this.swipe_events(n)},swipe_events:function(t){var e=this,i=e.S;i(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:n};i(this).data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(t){if(t.touches||(t=t.originalEvent),!(t.touches.length>1||t.scale&&1!==t.scale)){var n=i(this).data("swipe-transition");if("undefined"==typeof n&&(n={}),n.delta_x=t.touches[0].pageX-n.start_page_x,Foundation.rtl&&(n.delta_x=-n.delta_x),"undefined"==typeof n.is_scrolling&&(n.is_scrolling=!!(n.is_scrolling||Math.abs(n.delta_x)<Math.abs(t.touches[0].pageY-n.start_page_y))),!n.is_scrolling&&!n.active){t.preventDefault();var s=n.delta_x<0?"next":"prev";n.active=!0,e.nav(t,s)}}}).on("touchend.fndtn.clearing",".visible-img",function(t){i(this).data("swipe-transition",{}),t.stopPropagation()})},assemble:function(e){var i=e.parent();if(!i.parent().hasClass("carousel")){i.after('<div id="foundationClearingHolder"></div>');var n=i.detach(),s="";if(null!=n[0]){s=n[0].outerHTML;var a=this.S("#foundationClearingHolder"),r=i.data(this.attr_name(!0)+"-init"),o={grid:'<div class="carousel">'+s+"</div>",viewing:r.templates.viewing},l='<div class="clearing-assembled"><div>'+o.viewing+o.grid+"</div></div>",c=this.settings.touch_label;Modernizr.touch&&(l=t(l).find(".clearing-touch-label").html(c).end()),a.after(l).remove()}}},open:function(e,n,s){function a(){setTimeout(function(){this.image_loaded(d,function(){1!==d.outerWidth()||f?r.call(this,d):a.call(this)}.bind(this))}.bind(this),100)}function r(e){var i=t(e);i.css("visibility","visible"),l.css("overflow","hidden"),c.addClass("clearing-blackout"),u.addClass("clearing-container"),h.show(),this.fix_height(s).caption(o.S(".clearing-caption",h),o.S("img",s)).center_and_label(e,p).shift(n,s,function(){s.closest("li").siblings().removeClass("visible"),s.closest("li").addClass("visible")}),h.trigger("opened.fndtn.clearing")}var o=this,l=t(i.body),c=s.closest(".clearing-assembled"),u=o.S("div",c).first(),h=o.S(".visible-img",u),d=o.S("img",h).not(e),p=o.S(".clearing-touch-label",u),f=!1;t("body").on("touchmove",function(t){t.preventDefault()}),d.error(function(){f=!0}),this.locked()||(h.trigger("open.fndtn.clearing"),d.attr("src",this.load(e)).css("visibility","hidden"),a.call(this))},close:function(e,n){e.preventDefault();var s,a,r=function(t){return/blackout/.test(t.selector)?t:t.closest(".clearing-blackout")}(t(n)),o=t(i.body);return n===e.target&&r&&(o.css("overflow",""),s=t("div",r).first(),a=t(".visible-img",s),a.trigger("close.fndtn.clearing"),this.settings.prev_index=0,t("ul["+this.attr_name()+"]",r).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),s.removeClass("clearing-container"),a.hide(),a.trigger("closed.fndtn.clearing")),t("body").off("touchmove"),!1},is_open:function(t){return t.parent().prop("style").length>0;
+},keydown:function(e){var i=t(".clearing-blackout ul["+this.attr_name()+"]"),n=this.rtl?37:39,s=this.rtl?39:37,a=27;e.which===n&&this.go(i,"next"),e.which===s&&this.go(i,"prev"),e.which===a&&this.S("a.clearing-close").trigger("click").trigger("click.fndtn.clearing")},nav:function(e,i){var n=t("ul["+this.attr_name()+"]",".clearing-blackout");e.preventDefault(),this.go(n,i)},resize:function(){var e=t("img",".clearing-blackout .visible-img"),i=t(".clearing-touch-label",".clearing-blackout");e.length&&(this.center_and_label(e,i),e.trigger("resized.fndtn.clearing"))},fix_height:function(t){var e=t.parent().children(),i=this;return e.each(function(){var t=i.S(this),e=t.find("img");t.height()>e.outerHeight()&&t.addClass("fix-height")}).closest("ul").width(100*e.length+"%"),this},update_paddles:function(t){t=t.closest("li");var e=t.closest(".carousel").siblings(".visible-img");t.next().length>0?this.S(".clearing-main-next",e).removeClass("disabled"):this.S(".clearing-main-next",e).addClass("disabled"),t.prev().length>0?this.S(".clearing-main-prev",e).removeClass("disabled"):this.S(".clearing-main-prev",e).addClass("disabled")},center_and_label:function(t,e){return this.rtl?(t.css({marginRight:-(t.outerWidth()/2),marginTop:-(t.outerHeight()/2),left:"auto",right:"50%"}),e.length>0&&e.css({marginRight:-(e.outerWidth()/2),marginTop:-(t.outerHeight()/2)-e.outerHeight()-10,left:"auto",right:"50%"})):(t.css({marginLeft:-(t.outerWidth()/2),marginTop:-(t.outerHeight()/2)}),e.length>0&&e.css({marginLeft:-(e.outerWidth()/2),marginTop:-(t.outerHeight()/2)-e.outerHeight()-10})),this},load:function(t){var e;return e="A"===t[0].nodeName?t.attr("href"):t.parent().attr("href"),this.preload(t),e?e:t.attr("src")},preload:function(t){this.img(t.closest("li").next()).img(t.closest("li").prev())},img:function(t){if(t.length){var e=new Image,i=this.S("a",t);i.length?e.src=i.attr("href"):e.src=this.S("img",t).attr("src")}return this},caption:function(t,e){var i=e.attr("data-caption");return i?t.html(i).show():t.text("").hide(),this},go:function(t,e){var i=this.S(".visible",t),n=i[e]();this.settings.skip_selector&&0!=n.find(this.settings.skip_selector).length&&(n=n[e]()),n.length&&this.S("img",n).trigger("click",[i,n]).trigger("click.fndtn.clearing",[i,n]).trigger("change.fndtn.clearing")},shift:function(t,e,i){var n,s=e.parent(),a=this.settings.prev_index||e.index(),r=this.direction(s,t,e),o=this.rtl?"right":"left",l=parseInt(s.css("left"),10),c=e.outerWidth(),u={};e.index()===a||/skip/.test(r)?/skip/.test(r)&&(n=e.index()-this.settings.up_count,this.lock(),n>0?(u[o]=-(n*c),s.animate(u,300,this.unlock())):(u[o]=0,s.animate(u,300,this.unlock()))):/left/.test(r)?(this.lock(),u[o]=l+c,s.animate(u,300,this.unlock())):/right/.test(r)&&(this.lock(),u[o]=l-c,s.animate(u,300,this.unlock())),i()},direction:function(t,e,i){var n,s=this.S("li",t),a=s.outerWidth()+s.outerWidth()/4,r=Math.floor(this.S(".clearing-container").outerWidth()/a)-1,o=s.index(i);return this.settings.up_count=r,n=this.adjacent(this.settings.prev_index,o)?o>r&&o>this.settings.prev_index?"right":o>r-1&&o<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=o,n},adjacent:function(t,e){for(var i=e+1;i>=e-1;i--)if(i===t)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){this.S(this.scope).off(".fndtn.clearing"),this.S(e).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.4.7",settings:{active_class:"open",disabled_class:"disabled",mega_class:"mega",align:"bottom",is_hover:!1,opened:function(){},closed:function(){}},init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i)},events:function(i){var n=this,s=n.S;s(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",function(e){var i=s(this).data(n.attr_name(!0)+"-init")||n.settings;i.is_hover&&!Modernizr.touch||(e.preventDefault(),n.toggle(t(this)))}).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(t){var e,i,a=s(this);clearTimeout(n.timeout),a.data(n.data_attr())?(e=s("#"+a.data(n.data_attr())),i=a):(e=a,i=s("["+n.attr_name()+"='"+e.attr("id")+"']"));var r=i.data(n.attr_name(!0)+"-init")||n.settings;s(t.target).data(n.data_attr())&&r.is_hover&&n.closeall.call(n),r.is_hover&&n.open.apply(n,[e,i])}).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(t){var e=s(this);n.timeout=setTimeout(function(){if(e.data(n.data_attr())){var t=e.data(n.data_attr(!0)+"-init")||n.settings;t.is_hover&&n.close.call(n,s("#"+e.data(n.data_attr())))}else{var i=s("["+n.attr_name()+'="'+s(this).attr("id")+'"]'),t=i.data(n.attr_name(!0)+"-init")||n.settings;t.is_hover&&n.close.call(n,e)}}.bind(this),150)}).on("click.fndtn.dropdown",function(e){var i=s(e.target).closest("["+n.attr_name()+"-content]");if(!(s(e.target).closest("["+n.attr_name()+"]").length>0))return!s(e.target).data("revealId")&&i.length>0&&(s(e.target).is("["+n.attr_name()+"-content]")||t.contains(i.first()[0],e.target))?void e.stopPropagation():void n.close.call(n,s("["+n.attr_name()+"-content]"))}).on("opened.fndtn.dropdown","["+n.attr_name()+"-content]",function(){n.settings.opened.call(this)}).on("closed.fndtn.dropdown","["+n.attr_name()+"-content]",function(){n.settings.closed.call(this)}),s(e).off(".dropdown").on("resize.fndtn.dropdown",n.throttle(function(){n.resize.call(n)},50)),this.resize()},close:function(e){var i=this;e.each(function(){var n=t("["+i.attr_name()+"="+e[0].id+"]")||t("aria-controls="+e[0].id+"]");n.attr("aria-expanded","false"),i.S(this).hasClass(i.settings.active_class)&&(i.S(this).css(Foundation.rtl?"right":"left","-99999px").attr("aria-hidden","true").removeClass(i.settings.active_class).prev("["+i.attr_name()+"]").removeClass(i.settings.active_class).removeData("target"),i.S(this).trigger("closed").trigger("closed.fndtn.dropdown",[e]))})},closeall:function(){var e=this;t.each(e.S("["+this.attr_name()+"-content]"),function(){e.close.call(e,e.S(this))})},open:function(t,e){this.css(t.addClass(this.settings.active_class),e),t.prev("["+this.attr_name()+"]").addClass(this.settings.active_class),t.data("target",e.get(0)).trigger("opened").trigger("opened.fndtn.dropdown",[t,e]),t.attr("aria-hidden","false"),e.attr("aria-expanded","true"),t.focus()},data_attr:function(){return this.namespace.length>0?this.namespace+"-"+this.name:this.name},toggle:function(t){if(!t.hasClass(this.settings.disabled_class)){var e=this.S("#"+t.data(this.data_attr()));0!==e.length&&(this.close.call(this,this.S("["+this.attr_name()+"-content]").not(e)),e.hasClass(this.settings.active_class)?(this.close.call(this,e),e.data("target")!==t.get(0)&&this.open.call(this,e,t)):this.open.call(this,e,t))}},resize:function(){var t=this.S("["+this.attr_name()+"-content].open"),e=this.S("["+this.attr_name()+"='"+t.attr("id")+"']");t.length&&e.length&&this.css(t,e)},css:function(t,e){var i=Math.max((e.width()-t.width())/2,8),n=e.data(this.attr_name(!0)+"-init")||this.settings;if(this.clear_idx(),this.small()){var s=this.dirs.bottom.call(t,e,n);t.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:s.top}),t.css(Foundation.rtl?"right":"left",i)}else this.style(t,e,n);return t},style:function(e,i,n){var s=t.extend({position:"absolute"},this.dirs[n.align].call(e,i,n));e.attr("style","").css(s)},dirs:{_base:function(t){var e=this.offsetParent(),i=e.offset(),n=t.offset();return n.top-=i.top,n.left-=i.left,n},top:function(t,e){var i=Foundation.libs.dropdown,n=i.dirs._base.call(this,t);return this.addClass("drop-top"),(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),Foundation.rtl?{left:n.left-this.outerWidth()+t.outerWidth(),top:n.top-this.outerHeight()}:{left:n.left,top:n.top-this.outerHeight()}},bottom:function(t,e){var i=Foundation.libs.dropdown,n=i.dirs._base.call(this,t);return(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),i.rtl?{left:n.left-this.outerWidth()+t.outerWidth(),top:n.top+t.outerHeight()}:{left:n.left,top:n.top+t.outerHeight()}},left:function(t,e){var i=Foundation.libs.dropdown.dirs._base.call(this,t);return this.addClass("drop-left"),{left:i.left-this.outerWidth(),top:i.top}},right:function(t,e){var i=Foundation.libs.dropdown.dirs._base.call(this,t);return this.addClass("drop-right"),{left:i.left+t.outerWidth(),top:i.top}}},adjust_pip:function(t,e,i,n){var s=Foundation.stylesheet,a=8;t.hasClass(i.mega_class)?a=n.left+e.outerWidth()/2-8:this.small()&&(a+=n.left-8),this.rule_idx=s.cssRules.length;var r=".f-dropdown.open:before",o=".f-dropdown.open:after",l="left: "+a+"px;",c="left: "+(a-1)+"px;";s.insertRule?(s.insertRule([r,"{",l,"}"].join(" "),this.rule_idx),s.insertRule([o,"{",c,"}"].join(" "),this.rule_idx+1)):(s.addRule(r,l,this.rule_idx),s.addRule(o,c,this.rule_idx+1))},clear_idx:function(){var t=Foundation.stylesheet;"undefined"!=typeof this.rule_idx&&(t.deleteRule(this.rule_idx),t.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown"),this.S("html, body").off(".fndtn.dropdown"),this.S(e).off(".fndtn.dropdown"),this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.equalizer={name:"equalizer",version:"5.4.7",settings:{use_tallest:!0,before_height_change:t.noop,after_height_change:t.noop,equalize_on_stack:!1},init:function(t,e,i){Foundation.inherit(this,"image_loaded"),this.bindings(e,i),this.reflow()},events:function(){this.S(e).off(".equalizer").on("resize.fndtn.equalizer",function(t){this.reflow()}.bind(this))},equalize:function(e){var i=!1,n=e.find("["+this.attr_name()+"-watch]:visible"),s=e.data(this.attr_name(!0)+"-init");if(0!==n.length){var a=n.first().offset().top;if(s.before_height_change(),e.trigger("before-height-change").trigger("before-height-change.fndth.equalizer"),n.height("inherit"),n.each(function(){var e=t(this);e.offset().top!==a&&(i=!0)}),s.equalize_on_stack!==!1||!i){var r=n.map(function(){return t(this).outerHeight(!1)}).get();if(s.use_tallest){var o=Math.max.apply(null,r);n.css("height",o)}else{var l=Math.min.apply(null,r);n.css("height",l)}s.after_height_change(),e.trigger("after-height-change").trigger("after-height-change.fndtn.equalizer")}}},reflow:function(){var e=this;this.S("["+this.attr_name()+"]",this.scope).each(function(){var i=t(this);e.image_loaded(e.S("img",this),function(){e.equalize(i)})})}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.4.7",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,medium:Foundation.media_queries.medium,large:Foundation.media_queries.large,xlarge:Foundation.media_queries.xlarge,xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,i,n){if(/IMG/.test(e[0].nodeName)){var s=e[0].src;if(new RegExp(i,"i").test(s))return;return e[0].src=i,n(e[0].src)}var a=e.data(this.data_attr+"-last-path"),r=this;if(a!=i)return/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(i)?(t(e).css("background-image","url("+i+")"),e.data("interchange-last-path",i),n(i)):t.get(i,function(t){e.html(t),e.data(r.data_attr+"-last-path",i),n()})}}},init:function(e,i,n){Foundation.inherit(this,"throttle random_str"),this.data_attr=this.set_data_attr(),t.extend(!0,this.settings,i,n),this.bindings(i,n),this.load("images"),this.load("nodes")},get_media_hash:function(){var t="";for(var e in this.settings.named_queries)t+=matchMedia(this.settings.named_queries[e]).matches.toString();return t},events:function(){var i,n=this;return t(e).off(".interchange").on("resize.fndtn.interchange",n.throttle(function(){var t=n.get_media_hash();t!==i&&n.resize(),i=t},50)),this},resize:function(){var e=this.cache;if(!this.images_loaded||!this.nodes_loaded)return void setTimeout(t.proxy(this.resize,this),50);for(var i in e)if(e.hasOwnProperty(i)){var n=this.results(i,e[i]);n&&this.settings.directives[n.scenario[1]].call(this,n.el,n.scenario[0],function(){if(arguments[0]instanceof Array)var t=arguments[0];else var t=Array.prototype.slice.call(arguments,0);n.el.trigger(n.scenario[1],t)})}},results:function(t,e){var i=e.length;if(i>0)for(var n=this.S("["+this.add_namespace("data-uuid")+'="'+t+'"]');i--;){var s,a=e[i][2];if(s=this.settings.named_queries.hasOwnProperty(a)?matchMedia(this.settings.named_queries[a]):matchMedia(a),s.matches)return{el:n,scenario:e[i]}}return!1},load:function(t,e){return("undefined"==typeof this["cached_"+t]||e)&&this["update_"+t](),this["cached_"+t]},update_images:function(){var t=this.S("img["+this.data_attr+"]"),e=t.length,i=e,n=0,s=this.data_attr;for(this.cache={},this.cached_images=[],this.images_loaded=0===e;i--;){if(n++,t[i]){var a=t[i].getAttribute(s)||"";a.length>0&&this.cached_images.push(t[i])}n===e&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var t=this.S("["+this.data_attr+"]").not("img"),e=t.length,i=e,n=0,s=this.data_attr;for(this.cached_nodes=[],this.nodes_loaded=0===e;i--;){n++;var a=t[i].getAttribute(s)||"";a.length>0&&this.cached_nodes.push(t[i]),n===e&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(i){for(var n=this["cached_"+i].length;n--;)this.object(t(this["cached_"+i][n]));return t(e).trigger("resize").trigger("resize.fndtn.interchange")},convert_directive:function(t){var e=this.trim(t);return e.length>0?e:"replace"},parse_scenario:function(t){var e=t[0].match(/(.+),\s*(\w+)\s*$/),i=t[1];if(e)var n=e[1],s=e[2];else var a=t[0].split(/,\s*$/),n=a[0],s="";return[this.trim(n),this.convert_directive(s),this.trim(i)]},object:function(t){var e=this.parse_data_attr(t),i=[],n=e.length;if(n>0)for(;n--;){var s=e[n].split(/\((.*?)(\))$/);if(s.length>1){var a=this.parse_scenario(s);i.push(a)}}return this.store(t,i)},store:function(t,e){var i=this.random_str(),n=t.data(this.add_namespace("uuid",!0));return this.cache[n]?this.cache[n]:(t.attr(this.add_namespace("data-uuid"),i),this.cache[i]=e)},trim:function(e){return"string"==typeof e?t.trim(e):e},set_data_attr:function(t){return t?this.namespace.length>0?this.namespace+"-"+this.settings.load_attr:this.settings.load_attr:this.namespace.length>0?"data-"+this.namespace+"-"+this.settings.load_attr:"data-"+this.settings.load_attr},parse_data_attr:function(t){for(var e=t.attr(this.attr_name()).split(/\[(.*?)\]/),i=e.length,n=[];i--;)e[i].replace(/[\W\d]+/,"").length>4&&n.push(e[i]);return n},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.joyride={name:"joyride",version:"5.4.7",defaults:{expose:!1,modal:!0,keyboard:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,prev_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",abort_on_close:!0,tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',prev_button:'<a href="#" class="small button joyride-prev-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',expose_cover:'<div class="joyride-expose-cover"></div>'},expose_add_class:""},init:function(e,i,n){Foundation.inherit(this,"throttle random_str"),this.settings=this.settings||t.extend({},this.defaults,n||i),this.bindings(i,n)},go_next:function(){this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())},go_prev:function(){this.settings.$li.prev().length<1||(this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(null,!0),this.startTimer()):(this.hide(),this.show(null,!0)))},events:function(){var i=this;t(this.scope).off(".joyride").on("click.fndtn.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),this.go_next()}.bind(this)).on("click.fndtn.joyride",".joyride-prev-tip",function(t){t.preventDefault(),this.go_prev()}.bind(this)).on("click.fndtn.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end(this.settings.abort_on_close)}.bind(this)).on("keyup.fndtn.joyride",function(t){if(this.settings.keyboard&&this.settings.riding)switch(t.which){case 39:t.preventDefault(),this.go_next();break;case 37:t.preventDefault(),this.go_prev();break;case 27:t.preventDefault(),this.end(this.settings.abort_on_close)}}.bind(this)),t(e).off(".joyride").on("resize.fndtn.joyride",i.throttle(function(){if(t("["+i.attr_name()+"]").length>0&&i.settings.$next_tip&&i.settings.riding){if(i.settings.exposed.length>0){var e=t(i.settings.exposed);e.each(function(){var e=t(this);i.un_expose(e),i.expose(e)})}i.is_phone()?i.pos_phone():i.pos_default(!1)}},100))},start:function(){var e=this,i=t("["+this.attr_name()+"]",this.scope),n=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],s=n.length;!i.length>0||(this.settings.init||this.events(),this.settings=i.data(this.attr_name(!0)+"-init"),this.settings.$content_el=i,this.settings.$body=t(this.settings.tip_container),this.settings.body_offset=t(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.riding=!0,"function"!=typeof t.cookie&&(this.settings.cookie_monster=!1),(!this.settings.cookie_monster||this.settings.cookie_monster&&!t.cookie(this.settings.cookie_name))&&(this.settings.$tip_content.each(function(i){var a=t(this);this.settings=t.extend({},e.defaults,e.data_options(a));for(var r=s;r--;)e.settings[n[r]]=parseInt(e.settings[n[r]],10);e.create({$li:a,index:i})}),!this.settings.start_timer_on_click&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")))},resume:function(){this.set_li(),this.show()},tip_template:function(e){var i,n;return e.tip_class=e.tip_class||"",i=t(this.settings.template.tip).addClass(e.tip_class),n=t.trim(t(e.li).html())+this.prev_button_text(e.prev_button_text,e.index)+this.button_text(e.button_text)+this.settings.template.link+this.timer_instance(e.index),i.append(t(this.settings.template.wrapper)),i.first().attr(this.add_namespace("data-index"),e.index),t(".joyride-content-wrapper",i).append(n),i[0]},timer_instance:function(e){var i;return i=0===e&&this.settings.start_timer_on_click&&this.settings.timer>0||0===this.settings.timer?"":t(this.settings.template.timer)[0].outerHTML},button_text:function(e){return this.settings.tip_settings.next_button?(e=t.trim(e)||"Next",e=t(this.settings.template.button).append(e)[0].outerHTML):e="",e},prev_button_text:function(e,i){return this.settings.tip_settings.prev_button?(e=t.trim(e)||"Previous",e=0==i?t(this.settings.template.prev_button).append(e).addClass("disabled")[0].outerHTML:t(this.settings.template.prev_button).append(e)[0].outerHTML):e="",e},create:function(e){this.settings.tip_settings=t.extend({},this.settings,this.data_options(e.$li));var i=e.$li.attr(this.add_namespace("data-button"))||e.$li.attr(this.add_namespace("data-text")),n=e.$li.attr(this.add_namespace("data-button-prev"))||e.$li.attr(this.add_namespace("data-prev-text")),s=e.$li.attr("class"),a=t(this.tip_template({tip_class:s,index:e.index,button_text:i,prev_button_text:n,li:e.$li}));t(this.settings.tip_container).append(a)},show:function(e,i){var s=null;this.settings.$li===n||-1===t.inArray(this.settings.$li.index(),this.settings.pause_after)?(this.settings.paused?this.settings.paused=!1:this.set_li(e,i),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(e&&(this.settings.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=t.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),s=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tip_animation)?(s.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),setTimeout(function(){s.animate({width:s.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(s.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),setTimeout(function(){s.animate({width:s.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show(e,i):this.end()):this.settings.paused=!0},is_phone:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||t(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(t.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t,e){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(e?this.settings.$li=this.settings.$li.prev():this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=t(".joyride-tip-guide").eq(this.settings.$li.index()),this.settings.$next_tip.data("closed","")},set_target:function(){var e=this.settings.$li.attr(this.add_namespace("data-class")),n=this.settings.$li.attr(this.add_namespace("data-id")),s=function(){return n?t(i.getElementById(n)):e?t("."+e).first():t("body")};this.settings.$target=s()},scroll_to:function(){var i,n;i=t(e).height()/2,n=Math.ceil(this.settings.$target.offset().top-i+this.settings.$next_tip.outerHeight()),0!=n&&t("html, body").stop().animate({scrollTop:n},this.settings.scroll_speed,"swing")},paused:function(){return-1===t.inArray(this.settings.$li.index()+1,this.settings.pause_after)},restart:function(){this.hide(),this.settings.$li=n,this.show("init")},pos_default:function(t){var e=this.settings.$next_tip.find(".joyride-nub"),i=Math.ceil(e.outerWidth()/2),n=Math.ceil(e.outerHeight()/2),s=t||!1;if(s&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector))this.settings.$li.length&&this.pos_modal(e);else{var a=this.settings.tip_settings.tipAdjustmentY?parseInt(this.settings.tip_settings.tipAdjustmentY):0,r=this.settings.tip_settings.tipAdjustmentX?parseInt(this.settings.tip_settings.tipAdjustmentX):0;this.bottom()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top+n+this.settings.$target.outerHeight()+a,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()+r}):this.settings.$next_tip.css({top:this.settings.$target.offset().top+n+this.settings.$target.outerHeight()+a,left:this.settings.$target.offset().left+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"top")):this.top()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-n+a,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-n+a,left:this.settings.$target.offset().left+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top+a,left:this.settings.$target.outerWidth()+this.settings.$target.offset().left+i+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top+a,left:this.settings.$target.offset().left-this.settings.$next_tip.outerWidth()-i+r}),this.nub_position(e,this.settings.tip_settings.nub_position,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}s&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(e){var i=this.settings.$next_tip.outerHeight(),n=(this.settings.$next_tip.offset(),this.settings.$target.outerHeight()),s=t(".joyride-nub",this.settings.$next_tip),a=Math.ceil(s.outerHeight()/2),r=e||!1;s.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),r&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(s):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-i-a}),s.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+n+a}),s.addClass("top")),r&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(t){this.center(),t.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var e=t(".joyride-modal-bg");e.length<1&&t("body").append(this.settings.template.modal).show(),/pop/i.test(this.settings.tip_animation)?e.show():e.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(){var i,n,s,a,r,o="expose-"+this.random_str(6);if(arguments.length>0&&arguments[0]instanceof t)s=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;s=this.settings.$target}return s.length<1?(e.console&&console.error("element not valid",s),!1):(i=t(this.settings.template.expose),this.settings.$body.append(i),i.css({top:s.offset().top,left:s.offset().left,width:s.outerWidth(!0),height:s.outerHeight(!0)}),n=t(this.settings.template.expose_cover),a={zIndex:s.css("z-index"),position:s.css("position")},r=null==s.attr("class")?"":s.attr("class"),s.css("z-index",parseInt(i.css("z-index"))+1),"static"==a.position&&s.css("position","relative"),s.data("expose-css",a),s.data("orig-class",r),s.attr("class",r+" "+this.settings.expose_add_class),n.css({top:s.offset().top,left:s.offset().left,width:s.outerWidth(!0),height:s.outerHeight(!0)}),this.settings.modal&&this.show_modal(),this.settings.$body.append(n),i.addClass(o),n.addClass(o),s.data("expose",o),this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,s),void this.add_exposed(s))},un_expose:function(){var i,n,s,a,r,o=!1;if(arguments.length>0&&arguments[0]instanceof t)n=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;n=this.settings.$target}return n.length<1?(e.console&&console.error("element not valid",n),!1):(i=n.data("expose"),s=t("."+i),arguments.length>1&&(o=arguments[1]),o===!0?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():s.remove(),a=n.data("expose-css"),"auto"==a.zIndex?n.css("z-index",""):n.css("z-index",a.zIndex),a.position!=n.css("position")&&("static"==a.position?n.css("position",""):n.css("position",a.position)),r=n.data("orig-class"),n.attr("class",r),n.removeData("orig-classes"),n.removeData("expose"),n.removeData("expose-z-index"),void this.remove_exposed(n))},add_exposed:function(e){this.settings.exposed=this.settings.exposed||[],e instanceof t||"object"==typeof e?this.settings.exposed.push(e[0]):"string"==typeof e&&this.settings.exposed.push(e)},remove_exposed:function(e){var i,n;for(e instanceof t?i=e[0]:"string"==typeof e&&(i=e),this.settings.exposed=this.settings.exposed||[],n=this.settings.exposed.length;n--;)if(this.settings.exposed[n]==i)return void this.settings.exposed.splice(n,1)},center:function(){var i=t(e);return this.settings.$next_tip.css({top:(i.height()-this.settings.$next_tip.outerHeight())/2+i.scrollTop(),left:(i.width()-this.settings.$next_tip.outerWidth())/2+i.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(i){var n=t(e),s=n.height()/2,a=Math.ceil(this.settings.$target.offset().top-s+this.settings.$next_tip.outerHeight()),r=n.width()+n.scrollLeft(),o=n.height()+a,l=n.height()+n.scrollTop(),c=n.scrollTop();return c>a&&(c=0>a?0:a),o>l&&(l=o),[i.offset().top<c,r<i.offset().left+i.outerWidth(),l<i.offset().top+i.outerHeight(),n.scrollLeft()>i.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,i){"auto"===e?t.addClass(i):t.addClass(e)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(e){this.settings.cookie_monster&&t.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),t(this.scope).off("keyup.joyride"),this.settings.$next_tip.data("closed",!0),this.settings.riding=!1,t(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),"undefined"!=typeof e&&e!==!1||(this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip),this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip)),
+t(".joyride-tip-guide").remove()},off:function(){t(this.scope).off(".joyride"),t(e).off(".joyride"),t(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),t(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs["magellan-expedition"]={name:"magellan-expedition",version:"5.4.7",settings:{active_class:"active",threshold:0,destination_threshold:20,throttle_delay:30,fixed_top:0},init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i)},events:function(){var i=this,n=i.S,s=i.settings;i.set_expedition_position(),n(i.scope).off(".magellan").on("click.fndtn.magellan","["+i.add_namespace("data-magellan-arrival")+'] a[href^="#"]',function(e){e.preventDefault();var n=t(this).closest("["+i.attr_name()+"]"),s=n.data("magellan-expedition-init"),a=this.hash.split("#").join(""),r=t("a[name='"+a+"']");0===r.length&&(r=t("#"+a));var o=r.offset().top-s.destination_threshold+1;o-=n.outerHeight(),t("html, body").stop().animate({scrollTop:o},700,"swing",function(){history.pushState?history.pushState(null,null,"#"+a):location.hash="#"+a})}).on("scroll.fndtn.magellan",i.throttle(this.check_for_arrivals.bind(this),s.throttle_delay)),t(e).on("resize.fndtn.magellan",i.throttle(this.set_expedition_position.bind(this),s.throttle_delay))},check_for_arrivals:function(){var t=this;t.update_arrivals(),t.update_expedition_positions()},set_expedition_position:function(){var e=this;t("["+this.attr_name()+"=fixed]",e.scope).each(function(i,n){var s,a,r=t(this),o=r.data("magellan-expedition-init"),l=r.attr("styles");r.attr("style",""),s=r.offset().top+o.threshold,a=parseInt(r.data("magellan-fixed-top")),isNaN(a)||(e.settings.fixed_top=a),r.data(e.data_attr("magellan-top-offset"),s),r.attr("style",l)})},update_expedition_positions:function(){var i=this,n=t(e).scrollTop();t("["+this.attr_name()+"=fixed]",i.scope).each(function(){var e=t(this),s=e.data("magellan-expedition-init"),a=e.attr("style"),r=e.data("magellan-top-offset");if(n+i.settings.fixed_top>=r){var o=e.prev("["+i.add_namespace("data-magellan-expedition-clone")+"]");0===o.length&&(o=e.clone(),o.removeAttr(i.attr_name()),o.attr(i.add_namespace("data-magellan-expedition-clone"),""),e.before(o)),e.css({position:"fixed",top:s.fixed_top}).addClass("fixed")}else e.prev("["+i.add_namespace("data-magellan-expedition-clone")+"]").remove(),e.attr("style",a).css("position","").css("top","").removeClass("fixed")})},update_arrivals:function(){var i=this,n=t(e).scrollTop();t("["+this.attr_name()+"]",i.scope).each(function(){var e=t(this),s=e.data(i.attr_name(!0)+"-init"),a=i.offsets(e,n),r=e.find("["+i.add_namespace("data-magellan-arrival")+"]"),o=!1;a.each(function(t,n){if(n.viewport_offset>=n.top_offset){var a=e.find("["+i.add_namespace("data-magellan-arrival")+"]");return a.not(n.arrival).removeClass(s.active_class),n.arrival.addClass(s.active_class),o=!0,!0}}),o||r.removeClass(s.active_class)})},offsets:function(e,i){var n=this,s=e.data(n.attr_name(!0)+"-init"),a=i;return e.find("["+n.add_namespace("data-magellan-arrival")+"]").map(function(i,r){var o=t(this).data(n.data_attr("magellan-arrival")),l=t("["+n.add_namespace("data-magellan-destination")+"="+o+"]");if(l.length>0){var c=Math.floor(l.offset().top-s.destination_threshold-e.outerHeight());return{destination:l,arrival:t(this),top_offset:c,viewport_offset:a}}}).sort(function(t,e){return t.top_offset<e.top_offset?-1:t.top_offset>e.top_offset?1:0})},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},off:function(){this.S(this.scope).off(".magellan"),this.S(e).off(".magellan")},reflow:function(){var e=this;t("["+e.add_namespace("data-magellan-expedition-clone")+"]",e.scope).remove()}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.4.7",settings:{open_method:"move",close_on_click:!1},init:function(t,e,i){this.bindings(e,i)},events:function(){var e=this,i=e.S,n="",s="",a="";"move"===this.settings.open_method?(n="move-",s="right",a="left"):"overlap_single"===this.settings.open_method?(n="offcanvas-overlap-",s="right",a="left"):"overlap"===this.settings.open_method&&(n="offcanvas-overlap"),i(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(a){e.click_toggle_class(a,n+s),"overlap"!==e.settings.open_method&&i(".left-submenu").removeClass(n+s),t(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".left-off-canvas-menu a",function(a){var r=e.get_settings(a),o=i(this).parent();!r.close_on_click||o.hasClass("has-submenu")||o.hasClass("back")?i(this).parent().hasClass("has-submenu")?(a.preventDefault(),i(this).siblings(".left-submenu").toggleClass(n+s)):o.hasClass("back")&&(a.preventDefault(),o.parent().removeClass(n+s)):(e.hide.call(e,n+s,e.get_wrapper(a)),o.parent().removeClass(n+s)),t(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(s){e.click_toggle_class(s,n+a),"overlap"!==e.settings.open_method&&i(".right-submenu").removeClass(n+a),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-menu a",function(s){var r=e.get_settings(s),o=i(this).parent();!r.close_on_click||o.hasClass("has-submenu")||o.hasClass("back")?i(this).parent().hasClass("has-submenu")?(s.preventDefault(),i(this).siblings(".right-submenu").toggleClass(n+a)):o.hasClass("back")&&(s.preventDefault(),o.parent().removeClass(n+a)):(e.hide.call(e,n+a,e.get_wrapper(s)),o.parent().removeClass(n+a)),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(r){e.click_remove_class(r,n+a),i(".right-submenu").removeClass(n+a),s&&(e.click_remove_class(r,n+s),i(".left-submenu").removeClass(n+a)),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(i){e.click_remove_class(i,n+a),t(".left-off-canvas-toggle").attr("aria-expanded","false"),s&&(e.click_remove_class(i,n+s),t(".right-off-canvas-toggle").attr("aria-expanded","false"))})},toggle:function(t,e){e=e||this.get_wrapper(),e.is("."+t)?this.hide(t,e):this.show(t,e)},show:function(t,e){e=e||this.get_wrapper(),e.trigger("open").trigger("open.fndtn.offcanvas"),e.addClass(t)},hide:function(t,e){e=e||this.get_wrapper(),e.trigger("close").trigger("close.fndtn.offcanvas"),e.removeClass(t)},click_toggle_class:function(t,e){t.preventDefault();var i=this.get_wrapper(t);this.toggle(e,i)},click_remove_class:function(t,e){t.preventDefault();var i=this.get_wrapper(t);this.hide(e,i)},get_settings:function(t){var e=this.S(t.target).closest("["+this.attr_name()+"]");return e.data(this.attr_name(!0)+"-init")||this.settings},get_wrapper:function(t){var e=this.S(t?t.target:this.scope).closest(".off-canvas-wrap");return 0===e.length&&(e=this.S(".off-canvas-wrap")),e},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";var s=function(){},a=function(s,a){if(s.hasClass(a.slides_container_class))return this;var c,u,h,d,p,f,g=this,m=s,v=0,b=!1;g.slides=function(){return m.children(a.slide_selector)},g.slides().first().addClass(a.active_slide_class),g.update_slide_number=function(e){a.slide_number&&(u.find("span:first").text(parseInt(e)+1),u.find("span:last").text(g.slides().length)),a.bullets&&(h.children().removeClass(a.bullets_active_class),t(h.children().get(e)).addClass(a.bullets_active_class))},g.update_active_link=function(e){var i=t('[data-orbit-link="'+g.slides().eq(e).attr("data-orbit-slide")+'"]');i.siblings().removeClass(a.bullets_active_class),i.addClass(a.bullets_active_class)},g.build_markup=function(){m.wrap('<div class="'+a.container_class+'"></div>'),c=m.parent(),m.addClass(a.slides_container_class),a.stack_on_small&&c.addClass(a.stack_on_small_class),a.navigation_arrows&&(c.append(t('<a href="#"><span></span></a>').addClass(a.prev_class)),c.append(t('<a href="#"><span></span></a>').addClass(a.next_class))),a.timer&&(d=t("<div>").addClass(a.timer_container_class),d.append("<span>"),d.append(t("<div>").addClass(a.timer_progress_class)),d.addClass(a.timer_paused_class),c.append(d)),a.slide_number&&(u=t("<div>").addClass(a.slide_number_class),u.append("<span></span> "+a.slide_number_text+" <span></span>"),c.append(u)),a.bullets&&(h=t("<ol>").addClass(a.bullets_container_class),c.append(h),h.wrap('<div class="orbit-bullets-container"></div>'),g.slides().each(function(e,i){var n=t("<li>").attr("data-orbit-slide",e).on("click",g.link_bullet);h.append(n)}))},g._goto=function(e,i){if(e===v)return!1;"object"==typeof f&&f.restart();var n=g.slides(),s="next";if(b=!0,v>e&&(s="prev"),e>=n.length){if(!a.circular)return!1;e=0}else if(0>e){if(!a.circular)return!1;e=n.length-1}var r=t(n.get(v)),o=t(n.get(e));r.css("zIndex",2),r.removeClass(a.active_slide_class),o.css("zIndex",4).addClass(a.active_slide_class),m.trigger("before-slide-change.fndtn.orbit"),a.before_slide_change(),g.update_active_link(e);var l=function(){var t=function(){v=e,b=!1,i===!0&&(f=g.create_timer(),f.start()),g.update_slide_number(v),m.trigger("after-slide-change.fndtn.orbit",[{slide_number:v,total_slides:n.length}]),a.after_slide_change(v,n.length)};m.height()!=o.height()&&a.variable_height?m.animate({height:o.height()},250,"linear",t):t()};if(1===n.length)return l(),!1;var c=function(){"next"===s&&p.next(r,o,l),"prev"===s&&p.prev(r,o,l)};o.height()>m.height()&&a.variable_height?m.animate({height:o.height()},250,"linear",c):c()},g.next=function(t){t.stopImmediatePropagation(),t.preventDefault(),g._goto(v+1)},g.prev=function(t){t.stopImmediatePropagation(),t.preventDefault(),g._goto(v-1)},g.link_custom=function(e){e.preventDefault();var i=t(this).attr("data-orbit-link");if("string"==typeof i&&""!=(i=t.trim(i))){var n=c.find("[data-orbit-slide="+i+"]");-1!=n.index()&&g._goto(n.index())}},g.link_bullet=function(e){var i=t(this).attr("data-orbit-slide");if("string"==typeof i&&""!=(i=t.trim(i)))if(isNaN(parseInt(i))){var n=c.find("[data-orbit-slide="+i+"]");-1!=n.index()&&g._goto(n.index()+1)}else g._goto(parseInt(i))},g.timer_callback=function(){g._goto(v+1,!0)},g.compute_dimensions=function(){var e=t(g.slides().get(v)),i=e.height();a.variable_height||g.slides().each(function(){t(this).height()>i&&(i=t(this).height())}),m.height(i)},g.create_timer=function(){var t=new r(c.find("."+a.timer_container_class),a,g.timer_callback);return t},g.stop_timer=function(){"object"==typeof f&&f.stop()},g.toggle_timer=function(){var t=c.find("."+a.timer_container_class);t.hasClass(a.timer_paused_class)?("undefined"==typeof f&&(f=g.create_timer()),f.start()):"object"==typeof f&&f.stop()},g.init=function(){g.build_markup(),a.timer&&(f=g.create_timer(),Foundation.utils.image_loaded(this.slides().children("img"),f.start)),p=new l(a,m),"slide"===a.animation&&(p=new o(a,m)),c.on("click","."+a.next_class,g.next),c.on("click","."+a.prev_class,g.prev),a.next_on_click&&c.on("click","."+a.slides_container_class+" [data-orbit-slide]",g.link_bullet),c.on("click",g.toggle_timer),a.swipe&&c.on("touchstart.fndtn.orbit",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:n};c.data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.orbit",function(t){if(t.touches||(t=t.originalEvent),!(t.touches.length>1||t.scale&&1!==t.scale)){var e=c.data("swipe-transition");if("undefined"==typeof e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,"undefined"==typeof e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)<Math.abs(t.touches[0].pageY-e.start_page_y))),!e.is_scrolling&&!e.active){t.preventDefault();var i=e.delta_x<0?v+1:v-1;e.active=!0,g._goto(i)}}}).on("touchend.fndtn.orbit",function(t){c.data("swipe-transition",{}),t.stopPropagation()}),c.on("mouseenter.fndtn.orbit",function(t){a.timer&&a.pause_on_hover&&g.stop_timer()}).on("mouseleave.fndtn.orbit",function(t){a.timer&&a.resume_on_mouseout&&f.start()}),t(i).on("click","[data-orbit-link]",g.link_custom),t(e).on("load resize",g.compute_dimensions),Foundation.utils.image_loaded(this.slides().children("img"),g.compute_dimensions),Foundation.utils.image_loaded(this.slides().children("img"),function(){c.prev("."+a.preloader_class).css("display","none"),g.update_slide_number(0),g.update_active_link(0),m.trigger("ready.fndtn.orbit")})},g.init()},r=function(t,e,i){var n,s,a=this,r=e.timer_speed,o=t.find("."+e.timer_progress_class),l=-1;this.update_progress=function(t){var e=o.clone();e.attr("style",""),e.css("width",t+"%"),o.replaceWith(e),o=e},this.restart=function(){clearTimeout(s),t.addClass(e.timer_paused_class),l=-1,a.update_progress(0)},this.start=function(){return t.hasClass(e.timer_paused_class)?(l=-1===l?r:l,t.removeClass(e.timer_paused_class),n=(new Date).getTime(),o.animate({width:"100%"},l,"linear"),s=setTimeout(function(){a.restart(),i()},l),void t.trigger("timer-started.fndtn.orbit")):!0},this.stop=function(){if(t.hasClass(e.timer_paused_class))return!0;clearTimeout(s),t.addClass(e.timer_paused_class);var i=(new Date).getTime();l-=i-n;var o=100-l/r*100;a.update_progress(o),t.trigger("timer-stopped.fndtn.orbit")}},o=function(e,i){var n=e.animation_speed,s=1===t("html[dir=rtl]").length,a=s?"marginRight":"marginLeft",r={};r[a]="0%",this.next=function(t,e,i){t.animate({marginLeft:"-100%"},n),e.animate(r,n,function(){t.css(a,"100%"),i()})},this.prev=function(t,e,i){t.animate({marginLeft:"100%"},n),e.css(a,"-100%"),e.animate(r,n,function(){t.css(a,"100%"),i()})}},l=function(e,i){var n=e.animation_speed;1===t("html[dir=rtl]").length;this.next=function(t,e,i){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},n,"linear",function(){t.css("margin","100%"),i()})},this.prev=function(t,e,i){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},n,"linear",function(){t.css("margin","100%"),i()})}};Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"5.4.7",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,next_on_click:!0,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",preloader_class:"preloader",slide_selector:"*",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,circular:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:s,after_slide_change:s},init:function(t,e,i){this.bindings(e,i)},events:function(t){var e=new a(this.S(t),this.S(t).data("orbit-init"));this.S(t).data(this.name+"-instance",e)},reflow:function(){var t=this;if(t.S(t.scope).is("[data-orbit]")){var e=t.S(t.scope),i=e.data(t.name+"-instance");i.compute_dimensions()}else t.S("[data-orbit]",t.scope).each(function(e,i){var n=t.S(i),s=(t.data_options(n),n.data(t.name+"-instance"));s.compute_dimensions()})}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";function s(t){var e=/fade/i.test(t),i=/pop/i.test(t);return{animate:e||i,pop:i,fade:e}}Foundation.libs.reveal={name:"reveal",version:"5.4.7",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,i,n){t.extend(!0,this.settings,i,n),this.bindings(i,n)},events:function(t){var e=this,n=e.S;return n(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",function(t){if(t.preventDefault(),!e.locked){var i=n(this),s=i.data(e.data_attr("reveal-ajax"));if(e.locked=!0,"undefined"==typeof s)e.open.call(e,i);else{var a=s===!0?i.attr("href"):s;e.open.call(e,i,{url:a})}}}),n(i).on("click.fndtn.reveal",this.close_targets(),function(t){if(t.preventDefault(),!e.locked){var i=n("["+e.attr_name()+"].open").data(e.attr_name(!0)+"-init")||e.settings,s=n(t.target)[0]===n("."+i.bg_class)[0];if(s){if(!i.close_on_background_click)return;t.stopPropagation()}e.locked=!0,e.close.call(e,s?n("["+e.attr_name()+"].open"):n(this).closest("["+e.attr_name()+"]"))}}),n("["+e.attr_name()+"]",this.scope).length>0?n(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):n(this.scope).on("open.fndtn.reveal","["+e.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+e.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.close_video),!0},key_up_on:function(t){var e=this;return e.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(t){var i=e.S("["+e.attr_name()+"].open"),n=i.data(e.attr_name(!0)+"-init")||e.settings;n&&27===t.which&&n.close_on_esc&&!e.locked&&e.close.call(e,i)}),!0},key_up_off:function(t){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(i,n){var s,a=this;i?"undefined"!=typeof i.selector?s=a.S("#"+i.data(a.data_attr("reveal-id"))).first():(s=a.S(this.scope),n=i):s=a.S(this.scope);var r=s.data(a.attr_name(!0)+"-init");if(r=r||this.settings,s.hasClass("open")&&i.attr("data-reveal-id")==s.attr("id"))return a.close(s);if(!s.hasClass("open")){var o=a.S("["+a.attr_name()+"].open");if("undefined"==typeof s.data("css-top")&&s.data("css-top",parseInt(s.css("top"),10)).data("offset",this.cache_offset(s)),this.key_up_on(s),s.trigger("open").trigger("open.fndtn.reveal"),o.length<1&&this.toggle_bg(s,!0),"string"==typeof n&&(n={url:n}),"undefined"!=typeof n&&n.url){var l="undefined"!=typeof n.success?n.success:null;t.extend(n,{success:function(e,i,n){t.isFunction(l)&&l(e,i,n),s.html(e),a.S(s).foundation("section","reflow"),a.S(s).children().foundation(),o.length>0&&a.hide(o,r.css.close),a.show(s,r.css.open)}}),t.ajax(n)}else o.length>0&&this.hide(o,r.css.close),this.show(s,r.css.open)}a.S(e).trigger("resize")},close:function(t){var t=t&&t.length?t:this.S(this.scope),e=this.S("["+this.attr_name()+"].open"),i=t.data(this.attr_name(!0)+"-init")||this.settings;e.length>0&&(this.locked=!0,this.key_up_off(t),t.trigger("close").trigger("close.fndtn.reveal"),this.toggle_bg(t,!1),this.hide(e,i.css.close,i))},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(e,i){0===this.S("."+this.settings.bg_class).length&&(this.settings.bg=t("<div />",{"class":this.settings.bg_class}).appendTo("body").hide());var s=this.settings.bg.filter(":visible").length>0;i!=s&&((i==n?s:!i)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(i,n){if(n){var a=i.data(this.attr_name(!0)+"-init")||this.settings,r=a.root_element;if(0===i.parent(r).length){var o=i.wrap('<div style="display: none;" />').parent();i.on("closed.fndtn.reveal.wrapped",function(){i.detach().appendTo(o),i.unwrap().unbind("closed.fndtn.reveal.wrapped")}),i.detach().appendTo(r)}var l=s(a.animation);if(l.animate||(this.locked=!1),l.pop){n.top=t(e).scrollTop()-i.data("offset")+"px";var c={top:t(e).scrollTop()+i.data("css-top")+"px",opacity:1};return setTimeout(function(){return i.css(n).animate(c,a.animation_speed,"linear",function(){this.locked=!1,i.trigger("opened").trigger("opened.fndtn.reveal")}.bind(this)).addClass("open")}.bind(this),a.animation_speed/2)}if(l.fade){n.top=t(e).scrollTop()+i.data("css-top")+"px";var c={opacity:1};return setTimeout(function(){return i.css(n).animate(c,a.animation_speed,"linear",function(){this.locked=!1,i.trigger("opened").trigger("opened.fndtn.reveal")}.bind(this)).addClass("open")}.bind(this),a.animation_speed/2)}return i.css(n).show().css({opacity:1}).addClass("open").trigger("opened").trigger("opened.fndtn.reveal")}var a=this.settings;return s(a.animation).fade?i.fadeIn(a.animation_speed/2):(this.locked=!1,i.show())},hide:function(i,n){if(n){var a=i.data(this.attr_name(!0)+"-init");a=a||this.settings;var r=s(a.animation);if(r.animate||(this.locked=!1),r.pop){var o={top:-t(e).scrollTop()-i.data("offset")+"px",opacity:0};return setTimeout(function(){return i.animate(o,a.animation_speed,"linear",function(){this.locked=!1,i.css(n).trigger("closed").trigger("closed.fndtn.reveal")}.bind(this)).removeClass("open")}.bind(this),a.animation_speed/2)}if(r.fade){var o={opacity:0};return setTimeout(function(){return i.animate(o,a.animation_speed,"linear",function(){this.locked=!1,i.css(n).trigger("closed").trigger("closed.fndtn.reveal")}.bind(this)).removeClass("open")}.bind(this),a.animation_speed/2)}return i.hide().css(n).removeClass("open").trigger("closed").trigger("closed.fndtn.reveal")}var a=this.settings;return s(a.animation).fade?i.fadeOut(a.animation_speed/2):i.hide()},close_video:function(e){var i=t(".flex-video",e.target),n=t("iframe",i);n.length>0&&(n.attr("data-src",n[0].src),n.attr("src",n.attr("src")),i.hide())},open_video:function(e){var i=t(".flex-video",e.target),s=i.find("iframe");if(s.length>0){var a=s.attr("data-src");if("string"==typeof a)s[0].src=s.attr("data-src");else{var r=s[0].src;s[0].src=n,s[0].src=r}i.show()}},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10);return t.hide(),e},off:function(){t(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.slider={name:"slider",version:"5.4.7",settings:{start:0,end:100,step:1,initial:null,display_selector:"",vertical:!1,on_change:function(){}},cache:{},init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i),this.reflow()},events:function(){var i=this;t(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider","["+i.attr_name()+"]:not(.disabled, [disabled]) .range-slider-handle",function(e){i.cache.active||(e.preventDefault(),i.set_active_slider(t(e.target)))}).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider",function(n){if(i.cache.active)if(n.preventDefault(),t.data(i.cache.active[0],"settings").vertical){var s=0;n.pageY||(s=e.scrollY),i.calculate_position(i.cache.active,(n.pageY||n.originalEvent.clientY||n.originalEvent.touches[0].clientY||n.currentPoint.y)+s)}else i.calculate_position(i.cache.active,n.pageX||n.originalEvent.clientX||n.originalEvent.touches[0].clientX||n.currentPoint.x)}).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider",function(t){i.remove_active_slider()}).on("change.fndtn.slider",function(t){i.settings.on_change()}),i.S(e).on("resize.fndtn.slider",i.throttle(function(t){i.reflow()},300))},set_active_slider:function(t){this.cache.active=t},remove_active_slider:function(){this.cache.active=null},calculate_position:function(e,i){var n=this,s=t.data(e[0],"settings"),a=(t.data(e[0],"handle_l"),t.data(e[0],"handle_o"),t.data(e[0],"bar_l")),r=t.data(e[0],"bar_o");requestAnimationFrame(function(){var t;t=Foundation.rtl&&!s.vertical?n.limit_to((r+a-i)/a,0,1):n.limit_to((i-r)/a,0,1),t=s.vertical?1-t:t;var o=n.normalized_value(t,s.start,s.end,s.step);n.set_ui(e,o)})},set_ui:function(e,i){var n=t.data(e[0],"settings"),s=t.data(e[0],"handle_l"),a=t.data(e[0],"bar_l"),r=this.normalized_percentage(i,n.start,n.end),o=r*(a-s)-1,l=100*r;Foundation.rtl&&!n.vertical&&(o=-o),o=n.vertical?-o+a-s+1:o,this.set_translate(e,o,n.vertical),n.vertical?e.siblings(".range-slider-active-segment").css("height",l+"%"):e.siblings(".range-slider-active-segment").css("width",l+"%"),e.parent().attr(this.attr_name(),i).trigger("change").trigger("change.fndtn.slider"),e.parent().children("input[type=hidden]").val(i),e[0].hasAttribute("aria-valuemin")||e.attr({"aria-valuemin":n.start,"aria-valuemax":n.end}),e.attr("aria-valuenow",i),""!=n.display_selector&&t(n.display_selector).each(function(){this.hasOwnProperty("value")?t(this).val(i):t(this).text(i)})},normalized_percentage:function(t,e,i){return Math.min(1,(t-e)/(i-e))},normalized_value:function(t,e,i,n){var s=i-e,a=t*s,r=(a-a%n)/n,o=a%n,l=o>=.5*n?n:0;return r*n+l+e},set_translate:function(e,i,n){n?t(e).css("-webkit-transform","translateY("+i+"px)").css("-moz-transform","translateY("+i+"px)").css("-ms-transform","translateY("+i+"px)").css("-o-transform","translateY("+i+"px)").css("transform","translateY("+i+"px)"):t(e).css("-webkit-transform","translateX("+i+"px)").css("-moz-transform","translateX("+i+"px)").css("-ms-transform","translateX("+i+"px)").css("-o-transform","translateX("+i+"px)").css("transform","translateX("+i+"px)")},limit_to:function(t,e,i){return Math.min(Math.max(t,e),i)},initialize_settings:function(e){var i=t.extend({},this.settings,this.data_options(t(e).parent()));i.vertical?(t.data(e,"bar_o",t(e).parent().offset().top),t.data(e,"bar_l",t(e).parent().outerHeight()),t.data(e,"handle_o",t(e).offset().top),t.data(e,"handle_l",t(e).outerHeight())):(t.data(e,"bar_o",t(e).parent().offset().left),t.data(e,"bar_l",t(e).parent().outerWidth()),t.data(e,"handle_o",t(e).offset().left),t.data(e,"handle_l",t(e).outerWidth())),t.data(e,"bar",t(e).parent()),t.data(e,"settings",i)},set_initial_position:function(e){var i=t.data(e.children(".range-slider-handle")[0],"settings"),n=i.initial?i.initial:Math.floor(.5*(i.end-i.start)/i.step)*i.step+i.start,s=e.children(".range-slider-handle");this.set_ui(s,n)},set_value:function(e){var i=this;t("["+i.attr_name()+"]",this.scope).each(function(){t(this).attr(i.attr_name(),e)}),t(this.scope).attr(i.attr_name())&&t(this.scope).attr(i.attr_name(),e),i.reflow()},reflow:function(){var e=this;e.S("["+this.attr_name()+"]").each(function(){var i=t(this).children(".range-slider-handle")[0],n=t(this).attr(e.attr_name());e.initialize_settings(i),n?e.set_ui(t(i),parseFloat(n)):e.set_initial_position(t(this))})}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.tab={name:"tab",version:"5.4.7",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0,is_hover:!1},default_tab_hashes:[],init:function(t,e,i){var n=this,s=this.S;this.bindings(e,i),this.handle_location_hash_change(),s("["+this.attr_name()+"] > .active > a",this.scope).each(function(){n.default_tab_hashes.push(this.hash)})},events:function(){var t=this,i=this.S,n=function(e){var n=i(this).closest("["+t.attr_name()+"]").data(t.attr_name(!0)+"-init");n.is_hover&&!Modernizr.touch||(e.preventDefault(),e.stopPropagation(),t.toggle_active_tab(i(this).parent()))};i(this.scope).off(".tab").on("focus.fndtn.tab","["+this.attr_name()+"] > * > a",n).on("click.fndtn.tab","["+this.attr_name()+"] > * > a",n).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",function(e){var n=i(this).closest("["+t.attr_name()+"]").data(t.attr_name(!0)+"-init");n.is_hover&&t.toggle_active_tab(i(this).parent())}),i(e).on("hashchange.fndtn.tab",function(e){e.preventDefault(),t.handle_location_hash_change()})},handle_location_hash_change:function(){var e=this,i=this.S;i("["+this.attr_name()+"]",this.scope).each(function(){var s=i(this).data(e.attr_name(!0)+"-init");if(s.deep_linking){var a;if(a=s.scroll_to_content?e.scope.location.hash:e.scope.location.hash.replace("fndtn-",""),""!=a){var r=i(a);if(r.hasClass("content")&&r.parent().hasClass("tabs-content"))e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href="+a+"]").parent());else{var o=r.closest(".content").attr("id");o!=n&&e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href=#"+o+"]").parent(),a)}}else for(var l=0;l<e.default_tab_hashes.length;l++)e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href="+e.default_tab_hashes[l]+"]").parent())}})},toggle_active_tab:function(s,a){var r=this.S,o=s.closest("["+this.attr_name()+"]"),l=s.find("a"),c=s.children("a").first(),u="#"+c.attr("href").split("#")[1],h=r(u),d=s.siblings(),p=o.data(this.attr_name(!0)+"-init"),f=function(e){var n,s=t(this),a=t(this).parents("li").prev().children('[role="tab"]'),r=t(this).parents("li").next().children('[role="tab"]');switch(e.keyCode){case 37:n=a;break;case 39:n=r;break;default:n=!1}n.length&&(s.attr({tabindex:"-1","aria-selected":null}),n.attr({tabindex:"0","aria-selected":!0}).focus()),t('[role="tabpanel"]').attr("aria-hidden","true"),t("#"+t(i.activeElement).attr("href").substring(1)).attr("aria-hidden",null)};r(this).data(this.data_attr("tab-content"))&&(u="#"+r(this).data(this.data_attr("tab-content")).split("#")[1],h=r(u)),p.deep_linking&&(p.scroll_to_content?(e.location.hash=a||u,a==n||a==u?s.parent()[0].scrollIntoView():r(u)[0].scrollIntoView()):a!=n?e.location.hash="fndtn-"+a.replace("#",""):e.location.hash="fndtn-"+u.replace("#","")),s.addClass(p.active_class).triggerHandler("opened"),l.attr({"aria-selected":"true",tabindex:0}),d.removeClass(p.active_class),d.find("a").attr({"aria-selected":"false",tabindex:-1}),h.siblings().removeClass(p.active_class).attr({"aria-hidden":"true",tabindex:-1}),h.addClass(p.active_class).attr("aria-hidden","false").removeAttr("tabindex"),p.callback(s),h.triggerHandler("toggled",[s]),o.triggerHandler("toggled",[h]),l.off("keydown").on("keydown",f)},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.4.7",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,hover_delay:200,show_on:"all",tip_template:function(t,e){return'<span data-selector="'+t+'" id="'+t+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'" role="tooltip">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(t,e,i){Foundation.inherit(this,"random_str"),this.bindings(e,i)},should_show:function(e,i){var n=t.extend({},this.settings,this.data_options(e));return"all"===n.show_on?!0:this.small()&&"small"===n.show_on?!0:this.medium()&&"medium"===n.show_on?!0:!(!this.large()||"large"!==n.show_on)},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},events:function(e){var i=this,n=i.S;i.create(this.S(e)),t(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"]",function(e){var s=n(this),a=t.extend({},i.settings,i.data_options(s)),r=!1;if(Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type)&&n(e.target).is("a"))return!1;if(/mouse/i.test(e.type)&&i.ie_touch(e))return!1;if(s.hasClass("open"))Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type)&&e.preventDefault(),i.hide(s);else{if(a.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type))return;!a.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type)&&(e.preventDefault(),n(a.tooltip_class+".open").hide(),r=!0),/enter|over/i.test(e.type)?this.timer=setTimeout(function(){
+i.showTip(s)}.bind(this),i.settings.hover_delay):"mouseout"===e.type||"mouseleave"===e.type?(clearTimeout(this.timer),i.hide(s)):i.showTip(s)}}).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"].open",function(e){return/mouse/i.test(e.type)&&i.ie_touch(e)?!1:void("touch"==t(this).data("tooltip-open-event-type")&&"mouseleave"==e.type||("mouse"==t(this).data("tooltip-open-event-type")&&/MSPointerDown|touchstart/i.test(e.type)?i.convert_to_touch(t(this)):i.hide(t(this))))}).on("DOMNodeRemoved DOMAttrModified","["+this.attr_name()+"]:not(a)",function(t){i.hide(n(this))})},ie_touch:function(t){return!1},showTip:function(t){var e=this.getTip(t);return this.should_show(t,e)?this.show(t):void 0},getTip:function(e){var i=this.selector(e),n=t.extend({},this.settings,this.data_options(e)),s=null;return i&&(s=this.S('span[data-selector="'+i+'"]'+n.tooltip_class)),"object"==typeof s?s:!1},selector:function(t){var e=t.attr("id"),i=t.attr(this.attr_name())||t.attr("data-selector");return(e&&e.length<1||!e)&&"string"!=typeof i&&(i=this.random_str(6),t.attr("data-selector",i).attr("aria-describedby",i)),e&&e.length>0?e:i},create:function(i){var n=this,s=t.extend({},this.settings,this.data_options(i)),a=this.settings.tip_template;"string"==typeof s.tip_template&&e.hasOwnProperty(s.tip_template)&&(a=e[s.tip_template]);var r=t(a(this.selector(i),t("<div></div>").html(i.attr("title")).html())),o=this.inheritable_classes(i);r.addClass(o).appendTo(s.append_to),Modernizr.touch&&(r.append('<span class="tap-to-close">'+s.touch_close_text+"</span>"),r.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip",function(t){n.hide(i)})),i.removeAttr("title").attr("title","")},reposition:function(e,i,n){var s,a,r,o,l;if(i.css("visibility","hidden").show(),s=e.data("width"),a=i.children(".nub"),r=a.outerHeight(),o=a.outerHeight(),this.small()?i.css({width:"100%"}):i.css({width:s?s:"auto"}),l=function(t,e,i,n,s,a){return t.css({top:e?e:"auto",bottom:n?n:"auto",left:s?s:"auto",right:i?i:"auto"}).end()},l(i,e.offset().top+e.outerHeight()+10,"auto","auto",e.offset().left),this.small())l(i,e.offset().top+e.outerHeight()+10,"auto","auto",12.5,t(this.scope).width()),i.addClass("tip-override"),l(a,-r,"auto","auto",e.offset().left);else{var c=e.offset().left;Foundation.rtl&&(a.addClass("rtl"),c=e.offset().left+e.outerWidth()-i.outerWidth()),l(i,e.offset().top+e.outerHeight()+10,"auto","auto",c),i.removeClass("tip-override"),n&&n.indexOf("tip-top")>-1?(Foundation.rtl&&a.addClass("rtl"),l(i,e.offset().top-i.outerHeight(),"auto","auto",c).removeClass("tip-override")):n&&n.indexOf("tip-left")>-1?(l(i,e.offset().top+e.outerHeight()/2-i.outerHeight()/2,"auto","auto",e.offset().left-i.outerWidth()-r).removeClass("tip-override"),a.removeClass("rtl")):n&&n.indexOf("tip-right")>-1&&(l(i,e.offset().top+e.outerHeight()/2-i.outerHeight()/2,"auto","auto",e.offset().left+e.outerWidth()+r).removeClass("tip-override"),a.removeClass("rtl"))}i.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},inheritable_classes:function(e){var i=t.extend({},this.settings,this.data_options(e)),n=["tip-top","tip-left","tip-bottom","tip-right","radius","round"].concat(i.additional_inheritable_classes),s=e.attr("class"),a=s?t.map(s.split(" "),function(e,i){return-1!==t.inArray(e,n)?e:void 0}).join(" "):"";return t.trim(a)},convert_to_touch:function(e){var i=this,n=i.getTip(e),s=t.extend({},i.settings,i.data_options(e));0===n.find(".tap-to-close").length&&(n.append('<span class="tap-to-close">'+s.touch_close_text+"</span>"),n.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose",function(t){i.hide(e)})),e.data("tooltip-open-event-type","touch")},show:function(t){var e=this.getTip(t);"touch"==t.data("tooltip-open-event-type")&&this.convert_to_touch(t),this.reposition(t,e,t.attr("class")),t.addClass("open"),e.fadeIn(150)},hide:function(t){var e=this.getTip(t);e.fadeOut(150,function(){e.find(".tap-to-close").remove(),e.off("click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose"),t.removeClass("open")})},off:function(){var e=this;this.S(this.scope).off(".fndtn.tooltip"),this.S(this.settings.tooltip_class).each(function(i){t("["+e.attr_name()+"]").eq(i).attr("title",t(this).text())}).remove()},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.4.7",settings:{index:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",mobile_show_parent_link:!0,is_hover:!0,scrolltop:!0,sticky_on:"all"},init:function(e,i,n){Foundation.inherit(this,"add_custom_rule register_media throttle");var s=this;s.register_media("topbar","foundation-mq-topbar"),this.bindings(i,n),s.S("["+this.attr_name()+"]",this.scope).each(function(){var e=t(this),i=e.data(s.attr_name(!0)+"-init");s.S("section, .top-bar-section",this);e.data("index",0);var n=e.parent();n.hasClass("fixed")||s.is_sticky(e,n,i)?(s.settings.sticky_class=i.sticky_class,s.settings.sticky_topbar=e,e.data("height",n.outerHeight()),e.data("stickyoffset",n.offset().top)):e.data("height",e.outerHeight()),i.assembled||s.assemble(e),i.is_hover?s.S(".has-dropdown",e).addClass("not-click"):s.S(".has-dropdown",e).removeClass("not-click"),s.add_custom_rule(".f-topbar-fixed { padding-top: "+e.data("height")+"px }"),n.hasClass("fixed")&&s.S("body").addClass("f-topbar-fixed")})},is_sticky:function(t,e,i){var n=e.hasClass(i.sticky_class);return n&&"all"===i.sticky_on?!0:n&&this.small()&&"small"===i.sticky_on?matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches&&!matchMedia(Foundation.media_queries.large).matches:n&&this.medium()&&"medium"===i.sticky_on?matchMedia(Foundation.media_queries.small).matches&&matchMedia(Foundation.media_queries.medium).matches&&!matchMedia(Foundation.media_queries.large).matches:n&&this.large()&&"large"===i.sticky_on?matchMedia(Foundation.media_queries.small).matches&&matchMedia(Foundation.media_queries.medium).matches&&matchMedia(Foundation.media_queries.large).matches:!1},toggle:function(i){var n,s=this;n=i?s.S(i).closest("["+this.attr_name()+"]"):s.S("["+this.attr_name()+"]");var a=n.data(this.attr_name(!0)+"-init"),r=s.S("section, .top-bar-section",n);s.breakpoint()&&(s.rtl?(r.css({right:"0%"}),t(">.name",r).css({right:"100%"})):(r.css({left:"0%"}),t(">.name",r).css({left:"100%"})),s.S("li.moved",r).removeClass("moved"),n.data("index",0),n.toggleClass("expanded").css("height","")),a.scrolltop?n.hasClass("expanded")?n.parent().hasClass("fixed")&&(a.scrolltop?(n.parent().removeClass("fixed"),n.addClass("fixed"),s.S("body").removeClass("f-topbar-fixed"),e.scrollTo(0,0)):n.parent().removeClass("expanded")):n.hasClass("fixed")&&(n.parent().addClass("fixed"),n.removeClass("fixed"),s.S("body").addClass("f-topbar-fixed")):(s.is_sticky(n,n.parent(),a)&&n.parent().addClass("fixed"),n.parent().hasClass("fixed")&&(n.hasClass("expanded")?(n.addClass("fixed"),n.parent().addClass("expanded"),s.S("body").addClass("f-topbar-fixed")):(n.removeClass("fixed"),n.parent().removeClass("expanded"),s.update_sticky_positioning())))},timer:null,events:function(i){var n=this,s=this.S;s(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(t){t.preventDefault(),n.toggle(this)}).on("click.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(e){var i=t(this).closest("li");!n.breakpoint()||i.hasClass("back")||i.hasClass("has-dropdown")||n.toggle()}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(e){var i=s(this),a=s(e.target),r=i.closest("["+n.attr_name()+"]"),o=r.data(n.attr_name(!0)+"-init");return a.data("revealId")?void n.toggle():void(n.breakpoint()||o.is_hover&&!Modernizr.touch||(e.stopImmediatePropagation(),i.hasClass("hover")?(i.removeClass("hover").find("li").removeClass("hover"),i.parents("li.hover").removeClass("hover")):(i.addClass("hover"),t(i).siblings().removeClass("hover"),"A"===a[0].nodeName&&a.parent().hasClass("has-dropdown")&&e.preventDefault())))}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(t){if(n.breakpoint()){t.preventDefault();var e=s(this),i=e.closest("["+n.attr_name()+"]"),a=i.find("section, .top-bar-section"),r=(e.next(".dropdown").outerHeight(),e.closest("li"));i.data("index",i.data("index")+1),r.addClass("moved"),n.rtl?(a.css({right:-(100*i.data("index"))+"%"}),a.find(">.name").css({right:100*i.data("index")+"%"})):(a.css({left:-(100*i.data("index"))+"%"}),a.find(">.name").css({left:100*i.data("index")+"%"})),i.css("height",e.siblings("ul").outerHeight(!0)+i.data("height"))}}),s(e).off(".topbar").on("resize.fndtn.topbar",n.throttle(function(){n.resize.call(n)},50)).trigger("resize").trigger("resize.fndtn.topbar").load(function(){s(this).trigger("resize.fndtn.topbar")}),s("body").off(".topbar").on("click.fndtn.topbar",function(t){var e=s(t.target).closest("li").closest("li.hover");e.length>0||s("["+n.attr_name()+"] li.hover").removeClass("hover")}),s(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(t){t.preventDefault();var e=s(this),i=e.closest("["+n.attr_name()+"]"),a=i.find("section, .top-bar-section"),r=(i.data(n.attr_name(!0)+"-init"),e.closest("li.moved")),o=r.parent();i.data("index",i.data("index")-1),n.rtl?(a.css({right:-(100*i.data("index"))+"%"}),a.find(">.name").css({right:100*i.data("index")+"%"})):(a.css({left:-(100*i.data("index"))+"%"}),a.find(">.name").css({left:100*i.data("index")+"%"})),0===i.data("index")?i.css("height",""):i.css("height",o.outerHeight(!0)+i.data("height")),setTimeout(function(){r.removeClass("moved")},300)}),s(this.scope).find(".dropdown a").focus(function(){t(this).parents(".has-dropdown").addClass("hover")}).blur(function(){t(this).parents(".has-dropdown").removeClass("hover")})},resize:function(){var t=this;t.S("["+this.attr_name()+"]").each(function(){var e,n=t.S(this),s=n.data(t.attr_name(!0)+"-init"),a=n.parent("."+t.settings.sticky_class);if(!t.breakpoint()){var r=n.hasClass("expanded");n.css("height","").removeClass("expanded").find("li").removeClass("hover"),r&&t.toggle(n)}t.is_sticky(n,a,s)&&(a.hasClass("fixed")?(a.removeClass("fixed"),e=a.offset().top,t.S(i.body).hasClass("f-topbar-fixed")&&(e-=n.data("height")),n.data("stickyoffset",e),a.addClass("fixed")):(e=a.offset().top,n.data("stickyoffset",e)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(e){var i=this,n=e.data(this.attr_name(!0)+"-init"),s=i.S("section, .top-bar-section",e);s.detach(),i.S(".has-dropdown>a",s).each(function(){var e,s=i.S(this),a=s.siblings(".dropdown"),r=s.attr("href");a.find(".title.back").length||(e=t(1==n.mobile_show_parent_link&&r?'<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link show-for-small"><a class="parent-link js-generated" href="'+r+'">'+s.html()+"</a></li>":'<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>'),1==n.custom_back_text?t("h5>a",e).html(n.back_text):t("h5>a",e).html("&laquo; "+s.html()),a.prepend(e))}),s.appendTo(e),this.sticky(),this.assembled(e)},assembled:function(e){e.data(this.attr_name(!0),t.extend({},e.data(this.attr_name(!0)),{assembled:!0}))},height:function(e){var i=0,n=this;return t("> li",e).each(function(){i+=n.S(this).outerHeight(!0)}),i},sticky:function(){var t=this;this.S(e).on("scroll",function(){t.update_sticky_positioning()})},update_sticky_positioning:function(){var t="."+this.settings.sticky_class,i=this.S(e),n=this;if(n.settings.sticky_topbar&&n.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var s=this.settings.sticky_topbar.data("stickyoffset");n.S(t).hasClass("expanded")||(i.scrollTop()>s?n.S(t).hasClass("fixed")||(n.S(t).addClass("fixed"),n.S("body").addClass("f-topbar-fixed")):i.scrollTop()<=s&&n.S(t).hasClass("fixed")&&(n.S(t).removeClass("fixed"),n.S("body").removeClass("f-topbar-fixed")))}},off:function(){this.S(this.scope).off(".fndtn.topbar"),this.S(e).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";function s(t){var e=/fade/i.test(t),i=/pop/i.test(t);return{animate:e||i,pop:i,fade:e}}Foundation.libs.reveal={name:"reveal",version:"5.4.7",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,i,n){t.extend(!0,this.settings,i,n),this.bindings(i,n)},events:function(t){var e=this,n=e.S;return n(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",function(t){if(t.preventDefault(),!e.locked){var i=n(this),s=i.data(e.data_attr("reveal-ajax"));if(e.locked=!0,"undefined"==typeof s)e.open.call(e,i);else{var a=s===!0?i.attr("href"):s;e.open.call(e,i,{url:a})}}}),n(i).on("click.fndtn.reveal",this.close_targets(),function(t){if(t.preventDefault(),!e.locked){var i=n("["+e.attr_name()+"].open").data(e.attr_name(!0)+"-init")||e.settings,s=n(t.target)[0]===n("."+i.bg_class)[0];if(s){if(!i.close_on_background_click)return;t.stopPropagation()}e.locked=!0,e.close.call(e,s?n("["+e.attr_name()+"].open"):n(this).closest("["+e.attr_name()+"]"))}}),n("["+e.attr_name()+"]",this.scope).length>0?n(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):n(this.scope).on("open.fndtn.reveal","["+e.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+e.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.close_video),!0},key_up_on:function(t){var e=this;return e.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(t){var i=e.S("["+e.attr_name()+"].open"),n=i.data(e.attr_name(!0)+"-init")||e.settings;n&&27===t.which&&n.close_on_esc&&!e.locked&&e.close.call(e,i)}),!0},key_up_off:function(t){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(i,n){var s,a=this;i?"undefined"!=typeof i.selector?s=a.S("#"+i.data(a.data_attr("reveal-id"))).first():(s=a.S(this.scope),n=i):s=a.S(this.scope);var r=s.data(a.attr_name(!0)+"-init");if(r=r||this.settings,s.hasClass("open")&&i.attr("data-reveal-id")==s.attr("id"))return a.close(s);if(!s.hasClass("open")){var o=a.S("["+a.attr_name()+"].open");if("undefined"==typeof s.data("css-top")&&s.data("css-top",parseInt(s.css("top"),10)).data("offset",this.cache_offset(s)),this.key_up_on(s),s.trigger("open").trigger("open.fndtn.reveal"),o.length<1&&this.toggle_bg(s,!0),"string"==typeof n&&(n={url:n}),"undefined"!=typeof n&&n.url){var l="undefined"!=typeof n.success?n.success:null;t.extend(n,{success:function(e,i,n){t.isFunction(l)&&l(e,i,n),s.html(e),a.S(s).foundation("section","reflow"),a.S(s).children().foundation(),o.length>0&&a.hide(o,r.css.close),a.show(s,r.css.open)}}),t.ajax(n)}else o.length>0&&this.hide(o,r.css.close),this.show(s,r.css.open)}a.S(e).trigger("resize")},close:function(t){var t=t&&t.length?t:this.S(this.scope),e=this.S("["+this.attr_name()+"].open"),i=t.data(this.attr_name(!0)+"-init")||this.settings;e.length>0&&(this.locked=!0,this.key_up_off(t),t.trigger("close").trigger("close.fndtn.reveal"),this.toggle_bg(t,!1),this.hide(e,i.css.close,i))},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(e,i){0===this.S("."+this.settings.bg_class).length&&(this.settings.bg=t("<div />",{"class":this.settings.bg_class}).appendTo("body").hide());var s=this.settings.bg.filter(":visible").length>0;i!=s&&((i==n?s:!i)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(i,n){if(n){var a=i.data(this.attr_name(!0)+"-init")||this.settings,r=a.root_element;if(0===i.parent(r).length){var o=i.wrap('<div style="display: none;" />').parent();i.on("closed.fndtn.reveal.wrapped",function(){i.detach().appendTo(o),i.unwrap().unbind("closed.fndtn.reveal.wrapped")}),i.detach().appendTo(r)}var l=s(a.animation);if(l.animate||(this.locked=!1),l.pop){n.top=t(e).scrollTop()-i.data("offset")+"px";var c={top:t(e).scrollTop()+i.data("css-top")+"px",opacity:1};return setTimeout(function(){return i.css(n).animate(c,a.animation_speed,"linear",function(){this.locked=!1,i.trigger("opened").trigger("opened.fndtn.reveal")}.bind(this)).addClass("open")}.bind(this),a.animation_speed/2)}if(l.fade){n.top=t(e).scrollTop()+i.data("css-top")+"px";var c={opacity:1};return setTimeout(function(){return i.css(n).animate(c,a.animation_speed,"linear",function(){this.locked=!1,i.trigger("opened").trigger("opened.fndtn.reveal")}.bind(this)).addClass("open")}.bind(this),a.animation_speed/2)}return i.css(n).show().css({opacity:1}).addClass("open").trigger("opened").trigger("opened.fndtn.reveal")}var a=this.settings;return s(a.animation).fade?i.fadeIn(a.animation_speed/2):(this.locked=!1,i.show())},hide:function(i,n){if(n){var a=i.data(this.attr_name(!0)+"-init");a=a||this.settings;var r=s(a.animation);if(r.animate||(this.locked=!1),r.pop){var o={top:-t(e).scrollTop()-i.data("offset")+"px",opacity:0};return setTimeout(function(){return i.animate(o,a.animation_speed,"linear",function(){this.locked=!1,i.css(n).trigger("closed").trigger("closed.fndtn.reveal")}.bind(this)).removeClass("open")}.bind(this),a.animation_speed/2)}if(r.fade){var o={opacity:0};return setTimeout(function(){return i.animate(o,a.animation_speed,"linear",function(){this.locked=!1,i.css(n).trigger("closed").trigger("closed.fndtn.reveal")}.bind(this)).removeClass("open")}.bind(this),a.animation_speed/2)}return i.hide().css(n).removeClass("open").trigger("closed").trigger("closed.fndtn.reveal")}var a=this.settings;return s(a.animation).fade?i.fadeOut(a.animation_speed/2):i.hide()},close_video:function(e){var i=t(".flex-video",e.target),n=t("iframe",i);n.length>0&&(n.attr("data-src",n[0].src),n.attr("src",n.attr("src")),i.hide())},open_video:function(e){var i=t(".flex-video",e.target),s=i.find("iframe");if(s.length>0){var a=s.attr("data-src");if("string"==typeof a)s[0].src=s.attr("data-src");else{var r=s[0].src;s[0].src=n,s[0].src=r}i.show()}},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10);return t.hide(),e},off:function(){t(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,i,n){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.4.7",settings:{open_method:"move",close_on_click:!1},init:function(t,e,i){this.bindings(e,i)},events:function(){var e=this,i=e.S,n="",s="",a="";"move"===this.settings.open_method?(n="move-",s="right",a="left"):"overlap_single"===this.settings.open_method?(n="offcanvas-overlap-",s="right",a="left"):"overlap"===this.settings.open_method&&(n="offcanvas-overlap"),i(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(a){e.click_toggle_class(a,n+s),"overlap"!==e.settings.open_method&&i(".left-submenu").removeClass(n+s),t(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".left-off-canvas-menu a",function(a){var r=e.get_settings(a),o=i(this).parent();!r.close_on_click||o.hasClass("has-submenu")||o.hasClass("back")?i(this).parent().hasClass("has-submenu")?(a.preventDefault(),i(this).siblings(".left-submenu").toggleClass(n+s)):o.hasClass("back")&&(a.preventDefault(),o.parent().removeClass(n+s)):(e.hide.call(e,n+s,e.get_wrapper(a)),o.parent().removeClass(n+s)),t(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(s){e.click_toggle_class(s,n+a),"overlap"!==e.settings.open_method&&i(".right-submenu").removeClass(n+a),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-menu a",function(s){var r=e.get_settings(s),o=i(this).parent();!r.close_on_click||o.hasClass("has-submenu")||o.hasClass("back")?i(this).parent().hasClass("has-submenu")?(s.preventDefault(),i(this).siblings(".right-submenu").toggleClass(n+a)):o.hasClass("back")&&(s.preventDefault(),o.parent().removeClass(n+a)):(e.hide.call(e,n+a,e.get_wrapper(s)),o.parent().removeClass(n+a)),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(r){e.click_remove_class(r,n+a),i(".right-submenu").removeClass(n+a),s&&(e.click_remove_class(r,n+s),i(".left-submenu").removeClass(n+a)),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(i){e.click_remove_class(i,n+a),t(".left-off-canvas-toggle").attr("aria-expanded","false"),s&&(e.click_remove_class(i,n+s),t(".right-off-canvas-toggle").attr("aria-expanded","false"))})},toggle:function(t,e){e=e||this.get_wrapper(),e.is("."+t)?this.hide(t,e):this.show(t,e)},show:function(t,e){e=e||this.get_wrapper(),e.trigger("open").trigger("open.fndtn.offcanvas"),e.addClass(t)},hide:function(t,e){e=e||this.get_wrapper(),e.trigger("close").trigger("close.fndtn.offcanvas"),e.removeClass(t)},click_toggle_class:function(t,e){t.preventDefault();var i=this.get_wrapper(t);this.toggle(e,i)},click_remove_class:function(t,e){t.preventDefault();var i=this.get_wrapper(t);this.hide(e,i)},get_settings:function(t){var e=this.S(t.target).closest("["+this.attr_name()+"]");return e.data(this.attr_name(!0)+"-init")||this.settings},get_wrapper:function(t){var e=this.S(t?t.target:this.scope).closest(".off-canvas-wrap");return 0===e.length&&(e=this.S(".off-canvas-wrap")),e},reflow:function(){}}}(jQuery,window,window.document),function(){"use strict";$(document).foundation()}(),function(t){"use strict";function e(e,i,n){"addEventListener"in t?e.addEventListener(i,n,!1):"attachEvent"in t&&e.attachEvent("on"+i,n)}function i(e,i,n){"removeEventListener"in t?e.removeEventListener(i,n,!1):"detachEvent"in t&&e.detachEvent("on"+i,n)}function n(){var e,i=["moz","webkit","o","ms"];for(e=0;e<i.length&&!H;e+=1)H=t[i[e]+"RequestAnimationFrame"];H||o("setup","RequestAnimationFrame not supported")}function s(e){var i="Host page: "+e;return t.top!==t.self&&(i=t.parentIFrame&&t.parentIFrame.getId?t.parentIFrame.getId()+": "+e:"Nested host page: "+e),i}function a(t){return R+"["+s(t)+"]"}function r(t){return B[t]?B[t].log:I}function o(t,e){u("log",t,e,r(t))}function l(t,e){u("info",t,e,r(t))}function c(t,e){u("warn",t,e,!0)}function u(e,i,n,s){!0===s&&"object"==typeof t.console&&console[e](a(i),n)}function h(n){function s(){function t(){b(Y),g(K)}r("Height"),r("Width"),_(t,Y,"init")}function a(){var t=V.substr(j).split(":");return{iframe:B[t[0]].iframe,id:t[0],height:t[1],width:t[2],type:t[3]}}function r(t){var e=Number(B[K]["max"+t]),i=Number(B[K]["min"+t]),n=t.toLowerCase(),s=Number(Y[n]);o(K,"Checking "+n+" is in range "+i+"-"+e),i>s&&(s=i,o(K,"Set "+n+" to min value")),s>e&&(s=e,o(K,"Set "+n+" to max value")),Y[n]=""+s}function u(){function t(){function t(){var t=0,n=!1;for(o(K,"Checking connection is from allowed list of origins: "+i);t<i.length;t++)if(i[t]===e){n=!0;break}return n}function n(){var t=B[K].remoteHost;return o(K,"Checking connection is from: "+t),e===t}return i.constructor===Array?t():n()}var e=n.origin,i=B[K].checkOrigin;if(i&&""+e!="null"&&!t())throw new Error("Unexpected message received from: "+e+" for "+Y.iframe.id+". Message was: "+n.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function h(){return R===(""+V).substr(0,j)&&V.substr(j).split(":")[0]in B}function x(){var t=Y.type in{"true":1,"false":1,undefined:1};return t&&o(K,"Ignoring init message from meta parent page"),t}function C(t){return V.substr(V.indexOf(":")+O+t)}function S(t){o(K,"MessageCallback passed: {iframe: "+Y.iframe.id+", message: "+t+"}"),H("messageCallback",{iframe:Y.iframe,message:JSON.parse(t)}),o(K,"--")}function D(){var e=document.body.getBoundingClientRect(),i=Y.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,t.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,t.innerWidth||0),offsetTop:parseInt(i.top-e.top,10),offsetLeft:parseInt(i.left-e.left,10),scrollTop:t.pageYOffset,scrollLeft:t.pageXOffset})}function T(t,e){function i(){y("Send Page Info","pageInfo:"+D(),t,e)}k(i,32)}function A(){function n(e,i){function n(){B[r]?T(B[r].iframe,r):s()}["scroll","resize"].forEach(function(s){o(r,e+s+" listener for sendPageInfo"),i(t,s,n)})}function s(){n("Remove ",i)}function a(){n("Add ",e)}var r=K;a(),B[r].stopPageInfo=s}function E(){B[K]&&B[K].stopPageInfo&&(B[K].stopPageInfo(),delete B[K].stopPageInfo)}function M(){var t=!0;return null===Y.iframe&&(c(K,"IFrame ("+Y.id+") not found"),t=!1),t}function P(t){var e=t.getBoundingClientRect();return f(K),{x:Math.floor(Number(e.left)+Number(L.x)),y:Math.floor(Number(e.top)+Number(L.y))}}function I(e){function i(){L=r,N(),o(K,"--")}function n(){return{x:Number(Y.width)+a.x,y:Number(Y.height)+a.y}}function s(){t.parentIFrame?t.parentIFrame["scrollTo"+(e?"Offset":"")](r.x,r.y):c(K,"Unable to scroll to requested position, window.parentIFrame not found")}var a=e?P(Y.iframe):{x:0,y:0},r=n();o(K,"Reposition requested from iFrame (offset x:"+a.x+" y:"+a.y+")"),t.top!==t.self?s():i()}function N(){!1!==H("scrollCallback",L)?g(K):m()}function F(e){function i(){var t=P(r);o(K,"Moving to in page link (#"+s+") at x: "+t.x+" y: "+t.y),L={x:t.x,y:t.y},N(),o(K,"--")}function n(){t.parentIFrame?t.parentIFrame.moveToAnchor(s):o(K,"In page link #"+s+" not found and window.parentIFrame not found")}var s=e.split("#")[1]||"",a=decodeURIComponent(s),r=document.getElementById(a)||document.getElementsByName(a)[0];r?i():t.top!==t.self?n():o(K,"In page link #"+s+" not found")}function H(t,e){return d(K,t,e)}function z(){switch(B[K].firstRun&&U(),Y.type){case"close":p(Y.iframe);break;case"message":S(C(6));break;case"scrollTo":I(!1);break;case"scrollToOffset":I(!0);break;case"pageInfo":T(B[K].iframe,K),A();break;case"pageInfoStop":E();break;case"inPageLink":F(C(9));break;case"reset":v(Y);break;case"init":s(),H("initCallback",Y.iframe),H("resizedCallback",Y);break;default:s(),H("resizedCallback",Y)}}function q(t){var e=!0;return B[t]||(e=!1,c(Y.type+" No settings for "+t+". Message was: "+V)),e}function W(){for(var t in B)y("iFrame requested init",w(t),document.getElementById(t),t)}function U(){B[K].firstRun=!1}var V=n.data,Y={},K=null;"[iFrameResizerChild]Ready"===V?W():h()?(Y=a(),K=$=Y.id,!x()&&q(K)&&(o(K,"Received: "+V),M()&&u()&&z())):l(K,"Ignored: "+V)}function d(t,e,i){var n=null,s=null;if(B[t]){if(n=B[t][e],"function"!=typeof n)throw new TypeError(e+" on iFrame["+t+"] is not a function");s=n(i)}return s}function p(t){var e=t.id;o(e,"Removing iFrame: "+e),t.parentNode.removeChild(t),d(e,"closedCallback",e),o(e,"--"),delete B[e]}function f(e){null===L&&(L={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},o(e,"Get page position: "+L.x+","+L.y))}function g(e){null!==L&&(t.scrollTo(L.x,L.y),o(e,"Set page position: "+L.x+","+L.y),m())}function m(){L=null}function v(t){function e(){b(t),y("reset","reset",t.iframe,t.id)}o(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),f(t.id),_(e,t,"reset")}function b(t){function e(e){t.iframe.style[e]=t[e]+"px",o(t.id,"IFrame ("+s+") "+e+" set to "+t[e]+"px")}function i(e){N||"0"!==t[e]||(N=!0,o(s,"Hidden iFrame detected, creating visibility listener"),C())}function n(t){e(t),i(t)}var s=t.iframe.id;B[s]&&(B[s].sizeHeight&&n("height"),B[s].sizeWidth&&n("width"))}function _(t,e,i){i!==e.type&&H?(o(e.id,"Requesting animation frame"),H(t)):t()}function y(t,e,i,n){function s(){var s=B[n].targetOrigin;o(n,"["+t+"] Sending msg to iframe["+n+"] ("+e+") targetOrigin: "+s),i.contentWindow.postMessage(R+e,s)}function a(){l(n,"["+t+"] IFrame("+n+") not found"),B[n]&&delete B[n]}function r(){i&&"contentWindow"in i&&null!==i.contentWindow?s():a()}n=n||i.id,B[n]&&r()}function w(t){return t+":"+B[t].bodyMarginV1+":"+B[t].sizeWidth+":"+B[t].log+":"+B[t].interval+":"+B[t].enablePublicMethods+":"+B[t].autoResize+":"+B[t].bodyMargin+":"+B[t].heightCalculationMethod+":"+B[t].bodyBackground+":"+B[t].bodyPadding+":"+B[t].tolerance+":"+B[t].inPageLinks+":"+B[t].resizeFrom+":"+B[t].widthCalculationMethod}function x(t,i){function n(){function e(e){1/0!==B[x][e]&&0!==B[x][e]&&(t.style[e]=B[x][e]+"px",o(x,"Set "+e+" = "+B[x][e]+"px"))}function i(t){if(B[x]["min"+t]>B[x]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}i("Height"),i("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}function s(){var t=i&&i.id||W.id+P++;return null!==document.getElementById(t)&&(t+=P++),t}function a(e){return $=e,""===e&&(t.id=e=s(),I=(i||{}).log,$=e,o(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}function r(){o(x,"IFrame scrolling "+(B[x].scrolling?"enabled":"disabled")+" for "+x),t.style.overflow=!1===B[x].scrolling?"hidden":"auto",t.scrolling=!1===B[x].scrolling?"no":"yes"}function l(){"number"!=typeof B[x].bodyMargin&&"0"!==B[x].bodyMargin||(B[x].bodyMarginV1=B[x].bodyMargin,B[x].bodyMargin=""+B[x].bodyMargin+"px")}function u(){var e=B[x].firstRun,i=B[x].heightCalculationMethod in z;!e&&i&&v({iframe:t,height:0,width:0,type:"init"})}function h(){Function.prototype.bind&&(B[x].iframe.iFrameResizer={close:p.bind(null,B[x].iframe),resize:y.bind(null,"Window resize","resize",B[x].iframe),moveToAnchor:function(t){y("Move to anchor","inPageLink:"+t,B[x].iframe,x)},sendMessage:function(t){t=JSON.stringify(t),y("Send Message","message:"+t,B[x].iframe,x)}})}function d(i){function n(){y("iFrame.onload",i,t),u()}e(t,"load",n),y("init",i,t)}function f(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}function g(t){for(var e in W)W.hasOwnProperty(e)&&(B[x][e]=t.hasOwnProperty(e)?t[e]:W[e])}function m(t){return""===t||"file://"===t?"*":t}function b(e){e=e||{},B[x]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},f(e),g(e),B[x].targetOrigin=!0===B[x].checkOrigin?m(B[x].remoteHost):"*"}function _(){return x in B&&"iFrameResizer"in t}var x=a(t.id);_()?c(x,"Ignored iFrame, already setup."):(b(i),r(),n(),l(),d(w(x)),h())}function k(t,e){null===q&&(q=setTimeout(function(){q=null,t()},e))}function C(){function e(){function t(t){function e(e){return"0px"===B[t].iframe.style[e]}function i(t){return null!==t.offsetParent}i(B[t].iframe)&&(e("height")||e("width"))&&y("Visibility change","resize",B[t].iframe,t)}for(var e in B)t(e)}function i(t){o("window","Mutation observed: "+t[0].target+" "+t[0].type),k(e,16)}function n(){var t=document.querySelector("body"),e={attributes:!0,attributeOldValue:!1,characterData:!0,
+characterDataOldValue:!1,childList:!0,subtree:!0},n=new s(i);n.observe(t,e)}var s=t.MutationObserver||t.WebKitMutationObserver;s&&n()}function S(t){function e(){T("Window "+t,"resize")}o("window","Trigger event: "+t),k(e,16)}function D(){function t(){T("Tab Visable","resize")}"hidden"!==document.visibilityState&&(o("document","Trigger event: Visiblity change"),k(t,16))}function T(t,e){function i(t){return"parent"===B[t].resizeFrom&&B[t].autoResize&&!B[t].firstRun}for(var n in B)i(n)&&y(t,e,document.getElementById(n),n)}function A(){e(t,"message",h),e(t,"resize",function(){S("resize")}),e(document,"visibilitychange",D),e(document,"-webkit-visibilitychange",D),e(t,"focusin",function(){S("focus")}),e(t,"focus",function(){S("focus")})}function E(){function t(t,i){function n(){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}i&&(n(),x(i,t),e.push(i))}var e;return n(),A(),function(i,n){switch(e=[],typeof n){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),t.bind(void 0,i));break;case"object":t(i,n);break;default:throw new TypeError("Unexpected data type ("+typeof n+")")}return e}}function M(t){t.fn.iFrameResize=function(t){return this.filter("iframe").each(function(e,i){x(i,t)}).end()}}var P=0,I=!1,N=!1,F="message",O=F.length,R="[iFrameSizer]",j=R.length,L=null,H=t.requestAnimationFrame,z={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},B={},q=null,$="Host Page",W={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){c("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};t.jQuery&&M(jQuery),"function"==typeof define&&define.amd?define([],E):"object"==typeof module&&"object"==typeof module.exports?module.exports=E():t.iFrameResize=t.iFrameResize||E()}(window||{}),function(){var t,e,i;!function(n){function s(t,e){return y.call(t,e)}function a(t,e){var i,n,s,a,r,o,l,c,u,h,d,p=e&&e.split("/"),f=b.map,g=f&&f["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),r=t.length-1,b.nodeIdCompat&&x.test(t[r])&&(t[r]=t[r].replace(x,"")),t=p.slice(0,p.length-1).concat(t),u=0;u<t.length;u+=1)if(d=t[u],"."===d)t.splice(u,1),u-=1;else if(".."===d){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((p||g)&&f){for(i=t.split("/"),u=i.length;u>0;u-=1){if(n=i.slice(0,u).join("/"),p)for(h=p.length;h>0;h-=1)if(s=f[p.slice(0,h).join("/")],s&&(s=s[n])){a=s,o=u;break}if(a)break;!l&&g&&g[n]&&(l=g[n],c=u)}!a&&l&&(a=l,o=c),a&&(i.splice(0,o,a),t=i.join("/"))}return t}function r(t,e){return function(){var i=w.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),p.apply(n,i.concat([t,e]))}}function o(t){return function(e){return a(e,t)}}function l(t){return function(e){m[t]=e}}function c(t){if(s(v,t)){var e=v[t];delete v[t],_[t]=!0,d.apply(n,e)}if(!s(m,t)&&!s(_,t))throw new Error("No "+t);return m[t]}function u(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function h(t){return function(){return b&&b.config&&b.config[t]||{}}}var d,p,f,g,m={},v={},b={},_={},y=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;f=function(t,e){var i,n=u(t),s=n[0];return t=n[1],s&&(s=a(s,e),i=c(s)),s?t=i&&i.normalize?i.normalize(t,o(e)):a(t,e):(t=a(t,e),n=u(t),s=n[0],t=n[1],s&&(i=c(s))),{f:s?s+"!"+t:t,n:t,pr:s,p:i}},g={require:function(t){return r(t)},exports:function(t){var e=m[t];return"undefined"!=typeof e?e:m[t]={}},module:function(t){return{id:t,uri:"",exports:m[t],config:h(t)}}},d=function(t,e,i,a){var o,u,h,d,p,b,y=[],w=typeof i;if(a=a||t,"undefined"===w||"function"===w){for(e=!e.length&&i.length?["require","exports","module"]:e,p=0;p<e.length;p+=1)if(d=f(e[p],a),u=d.f,"require"===u)y[p]=g.require(t);else if("exports"===u)y[p]=g.exports(t),b=!0;else if("module"===u)o=y[p]=g.module(t);else if(s(m,u)||s(v,u)||s(_,u))y[p]=c(u);else{if(!d.p)throw new Error(t+" missing "+u);d.p.load(d.n,r(a,!0),l(u),{}),y[p]=m[u]}h=i?i.apply(m[t],y):void 0,t&&(o&&o.exports!==n&&o.exports!==m[t]?m[t]=o.exports:h===n&&b||(m[t]=h))}else t&&(m[t]=i)},t=e=p=function(t,e,i,s,a){if("string"==typeof t)return g[t]?g[t](e):c(f(t,e).f);if(!t.splice){if(b=t,b.deps&&p(b.deps,b.callback),!e)return;e.splice?(t=e,e=i,i=null):t=n}return e=e||function(){},"function"==typeof i&&(i=s,s=a),s?d(n,t,e,i):setTimeout(function(){d(n,t,e,i)},4),p},p.config=function(t){return p(t)},t._defined=m,i=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),s(m,t)||s(v,t)||(v[t]=[t,e,i])},i.amd={jQuery:!0}}(),i("bower_components/almond/almond",function(){}),i("flight/lib/registry",[],function(){"use strict";function t(t,e){var i,n,s,a=e.length;return"function"==typeof e[a-1]&&(a-=1,s=e[a]),"object"==typeof e[a-1]&&(a-=1),2==a?(i=e[0],n=e[1]):(i=t.node,n=e[0]),{element:i,type:n,callback:s}}function e(t,e){return t.element==e.element&&t.type==e.type&&(null==e.callback||t.callback==e.callback)}function i(){function i(t){this.component=t,this.attachedTo=[],this.instances={},this.addInstance=function(t){var e=new n(t);return this.instances[t.identity]=e,this.attachedTo.push(t.node),e},this.removeInstance=function(t){delete this.instances[t.identity];var e=this.attachedTo.indexOf(t.node);e>-1&&this.attachedTo.splice(e,1),Object.keys(this.instances).length||s.removeComponentInfo(this)},this.isAttachedTo=function(t){return this.attachedTo.indexOf(t)>-1}}function n(t){this.instance=t,this.events=[],this.addBind=function(t){this.events.push(t),s.events.push(t)},this.removeBind=function(t){for(var i,n=0;i=this.events[n];n++)e(i,t)&&this.events.splice(n,1)}}var s=this;(this.reset=function(){this.components=[],this.allInstances={},this.events=[]}).call(this),this.addInstance=function(t){var e=this.findComponentInfo(t);e||(e=new i(t.constructor),this.components.push(e));var n=e.addInstance(t);return this.allInstances[t.identity]=n,e},this.removeInstance=function(t){var e=this.findComponentInfo(t);e&&e.removeInstance(t),delete this.allInstances[t.identity]},this.removeComponentInfo=function(t){var e=this.components.indexOf(t);e>-1&&this.components.splice(e,1)},this.findComponentInfo=function(t){for(var e,i=t.attachTo?t:t.constructor,n=0;e=this.components[n];n++)if(e.component===i)return e;return null},this.findInstanceInfo=function(t){return this.allInstances[t.identity]||null},this.getBoundEventNames=function(t){return this.findInstanceInfo(t).events.map(function(t){return t.type})},this.findInstanceInfoByNode=function(t){var e=[];return Object.keys(this.allInstances).forEach(function(i){var n=this.allInstances[i];n.instance.node===t&&e.push(n)},this),e},this.on=function(e){for(var i,n=s.findInstanceInfo(this),a=arguments.length,r=1,o=new Array(a-1);a>r;r++)o[r-1]=arguments[r];if(n){i=e.apply(null,o),i&&(o[o.length-1]=i);var l=t(this,o);n.addBind(l)}},this.off=function(){var i=t(this,arguments),n=s.findInstanceInfo(this);n&&n.removeBind(i);for(var a,r=0;a=s.events[r];r++)e(a,i)&&s.events.splice(r,1)},s.trigger=function(){},this.teardown=function(){s.removeInstance(this)},this.withRegistration=function(){this.after("initialize",function(){s.addInstance(this)}),this.around("on",s.on),this.after("off",s.off),window.DEBUG&&DEBUG.enabled&&this.after("trigger",s.trigger),this.after("teardown",{obj:s,fnName:"teardown"})}}return new i}),i("flight/lib/debug",["./registry"],function(t){"use strict";function e(t,i,n){n=n||{};var s=n.obj||window,a=n.path||(s==window?"window":""),r=Object.keys(s);r.forEach(function(n){(g[t]||t)(i,s,n)&&console.log([a,".",n].join(""),"->",["(",typeof s[n],")"].join(""),s[n]),"[object Object]"==Object.prototype.toString.call(s[n])&&s[n]!=s&&-1==a.split(".").indexOf(n)&&e(t,i,{obj:s[n],path:[a,n].join(".")})})}function i(t,i,n,s){i&&typeof n!=i?console.error([n,"must be",i].join(" ")):e(t,n,s)}function n(t,e){i("name","string",t,e)}function s(t,e){i("nameContains","string",t,e)}function a(t,e){i("type","function",t,e)}function r(t,e){i("value",null,t,e)}function o(t,e){i("valueCoerced",null,t,e)}function l(t,i){e(t,null,i)}function c(){var t=[].slice.call(arguments);v.eventNames.length||(v.eventNames=m),v.actions=t.length?t:m,p()}function u(){var t=[].slice.call(arguments);v.actions.length||(v.actions=m),v.eventNames=t.length?t:m,p()}function h(){v.actions=[],v.eventNames=[],p()}function d(){v.actions=m,v.eventNames=m,p()}function p(){try{window.localStorage&&(localStorage.setItem("logFilter_eventNames",v.eventNames),localStorage.setItem("logFilter_actions",v.actions))}catch(t){}}function f(){var t,e;try{t=window.localStorage&&localStorage.getItem("logFilter_eventNames"),e=window.localStorage&&localStorage.getItem("logFilter_actions")}catch(i){return}t&&(v.eventNames=t),e&&(v.actions=e),Object.keys(v).forEach(function(t){var e=v[t];"string"==typeof e&&e!==m&&(v[t]=e?e.split(","):[])})}var g={name:function(t,e,i){return t==i},nameContains:function(t,e,i){return i.indexOf(t)>-1},type:function(t,e,i){return e[i]instanceof t},value:function(t,e,i){return e[i]===t},valueCoerced:function(t,e,i){return e[i]==t}},m="all",v={eventNames:[],actions:[]};return{enable:function(t){this.enabled=!!t,t&&window.console&&(console.info("Booting in DEBUG mode"),console.info("You can configure event logging with DEBUG.events.logAll()/logNone()/logByName()/logByAction()")),f(),window.DEBUG=this},registry:t,find:{byName:n,byNameContains:s,byType:a,byValue:r,byValueCoerced:o,custom:l},events:{logFilter:v,logByAction:c,logByName:u,logAll:d,logNone:h}}}),i("flight/lib/utils",["./debug"],function(t){"use strict";function e(){var e=t.enabled&&!Object.propertyIsEnumerable("getOwnPropertyDescriptor");if(e)try{Object.getOwnPropertyDescriptor(Object,"keys")}catch(i){return!1}return e}var i=100,n={isDomObj:function(t){return!(!t.nodeType&&t!==window)},toArray:function(t,e){e=e||0;for(var i=t.length,n=new Array(i-e),s=e;i>s;s++)n[s-e]=t[s];return n},merge:function(){var t=arguments.length,e=new Array(t+1);if(0===t)return{};for(var i=0;t>i;i++)e[i+1]=arguments[i];return e[0]={},e[e.length-1]===!0&&(e.pop(),e.unshift(!0)),$.extend.apply(void 0,e)},push:function(t,e,i){return t&&Object.keys(e||{}).forEach(function(n){if(t[n]&&i)throw new Error('utils.push attempted to overwrite "'+n+'" while running in protected mode');"object"==typeof t[n]&&"object"==typeof e[n]?this.push(t[n],e[n]):t[n]=e[n]},this),t},getEnumerableProperty:function(t,e){return t.propertyIsEnumerable(e)?t[e]:void 0},compose:function(){var t=arguments;return function(){for(var e=arguments,i=t.length-1;i>=0;i--)e=[t[i].apply(this,e)];return e[0]}},uniqueArray:function(t){for(var e={},i=[],n=0,s=t.length;s>n;++n)e.hasOwnProperty(t[n])||(i.push(t[n]),e[t[n]]=1);return i},debounce:function(t,e,n){"number"!=typeof e&&(e=i);var s,a;return function(){var i=this,r=arguments,o=function(){s=null,n||(a=t.apply(i,r))},l=n&&!s;return s&&clearTimeout(s),s=setTimeout(o,e),l&&(a=t.apply(i,r)),a}},throttle:function(t,e){"number"!=typeof e&&(e=i);var n,s,a,r,o,l,c=this.debounce(function(){o=r=!1},e);return function(){n=this,s=arguments;var i=function(){a=null,o&&(l=t.apply(n,s)),c()};return a||(a=setTimeout(i,e)),r?o=!0:(r=!0,l=t.apply(n,s)),c(),l}},countThen:function(t,e){return function(){return--t?void 0:e.apply(this,arguments)}},delegate:function(t){return function(e,i){var n,s=$(e.target);Object.keys(t).forEach(function(a){return!e.isPropagationStopped()&&(n=s.closest(a)).length?(i=i||{},i.el=n[0],t[a].apply(this,[e,i])):void 0},this)}},once:function(t){var e,i;return function(){return e?i:(e=!0,i=t.apply(this,arguments))}},propertyWritability:function(t,i,n){e()&&t.hasOwnProperty(i)&&Object.defineProperty(t,i,{writable:n})},mutateProperty:function(t,i,n){var s;return e()&&t.hasOwnProperty(i)?(s=Object.getOwnPropertyDescriptor(t,i).writable,Object.defineProperty(t,i,{writable:!0}),n.call(t),void Object.defineProperty(t,i,{writable:s})):void n.call(t)}};return n}),i("flight/lib/compose",["./utils"],function(t){"use strict";function e(e,i){Object.keys(e).forEach(function(s){n.indexOf(s)<0&&t.propertyWritability(e,s,i)})}function i(t,i){t.mixedIn=t.hasOwnProperty("mixedIn")?t.mixedIn:[];for(var n=0;n<i.length;n++)-1==t.mixedIn.indexOf(i[n])&&(e(t,!1),i[n].call(t),t.mixedIn.push(i[n]));e(t,!0)}var n=["mixedIn","attrDef"];return{mixin:i}}),i("flight/lib/advice",["./utils"],function(t){"use strict";var e={around:function(t,e){return function(){var i=0,n=arguments.length,s=new Array(n+1);for(s[0]=t.bind(this);n>i;i++)s[i+1]=arguments[i];return e.apply(this,s)}},before:function(t,e){var i="function"==typeof e?e:e.obj[e.fnName];return function(){return i.apply(this,arguments),t.apply(this,arguments)}},after:function(t,e){var i="function"==typeof e?e:e.obj[e.fnName];return function(){var e=(t.unbound||t).apply(this,arguments);return i.apply(this,arguments),e}},withAdvice:function(){["before","after","around"].forEach(function(i){this[i]=function(n,s){t.mutateProperty(this,n,function(){return"function"==typeof this[n]?this[n]=e[i](this[n],s):this[n]=s,this[n]})}},this)}};return e}),i("flight/lib/logger",["./utils"],function(t){"use strict";function e(t){var e=t.tagName?t.tagName.toLowerCase():t.toString(),i=t.className?"."+t.className:"",n=e+i;return t.tagName?["'","'"].join(n):n}function i(t,i,n){if(window.DEBUG&&window.DEBUG.enabled){var a,r,o,l,c,u,h,d,p,f;"function"==typeof n[n.length-1]&&(l=n.pop(),l=l.unbound||l),1==n.length?(o=i.$node[0],r=n[0]):2!=n.length||"object"!=typeof n[1]||n[1].type?(o=n[0],r=n[1],"trigger"==t&&(c=n[2])):(o=i.$node[0],r=n[0],"trigger"==t&&(c=n[1])),a="object"==typeof r?r.type:r,u=DEBUG.events.logFilter,d="all"==u.actions||u.actions.indexOf(t)>-1,h=function(t){return t.test?t:new RegExp("^"+t.replace(/\*/g,".*")+"$")},p="all"==u.eventNames||u.eventNames.some(function(t){return h(t).test(a)}),d&&p&&(f=[s[t],t,"["+a+"]"],c&&f.push(c),f.push(e(o)),f.push(i.constructor.describe.split(" ").slice(0,3).join(" ")),console.groupCollapsed&&"trigger"==t&&console.groupCollapsed(t,a),console.info.apply(console,f))}}function n(){this.before("trigger",function(){i("trigger",this,t.toArray(arguments))}),console.groupCollapsed&&this.after("trigger",function(){console.groupEnd()}),this.before("on",function(){i("on",this,t.toArray(arguments))}),this.before("off",function(){i("off",this,t.toArray(arguments))})}var s={on:"<-",trigger:"->",off:"x "};return n}),i("page/events",[],function(){"use strict";var t={router:{pushState:"router:pushState"},ui:{sendbutton:{enable:"ui:sendbutton:enable"},middlePane:{expand:"ui:middlePane:expand",contract:"ui:middlePane:contract"},userAlerts:{displayMessage:"ui:userAlerts:displayMessage"},tag:{selected:"ui:tagSelected",select:"ui:tagSelect"},tags:{loaded:"ui:tagsLoaded"},tagList:{load:"ui:tagList:load"},mails:{refresh:"ui:mails:refresh",fetchByTag:"ui:mails:fetchByTag",cleanSelected:"ui:mails:cleanSelected",checkAll:"ui:mails:checkAll",uncheckAll:"ui:mails:uncheckAll",hasMailsChecked:"ui:mails:hasMailsChecked"},mail:{open:"ui:mail:open",updateSelected:"ui:mail:updateSelected","delete":"ui:mail:delete",deleteMany:"ui:mail:deleteMany",recoverMany:"ui:mail:recoverMany",archiveMany:"ui:mail:archiveMany",wantChecked:"ui:mail:wantChecked",hereChecked:"ui:mail:hereChecked",checked:"ui:mail:checked",discard:"ui:mail:discard",unchecked:"ui:mail:unchecked",changedSinceLastSave:"ui:mail:changedSinceLastSave",send:"ui:mail:send",recipientsUpdated:"ui:mail:recipientsUpdated"},page:{previous:"ui:page:previous",next:"ui:page:next",changed:"ui:page:changed",spinLogo:"ui:page:spinLogo",stopSpinningLogo:"ui:page:stopSpinningLogo"},composeBox:{newMessage:"ui:composeBox:newMessage",newReply:"ui:composeBox:newReply",trashReply:"ui:composeBox:trashReply",requestCancelReply:"ui:composeBox:requestCancelReply"},replyBox:{showReply:"ui:replyBox:showReply",showReplyAll:"ui:replyBox:showReplyAll",showReplyContainer:"ui:replyBox:showReplyContainer"},recipients:{entered:"ui:recipients:entered",enteredInvalid:"ui:recipients:enteredInvalid",updated:"ui:recipients:updated",editRecipient:"ui:recipients:editRecipient",deleteRecipient:"ui:recipients:deleteRecipient",deleteLast:"ui:recipients:deleteLast",selectLast:"ui:recipients:selectLast",unselectAll:"ui:recipients:unselectAll",addressesExist:"ui:recipients:addressesExist",inputFieldHasCharacters:"ui:recipients:inputFieldHasCharacters",inputFieldIsEmpty:"ui:recipients:inputFieldIsEmpty",doCompleteInput:"ui:recipients:doCompleteInput",doCompleteRecipients:"ui:recipients:doCompleteRecipients",clickToEdit:"ui:recipients:clickToEdit"},userSettingsBox:{toggle:"ui:userSettingsBox:toggle"}},search:{perform:"search:perform",results:"search:results",empty:"search:empty",highlightResults:"search:highlightResults",resetHighlight:"search:resetHighlight"},feedback:{submit:"feedback:submit",submitted:"feedback:submitted"},userSettings:{here:"userSettings:here",getInfo:"userSettings:getInfo",destroyPopup:"userSettings:destroyPopup"},mail:{here:"mail:here",want:"mail:want",display:"mail:display",highlightMailContent:"mail:highlightMailContent",send:"mail:send",send_failed:"mail:send_failed",sent:"mail:sent",read:"mail:read",unread:"mail:unread","delete":"mail:delete",deleteMany:"mail:deleteMany",archiveMany:"mail:archiveMany",recoverMany:"mail:recoverMany",deleted:"mail:deleted",saveDraft:"draft:save",draftSaved:"draft:saved",draftReply:{want:"mail:draftReply:want",here:"mail:draftReply:here",notFound:"mail:draftReply:notFound"},notFound:"mail:notFound",save:"mail:saved",tags:{update:"mail:tags:update",updated:"mail:tags:updated"},uploadedAttachment:"mail:uploaded:attachment",uploadingAttachment:"mail:uploading:attachment",startUploadAttachment:"mail:start:upload:attachment",failedUploadAttachment:"mail:failed:upload:attachment",appendAttachment:"mail:append:attachment",resetAttachments:"mail:reset:attachments",removeAttachment:"mail:remove:attachment"},mails:{available:"mails:available",availableForRefresh:"mails:available:refresh",teardown:"mails:teardown"},tags:{want:"tags:want",received:"tags:received",teardown:"tags:teardown",shortcuts:{teardown:"tags:shortcuts:teardown"}},route:{toUrl:"route:toUrl"},components:{composeBox:{open:"components:composeBox:open",close:"components:composeBox:close"},mailPane:{open:"components:mailPane:open",close:"components:mailPane:close"},mailView:{show:"components:mailView:show",close:"components:mailView:close"},replySection:{initialize:"components:replySection:initialize",close:"components:replySection:close"},noMessageSelectedPane:{open:"components:noMessageSelectedPane:open",close:"components:noMessageSelectedPane:close"}},dispatchers:{rightPane:{openComposeBox:"dispatchers:rightPane:openComposeBox",openFeedbackBox:"dispatchers:rightPane:openFeedbackBox",openNoMessageSelected:"dispatchers:rightPane:openNoMessageSelected",openNoMessageSelectedWithoutPushState:"dispatchers:rightPane:openNoMessageSelectedWithoutPushState",refreshMailList:"dispatchers:rightPane:refreshMailList",openDraft:"dispatchers:rightPane:openDraft",selectTag:"dispatchers:rightPane:selectTag",clear:"dispatchers:rightPane:clear"},middlePane:{refreshMailList:"dispatchers:middlePane:refreshMailList",cleanSelected:"dispatchers:middlePane:unselect",resetScroll:"dispatchers:middlePane:resetScroll"},tags:{refreshTagList:"dispatchers:tag:refresh"}}};return t}),i("flight/lib/base",["./utils","./registry","./debug"],function(t,e,i){"use strict";function n(t){t.events.slice().forEach(function(t){var e=[t.type];t.element&&e.unshift(t.element),"function"==typeof t.callback&&e.push(t.callback),this.off.apply(this,e)},t.instance)}function s(t,e){try{window.postMessage(e,"*")}catch(i){throw console.log("unserializable data for event",t,":",e),new Error(["The event",t,"on component",this.toString(),"was triggered with non-serializable data"].join(" "))}}function a(t){var e,n=[];if(this.attr=new this.attrDef,i.enabled&&window.console){for(var s in this.attrDef.prototype)n.push(s);e=Object.keys(t);for(var a=e.length-1;a>=0;a--)if(-1==n.indexOf(e[a])){console.warn('Passed unused attributes including "'+e[a]+'" to component "'+this.toString()+'".');break}}for(var s in this.attrDef.prototype){if("undefined"==typeof t[s]){if(null===this.attr[s])throw new Error('Required attribute "'+s+'" not specified in attachTo for component "'+this.toString()+'".')}else this.attr[s]=t[s];"function"==typeof this.attr[s]&&(this.attr[s]=this.attr[s].call(this))}}function r(t){var e=Object.create(t);for(var i in this.defaults)t.hasOwnProperty(i)||(e[i]=this.defaults[i]);this.attr=e,Object.keys(this.defaults||{}).forEach(function(t){if(null===this.defaults[t]&&null===this.attr[t])throw new Error('Required attribute "'+t+'" not specified in attachTo for component "'+this.toString()+'".')},this)}function o(t){return function(e,i){$(e.target).trigger(t,i)}}function l(){this.trigger=function(){var t,e,n,a,r,o=arguments.length-1,l=arguments[o];return"string"==typeof l||l&&l.defaultBehavior||(o--,n=l),1==o?(t=$(arguments[0]),a=arguments[1]):(t=this.$node,a=arguments[0]),a.defaultBehavior&&(r=a.defaultBehavior,a=$.Event(a.type)),e=a.type||a,i.enabled&&window.postMessage&&s.call(this,e,n),"object"==typeof this.attr.eventData&&(n=$.extend(!0,{},this.attr.eventData,n)),t.trigger(a||e,n),r&&!a.isDefaultPrevented()&&(this[r]||r).call(this,a,n),t},this.on=function(){var e,i,n,s,a=arguments.length-1,r=arguments[a];if(s="object"==typeof r?t.delegate(this.resolveDelegateRules(r)):"string"==typeof r?o(r):r,2==a?(e=$(arguments[0]),i=arguments[1]):(e=this.$node,i=arguments[0]),"function"!=typeof s&&"object"!=typeof s)throw new Error('Unable to bind to "'+i+'" because the given callback is not a function or an object');return n=s.bind(this),n.target=s,n.context=this,e.on(i,n),s.bound||(s.bound=[]),s.bound.push(n),n},this.off=function(){var t,i,n,s=arguments.length-1;if("function"==typeof arguments[s]&&(n=arguments[s],s-=1),1==s?(t=$(arguments[0]),i=arguments[1]):(t=this.$node,i=arguments[0]),n){var a=n.target?n.target.bound:n.bound||[];a&&a.some(function(t,e,i){return t.context&&this.identity==t.context.identity?(i.splice(e,1),n=t,!0):void 0},this),t.off(i,n)}else e.findInstanceInfo(this).events.forEach(function(e){i==e.type&&t.off(i,e.callback)});return t},this.resolveDelegateRules=function(t){var e={};return Object.keys(t).forEach(function(i){if(!(i in this.attr))throw new Error('Component "'+this.toString()+'" wants to listen on "'+i+'" but no such attribute was defined.');e[this.attr[i]]="string"==typeof t[i]?o(t[i]):t[i]},this),e},this.select=function(t){return this.$node.find(this.attr[t])},this.attributes=function(t){var e=function(){};this.attrDef&&(e.prototype=new this.attrDef);for(var i in t)e.prototype[i]=t[i];this.attrDef=e},this.defaultAttrs=function(e){t.push(this.defaults,e,!0)||(this.defaults=e)},this.initialize=function(t,e){if(e=e||{},this.identity||(this.identity=c++),!t)throw new Error("Component needs a node");return t.jquery?(this.node=t[0],this.$node=t):(this.node=t,this.$node=$(t)),this.attrDef?a.call(this,e):r.call(this,e),this},this.teardown=function(){n(e.findInstanceInfo(this))}}var c=0;return l}),i("flight/lib/component",["./advice","./utils","./compose","./base","./registry","./logger","./debug"],function(t,e,i,n,s,a,r){"use strict";function o(){var t=s.findComponentInfo(this);t&&Object.keys(t.instances).forEach(function(e){var i=t.instances[e];i&&i.instance&&i.instance.teardown()})}function l(t){for(var i=arguments.length,n=new Array(i-1),a=1;i>a;a++)n[a-1]=arguments[a];if(!t)throw new Error("Component needs to be attachTo'd a jQuery object, native node or selector string");var r=e.merge.apply(e,n),o=s.findComponentInfo(this);$(t).each(function(t,e){o&&o.isAttachedTo(e)||(new this).initialize(e,r)}.bind(this))}function c(){var t=this.mixedIn||this.prototype.mixedIn||[];return t.map(function(t){if(null==t.name){var e=t.toString().match(h);return e&&e[1]?e[1]:""}return"withBase"!=t.name?t.name:""}).filter(Boolean).join(", ")}function u(){for(var h=arguments.length,d=new Array(h),p=0;h>p;p++)d[p]=arguments[p];var f=function(){};return f.toString=f.prototype.toString=c,r.enabled&&(f.describe=f.prototype.describe=f.toString()),f.attachTo=l,f.mixin=function(){var t=u(),n=Object.create(f.prototype);return n.mixedIn=[].concat(f.prototype.mixedIn),n.defaults=e.merge(f.prototype.defaults),n.attrDef=f.prototype.attrDef,i.mixin(n,arguments),t.prototype=n,t.prototype.constructor=t,t},f.teardownAll=o,r.enabled&&d.unshift(a),d.unshift(n,t.withAdvice,s.withRegistration),i.mixin(f.prototype,d),f}var h=/function (.*?)\s?\(/;return u.teardownAll=function(){s.components.slice().forEach(function(t){t.component.teardownAll()}),s.reset()},u}),function(){var t=Handlebars.template,e=window.Pixelated=window.Pixelated||{};e["app/templates/compose/attachment_item.hbs"]=t({1:function(t,e,i,n){return' <i class="fa fa-arrow-down download-icon"></i>\n'},3:function(t,e,i,n){return' <i class="fa fa-close remove-icon"></i>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression,o=e.helperMissing,l='<li data-ident="'+r(a(null!=t?t.ident:t,t))+'">\n <a href="/attachment/'+r(a(null!=t?t.ident:t,t))+"?encoding="+r(a(null!=t?t.encoding:t,t))+"&filename="+r(a(null!=t?t.name:t,t))+'">\n '+r(a(null!=t?t.name:t,t))+' <span class="attachment-size">('+r((e.formatSize||t&&t.formatSize||o).call(t,null!=t?t.size:t,{name:"formatSize",hash:{},data:n}))+")</span>\n";return s=e["if"].call(t,null!=t?t.received:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(l+=s),s=e["if"].call(t,null!=t?t.removable:t,{name:"if",hash:{},fn:this.program(3,n),inverse:this.noop,data:n}),null!=s&&(l+=s),l+" </a>\n</li>\n"},useData:!0}),e["app/templates/compose/attachment_upload_item.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression,r=e.helperMissing;return'<li>\n <div id="attachment-upload-item-progress" class="progress"><div class="progress-bar progress-bar-success"></div></div>\n <a>'+a(s(null!=t?t.name:t,t))+' <span class="attachment-size">('+a((e.formatSize||t&&t.formatSize||r).call(t,null!=t?t.size:t,{name:"formatSize",hash:{},data:n}))+')</span><i id="attachment-upload-item-abort" class="fa fa-close remove-icon"></i></a>\n</li>\n'},useData:!0}),e["app/templates/compose/attachments_list.hbs"]=t({1:function(t,e,i,n){return"hide"},3:function(t,e,i,n){var s,a="";return s=this.invokePartial(i.attachment_item," ","attachment_item",t,void 0,e,i,n),null!=s&&(a+=s),a},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a='<div id="attachment-list" class="buttons-group columns">\n <span class="btn btn-success fileinput-button">\n <!-- The file input field used as target for the file upload widget -->\n <input id="fileupload" type="file" name="attachment">\n </span>\n\n <!-- The container for the uploaded files -->\n <div class="attachmentsAreaWrap ';return s=e.unless.call(t,null!=t?t.attachments:t,{name:"unless",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(a+=s),a+='">\n <div class="attachmentsArea column large-12">\n <ul id="attachment-list-item">\n',s=e.each.call(t,null!=t?t.attachments:t,{name:"each",hash:{},fn:this.program(3,n),inverse:this.noop,data:n}),null!=s&&(a+=s),a+' </ul>\n <ul id="attachment-upload-item"></ul>\n </div>\n </div>\n\n <br>\n</div>\n'},usePartial:!0,useData:!0}),e["app/templates/compose/compose_box.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r=e.helperMissing,o=this.escapeExpression,l="function",c='<button class="close-mail-button">\n <i class="fa fa-times"></i>\n</button>\n\n<div class="compose-view">\n\n';return s=this.invokePartial(i.recipients," ","recipients",t,void 0,e,i,n),null!=s&&(c+=s),c+=' <div class="clearfix">\n <a id="to-trigger" class="hide">'+o((e.t||t&&t.t||r).call(t,"To",{name:"t",hash:{},data:n}))+'</a>\n <a id="ccs-trigger" class="hide">'+o((e.t||t&&t.t||r).call(t,"CC",{name:"t",hash:{},data:n}))+'</a>\n <a id="bccs-trigger" class="hide">'+o((e.t||t&&t.t||r).call(t,"BCC",{name:"t",hash:{},data:n}))+'</a>\n </div>\n\n <div class="floatlabel">\n <label class="floatlabel" for="subject">Subject</label>\n <input class="floatlabel" name="subject" type="text" id="subject" value="'+o((a=null!=(a=e.subject||(null!=t?t.subject:t))?a:r,typeof a===l?a.call(t,{name:"subject",hash:{},data:n}):a))+'" placeholder="'+o((e.t||t&&t.t||r).call(t,"Subject",{name:"t",hash:{},data:n}))+'" tabindex="4"/>\n </div>\n <div class="floatlabel">\n <label class="floatlabel" for="body">Body</label>\n <textarea class="floatlabel" name="body" id="text-box" placeholder="'+o((e.t||t&&t.t||r).call(t,"Body",{name:"t",hash:{},data:n}))+'" tabindex="5">'+o((a=null!=(a=e.body||(null!=t?t.body:t))?a:r,typeof a===l?a.call(t,{name:"body",hash:{},data:n}):a))+"</textarea>\n </div>\n\n",s=this.invokePartial(i.attachments_list," ","attachments_list",t,void 0,e,i,n),null!=s&&(c+=s),c+'\n <div class="buttons-group columns">\n <button id="send-button" tabindex="6"><i class="fa fa-send"></i></button>\n <span id="attachment-button" tabindex="6"></span>\n <button id="trash-button" tabindex="7">'+o((e.t||t&&t.t||r).call(t,"trash-button",{name:"t",hash:{},data:n}))+'<i class="fa fa-trash-o"></i></button>\n <div id="draft-save-status"></div>\n </div>\n\n</div> <!-- ./compose-view -->\n'},usePartial:!0,useData:!0}),e["app/templates/compose/feedback_box.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a=e.helperMissing,r=this.escapeExpression,o="function";return'<button class="close-mail-button">\n <i class="fa fa-times"></i>\n</button>\n\n<div class="compose-view">\n <div class="floatlabel">\n <span id="feedback-subject">Feedback</span>\n </div>\n\n <div class="floatlabel">\n <label class="floatlabel" for="text-box">Body</label>\n <textarea class="floatlabel" name="body" id="text-box" placeholder="'+r((e.t||t&&t.t||a).call(t,"feedback-placeholder",{name:"t",hash:{},data:n}))+'" tabindex="2">'+r((s=null!=(s=e.body||(null!=t?t.body:t))?s:a,typeof s===o?s.call(t,{name:"body",hash:{},data:n}):s))+'</textarea>\n </div>\n\n <div class="buttons-group columns">\n <button id="send-button" tabindex="6">'+r((e.t||t&&t.t||a).call(t,"Submit Feedback",{name:"t",hash:{},data:n}))+" </button>\n </div>\n</div> <!-- ./compose-view -->\n"},useData:!0}),e["app/templates/compose/fixed_recipient.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a="function",r=e.helperMissing,o=this.escapeExpression;return'<div class="fixed-recipient">\n <span class="recipient-area">\n <div class="recipient-value">\n <span>'+o((s=null!=(s=e.address||(null!=t?t.address:t))?s:r,typeof s===a?s.call(t,{name:"address",hash:{},data:n}):s))+'</span> <a class="recipient-del" href="#"/>\n </div>\n </span>\n <input type="hidden" value="'+o((s=null!=(s=e.address||(null!=t?t.address:t))?s:r,typeof s===a?s.call(t,{name:"address",hash:{},data:n}):s))+'" name="'+o((s=null!=(s=e.name||(null!=t?t.name:t))?s:r,typeof s===a?s.call(t,{name:"name",hash:{},data:n}):s))+'" />\n</div>\n'},useData:!0}),e["app/templates/compose/inline_box.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],
+main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c='<div id="subject-container">\n <h4 id="reply-subject">'+l((a=null!=(a=e.subject||(null!=t?t.subject:t))?a:o,typeof a===r?a.call(t,{name:"subject",hash:{},data:n}):a))+'</h4>\n <input type="text" value="'+l((a=null!=(a=e.subject||(null!=t?t.subject:t))?a:o,typeof a===r?a.call(t,{name:"subject",hash:{},data:n}):a))+'" style="display: none"/>\n</div>\n<textarea id="text-box" placeholder="'+l((e.t||t&&t.t||o).call(t,"Body",{name:"t",hash:{},data:n}))+'" tabindex=1>'+l((a=null!=(a=e.body||(null!=t?t.body:t))?a:o,typeof a===r?a.call(t,{name:"body",hash:{},data:n}):a))+'</textarea>\n\n<a id="all-recipients" tabindex=2>\n <strong>'+l((e.t||t&&t.t||o).call(t,"To",{name:"t",hash:{},data:n}))+":</strong> "+l((e.formatRecipients||t&&t.formatRecipients||o).call(t,null!=t?t.recipients:t,{name:"formatRecipients",hash:{},data:n}))+"\n</a>\n\n";return s=this.invokePartial(i.recipients,"","recipients",t,void 0,e,i,n),null!=s&&(c+=s),c+="\n",s=this.invokePartial(i.attachments_list,"","attachments_list",t,void 0,e,i,n),null!=s&&(c+=s),c+'\n<div class="buttons-group columns">\n <button id="send-button" tabindex=6><i class="fa fa-send"></i></button>\n <span id="attachment-button" tabindex="6"></span>\n <button id="trash-button" tabindex=7>'+l((e.t||t&&t.t||o).call(t,"trash-button",{name:"t",hash:{},data:n}))+'<i class="fa fa-trash-o"></i></button>\n <div id="draft-save-status"></div>\n</div>\n'},usePartial:!0,useData:!0}),e["app/templates/compose/no_mails_available.hbs"]=t({1:function(t,e,i,n){var s,a=e.helperMissing,r=this.escapeExpression,o="function";return" "+r((e.t||t&&t.t||a).call(t,"NO RESULTS FOR",{name:"t",hash:{},data:n}))+": '"+r((s=null!=(s=e.forSearch||(null!=t?t.forSearch:t))?s:a,typeof s===o?s.call(t,{name:"forSearch",hash:{},data:n}):s))+"'.\n"},3:function(t,e,i,n){var s,a=e.helperMissing,r=this.escapeExpression,o="function";return" "+r((e.t||t&&t.t||a).call(t,"NO EMAILS IN",{name:"t",hash:{},data:n}))+" '"+r((s=null!=(s=e.tag||(null!=t?t.tag:t))?s:a,typeof s===o?s.call(t,{name:"tag",hash:{},data:n}):s))+"'.\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a='<div class="no-mails-available-pane">\n';return s=e["if"].call(t,null!=t?t.forSearch:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.program(3,n),data:n}),null!=s&&(a+=s),a+"</div>\n"},useData:!0}),e["app/templates/compose/no_message_selected.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<div class="no-message-selected-pane">\n <div class="no-message-selected-pane__text">'+a((e.t||t&&t.t||s).call(t,"NOTHING SELECTED",{name:"t",hash:{},data:n}))+".</div>\n</div>\n"},useData:!0}),e["app/templates/compose/recipient_input.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<input type="text" />\n'},useData:!0}),e["app/templates/compose/recipients.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<div id="recipients-fields" style="display:none">\n <div id=\'recipients-to-area\' class="recipients-area input-container columns large-12 no-padding">\n <input class="recipients-navigation-handler"/>\n <div class=\'compose-column-label\'>\n <label for="recipients-to-box" class="recipients-label column large-1">'+a((e.t||t&&t.t||s).call(t,"TO",{name:"t",hash:{},data:n}))+': </label>\n </div>\n <div class=\'recipients-list compose-column-recipients\'>\n <input id=\'recipients-to-box\' class="recipients-input" type="text" tabindex="1"/></div>\n </div>\n <label id="cc-bcc-collapse" class="collapse fa-angle-down" for="hide-and-show"></label>\n <input id="hide-and-show" type="checkbox">\n <div id="cc-and-bcc">\n <div id="recipients-cc-area" class="recipients-area input-container columns large-12 no-padding">\n <input class="recipients-navigation-handler"/>\n <div class=\'compose-column-label\'>\n <label for="recipients-cc-box" class="recipients-label column large-1">'+a((e.t||t&&t.t||s).call(t,"CC",{name:"t",hash:{},data:n}))+': </label>\n </div>\n <div class=\'recipients-list compose-column-recipients\'>\n <input id=\'recipients-cc-box\' class="recipients-input" type="text" tabindex="2"/>\n </div>\n </div>\n\n <div id="recipients-bcc-area" class="recipients-area input-container columns large-12 no-padding">\n <input class="recipients-navigation-handler"/>\n <div class=\'compose-column-label\'>\n <label for ="recipients-bcc-box" class="recipients-label column large-1">'+a((e.t||t&&t.t||s).call(t,"BCC",{name:"t",hash:{},data:n}))+': </label>\n </div>\n <div class=\'recipients-list compose-column-recipients\'>\n <input id=\'recipients-bcc-box\' class="recipients-input" type="text" tabindex="3"/>\n </div>\n </div>\n </div>\n</div>\n'},useData:!0}),e["app/templates/compose/reply_section.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<div class="reply-container columns small-12 large-12">\n <button id="reply-button" class="column small-12 large-4">'+a((e.t||t&&t.t||s).call(t,"Reply",{name:"t",hash:{},data:n}))+' <i class="fa fa-reply"></i></button>\n <button id="reply-all-button" class="column small-12 large-4">'+a((e.t||t&&t.t||s).call(t,"Reply to All",{name:"t",hash:{},data:n}))+' <i class="fa fa-reply-all"></i></button>\n <button id="forward-button" class="column small-12 large-4">'+a((e.t||t&&t.t||s).call(t,"Forward",{name:"t",hash:{},data:n}))+' <i class="fa fa-mail-forward"></i></button>\n <div id="reply-box" style="display:none"></div>\n</div>\n'},useData:!0}),e["app/templates/compose/upload_attachment_failed.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<div id="upload-error">\n <i class="fa fa-close close-icon"></i>\n <span id="upload-error-message">Upload failed. This file exceeds the 1MB limit.</span>\n <a href="#" id="upload-file-button">Choose another file</a>\n <a href="#" id="dismiss-button">Dismiss</a>\n</div> \n'},useData:!0}),e["app/templates/feedback/feedback_trigger.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<ul id="feedback">\n <a title="Feedback" href="#">\n <li>\n <div class="fa fa-exclamation-circle"></div>\n <i class="shortcut-label"></i> Feedback\n </li>\n </a>\n</ul>\n'},useData:!0}),e["app/templates/mail_actions/actions_box.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<li><input type="checkbox" id="toggle-check-all-emails"/></li>\n<li><input type="button" id="mark-selected-as-read" value="'+a((e.t||t&&t.t||s).call(t,"Mark as read",{name:"t",hash:{},data:n}))+'" disabled="disabled"/></li>\n<li><input type="button" id="mark-selected-as-unread" value="'+a((e.t||t&&t.t||s).call(t,"mark-as-unread",{name:"t",hash:{},data:n}))+'" disabled="disabled"/></li>\n<li><input type="button" id="delete-selected" value="'+a((e.t||t&&t.t||s).call(t,"Delete",{name:"t",hash:{},data:n}))+'" disabled="disabled"/></li>\n<li><input type="button" id="archive-selected" value="'+a((e.t||t&&t.t||s).call(t,"Archive",{name:"t",hash:{},data:n}))+'" disabled="disabled"/></li>\n<li id="pagination-trigger" class="right"></li>\n<li id="refresh-trigger" class="right"></li>\n'},useData:!0}),e["app/templates/mail_actions/compose_trigger.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<div id="compose-mails-trigger">\n '+a((e.t||t&&t.t||s).call(t,"compose",{name:"t",hash:{},data:n}))+"\n</div>\n"},useData:!0}),e["app/templates/mail_actions/pagination_trigger.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a="function",r=e.helperMissing,o=this.escapeExpression;return'<span id="left-arrow"><i class="fa fa-angle-left"></i></span>\n<span id="current-page">'+o((s=null!=(s=e.currentPage||(null!=t?t.currentPage:t))?s:r,typeof s===a?s.call(t,{name:"currentPage",hash:{},data:n}):s))+'</span>\n<span id="right-arrow"><i class="fa fa-angle-right"></i></span>\n'},useData:!0}),e["app/templates/mail_actions/refresh_trigger.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<div id="refresh-mails-trigger">\n <i class="fa fa-refresh"></i>\n</div>\n'},useData:!0}),e["app/templates/mail_actions/trash_actions_box.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<li><input type="checkbox" id="toggle-check-all-emails"/></li>\n<li><input type="button" id="delete-selected" value="'+a((e.t||t&&t.t||s).call(t,"Delete permanently",{name:"t",hash:{},data:n}))+'" disabled="disabled"/></li>\n<li><input type="button" id="recover-selected" value="'+a((e.t||t&&t.t||s).call(t,"Move to Inbox",{name:"t",hash:{},data:n}))+'" disabled="disabled"/></li>\n<li id="pagination-trigger" class="right"></li>\n<li id="refresh-trigger" class="right"></li>\n'},useData:!0}),e["app/templates/mails/draft.hbs"]=t({1:function(t,e,i,n){return'checked="true"'},3:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.to:s,t))+"\n"},5:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"no_recipient",{name:"t",hash:{},data:n}))+"\n"},7:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.subject:s,t))+"\n"},9:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"no_subject",{name:"t",hash:{},data:n}))+"\n"},11:function(t,e,i,n){return' <div class="mail-list-entry__item-attachment"><i class="fa fa-paperclip"></i></div>\n'},13:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression;return' <li class="mail-list-entry__item-tags-tag" data-tag="'+a(s(t,t))+'">'+a(s(t,t))+"</li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c='<div class="mail-list-entry__checkbox">\n <input type="checkbox" ';return s=e["if"].call(t,null!=t?t.isChecked:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+=' />\n</div>\n\n<a class="mail-list-entry__item" href="/#/'+l((a=null!=(a=e.currentTag||(null!=t?t.currentTag:t))?a:o,typeof a===r?a.call(t,{name:"currentTag",hash:{},data:n}):a))+"/mail/"+l((a=null!=(a=e.ident||(null!=t?t.ident:t))?a:o,typeof a===r?a.call(t,{name:"ident",hash:{},data:n}):a))+'">\n <div>\n <div class="mail-list-entry__item-from">\n '+l((e.t||t&&t.t||o).call(t,"to:",{name:"t",hash:{},data:n}))+"\n",s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.to:s,{name:"if",hash:{},fn:this.program(3,n),inverse:this.program(5,n),data:n}),null!=s&&(c+=s),c+=' </div> <!-- /.mail-list-entry__item-from -->\n\n <span class="mail-list-entry__item-date">'+l((e.formatDate||t&&t.formatDate||o).call(t,null!=(s=null!=t?t.header:t)?s.date:s,{name:"formatDate",hash:{},data:n}))+'</span> <!-- /.mail-list-entry__item-date -->\n </div>\n <div>\n <div class="mail-list-entry__item-subject">\n <i class="mail-list-entry__item-subject-icon fa fa-pencil"></i>\n',s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.subject:s,{name:"if",hash:{},fn:this.program(7,n),inverse:this.program(9,n),data:n}),null!=s&&(c+=s),c+=" </div>\n\n",s=e["if"].call(t,null!=t?t.attachments:t,{name:"if",hash:{},fn:this.program(11,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+=' </div>\n <ul class="mail-list-entry__item-tags">\n',s=e.each.call(t,null!=t?t.tagsForListView:t,{name:"each",hash:{},fn:this.program(13,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+" </ul> <!-- /.mail-list-entry__item-tags -->\n</a>\n\n\n\n\n"},useData:!0}),e["app/templates/mails/full_view.hbs"]=t({1:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression,o=e.helperMissing;return' <span class="security-status__label '+r(a(null!=(s=null!=t?t.signatureStatus:t)?s.cssClass:s,t))+'">\n '+r((e.t||t&&t.t||o).call(t,null!=(s=null!=t?t.signatureStatus:t)?s.label:s,{name:"t",hash:{},data:n}))+"\n </span>\n"},3:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression,o=e.helperMissing;return' <span class="security-status__label '+r(a(null!=(s=null!=t?t.encryptionStatus:t)?s.cssClass:s,t))+'">\n '+r((e.t||t&&t.t||o).call(t,null!=(s=null!=t?t.encryptionStatus:t)?s.label:s,{name:"t",hash:{},data:n}))+"\n </span>\n"},5:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.from:s,t))+"\n"},7:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"you",{name:"t",hash:{},data:n}))+"\n"},9:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression;return' <li class="mail-read-view__header-tags-tag" data-tag="'+a(s(t,t))+'">'+a(s(t,t))+"</li>\n"},11:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression,o=' <hr>\n\n <div id="attachmentsArea" class="mail-read-view__attachments">\n <p class="mail-read-view__attachments-header"><i class="fa fa-paperclip"></i> '+r(a(null!=(s=null!=t?t.attachments:t)?s.length:s,t))+" attachment(s):</p>\n <ul>\n";return s=e.each.call(t,null!=t?t.attachments:t,{name:"each",hash:{},fn:this.program(12,n),inverse:this.noop,data:n}),null!=s&&(o+=s),o+" </ul>\n </div>\n"},12:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression,r=e.helperMissing;return' <li class="mail-read-view__attachments-item">\n <a class="mail-read-view__attachments-item-label" href="/attachment/'+a(s(null!=t?t.ident:t,t))+"?content_type="+a(s(null!=t?t["content-type"]:t,t))+"&encoding="+a(s(null!=t?t.encoding:t,t))+"&filename="+a(s(null!=t?t.name:t,t))+'">'+a(s(null!=t?t.name:t,t))+" ("+a((e.formatSize||t&&t.formatSize||r).call(t,null!=t?t.size:t,{name:"formatSize",hash:{},data:n}))+')\n <i class="fa fa-arrow-down mail-read-view__attachments-item-download"></i></a>\n </li>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c=this.lambda,u='<button class="close-mail-button">\n <i class="fa fa-times"></i>\n</button>\n\n<div id="fullView-'+l((a=null!=(a=e.ident||(null!=t?t.ident:t))?a:o,typeof a===r?a.call(t,{name:"ident",hash:{},data:n}):a))+'" class="mail-read-view '+l((a=null!=(a=e.statuses||(null!=t?t.statuses:t))?a:o,typeof a===r?a.call(t,{name:"statuses",hash:{},data:n}):a))+'">\n <header class="mail-read-view__header row">\n\n <!-- TODO -->\n <div class="column large-12 no-padding security-status">\n';return s=e["if"].call(t,null!=t?t.signatureStatus:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(u+=s),s=e["if"].call(t,null!=t?t.encryptionStatus:t,{name:"if",hash:{},fn:this.program(3,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+=' </div>\n\n <div class="mail-read-view__header-recipients">\n <span class="mail-read-view__header-recipients--highlight-sender">\n',s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.from:s,{name:"if",hash:{},fn:this.program(5,n),inverse:this.program(7,n),data:n}),null!=s&&(u+=s),u+=' </span>\n <i class="fa fa-long-arrow-right"></i>\n ',s=(e.formatRecipients||t&&t.formatRecipients||o).call(t,null!=t?t.header:t,{name:"formatRecipients",hash:{},data:n}),null!=s&&(u+=s),u+='\n </div>\n\n <div class="mail-read-view__header-date">\n '+l((e.formatDate||t&&t.formatDate||o).call(t,null!=(s=null!=t?t.header:t)?s.date:s,{name:"formatDate",hash:{},data:n}))+'\n </div>\n\n <hr>\n\n <div class="mail-read-view__header-subject">\n <h3>'+l(c(null!=(s=null!=t?t.header:t)?s.subject:s,t))+'</h3>\n </div>\n\n <nav id="mail-actions" class="mail-read-view__header-actions"></nav>\n\n <ul class="mail-read-view__header-tags">\n <li class="mail-read-view__header-tags-label">\n <i class="fa fa-tags"></i>\n </li>\n\n',s=e.each.call(t,null!=t?t.tags:t,{name:"each",hash:{},fn:this.program(9,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+='\n <li class="mail-read-view__header-tags-name-input">\n <input type="text" id="new-tag-input" placeholder="'+l((e.t||t&&t.t||o).call(t,"Press Enter to add tag",{name:"t",hash:{},data:n}))+'"\n />\n </li>\n\n <li class="mail-read-view__header-tags-new-button">\n <button id="new-tag-button" class="no-style"><i class="fa fa-plus"></i></button>\n </li>\n </ul>\n </header>\n\n <iframe class="mail-read-view__body" id="read-sandbox" sandbox="allow-popups allow-scripts" src="sandbox/sandbox.html" scrolling="no"></iframe>\n\n',s=e["if"].call(t,null!=t?t.attachments:t,{name:"if",hash:{},fn:this.program(11,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+"</div>\n\n"},useData:!0}),e["app/templates/mails/mail_actions.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<button id="reply-button-top" class="mail-read-view__header-actions-button mail-read-view__header-actions-button--reply"><i class="fa fa-reply"></i></button>\n<button id="view-more-actions" class="mail-read-view__header-actions-button mail-read-view__header-actions-button--more"><i class="fa fa-caret-down"></i></button>\n<ul id="more-actions" class="mail-read-view__header-actions-dropdown">\n <li id="reply-all-button-top" class="mail-read-view__header-actions-dropdown-entry">'+a((e.t||t&&t.t||s).call(t,"Reply to All",{name:"t",hash:{},data:n}))+'</li>\n <li id="delete-button-top" class="mail-read-view__header-actions-dropdown-entry">'+a((e.t||t&&t.t||s).call(t,"Delete this message",{name:"t",hash:{},data:n}))+"</li>\n</ul>\n"},useData:!0}),e["app/templates/mails/sent.hbs"]=t({1:function(t,e,i,n){return'checked="true"'},3:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.to:s,t))+"\n"},5:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"no_recipient",{name:"t",hash:{},data:n}))+"\n"},7:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.subject:s,t))+"\n"},9:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"no_subject",{name:"t",hash:{},data:n}))+"\n"},11:function(t,e,i,n){return' <div class="mail-list-entry__item-attachment"><i class="fa fa-paperclip"></i></div>\n'},13:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression;return' <li class="mail-list-entry__item-tags-tag" data-tag="'+a(s(t,t))+'">'+a(s(t,t))+"</li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c='<div class="mail-list-entry__checkbox">\n <input type="checkbox" ';return s=e["if"].call(t,null!=t?t.isChecked:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+=' />\n</div>\n<a class="mail-list-entry__item" href="/#/'+l((a=null!=(a=e.currentTag||(null!=t?t.currentTag:t))?a:o,typeof a===r?a.call(t,{name:"currentTag",hash:{},data:n}):a))+"/mail/"+l((a=null!=(a=e.ident||(null!=t?t.ident:t))?a:o,typeof a===r?a.call(t,{name:"ident",hash:{},data:n}):a))+'">\n <div>\n <div class="mail-list-entry__item-from">\n '+l((e.t||t&&t.t||o).call(t,"to:",{name:"t",hash:{},data:n}))+"\n",s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.to:s,{name:"if",hash:{},fn:this.program(3,n),inverse:this.program(5,n),data:n}),null!=s&&(c+=s),c+=' </div> <!-- /.mail-list-entry__item-from -->\n\n <span class="mail-list-entry__item-date">'+l((e.formatDate||t&&t.formatDate||o).call(t,null!=(s=null!=t?t.header:t)?s.date:s,{name:"formatDate",hash:{},data:n}))+'</span> <!-- /.mail-list-entry__item-date -->\n </div>\n <div>\n <div class="mail-list-entry__item-subject">\n',s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.subject:s,{name:"if",hash:{},fn:this.program(7,n),inverse:this.program(9,n),data:n}),null!=s&&(c+=s),c+=" </div>\n\n",s=e["if"].call(t,null!=t?t.attachments:t,{name:"if",hash:{},fn:this.program(11,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+=' </div>\n <ul class="mail-list-entry__item-tags">\n',s=e.each.call(t,null!=t?t.tagsForListView:t,{name:"each",hash:{},fn:this.program(13,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+" </ul> <!-- /.mail-list-entry__item-tags -->\n</a>\n\n"},useData:!0}),e["app/templates/mails/single.hbs"]=t({1:function(t,e,i,n){return'checked="true"'},3:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.from:s,t))+"\n"},5:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"you",{name:"t",hash:{},data:n}))+"\n"},7:function(t,e,i,n){return' <div class="mail-list-entry__item-attachment"><i class="fa fa-paperclip"></i></div>\n'},9:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression;return' <li class="mail-list-entry__item-tags-tag" data-tag="'+a(s(t,t))+'">'+a(s(t,t))+"</li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c=this.lambda,u='<div class="mail-list-entry__checkbox">\n <input type="checkbox" ';return s=e["if"].call(t,null!=t?t.isChecked:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+=' />\n</div>\n<a class="mail-list-entry__item" href="/#/'+l((a=null!=(a=e.currentTag||(null!=t?t.currentTag:t))?a:o,typeof a===r?a.call(t,{name:"currentTag",hash:{},data:n}):a))+"/mail/"+l((a=null!=(a=e.ident||(null!=t?t.ident:t))?a:o,typeof a===r?a.call(t,{name:"ident",hash:{},data:n}):a))+'">\n <div>\n <div class="mail-list-entry__item-from">\n',s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.from:s,{name:"if",hash:{},fn:this.program(3,n),inverse:this.program(5,n),data:n}),null!=s&&(u+=s),u+=' </div> <!-- /.mail-list-entry__item-from -->\n\n <span class="mail-list-entry__item-date">'+l((e.formatDate||t&&t.formatDate||o).call(t,null!=(s=null!=t?t.header:t)?s.date:s,{name:"formatDate",hash:{},data:n}))+'</span> <!-- /.mail-list-entry__item-date -->\n </div>\n <div>\n <div class="mail-list-entry__item-subject">'+l(c(null!=(s=null!=t?t.header:t)?s.subject:s,t))+"</div>\n\n",s=e["if"].call(t,null!=t?t.attachments:t,{name:"if",hash:{},fn:this.program(7,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+=' </div>\n <ul class="mail-list-entry__item-tags">\n',s=e.each.call(t,null!=t?t.tagsForListView:t,{name:"each",hash:{},fn:this.program(9,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+" </ul> <!-- /.mail-list-entry__item-tags -->\n</a>\n"},useData:!0}),e["app/templates/mails/trash.hbs"]=t({1:function(t,e,i,n){return'checked="true"'},3:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return" "+r(a(null!=(s=null!=t?t.header:t)?s.from:s,t))+"\n"},5:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return" "+a((e.t||t&&t.t||s).call(t,"you",{name:"t",hash:{},data:n}))+"\n"},7:function(t,e,i,n){return' <div class="mail-list-entry__item-attachment"><i class="fa fa-paperclip"></i></div>\n'},9:function(t,e,i,n){var s=this.lambda,a=this.escapeExpression;return' <li class="mail-list-entry__item-tags-tag" data-tag="'+a(s(t,t))+'">'+a(s(t,t))+"</li>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c=this.lambda,u='<div class="mail-list-entry__checkbox">\n <input type="checkbox" ';return s=e["if"].call(t,null!=t?t.isChecked:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+=' />\n</div>\n<a class="mail-list-entry__item" href="/#/'+l((a=null!=(a=e.currentTag||(null!=t?t.currentTag:t))?a:o,typeof a===r?a.call(t,{name:"currentTag",hash:{},data:n}):a))+"/mail/"+l((a=null!=(a=e.ident||(null!=t?t.ident:t))?a:o,typeof a===r?a.call(t,{name:"ident",hash:{},data:n}):a))+'">\n <div>\n <div class="mail-list-entry__item-from">\n',s=e["if"].call(t,null!=(s=null!=t?t.header:t)?s.from:s,{name:"if",hash:{},fn:this.program(3,n),inverse:this.program(5,n),data:n}),null!=s&&(u+=s),u+=' </div> <!-- /.mail-list-entry__item-from -->\n\n <span class="mail-list-entry__item-date">'+l((e.formatDate||t&&t.formatDate||o).call(t,null!=(s=null!=t?t.header:t)?s.date:s,{name:"formatDate",hash:{},data:n}))+'</span> <!-- /.mail-list-entry__item-date -->\n </div>\n <div>\n <div class="mail-list-entry__item-subject">\n <i class="mail-list-entry__item-subject-icon fa fa-trash-o"></i>\n '+l(c(null!=(s=null!=t?t.header:t)?s.subject:s,t))+"\n </div>\n\n",s=e["if"].call(t,null!=t?t.attachments:t,{name:"if",hash:{},fn:this.program(7,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+=' </div>\n <ul class="mail-list-entry__item-tags">\n',s=e.each.call(t,null!=t?t.tagsForListView:t,{name:"each",hash:{},fn:this.program(9,n),inverse:this.noop,data:n}),null!=s&&(u+=s),u+" </ul> <!-- /.mail-list-entry__item-tags -->\n</a>\n\n"},useData:!0}),e["app/templates/page/logout.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a="function",r=e.helperMissing,o=this.escapeExpression;return'<ul id="logout">\n <form id="logout-form" method="POST" action="'+o((s=null!=(s=e.logout_url||(null!=t?t.logout_url:t))?s:r,typeof s===a?s.call(t,{name:"logout_url",hash:{},data:n}):s))+'">\n <input type="hidden" name="csrftoken" value="'+o((s=null!=(s=e.csrf_token||(null!=t?t.csrf_token:t))?s:r,typeof s===a?s.call(t,{name:"csrf_token",hash:{},data:n}):s))+'" />\n <li>\n <div class="fa fa-sign-out"></div>\n <i class="shortcut-label"></i> Logout\n </li>\n </form>\n</ul>\n'},useData:!0}),e["app/templates/page/logout_shortcut.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<li>\n <a class="left-off-canvas-toggle logout" >\n <i class="fa fa-sign-out"></i>\n <div class="shortcut-label">Logout</div>\n </a>\n</li>\n'},useData:!0}),e["app/templates/page/user_settings_box.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a="function",r=e.helperMissing,o=this.escapeExpression;return'<header>\n <span id="user-settings-close"><i class="fa fa-close"></i></span>\n <i class="fa fa-user"></i>\n <h1>User Settings</h1>\n <i class="shortcut-label"></i>\n</header>\n<i class="fa fa-envelope-o"></i><h2>E-Mail address</h2>\n<p>'+o((s=null!=(s=e.account_email||(null!=t?t.account_email:t))?s:r,typeof s===a?s.call(t,{name:"account_email",hash:{},data:n}):s))+'</p>\n<i class="fa fa-key"></i><h2>Public key fingerprint</h2>\n<p>'+o((e.formatFingerPrint||t&&t.formatFingerPrint||r).call(t,null!=t?t.fingerprint:t,{name:"formatFingerPrint",hash:{},data:n}))+"</p>\n"},useData:!0}),e["app/templates/page/user_settings_icon.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<ul id="user-settings-icon">\n <a title="user settings" href=\'#\'>\n <li>\n <div class="fa fa-user"></div>\n <i class="shortcut-label"></i> User Settings\n </li>\n </a>\n</ul>\n'},useData:!0}),e["app/templates/page/version.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return"version: a48f917 <br/>\n2 minutes ago\n"},useData:!0}),e["app/templates/search/search_trigger.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s=e.helperMissing,a=this.escapeExpression;return'<form>\n <input type="search" pattern="[a-zA-Z0-9\\s]{3,}" placeholder="'+a((e.t||t&&t.t||s).call(t,"search-placeholder",{name:"t",hash:{},data:n}))+'"></input>\n</form>\n'},useData:!0}),e["app/templates/tags/shortcut.hbs"]=t({1:function(t,e,i,n){var s,a="function",r=e.helperMissing,o=this.escapeExpression;return' <span class="'+o((s=null!=(s=e.badgeType||(null!=t?t.badgeType:t))?s:r,typeof s===a?s.call(t,{name:"badgeType",hash:{},data:n}):s))+'-count">'+o((s=null!=(s=e.count||(null!=t?t.count:t))?s:r,typeof s===a?s.call(t,{name:"count",hash:{},data:n}):s))+"</span>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c='<li class="'+l((a=null!=(a=e.selected||(null!=t?t.selected:t))?a:o,typeof a===r?a.call(t,{name:"selected",hash:{},data:n}):a))+'">\n <a>\n';return s=e["if"].call(t,null!=t?t.displayBadge:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c+' <i class="fa fa-'+l((a=null!=(a=e.icon||(null!=t?t.icon:t))?a:o,typeof a===r?a.call(t,{name:"icon",hash:{},data:n}):a))+'"></i>\n <div class="shortcut-label">'+l((a=null!=(a=e.tagName||(null!=t?t.tagName:t))?a:o,typeof a===r?a.call(t,{name:"tagName",hash:{},data:n}):a))+"</div>\n </a>\n</li>\n"},useData:!0}),e["app/templates/tags/tag.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c='<li id="tag-'+l((a=null!=(a=e.ident||(null!=t?t.ident:t))?a:o,typeof a===r?a.call(t,{name:"ident",hash:{},data:n}):a))+'" class="custom-tag '+l((a=null!=(a=e.selected||(null!=t?t.selected:t))?a:o,typeof a===r?a.call(t,{name:"selected",hash:{},data:n}):a))+'">\n <span class="tag-label">';return s=this.invokePartial(i.tag_inner,"","tag_inner",t,void 0,e,i,n),null!=s&&(c+=s),c+"</span>\n</li>\n"},usePartial:!0,useData:!0}),e["app/templates/tags/tag_inner.hbs"]=t({1:function(t,e,i,n){var s,a="function",r=e.helperMissing,o=this.escapeExpression;return'<span class="'+o((s=null!=(s=e.badgeType||(null!=t?t.badgeType:t))?s:r,typeof s===a?s.call(t,{name:"badgeType",hash:{},data:n}):s))+'-count">'+o((s=null!=(s=e.count||(null!=t?t.count:t))?s:r,typeof s===a?s.call(t,{name:"count",hash:{},data:n}):s))+"</span>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a,r="function",o=e.helperMissing,l=this.escapeExpression,c=l((a=null!=(a=e.tagName||(null!=t?t.tagName:t))?a:o,typeof a===r?a.call(t,{name:"tagName",hash:{},data:n}):a))+"\n";return s=e["if"].call(t,null!=t?t.displayBadge:t,{name:"if",hash:{},fn:this.program(1,n),inverse:this.noop,data:n}),null!=s&&(c+=s),c},useData:!0}),e["app/templates/tags/tag_list.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){return'<ul id="default-tag-list"></ul>\n<div class="tags-icon side-nav-toggle">\n <i class="fa fa-tags"></i>\n <span class="tag-label">Tags</span>\n</div>\n<ul id="custom-tag-list"></ul>'},useData:!0}),e["app/templates/user_alerts/message.hbs"]=t({compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,i,n){var s,a=this.lambda,r=this.escapeExpression;return'<span class="message-panel__growl '+r(a(null!=(s=null!=t?t.message:t)?s["class"]:s,t))+'">'+r(a(null!=(s=null!=t?t.message:t)?s.content:s,t))+"</span>\n"},useData:!0})}(),i("hbs/templates",function(){}),i("views/templates",["hbs/templates"],function(t){"use strict";var e={compose:{box:window.Pixelated["app/templates/compose/compose_box.hbs"],inlineBox:window.Pixelated["app/templates/compose/inline_box.hbs"],replySection:window.Pixelated["app/templates/compose/reply_section.hbs"],recipientInput:window.Pixelated["app/templates/compose/recipient_input.hbs"],fixedRecipient:window.Pixelated["app/templates/compose/fixed_recipient.hbs"],
+recipients:window.Pixelated["app/templates/compose/recipients.hbs"],feedback:window.Pixelated["app/templates/compose/feedback_box.hbs"],attachmentsList:window.Pixelated["app/templates/compose/attachments_list.hbs"],attachmentItem:window.Pixelated["app/templates/compose/attachment_item.hbs"],attachmentUploadItem:window.Pixelated["app/templates/compose/attachment_upload_item.hbs"],uploadAttachmentFailed:window.Pixelated["app/templates/compose/upload_attachment_failed.hbs"]},tags:{tagList:window.Pixelated["app/templates/tags/tag_list.hbs"],tag:window.Pixelated["app/templates/tags/tag.hbs"],tagInner:window.Pixelated["app/templates/tags/tag_inner.hbs"],shortcut:window.Pixelated["app/templates/tags/shortcut.hbs"]},userAlerts:{message:window.Pixelated["app/templates/user_alerts/message.hbs"]},mails:{single:window.Pixelated["app/templates/mails/single.hbs"],fullView:window.Pixelated["app/templates/mails/full_view.hbs"],mailActions:window.Pixelated["app/templates/mails/mail_actions.hbs"],draft:window.Pixelated["app/templates/mails/draft.hbs"],sent:window.Pixelated["app/templates/mails/sent.hbs"],trash:window.Pixelated["app/templates/mails/trash.hbs"]},mailActions:{actionsBox:window.Pixelated["app/templates/mail_actions/actions_box.hbs"],trashActionsBox:window.Pixelated["app/templates/mail_actions/trash_actions_box.hbs"],composeTrigger:window.Pixelated["app/templates/mail_actions/compose_trigger.hbs"],refreshTrigger:window.Pixelated["app/templates/mail_actions/refresh_trigger.hbs"],paginationTrigger:window.Pixelated["app/templates/mail_actions/pagination_trigger.hbs"]},noMessageSelected:window.Pixelated["app/templates/compose/no_message_selected.hbs"],noMailsAvailable:window.Pixelated["app/templates/compose/no_mails_available.hbs"],search:{trigger:window.Pixelated["app/templates/search/search_trigger.hbs"]},page:{userSettingsIcon:window.Pixelated["app/templates/page/user_settings_icon.hbs"],userSettingsBox:window.Pixelated["app/templates/page/user_settings_box.hbs"],logout:window.Pixelated["app/templates/page/logout.hbs"],logoutShortcut:window.Pixelated["app/templates/page/logout_shortcut.hbs"],version:window.Pixelated["app/templates/page/version.hbs"]},feedback:{feedback:window.Pixelated["app/templates/feedback/feedback_trigger.hbs"]}};return Handlebars.registerPartial("tag_inner",e.tags.tagInner),Handlebars.registerPartial("recipients",e.compose.recipients),Handlebars.registerPartial("attachments_list",e.compose.attachmentsList),Handlebars.registerPartial("attachments_upload",e.compose.attachmentsList),Handlebars.registerPartial("attachment_item",e.compose.attachmentItem),Handlebars.registerPartial("attachment_upload_item",e.compose.attachmentUploadItem),Handlebars.registerPartial("uploadAttachmentFailed",e.compose.uploadAttachmentFailed),e}),i("helpers/contenttype",[],function(){"use strict";function t(i,n){this.type="",this.params={};var s,a,r;if("string"==typeof i)for(s=e(i),this.type=s.shift(),a=0;a<s.length;a++)this.parseParameter(s[a]);else if(i instanceof t){this.type=i.type,this.q=i.q;for(r in i.params)this.params[r]=i.params[r]}if("string"==typeof n)for(s=e(n),a=0;a<s.length;a++)this.parseParameter(s[a]);else if("object"==typeof n)for(r in n)this.params[r]=n[r]}function e(t,e,i){function n(e,i,n,s){var a=t.indexOf(i,r+1);return 0>a?e:Math.min(a,e)}e=e||";",i=i||'"';for(var s=[],a=0,r=0;r>=0&&(r=[e,i].reduce(n,1/0),r!==1/0);)switch(t[r]){case i:for(;;){if(r=t.indexOf(i,r+1),0>r)break;if("\\"!==t[r-1])break}continue;case e:s.push(t.substr(a,r-a).trim()),a=++r}return s.push(t.substr(a).trim()),s}function i(t){return e(t,",")}function n(e){var i=new t(e);return void 0===i.q&&(i.q=1),i}function s(t,e){for(var i={q:0},n={q:0},s=0,r=0;r<t.length;r++)for(var o=t[r],l=o.q||1,c=0;c<e.length;c++){var u=e[c],h=u.q||1,d=a(u,o);if(null!==d&&d>=0&&h*l>s&&(n=u,i=o,s=n.q*i.q,1===s&&i.type))return i}return i.type&&i}function a(t,e){if("*/*"===t.type&&"*/*"!==e.type)return 1;if("*/*"!==t.type&&"*/*"===e.type)return-1;var i=(t.type||"").split("/"),n=(e.type||"").split("/");if("*"===i[0]&&"*"!==n[0])return 1;if("*"!==i[0]&&"*"===n[0])return-1;if(t.type!==e.type)return null;var s=t.params||{},a=e.params||{},r=Object.keys(s),o=Object.keys(a);if(r.length<o.length)return 1;if(r.length>o.length)return-1;var l=(r.concat(o).sort(),0);for(var c in s){if(s[c]&&!a[c]){if(0>l)return null;l=1}if(!s[c]&&a[c]){if(l>0)return null;l=-1}}return l}var r={};return t.prototype.parseParameter=function(t){var e=t.split("=",1),i=e[0].trim(),n=t.substr(e[0].length+1).trim();n&&i&&("q"===i&&void 0===this.q?this.q=parseFloat(n):('"'===n[0]&&'"'===n[n.length-1]&&(n=n.substr(1,n.length-2),n=n.replace(/\\(.)/g,function(t,e){return e})),this.params[i]=n))},t.prototype.toString=function(){var t=this.type+";q="+this.q;for(var e in this.params)t+=";"+e+"=",t+=this.params[e].match(/["=;<>\[\]\(\) ,\-]/)?'"'+this.params[e].replace(/["\\]/g,function(t){return"\\"+t})+'"':this.params[e];return t},r.MediaType=t,r.splitQuotedString=e,r.splitContentTypes=i,r.parseMedia=n,r.select=s,r.mediaCmp=a,r}),function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof i&&i.amd&&i("i18next",[],e)}(this,function(){function t(t,e){if(!e||"function"==typeof e)return t;for(var i in e)t[i]=e[i];return t}function e(t,i){for(var n in i)n in t?e(t[n],i[n]):t[n]=i[n];return t}function i(t,e,i){var n,s=0,a=t.length,r=void 0===a||"[object Array]"!==Object.prototype.toString.apply(t)||"function"==typeof t;if(i)if(r){for(n in t)if(e.apply(t[n],i)===!1)break}else for(;a>s&&e.apply(t[s++],i)!==!1;);else if(r){for(n in t)if(e.call(t[n],n,t[n])===!1)break}else for(;a>s&&e.call(t[s],s,t[s++])!==!1;);return t}function n(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return z[t]}):t}function s(t){var e=function(t){if(window.XMLHttpRequest)return t(null,new XMLHttpRequest);if(window.ActiveXObject)try{return t(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(e){return t(null,new ActiveXObject("Microsoft.XMLHTTP"))}return t(new Error)},i=function(t){if("string"==typeof t)return t;var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return e.join("&")},n=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var n=t.charCodeAt(i);128>n?e+=String.fromCharCode(n):n>127&&2048>n?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e},s=function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t=n(t);var i,s,a,r,o,l,c,u="",h=0;do i=t.charCodeAt(h++),s=t.charCodeAt(h++),a=t.charCodeAt(h++),r=i>>2,o=(3&i)<<4|s>>4,l=(15&s)<<2|a>>6,c=63&a,isNaN(s)?l=c=64:isNaN(a)&&(c=64),u+=e.charAt(r)+e.charAt(o)+e.charAt(l)+e.charAt(c),i=s=a="",r=o=l=c="";while(h<t.length);return u},a=function(){for(var t=arguments[0],e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}return t},r=function(t,n,s,o){"function"==typeof s&&(o=s,s={}),s.cache=s.cache||!1,s.data=s.data||{},s.headers=s.headers||{},s.jsonp=s.jsonp||!1,s.async=void 0===s.async?!0:s.async;var l,c=a({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},r.headers,s.headers);if(l="application/json"===c["content-type"]?JSON.stringify(s.data):i(s.data),"GET"===t){var u=[];if(l&&(u.push(l),l=null),s.cache||u.push("_="+(new Date).getTime()),s.jsonp&&(u.push("callback="+s.jsonp),u.push("jsonp="+s.jsonp)),u=u.join("&"),u.length>1&&(n+=n.indexOf("?")>-1?"&"+u:"?"+u),s.jsonp){var h=document.getElementsByTagName("head")[0],d=document.createElement("script");return d.type="text/javascript",d.src=n,void h.appendChild(d)}}e(function(e,i){if(e)return o(e);i.open(t,n,s.async);for(var a in c)c.hasOwnProperty(a)&&i.setRequestHeader(a,c[a]);i.onreadystatechange=function(){if(4===i.readyState){var t=i.responseText||"";if(!o)return;o(i.status,{text:function(){return t},json:function(){try{return JSON.parse(t)}catch(e){return $.error("Can not parse JSON. URL: "+n),{}}}})}},i.send(l)})},o={authBasic:function(t,e){r.headers.Authorization="Basic "+s(t+":"+e)},connect:function(t,e,i){return r("CONNECT",t,e,i)},del:function(t,e,i){return r("DELETE",t,e,i)},get:function(t,e,i){return r("GET",t,e,i)},head:function(t,e,i){return r("HEAD",t,e,i)},headers:function(t){r.headers=t||{}},isAllowed:function(t,e,i){this.options(t,function(t,n){i(-1!==n.text().indexOf(e))})},options:function(t,e,i){return r("OPTIONS",t,e,i)},patch:function(t,e,i){return r("PATCH",t,e,i)},post:function(t,e,i){return r("POST",t,e,i)},put:function(t,e,i){return r("PUT",t,e,i)},trace:function(t,e,i){return r("TRACE",t,e,i)}},l=t.type?t.type.toLowerCase():"get";o[l](t.url,t,function(e,i){200===e||0===e&&i.text()?t.success(i.json(),e,null):t.error(i.text(),e,null)})}function a(t,e){"function"==typeof t&&(e=t,t={}),t=t||{},$.extend(H,t),delete H.fixLng,H.functions&&(delete H.functions,$.extend($,t.functions)),"string"==typeof H.ns&&(H.ns={namespaces:[H.ns],defaultNs:H.ns}),"string"==typeof H.fallbackNS&&(H.fallbackNS=[H.fallbackNS]),"string"!=typeof H.fallbackLng&&"boolean"!=typeof H.fallbackLng||(H.fallbackLng=[H.fallbackLng]),H.interpolationPrefixEscaped=$.regexEscape(H.interpolationPrefix),H.interpolationSuffixEscaped=$.regexEscape(H.interpolationSuffix),H.lng||(H.lng=$.detectLanguage()),R=$.toLanguages(H.lng),P=R[0],$.log("currentLng set to: "+P),H.useCookie&&$.cookie.read(H.cookieName)!==P&&$.cookie.create(H.cookieName,P,H.cookieExpirationTime,H.cookieDomain),H.detectLngFromLocalStorage&&"undefined"!=typeof document&&window.localStorage&&$.localStorage.setItem("i18next_lng",P);var i=S;t.fixLng&&(i=function(t,e){return e=e||{},e.lng=e.lng||i.lng,S(t,e)},i.lng=P),V.setCurrentLng(P),I&&H.setJqueryExt&&b();var n;if(I&&I.Deferred&&(n=I.Deferred()),!H.resStore){var s=$.toLanguages(H.lng);"string"==typeof H.preload&&(H.preload=[H.preload]);for(var a=0,r=H.preload.length;r>a;a++)for(var o=$.toLanguages(H.preload[a]),l=0,c=o.length;c>l;l++)s.indexOf(o[l])<0&&s.push(o[l]);return N.sync.load(s,H,function(t,s){F=s,j=!0,e&&e(i),n&&n.resolve(i)}),n?n.promise():void 0}return F=H.resStore,j=!0,e&&e(i),n&&n.resolve(i),n?n.promise():void 0}function r(t,e){"string"==typeof t&&(t=[t]);for(var i=0,n=t.length;n>i;i++)H.preload.indexOf(t[i])<0&&H.preload.push(t[i]);return a(e)}function o(t,e,i,n){"string"!=typeof e?(i=e,e=H.ns.defaultNs):H.ns.namespaces.indexOf(e)<0&&H.ns.namespaces.push(e),F[t]=F[t]||{},F[t][e]=F[t][e]||{},n?$.deepExtend(F[t][e],i):$.extend(F[t][e],i)}function l(t,e){"string"!=typeof e&&(e=H.ns.defaultNs),F[t]=F[t]||{};var i=F[t][e]||{},n=!1;for(var s in i)i.hasOwnProperty(s)&&(n=!0);return n}function c(t,e){"string"!=typeof e&&(e=H.ns.defaultNs),F[t]=F[t]||{},F[t][e]={}}function u(t,e,i,n){"string"!=typeof e?(resource=e,e=H.ns.defaultNs):H.ns.namespaces.indexOf(e)<0&&H.ns.namespaces.push(e),F[t]=F[t]||{},F[t][e]=F[t][e]||{};for(var s=i.split(H.keyseparator),a=0,r=F[t][e];s[a];)a==s.length-1?r[s[a]]=n:(null==r[s[a]]&&(r[s[a]]={}),r=r[s[a]]),a++}function h(t,e,i){"string"!=typeof e?(resource=e,e=H.ns.defaultNs):H.ns.namespaces.indexOf(e)<0&&H.ns.namespaces.push(e);for(var n in i)"string"==typeof i[n]&&u(t,e,n,i[n])}function d(t){H.ns.defaultNs=t}function p(t,e){f([t],e)}function f(t,e){var i={dynamicLoad:H.dynamicLoad,resGetPath:H.resGetPath,getAsync:H.getAsync,customLoad:H.customLoad,ns:{namespaces:t,defaultNs:""}},n=$.toLanguages(H.lng);"string"==typeof H.preload&&(H.preload=[H.preload]);for(var s=0,a=H.preload.length;a>s;s++)for(var r=$.toLanguages(H.preload[s]),o=0,l=r.length;l>o;o++)n.indexOf(r[o])<0&&n.push(r[o]);for(var c=[],u=0,h=n.length;h>u;u++){var d=!1,p=F[n[u]];if(p)for(var f=0,g=t.length;g>f;f++)p[t[f]]||(d=!0);else d=!0;d&&c.push(n[u])}c.length?N.sync._fetch(c,i,function(i,n){var s=t.length*c.length;$.each(t,function(t,i){H.ns.namespaces.indexOf(i)<0&&H.ns.namespaces.push(i),$.each(c,function(t,a){F[a]=F[a]||{},F[a][i]=n[a][i],s--,0===s&&e&&(H.useLocalStorage&&N.sync._storeLocal(F),e())})})}):e&&e()}function g(t,e,i){return"function"==typeof e?(i=e,e={}):e||(e={}),e.lng=t,a(e,i)}function m(){return P}function v(t){F={},g(P,t)}function b(){function t(t,e,i){if(0!==e.length){var n="text";if(0===e.indexOf("[")){var s=e.split("]");e=s[1],n=s[0].substr(1,s[0].length-1)}e.indexOf(";")===e.length-1&&(e=e.substr(0,e.length-2));var a;if("html"===n)a=H.defaultValueFromContent?I.extend({defaultValue:t.html()},i):i,t.html(I.t(e,a));else if("text"===n)a=H.defaultValueFromContent?I.extend({defaultValue:t.text()},i):i,t.text(I.t(e,a));else if("prepend"===n)a=H.defaultValueFromContent?I.extend({defaultValue:t.html()},i):i,t.prepend(I.t(e,a));else if("append"===n)a=H.defaultValueFromContent?I.extend({defaultValue:t.html()},i):i,t.append(I.t(e,a));else if(0===n.indexOf("data-")){var r=n.substr("data-".length);a=H.defaultValueFromContent?I.extend({defaultValue:t.data(r)},i):i;var o=I.t(e,a);t.data(r,o),t.attr(n,o)}else a=H.defaultValueFromContent?I.extend({defaultValue:t.attr(n)},i):i,t.attr(n,I.t(e,a))}}function e(e,i){var n=e.attr(H.selectorAttr);if(n||"undefined"==typeof n||n===!1||(n=e.text()||e.val()),n){var s=e,a=e.data("i18n-target");if(a&&(s=e.find(a)||e),i||H.useDataAttrOptions!==!0||(i=e.data("i18n-options")),i=i||{},n.indexOf(";")>=0){var r=n.split(";");I.each(r,function(e,n){""!==n&&t(s,n,i)})}else t(s,n,i);H.useDataAttrOptions===!0&&e.data("i18n-options",i)}}I.t=I.t||S,I.fn.i18n=function(t){return this.each(function(){e(I(this),t);var i=I(this).find("["+H.selectorAttr+"]");i.each(function(){e(I(this),t)})})}}function _(t,e,i,n){if(!t)return t;if(n=n||e,t.indexOf(n.interpolationPrefix||H.interpolationPrefix)<0)return t;var s=n.interpolationPrefix?$.regexEscape(n.interpolationPrefix):H.interpolationPrefixEscaped,a=n.interpolationSuffix?$.regexEscape(n.interpolationSuffix):H.interpolationSuffixEscaped,r="HTML"+a,o=e.replace&&"object"==typeof e.replace?e.replace:e;return $.each(o,function(e,o){var l=i?i+H.keyseparator+e:e;"object"==typeof o&&null!==o?t=_(t,o,l,n):n.escapeInterpolation||H.escapeInterpolation?(t=t.replace(new RegExp([s,l,r].join(""),"g"),$.regexReplacementEscape(o)),t=t.replace(new RegExp([s,l,a].join(""),"g"),$.regexReplacementEscape($.escape(o)))):t=t.replace(new RegExp([s,l,a].join(""),"g"),$.regexReplacementEscape(o))}),t}function y(t,e){var i=",",n="{",s="}",a=$.extend({},e);for(delete a.postProcess;-1!=t.indexOf(H.reusePrefix)&&(O++,!(O>H.maxRecursion));){var r=t.lastIndexOf(H.reusePrefix),o=t.indexOf(H.reuseSuffix,r)+H.reuseSuffix.length,l=t.substring(r,o),c=l.replace(H.reusePrefix,"").replace(H.reuseSuffix,"");if(r>=o)return $.error("there is an missing closing in following translation value",t),"";if(-1!=c.indexOf(i)){var u=c.indexOf(i);if(-1!=c.indexOf(n,u)&&-1!=c.indexOf(s,u)){var h=c.indexOf(n,u),d=c.indexOf(s,h)+s.length;try{a=$.extend(a,JSON.parse(c.substring(h,d))),c=c.substring(0,u)}catch(p){}}}var f=A(c,a);t=t.replace(l,$.regexReplacementEscape(f))}return t}function w(t){return t.context&&("string"==typeof t.context||"number"==typeof t.context)}function x(t,e){return void 0!==t.count&&"string"!=typeof t.count}function k(t){return void 0!==t.indefinite_article&&"string"!=typeof t.indefinite_article&&t.indefinite_article}function C(t,e){e=e||{};var i=D(t,e),n=E(t,e);return void 0!==n||n===i}function S(t,e){return e=e||{},j?(O=0,A.apply(null,arguments)):($.log("i18next not finished initialization. you might have called t function before loading resources finished."),e.defaultValue||"")}function D(t,e){return void 0!==e.defaultValue?e.defaultValue:t}function T(){for(var t=[],e=1;e<arguments.length;e++)t.push(arguments[e]);return{postProcess:"sprintf",sprintf:t}}function A(t,e){if(e&&"object"!=typeof e?"sprintf"===H.shortcutFunction?e=T.apply(null,arguments):"defaultValue"===H.shortcutFunction&&(e={defaultValue:e}):e=e||{},"object"==typeof H.defaultVariables&&(e=$.extend({},H.defaultVariables,e)),void 0===t||null===t||""===t)return"";"string"==typeof t&&(t=[t]);var i=t[0];if(t.length>1)for(var n=0;n<t.length&&(i=t[n],!C(i,e));n++);var s,a=D(i,e),r=E(i,e),o=e.lng?$.toLanguages(e.lng,e.fallbackLng):R,l=e.ns||H.ns.defaultNs;i.indexOf(H.nsseparator)>-1&&(s=i.split(H.nsseparator),l=s[0],i=s[1]),void 0===r&&H.sendMissing&&"function"==typeof H.missingKeyHandler&&(e.lng?H.missingKeyHandler(o[0],l,i,a,o):H.missingKeyHandler(H.lng,l,i,a,o));var c=e.postProcess||H.postProcess;void 0!==r&&c&&Y[c]&&(r=Y[c](r,i,e));var u=a;if(a.indexOf(H.nsseparator)>-1&&(s=a.split(H.nsseparator),u=s[1]),u===i&&H.parseMissingKey&&(a=H.parseMissingKey(a)),void 0===r&&(a=_(a,e),a=y(a,e),c&&Y[c])){var h=D(i,e);r=Y[c](h,i,e)}return void 0!==r?r:a}function E(t,e){e=e||{};var i,n,s=D(t,e),a=R;if(!F)return s;if("cimode"===a[0].toLowerCase())return s;if(e.lngs&&(a=e.lngs),e.lng&&(a=$.toLanguages(e.lng,e.fallbackLng),!F[a[0]])){var r=H.getAsync;H.getAsync=!1,N.sync.load(a,H,function(t,e){$.extend(F,e),H.getAsync=r})}var o=e.ns||H.ns.defaultNs;if(t.indexOf(H.nsseparator)>-1){var l=t.split(H.nsseparator);o=l[0],t=l[1]}if(w(e)){i=$.extend({},e),delete i.context,i.defaultValue=H.contextNotFound;var c=o+H.nsseparator+t+"_"+e.context;if(n=S(c,i),n!=H.contextNotFound)return _(n,{context:e.context})}if(x(e,a[0])){i=$.extend({lngs:[a[0]]},e),delete i.count,delete i.lng,i.defaultValue=H.pluralNotFound;var u;if(V.needsPlural(a[0],e.count)){u=o+H.nsseparator+t+H.pluralSuffix;var h=V.get(a[0],e.count);h>=0?u=u+"_"+h:1===h&&(u=o+H.nsseparator+t)}else u=o+H.nsseparator+t;if(n=S(u,i),n!=H.pluralNotFound)return _(n,{count:e.count,interpolationPrefix:e.interpolationPrefix,interpolationSuffix:e.interpolationSuffix});if(!(a.length>1))return n;var d=a.slice();if(d.shift(),e=$.extend(e,{lngs:d}),delete e.lng,n=S(o+H.nsseparator+t,e),n!=H.pluralNotFound)return n}if(k(e)){var p=$.extend({},e);delete p.indefinite_article,p.defaultValue=H.indefiniteNotFound;var f=o+H.nsseparator+t+(e.count&&!x(e,a[0])||!e.count?H.indefiniteSuffix:"");if(n=S(f,p),n!=H.indefiniteNotFound)return n}for(var g,m=t.split(H.keyseparator),v=0,b=a.length;b>v&&void 0===g;v++){for(var C=a[v],T=0,M=F[C]&&F[C][o];m[T];)M=M&&M[m[T]],T++;if(void 0!==M){var P=Object.prototype.toString.apply(M);if("string"==typeof M)M=_(M,e),M=y(M,e);else if("[object Array]"!==P||H.returnObjectTrees||e.returnObjectTrees){if(null===M&&H.fallbackOnNull===!0)M=void 0;else if(null!==M)if(H.returnObjectTrees||e.returnObjectTrees){if("[object Number]"!==P&&"[object Function]"!==P&&"[object RegExp]"!==P){var I="[object Array]"===P?[]:{};$.each(M,function(i){I[i]=A(o+H.nsseparator+t+H.keyseparator+i,e)}),M=I}}else H.objectTreeKeyHandler&&"function"==typeof H.objectTreeKeyHandler?M=H.objectTreeKeyHandler(t,M,C,o,e):(M="key '"+o+":"+t+" ("+C+")' returned an object instead of string.",$.log(M))}else M=M.join("\n"),M=_(M,e),M=y(M,e);"string"==typeof M&&""===M.trim()&&H.fallbackOnEmpty===!0&&(M=void 0),g=M}}if(void 0===g&&!e.isFallbackLookup&&(H.fallbackToDefaultNS===!0||H.fallbackNS&&H.fallbackNS.length>0)){if(e.isFallbackLookup=!0,H.fallbackNS.length){for(var O=0,j=H.fallbackNS.length;j>O;O++)if(g=E(H.fallbackNS[O]+H.nsseparator+t,e),g||""===g&&H.fallbackOnEmpty===!1){var L=g.indexOf(H.nsseparator)>-1?g.split(H.nsseparator)[1]:g,z=s.indexOf(H.nsseparator)>-1?s.split(H.nsseparator)[1]:s;if(L!==z)break}}else g=E(t,e);e.isFallbackLookup=!1}return g}function M(){var t,e=H.lngWhitelist||[],i=[];if("undefined"!=typeof window&&!function(){for(var t=window.location.search.substring(1),e=t.split("&"),n=0;n<e.length;n++){var s=e[n].indexOf("=");if(s>0){var a=e[n].substring(0,s);a==H.detectLngQS&&i.push(e[n].substring(s+1))}}}(),H.useCookie&&"undefined"!=typeof document){var n=$.cookie.read(H.cookieName);n&&i.push(n)}if(H.detectLngFromLocalStorage&&"undefined"!=typeof window&&window.localStorage&&i.push(window.localStorage.getItem("i18next_lng")),"undefined"!=typeof navigator){if(navigator.languages)for(var s=0;s<navigator.languages.length;s++)i.push(navigator.languages[s]);navigator.userLanguage&&i.push(navigator.userLanguage),navigator.language&&i.push(navigator.language)}return function(){for(var n=0;n<i.length;n++){var s=i[n];if(s.indexOf("-")>-1){var a=s.split("-");s=H.lowerCaseLng?a[0].toLowerCase()+"-"+a[1].toLowerCase():a[0].toLowerCase()+"-"+a[1].toUpperCase()}if(0===e.length||e.indexOf(s)>-1){t=s;break}}}(),t||(t=H.fallbackLng[0]),t}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!=n?n=0:0!=n&&n!=1/0&&n!=-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var s=n>=0?n:Math.max(i-Math.abs(n),0);i>s;s++)if(s in e&&e[s]===t)return s;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var n=i;arguments.length>1&&(n=Number(arguments[1]),n!=n?n=0:0!=n&&n!=1/0&&n!=-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))));for(var s=n>=0?Math.min(n,i-1):i-Math.abs(n);s>=0;s--)if(s in e&&e[s]===t)return s;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var P,I=void 0,N={},F={},O=0,R=[],j=!1,L={};L={load:function(t,e,i){e.useLocalStorage?L._loadLocal(t,e,function(n,s){for(var a=[],r=0,o=t.length;o>r;r++)s[t[r]]||a.push(t[r]);a.length>0?L._fetch(a,e,function(t,e){$.extend(s,e),L._storeLocal(e),i(null,s)}):i(null,s)}):L._fetch(t,e,function(t,e){i(null,e)})},_loadLocal:function(t,e,i){var n={},s=(new Date).getTime();if(window.localStorage){var a=t.length;$.each(t,function(t,r){var o=window.localStorage.getItem("res_"+r);o&&(o=JSON.parse(o),o.i18nStamp&&o.i18nStamp+e.localStorageExpirationTime>s&&(n[r]=o)),a--,0===a&&i(null,n)})}},_storeLocal:function(t){if(window.localStorage)for(var e in t)t[e].i18nStamp=(new Date).getTime(),$.localStorage.setItem("res_"+e,JSON.stringify(t[e]))},_fetch:function(t,e,i){var n=e.ns,s={};if(e.dynamicLoad){var a=function(t,e){i(null,e)};if("function"==typeof e.customLoad)e.customLoad(t,n.namespaces,e,a);else{var r=_(e.resGetPath,{lng:t.join("+"),ns:n.namespaces.join("+")});$.ajax({url:r,success:function(t,e,i){$.log("loaded: "+r),a(null,t)},error:function(t,e,i){$.log("failed loading: "+r),a("failed loading resource.json error: "+i)},dataType:"json",async:e.getAsync})}}else{var o,l=n.namespaces.length*t.length;$.each(n.namespaces,function(n,a){$.each(t,function(t,n){var r=function(t,e){t&&(o=o||[],o.push(t)),s[n]=s[n]||{},s[n][a]=e,l--,0===l&&i(o,s)};"function"==typeof e.customLoad?e.customLoad(n,a,e,r):L._fetchOne(n,a,e,r)})})}},_fetchOne:function(t,e,i,n){var s=_(i.resGetPath,{lng:t,ns:e});$.ajax({url:s,success:function(t,e,i){$.log("loaded: "+s),n(null,t)},error:function(t,e,i){if(e&&200==e||t&&t.status&&200==t.status)$.error("There is a typo in: "+s);else if(e&&404==e||t&&t.status&&404==t.status)$.log("Does not exist: "+s);else{var a=e?e:t&&t.status?t.status:null;$.log(a+" when loading "+s)}n(i,{})},dataType:"json",async:i.getAsync})},postMissing:function(t,e,i,n,s){var a={};a[i]=n;var r=[];if("fallback"===H.sendMissingTo&&H.fallbackLng[0]!==!1)for(var o=0;o<H.fallbackLng.length;o++)r.push({lng:H.fallbackLng[o],url:_(H.resPostPath,{lng:H.fallbackLng[o],ns:e})});else if("current"===H.sendMissingTo||"fallback"===H.sendMissingTo&&H.fallbackLng[0]===!1)r.push({lng:t,url:_(H.resPostPath,{lng:t,ns:e})});else if("all"===H.sendMissingTo)for(var o=0,l=s.length;l>o;o++)r.push({lng:s[o],url:_(H.resPostPath,{lng:s[o],ns:e})});for(var c=0,u=r.length;u>c;c++){var h=r[c];$.ajax({url:h.url,type:H.sendType,data:a,success:function(t,s,a){$.log("posted missing key '"+i+"' to: "+h.url);for(var r=i.split("."),o=0,l=F[h.lng][e];r[o];)l=o===r.length-1?l[r[o]]=n:l[r[o]]=l[r[o]]||{},o++},error:function(t,e,n){$.log("failed posting missing key '"+i+"' to: "+h.url)},dataType:"json",async:H.postAsync})}},reload:v};var H={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",detectLngFromLocalStorage:!1,ns:"translation",fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",defaultVariables:!1,reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,indefiniteSuffix:"_indefinite",indefiniteNotFound:["indefinite_not_found",Math.random()].join(""),setJqueryExt:!0,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"i18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:void 0,parseMissingKey:void 0,missingKeyHandler:L.postMissing,shortcutFunction:"sprintf"},z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},B={create:function(t,e,i,n){var s;if(i){var a=new Date;a.setTime(a.getTime()+60*i*1e3),s="; expires="+a.toGMTString()}else s="";n=n?"domain="+n+";":"",document.cookie=t+"="+e+s+";"+n+"path=/"},read:function(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return null},remove:function(t){this.create(t,"",-1)}},q={create:function(t,e,i,n){},read:function(t){return null},remove:function(t){}},$={extend:I?I.extend:t,deepExtend:e,each:I?I.each:i,ajax:I?I.ajax:"undefined"!=typeof document?s:function(){},cookie:"undefined"!=typeof document?B:q,detectLanguage:M,escape:n,log:function(t){H.debug&&"undefined"!=typeof console&&console.log(t)},error:function(t){"undefined"!=typeof console&&console.error(t)},getCountyIndexOfLng:function(t){var e=0;return"nb-NO"!==t&&"nn-NO"!==t&&"nb-no"!==t&&"nn-no"!==t||(e=1),e},toLanguages:function(t){function e(t){var e=t;if("string"==typeof t&&t.indexOf("-")>-1){var i=t.split("-");e=H.lowerCaseLng?i[0].toLowerCase()+"-"+i[1].toLowerCase():i[0].toLowerCase()+"-"+i[1].toUpperCase()}else e=H.lowerCaseLng?t.toLowerCase():t;return e}var i=this.log,n=[],s=H.lngWhitelist||!1,a=function(t){!s||s.indexOf(t)>-1?n.push(t):i("rejecting non-whitelisted language: "+t)};if("string"==typeof t&&t.indexOf("-")>-1){var r=t.split("-");"unspecific"!==H.load&&a(e(t)),"current"!==H.load&&a(e(r[this.getCountyIndexOfLng(t)]))}else a(e(t));for(var o=0;o<H.fallbackLng.length;o++)-1===n.indexOf(H.fallbackLng[o])&&H.fallbackLng[o]&&n.push(e(H.fallbackLng[o]));return n},regexEscape:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},regexReplacementEscape:function(t){return"string"==typeof t?t.replace(/\$/g,"$$$$"):t},localStorage:{setItem:function(t,e){if(window.localStorage)try{window.localStorage.setItem(t,e)}catch(i){$.log('failed to set value for key "'+t+'" to localStorage.')}}}};$.applyReplacement=_;var W=[["ach","Acholi",[1,2],1],["af","Afrikaans",[1,2],2],["ak","Akan",[1,2],1],["am","Amharic",[1,2],1],["an","Aragonese",[1,2],2],["ar","Arabic",[0,1,2,3,11,100],5],["arn","Mapudungun",[1,2],1],["ast","Asturian",[1,2],2],["ay","Aymará",[1],3],["az","Azerbaijani",[1,2],2],["be","Belarusian",[1,2,5],4],["bg","Bulgarian",[1,2],2],["bn","Bengali",[1,2],2],["bo","Tibetan",[1],3],["br","Breton",[1,2],1],["bs","Bosnian",[1,2,5],4],["ca","Catalan",[1,2],2],["cgg","Chiga",[1],3],["cs","Czech",[1,2,5],6],["csb","Kashubian",[1,2,5],7],["cy","Welsh",[1,2,3,8],8],["da","Danish",[1,2],2],["de","German",[1,2],2],["dev","Development Fallback",[1,2],2],["dz","Dzongkha",[1],3],["el","Greek",[1,2],2],["en","English",[1,2],2],["eo","Esperanto",[1,2],2],["es","Spanish",[1,2],2],["es_ar","Argentinean Spanish",[1,2],2],["et","Estonian",[1,2],2],["eu","Basque",[1,2],2],["fa","Persian",[1],3],["fi","Finnish",[1,2],2],["fil","Filipino",[1,2],1],["fo","Faroese",[1,2],2],["fr","French",[1,2],9],["fur","Friulian",[1,2],2],["fy","Frisian",[1,2],2],["ga","Irish",[1,2,3,7,11],10],["gd","Scottish Gaelic",[1,2,3,20],11],["gl","Galician",[1,2],2],["gu","Gujarati",[1,2],2],["gun","Gun",[1,2],1],["ha","Hausa",[1,2],2],["he","Hebrew",[1,2],2],["hi","Hindi",[1,2],2],["hr","Croatian",[1,2,5],4],["hu","Hungarian",[1,2],2],["hy","Armenian",[1,2],2],["ia","Interlingua",[1,2],2],["id","Indonesian",[1],3],["is","Icelandic",[1,2],12],["it","Italian",[1,2],2],["ja","Japanese",[1],3],["jbo","Lojban",[1],3],["jv","Javanese",[0,1],13],["ka","Georgian",[1],3],["kk","Kazakh",[1],3],["km","Khmer",[1],3],["kn","Kannada",[1,2],2],["ko","Korean",[1],3],["ku","Kurdish",[1,2],2],["kw","Cornish",[1,2,3,4],14],["ky","Kyrgyz",[1],3],["lb","Letzeburgesch",[1,2],2],["ln","Lingala",[1,2],1],["lo","Lao",[1],3],["lt","Lithuanian",[1,2,10],15],["lv","Latvian",[1,2,0],16],["mai","Maithili",[1,2],2],["mfe","Mauritian Creole",[1,2],1],["mg","Malagasy",[1,2],1],["mi","Maori",[1,2],1],["mk","Macedonian",[1,2],17],["ml","Malayalam",[1,2],2],["mn","Mongolian",[1,2],2],["mnk","Mandinka",[0,1,2],18],["mr","Marathi",[1,2],2],["ms","Malay",[1],3],["mt","Maltese",[1,2,11,20],19],["nah","Nahuatl",[1,2],2],["nap","Neapolitan",[1,2],2],["nb","Norwegian Bokmal",[1,2],2],["ne","Nepali",[1,2],2],["nl","Dutch",[1,2],2],["nn","Norwegian Nynorsk",[1,2],2],["no","Norwegian",[1,2],2],["nso","Northern Sotho",[1,2],2],["oc","Occitan",[1,2],1],["or","Oriya",[2,1],2],["pa","Punjabi",[1,2],2],["pap","Papiamento",[1,2],2],["pl","Polish",[1,2,5],7],["pms","Piemontese",[1,2],2],["ps","Pashto",[1,2],2],["pt","Portuguese",[1,2],2],["pt_br","Brazilian Portuguese",[1,2],2],["rm","Romansh",[1,2],2],["ro","Romanian",[1,2,20],20],["ru","Russian",[1,2,5],4],["sah","Yakut",[1],3],["sco","Scots",[1,2],2],["se","Northern Sami",[1,2],2],["si","Sinhala",[1,2],2],["sk","Slovak",[1,2,5],6],["sl","Slovenian",[5,1,2,3],21],["so","Somali",[1,2],2],["son","Songhay",[1,2],2],["sq","Albanian",[1,2],2],["sr","Serbian",[1,2,5],4],["su","Sundanese",[1],3],["sv","Swedish",[1,2],2],["sw","Swahili",[1,2],2],["ta","Tamil",[1,2],2],["te","Telugu",[1,2],2],["tg","Tajik",[1,2],1],["th","Thai",[1],3],["ti","Tigrinya",[1,2],1],["tk","Turkmen",[1,2],2],["tr","Turkish",[1,2],1],["tt","Tatar",[1],3],["ug","Uyghur",[1],3],["uk","Ukrainian",[1,2,5],4],["ur","Urdu",[1,2],2],["uz","Uzbek",[1,2],1],["vi","Vietnamese",[1],3],["wa","Walloon",[1,2],1],["wo","Wolof",[1],3],["yo","Yoruba",[1,2],2],["zh","Chinese",[1],3]],U={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?1:2)},5:function(t){return Number(0===t?0:1==t?1:2==t?2:t%100>=3&&10>=t%100?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&4>=t?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:7>t?2:11>t?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&20>t?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(10>t%100||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1?0:1)},18:function(t){return Number(1==t?1:2)},19:function(t){return Number(1==t?0:0===t||t%100>1&&11>t%100?1:t%100>10&&20>t%100?2:3)},20:function(t){return Number(1==t?0:0===t||t%100>0&&20>t%100?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)}},V={rules:function(){var t,e={};for(t=W.length;t--;)e[W[t][0]]={name:W[t][1],numbers:W[t][2],plurals:U[W[t][3]]
+};return e}(),addRule:function(t,e){V.rules[t]=e},setCurrentLng:function(t){if(!V.currentRule||V.currentRule.lng!==t){var e=t.split("-");V.currentRule={lng:t,rule:V.rules[e[0]]}}},needsPlural:function(t,e){var i,n=t.split("-");return i=V.currentRule&&V.currentRule.lng===t?V.currentRule.rule:V.rules[n[$.getCountyIndexOfLng(t)]],i&&i.numbers.length<=1?!1:1!==this.get(t,e)},get:function(t,e){function i(e,i){var n;if(n=V.currentRule&&V.currentRule.lng===t?V.currentRule.rule:V.rules[e]){var s;s=n.noAbs?n.plurals(i):n.plurals(Math.abs(i));var a=n.numbers[s];return 2===n.numbers.length&&1===n.numbers[0]&&(2===a?a=-1:1===a&&(a=1)),a}return 1===i?"1":"-1"}var n=t.split("-");return i(n[$.getCountyIndexOfLng(t)],e)}},Y={},K=function(t,e){Y[t]=e},G=function(){function t(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function e(t,e){for(var i=[];e>0;i[--e]=t);return i.join("")}var i=function(){return i.cache.hasOwnProperty(arguments[0])||(i.cache[arguments[0]]=i.parse(arguments[0])),i.format.call(null,i.cache[arguments[0]],arguments)};return i.format=function(i,n){var s,a,r,o,l,c,u,h=1,d=i.length,p="",f=[];for(a=0;d>a;a++)if(p=t(i[a]),"string"===p)f.push(i[a]);else if("array"===p){if(o=i[a],o[2])for(s=n[h],r=0;r<o[2].length;r++){if(!s.hasOwnProperty(o[2][r]))throw G('[sprintf] property "%s" does not exist',o[2][r]);s=s[o[2][r]]}else s=o[1]?n[o[1]]:n[h++];if(/[^s]/.test(o[8])&&"number"!=t(s))throw G("[sprintf] expecting number but found %s",t(s));switch(o[8]){case"b":s=s.toString(2);break;case"c":s=String.fromCharCode(s);break;case"d":s=parseInt(s,10);break;case"e":s=o[7]?s.toExponential(o[7]):s.toExponential();break;case"f":s=o[7]?parseFloat(s).toFixed(o[7]):parseFloat(s);break;case"o":s=s.toString(8);break;case"s":s=(s=String(s))&&o[7]?s.substring(0,o[7]):s;break;case"u":s=Math.abs(s);break;case"x":s=s.toString(16);break;case"X":s=s.toString(16).toUpperCase()}s=/[def]/.test(o[8])&&o[3]&&s>=0?"+"+s:s,c=o[4]?"0"==o[4]?"0":o[4].charAt(1):" ",u=o[6]-String(s).length,l=o[6]?e(c,u):"",f.push(o[5]?s+l:l+s)}return f.join("")},i.cache={},i.parse=function(t){for(var e=t,i=[],n=[],s=0;e;){if(null!==(i=/^[^\x25]+/.exec(e)))n.push(i[0]);else if(null!==(i=/^\x25{2}/.exec(e)))n.push("%");else{if(null===(i=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(e)))throw"[sprintf] huh?";if(i[2]){s|=1;var a=[],r=i[2],o=[];if(null===(o=/^([a-z_][a-z_\d]*)/i.exec(r)))throw"[sprintf] huh?";for(a.push(o[1]);""!==(r=r.substring(o[0].length));)if(null!==(o=/^\.([a-z_][a-z_\d]*)/i.exec(r)))a.push(o[1]);else{if(null===(o=/^\[(\d+)\]/.exec(r)))throw"[sprintf] huh?";a.push(o[1])}i[2]=a}else s|=2;if(3===s)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";n.push(i)}e=e.substring(i[0].length)}return n},i}(),X=function(t,e){return e.unshift(t),G.apply(null,e)};return K("sprintf",function(t,e,i){return i.sprintf?"[object Array]"===Object.prototype.toString.apply(i.sprintf)?X(t,i.sprintf):"object"==typeof i.sprintf?G(t,i.sprintf):t:t}),N.init=a,N.setLng=g,N.preload=r,N.addResourceBundle=o,N.hasResourceBundle=l,N.addResource=u,N.addResources=h,N.removeResourceBundle=c,N.loadNamespace=p,N.loadNamespaces=f,N.setDefaultNamespace=d,N.t=S,N.translate=S,N.exists=C,N.detectLanguage=$.detectLanguage,N.pluralExtensions=V,N.sync=L,N.functions=$,N.lng=m,N.addPostProcessor=K,N.options=H,N}),i("views/i18n",["i18next"],function(t){"use strict";var e=t.t;return e.init=function(i){t.init({detectLngQS:"lang",fallbackLng:"en",lowerCaseLng:!0,getAsync:!1,resGetPath:i+"locales/__lng__/__ns__.json"}),Handlebars.registerHelper("t",e.bind(e))},e}),function(t){var e="object"==typeof exports&&exports,n="object"==typeof module&&module&&module.exports==e&&module,s="object"==typeof global&&global;s.global!==s&&s.window!==s||(t=s);var a=String.fromCharCode,r=function(t){return t.replace(/[\t\x20]$/gm,"").replace(/=?(?:\r\n?|\n)/g,"").replace(/=([a-fA-F0-9]{2})/g,function(t,e){var i=parseInt(e,16);return a(i)})},o=function(t){return t.replace(/\x20$/,"=20").replace(/\t$/,"=09")},l=/[\0-\b\n-\x1F=\x7F-\uD7FF\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF]/g,c=function(t){for(var e=t.replace(l,function(t){if(t>"ÿ")throw RangeError("`quotedPrintable.encode()` expects extended ASCII input only. Don’t forget to encode the input first using a character encoding like UTF-8.");var e=t.charCodeAt(0),i=e.toString(16).toUpperCase();return"="+("0"+i).slice(-2)}),i=e.split(/\r\n?|\n/g),n=-1,s=i.length,a=[];++n<s;)for(var r=i[n],c=75,u=0,h=r.length;h>u;){var d=e.slice(u,u+c);/=$/.test(d)?(d=d.slice(0,c-1),u+=c-1):/=[A-F0-9]$/.test(d)?(d=d.slice(0,c-2),u+=c-2):u+=c,a.push(d)}var p=d.length;return/[\t\x20]$/.test(d)&&(a.pop(),c+1>=p+2?a.push(o(d)):a.push(d.slice(0,p-1),o(d.slice(p-1,p)))),a.join("=\r\n")},u={encode:c,decode:r,version:"0.2.1"};if("function"==typeof i&&"object"==typeof i.amd&&i.amd)i("quoted-printable/quoted-printable",[],function(){return u});else if(e&&!e.nodeType)if(n)n.exports=u;else for(var h in u)u.hasOwnProperty(h)&&(e[h]=u[h]);else t.quotedPrintable=u}(this),function(t){function e(t){for(var e,i,n=[],s=0,a=t.length;a>s;)e=t.charCodeAt(s++),e>=55296&&56319>=e&&a>s?(i=t.charCodeAt(s++),56320==(64512&i)?n.push(((1023&e)<<10)+(1023&i)+65536):(n.push(e),s--)):n.push(e);return n}function n(t){for(var e,i=t.length,n=-1,s="";++n<i;)e=t[n],e>65535&&(e-=65536,s+=v(e>>>10&1023|55296),e=56320|1023&e),s+=v(e);return s}function s(t){if(t>=55296&&57343>=t)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return v(t>>e&63|128)}function r(t){if(0==(4294967168&t))return v(t);var e="";return 0==(4294965248&t)?e=v(t>>6&31|192):0==(4294901760&t)?(s(t),e=v(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=v(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+=v(63&t|128)}function o(t){for(var i,n=e(t),s=n.length,a=-1,o="";++a<s;)i=n[a],o+=r(i);return o}function l(){if(m>=g)throw Error("Invalid byte index");var t=255&f[m];if(m++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function c(){var t,e,i,n,a;if(m>g)throw Error("Invalid byte index");if(m==g)return!1;if(t=255&f[m],m++,0==(128&t))return t;if(192==(224&t)){var e=l();if(a=(31&t)<<6|e,a>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=l(),i=l(),a=(15&t)<<12|e<<6|i,a>=2048)return s(a),a;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=l(),i=l(),n=l(),a=(15&t)<<18|e<<12|i<<6|n,a>=65536&&1114111>=a))return a;throw Error("Invalid UTF-8 detected")}function u(t){f=e(t),g=f.length,m=0;for(var i,s=[];(i=c())!==!1;)s.push(i);return n(s)}var h="object"==typeof exports&&exports,d="object"==typeof module&&module&&module.exports==h&&module,p="object"==typeof global&&global;p.global!==p&&p.window!==p||(t=p);var f,g,m,v=String.fromCharCode,b={version:"2.0.0",encode:o,decode:u};if("function"==typeof i&&"object"==typeof i.amd&&i.amd)i("utf8/utf8",[],function(){return b});else if(h&&!h.nodeType)if(d)d.exports=b;else{var _={},y=_.hasOwnProperty;for(var w in b)y.call(b,w)&&(h[w]=b[w])}else t.utf8=b}(this),function(t){"use strict";var e="undefined"==typeof window?null:window;"function"==typeof i&&i.amd?i("DOMPurify",[],function(){return t(e)}):"undefined"!=typeof module?module.exports=t(e):e.DOMPurify=t(e)}(function n(t){"use strict";var e=function(t){return n(t)};if(e.version="0.7.4",!t||!t.document||9!==t.document.nodeType)return e.isSupported=!1,e;var i=t.document,s=i,a=t.DocumentFragment,r=t.HTMLTemplateElement,o=t.NodeFilter,l=t.NamedNodeMap||t.MozNamedAttrMap,c=t.Text,u=t.Comment,h=t.DOMParser;"function"==typeof r&&(i=i.createElement("template").content.ownerDocument);var d=i.implementation,p=i.createNodeIterator,f=i.getElementsByTagName,g=i.createDocumentFragment,m=s.importNode,v={};e.isSupported="undefined"!=typeof d.createHTMLDocument&&9!==i.documentMode;var b=function(t,e){for(var i=e.length;i--;)t[e[i]]=!0;return t},_=function(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i},y=null,w=b({},["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","switch","symbol","text","textpath","title","tref","tspan","view","vkern","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmuliscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mpspace","msqrt","mystyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","#text"]),x=null,k=b({},["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","rows","rowspan","spellcheck","scope","selected","shape","size","span","srclang","start","src","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns","accent-height","accumulate","additivive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mode","min","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","surfacescale","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","y","y1","y2","z","zoomandpan","accent","accentunder","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","display","displaystyle","fence","frame","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),C=null,S=null,D=!0,T=!1,A=!1,E=/\{\{[\s\S]*|[\s\S]*\}\}/gm,M=/<%[\s\S]*|[\s\S]*%>/gm,P=!1,I=!1,N=!1,F=!1,O=!0,R=!0,j=b({},["audio","head","math","script","style","svg","video"]),L=b({},["audio","video","img","source"]),H=b({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),z=null,B=i.createElement("form"),q=function(t){"object"!=typeof t&&(t={}),y="ALLOWED_TAGS"in t?b({},t.ALLOWED_TAGS):w,x="ALLOWED_ATTR"in t?b({},t.ALLOWED_ATTR):k,C="FORBID_TAGS"in t?b({},t.FORBID_TAGS):{},S="FORBID_ATTR"in t?b({},t.FORBID_ATTR):{},D=t.ALLOW_DATA_ATTR!==!1,T=t.SAFE_FOR_JQUERY||!1,A=t.SAFE_FOR_TEMPLATES||!1,P=t.WHOLE_DOCUMENT||!1,I=t.RETURN_DOM||!1,N=t.RETURN_DOM_FRAGMENT||!1,F=t.RETURN_DOM_IMPORT||!1,O=t.SANITIZE_DOM!==!1,R=t.KEEP_CONTENT!==!1,N&&(I=!0),t.ADD_TAGS&&(y===w&&(y=_(y)),b(y,t.ADD_TAGS)),t.ADD_ATTR&&(x===k&&(x=_(x)),b(x,t.ADD_ATTR)),R&&(y["#text"]=!0),Object&&"freeze"in Object&&Object.freeze(t),z=t},$=function(t){try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=""}},W=function(t){var e,i;try{e=(new h).parseFromString(t,"text/html")}catch(n){}return e||(e=d.createHTMLDocument(""),i=e.body,i.parentNode.removeChild(i.parentNode.firstElementChild),i.outerHTML=t),"function"==typeof e.getElementsByTagName?e.getElementsByTagName(P?"html":"body")[0]:f.call(e,P?"html":"body")[0]},U=function(t){return p.call(t.ownerDocument||t,t,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT,function(){return o.FILTER_ACCEPT},!1)},V=function(t){return t instanceof c||t instanceof u?!1:!("string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof l&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute)},Y=function(t){var e,i;if(Z("beforeSanitizeElements",t,null),V(t))return $(t),!0;if(e=t.nodeName.toLowerCase(),Z("uponSanitizeElement",t,{tagName:e}),!y[e]||C[e]){if(R&&!j[e]&&"function"==typeof t.insertAdjacentHTML)try{t.insertAdjacentHTML("AfterEnd",t.innerHTML)}catch(n){}return $(t),!0}return!T||t.firstElementChild||t.content&&t.content.firstElementChild||(t.innerHTML=t.textContent.replace(/</g,"&lt;")),A&&3===t.nodeType&&(i=t.textContent,i=i.replace(E," "),i=i.replace(M," "),t.textContent=i),Z("afterSanitizeElements",t,null),!1},K=/^data-[\w.\u00B7-\uFFFF-]/,G=/^(?:[^a-z]|(?=([a-z+.-]+))\1(?!:)|(?:mailto|tel|(?:ht|f)tps?):)/i,X=/[\x00-\x20\xA0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Q=function(e){var n,s,a,r,o,l,c,u;if(Z("beforeSanitizeAttributes",e,null),l=e.attributes){for(c={attrName:"",attrValue:"",keepAttr:!0},u=l.length;u--;)if(n=l[u],s=n.name,a=n.value,r=s.toLowerCase(),c.attrName=r,c.attrValue=a,c.keepAttr=!0,Z("uponSanitizeAttribute",e,c),a=c.attrValue,"name"===r&&"IMG"===e.nodeName&&l.id?(o=l.id,l=Array.prototype.slice.apply(l),e.removeAttribute("id"),e.removeAttribute(s),l.indexOf(o)>u&&e.setAttribute("id",o.value)):("id"===s&&e.setAttribute(s,""),e.removeAttribute(s)),c.keepAttr&&(!O||"id"!==r&&"name"!==r||!(a in t||a in i||a in B))&&(A&&(a=a.replace(E," "),a=a.replace(M," ")),(x[r]&&!S[r]||!A&&D&&K.test(r))&&(G.test(a.replace(X,""))||"src"===r&&0===a.indexOf("data:")&&L[e.nodeName.toLowerCase()]||H[r])))try{e.setAttribute(s,a)}catch(h){}Z("afterSanitizeAttributes",e,null)}},J=function(t){var e,i=U(t);for(Z("beforeSanitizeShadowDOM",t,null);e=i.nextNode();)Z("uponSanitizeShadowNode",e,null),Y(e)||(e.content instanceof a&&J(e.content),Q(e));Z("afterSanitizeShadowDOM",t,null)},Z=function(t,i,n){v[t]&&v[t].forEach(function(t){t.call(e,i,n,z)})};return e.sanitize=function(i,n){var r,o,l,c,u;if(i||(i=""),"string"!=typeof i){if("function"!=typeof i.toString)throw new TypeError("toString is not a function");i=i.toString()}if(!e.isSupported)return"object"==typeof t.toStaticHTML||"function"==typeof t.toStaticHTML?t.toStaticHTML(i):i;if(q(n),!I&&!P&&-1===i.indexOf("<"))return i;if(r=W(i),!r)return I?null:"";for(c=U(r);o=c.nextNode();)3===o.nodeType&&o===l||Y(o)||(o.content instanceof a&&J(o.content),Q(o),l=o);if(I){if(N)for(u=g.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return F&&(u=m.call(s,u,!0)),u}return P?r.outerHTML:r.innerHTML},e.addHook=function(t,e){"function"==typeof e&&(v[t]=v[t]||[],v[t].push(e))},e.removeHook=function(t){v[t]&&v[t].pop()},e.removeHooks=function(t){v[t]&&(v[t]=[])},e.removeAllHooks=function(){v=[]},e}),function(t){var e="object"==typeof exports&&exports,n="object"==typeof module&&module&&module.exports==e&&module,s="object"==typeof global&&global;s.global!==s&&s.window!==s||(t=s);var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r=/[\x01-\x7F]/g,o=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"Á":"Aacute","á":"aacute","Ă":"Abreve","ă":"abreve","∾":"ac","∿":"acd","∾̳":"acE","Â":"Acirc","â":"acirc","´":"acute","А":"Acy","а":"acy","Æ":"AElig","æ":"aelig","⁡":"af","𝔄":"Afr","𝔞":"afr","À":"Agrave","à":"agrave","ℵ":"aleph","Α":"Alpha","α":"alpha","Ā":"Amacr","ā":"amacr","⨿":"amalg","&":"amp","⩕":"andand","⩓":"And","∧":"and","⩜":"andd","⩘":"andslope","⩚":"andv","∠":"ang","⦤":"ange","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","∡":"angmsd","∟":"angrt","⊾":"angrtvb","⦝":"angrtvbd","∢":"angsph","Å":"angst","⍼":"angzarr","Ą":"Aogon","ą":"aogon","𝔸":"Aopf","𝕒":"aopf","⩯":"apacir","≈":"ap","⩰":"apE","≊":"ape","≋":"apid","'":"apos","å":"aring","𝒜":"Ascr","𝒶":"ascr","≔":"colone","*":"ast","≍":"CupCap","Ã":"Atilde","ã":"atilde","Ä":"Auml","ä":"auml","∳":"awconint","⨑":"awint","≌":"bcong","϶":"bepsi","‵":"bprime","∽":"bsim","⋍":"bsime","∖":"setmn","⫧":"Barv","⊽":"barvee","⌅":"barwed","⌆":"Barwed","⎵":"bbrk","⎶":"bbrktbrk","Б":"Bcy","б":"bcy","„":"bdquo","∵":"becaus","⦰":"bemptyv","ℬ":"Bscr","Β":"Beta","β":"beta","ℶ":"beth","≬":"twixt","𝔅":"Bfr","𝔟":"bfr","⋂":"xcap","◯":"xcirc","⋃":"xcup","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨆":"xsqcup","★":"starf","▽":"xdtri","△":"xutri","⨄":"xuplus","⋁":"Vee","⋀":"Wedge","⤍":"rbarr","⧫":"lozf","▪":"squf","▴":"utrif","▾":"dtrif","◂":"ltrif","▸":"rtrif","␣":"blank","▒":"blk12","░":"blk14","▓":"blk34","█":"block","=⃥":"bne","≡⃥":"bnequiv","⫭":"bNot","⌐":"bnot","𝔹":"Bopf","𝕓":"bopf","⊥":"bot","⋈":"bowtie","⧉":"boxbox","┐":"boxdl","╕":"boxdL","╖":"boxDl","╗":"boxDL","┌":"boxdr","╒":"boxdR","╓":"boxDr","╔":"boxDR","─":"boxh","═":"boxH","┬":"boxhd","╤":"boxHd","╥":"boxhD","╦":"boxHD","┴":"boxhu","╧":"boxHu","╨":"boxhU","╩":"boxHU","⊟":"minusb","⊞":"plusb","⊠":"timesb","┘":"boxul","╛":"boxuL","╜":"boxUl","╝":"boxUL","└":"boxur","╘":"boxuR","╙":"boxUr","╚":"boxUR","│":"boxv","║":"boxV","┼":"boxvh","╪":"boxvH","╫":"boxVh","╬":"boxVH","┤":"boxvl","╡":"boxvL","╢":"boxVl","╣":"boxVL","├":"boxvr","╞":"boxvR","╟":"boxVr","╠":"boxVR","˘":"breve","¦":"brvbar","𝒷":"bscr","⁏":"bsemi","⧅":"bsolb","\\":"bsol","⟈":"bsolhsub","•":"bull","≎":"bump","⪮":"bumpE","≏":"bumpe","Ć":"Cacute","ć":"cacute","⩄":"capand","⩉":"capbrcup","⩋":"capcap","∩":"cap","⋒":"Cap","⩇":"capcup","⩀":"capdot","ⅅ":"DD","∩︀":"caps","⁁":"caret","ˇ":"caron","ℭ":"Cfr","⩍":"ccaps","Č":"Ccaron","č":"ccaron","Ç":"Ccedil","ç":"ccedil","Ĉ":"Ccirc","ĉ":"ccirc","∰":"Cconint","⩌":"ccups","⩐":"ccupssm","Ċ":"Cdot","ċ":"cdot","¸":"cedil","⦲":"cemptyv","¢":"cent","·":"middot","𝔠":"cfr","Ч":"CHcy","ч":"chcy","✓":"check","Χ":"Chi","χ":"chi","ˆ":"circ","≗":"cire","↺":"olarr","↻":"orarr","⊛":"oast","⊚":"ocir","⊝":"odash","⊙":"odot","®":"reg","Ⓢ":"oS","⊖":"ominus","⊕":"oplus","⊗":"otimes","○":"cir","⧃":"cirE","⨐":"cirfnint","⫯":"cirmid","⧂":"cirscir","∲":"cwconint","”":"rdquo","’":"rsquo","♣":"clubs",":":"colon","∷":"Colon","⩴":"Colone",",":"comma","@":"commat","∁":"comp","∘":"compfn","ℂ":"Copf","≅":"cong","⩭":"congdot","≡":"equiv","∮":"oint","∯":"Conint","𝕔":"copf","∐":"coprod","©":"copy","℗":"copysr","↵":"crarr","✗":"cross","⨯":"Cross","𝒞":"Cscr","𝒸":"cscr","⫏":"csub","⫑":"csube","⫐":"csup","⫒":"csupe","⋯":"ctdot","⤸":"cudarrl","⤵":"cudarrr","⋞":"cuepr","⋟":"cuesc","↶":"cularr","⤽":"cularrp","⩈":"cupbrcap","⩆":"cupcap","∪":"cup","⋓":"Cup","⩊":"cupcup","⊍":"cupdot","⩅":"cupor","∪︀":"cups","↷":"curarr","⤼":"curarrm","⋎":"cuvee","⋏":"cuwed","¤":"curren","∱":"cwint","⌭":"cylcty","†":"dagger","‡":"Dagger","ℸ":"daleth","↓":"darr","↡":"Darr","⇓":"dArr","‐":"dash","⫤":"Dashv","⊣":"dashv","⤏":"rBarr","˝":"dblac","Ď":"Dcaron","ď":"dcaron","Д":"Dcy","д":"dcy","⇊":"ddarr","ⅆ":"dd","⤑":"DDotrahd","⩷":"eDDot","°":"deg","∇":"Del","Δ":"Delta","δ":"delta","⦱":"demptyv","⥿":"dfisht","𝔇":"Dfr","𝔡":"dfr","⥥":"dHar","⇃":"dharl","⇂":"dharr","˙":"dot","`":"grave","˜":"tilde","⋄":"diam","♦":"diams","¨":"die","ϝ":"gammad","⋲":"disin","÷":"div","⋇":"divonx","Ђ":"DJcy","ђ":"djcy","⌞":"dlcorn","⌍":"dlcrop",$:"dollar","𝔻":"Dopf","𝕕":"dopf","⃜":"DotDot","≐":"doteq","≑":"eDot","∸":"minusd","∔":"plusdo","⊡":"sdotb","⇐":"lArr","⇔":"iff","⟸":"xlArr","⟺":"xhArr","⟹":"xrArr","⇒":"rArr","⊨":"vDash","⇑":"uArr","⇕":"vArr","∥":"par","⤓":"DownArrowBar","⇵":"duarr","̑":"DownBreve","⥐":"DownLeftRightVector","⥞":"DownLeftTeeVector","⥖":"DownLeftVectorBar","↽":"lhard","⥟":"DownRightTeeVector","⥗":"DownRightVectorBar","⇁":"rhard","↧":"mapstodown","⊤":"top","⤐":"RBarr","⌟":"drcorn","⌌":"drcrop","𝒟":"Dscr","𝒹":"dscr","Ѕ":"DScy","ѕ":"dscy","⧶":"dsol","Đ":"Dstrok","đ":"dstrok","⋱":"dtdot","▿":"dtri","⥯":"duhar","⦦":"dwangle","Џ":"DZcy","џ":"dzcy","⟿":"dzigrarr","É":"Eacute","é":"eacute","⩮":"easter","Ě":"Ecaron","ě":"ecaron","Ê":"Ecirc","ê":"ecirc","≖":"ecir","≕":"ecolon","Э":"Ecy","э":"ecy","Ė":"Edot","ė":"edot","ⅇ":"ee","≒":"efDot","𝔈":"Efr","𝔢":"efr","⪚":"eg","È":"Egrave","è":"egrave","⪖":"egs","⪘":"egsdot","⪙":"el","∈":"in","⏧":"elinters","ℓ":"ell","⪕":"els","⪗":"elsdot","Ē":"Emacr","ē":"emacr","∅":"empty","◻":"EmptySmallSquare","▫":"EmptyVerySmallSquare"," ":"emsp13"," ":"emsp14"," ":"emsp","Ŋ":"ENG","ŋ":"eng"," ":"ensp","Ę":"Eogon","ę":"eogon","𝔼":"Eopf","𝕖":"eopf","⋕":"epar","⧣":"eparsl","⩱":"eplus","ε":"epsi","Ε":"Epsilon","ϵ":"epsiv","≂":"esim","⩵":"Equal","=":"equals","≟":"equest","⇌":"rlhar","⩸":"equivDD","⧥":"eqvparsl","⥱":"erarr","≓":"erDot","ℯ":"escr","ℰ":"Escr","⩳":"Esim","Η":"Eta","η":"eta","Ð":"ETH","ð":"eth","Ë":"Euml","ë":"euml","€":"euro","!":"excl","∃":"exist","Ф":"Fcy","ф":"fcy","♀":"female","ffi":"ffilig","ff":"fflig","ffl":"ffllig","𝔉":"Ffr","𝔣":"ffr","fi":"filig","◼":"FilledSmallSquare",fj:"fjlig","♭":"flat","fl":"fllig","▱":"fltns","ƒ":"fnof","𝔽":"Fopf","𝕗":"fopf","∀":"forall","⋔":"fork","⫙":"forkv","ℱ":"Fscr","⨍":"fpartint","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","⅔":"frac23","⅖":"frac25","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","⁄":"frasl","⌢":"frown","𝒻":"fscr","ǵ":"gacute","Γ":"Gamma","γ":"gamma","Ϝ":"Gammad","⪆":"gap","Ğ":"Gbreve","ğ":"gbreve","Ģ":"Gcedil","Ĝ":"Gcirc","ĝ":"gcirc","Г":"Gcy","г":"gcy","Ġ":"Gdot","ġ":"gdot","≥":"ge","≧":"gE","⪌":"gEl","⋛":"gel","⩾":"ges","⪩":"gescc","⪀":"gesdot","⪂":"gesdoto","⪄":"gesdotol","⋛︀":"gesl","⪔":"gesles","𝔊":"Gfr","𝔤":"gfr","≫":"gg","⋙":"Gg","ℷ":"gimel","Ѓ":"GJcy","ѓ":"gjcy","⪥":"gla","≷":"gl","⪒":"glE","⪤":"glj","⪊":"gnap","⪈":"gne","≩":"gnE","⋧":"gnsim","𝔾":"Gopf","𝕘":"gopf","⪢":"GreaterGreater","≳":"gsim","𝒢":"Gscr","ℊ":"gscr","⪎":"gsime","⪐":"gsiml","⪧":"gtcc","⩺":"gtcir",">":"gt","⋗":"gtdot","⦕":"gtlPar","⩼":"gtquest","⥸":"gtrarr","≩︀":"gvnE"," ":"hairsp","ℋ":"Hscr","Ъ":"HARDcy","ъ":"hardcy","⥈":"harrcir","↔":"harr","↭":"harrw","^":"Hat","ℏ":"hbar","Ĥ":"Hcirc","ĥ":"hcirc","♥":"hearts","…":"mldr","⊹":"hercon","𝔥":"hfr","ℌ":"Hfr","⤥":"searhk","⤦":"swarhk","⇿":"hoarr","∻":"homtht","↩":"larrhk","↪":"rarrhk","𝕙":"hopf","ℍ":"Hopf","―":"horbar","𝒽":"hscr","Ħ":"Hstrok","ħ":"hstrok","⁃":"hybull","Í":"Iacute","í":"iacute","⁣":"ic","Î":"Icirc","î":"icirc","И":"Icy","и":"icy","İ":"Idot","Е":"IEcy","е":"iecy","¡":"iexcl","𝔦":"ifr","ℑ":"Im","Ì":"Igrave","ì":"igrave","ⅈ":"ii","⨌":"qint","∭":"tint","⧜":"iinfin","℩":"iiota","IJ":"IJlig","ij":"ijlig","Ī":"Imacr","ī":"imacr","ℐ":"Iscr","ı":"imath","⊷":"imof","Ƶ":"imped","℅":"incare","∞":"infin","⧝":"infintie","⊺":"intcal","∫":"int","∬":"Int","ℤ":"Zopf","⨗":"intlarhk","⨼":"iprod","⁢":"it","Ё":"IOcy","ё":"iocy","Į":"Iogon","į":"iogon","𝕀":"Iopf","𝕚":"iopf","Ι":"Iota","ι":"iota","¿":"iquest","𝒾":"iscr","⋵":"isindot","⋹":"isinE","⋴":"isins","⋳":"isinsv","Ĩ":"Itilde","ĩ":"itilde","І":"Iukcy","і":"iukcy","Ï":"Iuml","ï":"iuml","Ĵ":"Jcirc","ĵ":"jcirc","Й":"Jcy","й":"jcy","𝔍":"Jfr","𝔧":"jfr","ȷ":"jmath","𝕁":"Jopf","𝕛":"jopf","𝒥":"Jscr","𝒿":"jscr","Ј":"Jsercy","ј":"jsercy","Є":"Jukcy","є":"jukcy","Κ":"Kappa","κ":"kappa","ϰ":"kappav","Ķ":"Kcedil","ķ":"kcedil","К":"Kcy","к":"kcy","𝔎":"Kfr","𝔨":"kfr","ĸ":"kgreen","Х":"KHcy","х":"khcy","Ќ":"KJcy","ќ":"kjcy","𝕂":"Kopf","𝕜":"kopf","𝒦":"Kscr","𝓀":"kscr","⇚":"lAarr","Ĺ":"Lacute","ĺ":"lacute","⦴":"laemptyv","ℒ":"Lscr","Λ":"Lambda","λ":"lambda","⟨":"lang","⟪":"Lang","⦑":"langd","⪅":"lap","«":"laquo","⇤":"larrb","⤟":"larrbfs","←":"larr","↞":"Larr","⤝":"larrfs","↫":"larrlp","⤹":"larrpl","⥳":"larrsim","↢":"larrtl","⤙":"latail","⤛":"lAtail","⪫":"lat","⪭":"late","⪭︀":"lates","⤌":"lbarr","⤎":"lBarr","❲":"lbbrk","{":"lcub","[":"lsqb","⦋":"lbrke","⦏":"lbrksld","⦍":"lbrkslu","Ľ":"Lcaron","ľ":"lcaron","Ļ":"Lcedil","ļ":"lcedil","⌈":"lceil","Л":"Lcy","л":"lcy","⤶":"ldca","“":"ldquo","⥧":"ldrdhar","⥋":"ldrushar","↲":"ldsh","≤":"le","≦":"lE","⇆":"lrarr","⟦":"lobrk","⥡":"LeftDownTeeVector","⥙":"LeftDownVectorBar","⌊":"lfloor","↼":"lharu","⇇":"llarr","⇋":"lrhar","⥎":"LeftRightVector","↤":"mapstoleft","⥚":"LeftTeeVector","⋋":"lthree","⧏":"LeftTriangleBar","⊲":"vltri","⊴":"ltrie","⥑":"LeftUpDownVector","⥠":"LeftUpTeeVector","⥘":"LeftUpVectorBar","↿":"uharl","⥒":"LeftVectorBar","⪋":"lEg","⋚":"leg","⩽":"les","⪨":"lescc","⩿":"lesdot","⪁":"lesdoto","⪃":"lesdotor","⋚︀":"lesg","⪓":"lesges","⋖":"ltdot","≶":"lg","⪡":"LessLess","≲":"lsim","⥼":"lfisht","𝔏":"Lfr","𝔩":"lfr","⪑":"lgE","⥢":"lHar","⥪":"lharul","▄":"lhblk","Љ":"LJcy","љ":"ljcy","≪":"ll","⋘":"Ll","⥫":"llhard","◺":"lltri","Ŀ":"Lmidot","ŀ":"lmidot","⎰":"lmoust","⪉":"lnap","⪇":"lne","≨":"lnE","⋦":"lnsim","⟬":"loang","⇽":"loarr","⟵":"xlarr","⟷":"xharr","⟼":"xmap","⟶":"xrarr","↬":"rarrlp","⦅":"lopar","𝕃":"Lopf","𝕝":"lopf","⨭":"loplus","⨴":"lotimes","∗":"lowast",_:"lowbar","↙":"swarr","↘":"searr","◊":"loz","(":"lpar","⦓":"lparlt","⥭":"lrhard","‎":"lrm","⊿":"lrtri","‹":"lsaquo","𝓁":"lscr","↰":"lsh","⪍":"lsime","⪏":"lsimg","‘":"lsquo","‚":"sbquo","Ł":"Lstrok","ł":"lstrok","⪦":"ltcc","⩹":"ltcir","<":"lt","⋉":"ltimes","⥶":"ltlarr","⩻":"ltquest","◃":"ltri","⦖":"ltrPar","⥊":"lurdshar","⥦":"luruhar","≨︀":"lvnE","¯":"macr","♂":"male","✠":"malt","⤅":"Map","↦":"map","↥":"mapstoup","▮":"marker","⨩":"mcomma","М":"Mcy","м":"mcy","—":"mdash","∺":"mDDot"," ":"MediumSpace","ℳ":"Mscr","𝔐":"Mfr","𝔪":"mfr","℧":"mho","µ":"micro","⫰":"midcir","∣":"mid","−":"minus","⨪":"minusdu","∓":"mp","⫛":"mlcp","⊧":"models","𝕄":"Mopf","𝕞":"mopf","𝓂":"mscr","Μ":"Mu","μ":"mu","⊸":"mumap","Ń":"Nacute","ń":"nacute","∠⃒":"nang","≉":"nap","⩰̸":"napE","≋̸":"napid","ʼn":"napos","♮":"natur","ℕ":"Nopf"," ":"nbsp","≎̸":"nbump","≏̸":"nbumpe","⩃":"ncap","Ň":"Ncaron","ň":"ncaron","Ņ":"Ncedil","ņ":"ncedil","≇":"ncong","⩭̸":"ncongdot","⩂":"ncup","Н":"Ncy","н":"ncy","–":"ndash","⤤":"nearhk","↗":"nearr","⇗":"neArr","≠":"ne","≐̸":"nedot","​":"ZeroWidthSpace","≢":"nequiv","⤨":"toea","≂̸":"nesim","\n":"NewLine","∄":"nexist","𝔑":"Nfr","𝔫":"nfr","≧̸":"ngE","≱":"nge","⩾̸":"nges","⋙̸":"nGg","≵":"ngsim","≫⃒":"nGt","≯":"ngt","≫̸":"nGtv","↮":"nharr","⇎":"nhArr","⫲":"nhpar","∋":"ni","⋼":"nis","⋺":"nisd","Њ":"NJcy","њ":"njcy","↚":"nlarr","⇍":"nlArr","‥":"nldr","≦̸":"nlE","≰":"nle","⩽̸":"nles","≮":"nlt","⋘̸":"nLl","≴":"nlsim","≪⃒":"nLt","⋪":"nltri","⋬":"nltrie","≪̸":"nLtv","∤":"nmid","⁠":"NoBreak","𝕟":"nopf","⫬":"Not","¬":"not","≭":"NotCupCap","∦":"npar","∉":"notin","≹":"ntgl","⋵̸":"notindot","⋹̸":"notinE",
+"⋷":"notinvb","⋶":"notinvc","⧏̸":"NotLeftTriangleBar","≸":"ntlg","⪢̸":"NotNestedGreaterGreater","⪡̸":"NotNestedLessLess","∌":"notni","⋾":"notnivb","⋽":"notnivc","⊀":"npr","⪯̸":"npre","⋠":"nprcue","⧐̸":"NotRightTriangleBar","⋫":"nrtri","⋭":"nrtrie","⊏̸":"NotSquareSubset","⋢":"nsqsube","⊐̸":"NotSquareSuperset","⋣":"nsqsupe","⊂⃒":"vnsub","⊈":"nsube","⊁":"nsc","⪰̸":"nsce","⋡":"nsccue","≿̸":"NotSucceedsTilde","⊃⃒":"vnsup","⊉":"nsupe","≁":"nsim","≄":"nsime","⫽⃥":"nparsl","∂̸":"npart","⨔":"npolint","⤳̸":"nrarrc","↛":"nrarr","⇏":"nrArr","↝̸":"nrarrw","𝒩":"Nscr","𝓃":"nscr","⊄":"nsub","⫅̸":"nsubE","⊅":"nsup","⫆̸":"nsupE","Ñ":"Ntilde","ñ":"ntilde","Ν":"Nu","ν":"nu","#":"num","№":"numero"," ":"numsp","≍⃒":"nvap","⊬":"nvdash","⊭":"nvDash","⊮":"nVdash","⊯":"nVDash","≥⃒":"nvge",">⃒":"nvgt","⤄":"nvHarr","⧞":"nvinfin","⤂":"nvlArr","≤⃒":"nvle","<⃒":"nvlt","⊴⃒":"nvltrie","⤃":"nvrArr","⊵⃒":"nvrtrie","∼⃒":"nvsim","⤣":"nwarhk","↖":"nwarr","⇖":"nwArr","⤧":"nwnear","Ó":"Oacute","ó":"oacute","Ô":"Ocirc","ô":"ocirc","О":"Ocy","о":"ocy","Ő":"Odblac","ő":"odblac","⨸":"odiv","⦼":"odsold","Œ":"OElig","œ":"oelig","⦿":"ofcir","𝔒":"Ofr","𝔬":"ofr","˛":"ogon","Ò":"Ograve","ò":"ograve","⧁":"ogt","⦵":"ohbar","Ω":"ohm","⦾":"olcir","⦻":"olcross","‾":"oline","⧀":"olt","Ō":"Omacr","ō":"omacr","ω":"omega","Ο":"Omicron","ο":"omicron","⦶":"omid","𝕆":"Oopf","𝕠":"oopf","⦷":"opar","⦹":"operp","⩔":"Or","∨":"or","⩝":"ord","ℴ":"oscr","ª":"ordf","º":"ordm","⊶":"origof","⩖":"oror","⩗":"orslope","⩛":"orv","𝒪":"Oscr","Ø":"Oslash","ø":"oslash","⊘":"osol","Õ":"Otilde","õ":"otilde","⨶":"otimesas","⨷":"Otimes","Ö":"Ouml","ö":"ouml","⌽":"ovbar","⏞":"OverBrace","⎴":"tbrk","⏜":"OverParenthesis","¶":"para","⫳":"parsim","⫽":"parsl","∂":"part","П":"Pcy","п":"pcy","%":"percnt",".":"period","‰":"permil","‱":"pertenk","𝔓":"Pfr","𝔭":"pfr","Φ":"Phi","φ":"phi","ϕ":"phiv","☎":"phone","Π":"Pi","π":"pi","ϖ":"piv","ℎ":"planckh","⨣":"plusacir","⨢":"pluscir","+":"plus","⨥":"plusdu","⩲":"pluse","±":"pm","⨦":"plussim","⨧":"plustwo","⨕":"pointint","𝕡":"popf","ℙ":"Popf","£":"pound","⪷":"prap","⪻":"Pr","≺":"pr","≼":"prcue","⪯":"pre","≾":"prsim","⪹":"prnap","⪵":"prnE","⋨":"prnsim","⪳":"prE","′":"prime","″":"Prime","∏":"prod","⌮":"profalar","⌒":"profline","⌓":"profsurf","∝":"prop","⊰":"prurel","𝒫":"Pscr","𝓅":"pscr","Ψ":"Psi","ψ":"psi"," ":"puncsp","𝔔":"Qfr","𝔮":"qfr","𝕢":"qopf","ℚ":"Qopf","⁗":"qprime","𝒬":"Qscr","𝓆":"qscr","⨖":"quatint","?":"quest",'"':"quot","⇛":"rAarr","∽̱":"race","Ŕ":"Racute","ŕ":"racute","√":"Sqrt","⦳":"raemptyv","⟩":"rang","⟫":"Rang","⦒":"rangd","⦥":"range","»":"raquo","⥵":"rarrap","⇥":"rarrb","⤠":"rarrbfs","⤳":"rarrc","→":"rarr","↠":"Rarr","⤞":"rarrfs","⥅":"rarrpl","⥴":"rarrsim","⤖":"Rarrtl","↣":"rarrtl","↝":"rarrw","⤚":"ratail","⤜":"rAtail","∶":"ratio","❳":"rbbrk","}":"rcub","]":"rsqb","⦌":"rbrke","⦎":"rbrksld","⦐":"rbrkslu","Ř":"Rcaron","ř":"rcaron","Ŗ":"Rcedil","ŗ":"rcedil","⌉":"rceil","Р":"Rcy","р":"rcy","⤷":"rdca","⥩":"rdldhar","↳":"rdsh","ℜ":"Re","ℛ":"Rscr","ℝ":"Ropf","▭":"rect","⥽":"rfisht","⌋":"rfloor","𝔯":"rfr","⥤":"rHar","⇀":"rharu","⥬":"rharul","Ρ":"Rho","ρ":"rho","ϱ":"rhov","⇄":"rlarr","⟧":"robrk","⥝":"RightDownTeeVector","⥕":"RightDownVectorBar","⇉":"rrarr","⊢":"vdash","⥛":"RightTeeVector","⋌":"rthree","⧐":"RightTriangleBar","⊳":"vrtri","⊵":"rtrie","⥏":"RightUpDownVector","⥜":"RightUpTeeVector","⥔":"RightUpVectorBar","↾":"uharr","⥓":"RightVectorBar","˚":"ring","‏":"rlm","⎱":"rmoust","⫮":"rnmid","⟭":"roang","⇾":"roarr","⦆":"ropar","𝕣":"ropf","⨮":"roplus","⨵":"rotimes","⥰":"RoundImplies",")":"rpar","⦔":"rpargt","⨒":"rppolint","›":"rsaquo","𝓇":"rscr","↱":"rsh","⋊":"rtimes","▹":"rtri","⧎":"rtriltri","⧴":"RuleDelayed","⥨":"ruluhar","℞":"rx","Ś":"Sacute","ś":"sacute","⪸":"scap","Š":"Scaron","š":"scaron","⪼":"Sc","≻":"sc","≽":"sccue","⪰":"sce","⪴":"scE","Ş":"Scedil","ş":"scedil","Ŝ":"Scirc","ŝ":"scirc","⪺":"scnap","⪶":"scnE","⋩":"scnsim","⨓":"scpolint","≿":"scsim","С":"Scy","с":"scy","⋅":"sdot","⩦":"sdote","⇘":"seArr","§":"sect",";":"semi","⤩":"tosa","✶":"sext","𝔖":"Sfr","𝔰":"sfr","♯":"sharp","Щ":"SHCHcy","щ":"shchcy","Ш":"SHcy","ш":"shcy","↑":"uarr","­":"shy","Σ":"Sigma","σ":"sigma","ς":"sigmaf","∼":"sim","⩪":"simdot","≃":"sime","⪞":"simg","⪠":"simgE","⪝":"siml","⪟":"simlE","≆":"simne","⨤":"simplus","⥲":"simrarr","⨳":"smashp","⧤":"smeparsl","⌣":"smile","⪪":"smt","⪬":"smte","⪬︀":"smtes","Ь":"SOFTcy","ь":"softcy","⌿":"solbar","⧄":"solb","/":"sol","𝕊":"Sopf","𝕤":"sopf","♠":"spades","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊏":"sqsub","⊑":"sqsube","⊐":"sqsup","⊒":"sqsupe","□":"squ","𝒮":"Sscr","𝓈":"sscr","⋆":"Star","☆":"star","⊂":"sub","⋐":"Sub","⪽":"subdot","⫅":"subE","⊆":"sube","⫃":"subedot","⫁":"submult","⫋":"subnE","⊊":"subne","⪿":"subplus","⥹":"subrarr","⫇":"subsim","⫕":"subsub","⫓":"subsup","∑":"sum","♪":"sung","¹":"sup1","²":"sup2","³":"sup3","⊃":"sup","⋑":"Sup","⪾":"supdot","⫘":"supdsub","⫆":"supE","⊇":"supe","⫄":"supedot","⟉":"suphsol","⫗":"suphsub","⥻":"suplarr","⫂":"supmult","⫌":"supnE","⊋":"supne","⫀":"supplus","⫈":"supsim","⫔":"supsub","⫖":"supsup","⇙":"swArr","⤪":"swnwar","ß":"szlig"," ":"Tab","⌖":"target","Τ":"Tau","τ":"tau","Ť":"Tcaron","ť":"tcaron","Ţ":"Tcedil","ţ":"tcedil","Т":"Tcy","т":"tcy","⃛":"tdot","⌕":"telrec","𝔗":"Tfr","𝔱":"tfr","∴":"there4","Θ":"Theta","θ":"theta","ϑ":"thetav","  ":"ThickSpace"," ":"thinsp","Þ":"THORN","þ":"thorn","⨱":"timesbar","×":"times","⨰":"timesd","⌶":"topbot","⫱":"topcir","𝕋":"Topf","𝕥":"topf","⫚":"topfork","‴":"tprime","™":"trade","▵":"utri","≜":"trie","◬":"tridot","⨺":"triminus","⨹":"triplus","⧍":"trisb","⨻":"tritime","⏢":"trpezium","𝒯":"Tscr","𝓉":"tscr","Ц":"TScy","ц":"tscy","Ћ":"TSHcy","ћ":"tshcy","Ŧ":"Tstrok","ŧ":"tstrok","Ú":"Uacute","ú":"uacute","↟":"Uarr","⥉":"Uarrocir","Ў":"Ubrcy","ў":"ubrcy","Ŭ":"Ubreve","ŭ":"ubreve","Û":"Ucirc","û":"ucirc","У":"Ucy","у":"ucy","⇅":"udarr","Ű":"Udblac","ű":"udblac","⥮":"udhar","⥾":"ufisht","𝔘":"Ufr","𝔲":"ufr","Ù":"Ugrave","ù":"ugrave","⥣":"uHar","▀":"uhblk","⌜":"ulcorn","⌏":"ulcrop","◸":"ultri","Ū":"Umacr","ū":"umacr","⏟":"UnderBrace","⏝":"UnderParenthesis","⊎":"uplus","Ų":"Uogon","ų":"uogon","𝕌":"Uopf","𝕦":"uopf","⤒":"UpArrowBar","↕":"varr","υ":"upsi","ϒ":"Upsi","Υ":"Upsilon","⇈":"uuarr","⌝":"urcorn","⌎":"urcrop","Ů":"Uring","ů":"uring","◹":"urtri","𝒰":"Uscr","𝓊":"uscr","⋰":"utdot","Ũ":"Utilde","ũ":"utilde","Ü":"Uuml","ü":"uuml","⦧":"uwangle","⦜":"vangrt","⊊︀":"vsubne","⫋︀":"vsubnE","⊋︀":"vsupne","⫌︀":"vsupnE","⫨":"vBar","⫫":"Vbar","⫩":"vBarv","В":"Vcy","в":"vcy","⊩":"Vdash","⊫":"VDash","⫦":"Vdashl","⊻":"veebar","≚":"veeeq","⋮":"vellip","|":"vert","‖":"Vert","❘":"VerticalSeparator","≀":"wr","𝔙":"Vfr","𝔳":"vfr","𝕍":"Vopf","𝕧":"vopf","𝒱":"Vscr","𝓋":"vscr","⊪":"Vvdash","⦚":"vzigzag","Ŵ":"Wcirc","ŵ":"wcirc","⩟":"wedbar","≙":"wedgeq","℘":"wp","𝔚":"Wfr","𝔴":"wfr","𝕎":"Wopf","𝕨":"wopf","𝒲":"Wscr","𝓌":"wscr","𝔛":"Xfr","𝔵":"xfr","Ξ":"Xi","ξ":"xi","⋻":"xnis","𝕏":"Xopf","𝕩":"xopf","𝒳":"Xscr","𝓍":"xscr","Ý":"Yacute","ý":"yacute","Я":"YAcy","я":"yacy","Ŷ":"Ycirc","ŷ":"ycirc","Ы":"Ycy","ы":"ycy","¥":"yen","𝔜":"Yfr","𝔶":"yfr","Ї":"YIcy","ї":"yicy","𝕐":"Yopf","𝕪":"yopf","𝒴":"Yscr","𝓎":"yscr","Ю":"YUcy","ю":"yucy","ÿ":"yuml","Ÿ":"Yuml","Ź":"Zacute","ź":"zacute","Ž":"Zcaron","ž":"zcaron","З":"Zcy","з":"zcy","Ż":"Zdot","ż":"zdot","ℨ":"Zfr","Ζ":"Zeta","ζ":"zeta","𝔷":"zfr","Ж":"ZHcy","ж":"zhcy","⇝":"zigrarr","𝕫":"zopf","𝒵":"Zscr","𝓏":"zscr","‍":"zwj","‌":"zwnj"},u=/["&'<>`]/g,h={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,p=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|iacute|Uacute|plusmn|otilde|Otilde|Agrave|agrave|yacute|Yacute|oslash|Oslash|Atilde|atilde|brvbar|Ccedil|ccedil|ograve|curren|divide|Eacute|eacute|Ograve|oacute|Egrave|egrave|ugrave|frac12|frac14|frac34|Ugrave|Oacute|Iacute|ntilde|Ntilde|uacute|middot|Igrave|igrave|iquest|aacute|laquo|THORN|micro|iexcl|icirc|Icirc|Acirc|ucirc|ecirc|Ocirc|ocirc|Ecirc|Ucirc|aring|Aring|aelig|AElig|acute|pound|raquo|acirc|times|thorn|szlig|cedil|COPY|Auml|ordf|ordm|uuml|macr|Uuml|auml|Ouml|ouml|para|nbsp|Euml|quot|QUOT|euml|yuml|cent|sect|copy|sup1|sup2|sup3|Iuml|iuml|shy|eth|reg|not|yen|amp|AMP|REG|uml|ETH|deg|gt|GT|LT|lt)([=a-zA-Z0-9])?/g,g={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",
+vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},m={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"},v={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},b=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],_=String.fromCharCode,y={},w=y.hasOwnProperty,x=function(t,e){return w.call(t,e)},k=function(t,e){for(var i=-1,n=t.length;++i<n;)if(t[i]==e)return!0;return!1},C=function(t,e){if(!t)return e;var i,n={};for(i in e)n[i]=x(t,i)?t[i]:e[i];return n},S=function(t,e){var i="";return t>=55296&&57343>=t||t>1114111?(e&&T("character reference outside the permissible Unicode range"),"�"):x(v,t)?(e&&T("disallowed character reference"),v[t]):(e&&k(b,t)&&T("disallowed character reference"),t>65535&&(t-=65536,i+=_(t>>>10&1023|55296),t=56320|1023&t),i+=_(t))},D=function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"},T=function(t){throw Error("Parse error: "+t)},A=function(t,e){e=C(e,A.options);var i=e.strict;i&&p.test(t)&&T("forbidden code point");var n=e.encodeEverything,s=e.useNamedReferences,h=e.allowUnsafeSymbols;return n?(t=t.replace(r,function(t){return s&&x(c,t)?"&"+c[t]+";":D(t)}),s&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),s&&(t=t.replace(l,function(t){return"&"+c[t]+";"}))):s?(h||(t=t.replace(u,function(t){return"&"+c[t]+";"})),t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),t=t.replace(l,function(t){return"&"+c[t]+";"})):h||(t=t.replace(u,D)),t.replace(a,function(t){var e=t.charCodeAt(0),i=t.charCodeAt(1),n=1024*(e-55296)+i-56320+65536;return"&#x"+n.toString(16).toUpperCase()+";"}).replace(o,D)};A.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1};var E=function(t,e){e=C(e,E.options);var i=e.strict;return i&&d.test(t)&&T("malformed character reference"),t.replace(f,function(t,n,s,a,r,o,l,c){var u,h,d,p,f;return n?(u=n,h=s,i&&!h&&T("character reference was not terminated by a semicolon"),S(u,i)):a?(d=a,h=r,i&&!h&&T("character reference was not terminated by a semicolon"),u=parseInt(d,16),S(u,i)):o?(p=o,x(g,p)?g[p]:(i&&T("named character reference was not terminated by a semicolon"),t)):(p=l,f=c,f&&e.isAttributeValue?(i&&"="==f&&T("`&` did not start a character reference"),t):(i&&T("named character reference was not terminated by a semicolon"),m[p]+(f||"")))})};E.options={isAttributeValue:!1,strict:!1};var M=function(t){return t.replace(u,function(t){return h[t]})},P={version:"0.5.0",encode:A,decode:E,escape:M,unescape:E};if("function"==typeof i&&"object"==typeof i.amd&&i.amd)i("he",[],function(){return P});else if(e&&!e.nodeType)if(n)n.exports=P;else for(var I in P)x(P,I)&&(e[I]=P[I]);else t.he=P}(this),i("helpers/sanitizer",["DOMPurify","he"],function(t,e){"use strict";var i={};return i.whitelist=[{pre:"&#x3C;&#x65;&#x6D;&#x20;&#x63;&#x6C;&#x61;&#x73;&#x73;&#x3D;&#x22;&#x73;&#x65;&#x61;&#x72;&#x63;&#x68;&#x2D;&#x68;&#x69;&#x67;&#x68;&#x6C;&#x69;&#x67;&#x68;&#x74;&#x22;&#x3E;",post:'<em class="search-highlight">'},{pre:"&#x3C;&#x2F;&#x65;&#x6D;&#x3E;",post:"</em>"}],i.addLineBreaks=function(t){return t.replace(/(\r)?\n/g,"<br/>").replace(/(&#xD;)?&#xA;/g,"<br/>")},i.purifyHtml=function(e){return t.sanitize(e,{SAFE_FOR_JQUERY:!0,SAFE_FOR_TEMPLATES:!0})},i.purifyText=function(t){var i=e.encode(t,{encodeEverything:!0});return this.whitelist.forEach(function(t){for(;i.indexOf(t.pre)>-1;)i=i.replace(t.pre,t.post)}),i},i.sanitize=function(t){var e;return t.htmlBody?e=this.purifyHtml(t.htmlBody):(e=this.purifyText(t.textPlainBody),e=this.addLineBreaks(e)),e},t.addHook("afterSanitizeAttributes",function(t){"target"in t&&t.setAttribute("target","_blank"),t.hasAttribute("target")||!t.hasAttribute("xlink:href")&&!t.hasAttribute("href")||t.setAttribute("xlink:show","new")}),i}),i("helpers/view_helper",["helpers/contenttype","views/i18n","quoted-printable/quoted-printable","utf8/utf8","helpers/sanitizer"],function(t,e,i,n,s){"use strict";function a(t){return _.map(t,function(t){return"status-"+t}).join(" ")}function r(t){return s.sanitize(t)}function o(t){if("number"==typeof t.selectionStart)t.selectionStart=t.selectionEnd=t.value.length;else if("undefined"!=typeof t.createTextRange){t.focus();var e=t.createTextRange();e.collapse(!1),e.select()}}function l(t,e){for(var i=t.toString();i.length<e;)i="0"+i;return i}function c(){var t=new Date;return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t}function u(){var t=this;o(t),window.setTimeout(function(){o(t)},1)}function h(t){return e("On __date__, <__from__> wrote:\n",{date:new Date(t.header.date).toString(),from:t.header.from})}function d(t){return"\n\n"+h(t)+t.textPlainBody.replace(/^/gm,"> ")}function p(t){var e=new Date(t),i=c();return e.getTime()>i.getTime()?l(e.getHours(),2)+":"+l(e.getMinutes(),2):""+e.getFullYear()+"-"+l(e.getMonth()+1,2)+"-"+l(e.getDate(),2)}function f(t){var e=Math.floor(Math.log(t)/Math.log(1024));return(t/Math.pow(1024,e)).toFixed(2)+" "+" KMGTP".charAt(e)+"b"}function g(t){return t=t||"",t.replace(/(.{4})/g,"$1 ").trim()}return Handlebars.registerHelper("formatDate",p),Handlebars.registerHelper("formatSize",f),Handlebars.registerHelper("formatStatusClasses",a),Handlebars.registerHelper("formatFingerPrint",g),{formatStatusClasses:a,formatSize:f,formatMailBody:r,formatFingerPrint:g,moveCaretToEndOfText:u,quoteMail:d,i18n:e}}),i("helpers/iterator",[],function(){"use strict";function t(t,e){this.index=e||0,this.elems=t,this.hasPrevious=function(){return 0!==this.index},this.hasNext=function(){return this.index<this.elems.length-1},this.previous=function(){return this.elems[--this.index]},this.next=function(){return this.elems[++this.index]},this.current=function(){return this.elems[this.index]},this.hasElements=function(){return this.elems.length>0},this.removeCurrent=function(){var t=this.current(),e=this.index;return this.hasNext()||this.index--,this.elems.remove(e),t}}return t}),i("helpers/browser",[],function(){"use strict";function t(t){window.location.replace(t)}function e(t){var e="; "+document.cookie,i=e.split("; "+t+"=");return 2===i.length?i.pop().split(";").shift():void 0}return{redirect:t,getCookie:e}}),i("helpers/monitored_ajax",["page/events","views/i18n","helpers/browser"],function(t,e,i){"use strict";function n(n,a,r){r=r||{},r.timeout=6e4;var o=r.beforeSend;r.beforeSend=function(){o&&o()},r.headers={"X-XSRF-TOKEN":i.getCookie("XSRF-TOKEN")};var l=r.complete;return r.complete=function(){l&&l()},$.ajax(a,r).fail(function(a,o,l){if(!r.skipErrorMessage){var c=a.responseJSON&&a.responseJSON.message||s[o]||"unexpected problem while talking to server";n.trigger(document,t.ui.userAlerts.displayMessage,{message:e(c),"class":"error"})}if(302===a.status){var u=a.getResponseHeader("Location");i.redirect(u)}else 401===a.status&&i.redirect("/")}.bind(this))}var s={timeout:"a timeout occurred",error:"problems talking to server",parseerror:"got invalid response from server"};return n}),i("features",["helpers/monitored_ajax"],function(t){"use strict";function e(){return s=s||n().disabled_features}function i(){return a=a||n().dispatcher_features}function n(){var e;return t(this,"/features",{async:!1,success:function(t){e=t},error:function(){console.error("Could not load feature toggles")}}),e}var s,a;return{isEnabled:function(t){return!_.contains(e(),t)},isAutoRefreshEnabled:function(){return this.isEnabled("autoRefresh")},isLogoutEnabled:function(){return _.has(i(),"logout")},getLogoutUrl:function(){return i().logout}}}),i("mail_view/ui/recipients/recipients_input",["flight/lib/component","page/events","features"],function(t,e,i){"use strict";function n(){function t(){var t=new Bloodhound({datumTokenizer:function(t){return[t.value]},queryTokenizer:function(t){return[t.trim()]},remote:{url:"/contacts?q=%QUERY",filter:p}});return t.initialize(),t}function i(t){t.typeahead("val","")}function n(t){return 0===t.selectionStart}function s(t){return o.hasOwnProperty(t)}function a(t){return l.hasOwnProperty(t)}var r,o={8:"backspace",37:"left"},l={9:"tab",186:"semicolon",188:"comma",13:"enter",27:"esc"},c={8:e.ui.recipients.deleteLast,37:e.ui.recipients.selectLast},u=/[^<\w,;]?([^\s<;,]+@[\w-]+\.[^\s>;,]+)/,h=/([^,;\s][^,;@]+<[^\s;,]+@[\w-]+\.[^\s;,]+>)/,d=new RegExp([u.source,"|",h.source].join(""),"g"),p=function(t){return _.map(t,function(t){return{value:t}})};this.processSpecialKey=function(t){var e=t.which;return s(e)&&n(this.$node[0])?void this.trigger(c[e]):void(!t.shiftKey&&a(e)&&(this.tokenizeRecipient(t),9!==e&&t.preventDefault()))},this.tokenizeRecipient=function(t){_.isEmpty(this.$node.val().trim())||(this.recipientSelected(null,{value:this.$node.val()}),t.preventDefault())},this.recipientSelected=function(t,n){var s=n&&n.value||this.$node.val(),a=this.extractValidAddresses(s),r=this.extractInvalidAddresses(s);this.triggerEventForEach(a,e.ui.recipients.entered),this.triggerEventForEach(r,e.ui.recipients.enteredInvalid),i(this.$node)},this.triggerEventForEach=function(t,e){var i=this;_.each(t,function(t){_.isEmpty(t.trim())||i.trigger(i.$node,e,{name:i.attr.name,address:t.trim()})})},this.extractValidAddresses=function(t){return t.match(d)},this.extractInvalidAddresses=function(t){return t.replace(d,"").split(/[,;]/)},this.init=function(){this.$node.typeahead({hint:!0,highlight:!0,minLength:1},{source:t().ttAdapter(),templates:{suggestion:function(t){return _.escape(t.value)}}})},this.attachAndReturn=function(t,e){var i=new this.constructor;return i.initialize(t,{name:e}),i},this.warnSendButtonOfInputState=function(){var t=_.isEmpty(this.$node.val())?e.ui.recipients.inputFieldIsEmpty:e.ui.recipients.inputFieldHasCharacters;this.trigger(document,t,{name:this.attr.name})},this.after("initialize",function(){r=this,this.init(),this.on("typeahead:selected typeahead:autocompleted",this.recipientSelected),this.on(this.$node,"blur",this.tokenizeRecipient),this.on(this.$node,"keydown",this.processSpecialKey),this.on(this.$node,"keyup",this.warnSendButtonOfInputState),this.on(document,e.dispatchers.rightPane.clear,this.teardown)})}return t(n)}),i("mail_view/ui/recipients/recipient",["flight/lib/component","views/templates","page/events"],function(t,e,i){"use strict";function n(){this.renderAndPrepend=function(t,i){var n=$(e.compose.fixedRecipient(i));n.insertBefore(t.children().last());var s=new this.constructor;return s.initialize(n,i),s.attr.recipient=i,s},this.recipientDelActions=function(){this.on(this.$node.find(".recipient-del"),"click",function(t){this.doSelect(),this.trigger(i.ui.recipients.deleteRecipient,this),t.preventDefault()}),this.on(this.$node.find(".recipient-del"),"mouseover",function(){this.$node.find(".recipient-value").addClass("deleting"),this.$node.find(".recipient-del").addClass("deleteTooltip")}),this.on(this.$node.find(".recipient-del"),"mouseout",function(){this.$node.find(".recipient-value").removeClass("deleting"),this.$node.find(".recipient-del").removeClass("deleteTooltip")})},this.destroy=function(){this.$node.remove(),this.teardown()},this.doSelect=function(){this.$node.find(".recipient-value").addClass("selected")},this.doUnselect=function(){this.$node.find(".recipient-value").removeClass("selected")},this.isSelected=function(){return this.$node.find(".recipient-value").hasClass("selected")},this.sinalizeInvalid=function(){this.$node.find(".recipient-value>span").addClass("invalid-format")},this.discoverEncryption=function(){this.$node.addClass("discover-encryption");var t=$.getJSON("/keys?search="+this.attr.address).promise();t.done(function(){this.$node.find(".recipient-value").addClass("encrypted"),this.$node.removeClass("discover-encryption")}.bind(this)),t.fail(function(){this.$node.find(".recipient-value").addClass("not-encrypted"),this.$node.removeClass("discover-encryption")}.bind(this))},this.getMailAddress=function(){return this.$node.find("input[type=hidden]").val()},this.triggerEditRecipient=function(t,e){this.trigger(this.$node.closest(".recipients-area"),i.ui.recipients.clickToEdit,this)},this.after("initialize",function(){this.recipientDelActions(),this.on("click",this.triggerEditRecipient),this.attr.invalidAddress?this.sinalizeInvalid():this.discoverEncryption()})}return t(n)}),i("mail_view/ui/recipients/recipients_iterator",["helpers/iterator"],function(t){"use strict";function e(e){this.iterator=new t(e.elements,e.elements.length-1),this.input=e.exitInput,this.current=function(){return this.iterator.current()},this.moveLeft=function(){this.iterator.hasPrevious()&&(this.iterator.current().doUnselect(),this.iterator.previous().doSelect())},this.moveRight=function(){this.iterator.current().doUnselect(),this.iterator.hasNext()?this.iterator.next().doSelect():this.input.focus()},this.deleteCurrent=function(){this.iterator.removeCurrent().destroy(),this.iterator.hasElements()?this.iterator.current().doSelect():this.input.focus()}}return e}),i("mail_view/ui/recipients/recipients",["flight/lib/component","views/templates","page/events","helpers/iterator","mail_view/ui/recipients/recipients_input","mail_view/ui/recipients/recipient","mail_view/ui/recipients/recipients_iterator"],function(t,e,i,n,s,a,r){"use strict";function o(){function t(t){return _.flatten(_.map(t,function(t){return t.attr.address}))}function e(){this.attr.iterator.moveLeft()}function n(){this.attr.iterator.moveRight()}function o(){this.attr.iterator.deleteCurrent(),this.addressesUpdated()}function l(t,e){var i=this.attr.iterator.current().getMailAddress();this.attr.iterator.deleteCurrent(),this.attr.input.$node.val(i).focus(),this.unselectAllRecipients(),this.addressesUpdated()}this.defaultAttrs({navigationHandler:".recipients-navigation-handler",recipientsList:".recipients-list"}),this.clickToEditRecipient=function(t,e){this.attr.iterator=null;var i=e.getMailAddress(),n=this.getRecipientPosition(e);this.attr.recipients.splice(n,1),e.destroy(),this.addressesUpdated(),this.unselectAllRecipients(),this.attr.input.$node.val(i).focus()},this.getRecipientPosition=function(t){return t.$node.closest(".recipients-area").find(".fixed-recipient").index(t.$node)},this.unselectAllRecipients=function(){this.$node.find(".recipient-value.selected").removeClass("selected")};var c={8:o,46:o,32:l,13:l,37:e,39:n};this.addRecipient=function(t){var e=a.prototype.renderAndPrepend(this.$node.find(this.attr.recipientsList),t);this.attr.recipients.push(e)},this.recipientEntered=function(t,e){this.addRecipient(e),this.addressesUpdated()},this.invalidRecipientEntered=function(t,e){e.invalidAddress=!0,this.addRecipient(e)},this.deleteRecipient=function(t,e){this.attr.iterator=null;var i=this.getRecipientPosition(e);this.attr.recipients.splice(i,1),e.destroy(),this.addressesUpdated()},this.deleteLastRecipient=function(){this.attr.recipients.pop().destroy(),this.addressesUpdated()},this.enterNavigationMode=function(){this.attr.iterator=new r({elements:this.attr.recipients,exitInput:this.attr.input.$node}),this.attr.iterator.current().doSelect(),this.attr.input.$node.blur(),this.select("navigationHandler").focus()},this.leaveNavigationMode=function(){this.attr.iterator&&this.attr.iterator.current().unselect(),this.attr.iterator=null},this.selectLastRecipient=function(){0!==this.attr.recipients.length&&this.enterNavigationMode()},this.attachInput=function(){this.attr.input=s.prototype.attachAndReturn(this.$node.find("input[type=text]"),this.attr.name)},this.processSpecialKey=function(t){c.hasOwnProperty(t.which)&&c[t.which].apply(this)},this.initializeAddresses=function(){_.each(_.flatten(this.attr.addresses),function(t){this.addRecipient({address:t,name:this.attr.name})}.bind(this))},this.addressesUpdated=function(){this.trigger(document,i.ui.recipients.updated,{recipientsName:this.attr.name,newRecipients:t(this.attr.recipients)})},this.doCompleteRecipients=function(){var e=this.attr.input.$node.val();if(!_.isEmpty(e)){var n=a.prototype.renderAndPrepend(this.$node,{name:this.attr.name,address:e});this.attr.recipients.push(n),this.attr.input.$node.val("")}this.trigger(document,i.ui.recipients.updated,{recipientsName:this.attr.name,newRecipients:t(this.attr.recipients),skipSaveDraft:!0})},this.after("initialize",function(){this.attr.recipients=[],this.attachInput(),this.initializeAddresses(),this.on(i.ui.recipients.deleteRecipient,this.deleteRecipient),this.on(i.ui.recipients.deleteLast,this.deleteLastRecipient),this.on(i.ui.recipients.selectLast,this.selectLastRecipient),this.on(i.ui.recipients.entered,this.recipientEntered),this.on(i.ui.recipients.enteredInvalid,this.invalidRecipientEntered),this.on(i.ui.recipients.clickToEdit,this.clickToEditRecipient),this.on(document,i.ui.recipients.doCompleteInput,this.doCompleteRecipients),this.on(this.attr.input.$node,"focus",this.leaveNavigationMode),this.on(this.select("navigationHandler"),"keydown",this.processSpecialKey),this.on(document,i.dispatchers.rightPane.clear,this.teardown)})}return t(o)}),i("mail_view/ui/draft_save_status",["flight/lib/component","page/events"],function(t,e){"use strict";function i(){this.setMessage=function(t){var e=this.$node;return function(){e.text(t)}},this.after("initialize",function(){this.on(document,e.mail.saveDraft,this.setMessage("Saving to Drafts...")),this.on(document,e.mail.draftSaved,this.setMessage("Draft Saved.")),this.on(document,e.ui.mail.changedSinceLastSave,this.setMessage(""))})}return t(i)}),i("mail_view/ui/send_button",["flight/lib/component","flight/lib/utils","page/events","helpers/view_helper"],function(t,e,i,n){"use strict";function s(){var t=3;this.enableButton=function(){this.$node.prop("disabled",!1)},this.disableButton=function(){this.$node.prop("disabled",!0)},this.atLeastOneInputFieldHasRecipients=function(){return _.any(_.values(this.attr.recipients),function(t){return!_.isEmpty(t)})},this.atLeastOneInputFieldHasCharacters=function(){return _.any(_.values(this.attr.inputFieldHasCharacters),function(t){return t===!0})},this.updateButton=function(){this.attr.sendingInProgress===!1&&(this.attr.uploading===!1&&(this.atLeastOneInputFieldHasCharacters()||this.atLeastOneInputFieldHasRecipients())?this.enableButton():this.disableButton())},this.inputFieldIsEmpty=function(t,e){this.attr.inputFieldHasCharacters[e.name]=!1,this.updateButton()},this.inputFieldHasCharacters=function(t,e){this.attr.inputFieldHasCharacters[e.name]=!0,this.updateButton()},this.uploadInProgress=function(t,e){this.attr.uploading=!0,this.updateButton()},this.uploadFinished=function(t,e){this.attr.uploading=!1,this.updateButton()},this.updateRecipientsForField=function(t,e){this.attr.recipients[e.recipientsName]=e.newRecipients,this.attr.inputFieldHasCharacters[e.recipientsName]=!1,this.updateButton()},this.updateRecipientsAndSendMail=function(){this.on(document,i.ui.mail.recipientsUpdated,e.countThen(t,function(){this.trigger(document,i.ui.mail.send),this.off(document,i.ui.mail.recipientsUpdated)}.bind(this))),this.disableButton(),this.$node.text(n.i18n("sending-mail")),this.attr.sendingInProgress=!0,this.trigger(document,i.ui.recipients.doCompleteInput)},this.resetButton=function(){this.attr.sendingInProgress=!1,this.attr.uploading=!1,this.$node.html(n.i18n("send-button")),this.enableButton()},this.after("initialize",function(){this.attr.recipients={},this.attr.inputFieldHasCharacters={},this.resetButton(),this.on(document,i.ui.recipients.inputFieldHasCharacters,this.inputFieldHasCharacters),this.on(document,i.ui.recipients.inputFieldIsEmpty,this.inputFieldIsEmpty),this.on(document,i.ui.recipients.updated,this.updateRecipientsForField),this.on(this.$node,"click",this.updateRecipientsAndSendMail),this.on(document,i.mail.uploadingAttachment,this.uploadInProgress),this.on(document,i.mail.uploadedAttachment,this.uploadFinished),this.on(document,i.mail.failedUploadAttachment,this.uploadFinished),this.on(document,i.dispatchers.rightPane.clear,this.teardown),this.on(document,i.ui.sendbutton.enable,this.resetButton),this.on(document,i.mail.send_failed,this.resetButton),this.disableButton()})}return t(s)}),i("mail_view/ui/attachment_icon",["flight/lib/component","page/events","features"],function(t,e,i){"use strict";return t(function(){this.render=function(){this.$node.html('<i class="fa fa-paperclip"></i>')},this.triggerUploadAttachment=function(){this.trigger(document,e.mail.startUploadAttachment)},this.uploadInProgress=function(t,e){this.attr.busy=!0,this.$node.addClass("busy")},this.uploadFinished=function(t,e){this.attr.busy=!1,this.$node.removeClass("busy")},this.after("initialize",function(){i.isEnabled("attachment")&&(this.render(),this.on(document,e.mail.uploadingAttachment,this.uploadInProgress),this.on(document,e.mail.uploadedAttachment,this.uploadFinished),this.on(document,e.mail.failedUploadAttachment,this.uploadFinished)),this.on(this.$node,"click",function(){this.attr.busy||this.triggerUploadAttachment()})})})}),i("mail_view/ui/attachment_list",["views/templates","page/events","helpers/view_helper","helpers/monitored_ajax"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({inputFileUpload:"#fileupload",attachmentListItem:"#attachment-list-item",attachmentUploadItem:"#attachment-upload-item",attachmentUploadItemProgress:"#attachment-upload-item-progress",attachmentUploadItemAbort:"#attachment-upload-item-abort",attachmentBaseUrl:"/attachment",attachments:[],closeIcon:".close-icon",uploadError:"#upload-error",dismissButton:"#dismiss-button",uploadFileButton:"#upload-file-button"});var i=1048576,n=i;this.showAttachment=function(t,i){this.trigger(document,e.mail.appendAttachment,i),this.renderAttachmentListView(i)},this.addAttachment=function(t,e){this.attr.attachments.push(e)},this.renderAttachmentListView=function(t){var e=(this.select("attachmentListItem").html(),this.buildAttachmentListItem(t));this.select("attachmentListItem").append(e)},this.buildAttachmentListItem=function(i){var n={ident:i.ident,encoding:i.encoding,name:i.name,size:i.size,removable:!0},s=$(t.compose.attachmentItem(n)),a=this;return s.find("i.remove-icon").bind("click",function(t){var i=$(this),n=i.closest("li").attr("data-ident");a.trigger(document,e.mail.removeAttachment,{ident:n,element:i}),t.preventDefault()}),s},this.performPreUploadCheck=function(t,e){return!(e.originalFiles[0].size>n)},this.removeUploadError=function(){var t=this.select("uploadError");t&&t.remove()},this.showUploadError=function(){function i(t){t.preventDefault(),s.select("uploadError").remove()}function n(t){t.preventDefault(),s.trigger(document,e.mail.startUploadAttachment)}var s=this,a=$(t.compose.uploadAttachmentFailed());a.insertAfter(s.select("attachmentListItem")),s.on(s.select("closeIcon"),"click",i),s.on(s.select("dismissButton"),"click",i),s.on(s.select("uploadFileButton"),"click",n)},this.showUploadProgressBar=function(e,i){var n=$(t.compose.attachmentUploadItem({name:i.originalFiles[0].name,size:i.originalFiles[0].size}));this.select("attachmentUploadItem").append(n),this.select("attachmentUploadItem").show()},this.hideUploadProgressBar=function(){this.select("attachmentUploadItem").hide(),this.select("attachmentUploadItem").empty()},this.attachUploadAbort=function(t,e){this.on(this.select("attachmentUploadItemAbort"),"click",function(t){e.abort(),t.preventDefault()})},this.detachUploadAbort=function(){this.off(this.select("attachmentUploadItemAbort"),"click")},this.addJqueryFileUploadConfig=function(){var t=this;t.removeUploadError(),this.select("inputFileUpload").fileupload({add:function(e,i){t.performPreUploadCheck(e,i)?(t.showUploadProgressBar(e,i),t.attachUploadAbort(e,i),i.submit()):t.showUploadError()},url:t.attr.attachmentBaseUrl,dataType:"json",done:function(i,n){t.detachUploadAbort(),t.hideUploadProgressBar(),t.trigger(document,e.mail.uploadedAttachment,n.result)},fail:function(i,n){t.detachUploadAbort(),t.hideUploadProgressBar(),t.trigger(document,e.mail.failedUploadAttachment)},progressall:function(e,i){var n=parseInt(i.loaded/i.total*100,10);t.select("attachmentUploadItemProgress").css("width",n+"%")}}).bind("fileuploadstart",function(i){t.trigger(document,e.mail.uploadingAttachment)}).bind("fileuploadadd",function(t){$(".attachmentsAreaWrap").show()})},this.startUpload=function(){this.addJqueryFileUploadConfig(),this.select("inputFileUpload").click()},this.removeAttachmentFromList=function(t){for(var e=0;e<this.attr.attachments.length;e++)if(this.attr.attachments[e].ident===t){this.attr.attachments.remove(e);break}},this.destroyAttachmentElement=function(t){t.closest("li").remove()},this.removeAttachments=function(t,e){this.removeAttachmentFromList(e.ident),this.destroyAttachmentElement(e.element)},this.after("initialize",function(){this.addJqueryFileUploadConfig(),this.on(document,e.mail.uploadedAttachment,this.showAttachment),this.on(document,e.mail.startUploadAttachment,this.startUpload),this.on(document,e.mail.appendAttachment,this.addAttachment),this.on(document,e.mail.removeAttachment,this.removeAttachments)})}return s}),i("mixins/with_mail_edit_base",["flight/lib/compose","helpers/view_helper","mail_view/ui/recipients/recipients","mail_view/ui/draft_save_status","page/events","views/i18n","mail_view/ui/send_button","mail_view/ui/attachment_icon","mail_view/ui/attachment_list","flight/lib/utils"],function(t,e,i,n,s,a,r,o,l,c){"use strict";function u(){function e(){var t=_.chain(this.attr.recipientValues).values().flatten().remove(void 0).value();return!_.isEmpty(t)}function c(t){var e=t.header.to.concat(t.header.cc).concat(t.header.bcc);return _.isEmpty(e)?!1:_.all(e,u)}function u(t){var e=/[^\s@]+@[^\s@]+\.[^\s@]+$/;return e.test(t)}this.defaultAttrs({bodyBox:"#text-box",sendButton:"#send-button",attachmentButton:"#attachment-button",attachmentList:"#attachment-list",cancelButton:"#cancel-button",trashButton:"#trash-button",toArea:"#recipients-to-area",toBox:"#recipients-to-box",ccArea:"#recipients-cc-area",bccArea:"#recipients-bcc-area",ccsTrigger:"#ccs-trigger",bccsTrigger:"#bccs-trigger",toTrigger:"#to-trigger",subjectBox:"#subject",tipMsg:".tip-msg",draftSaveStatus:"#draft-save-status",recipientsFields:"#recipients-fields",currentTag:"",recipientValues:{to:[],cc:[],bcc:[]},saveDraftInterval:3e3}),this.attachRecipients=function(t){i.attachTo(this.select("toArea"),{name:"to",addresses:t.recipients.to}),i.attachTo(this.select("ccArea"),{name:"cc",addresses:t.recipients.cc||[]}),i.attachTo(this.select("bccArea"),{name:"bcc",addresses:t.recipients.bcc||[]})},this.warnSendButtonOfRecipients=function(){e.call(this)&&_.forOwn(this.attr.recipientValues,function(t,e){if(!_.isUndefined(t)&&!_.isEmpty(t)){var i={newRecipients:t,recipientsName:e};this.trigger(document,s.ui.recipients.updated,i)}}.bind(this))},this.render=function(t,e){this.$node.html(t(e)),e&&!_.isEmpty(e)||(e.recipients={to:[],cc:[],bcc:[]}),this.attr.recipientValues=e.recipients,this.attr.attachments=e.attachments||[],this.attachRecipients(e),this.on(this.select("trashButton"),"click",this.discardMail),r.attachTo(this.select("sendButton")),o.attachTo(this.select("attachmentButton")),this.warnSendButtonOfRecipients()},this.enableAutoSave=function(){this.select("bodyBox").on("input",this.monitorInput.bind(this)),this.select("subjectBox").on("input",this.monitorInput.bind(this)),this.on(document,s.mail.appendAttachment,this.monitorInput.bind(this)),this.on(document,s.mail.removeAttachment,this.monitorInput.bind(this)),n.attachTo(this.select("draftSaveStatus"))},this.monitorInput=function(){this.trigger(s.ui.mail.changedSinceLastSave),this.cancelPostponedSaveDraft();var t=this.buildMail();this.postponeSaveDraft(t)},this.discardMail=function(){if(this.cancelPostponedSaveDraft(),this.attr.ident){var t=this.buildMail();this.trigger(document,s.ui.mail["delete"],{mail:t})}else this.trigger(document,s.ui.mail.discard)},this.trim_recipient=function(t){return t.map(function(t){return t.trim()})},this.sendMail=function(){this.cancelPostponedSaveDraft();var t=this.buildMail("sent");c(t)?(t.header.to=this.trim_recipient(t.header.to),t.header.cc=this.trim_recipient(t.header.cc),t.header.bcc=this.trim_recipient(t.header.bcc),this.trigger(s.mail.send,t)):(this.trigger(s.ui.userAlerts.displayMessage,{message:a("One or more of the recipients are not valid emails")}),this.trigger(s.mail.send_failed))},this.buildAndSaveDraft=function(){var t=this.buildMail();this.saveDraft(t)},this.recipientsUpdated=function(t,e){if(this.attr.recipientValues[e.recipientsName]=e.newRecipients,this.trigger(document,s.ui.mail.recipientsUpdated),!e.skipSaveDraft){var i=this.buildMail();this.postponeSaveDraft(i)}},this.saveDraft=function(t){this.cancelPostponedSaveDraft(),this.trigger(document,s.mail.saveDraft,t)},this.cancelPostponedSaveDraft=function(){clearTimeout(this.attr.timeout)},this.postponeSaveDraft=function(t){this.cancelPostponedSaveDraft(),this.attr.timeout=window.setTimeout(_.bind(function(){this.saveDraft(t)},this),this.attr.saveDraftInterval)},this.draftSaved=function(t,e){this.attr.ident=e.ident},this.validateAnyRecipient=function(){return!_.isEmpty(_.flatten(_.values(this.attr.recipientValues)))},this.saveTag=function(t,e){this.attr.currentTag=e.tag},this.mailSent=function(){
+this.trigger(document,s.ui.userAlerts.displayMessage,{message:"Your message was sent!"})},this.enableFloatlabel=function(t){var e="showfloatlabel";$(t).bind("keyup",function(){var t=$(this).prev("label");""!==this.value?(t.addClass(e),$(this).addClass(e)):(t.removeClass(e),$(this).removeClass(e))})},this.toggleRecipientsArrows=function(){$("#cc-bcc-collapse").toggleClass("fa-angle-down"),$("#cc-bcc-collapse").toggleClass("fa-angle-up")},this.before("initialize",function(){this.discardDraft||(this.discardDraft=function(){})}),this.bindCollapse=function(){this.on($("#cc-bcc-collapse"),"click",this.toggleRecipientsArrows)},this.after("initialize",function(){this.on(document,s.dispatchers.rightPane.clear,this.teardown),this.on(document,s.ui.recipients.updated,this.recipientsUpdated),this.on(document,s.mail.draftSaved,this.draftSaved),this.on(document,s.mail.sent,this.mailSent),this.on(document,s.ui.mail.send,this.sendMail),this.on(document,s.ui.mail.discard,this.discardDraft),this.on(document,s.ui.tag.selected,this.saveTag),this.on(document,s.ui.tag.select,this.saveTag),this.bindCollapse()}),t.mixin(this,[l])}return u}),i("services/model/mail",["helpers/contenttype"],function(t){"use strict";function e(){return _.has(this,"mailbox")&&"SENT"===this.mailbox.toUpperCase()}function i(){return _.has(this,"mailbox")&&"DRAFTS"===this.mailbox.toUpperCase()}function n(){return _.has(this,"mailbox")&&"TRASH"===this.mailbox.toUpperCase()}function s(t){this.draft_reply_for=t}function a(){return{to:[this.replying.single],cc:[]}}function r(){return{to:this.replying.all["to-field"],cc:this.replying.all["cc-field"]}}function o(t){var e,i,n,s;return e=t.split("\n"),n=_.indexOf(e,""),i=e.slice(0,n),s=_.map(i,function(t){return _.map(t.split(":"),function(t){return t.trim()})}),_.object(s)}function l(t){var e,i;return e=t.split("\n"),i=_.indexOf(e,""),e.slice(i+1).join("\n")}function c(t){return{headers:o(t),body:l(t)}}function u(){var t=this.getMailMediaType(),e="--"+t.params.boundary+"\n",i="--"+t.params.boundary+"--",n=this.body.split(i)[0].split(e);return n=_.reject(n,function(t){return _.isEmpty(t.trim())}),_.map(n,c)}function h(){return new t.MediaType(this.header.content_type)}function d(){return"multipart/alternative"===this.getMailMediaType().type}function p(){var t=this.getMailMultiParts();return _.pluck(_.pluck(t,"headers"),"Content-Type")}function f(t){var e=this.getMailMultiParts();return _.findWhere(e,{headers:{"Content-Type":t}})}return{create:function(t){return t?(t.isSentMail=e,t.isDraftMail=i,t.isInTrash=n,t.setDraftReplyFor=s,t.replyToAddress=a,t.replyToAllAddress=r,t.getMailMediaType=h,t.isMailMultipartAlternative=d,t.getMailMultiParts=u,t.availableBodyPartsContentType=p,t.getMailPartByContentType=f,t):void 0}}}),i("mail_view/data/mail_builder",["services/model/mail"],function(t){"use strict";function e(t,e,i){""===i||_.isUndefined(i)?t[e]=[]:_.isArray(i)?t[e]=i:t[e]=i.split(" ")}var i;return{newMail:function(t){return t=_.isUndefined(t)?"":t,i={header:{to:[],cc:[],bcc:[],from:void 0,subject:""},tags:[],body:"",attachments:[],ident:t},this},subject:function(t){return i.header.subject=t,this},body:function(t){return i.body=t,this},to:function(t){return e(i.header,"to",t),this},cc:function(t){return e(i.header,"cc",t),this},bcc:function(t){return e(i.header,"bcc",t),this},header:function(t,e){return i.header[t]=e,this},tag:function(t){return _.isUndefined(t)&&(t="drafts"),i.tags.push(t),this},attachment:function(t){return i.attachments=t,this},build:function(){return t.create(i)}}}),i("mail_view/ui/compose_box",["flight/lib/component","views/templates","mixins/with_mail_edit_base","page/events","mail_view/data/mail_builder"],function(t,e,i,n,s){"use strict";function a(){this.defaultAttrs({closeButton:".close-mail-button"}),this.showNoMessageSelected=function(){this.trigger(n.dispatchers.rightPane.openNoMessageSelected)},this.buildMail=function(t){return this.builtMail(t).build()},this.builtMail=function(t){return s.newMail(this.attr.ident).subject(this.select("subjectBox").val()).to(this.attr.recipientValues.to).cc(this.attr.recipientValues.cc).bcc(this.attr.recipientValues.bcc).body(this.select("bodyBox").val()).attachment(this.attr.attachments).tag(t)},this.renderComposeBox=function(){this.render(e.compose.box,{}),this.enableFloatlabel("input.floatlabel"),this.enableFloatlabel("textarea.floatlabel"),this.select("recipientsFields").show(),this.on(this.select("closeButton"),"click",this.showNoMessageSelected),this.enableAutoSave()},this.mailDeleted=function(t,e){_.contains(_.pluck(e.mails,"ident"),this.attr.ident)&&this.trigger(n.dispatchers.rightPane.openNoMessageSelected)},this.discardDraft=function(){this.trigger(n.dispatchers.rightPane.openNoMessageSelected)},this.after("initialize",function(){this.renderComposeBox(),this.select("toBox").focus(),this.on(document,n.mail.deleted,this.mailDeleted),this.on(document,n.mail.sent,this.showNoMessageSelected)})}return t(a,i)}),i("page/router/url_params",[],function(){"use strict";function t(){return"inbox"}function e(){return document.location.hash.replace(/\/$/,"")}function i(t){return s(t)?/\/(.+)\/mail\/[-\w]+$/.exec(e())[1]:t.substring(2)}function n(){return""!==document.location.hash?i(e()):t()}function s(){return e().match(/mail\/[-\w]+$/)}function a(){return/mail\/([-\w]+)$/.exec(e())[1]}return{getTag:n,hasMailIdent:s,getMailIdent:a,defaultTag:t}}),i("mail_list_actions/ui/compose_trigger",["flight/lib/component","views/templates","page/events"],function(t,e,i){"use strict";function n(){this.defaultAttrs({}),this.render=function(){this.$node.html(e.mailActions.composeTrigger)},this.enableComposing=function(t,e){this.trigger(document,i.dispatchers.rightPane.openComposeBox)},this.showEmailSuccess=function(){this.trigger(document,i.ui.userAlerts.displayMessage,{message:"Your message was sent!","class":"success"})},this.showEmailError=function(t,e){this.trigger(document,i.ui.userAlerts.displayMessage,{message:"Error, message not sent: "+e.responseJSON.message,"class":"error"})},this.after("initialize",function(){this.render(),this.on("click",this.enableComposing),this.on(document,i.mail.sent,this.showEmailSuccess),this.on(document,i.mail.send_failed,this.showEmailError)})}return t(n)}),i("mail_list_actions/ui/refresh_trigger",["flight/lib/component","views/templates","page/events"],function(t,e,i){"use strict";function n(){this.render=function(){this.$node.html(e.mailActions.refreshTrigger)},this.refresh=function(t){this.trigger(document,i.ui.mails.refresh)},this.after("initialize",function(){this.render(),this.on("click",this.refresh)})}return t(n)}),i("mail_list/domain/refresher",["flight/lib/component","page/events","features"],function(t,e,i){"use strict";function n(){this.defaultAttrs({interval:2e4}),this.setupRefresher=function(){setTimeout(this.doRefresh.bind(this),this.attr.interval)},this.doRefresh=function(){this.trigger(document,e.ui.mails.refresh),this.setupRefresher()},this.after("initialize",function(){i.isAutoRefreshEnabled()&&this.setupRefresher()})}return t(n)}),i("mail_list_actions/ui/toggle_check_all_trigger",["flight/lib/component","page/events"],function(t,e){"use strict";function i(){this.defaultAttrs({}),this.toggleCheckAll=function(t){this.$node.prop("checked")?this.trigger(document,e.ui.mails.checkAll):this.trigger(document,e.ui.mails.uncheckAll)},this.setCheckbox=function(t,e){this.$node.prop("checked",e)},this.after("initialize",function(){this.on("click",this.toggleCheckAll),this.on(document,e.ui.mails.hasMailsChecked,this.setCheckbox)})}return t(i)}),i("mail_list_actions/ui/pagination_trigger",["flight/lib/component","views/templates","page/events"],function(t,e,i){"use strict";function n(){this.defaultAttrs({previous:"#left-arrow",next:"#right-arrow",currentPage:"#current-page"}),this.renderWithPageNumber=function(t){this.$node.html(e.mailActions.paginationTrigger({currentPage:t})),this.on(this.attr.previous,"click",this.previousPage),this.on(this.attr.next,"click",this.nextPage)},this.render=function(){this.renderWithPageNumber(1)},this.updatePageDisplay=function(t,e){this.renderWithPageNumber(e.currentPage)},this.previousPage=function(t){this.trigger(document,i.ui.page.previous)},this.nextPage=function(t){this.trigger(document,i.ui.page.next)},this.after("initialize",function(){this.render(),this.on(document,i.ui.page.changed,this.updatePageDisplay)})}return t(n)}),i("mixins/with_enable_disable_on_event",[],function(){"use strict";function t(t){return function(){this.disableElement=function(){this.$node.attr("disabled","disabled")},this.enableElement=function(){this.$node.removeAttr("disabled")},this.toggleEnabled=function(t,e){e?this.enableElement():this.disableElement()},this.after("initialize",function(){this.on(document,t,this.toggleEnabled)})}}return t}),i("mail_list_actions/ui/delete_many_trigger",["flight/lib/component","views/templates","mixins/with_enable_disable_on_event","page/events"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({}),this.getMailsToDelete=function(t){this.trigger(document,n.ui.mail.wantChecked,this.$node)},this.deleteManyEmails=function(t,e){this.trigger(document,n.ui.mail.deleteMany,e)},this.after("initialize",function(){this.on("click",this.getMailsToDelete),this.on(n.ui.mail.hereChecked,this.deleteManyEmails)})}return t(s,i(n.ui.mails.hasMailsChecked))}),i("mail_list_actions/ui/recover_many_trigger",["flight/lib/component","views/templates","mixins/with_enable_disable_on_event","page/events"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({}),this.getMailsToRecover=function(t){this.trigger(document,n.ui.mail.wantChecked,this.$node)},this.recoverManyEmails=function(t,e){this.trigger(document,n.ui.mail.recoverMany,e)},this.after("initialize",function(){this.on("click",this.getMailsToRecover),this.on(n.ui.mail.hereChecked,this.recoverManyEmails)})}return t(s,i(n.ui.mails.hasMailsChecked))}),i("mail_list_actions/ui/archive_many_trigger",["flight/lib/component","views/templates","mixins/with_enable_disable_on_event","page/events"],function(t,e,i,n){"use strict";function s(){this.getMailsToArchive=function(){this.trigger(document,n.ui.mail.wantChecked,this.$node)},this.archiveManyEmails=function(t,e){this.trigger(document,n.mail.archiveMany,e)},this.after("initialize",function(){this.on("click",this.getMailsToArchive),this.on(n.ui.mail.hereChecked,this.archiveManyEmails)})}return t(s,i(n.ui.mails.hasMailsChecked))}),i("mail_list_actions/ui/mark_many_as_read_trigger",["flight/lib/component","views/templates","mixins/with_enable_disable_on_event","page/events"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({}),this.getMailsToMarkAsRead=function(t){this.trigger(document,n.ui.mail.wantChecked,this.$node)},this.markManyEmailsAsRead=function(t,e){this.trigger(document,n.mail.read,e)},this.after("initialize",function(){this.on("click",this.getMailsToMarkAsRead),this.on(n.ui.mail.hereChecked,this.markManyEmailsAsRead)})}return t(s,i(n.ui.mails.hasMailsChecked))}),i("mail_list_actions/ui/mark_as_unread_trigger",["flight/lib/component","views/templates","mixins/with_enable_disable_on_event","page/events"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({}),this.getMailsToMarkAsUnread=function(t){this.trigger(document,n.ui.mail.wantChecked,this.$node)},this.markManyEmailsAsUnread=function(t,e){this.trigger(document,n.mail.unread,e)},this.after("initialize",function(){this.on("click",this.getMailsToMarkAsUnread),this.on(n.ui.mail.hereChecked,this.markManyEmailsAsUnread)})}return t(s,i(n.ui.mails.hasMailsChecked))}),i("mail_list_actions/ui/mail_list_actions",["flight/lib/component","views/templates","page/events","page/router/url_params","mail_list_actions/ui/compose_trigger","mail_list_actions/ui/refresh_trigger","mail_list/domain/refresher","mail_list_actions/ui/toggle_check_all_trigger","mail_list_actions/ui/pagination_trigger","mail_list_actions/ui/delete_many_trigger","mail_list_actions/ui/recover_many_trigger","mail_list_actions/ui/archive_many_trigger","mail_list_actions/ui/mark_many_as_read_trigger","mail_list_actions/ui/mark_as_unread_trigger"],function(t,e,i,n,s,a,r,o,l,c,u,h,d,p){"use strict";function f(){this.render=function(){this.$node.html(this.getActionsBoxTemplate()),a.attachTo("#refresh-trigger"),s.attachTo("#compose-trigger"),o.attachTo("#toggle-check-all-emails"),l.attachTo("#pagination-trigger"),c.attachTo("#delete-selected"),u.attachTo("#recover-selected"),h.attachTo("#archive-selected"),d.attachTo("#mark-selected-as-read"),p.attachTo("#mark-selected-as-unread"),r.attachTo(document)},this.getCurrentTag=function(){return this.attr.currentTag||n.getTag()},this.updateCurrentTag=function(t,e){this.attr.currentTag=e.tag,this.render()},this.getActionsBoxTemplate=function(){return"trash"===this.getCurrentTag()?e.mailActions.trashActionsBox():e.mailActions.actionsBox()},this.after("initialize",function(){this.on(document,i.ui.tag.select,this.updateCurrentTag),this.render()})}return t(f)}),i("mixins/with_hide_and_show",["require"],function(t){"use strict";function e(){this.hide=function(){this.$node.hide()},this.show=function(){this.$node.show()}}return e}),i("user_alerts/ui/user_alerts",["flight/lib/component","views/templates","mixins/with_hide_and_show","page/events"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({dismissTimeout:3e3}),this.render=function(t){this.$node.html(e.userAlerts.message(t)),this.show(),setTimeout(this.hide.bind(this),this.attr.dismissTimeout)},this.displayMessage=function(t,e){this.render({message:{content:e.message,"class":"message-panel__growl--"+(e["class"]||"success")}})},this.after("initialize",function(){this.on(document,n.ui.userAlerts.displayMessage,this.displayMessage)})}return t(s,i)}),i("mail_list/ui/mail_items/mail_item",["helpers/view_helper","views/templates","page/events"],function(t,e,i){"use strict";function n(){this.updateSelected=function(t,e){e.ident===this.attr.mail.ident?this.doSelect():this.doUnselect()},this.isOpeningOnANewTab=function(t){return t.metaKey||t.ctrlKey||2===t.which},this.doSelect=function(){this.$node.addClass("selected")},this.doUnselect=function(){this.$node.removeClass("selected")},this.doMailChecked=function(t){t.target.checked?this.checkCheckbox():this.uncheckCheckbox()},this.checkboxElement=function(){return this.$node.find("input[type=checkbox]")},this.checkCheckbox=function(){this.checkboxElement().prop("checked",!0),this.trigger(document,i.ui.mail.checked,{mail:this.attr.mail})},this.uncheckCheckbox=function(){this.checkboxElement().prop("checked",!1),this.trigger(document,i.ui.mail.unchecked,{mail:this.attr.mail})},this.render=function(){this.attr.mail.tagsForListView=_.without(this.attr.mail.tags,this.attr.tag);var i=e.mails[this.attr.templateType](this.attr.mail);this.$node.html(i),this.$node.addClass("mail-list-entry"),this.$node.addClass(t.formatStatusClasses(this.attr.mail.status)),this.attr.selected&&this.doSelect(),this.on(this.$node.find("a"),"click",this.triggerOpenMail)},this.after("initialize",function(){this.on(this.$node.find("input[type=checkbox]"),"change",this.doMailChecked),this.on(document,i.ui.mails.cleanSelected,this.doUnselect),this.on(document,i.ui.tag.select,this.doUnselect),this.on(document,i.ui.tag.select,this.uncheckCheckbox),this.on(document,i.ui.mails.uncheckAll,this.uncheckCheckbox),this.on(document,i.ui.mails.checkAll,this.checkCheckbox)})}return n}),i("mail_list/ui/mail_items/generic_mail_item",["flight/lib/component","helpers/view_helper","mail_list/ui/mail_items/mail_item","page/events"],function(t,e,i,n){"use strict";function s(){function t(){if(!_.contains(this.attr.mail.status,this.status.READ)){var t={ident:this.attr.mail.ident,tags:this.attr.mail.tags,mailbox:this.attr.mail.mailbox};this.trigger(document,n.mail.read,t),this.attr.mail.status.push(this.status.READ),this.$node.addClass(e.formatStatusClasses(this.attr.mail.status))}}this.status={READ:"read"},this.triggerOpenMail=function(e){return this.isOpeningOnANewTab(e)?void t.call(this):(this.trigger(document,n.ui.mail.open,{ident:this.attr.mail.ident}),this.trigger(document,n.router.pushState,{mailIdent:this.attr.mail.ident}),void e.preventDefault())},this.openMail=function(e,i){i.ident===this.attr.mail.ident&&(t.call(this),this.trigger(document,n.ui.mail.updateSelected,{ident:this.attr.mail.ident}))},this.updateTags=function(t,e){e.ident===this.attr.mail.ident&&(this.attr.tags=e.tags,_.contains(this.attr.tags,this.attr.tag)?this.render():this.teardown())},this.deleteMail=function(t,e){e.mail.ident===this.attr.mail.ident&&this.teardown()},this.after("initialize",function(){this.render(),this.attr.isChecked&&this.checkCheckbox(),this.on(document,n.ui.composeBox.newMessage,this.doUnselect),this.on(document,n.ui.mail.open,this.openMail),this.on(document,n.ui.mail.updateSelected,this.updateSelected),this.on(document,n.mails.teardown,this.teardown),this.on(document,n.mail.tags.update,this.updateTags),this.on(document,n.mail["delete"],this.deleteMail)})}return t(s,i)}),i("mail_list/ui/mail_items/draft_item",["flight/lib/component","helpers/view_helper","mail_list/ui/mail_items/mail_item","page/events"],function(t,e,i,n){"use strict";function s(){this.triggerOpenMail=function(t){this.isOpeningOnANewTab(t)||(this.trigger(document,n.dispatchers.rightPane.openDraft,{ident:this.attr.mail.ident}),this.trigger(document,n.ui.mail.updateSelected,{ident:this.attr.mail.ident}),this.trigger(document,n.router.pushState,{mailIdent:this.attr.mail.ident}),t.preventDefault())},this.after("initialize",function(){this.render(),this.attr.isChecked&&this.checkCheckbox(),this.on(document,n.ui.composeBox.newMessage,this.doUnselect),this.on(document,n.ui.mail.updateSelected,this.updateSelected),this.on(document,n.mails.teardown,this.teardown)})}return t(s,i)}),i("mail_list/ui/mail_items/sent_item",["flight/lib/component","mail_list/ui/mail_items/mail_item","page/events"],function(t,e,i){"use strict";function n(){this.triggerOpenMail=function(t){this.isOpeningOnANewTab(t)||(this.trigger(document,i.ui.mail.open,{ident:this.attr.mail.ident}),this.trigger(document,i.router.pushState,{mailIdent:this.attr.mail.ident}),t.preventDefault())},this.openMail=function(t,e){e.ident===this.attr.mail.ident&&this.trigger(document,i.ui.mail.updateSelected,{ident:this.attr.mail.ident})},this.after("initialize",function(){this.render(),this.attr.isChecked&&this.checkCheckbox(),this.on(document,i.ui.composeBox.newMessage,this.doUnselect),this.on(document,i.ui.mail.open,this.openMail),this.on(document,i.ui.mail.updateSelected,this.updateSelected),this.on(document,i.mails.teardown,this.teardown)})}return t(n,e)}),i("mail_list/ui/mail_item_factory",["mail_list/ui/mail_items/generic_mail_item","mail_list/ui/mail_items/draft_item","mail_list/ui/mail_items/sent_item"],function(t,e,i){"use strict";var n={drafts:e,sent:i,trash:t},s={drafts:"draft",sent:"sent",trash:"trash"},a=function(e,i,a,r,o){var l=$("<li>",{id:"mail-"+i.ident});e.append(l),i.currentTag=r;var c=n[i.mailbox]||t;c.attachTo(l,{mail:i,selected:i.ident===a,tag:r,isChecked:o,templateType:s[i.mailbox]||"single"})};return{createAndAttach:a}}),i("mail_list/ui/mail_list",["flight/lib/component","flight/lib/utils","mail_list/ui/mail_item_factory","page/router/url_params","page/events"],function(t,e,i,n,s){"use strict";function a(){var t=function(t){return"drafts"===t?s.dispatchers.rightPane.openDraft:s.ui.mail.open};this.defaultAttrs({mail:".mail",currentMailIdent:"",urlParams:n,initialized:!1,checkedMails:{}}),this.appendMail=function(t){var e=t.ident in this.attr.checkedMails;i.createAndAttach(this.$node,t,this.attr.currentMailIdent,this.attr.currentTag,e)},this.resetMailList=function(){this.trigger(document,s.mails.teardown),this.$node.empty()},this.triggerMailOpenForPopState=function(e){e.mailIdent&&this.trigger(document,t(e.tag),{ident:e.mailIdent})},this.shouldSelectEmailFromUrlMailIdent=function(){return this.attr.urlParams.hasMailIdent()},this.selectMailBasedOnUrlMailIdent=function(){var e=this.attr.urlParams.getMailIdent();this.trigger(document,t(this.attr.currentTag),{ident:e}),this.trigger(document,s.router.pushState,{tag:this.attr.currentTag,mailIdent:e})},this.updateCurrentTagAndMail=function(t){t.ident&&(this.attr.currentMailIdent=t.ident),this.attr.currentTag=t.tag||this.attr.currentTag,this.updateCheckAllCheckbox()},this.renderMails=function(t){_.each(t,this.appendMail,this),this.trigger(document,s.search.highlightResults,{where:"#mail-list"}),this.trigger(document,s.search.highlightResults,{where:".mail-read-view__header"})},this.triggerScrollReset=function(){this.trigger(document,s.dispatchers.middlePane.resetScroll)},this.showMails=function(t,e){this.updateCurrentTagAndMail(e),this.refreshMailList(null,e),this.triggerMailOpenForPopState(e),this.openMailFromUrl()},this.refreshMailList=function(t,e){t&&this.trigger(document,s.dispatchers.tags.refreshTagList,{skipMailListRefresh:!0}),this.resetMailList(),this.renderMails(e.mails)},this.updateSelected=function(t,e){e.ident!==this.attr.currentMailIdent&&(this.attr.currentMailIdent=e.ident)},this.cleanSelected=function(){this.attr.currentMailIdent="",this.triggerScrollReset()},this.respondWithCheckedMails=function(t,e){this.trigger(e,s.ui.mail.hereChecked,{checkedMails:this.attr.checkedMails})},this.updateCheckAllCheckbox=function(){this.trigger(document,s.ui.mails.hasMailsChecked,_.keys(this.attr.checkedMails).length>0)},this.addToCheckedMails=function(t,e){this.attr.checkedMails[e.mail.ident]=e.mail,this.updateCheckAllCheckbox()},this.removeFromCheckedMails=function(t,e){e.mails?_.each(e.mails,function(t){delete this.attr.checkedMails[t.ident]},this):delete this.attr.checkedMails[e.mail.ident],this.updateCheckAllCheckbox()},this.refreshWithScroll=function(){this.trigger(document,s.ui.mails.refresh),this.triggerScrollReset()},this.refreshAfterSaveDraft=function(){"drafts"===this.attr.currentTag&&this.refreshWithScroll()},this.refreshAfterMailSent=function(){"drafts"!==this.attr.currentTag&&"sent"!==this.attr.currentTag||this.refreshWithScroll()},this.after("initialize",function(){this.on(document,s.ui.mails.cleanSelected,this.cleanSelected),this.on(document,s.ui.tag.select,this.cleanSelected),this.on(document,s.mails.available,this.showMails),this.on(document,s.mails.availableForRefresh,this.refreshMailList),this.on(document,s.mail.draftSaved,this.refreshAfterSaveDraft),this.on(document,s.mail.sent,this.refreshAfterMailSent),this.on(document,s.ui.mail.updateSelected,this.updateSelected),this.on(document,s.ui.mail.wantChecked,this.respondWithCheckedMails),this.on(document,s.ui.mail.checked,this.addToCheckedMails),this.on(document,s.ui.mail.unchecked,this.removeFromCheckedMails),this.openMailFromUrl=e.once(function(){this.shouldSelectEmailFromUrlMailIdent()&&this.selectMailBasedOnUrlMailIdent()})})}return t(a)}),i("mail_view/ui/no_message_selected_pane",["flight/lib/component","views/templates","mixins/with_hide_and_show","page/events"],function(t,e,i,n){"use strict";function s(){this.render=function(){this.$node.html(e.noMessageSelected())},this.after("initialize",function(){this.render(),this.on(document,n.dispatchers.rightPane.clear,this.teardown)})}return t(s,i)}),i("mail_view/ui/no_mails_available_pane",["flight/lib/component","views/templates","mixins/with_hide_and_show","page/events"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({tag:null,forSearch:""});var t=/-?in:"?[\w]+"?|tag:"[\w]+"/g;this.render=function(){this.attr.tag=this.attr.tag.toUpperCase(),this.attr.forSearch=this.attr.forSearch.replace(t,"").trim().toUpperCase(),this.$node.html(e.noMailsAvailable(this.attr))},this.after("initialize",function(){this.render()})}return t(s)}),i("mail_view/ui/mail_actions",["flight/lib/component","views/templates","page/events"],function(t,e,i){"use strict";function n(){this.defaultAttrs({replyButtonTop:"#reply-button-top",viewMoreActions:"#view-more-actions",replyAllButtonTop:"#reply-all-button-top",deleteButtonTop:"#delete-button-top",moreActions:"#more-actions"}),this.displayMailActions=function(){this.$node.html(e.mails.mailActions()),this.select("moreActions").hide(),this.on(this.select("replyButtonTop"),"click",function(){this.trigger(document,i.ui.replyBox.showReply)}.bind(this)),this.on(this.select("replyAllButtonTop"),"click",function(){this.trigger(document,i.ui.replyBox.showReplyAll),this.select("moreActions").hide()}.bind(this)),this.on(this.select("deleteButtonTop"),"click",function(){this.trigger(document,i.ui.mail["delete"],{mail:this.attr.mail}),this.select("moreActions").hide()}.bind(this)),this.on(this.select("viewMoreActions"),"click",function(){this.select("moreActions").toggle()}.bind(this)),this.on(this.select("viewMoreActions"),"blur",function(t){var e=this.select("replyAllButtonTop").is(":hover"),i=this.select("deleteButtonTop").is(":hover");e||i?t.preventDefault():this.select("moreActions").hide()}.bind(this))},this.after("initialize",function(){this.on(document,i.dispatchers.rightPane.clear,this.teardown),this.displayMailActions()})}return t(n)}),i("mixins/with_mail_tagging",["page/events","features"],function(t,e){"use strict";function i(){this.updateTags=function(e,i){this.trigger(document,t.mail.tags.update,{ident:e.ident,tags:i})},this.attachTagCompletion=function(t){this.tagFilter=function(e){var i=_.filter(e,function(e){return!_.contains(t.tags,e.name)});return _.map(i,function(t){return{value:Handlebars.Utils.escapeExpression(t.name)}})},this.tagCompleter=new Bloodhound({datumTokenizer:function(t){return[t.value]},queryTokenizer:function(t){return[t.trim()]},remote:{url:"/tags?skipDefaultTags=true&q=%QUERY",filter:this.tagFilter}}),this.tagCompleter.initialize(),this.select("newTagInput").typeahead({hint:!0,highlight:!0,minLength:1},{source:this.tagCompleter.ttAdapter()})},this.createNewTag=function(){var t=this.attr.mail.tags.slice();t.push(this.select("newTagInput").val()),this.tagCompleter.clear(),this.tagCompleter.clearPrefetchCache(),this.tagCompleter.clearRemoteCache(),this.updateTags(this.attr.mail,_.uniq(t))},this.after("displayMail",function(){this.on(this.select("newTagInput"),"typeahead:selected typeahead:autocompleted",this.createNewTag)})}return i}),i("mixins/with_mail_sandbox",["helpers/view_helper","page/events"],function(t,e){"use strict";function i(){this.showMailOnSandbox=function(i){var n=this,s=$("#read-sandbox"),a=s[0],r=t.formatMailBody(i);window.addEventListener("message",function(t){"null"===t.origin&&t.source===a.contentWindow&&(n.trigger(document,e.ui.replyBox.showReplyContainer),n.trigger(document,e.search.highlightResults,{where:".mail-read-view__header"}))}),a.onload=function(){function t(){var t=s.parent().width(),e=s.width(),n="none";i&&i.htmlBody&&e>t&&(n=t/e,n="scale("+n+","+n+")"),s.css({"-webkit-transform-origin":"0 0","-moz-transform-origin":"0 0","-ms-transform-origin":"0 0","transform-origin":"0 0","-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n})}if(s.iFrameResize){var e={resizedCallback:t,checkOrigin:!1};s.iFrameResize(e)}a.contentWindow.postMessage({html:r},"*")}}}return i}),i("mail_view/ui/mail_view",["flight/lib/component","views/templates","mail_view/ui/mail_actions","helpers/view_helper","mixins/with_hide_and_show","mixins/with_mail_tagging","mixins/with_mail_sandbox","page/events","views/i18n"],function(t,e,i,n,s,a,r,o,l){"use strict";function c(){this.defaultAttrs({tags:".mail-read-view__header-tags-tag",newTagInput:"#new-tag-input",newTagButton:"#new-tag-button",addNew:".mail-read-view__header-tags-new-button",trashButton:"#trash-button",archiveButton:"#archive-button",closeMailButton:".close-mail-button"}),this.displayMail=function(t,s){this.attr.mail=s.mail;var a,r,o;s.mail.security_casing=s.mail.security_casing||{},a=this.checkSigned(s.mail),r=this.checkEncrypted(s.mail),o=s.mail.attachments.map(function(t){return t.received=!0,t}),"sent"===s.mail.mailbox&&(r=void 0),this.$node.html(e.mails.fullView({header:s.mail.header,body:[],statuses:n.formatStatusClasses(s.mail.status),ident:s.mail.ident,tags:s.mail.tags,encryptionStatus:r,signatureStatus:a,attachments:o})),this.showMailOnSandbox(this.attr.mail),this.attachTagCompletion(this.attr.mail),this.select("tags").on("click",function(t){this.removeTag($(t.target).text())}.bind(this)),this.addTagLoseFocus(),this.on(this.select("newTagButton"),"click",this.showNewTagInput),this.on(this.select("newTagInput"),"keydown",this.handleKeyDown),this.on(this.select("newTagInput"),"blur",this.addTagLoseFocus),this.on(this.select("trashButton"),"click",this.moveToTrash),this.on(this.select("closeMailButton"),"click",this.openNoMessageSelectedPane),i.attachTo("#mail-actions",s),this.resetScroll()},this.resetScroll=function(){$("#right-pane").scrollTop(0)},this.checkEncrypted=function(t){if(_.isEmpty(t.security_casing.locks))return{cssClass:"security-status__label--not-encrypted",label:"not-encrypted"};var e=["security-status__label--encrypted"],i=["encrypted"],n=_.any(t.security_casing.locks,function(t){return"valid"===t.state});return n?i.push("encryption-valid"):(e.push("--with-error"),i.push("encryption-error")),{cssClass:e.join(""),label:i.join(" ")}},this.checkSigned=function(t){var e={cssClass:"security-status__label--not-signed",label:"not-signed"};if(_.isEmpty(t.security_casing.imprints))return e;var i=_.any(t.security_casing.imprints,function(t){return"no_signature_information"===t.state});if(i)return e;var n=["security-status__label--signed"],s=["signed"];return _.any(t.security_casing.imprints,function(t){return"from_revoked"===t.state})&&(n.push("--revoked"),s.push("signature-revoked")),_.any(t.security_casing.imprints,function(t){return"from_expired"===t.state})&&(n.push("--expired"),s.push("signature-expired")),this.isNotTrusted(t)&&(n.push("--not-trusted"),s.push("signature-not-trusted")),{cssClass:n.join(""),label:s.join(" ")}},this.isNotTrusted=function(t){return _.any(t.security_casing.imprints,function(t){if(_.isNull(t.seal))return!0;var e=_.isUndefined(t.seal.trust)?t.seal.validity:t.seal.trust;return"no_trust"===e})},this.openNoMessageSelectedPane=function(t,e){this.trigger(document,o.dispatchers.rightPane.openNoMessageSelected)},this.handleKeyDown=function(t){var e=13,i=27;t.which===e?(t.preventDefault(),""!==this.select("newTagInput").val().trim()&&this.createNewTag()):t.which===i&&(t.preventDefault(),this.addTagLoseFocus())},this.addTagLoseFocus=function(){this.select("newTagInput").hide(),this.select("newTagInput").typeahead("val",""),this.select("addNew").show()},this.showNewTagInput=function(){this.select("newTagInput").show(),this.select("newTagInput").focus(),this.select("addNew").hide()},this.removeTag=function(t){t=t.toString();var e=_.without(this.attr.mail.tags,t);this.updateTags(this.attr.mail,e),this.trigger(document,o.dispatchers.tags.refreshTagList)},this.moveToTrash=function(){this.trigger(document,o.ui.mail["delete"],{mail:this.attr.mail})},this.tagsUpdated=function(t,e){e=e||{},this.attr.mail.tags=e.tags,this.displayMail({},{mail:this.attr.mail})},this.mailDeleted=function(t,e){_.contains(_.pluck(e.mails,"ident"),this.attr.mail.ident)&&this.openNoMessageSelectedPane()},this.fetchMailToShow=function(){this.trigger(o.mail.want,{mail:this.attr.ident,caller:this})},this.highlightMailContent=function(t,e){this.trigger(document,o.mail.highlightMailContent,e)},this.after("initialize",function(){this.on(this,o.mail.notFound,this.openNoMessageSelectedPane),this.on(this,o.mail.here,this.highlightMailContent),this.on(document,o.mail.display,this.displayMail),this.on(document,o.dispatchers.rightPane.clear,this.teardown),this.on(document,o.mail.tags.updated,this.tagsUpdated),this.on(document,o.mail.deleted,this.mailDeleted),this.fetchMailToShow()})}return t(c,i,s,a,r)}),i("mixins/with_compose_inline",["page/events","views/templates","mail_view/data/mail_builder","mixins/with_mail_edit_base"],function(t,e,i,n){"use strict";function s(){this.defaultAttrs({subjectDisplay:"#reply-subject",subjectInput:"#subject-container input",
+forwardBox:"#forward-box",recipientsDisplay:"#all-recipients"}),this.openMail=function(e,i){this.trigger(document,t.ui.mail.open,{ident:this.attr.mail.ident})},this.trashReply=function(){this.trigger(document,t.ui.composeBox.trashReply),this.teardown()},this.builtMail=function(t){return i.newMail(this.attr.ident).subject(this.select("subjectBox").val()).to(this.attr.recipientValues.to).cc(this.attr.recipientValues.cc).bcc(this.attr.recipientValues.bcc).body(this.select("bodyBox").val()).attachment(this.attr.attachments).tag(t)},this.renderInlineCompose=function(t,i){this.show(),this.render(e.compose.inlineBox,i),this.$node.addClass(t),this.select("bodyBox").focus(),this.enableAutoSave()},this.updateIdent=function(t,e){this.attr.mail.ident=e.ident},this.discardDraft=function(){this.trashReply()},this.after("initialize",function(){this.on(document,t.mail.sent,this.openMail),this.on(document,t.mail.deleted,this.trashReply),this.on(document,t.mail.draftSaved,this.updateIdent)}),n.call(this)}return s}),i("mail_view/ui/reply_box",["flight/lib/component","helpers/view_helper","mixins/with_hide_and_show","mixins/with_compose_inline","page/events","views/i18n"],function(t,e,i,n,s,a){"use strict";function r(){this.defaultAttrs({replyType:"reply",draftReply:!1,mail:null,mailBeingRepliedIdent:void 0}),this.getRecipients=function(){return"replyall"===this.attr.replyType?this.attr.mail.replyToAllAddress():this.attr.mail.replyToAddress()};var t=function(t){return a("re")+t};this.setupReplyBox=function(){var i,n;this.attr.draftReply?(this.attr.ident=this.attr.mail.ident,this.attr.mailBeingRepliedIdent=this.attr.mail.draft_reply_for,i=this.attr.mail.recipients(),n=this.attr.mail.body,this.attr.subject=this.attr.mail.header.subject):(this.attr.mailBeingRepliedIdent=this.attr.mail.ident,i=this.getRecipients(),n=e.quoteMail(this.attr.mail),this.attr.subject=t(this.attr.mail.header.subject)),this.attr.recipientValues.to=i.to,this.attr.recipientValues.cc=i.cc,this.renderInlineCompose("reply-box",{recipients:i,subject:this.attr.subject,body:n}),this.on(this.select("recipientsDisplay"),"click keydown",this.showRecipientFields),this.on(this.select("subjectDisplay"),"click",this.showSubjectInput)},this.showRecipientFields=function(t,e){t.keyCode&&13!==t.keyCode||(this.select("recipientsDisplay").hide(),this.select("recipientsFields").show(),$("#recipients-to-area .tt-input").focus())},this.showSubjectInput=function(){this.select("subjectDisplay").hide(),this.select("subjectInput").show(),this.select("subjectInput").focus()},this.buildMail=function(t){var e=this.builtMail(t).subject(this.select("subjectInput").val());_.isUndefined(this.attr.mail.header.message_id)||e.header("in_reply_to",this.attr.mail.header.message_id),_.isUndefined(this.attr.mail.header.list_id)||e.header("list_id",this.attr.mail.header.list_id);var i=e.build();return i.setDraftReplyFor(this.attr.mailBeingRepliedIdent),i},this.after("initialize",function(){this.setupReplyBox()})}return t(r,i,n)}),i("mail_view/ui/forward_box",["flight/lib/component","helpers/view_helper","mixins/with_hide_and_show","mixins/with_compose_inline","page/events","views/i18n"],function(t,e,i,n,s,a){"use strict";function r(){var t=function(t){return a("Fwd: ")+t};this.fetchTargetMail=function(t){this.trigger(document,s.mail.want,{mail:this.attr.ident,caller:this})},this.setupForwardBox=function(){var i=this.attr.mail;this.attr.subject=t(i.header.subject),this.attr.attachments=i.attachments,this.renderInlineCompose("forward-box",{subject:this.attr.subject,recipients:{to:[],cc:[]},body:e.quoteMail(i),attachments:this.convertToRemovableAttachments(i.attachments)});var n=this;this.$node.find("i.remove-icon").bind("click",function(t){var e=$(this),i=e.closest("li").attr("data-ident");n.trigger(document,s.mail.removeAttachment,{ident:i}),t.preventDefault()}),this.on(this.select("subjectDisplay"),"click",this.showSubjectInput),this.select("recipientsDisplay").hide(),this.select("recipientsFields").show()},this.convertToRemovableAttachments=function(t){return t.map(function(t){return t.removable=!0,t})},this.showSubjectInput=function(){this.select("subjectDisplay").hide(),this.select("subjectInput").show(),this.select("subjectInput").focus()},this.buildMail=function(t){var e=this.builtMail(t).subject(this.select("subjectInput").val()),i=["bcc","cc","date","from","message_id","reply_to","sender","to"],n=this.attr.mail.header;return _.each(i,function(t){_.isUndefined(n[t])||e.header("resent_"+t,n[t])}),e.build()},this.after("initialize",function(){this.setupForwardBox()})}return t(r,i,n)}),i("mixins/with_feature_toggle",["features"],function(t){"use strict";function e(e,i){return function(){this.around("initialize",_.bind(function(n,s,a){return t.isEnabled(e)?n(s,a):i?(i.call(this),this):void 0},this))}}return e}),i("mail_view/ui/reply_section",["flight/lib/component","views/templates","mail_view/ui/reply_box","mail_view/ui/forward_box","mixins/with_hide_and_show","mixins/with_feature_toggle","page/events"],function(t,e,i,n,s,a,r){"use strict";function o(){this.defaultAttrs({replyButton:"#reply-button",replyAllButton:"#reply-all-button",forwardButton:"#forward-button",replyBox:"#reply-box",replyType:"reply",replyContainer:".reply-container"}),this.showReply=function(){this.attr.replyType="reply",this.fetchEmailToReplyTo()},this.showReplyAll=function(){this.attr.replyType="replyall",this.fetchEmailToReplyTo()},this.showForward=function(){this.attr.replyType="forward",this.fetchEmailToReplyTo()},this.render=function(){this.$node.html(e.compose.replySection),this.on(this.select("replyButton"),"click",this.showReply),this.on(this.select("replyAllButton"),"click",this.showReplyAll),this.on(this.select("forwardButton"),"click",this.showForward)},this.checkForDraftReply=function(){this.render(),this.hideContainer(),this.trigger(document,r.mail.draftReply.want,{ident:this.attr.ident})},this.fetchEmailToReplyTo=function(t){this.trigger(document,r.mail.want,{mail:this.attr.ident,caller:this})},this.showDraftReply=function(t,e){this.showContainer(),this.hideButtons(),i.attachTo(this.select("replyBox"),{mail:e.mail,draftReply:!0})},this.showReplyComposeBox=function(t,e){this.showContainer(),this.hideButtons(),"forward"===this.attr.replyType?n.attachTo(this.select("replyBox"),{mail:e.mail}):i.attachTo(this.select("replyBox"),{mail:e.mail,replyType:this.attr.replyType})},this.hideContainer=function(){this.select("replyContainer").hide()},this.showContainer=function(){this.select("replyContainer").show()},this.hideButtons=function(){this.select("replyButton").hide(),this.select("replyAllButton").hide(),this.select("forwardButton").hide()},this.showButtons=function(){this.showContainer(),this.select("replyBox").empty(),this.select("replyButton").show(),this.select("replyAllButton").show(),this.select("forwardButton").show()},this.after("initialize",function(){this.on(document,r.ui.replyBox.showReply,this.showReply),this.on(document,r.ui.replyBox.showReplyAll,this.showReplyAll),this.on(document,r.ui.composeBox.trashReply,this.showButtons),this.on(this,r.mail.here,this.showReplyComposeBox),this.on(document,r.dispatchers.rightPane.clear,this.teardown),this.on(document,r.ui.replyBox.showReplyContainer,this.showContainer),this.on(document,r.mail.draftReply.here,this.showDraftReply),this.checkForDraftReply()})}return t(o,s,a("replySection"))}),i("mail_view/data/mail_sender",["flight/lib/component","mail_view/data/mail_builder","page/events","helpers/monitored_ajax","features"],function(t,e,i,n,s){"use strict";function a(){function t(t){return function(e){t.trigger(document,i.mail.sent,e)}}function e(t){return function(e){t.trigger(document,i.mail.send_failed,e)}}function a(t){return function(e){t.trigger(document,i.mail.draftSaved,e)}}this.defaultAttrs({mailsResource:"/mails"}),this.sendMail=function(s,a){this.trigger(i.dispatchers.rightPane.openNoMessageSelected),n.call(_,this,this.attr.mailsResource,{type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(a)}).done(t(this)).fail(e(this))},this.saveMail=function(t){return n.call(_,this,this.attr.mailsResource,{type:"PUT",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(t),skipErrorMessage:!0})},this.saveDraft=function(t,e){this.saveMail(e).done(a(this))},this.saveMailWithCallback=function(t,e){this.saveMail(e.mail).done(function(t){return e.callback(t)}).fail(function(t){return e.callback(t)})},this.after("initialize",function(){this.on(i.mail.send,this.sendMail),s.isEnabled("saveDraft")&&this.on(i.mail.saveDraft,this.saveDraft),this.on(document,i.mail.save,this.saveMailWithCallback)})}return t(a)}),i("mixins/with_auto_refresh",["features"],function(t){"use strict";function e(e){return function(){this.defaultAttrs({refreshInterval:15e3}),this.setupRefresher=function(){clearTimeout(this.attr.refreshTimer),this.attr.refreshTimer=setTimeout(function(){this[e](),this.setupRefresher()}.bind(this),this.attr.refreshInterval)},this.after("initialize",function(){t.isAutoRefreshEnabled()&&this.setupRefresher()})}}return e}),i("services/mail_service",["flight/lib/component","views/i18n","services/model/mail","helpers/monitored_ajax","page/events","features","mixins/with_auto_refresh","page/router/url_params"],function(t,e,i,n,s,a,r,o){"use strict";function l(){function t(t){var e='tag:"'+c.attr.currentTag+'"';return"all"===t.tag&&(e="in:all"),e}function r(t){return encodeURIComponent(t)}function l(t,e){return t+"/"+e}var c;this.defaultAttrs({mailsResource:"/mails",singleMailResource:"/mail",currentTag:"",lastQuery:"",currentPage:1,numPages:1,pageSize:25}),this.errorMessage=function(t){return function(){c.trigger(document,s.ui.userAlerts.displayMessage,{message:t})}},this.updateTags=function(t,i){var a=i.ident,r=function(t){this.refreshMails(),$(document).trigger(s.mail.tags.updated,{ident:a,tags:t.tags}),$(document).trigger(s.dispatchers.tags.refreshTagList,{skipMailListRefresh:!0})},o=function(t){var i=e("Could not update mail tags");403===t.status&&(i=e("Invalid tag name")),this.trigger(document,s.ui.userAlerts.displayMessage,{message:i})};n(this,"/mail/"+a+"/tags",{type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify({newtags:i.tags})}).done(r.bind(this)).fail(o.bind(this))},this.readMail=function(t,e){var i;i=e.checkedMails?_.map(e.checkedMails,function(t){return t.ident}):[e.ident],n(this,"/mails/read",{type:"POST",data:JSON.stringify({idents:i})}).done(this.triggerMailsRead(e.checkedMails))},this.unreadMail=function(t,e){var i;i=e.checkedMails?_.map(e.checkedMails,function(t){return t.ident}):[e.ident],n(this,"/mails/unread",{type:"POST",data:JSON.stringify({idents:i})}).done(this.triggerMailsRead(e.checkedMails))},this.triggerMailsRead=function(t){return _.bind(function(){this.refreshMails(),this.trigger(document,s.ui.mails.uncheckAll)},this)},this.triggerDeleted=function(t){return _.bind(function(){var e=t.mails||[t.mail];this.refreshMails(),this.trigger(document,s.ui.userAlerts.displayMessage,{message:t.successMessage}),this.trigger(document,s.ui.mails.uncheckAll),this.trigger(document,s.mail.deleted,{mails:e})},this)},this.triggerRecovered=function(t){return _.bind(function(){t.mails||[t.mail];this.refreshMails(),this.trigger(document,s.ui.userAlerts.displayMessage,{message:e(t.successMessage)}),this.trigger(document,s.ui.mails.uncheckAll)},this)},this.triggerArchived=function(t){return _.bind(function(t){this.refreshMails(),this.trigger(document,s.ui.userAlerts.displayMessage,{message:e(t.successMessage)}),this.trigger(document,s.ui.mails.uncheckAll)},this)},this.archiveManyMails=function(t,i){var s=_.map(i.checkedMails,function(t){return t.ident});n(this,"/mails/archive",{type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify({idents:s})}).done(this.triggerArchived(i)).fail(this.errorMessage(e("Could not archive emails")))},this.deleteMail=function(t,i){n(this,"/mail/"+i.mail.ident,{type:"DELETE"}).done(this.triggerDeleted(i)).fail(this.errorMessage(e("Could not delete email")))},this.deleteManyMails=function(t,i){var s=i,a=_.map(i.mails,function(t){return t.ident});n(this,"/mails/delete",{type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify({idents:a})}).done(this.triggerDeleted(s)).fail(this.errorMessage(e("Could not delete emails")))},this.recoverManyMails=function(t,i){var s=i,a=_.map(i.mails,function(t){return t.ident});n(this,"/mails/recover",{type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify({idents:a})}).done(this.triggerRecovered(s)).fail(this.errorMessage(e("Could not move emails to inbox")))},this.fetchByTag=function(e,i){this.attr.currentTag=i.tag,this.attr.lastQuery=t(i),this.updateCurrentPageNumber(1),this.refreshMails()},this.newSearch=function(t,e){this.attr.lastQuery=e.query,this.attr.currentTag="all",this.refreshMails()},this.mailFromJSON=function(t){return i.create(t)},this.parseMails=function(t){return t.mails=_.map(t.mails,this.mailFromJSON,this),t},this.excludeTrashedEmailsForDraftsAndSent=function(t){return'tag:"drafts"'===t||'tag:"sent"'===t?t+' -in:"trash"':t},this.refreshMails=function(){var t=this.attr.mailsResource+"?q="+r(this.attr.lastQuery)+"&p="+this.attr.currentPage+"&w="+this.attr.pageSize;this.attr.lastQuery=this.excludeTrashedEmailsForDraftsAndSent(this.attr.lastQuery),n(this,t,{dataType:"json"}).done(function(t){this.attr.numPages=Math.ceil(t.stats.total/this.attr.pageSize),this.trigger(document,s.mails.available,_.merge({tag:this.attr.currentTag,forSearch:this.attr.lastQuery},this.parseMails(t)))}.bind(this)).fail(function(){this.trigger(document,s.ui.userAlerts.displayMessage,{message:e("Could not fetch messages"),"class":"error"})}.bind(this))},this.fetchSingle=function(t,e){var i=l(this.attr.singleMailResource,e.mail);n(this,i,{dataType:"json"}).done(function(t){return _.isNull(t)?void this.trigger(e.caller,s.mail.notFound):void this.trigger(e.caller,s.mail.here,{mail:this.mailFromJSON(t)})}.bind(this))},this.previousPage=function(){this.attr.currentPage>1&&(this.updateCurrentPageNumber(this.attr.currentPage-1),this.refreshMails())},this.nextPage=function(){this.attr.currentPage<this.attr.numPages&&(this.updateCurrentPageNumber(this.attr.currentPage+1),this.refreshMails())},this.updateCurrentPageNumber=function(t){this.attr.currentPage=t,this.trigger(document,s.ui.page.changed,{currentPage:this.attr.currentPage,numPages:this.attr.numPages})},this.wantDraftReplyForMail=function(t,e){return a.isEnabled("draftReply")?void n(this,"/draft_reply_for/"+e.ident,{dataType:"json"}).done(function(t){return _.isNull(t)?void this.trigger(document,s.mail.draftReply.notFound):void this.trigger(document,s.mail.draftReply.here,{mail:this.mailFromJSON(t)})}.bind(this)):void this.trigger(document,s.mail.draftReply.notFound)},this.after("initialize",function(){c=this,a.isEnabled("tags")&&this.on(s.mail.tags.update,this.updateTags),this.on(document,s.mail.draftReply.want,this.wantDraftReplyForMail),this.on(document,s.mail.want,this.fetchSingle),this.on(document,s.mail.read,this.readMail),this.on(document,s.mail.unread,this.unreadMail),this.on(document,s.mail["delete"],this.deleteMail),this.on(document,s.mail.deleteMany,this.deleteManyMails),this.on(document,s.mail.recoverMany,this.recoverManyMails),this.on(document,s.mail.archiveMany,this.archiveManyMails),this.on(document,s.search.perform,this.newSearch),this.on(document,s.ui.tag.selected,this.fetchByTag),this.on(document,s.ui.tag.select,this.fetchByTag),this.on(document,s.ui.mails.refresh,this.refreshMails),this.on(document,s.ui.page.previous,this.previousPage),this.on(document,s.ui.page.next,this.nextPage),this.fetchByTag(null,{tag:o.getTag()})})}return t(l,r("refreshMails"))}),i("services/delete_service",["flight/lib/component","page/events","views/i18n"],function(t,e,i){"use strict";return t(function(){this.successDeleteMessageFor=function(t){return i(t.isInTrash()?"Your message was permanently deleted!":"Your message was moved to trash!")},this.successDeleteManyMessageFor=function(t){return i(t.isInTrash()?"Your messages were permanently deleted!":"Your messages were moved to trash!")},this.deleteEmail=function(t,i){this.trigger(document,e.mail["delete"],{mail:i.mail,successMessage:this.successDeleteMessageFor(i.mail)})},this.deleteManyEmails=function(t,i){var n=_.values(i.checkedMails),s=n[_.first(_.keys(n))];this.trigger(document,e.mail.deleteMany,{mails:n,successMessage:this.successDeleteManyMessageFor(s)})},this.after("initialize",function(){this.on(document,e.ui.mail["delete"],this.deleteEmail),this.on(document,e.ui.mail.deleteMany,this.deleteManyEmails)})})}),i("services/recover_service",["flight/lib/component","page/events","views/i18n"],function(t,e,i){"use strict";return t(function(){this.recoverManyEmails=function(t,n){var s=_.values(n.checkedMails);this.trigger(document,e.mail.recoverMany,{mails:s,successMessage:i("Your messages were moved to inbox!")})},this.after("initialize",function(){this.on(document,e.ui.mail.recoverMany,this.recoverManyEmails)})})}),i("tags/ui/tag",["flight/lib/component","views/templates","page/events","views/i18n"],function(t,e,i,n){"use strict";function s(){var t=["sent","trash","all"],s=["drafts"];this.displayBadge=function(e){return _.include(t,e.name)?!1:"total"===this.badgeType(e)?e.counts.total>0:e.counts.total-e.counts.read>0},this.badgeType=function(t){return _.include(s,t.name)?"total":"unread"},this.doUnselect=function(){this.$node.removeClass("selected")},this.doSelect=function(){this.$node.addClass("selected")},this.selectTag=function(t,e){this.attr.currentTag=e.tag,e.tag===this.attr.tag.name?this.doSelect():this.doUnselect()},this.selectTagAll=function(){this.selectTag(null,{tag:"all"})},this.viewFor=function(t,e,i){return e({tagName:t["default"]?n("tags."+t.name):t.name,ident:this.hashIdent(t.ident),count:"total"===this.badgeType(t)?t.counts.total:t.counts.total-t.counts.read,displayBadge:this.displayBadge(t),badgeType:this.badgeType(t),icon:t.icon,selected:t.name===i?"selected":""})},this.decreaseReadCountIfMatchingTag=function(t,i){var n=_.flatten([i.tags,i.mailbox]);_.contains(n,this.attr.tag.name)&&(this.attr.tag.counts.read++,this.$node.html(this.viewFor(this.attr.tag,e.tags.tagInner,this.attr.currentTag)),_.isUndefined(this.attr.shortcut)||this.attr.shortcut.reRender())},this.triggerSelect=function(){this.trigger(document,i.ui.tag.select,{tag:this.attr.tag.name}),this.removeSearchingClass()},this.addSearchingClass=function(){"all"===this.attr.tag.name&&this.$node.addClass("searching")},this.hashIdent=function(t){return"undefined"==typeof t?"":"number"==typeof t?t:t.match(/^[a-zA-Z0-9]+$/)?t:Math.abs(String(t).split("").reduce(function(t,e){return t=(t<<5)-t+e.charCodeAt(0),t&t},0))},this.removeSearchingClass=function(){"all"===this.attr.tag.name&&this.$node.removeClass("searching")},this.after("initialize",function(){this.on("click",this.triggerSelect),this.on(document,i.mail.read,this.decreaseReadCountIfMatchingTag),this.on(document,i.search.perform,this.addSearchingClass),this.on(document,i.search.empty,this.removeSearchingClass),this.on(document,i.ui.tag.select,this.selectTag),this.on(document,i.search.perform,this.selectTagAll),this.on(document,i.search.empty,this.selectTagAll)}),this.renderAndAttach=function(t,n){var s=this.viewFor(n.tag,e.tags.tag,n.currentTag);t.append(s),this.initialize("#tag-"+this.hashIdent(n.tag.ident),n),this.on(t,i.tags.teardown,this.teardown)}}var a=t(s);return a.appendedTo=function(t,e){var i=new this;return i.renderAndAttach(t,e),i},a}),i("tags/ui/tag_list",["flight/lib/component","tags/ui/tag","views/templates","page/events","page/router/url_params"],function(t,e,i,n,s){"use strict";function a(t){return o[t.name]||"999"+t.name}function r(){function t(t,i,n){var s=t["default"]?i:n;e.appendedTo(s,{tag:t,currentTag:this.getCurrentTag()})}function r(t){_.each(t,function(t){this.trigger(t,n.tags.teardown),t.empty()}.bind(this))}this.defaultAttrs({defaultTagList:"#default-tag-list",customTagList:"#custom-tag-list"}),this.renderTagList=function(e){var i=this.select("defaultTagList"),n=this.select("customTagList");r.call(this,[i,n]),e.forEach(function(e){t.call(this,e,i,n)}.bind(this))},this.displayTags=function(t,e){this.renderTagList(_.sortBy(e.tags,a))},this.getCurrentTag=function(){return this.attr.currentTag||s.getTag()},this.updateCurrentTag=function(t,e){this.attr.currentTag=e.tag},this.renderTagListTemplate=function(){this.$node.html(i.tags.tagList())},this.after("initialize",function(){this.on(document,n.tags.received,this.displayTags),this.on(document,n.ui.tag.select,this.updateCurrentTag),this.renderTagListTemplate()})}var o={inbox:"0",sent:"1",drafts:"2",trash:"3",all:"4"};return t(r)}),i("tags/data/tags",["flight/lib/component","page/events","helpers/monitored_ajax","mixins/with_feature_toggle","mixins/with_auto_refresh"],function(t,e,i,n,s){"use strict";function a(){function t(t){return function(i){i.push(r.all),t.trigger(document,e.tags.received,{tags:i})}}this.defaultAttrs({tagsResource:"/tags"}),this.fetchTags=function(e,n){i(this,this.attr.tagsResource).done(t(this))},this.refreshTags=function(){var t=null;this.fetchTags(t)},this.after("initialize",function(){this.on(document,e.tags.want,this.fetchTags),this.on(document,e.mail.sent,this.fetchTags)})}var r=t(a,n("tags",function(){$(document).trigger(e.ui.mails.refresh)}),s("refreshTags"));return r.all={name:"all",ident:"8752888923742657436",query:"in:all","default":!0,counts:{total:0,read:0,starred:0,replied:0}},r}),i("page/router",["flight/lib/component","page/events","page/router/url_params"],function(t,e,i){"use strict";return t(function(){function t(t){var e="/#/"+t.tag;return _.isUndefined(t.mailIdent)||(e+="/mail/"+t.mailIdent),e}function n(t,e){return{tag:t.tag||e&&e.tag||i.defaultTag(),mailIdent:t.mailIdent,query:t.query,isDisplayNoMessageSelected:!!t.isDisplayNoMessageSelected}}this.defaultAttrs({history:window.history}),this.pushState=function(e,i){if(!i.fromPopState){var s=n(i,this.attr.history.state);this.attr.history.pushState(s,"",t(s))}},this.popState=function(t){var n=t.state||{};this.trigger(document,e.ui.tag.select,{tag:n.tag||i.getTag(),mailIdent:n.mailIdent,fromPopState:!0}),t.state.isDisplayNoMessageSelected&&this.trigger(document,e.dispatchers.rightPane.openNoMessageSelectedWithoutPushState)},this.after("initialize",function(){this.on(document,e.router.pushState,this.pushState),this.on(document,e.ui.tag.select,this.pushState),this.on(document,e.search.perform,this.pushState),this.on(document,e.search.empty,this.pushState),window.onpopstate=this.popState.bind(this)})})}),i("mail_view/ui/draft_box",["flight/lib/component","views/templates","mixins/with_mail_edit_base","page/events","mail_view/data/mail_builder"],function(t,e,i,n,s){"use strict";function a(){this.defaultAttrs({closeMailButton:".close-mail-button"}),this.showNoMessageSelected=function(){this.trigger(n.dispatchers.rightPane.openNoMessageSelected)},this.buildMail=function(t){return this.builtMail(t).build()},this.builtMail=function(t){return s.newMail(this.attr.ident).subject(this.select("subjectBox").val()).to(this.attr.recipientValues.to).cc(this.attr.recipientValues.cc).bcc(this.attr.recipientValues.bcc).body(this.select("bodyBox").val()).attachment(this.attr.attachments).tag(t)},this.renderDraftBox=function(t,i){var s=i.mail,a=s.textPlainBody;this.attr.ident=s.ident,this.render(e.compose.box,{recipients:{to:s.header.to,cc:s.header.cc,bcc:s.header.bcc},subject:s.header.subject,body:a,attachments:this.convertToRemovableAttachments(s.attachments)});var r=this;this.$node.find("i.remove-icon").bind("click",function(t){var e=$(this),i=e.closest("li").attr("data-ident");r.trigger(document,n.mail.removeAttachment,{ident:i,element:e}),t.preventDefault()}),this.enableFloatlabel("input.floatlabel"),this.enableFloatlabel("textarea.floatlabel"),this.select("recipientsFields").show(),this.select("bodyBox").focus(),this.select("tipMsg").hide(),this.enableAutoSave(),this.bindCollapse(),this.on(this.select("closeMailButton"),"click",this.showNoMessageSelected)},this.convertToRemovableAttachments=function(t){return t.map(function(t){return t.removable=!0,t})},this.mailDeleted=function(t,e){_.contains(_.pluck(e.mails,"ident"),this.attr.ident)&&this.trigger(n.dispatchers.rightPane.openNoMessageSelected)},this.after("initialize",function(){this.on(this,n.mail.here,this.renderDraftBox),this.on(document,n.mail.sent,this.showNoMessageSelected),this.on(document,n.mail.deleted,this.mailDeleted),this.trigger(document,n.mail.want,{mail:this.attr.mailIdent,caller:this})})}return t(a,i)}),i("mail_view/ui/feedback_box",["flight/lib/component","views/templates","page/events","features"],function(t,e,i,n){"use strict";return t(function(){this.defaultAttrs({closeButton:".close-mail-button",submitButton:"#send-button",textBox:"#text-box"}),this.render=function(){this.$node.html(e.compose.feedback())},this.openFeedbackBox=function(){var t=this.reset("feedback-box");this.attachTo(t),this.enableFloatlabel("input.floatlabel"),this.enableFloatlabel("textarea.floatlabel")},this.showNoMessageSelected=function(){this.trigger(document,i.dispatchers.rightPane.openNoMessageSelected)},this.submitFeedback=function(){var t=this.select("textBox").val();this.trigger(document,i.feedback.submit,{feedback:t})},this.showSuccessMessage=function(){this.trigger(document,i.ui.userAlerts.displayMessage,{message:"Thanks for your feedback!"})},this.after("initialize",function(){n.isEnabled("feedback")&&(this.render(),this.on(document,i.dispatchers.rightPane.openFeedbackBox,this.openFeedbackBox),this.on(document,i.feedback.submitted,this.showNoMessageSelected),this.on(document,i.feedback.submitted,this.showSuccessMessage),this.on(this.select("closeButton"),"click",this.showNoMessageSelected),this.on(this.select("submitButton"),"click",this.submitFeedback))})})}),i("dispatchers/right_pane_dispatcher",["flight/lib/component","mail_view/ui/compose_box","mail_view/ui/mail_view","mail_view/ui/reply_section","mail_view/ui/draft_box","mail_view/ui/no_message_selected_pane","mail_view/ui/feedback_box","page/events"],function(t,e,i,n,s,a,r,o){"use strict";function l(){this.defaultAttrs({rightPane:"#right-pane",composeBox:"compose-box",feedbackBox:"feedback-box",mailView:"mail-view",noMessageSelectedPane:"no-message-selected-pane",replySection:"reply-section",draftBox:"draft-box",currentTag:""}),this.createAndAttach=function(t){var e=$("<div>",{id:t});return this.select("rightPane").append(e),e},this.reset=function(t){this.trigger(document,o.dispatchers.rightPane.clear),this.select("rightPane").empty();var e=this.createAndAttach(t);return e},this.openComposeBox=function(){var t=this.reset(this.attr.composeBox);e.attachTo(t,{currentTag:this.attr.currentTag})},this.openFeedbackBox=function(){var t=this.reset(this.attr.feedbackBox);r.attachTo(t)},this.openMail=function(t,e){var s=this.reset(this.attr.mailView);i.attachTo(s,e);var a=this.createAndAttach(this.attr.replySection);n.attachTo(a,{ident:e.ident})},this.initializeNoMessageSelectedPane=function(){var t=this.reset(this.attr.noMessageSelectedPane);a.attachTo(t),this.trigger(document,o.dispatchers.middlePane.cleanSelected)},this.openNoMessageSelectedPane=function(t,e){this.initializeNoMessageSelectedPane(),this.trigger(document,o.router.pushState,{tag:this.attr.currentTag,isDisplayNoMessageSelected:!0})},this.openDraft=function(t,e){var i=this.reset(this.attr.draftBox);s.attachTo(i,{mailIdent:e.ident,currentTag:this.attr.currentTag})},this.selectTag=function(t,e){this.trigger(document,o.ui.tags.loaded,{tag:e.tag})},this.saveTag=function(t,e){this.attr.currentTag=e.tag},this.after("initialize",function(){this.on(document,o.dispatchers.rightPane.openComposeBox,this.openComposeBox),this.on(document,o.dispatchers.rightPane.openDraft,this.openDraft),this.on(document,o.ui.mail.open,this.openMail),this.on(document,o.dispatchers.rightPane.openFeedbackBox,this.openFeedbackBox),this.on(document,o.dispatchers.rightPane.openNoMessageSelected,this.openNoMessageSelectedPane),this.on(document,o.dispatchers.rightPane.selectTag,this.selectTag),this.on(document,o.ui.tag.selected,this.saveTag),this.on(document,o.ui.tag.select,this.saveTag),this.on(document,o.dispatchers.rightPane.openNoMessageSelectedWithoutPushState,this.initializeNoMessageSelectedPane),this.initializeNoMessageSelectedPane()})}return t(l)}),i("helpers/triggering",[],function(){"use strict";return function(t,e,i,n){return function(){n?t.trigger(n,e,i||{}):t.trigger(e,i||{})}}}),i("dispatchers/middle_pane_dispatcher",["flight/lib/component","page/events","helpers/triggering","mail_view/ui/no_mails_available_pane"],function(t,e,i,n){"use strict";return t(function(){this.defaultAttrs({middlePane:"#middle-pane",noMailsAvailablePane:"no-mails-available-pane"}),this.createChildDiv=function(t){var e=$("<div>",{id:t});return this.select("middlePane").append(e),e},this.resetChildDiv=function(t){$("#"+t).remove()},this.refreshMailList=function(t,i){this.trigger(document,e.ui.mails.fetchByTag,i)},this.cleanSelected=function(t,i){this.trigger(document,e.ui.mails.cleanSelected)},this.resetScroll=function(){this.select("middlePane").scrollTop(0)},this.updateMiddlePaneHeight=function(){var t=$(window).height(),e=$("#main").outerHeight()+$("#top-pane").outerHeight();this.select("middlePane").css({height:t-e+"px"})},this.onMailsChange=function(t,e){if(this.resetChildDiv(this.attr.noMailsAvailablePane),e.mails.length>0)n.teardownAll();else{var i=this.createChildDiv(this.attr.noMailsAvailablePane);n.attachTo(i,{tag:e.tag,forSearch:e.forSearch})}},this.after("initialize",function(){this.on(document,e.dispatchers.middlePane.refreshMailList,this.refreshMailList),this.on(document,e.dispatchers.middlePane.cleanSelected,this.cleanSelected),this.on(document,e.dispatchers.middlePane.resetScroll,this.resetScroll),this.on(document,e.mails.available,this.onMailsChange),this.updateMiddlePaneHeight(),$(window).on("resize",this.updateMiddlePaneHeight.bind(this))})})}),i("dispatchers/left_pane_dispatcher",["flight/lib/component","page/router/url_params","page/events"],function(t,e,i){"use strict";function n(){var t=!1;this.refreshTagList=function(t,e){this.trigger(document,i.tags.want,{caller:this.$node,skipMailListRefresh:e.skipMailListRefresh})},this.loadTags=function(t,e){this.trigger(document,i.ui.tagList.load,e)},this.selectTag=function(t,n){var s=n&&n.tag||e.getTag();this.trigger(document,i.ui.tag.select,{tag:s,skipMailListRefresh:n.skipMailListRefresh})},this.pushUrlState=function(e,n){t&&this.trigger(document,i.router.pushState,n),t=!0},this.after("initialize",function(){this.on(document,i.dispatchers.tags.refreshTagList,this.refreshTagList),this.on(document,i.ui.tags.loaded,this.selectTag),this.on(document,i.ui.tag.selected,this.pushUrlState),this.on(document,i.ui.tag.select,this.pushUrlState),this.trigger(document,i.tags.want,{caller:this.$node})})}return t(n)}),i("search/search_trigger",["flight/lib/component","views/templates","page/events"],function(t,e,i){"use strict";function n(){var t="Search results for: ";this.defaultAttrs({input:"input[type=search]",form:"form"}),this.render=function(){this.$node.html(e.search.trigger())},this.search=function(t,e){this.trigger(document,i.search.resetHighlight),t.preventDefault();var n=this.select("input"),s=n.val();n.blur(),_.isEmpty(s)?this.trigger(document,i.search.empty):this.trigger(document,i.search.perform,{query:s})},this.clearInput=function(){this.select("input").val("")},this.showOnlySearchTerms=function(e){var i=this.select("input").val(),n=i.slice(t.length);this.select("input").val(n)},this.showSearchTermsAndPlaceHolder=function(e){var i=this.select("input").val();i.length>0&&this.select("input").val(t+i)},this.after("initialize",function(){this.render(),this.on(this.select("form"),"submit",this.search),this.on(this.select("input"),"focus",this.showOnlySearchTerms),
+this.on(this.select("input"),"blur",this.showSearchTermsAndPlaceHolder),this.on(document,i.ui.tag.selected,this.clearInput),this.on(document,i.ui.tag.select,this.clearInput)})}return t(n)}),i("search/results_highlighter",["flight/lib/component","page/events"],function(t,e){"use strict";function i(){function t(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}this.defaultAttrs({keywords:[]}),this.getKeywordsSearch=function(t,e){this.attr.keywords=e.query.split(" ").map(function(t){return t.toLowerCase()})},this.highlightResults=function(e,i){var n=i.where;this.attr.keywords&&_.each(this.attr.keywords,function(e){e=t(e),$(n).highlightRegex(new RegExp(e,"i"),{tagType:"em",className:"search-highlight"})})},this.clearHighlights=function(t,e){this.attr.keywords=[],_.each($("em.search-highlight"),function(t){var e=$(t),i=e.text();e.replaceWith(i)})},this.highlightString=function(e){return _.each(this.attr.keywords,function(i){i=t(i);var n=new RegExp("("+i+")","ig");e=e.replace(n,'<em class="search-highlight">$1</em>')}),e},this.highlightMailContent=function(t,i){var n=i.mail;n.textPlainBody=this.highlightString(n.textPlainBody),this.trigger(document,e.mail.display,i)},this.after("initialize",function(){this.on(document,e.search.perform,this.getKeywordsSearch),this.on(document,e.ui.tag.select,this.clearHighlights),this.on(document,e.search.resetHighlight,this.clearHighlights),this.on(document,e.search.highlightResults,this.highlightResults),this.on(document,e.mail.highlightMailContent,this.highlightMailContent)})}return t(i)}),i("foundation/off_canvas",["flight/lib/component","page/events"],function(t,e){"use strict";return t(function(){this.closeSlider=function(t){$(".off-canvas-wrap.content").removeClass("move-right"),this.toggleTagsVisibility()},this.toggleSlideContent=function(t){t.preventDefault(),$(".left-off-canvas-toggle").click(),this.toggleTagsVisibility()},this.toggleTagsVisibility=function(){$(".off-canvas-wrap.content").hasClass("move-right")?$("#custom-tag-list").addClass("expanded"):$("#custom-tag-list").removeClass("expanded")},this.after("initialize",function(){this.on($("#middle-pane-container"),"click",this.closeSlider),this.on($("#right-pane"),"click",this.closeSlider),this.on($(".side-nav-toggle"),"click",this.toggleSlideContent)})})}),i("page/pane_contract_expand",["flight/lib/component","page/events"],function(t,e){"use strict";function i(){this.defaultAttrs({RIGHT_PANE_EXPAND_CLASSES:"small-7 medium-7 large-7 columns",RIGHT_PANE_CONTRACT_CLASSES:"small-7 medium-4 large-4 columns",MIDDLE_PANE_EXPAND_CLASSES:"small-5 medium-8 large-8 columns no-padding",MIDDLE_PANE_CONTRACT_CLASSES:"small-5 medium-5 large-5 columns no-padding"}),this.expandMiddlePaneContractRightPane=function(){$("#middle-pane-container").attr("class",this.attr.MIDDLE_PANE_EXPAND_CLASSES),$("#right-pane").attr("class",this.attr.RIGHT_PANE_CONTRACT_CLASSES)},this.contractMiddlePaneExpandRightPane=function(){$("#middle-pane-container").attr("class",this.attr.MIDDLE_PANE_CONTRACT_CLASSES),$("#right-pane").attr("class",this.attr.RIGHT_PANE_EXPAND_CLASSES)},this.after("initialize",function(){this.on(document,e.ui.mail.open,this.contractMiddlePaneExpandRightPane),this.on(document,e.dispatchers.rightPane.openComposeBox,this.contractMiddlePaneExpandRightPane),this.on(document,e.dispatchers.rightPane.openDraft,this.contractMiddlePaneExpandRightPane),this.on(document,e.dispatchers.rightPane.openFeedbackBox,this.contractMiddlePaneExpandRightPane),this.on(document,e.dispatchers.rightPane.openNoMessageSelected,this.expandMiddlePaneContractRightPane),this.expandMiddlePaneContractRightPane()})}return t(i)}),i("views/recipientListFormatter",[],function(){"use strict";Handlebars.registerHelper("formatRecipients",function(t){function e(t,e){return function(i){return t+Handlebars.Utils.escapeExpression(i)+e}}var i=_.map(t.to,e('<span class="to">',"</span>")),n=_.map(t.cc,e('<span class="cc">cc: ',"</span>")),s=_.map(t.bcc,e('<span class="bcc">bcc: ',"</span>"));return new Handlebars.SafeString(i.concat(n,s).join(", "))})}),i("user_settings/data/user_settings",["flight/lib/component","helpers/monitored_ajax","page/events"],function(t,e,i){"use strict";return t(function(){this.defaultAttrs({userSettingsResource:"/user-settings",userSettings:{}}),this.sendInfo=function(){this.trigger(document,i.userSettings.here,this.attr.userSettings)},this.getUserSettings=function(){var t=function(t){this.attr.userSettings=t};e(this,this.attr.userSettingsResource,{type:"GET",contentType:"application/json; charset=utf-8"}).done(t.bind(this))},this.after("initialize",function(){this.getUserSettings(),this.on(document,i.userSettings.getInfo,this.sendInfo)})})}),i("user_settings/ui/user_settings_box",["flight/lib/component","features","views/templates","page/events","helpers/monitored_ajax"],function(t,e,i,n,s){"use strict";return t(function(){this.defaultAttrs({close:"#user-settings-close",userSettingsBoxContainer:"#user-settings-box"}),this.render=function(t,s){function a(t,e){return t.parentNode===e?!0:null===t.parentNode?!1:a(t.parentNode,e)}e.isLogoutEnabled()&&this.$node.addClass("extra-bottom-space"),this.$node.addClass("arrow-box"),this.$node.html(i.page.userSettingsBox(s)),this.on(this.attr.close,"click",function(){this.trigger(document,n.userSettings.destroyPopup)}),this.on(document,"click",function(t){var e=$(this.attr.userSettingsBoxContainer).get(0),i=t.target||t.srcElement;i===e||a(i,e)||this.destroy()})},this.destroy=function(){this.$node.remove(),this.teardown()},this.after("initialize",function(){this.on(document,n.userSettings.here,this.render),this.on(document,n.userSettings.destroyPopup,this.destroy),this.trigger(document,n.userSettings.getInfo)})})}),i("user_settings/ui/user_settings_icon",["flight/lib/component","views/templates","page/events","user_settings/ui/user_settings_box"],function(t,e,i,n){"use strict";return t(function(){this.defaultAttrs({userSettingsBox:$("#user-settings-box")}),this.render=function(){this.$node.html(e.page.userSettingsIcon())},this.toggleUserSettingsBox=function(){if(0===this.attr.userSettingsBox.children().length){var t=$("<div>");$(this.attr.userSettingsBox).append(t),n.attachTo(t),this.attr.userSettingsInfo=n}else this.trigger(document,i.userSettings.destroyPopup)},this.triggerToggleUserSettingsBox=function(t){this.trigger(document,i.ui.userSettingsBox.toggle),t.stopPropagation()},this.after("initialize",function(){this.render(),this.on("click",this.triggerToggleUserSettingsBox),this.on(document,i.ui.userSettingsBox.toggle,this.toggleUserSettingsBox)})})}),i("page/logout",["flight/lib/component","features","views/templates","helpers/browser"],function(t,e,i,n){"use strict";return t(function(){this.defaultAttrs({form:"#logout-form"}),this.render=function(){var t=i.page.logout({logout_url:e.getLogoutUrl(),csrf_token:n.getCookie("XSRF-TOKEN")});this.$node.html(t)},this.logout=function(){this.select("form").submit()},this.after("initialize",function(){e.isLogoutEnabled()&&(this.render(),this.on(this.$node,"click",this.logout))})})}),i("page/logout_shortcut",["flight/lib/component","features","views/templates"],function(t,e,i){"use strict";return t(function(){this.render=function(){if(e.isLogoutEnabled()){var t=i.page.logoutShortcut();this.$node.html(t)}},this.after("initialize",function(){this.render()})})}),i("feedback/feedback_trigger",["flight/lib/component","views/templates","page/events","features"],function(t,e,i,n){"use strict";return t(function(){this.render=function(){this.$node.html(e.feedback.feedback())},this.onClick=function(){this.trigger(document,i.dispatchers.rightPane.openFeedbackBox)},this.after("initialize",function(){n.isEnabled("feedback")&&(this.render(),this.on("click",this.onClick))})})}),i("mail_view/data/feedback_sender",["flight/lib/component","helpers/monitored_ajax","page/events"],function(t,e,i){"use strict";return t(function(){this.defaultAttrs({feedbackResource:"/feedback"}),this.successSubmittingFeedback=function(){this.trigger(document,i.feedback.submitted)},this.submitFeedback=function(t,i){e.call(_,this,this.attr.feedbackResource,{type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(i)}).done(this.successSubmittingFeedback())},this.after("initialize",function(){this.on(document,i.feedback.submit,this.submitFeedback)})})}),i("page/version",["flight/lib/component","views/templates"],function(t,e){"use strict";return t(function(){this.render=function(){this.$node.html(e.page.version())},this.after("initialize",function(){this.render()})})}),i("page/unread_count_title",["flight/lib/component","page/events"],function(t,e){"use strict";return t(function(){this.getTitleText=function(){return document.title},this.updateCount=function(t,e){var i=e.mails.filter(function(t){return-1===t.status.indexOf("read")}).length,n=this.toTitleCase(e.tag),s=i>0?" ("+i+") - ":" - ";document.title=n+s+this.rawTitle},this.toTitleCase=function(t){return t.replace(/\b\w/g,function(t){return t.toUpperCase()})},this.after("initialize",function(){this.rawTitle=document.title,this.on(document,e.mails.available,this.updateCount)})})}),i("page/pix_logo",["flight/lib/component","page/events"],function(t,e){"use strict";function i(){this.turnAnimationOn=function(){$(".logo-part-animation-off").attr("class","logo-part-animation-on")},this.turnAnimationOff=function(){setTimeout(function(){$(".logo-part-animation-on").attr("class","logo-part-animation-off")},600)},this.triggerSpinLogo=function(t,i){this.trigger(document,e.ui.page.spinLogo)},this.triggerStopSpinningLogo=function(t,i){this.trigger(document,e.ui.page.stopSpinningLogo)},this.after("initialize",function(){this.on(document,e.ui.page.spinLogo,this.turnAnimationOn),this.on(document,e.ui.page.stopSpinningLogo,this.turnAnimationOff),this.on(document,e.ui.tag.select,this.triggerSpinLogo),this.on(document,e.mails.available,this.triggerStopSpinningLogo),this.on(document,e.mail.saveDraft,this.triggerSpinLogo),this.on(document,e.mail.draftSaved,this.triggerStopSpinningLogo),this.on(document,e.ui.mail.open,this.triggerSpinLogo),this.on(document,e.dispatchers.rightPane.openDraft,this.triggerSpinLogo),this.on(document,e.search.perform,this.triggerSpinLogo),this.on(document,e.mail.want,this.triggerStopSpinningLogo)})}return t(i)}),i("page/default",["mail_view/ui/compose_box","mail_list_actions/ui/mail_list_actions","user_alerts/ui/user_alerts","mail_list/ui/mail_list","mail_view/ui/no_message_selected_pane","mail_view/ui/no_mails_available_pane","mail_view/ui/mail_view","mail_view/ui/mail_actions","mail_view/ui/reply_section","mail_view/data/mail_sender","services/mail_service","services/delete_service","services/recover_service","tags/ui/tag_list","tags/data/tags","page/router","dispatchers/right_pane_dispatcher","dispatchers/middle_pane_dispatcher","dispatchers/left_pane_dispatcher","search/search_trigger","search/results_highlighter","foundation/off_canvas","page/pane_contract_expand","views/i18n","views/recipientListFormatter","flight/lib/logger","user_settings/data/user_settings","user_settings/ui/user_settings_icon","page/logout","page/logout_shortcut","feedback/feedback_trigger","mail_view/ui/feedback_box","mail_view/data/feedback_sender","page/version","page/unread_count_title","page/pix_logo","helpers/browser"],function(t,e,i,n,s,a,r,o,l,c,u,h,d,p,f,g,m,v,b,_,y,w,x,k,C,S,D,T,A,E,M,P,I,N,F,O,R){"use strict";function j(t){k.init(t+"/assets/"),x.attachTo(document),i.attachTo("#user-alerts"),n.attachTo("#mail-list"),e.attachTo("#list-actions"),_.attachTo("#search-trigger"),y.attachTo(document),c.attachTo(document),u.attachTo(document),h.attachTo(document),d.attachTo(document),f.attachTo(document),p.attachTo("#tag-list"),g.attachTo(document),m.attachTo(document),v.attachTo(document),b.attachTo(document),w.attachTo(document),D.attachTo(document),T.attachTo("#user-settings-icon"),A.attachTo("#logout"),E.attachTo("#logout-shortcut"),N.attachTo(".version"),M.attachTo("#feedback"),I.attachTo(document),F.attachTo(document),O.attachTo(document),$.ajaxSetup({headers:{"X-XSRF-TOKEN":R.getCookie("XSRF-TOKEN")}})}return j}),function(){"use strict";Array.prototype.remove=function(t,e){var i=this.slice((e||t)+1||this.length);return this.length=0>t?this.length+t:t,this.push.apply(this,i)}}(),i("js/monkey_patching/array",function(){}),function(){"use strict";var t=window.postMessage;window.postMessage=function(e,i){try{t(e,i)}catch(n){console.log(e,i)}}}(),i("js/monkey_patching/post_message",function(){}),e(["js/monkey_patching/array","js/monkey_patching/post_message"],function(){}),i("js/monkey_patching/all",function(){}),t.config({baseUrl:"../assets/",paths:{mail_list:"js/mail_list",page:"js/page",feedback:"js/feedback",flight:"bower_components/flight",DOMPurify:"bower_components/DOMPurify/dist/purify.min",he:"bower_components/he/he",hbs:"js/generated/hbs",helpers:"js/helpers",lib:"js/lib",views:"js/views",tags:"js/tags",mail_list_actions:"js/mail_list_actions",user_alerts:"js/user_alerts",mail_view:"js/mail_view",dispatchers:"js/dispatchers",services:"js/services",mixins:"js/mixins",search:"js/search",foundation:"js/foundation",features:"js/features/features",i18next:"bower_components/i18next/i18next.amd","quoted-printable":"bower_components/quoted-printable",utf8:"bower_components/utf8",user_settings:"js/user_settings"}}),e(["flight/lib/compose","flight/lib/debug"],function(t,e){"use strict";e.enable(!0),e.events.logAll()}),e(["flight/lib/compose","flight/lib/registry","flight/lib/advice","flight/lib/logger","flight/lib/debug","page/events","page/default","js/monkey_patching/all"],function(t,e,i,n,s,a,r,o){"use strict";window.Pixelated=window.Pixelated||{},window.Pixelated.events=a,t.mixin(e,[i.withAdvice,n]),s.enable(!0),s.events.logAll(),r("")}),i("js/main",function(){})}();