RSS Git Download  Clone
Raw Blame History
// Namespace the entire FontPrep frontend.
// -------------------------------------------
var FP=FP||{};FP.Routes={};FP.Views={};FP.Views.App={};FP.Views.Viewer={};window.pageHasLoaded=!1;FP.Routes={fontrows:"/misc/fontrows",license:"/license",upload:"/upload",openURL:"/applescript/open-url",alert:"/applescript/alert",viewer:"/view",copyCharacter:"/applescript/copy-character",characters:"/misc/drawer-characters",characterCodes:"/font/codes",remove:"/font/remove",removeAll:"/font/remove-all",installFont:"/font/install",exportFont:"/font/export",exportGroup:"/font/export-group",exportSubset:"/font/export-subset",settingsSet:"/settings/set",settingsSetPath:"/settings/set-path",settingsTheme:"/settings/set-theme"};(function(e,t){function H(e){var t=e.length,n=w.type(e);return w.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function j(e){var t=B[e]={};w.each(e.match(S)||[],function(e,n){t[n]=!0});return t}function q(e,n,r,i){if(!w.acceptData(e))return;var s,o,u=w.expando,a=e.nodeType,f=a?w.cache:e,l=a?e[u]:e[u]&&u;if((!l||!f[l]||!i&&!f[l].data)&&r===t&&typeof n=="string")return;l||(a?l=e[u]=c.pop()||w.guid++:l=u);f[l]||(f[l]=a?{}:{toJSON:w.noop});if(typeof n=="object"||typeof n=="function")i?f[l]=w.extend(f[l],n):f[l].data=w.extend(f[l].data,n);o=f[l];if(!i){o.data||(o.data={});o=o.data}r!==t&&(o[w.camelCase(n)]=r);if(typeof n=="string"){s=o[n];s==null&&(s=o[w.camelCase(n)])}else s=o;return s}function R(e,t,n){if(!w.acceptData(e))return;var r,i,s=e.nodeType,o=s?w.cache:e,u=s?e[w.expando]:w.expando;if(!o[u])return;if(t){r=n?o[u]:o[u].data;if(r){if(!w.isArray(t))if(t in r)t=[t];else{t=w.camelCase(t);t in r?t=[t]:t=t.split(" ")}else t=t.concat(w.map(t,w.camelCase));i=t.length;while(i--)delete r[t[i]];if(n?!z(r):!w.isEmptyObject(r))return}}if(!n){delete o[u].data;if(!z(o[u]))return}s?w.cleanData([e],!0):w.support.deleteExpando||o!=o.window?delete o[u]:o[u]=null}function U(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(I,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:F.test(r)?w.parseJSON(r):r}catch(s){}w.data(e,n,r)}else r=t}return r}function z(e){var t;for(t in e){if(t==="data"&&w.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function it(){return!0}function st(){return!1}function ot(){try{return o.activeElement}catch(e){}}function ct(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ht(e,t,n){if(w.isFunction(t))return w.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return w.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(ut.test(t))return w.filter(t,e,n);t=w.filter(t,e)}return w.grep(e,function(e){return w.inArray(e,t)>=0!==n})}function pt(e){var t=dt.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Mt(e,t){return w.nodeName(e,"table")&&w.nodeName(t.nodeType===1?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _t(e){e.type=(w.find.attr(e,"type")!==null)+"/"+e.type;return e}function Dt(e){var t=Ct.exec(e.type);t?e.type=t[1]:e.removeAttribute("type");return e}function Pt(e,t){var n,r=0;for(;(n=e[r])!=null;r++)w._data(n,"globalEval",!t||w._data(t[r],"globalEval"))}function Ht(e,t){if(t.nodeType!==1||!w.hasData(e))return;var n,r,i,s=w._data(e),o=w._data(t,s),u=s.events;if(u){delete o.handle;o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)w.event.add(t,n,u[n][r])}o.data&&(o.data=w.extend({},o.data))}function Bt(e,t){var n,r,i;if(t.nodeType!==1)return;n=t.nodeName.toLowerCase();if(!w.support.noCloneEvent&&t[w.expando]){i=w._data(t);for(r in i.events)w.removeEvent(t,r,i.handle);t.removeAttribute(w.expando)}if(n==="script"&&t.text!==e.text){_t(t).text=e.text;Dt(t)}else if(n==="object"){t.parentNode&&(t.outerHTML=e.outerHTML);w.support.html5Clone&&e.innerHTML&&!w.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)}else if(n==="input"&&xt.test(e.type)){t.defaultChecked=t.checked=e.checked;t.value!==e.value&&(t.value=e.value)}else if(n==="option")t.defaultSelected=t.selected=e.defaultSelected;else if(n==="input"||n==="textarea")t.defaultValue=e.defaultValue}function jt(e,n){var r,s,o=0,u=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!u)for(u=[],r=e.childNodes||e;(s=r[o])!=null;o++)!n||w.nodeName(s,n)?u.push(s):w.merge(u,jt(s,n));return n===t||n&&w.nodeName(e,n)?w.merge([e],u):u}function Ft(e){xt.test(e.type)&&(e.defaultChecked=e.checked)}function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--){t=en[i]+n;if(t in e)return t}return r}function nn(e,t){e=t||e;return w.css(e,"display")==="none"||!w.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,s=[],o=0,u=e.length;for(;o<u;o++){r=e[o];if(!r.style)continue;s[o]=w._data(r,"olddisplay");n=r.style.display;if(t){!s[o]&&n==="none"&&(r.style.display="");r.style.display===""&&nn(r)&&(s[o]=w._data(r,"olddisplay",an(r.nodeName)))}else if(!s[o]){i=nn(r);(n&&n!=="none"||!i)&&w._data(r,"olddisplay",i?n:w.css(r,"display"))}}for(o=0;o<u;o++){r=e[o];if(!r.style)continue;if(!t||r.style.display==="none"||r.style.display==="")r.style.display=t?s[o]||"":"none"}return e}function sn(e,t,n){var r=$t.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function on(e,t,n,r,i){var s=n===(r?"border":"content")?4:t==="width"?1:0,o=0;for(;s<4;s+=2){n==="margin"&&(o+=w.css(e,n+Zt[s],!0,i));if(r){n==="content"&&(o-=w.css(e,"padding"+Zt[s],!0,i));n!=="margin"&&(o-=w.css(e,"border"+Zt[s]+"Width",!0,i))}else{o+=w.css(e,"padding"+Zt[s],!0,i);n!=="padding"&&(o+=w.css(e,"border"+Zt[s]+"Width",!0,i))}}return o}function un(e,t,n){var r=!0,i=t==="width"?e.offsetWidth:e.offsetHeight,s=qt(e),o=w.support.boxSizing&&w.css(e,"boxSizing",!1,s)==="border-box";if(i<=0||i==null){i=Rt(e,t,s);if(i<0||i==null)i=e.style[t];if(Jt.test(i))return i;r=o&&(w.support.boxSizingReliable||i===e.style[t]);i=parseFloat(i)||0}return i+on(e,t,n||(o?"border":"content"),r,s)+"px"}function an(e){var t=o,n=Qt[e];if(!n){n=fn(e,t);if(n==="none"||!n){It=(It||w("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement);t=(It[0].contentWindow||It[0].contentDocument).document;t.write("<!doctype html><html><body>");t.close();n=fn(e,t);It.detach()}Qt[e]=n}return n}function fn(e,t){var n=w(t.createElement(e)).appendTo(t.body),r=w.css(n[0],"display");n.remove();return r}function vn(e,t,n,r){var i;if(w.isArray(t))w.each(t,function(t,i){n||cn.test(e)?r(e,i):vn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&w.type(t)==="object")for(i in t)vn(e+"["+i+"]",t[i],n,r);else r(e,t)}function _n(e){return function(t,n){if(typeof t!="string"){n=t;t="*"}var r,i=0,s=t.toLowerCase().match(S)||[];if(w.isFunction(n))while(r=s[i++])if(r[0]==="+"){r=r.slice(1)||"*";(e[r]=e[r]||[]).unshift(n)}else(e[r]=e[r]||[]).push(n)}}function Dn(e,t,n,r){function o(u){var a;i[u]=!0;w.each(e[u]||[],function(e,u){var f=u(t,n,r);if(typeof f=="string"&&!s&&!i[f]){t.dataTypes.unshift(f);o(f);return!1}if(s)return!(a=f)});return a}var i={},s=e===An;return o(t.dataTypes[0])||!i["*"]&&o("*")}function Pn(e,n){var r,i,s=w.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((s[i]?e:r||(r={}))[i]=n[i]);r&&w.extend(!0,e,r);return e}function Hn(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes;while(f[0]==="*"){f.shift();s===t&&(s=e.mimeType||n.getResponseHeader("Content-Type"))}if(s)for(u in a)if(a[u]&&a[u].test(s)){f.unshift(u);break}if(f[0]in r)o=f[0];else{for(u in r){if(!f[0]||e.converters[u+" "+f[0]]){o=u;break}i||(i=u)}o=o||i}if(o){o!==f[0]&&f.unshift(o);return r[o]}}function Bn(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s){e.responseFields[s]&&(n[e.responseFields[s]]=t);!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType));a=s;s=l.shift();if(s)if(s==="*")s=a;else if(a!=="*"&&a!==s){o=f[a+" "+s]||f["* "+s];if(!o)for(i in f){u=i.split(" ");if(u[1]===s){o=f[a+" "+u[0]]||f["* "+u[0]];if(o){if(o===!0)o=f[i];else if(f[i]!==!0){s=u[0];l.unshift(u[1])}break}}}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}}return{state:"success",data:t}}function zn(){try{return new e.XMLHttpRequest}catch(t){}}function Wn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function Yn(){setTimeout(function(){Xn=t});return Xn=w.now()}function Zn(e,t,n){var r,i=(Gn[t]||[]).concat(Gn["*"]),s=0,o=i.length;for(;s<o;s++)if(r=i[s].call(n,t,e))return r}function er(e,t,n){var r,i,s=0,o=Qn.length,u=w.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=Xn||Yn(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;o<a;o++)f.tweens[o].run(s);u.notifyWith(e,[f,s,n]);if(s<1&&a)return n;u.resolveWith(e,[f]);return!1},f=u.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Yn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);f.tweens.push(r);return r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;i=!0;for(;n<r;n++)f.tweens[n].run(1);t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]);return this}}),l=f.props;tr(l,f.opts.specialEasing);for(;s<o;s++){r=Qn[s].call(f,e,l,f.opts);if(r)return r}w.map(l,Zn,f);w.isFunction(f.opts.start)&&f.opts.start.call(e,f);w.fx.timer(w.extend(a,{elem:e,anim:f,queue:f.opts.queue}));return f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function tr(e,t){var n,r,i,s,o;for(n in e){r=w.camelCase(n);i=t[r];s=e[n];if(w.isArray(s)){i=s[1];s=e[n]=s[0]}if(n!==r){e[r]=s;delete e[n]}o=w.cssHooks[r];if(o&&"expand"in o){s=o.expand(s);delete e[r];for(n in s)if(!(n in e)){e[n]=s[n];t[n]=i}}else t[r]=i}}function nr(e,t,n){var r,i,s,o,u,a,f=this,l={},c=e.style,h=e.nodeType&&nn(e),p=w._data(e,"fxshow");if(!n.queue){u=w._queueHooks(e,"fx");if(u.unqueued==null){u.unqueued=0;a=u.empty.fire;u.empty.fire=function(){u.unqueued||a()}}u.unqueued++;f.always(function(){f.always(function(){u.unqueued--;w.queue(e,"fx").length||u.empty.fire()})})}if(e.nodeType===1&&("height"in t||"width"in t)){n.overflow=[c.overflow,c.overflowX,c.overflowY];w.css(e,"display")==="inline"&&w.css(e,"float")==="none"&&(!w.support.inlineBlockNeedsLayout||an(e.nodeName)==="inline"?c.display="inline-block":c.zoom=1)}if(n.overflow){c.overflow="hidden";w.support.shrinkWrapBlocks||f.always(function(){c.overflow=n.overflow[0];c.overflowX=n.overflow[1];c.overflowY=n.overflow[2]})}for(r in t){i=t[r];if($n.exec(i)){delete t[r];s=s||i==="toggle";if(i===(h?"hide":"show"))continue;l[r]=p&&p[r]||w.style(e,r)}}if(!w.isEmptyObject(l)){p?"hidden"in p&&(h=p.hidden):p=w._data(e,"fxshow",{});s&&(p.hidden=!h);h?w(e).show():f.done(function(){w(e).hide()});f.done(function(){var t;w._removeData(e,"fxshow");for(t in l)w.style(e,t,l[t])});for(r in l){o=Zn(h?p[r]:0,r,f);if(!(r in p)){p[r]=o.start;if(h){o.end=o.start;o.start=r==="width"||r==="height"?1:0}}}}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}function ir(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t){n=Zt[i];r["margin"+n]=r["padding"+n]=e}t&&(r.opacity=r.width=e);return r}function sr(e){return w.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=typeof t,s=e.location,o=e.document,u=o.documentElement,a=e.jQuery,f=e.$,l={},c=[],h="1.10.2",p=c.concat,d=c.push,v=c.slice,m=c.indexOf,g=l.toString,y=l.hasOwnProperty,b=h.trim,w=function(e,t){return new w.fn.init(e,t,r)},E=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,S=/\S+/g,x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,N=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,C=/^[\],:{}\s]*$/,k=/(?:^|:|,)(?:\s*\[)+/g,L=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,O=/^-ms-/,M=/-([\da-z])/gi,_=function(e,t){return t.toUpperCase()},D=function(e){if(o.addEventListener||e.type==="load"||o.readyState==="complete"){P();w.ready()}},P=function(){if(o.addEventListener){o.removeEventListener("DOMContentLoaded",D,!1);e.removeEventListener("load",D,!1)}else{o.detachEvent("onreadystatechange",D);e.detachEvent("onload",D)}};w.fn=w.prototype={jquery:h,constructor:w,init:function(e,n,r){var i,s;if(!e)return this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?i=[null,e,null]:i=T.exec(e);if(i&&(i[1]||!n)){if(i[1]){n=n instanceof w?n[0]:n;w.merge(this,w.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0));if(N.test(i[1])&&w.isPlainObject(n))for(i in n)w.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}s=o.getElementById(i[2]);if(s&&s.parentNode){if(s.id!==i[2])return r.find(e);this.length=1;this[0]=s}this.context=o;this.selector=e;return this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}if(e.nodeType){this.context=this[0]=e;this.length=1;return this}if(w.isFunction(e))return r.ready(e);if(e.selector!==t){this.selector=e.selector;this.context=e.context}return w.makeArray(e,this)},selector:"",length:0,toArray:function(){return v.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);t.prevObject=this;t.context=this.context;return t},each:function(e,t){return w.each(this,e,t)},ready:function(e){w.ready.promise().done(e);return this},slice:function(){return this.pushStack(v.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice};w.fn.init.prototype=w.fn;w.extend=w.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;if(typeof u=="boolean"){l=u;u=arguments[1]||{};a=2}typeof u!="object"&&!w.isFunction(u)&&(u={});if(f===a){u=this;--a}for(;a<f;a++)if((s=arguments[a])!=null)for(i in s){e=u[i];r=s[i];if(u===r)continue;if(l&&r&&(w.isPlainObject(r)||(n=w.isArray(r)))){if(n){n=!1;o=e&&w.isArray(e)?e:[]}else o=e&&w.isPlainObject(e)?e:{};u[i]=w.extend(l,o,r)}else r!==t&&(u[i]=r)}return u};w.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),noConflict:function(t){e.$===w&&(e.$=f);t&&e.jQuery===w&&(e.jQuery=a);return w},isReady:!1,readyWait:1,holdReady:function(e){e?w.readyWait++:w.ready(!0)},ready:function(e){if(e===!0?--w.readyWait:w.isReady)return;if(!o.body)return setTimeout(w.ready);w.isReady=!0;if(e!==!0&&--w.readyWait>0)return;n.resolveWith(o,[w]);w.fn.trigger&&w(o).trigger("ready").off("ready")},isFunction:function(e){return w.type(e)==="function"},isArray:Array.isArray||function(e){return w.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):typeof e=="object"||typeof e=="function"?l[g.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||w.type(e)!=="object"||e.nodeType||w.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(w.support.ownLast)for(n in e)return y.call(e,n);for(n in e);return n===t||y.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||typeof e!="string")return null;if(typeof t=="boolean"){n=t;t=!1}t=t||o;var r=N.exec(e),i=!n&&[];if(r)return[t.createElement(r[1])];r=w.buildFragment([e],t,i);i&&w(i).remove();return w.merge([],r.childNodes)},parseJSON:function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(t===null)return t;if(typeof t=="string"){t=w.trim(t);if(t&&C.test(t.replace(L,"@").replace(A,"]").replace(k,"")))return(new Function("return "+t))()}w.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{if(e.DOMParser){i=new DOMParser;r=i.parseFromString(n,"text/xml")}else{r=new ActiveXObject("Microsoft.XMLDOM");r.async="false";r.loadXML(n)}}catch(s){r=t}(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&w.error("Invalid XML: "+n);return r},noop:function(){},globalEval:function(t){t&&w.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(O,"ms-").replace(M,_)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=H(e);if(n)if(o)for(;i<s;i++){r=t.apply(e[i],n);if(r===!1)break}else for(i in e){r=t.apply(e[i],n);if(r===!1)break}else if(o)for(;i<s;i++){r=t.call(e[i],i,e[i]);if(r===!1)break}else for(i in e){r=t.call(e[i],i,e[i]);if(r===!1)break}return e},trim:b&&!b.call(" ")?function(e){return e==null?"":b.call(e)}:function(e){return e==null?"":(e+"").replace(x,"")},makeArray:function(e,t){var n=t||[];e!=null&&(H(Object(e))?w.merge(n,typeof e=="string"?[e]:e):d.call(n,e));return n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);r=t.length;n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];e.length=i;return e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++){r=!!t(e[s],s);n!==r&&i.push(e[s])}return i},map:function(e,t,n){var r,i=0,s=e.length,o=H(e),u=[];if(o)for(;i<s;i++){r=t(e[i],i,n);r!=null&&(u[u.length]=r)}else for(i in e){r=t(e[i],i,n);r!=null&&(u[u.length]=r)}return p.apply([],u)},guid:1,proxy:function(e,n){var r,i,s;if(typeof n=="string"){s=e[n];n=e;e=s}if(!w.isFunction(e))return t;r=v.call(arguments,2);i=function(){return e.apply(n||this,r.concat(v.call(arguments)))};i.guid=e.guid=e.guid||w.guid++;return i},access:function(e,n,r,i,s,o,u){var a=0,f=e.length,l=r==null;if(w.type(r)==="object"){s=!0;for(a in r)w.access(e,n,a,r[a],!0,o,u)}else if(i!==t){s=!0;w.isFunction(i)||(u=!0);if(l)if(u){n.call(e,i);n=null}else{l=n;n=function(e,t,n){return l.call(w(e),n)}}if(n)for(;a<f;a++)n(e[a],r,u?i:i.call(e[a],a,n(e[a],r)))}return s?e:l?n.call(e):f?n(e[0],r):o},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,s,o={};for(s in t){o[s]=e.style[s];e.style[s]=t[s]}i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i}});w.ready.promise=function(t){if(!n){n=w.Deferred();if(o.readyState==="complete")setTimeout(w.ready);else if(o.addEventListener){o.addEventListener("DOMContentLoaded",D,!1);e.addEventListener("load",D,!1)}else{o.attachEvent("onreadystatechange",D);e.attachEvent("onload",D);var r=!1;try{r=e.frameElement==null&&o.documentElement}catch(i){}r&&r.doScroll&&function s(){if(!w.isReady){try{r.doScroll("left")}catch(e){return setTimeout(s,50)}P();w.ready()}}()}}return n.promise(t)};w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});r=w(o);(function(e,t){function ot(e,t,n,i){var s,o,u,a,f,l,p,m,g,w;(t?t.ownerDocument||t:E)!==h&&c(t);t=t||h;n=n||[];if(!e||typeof e!="string")return n;if((a=t.nodeType)!==1&&a!==9)return[];if(d&&!i){if(s=Z.exec(e))if(u=s[1]){if(a===9){o=t.getElementById(u);if(!o||!o.parentNode)return n;if(o.id===u){n.push(o);return n}}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(u))&&y(t,o)&&o.id===u){n.push(o);return n}}else{if(s[2]){H.apply(n,t.getElementsByTagName(e));return n}if((u=s[3])&&r.getElementsByClassName&&t.getElementsByClassName){H.apply(n,t.getElementsByClassName(u));return n}}if(r.qsa&&(!v||!v.test(e))){m=p=b;g=t;w=a===9&&e;if(a===1&&t.nodeName.toLowerCase()!=="object"){l=mt(e);(p=t.getAttribute("id"))?m=p.replace(nt,"\\$&"):t.setAttribute("id",m);m="[id='"+m+"'] ";f=l.length;while(f--)l[f]=m+gt(l[f]);g=$.test(e)&&t.parentNode||t;w=l.join(",")}if(w)try{H.apply(n,g.querySelectorAll(w));return n}catch(S){}finally{p||t.removeAttribute("id")}}}return Nt(e.replace(W,"$1"),t,n,i)}function ut(){function t(n,r){e.push(n+=" ")>s.cacheLength&&delete t[e.shift()];return t[n]=r}var e=[];return t}function at(e){e[b]=!0;return e}function ft(e){var t=h.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)s.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function dt(e){return at(function(t){t=+t;return at(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function vt(){}function mt(e,t){var n,r,i,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e;a=[];f=s.preFilter;while(u){if(!n||(r=X.exec(u))){r&&(u=u.slice(r[0].length)||u);a.push(i=[])}n=!1;if(r=V.exec(u)){n=r.shift();i.push({value:n,type:r[0].replace(W," ")});u=u.slice(n.length)}for(o in s.filter)if((r=G[o].exec(u))&&(!f[o]||(r=f[o](r)))){n=r.shift();i.push({value:n,type:o,matches:r});u=u.slice(n.length)}if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)}function gt(e){var t=0,n=e.length,r="";for(;t<n;t++)r+=e[t].value;return r}function yt(e,t,n){var r=t.dir,s=n&&r==="parentNode",o=x++;return t.first?function(t,n,i){while(t=t[r])if(t.nodeType===1||s)return e(t,n,i)}:function(t,n,u){var a,f,l,c=S+" "+o;if(u){while(t=t[r])if(t.nodeType===1||s)if(e(t,n,u))return!0}else while(t=t[r])if(t.nodeType===1||s){l=t[b]||(t[b]={});if((f=l[r])&&f[0]===c){if((a=f[1])===!0||a===i)return a===!0}else{f=l[r]=[c];f[1]=e(t,n,u)||i;if(f[1]===!0)return!0}}}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function wt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i)){o.push(s);f&&t.push(u)}return o}function Et(e,t,n,r,i,s){r&&!r[b]&&(r=Et(r));i&&!i[b]&&(i=Et(i,s));return at(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||Tt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?wt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=wt(g,p);r(f,[],u,a);l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[];l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?j.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else{g=wt(g===o?g.splice(d,g.length):g);i?i(null,o,g,a):H.apply(o,g)}})}function St(e){var t,n,r,i=e.length,o=s.relative[e[0].type],u=o||s.relative[" "],a=o?1:0,l=yt(function(e){return e===t},u,!0),c=yt(function(e){return j.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;a<i;a++)if(n=s.relative[e[a].type])h=[yt(bt(h),n)];else{n=s.filter[e[a].type].apply(null,e[a].matches);if(n[b]){r=++a;for(;r<i;r++)if(s.relative[e[r].type])break;return Et(a>1&&bt(h),a>1&&gt(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(W,"$1"),n,a<r&&St(e.slice(a,r)),r<i&&St(e=e.slice(r)),r<i&&gt(e))}h.push(n)}return bt(h)}function xt(e,t){var n=0,r=t.length>0,o=e.length>0,u=function(u,a,l,c,p){var d,v,m,g=[],y=0,b="0",w=u&&[],E=p!=null,x=f,T=u||o&&s.find.TAG("*",p&&a.parentNode||a),N=S+=x==null?1:Math.random()||.1;if(E){f=a!==h&&a;i=n}for(;(d=T[b])!=null;b++){if(o&&d){v=0;while(m=e[v++])if(m(d,a,l)){c.push(d);break}if(E){S=N;i=++n}}if(r){(d=!m&&d)&&y--;u&&w.push(d)}}y+=b;if(r&&b!==y){v=0;while(m=t[v++])m(w,g,a,l);if(u){if(y>0)while(b--)!w[b]&&!g[b]&&(g[b]=D.call(c));g=wt(g)}H.apply(c,g);E&&!u&&g.length>0&&y+t.length>1&&ot.uniqueSort(c)}if(E){S=N;f=x}return w};return r?at(u):u}function Tt(e,t,n){var r=0,i=t.length;for(;r<i;r++)ot(e,t[r],n);return n}function Nt(e,t,n,i){var o,u,f,l,c,h=mt(e);if(!i&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&r.getById&&t.nodeType===9&&d&&s.relative[u[1].type]){t=(s.find.ID(f.matches[0].replace(rt,it),t)||[])[0];if(!t)return n;e=e.slice(u.shift().value.length)}o=G.needsContext.test(e)?0:u.length;while(o--){f=u[o];if(s.relative[l=f.type])break;if(c=s.find[l])if(i=c(f.matches[0].replace(rt,it),$.test(u[0].type)&&t.parentNode||t)){u.splice(o,1);e=i.length&&gt(u);if(!e){H.apply(n,i);return n}break}}}a(e,h)(i,t,!d,n,$.test(e));return n}var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b="sizzle"+ -(new Date),E=e.document,S=0,x=0,T=ut(),N=ut(),C=ut(),k=!1,L=function(e,t){if(e===t){k=!0;return 0}return 0},A=typeof t,O=1<<31,M={}.hasOwnProperty,_=[],D=_.pop,P=_.push,H=_.push,B=_.slice,j=_.indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=q.replace("w","w#"),U="\\["+I+"*("+q+")"+I+"*(?:([*^$|!~]?=)"+I+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+R+")|)|)"+I+"*\\]",z=":("+q+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+U.replace(3,8)+")*)|.*)\\)|)",W=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),X=new RegExp("^"+I+"*,"+I+"*"),V=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),$=new RegExp(I+"*[+~]"),J=new RegExp("="+I+"*([^\\]'\"]*)"+I+"*\\]","g"),K=new RegExp(z),Q=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{H.apply(_=B.call(E.childNodes),E.childNodes);_[E.childNodes.length].nodeType}catch(st){H={apply:_.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}u=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1};r=ot.support={};c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:E,n=t.defaultView;if(t===h||t.nodeType!==9||!t.documentElement)return h;h=t;p=t.documentElement;d=!u(t);n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){c()});r.attributes=ft(function(e){e.className="i";return!e.getAttribute("className")});r.getElementsByTagName=ft(function(e){e.appendChild(t.createComment(""));return!e.getElementsByTagName("*").length});r.getElementsByClassName=ft(function(e){e.innerHTML="<div class='a'></div><div class='a i'></div>";e.firstChild.className="i";return e.getElementsByClassName("i").length===2});r.getById=ft(function(e){p.appendChild(e).id=b;return!t.getElementsByName||!t.getElementsByName(b).length});if(r.getById){s.find.ID=function(e,t){if(typeof t.getElementById!==A&&d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}};s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}}else{delete s.find.ID;s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}}s.find.TAG=r.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==A)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s};s.find.CLASS=r.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==A&&d)return t.getElementsByClassName(e)};m=[];v=[];if(r.qsa=Y.test(t.querySelectorAll)){ft(function(e){e.innerHTML="<select><option selected=''></option></select>";e.querySelectorAll("[selected]").length||v.push("\\["+I+"*(?:value|"+F+")");e.querySelectorAll(":checked").length||v.push(":checked")});ft(function(e){var n=t.createElement("input");n.setAttribute("type","hidden");e.appendChild(n).setAttribute("t","");e.querySelectorAll("[t^='']").length&&v.push("[*^$]="+I+"*(?:''|\"\")");e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled");e.querySelectorAll("*,:x");v.push(",.*:")})}(r.matchesSelector=Y.test(g=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft(function(e){r.disconnectedMatch=g.call(e,"div");g.call(e,"[s!='']:x");m.push("!=",z)});v=v.length&&new RegExp(v.join("|"));m=m.length&&new RegExp(m.join("|"));y=Y.test(p.contains)||p.compareDocumentPosition?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1};L=p.compareDocumentPosition?function(e,n){if(e===n){k=!0;return 0}var i=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);if(i)return i&1||!r.sortDetached&&n.compareDocumentPosition(e)===i?e===t||y(E,e)?-1:n===t||y(E,n)?1:l?j.call(l,e)-j.call(l,n):0:i&4?-1:1;return e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,s=e.parentNode,o=n.parentNode,u=[e],a=[n];if(e===n){k=!0;return 0}if(!s||!o)return e===t?-1:n===t?1:s?-1:o?1:l?j.call(l,e)-j.call(l,n):0;if(s===o)return ct(e,n);r=e;while(r=r.parentNode)u.unshift(r);r=n;while(r=r.parentNode)a.unshift(r);while(u[i]===a[i])i++;return i?ct(u[i],a[i]):u[i]===E?-1:a[i]===E?1:0};return t};ot.matches=function(e,t){return ot(e,null,null,t)};ot.matchesSelector=function(e,t){(e.ownerDocument||e)!==h&&c(e);t=t.replace(J,"='$1']");if(r.matchesSelector&&d&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var n=g.call(e,t);if(n||r.disconnectedMatch||e.document&&e.document.nodeType!==11)return n}catch(i){}return ot(t,h,null,[e]).length>0};ot.contains=function(e,t){(e.ownerDocument||e)!==h&&c(e);return y(e,t)};ot.attr=function(e,n){(e.ownerDocument||e)!==h&&c(e);var i=s.attrHandle[n.toLowerCase()],o=i&&M.call(s.attrHandle,n.toLowerCase())?i(e,n,!d):t;return o===t?r.attributes||!d?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null:o};ot.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};ot.uniqueSort=function(e){var t,n=[],i=0,s=0;k=!r.detectDuplicates;l=!r.sortStable&&e.slice(0);e.sort(L);if(k){while(t=e[s++])t===e[s]&&(i=n.push(s));while(i--)e.splice(n[i],1)}return e};o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r];r++)n+=o(t);else if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(i===3||i===4)return e.nodeValue;return n};s=ot.selectors={cacheLength:50,createPseudo:at,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(rt,it);e[3]=(e[4]||e[5]||"").replace(rt,it);e[2]==="~="&&(e[3]=" "+e[3]+" ");return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){e[3]||ot.error(e[0]);e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+(e[7]+e[8]||e[3]==="odd")}else e[3]&&ot.error(e[0]);return e},PSEUDO:function(e){var n,r=!e[5]&&e[2];if(G.CHILD.test(e[0]))return null;if(e[3]&&e[4]!==t)e[2]=e[4];else if(r&&K.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)){e[0]=e[0].slice(0,n);e[2]=r.slice(0,n)}return e.slice(0,3)}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);if(i==null)return t==="!=";if(!t)return!0;i+="";return t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf
(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){l=m[b]||(m[b]={});f=l[e]||[];p=f[0]===S&&f[1];h=f[0]===S&&f[2];c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[b]||(t[b]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){y&&((c[b]||(c[b]={}))[e]=[S,h]);if(c===t)break}h-=i;return h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,r=s.pseudos[e]||s.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);if(r[b])return r(t);if(r.length>1){n=[e,e,"",t];return s.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,s=r(e,t),o=s.length;while(o--){i=j.call(e,s[o]);e[i]=!(n[i]=s[o])}}):function(e){return r(e,0,n)}}return r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(W,"$1"));return r[b]?at(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){t[0]=e;r(t,null,s,n);return!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){Q.test(e||"")||ot.error("unsupported lang: "+e);e=e.replace(rt,it).toLowerCase();return function(t){var n;do if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){n=n.toLowerCase();return n===e||n.indexOf(e+"-")===0}while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){e.parentNode&&e.parentNode.selectedIndex;return e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||e.nodeType===3||e.nodeType===4)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()===e.type)},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[n<0?n+t:n]}),even:dt(function(e,t){var n=0;for(;n<t;n+=2)e.push(n);return e}),odd:dt(function(e,t){var n=1;for(;n<t;n+=2)e.push(n);return e}),lt:dt(function(e,t,n){var r=n<0?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;)e.push(r);return e})}};s.pseudos.nth=s.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[n]=ht(n);for(n in{submit:!0,reset:!0})s.pseudos[n]=pt(n);vt.prototype=s.filters=s.pseudos;s.setFilters=new vt;a=ot.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=mt(e));n=t.length;while(n--){s=St(t[n]);s[b]?r.push(s):i.push(s)}s=C(e,xt(i,r))}return s};r.sortStable=b.split("").sort(L).join("")===b;r.detectDuplicates=k;c();r.sortDetached=ft(function(e){return e.compareDocumentPosition(h.createElement("div"))&1});ft(function(e){e.innerHTML="<a href='#'></a>";return e.firstChild.getAttribute("href")==="#"})||lt("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,t.toLowerCase()==="type"?1:2)});(!r.attributes||!ft(function(e){e.innerHTML="<input/>";e.firstChild.setAttribute("value","");return e.firstChild.getAttribute("value")===""}))&&lt("value",function(e,t,n){if(!n&&e.nodeName.toLowerCase()==="input")return e.defaultValue});ft(function(e){return e.getAttribute("disabled")==null})||lt(F,function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null});w.find=ot;w.expr=ot.selectors;w.expr[":"]=w.expr.pseudos;w.unique=ot.uniqueSort;w.text=ot.getText;w.isXMLDoc=ot.isXML;w.contains=ot.contains})(e);var B={};w.Callbacks=function(e){e=typeof e=="string"?B[e]||j(e):w.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){r=e.memory&&t;i=!0;o=u||0;u=0;s=a.length;n=!0;for(;a&&o<s;o++)if(a[o].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1;a&&(f?f.length&&l(f.shift()):r?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function i(t){w.each(t,function(t,n){var r=w.type(n);r==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&r!=="string"&&i(n)})})(arguments);if(n)s=a.length;else if(r){u=t;l(r)}}return this},remove:function(){a&&w.each(arguments,function(e,t){var r;while((r=w.inArray(t,a,r))>-1){a.splice(r,1);if(n){r<=s&&s--;r<=o&&o--}}});return this},has:function(e){return e?w.inArray(e,a)>-1:!!a&&!!a.length},empty:function(){a=[];s=0;return this},disable:function(){a=f=r=t;return this},disabled:function(){return!a},lock:function(){f=t;r||c.disable();return this},locked:function(){return!f},fireWith:function(e,t){if(a&&(!i||f)){t=t||[];t=[e,t.slice?t.slice():t];n?f.push(t):l(t)}return this},fire:function(){c.fireWith(this,arguments);return this},fired:function(){return!!i}};return c};w.extend({Deferred:function(e){var t=[["resolve","done",w.Callbacks("once memory"),"resolved"],["reject","fail",w.Callbacks("once memory"),"rejected"],["notify","progress",w.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){i.done(arguments).fail(arguments);return this},then:function(){var e=arguments;return w.Deferred(function(n){w.each(t,function(t,s){var o=s[0],u=w.isFunction(e[t])&&e[t];i[s[1]](function(){var e=u&&u.apply(this,arguments);e&&w.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===r?n.promise():this,u?[e]:arguments)})});e=null}).promise()},promise:function(e){return e!=null?w.extend(e,r):r}},i={};r.pipe=r.then;w.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add;u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock);i[s[0]]=function(){i[s[0]+"With"](this===i?r:this,arguments);return this};i[s[0]+"With"]=o.fireWith});r.promise(i);e&&e.call(i,i);return i},when:function(e){var t=0,n=v.call(arguments),r=n.length,i=r!==1||e&&w.isFunction(e.promise)?r:0,s=i===1?e:w.Deferred(),o=function(e,t,n){return function(r){t[e]=this;n[e]=arguments.length>1?v.call(arguments):r;n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r);a=new Array(r);f=new Array(r);for(;t<r;t++)n[t]&&w.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}i||s.resolveWith(f,n);return s.promise()}});w.support=function(t){var n,r,s,u,a,f,l,c,h,p=o.createElement("div");p.setAttribute("className","t");p.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";n=p.getElementsByTagName("*")||[];r=p.getElementsByTagName("a")[0];if(!r||!r.style||!n.length)return t;u=o.createElement("select");f=u.appendChild(o.createElement("option"));s=p.getElementsByTagName("input")[0];r.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute=p.className!=="t";t.leadingWhitespace=p.firstChild.nodeType===3;t.tbody=!p.getElementsByTagName("tbody").length;t.htmlSerialize=!!p.getElementsByTagName("link").length;t.style=/top/.test(r.getAttribute("style"));t.hrefNormalized=r.getAttribute("href")==="/a";t.opacity=/^0.5/.test(r.style.opacity);t.cssFloat=!!r.style.cssFloat;t.checkOn=!!s.value;t.optSelected=f.selected;t.enctype=!!o.createElement("form").enctype;t.html5Clone=o.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>";t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;s.checked=!0;t.noCloneChecked=s.cloneNode(!0).checked;u.disabled=!0;t.optDisabled=!f.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}s=o.createElement("input");s.setAttribute("value","");t.input=s.getAttribute("value")==="";s.value="t";s.setAttribute("type","radio");t.radioValue=s.value==="t";s.setAttribute("checked","t");s.setAttribute("name","t");a=o.createDocumentFragment();a.appendChild(s);t.appendChecked=s.checked;t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;if(p.attachEvent){p.attachEvent("onclick",function(){t.noCloneEvent=!1});p.cloneNode(!0).click()}for(h in{submit:!0,change:!0,focusin:!0}){p.setAttribute(l="on"+h,"t");t[h+"Bubbles"]=l in e||p.attributes[l].expando===!1}p.style.backgroundClip="content-box";p.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle=p.style.backgroundClip==="content-box";for(h in w(t))break;t.ownLast=h!=="0";w(function(){var n,r,s,u="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",a=o.getElementsByTagName("body")[0];if(!a)return;n=o.createElement("div");n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";a.appendChild(n).appendChild(p);p.innerHTML="<table><tr><td></td><td>t</td></tr></table>";s=p.getElementsByTagName("td");s[0].style.cssText="padding:0;margin:0;border:0;display:none";c=s[0].offsetHeight===0;s[0].style.display="";s[1].style.display="none";t.reliableHiddenOffsets=c&&s[0].offsetHeight===0;p.innerHTML="";p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";w.swap(a,a.style.zoom!=null?{zoom:1}:{},function(){t.boxSizing=p.offsetWidth===4});if(e.getComputedStyle){t.pixelPosition=(e.getComputedStyle(p,null)||{}).top!=="1%";t.boxSizingReliable=(e.getComputedStyle(p,null)||{width:"4px"}).width==="4px";r=p.appendChild(o.createElement("div"));r.style.cssText=p.style.cssText=u;r.style.marginRight=r.style.width="0";p.style.width="1px";t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)}if(typeof p.style.zoom!==i){p.innerHTML="";p.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1";t.inlineBlockNeedsLayout=p.offsetWidth===3;p.style.display="block";p.innerHTML="<div></div>";p.firstChild.style.width="5px";t.shrinkWrapBlocks=p.offsetWidth!==3;t.inlineBlockNeedsLayout&&(a.style.zoom=1)}a.removeChild(n);n=p=s=r=null});n=u=a=f=r=s=null;return t}({});var F=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;w.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){e=e.nodeType?w.cache[e[w.expando]]:e[w.expando];return!!e&&!z(e)},data:function(e,t,n){return q(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return q(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&e.nodeType!==1&&e.nodeType!==9)return!1;var t=e.nodeName&&w.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}});w.fn.extend({data:function(e,n){var r,i,s=null,o=0,u=this[0];if(e===t){if(this.length){s=w.data(u);if(u.nodeType===1&&!w._data(u,"parsedAttrs")){r=u.attributes;for(;o<r.length;o++){i=r[o].name;if(i.indexOf("data-")===0){i=w.camelCase(i.slice(5));U(u,i,s[i])}}w._data(u,"parsedAttrs",!0)}}return s}return typeof e=="object"?this.each(function(){w.data(this,e)}):arguments.length>1?this.each(function(){w.data(this,e,n)}):u?U(u,e,w.data(u,e)):null},removeData:function(e){return this.each(function(){w.removeData(this,e)})}});w.extend({queue:function(e,t,n){var r;if(e){t=(t||"fx")+"queue";r=w._data(e,t);n&&(!r||w.isArray(n)?r=w._data(e,t,w.makeArray(n)):r.push(n));return r||[]}},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),s=w._queueHooks(e,t),o=function(){w.dequeue(e,t)};if(i==="inprogress"){i=n.shift();r--}if(i){t==="fx"&&n.unshift("inprogress");delete s.stop;i.call(e,o,s)}!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w._data(e,n)||w._data(e,n,{empty:w.Callbacks("once memory").add(function(){w._removeData(e,t+"queue");w._removeData(e,n)})})}});w.fn.extend({queue:function(e,n){var r=2;if(typeof e!="string"){n=e;e="fx";r--}return arguments.length<r?w.queue(this[0],e):n===t?this:this.each(function(){var t=w.queue(this,e,n);w._queueHooks(this,e);e==="fx"&&t[0]!=="inprogress"&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},delay:function(e,t){e=w.fx?w.fx.speeds[e]||e:e;t=t||"fx";return this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=w.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};if(typeof e!="string"){n=e;e=t}e=e||"fx";while(u--){r=w._data(o[u],e+"queueHooks");if(r&&r.empty){i++;r.empty.add(a)}}a();return s.promise(n)}});var W,X,V=/[\t\r\n\f]/g,$=/\r/g,J=/^(?:input|select|textarea|button|object)$/i,K=/^(?:a|area)$/i,Q=/^(?:checked|selected)$/i,G=w.support.getSetAttribute,Y=w.support.input;w.fn.extend({attr:function(e,t){return w.access(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})},prop:function(e,t){return w.access(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){e=w.propFix[e]||e;return this.each(function(){try{this[e]=t;delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=typeof e=="string"&&e;if(w.isFunction(e))return this.each(function(t){w(this).addClass(e.call(this,t,this.className))});if(a){t=(e||"").match(S)||[];for(;o<u;o++){n=this[o];r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(V," "):" ");if(r){s=0;while(i=t[s++])r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=w.trim(r)}}}return this},removeClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=arguments.length===0||typeof e=="string"&&e;if(w.isFunction(e))return this.each(function(t){w(this).removeClass(e.call(this,t,this.className))});if(a){t=(e||"").match(S)||[];for(;o<u;o++){n=this[o];r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(V," "):"");if(r){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?w.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):w.isFunction(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var t,r=0,s=w(this),o=e.match(S)||[];while(t=o[r++])s.hasClass(t)?s.removeClass(t):s.addClass(t)}else if(n===i||n==="boolean"){this.className&&w._data(this,"__className__",this.className);this.className=this.className||e===!1?"":w._data(this,"__className__")||""}})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(V," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s){r=w.valHooks[s.type]||w.valHooks[s.nodeName.toLowerCase()];if(r&&"get"in r&&(n=r.get(s,"value"))!==t)return n;n=s.value;return typeof n=="string"?n.replace($,""):n==null?"":n}return}i=w.isFunction(e);return this.each(function(n){var s;if(this.nodeType!==1)return;i?s=e.call(this,n,w(this).val()):s=e;s==null?s="":typeof s=="number"?s+="":w.isArray(s)&&(s=w.map(s,function(e){return e==null?"":e+""}));r=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()];if(!r||!("set"in r)||r.set(this,s,"value")===t)this.value=s})}});w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return t!=null?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(w.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!w.nodeName(n.parentNode,"optgroup"))){t=w(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n,r,i=e.options,s=w.makeArray(t),o=i.length;while(o--){r=i[o];if(r.selected=w.inArray(w(r).val(),s)>=0)n=!0}n||(e.selectedIndex=-1);return s}}},attr:function(e,n,r){var s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;if(typeof e.getAttribute===i)return w.prop(e,n,r);if(u!==1||!w.isXMLDoc(e)){n=n.toLowerCase();s=w.attrHooks[n]||(w.expr.match.bool.test(n)?X:W)}if(r===t){if(s&&"get"in s&&(o=s.get(e,n))!==null)return o;o=w.find.attr(e,n);return o==null?t:o}if(r!==null){if(s&&"set"in s&&(o=s.set(e,r,n))!==t)return o;e.setAttribute(n,r+"");return r}w.removeAttr(e,n)},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(S);if(s&&e.nodeType===1)while(n=s[i++]){r=w.propFix[n]||n;w.expr.match.bool.test(n)?Y&&G||!Q.test(n)?e[r]=!1:e[w.camelCase("default-"+n)]=e[r]=!1:w.attr(e,n,"");e.removeAttribute(G?n:r)}},attrHooks:{type:{set:function(e,t){if(!w.support.radioValue&&t==="radio"&&w.nodeName(e,"input")){var n=e.value;e.setAttribute("type",t);n&&(e.value=n);return t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;o=u!==1||!w.isXMLDoc(e);if(o){n=w.propFix[n]||n;s=w.propHooks[n]}return r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):J.test(e.nodeName)||K.test(e.nodeName)&&e.href?0:-1}}}});X={set:function(e,t,n){t===!1?w.removeAttr(e,n):Y&&G||!Q.test(n)?e.setAttribute(!G&&w.propFix[n]||n,n):e[w.camelCase("default-"+n)]=e[n]=!0;return n}};w.each(w.expr.match.bool.source.match(/\w+/g),function(e,n){var r=w.expr.attrHandle[n]||w.find.attr;w.expr.attrHandle[n]=Y&&G||!Q.test(n)?function(e,n,i){var s=w.expr.attrHandle[n],o=i?t:(w.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;w.expr.attrHandle[n]=s;return o}:function(e,n,r){return r?t:e[w.camelCase("default-"+n)]?n.toLowerCase():null}});if(!Y||!G)w.attrHooks.value={set:function(e,t,n){if(!w.nodeName(e,"input"))return W&&W.set(e,t,n);e.defaultValue=t}};if(!G){W={set:function(e,n,r){var i=e.getAttributeNode(r);i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r));i.value=n+="";return r==="value"||n===e.getAttribute(r)?n:t}};w.expr.attrHandle.id=w.expr.attrHandle.name=w.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.value!==""?i.value:null};w.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:W.set};w.attrHooks.contenteditable={set:function(e,t,n){W.set(e,t===""?!1:t,n)}};w.each(["width","height"],function(e,t){w.attrHooks[t]={set:function(e,n){if(n===""){e.setAttribute(t,"auto");return n}}}})}w.support.hrefNormalized||w.each(["href","src"],function(e,t){w.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}});w.support.style||(w.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}});w.support.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;if(t){t.selectedIndex;t.parentNode&&t.parentNode.selectedIndex}return null}});w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});w.support.enctype||(w.propFix.enctype="encoding");w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(w.isArray(t))return e.checked=w.inArray(w(e).val(),t)>=0}};w.support.checkOn||(w.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;w.event={global:{},add:function(e,n,r,s,o){var u,a,f,l,c,h,p,d,v,m,g,y=w._data(e);if(!y)return;if(r.handler){l=r;r=l.handler;o=l.selector}r.guid||(r.guid=w.guid++);(a=y.events)||(a=y.events={});if(!(h=y.handle)){h=y.handle=function(e){return typeof w===i||!!e&&w.event.triggered===e.type?t:w.event.dispatch.apply(h.elem,arguments)};h.elem=e}n=(n||"").match(S)||[""];f=n.length;while(f--){u=rt.exec(n[f])||[];v=g=u[1];m=(u[2]||"").split(".").sort();if(!v)continue;c=w.event.special[v]||{};v=(o?c.delegateType:c.bindType)||v;c=w.event.special[v]||{};p=w.extend({type:v,origType:g,data:s,handler:r,guid:r.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:m.join(".")},l);if(!(d=a[v])){d=a[v]=[];d.delegateCount=0;if(!c.setup||c.setup.call(e,s,m,h)===!1)e.addEventListener?e.addEventListener(v,h,!1):e.attachEvent&&e.attachEvent("on"+v,h)}if(c.add){c.add.call(e,p);p.handler.guid||(p.handler.guid=r.guid)}o?d.splice(d.delegateCount++,0,p):d.push(p);w.event.global[v]=!0}e=null},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=w.hasData(e)&&w._data(e);if(!m||!(l=m.events))return;t=(t||"").match(S)||[""];f=t.length;while(f--){u=rt.exec(t[f])||[];p=v=u[1];d=(u[2]||"").split(".").sort();if(!p){for(p in l)w.event.remove(e,p+t[f],n,r,!0);continue}c=w.event.special[p]||{};p=(r?c.delegateType:c.bindType)||p;h=l[p]||[];u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)");a=s=h.length;while(s--){o=h[s];if((i||v===o.origType)&&(!n||n.guid===o.guid)&&(!u||u.test(o.namespace))&&(!r||r===o.selector||r==="**"&&o.selector)){h.splice(s,1);o.selector&&h.delegateCount--;c.remove&&c.remove.call(e,o)}}if(a&&!h.length){(!c.teardown||c.teardown.call(e,d,m.handle)===!1)&&w.removeEvent(e,p,m.handle);delete l[p]}}if(w.isEmptyObject(l)){delete m.handle;w._removeData(e,"events")}},trigger:function(n,r,i,s){var u,a,f,l,c,h,p,d=[i||o],v=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];f=h=i=i||o;if(i.nodeType===3||i.nodeType===8)return;if(nt.test(v+w.event.triggered))return;if(v.indexOf(".")>=0){m=v.split(".");v=m.shift();m.sort()}a=v.indexOf(":")<0&&"on"+v;n=n[w.expando]?n:new w.Event(v,typeof n=="object"&&n);n.isTrigger=s?2:3;n.namespace=m.join(".");n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;n.result=t;n.target||(n.target=i);r=r==null?[n]:w.makeArray(r,[n]);c=w.event.special[v]||{};if(!s&&c.trigger&&c.trigger.apply(i,r)===!1)return;if(!s&&!c.noBubble&&!w.isWindow(i)){l=c.delegateType||v;nt.test(l+v)||(f=f.parentNode);for(;f;f=f.parentNode){d.push(f);h=f}h===(i.ownerDocument||o)&&d.push(h.defaultView||h.parentWindow||e)}p=0;while((f=d[p++])&&!n.isPropagationStopped()){n.type=p>1?l:c.bindType||v;u=(w._data(f,"events")||{})[n.type]&&w._data(f,"handle");u&&u.apply(f,r);u=a&&f[a];u&&w.acceptData(f)&&u.apply&&u.apply(f,r)===!1&&n.preventDefault()}n.type=v;if(!s&&!n.isDefaultPrevented()&&(!c._default||c._default.apply(d.pop(),r)===!1)&&w.acceptData(i)&&a&&i[v]&&!w.isWindow(i)){h=i[a];h&&(i[a]=null);w.event.triggered=v;try{i[v]()}catch(g){}w.event.triggered=t;h&&(i[a]=h)}return n.result},dispatch:function(e){e=w.event.fix(e);var n,r,i,s,o,u=[],a=v.call(arguments),f=(w._data(this,"events")||{})[e.type]||[],l=w.event.special[e.type]||{};a[0]=e;e.delegateTarget=this;if(l.preDispatch&&l.preDispatch.call(this,e)===!1)return;u=w.event.handlers.call(this,e,f);n=0;while((s=u[n++])&&!e.isPropagationStopped()){e.currentTarget=s.elem;o=0;while((i=s.handlers[o++])&&!e.isImmediatePropagationStopped())if(!e.namespace_re||e.namespace_re.test(i.namespace)){e.handleObj=i;e.data=i.data;r=((w.event.special[i.origType]||{}).handle||i.handler).apply(s.elem,a);if(r!==t&&(e.result=r)===!1){e.preventDefault();e.stopPropagation()}}}l.postDispatch&&l.postDispatch.call(this,e);return e.result},handlers:function(e,n){var r,i,s,o,u=[],a=n.delegateCount,f=e.target;if(a&&f.nodeType&&(!e.button||e.type!=="click"))for(;f!=this;f=f.parentNode||this)if(f.nodeType===1&&(f.disabled!==!0||e.type!=="click")){s=[];for(o=0;o<a;o++){i=n[o];r=i.selector+" ";s[r]===t&&(s[r]=i.needsContext?w(r,this).index(f)>=0:w.find(r,this,null,[f]).length);s[r]&&s.push(i)}s.length&&u.push({elem:f,handlers:s})}a<n.length&&u.push({elem:this,handlers:n.slice(a)});return u},fix:function(e){if(e[w.expando])return e;var t,n,r,i=e.type,s=e,u=this.fixHooks[i];u||(this.fixHooks[i]=u=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{});r=u.props?this.props.concat(u.props):this.props;e=new w.Event(s);t=r.length;while(t--){n=r[t];e[n]=s[n]}e.target||(e.target=s.srcElement||o);e.target.nodeType===3&&(e.target=e.target.parentNode);e.metaKey=!!e.metaKey;return u.filter?u.filter(e,s):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode);return e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,s,u=n.button,a=n.fromElement;if(e.pageX==null&&n.clientX!=null){i=e.target.ownerDocument||o;s=i.documentElement;r=i.body;e.pageX=n.clientX+(s&&s.scrollLeft||r&&r.scrollLeft||0)-(s&&s.clientLeft||r&&r.clientLeft||0);e.pageY=n.clientY+(s&&s.scrollTop||r&&r.scrollTop||0)-(s&&s.clientTop||r&&r.clientTop||0)}!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a);!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0);return e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ot()&&this.focus)try{this.focus();return!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===ot()&&this.blur){this.blur();return!1}},delegateType:"focusout"},click:{trigger:function(){if(w.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();return!1}},_default:function(e){return w.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?w.event.trigger(i,null,t):w.event.dispatch.call(t,i);i.isDefaultPrevented()&&n.preventDefault()}};w.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;if(e.detachEvent){typeof e[r]===i&&(e[r]=null);e.detachEvent(r,n)}};w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:st}else this.type=e;t&&w.extend(this,t);this.timeStamp=e&&e.timeStamp||w.now();this[w.expando]=!0};w.Event.prototype={isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it;if(!e)return;e.stopPropagation&&e.stopPropagation();e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it;this.stopPropagation()}};w.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;if(!i||i!==r&&!w.contains(r,i)){e.type=s.origType;n=s.handler.apply(this,arguments);e.type=t}return n}}});w.support.submitBubbles||(w.event.special.submit={setup:function(){if(w.nodeName(this,"form"))return!1;w.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=w.nodeName(n,"input")||w.nodeName(n,"button")?n.form:t;if(r&&!w._data(r,"submitBubbles")){w.event.add(r,"submit._submit",function(e){e._submit_bubble=!0});w._data(r,"submitBubbles",!0)}})},postDispatch:function(e){if(e._submit_bubble){delete e._submit_bubble;this.parentNode&&!e.isTrigger&&w.event.simulate("submit",this.parentNode,e,!0)}},teardown:function(){if(w.nodeName(this,"form"))return!1;w.event.remove(this,"._submit")}});w.support.changeBubbles||(w.event.special.change={setup:function(){if(Z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){w.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)});w.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1);w.event.simulate("change",this,e,!0)})}return!1}w.event.add(this,"beforeactivate._change",function(e){var t=e.target;if(Z.test(t.nodeName)&&!w._data(t,"changeBubbles")){w.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&w.event.simulate("change",this.parentNode,e,!0)});w._data(t,"changeBubbles",!0)}})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){w.event.remove(this,"._change");return!Z.test(this.nodeName)}});w.support.focusinBubbles||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){w.event.simulate(t,e.target,w.event.fix(e),!0)};w.event.special[t]={setup:function(){n++===0&&o.addEventListener(e,r,!0)},teardown:function(){--n===0&&o.removeEventListener(e,r,!0)}}});w.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){if(typeof n!="string"){r=r||n;n=t}for(o in e)this.on(o,n,r,e[o],s);return this}if(r==null&&i==null){i=n;r=n=t}else if(i==null)if(typeof n=="string"){i=r;r=t}else{i=r;r=n;n=t}if(i===!1)i=st;else if(!i)return this;if(s===1){u=i;i=function(e){w().off(e);return u.apply(this,arguments)};i.guid=u.guid||(u.guid=w.guid++)}return this.each(function(){w.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj){i=e.handleObj;w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);return this}if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function"){r=n;n=t}r===!1&&(r=st);return this.each(function(){w.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}});var ut=/^.[^:#\[\.,]*$/,at=/^(?:parents|prev(?:Until|All))/,ft=w.expr.match.needsContext,lt={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if(typeof e!="string")return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(r[t],this))return!0}));for(t=0;t<i;t++)w.find(e,r[t],n);n=this.pushStack(i>1?w.unique(n):n);n.selector=this.selector?this.selector+" "+e:e;return n},has:function(e){var t,n=w(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(w.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ht(this,e||[],!0))},filter:function(e){return this.pushStack(ht(this,e||[],!1))},is:function(e){return!!ht(this,typeof e=="string"&&ft.test(e)?w(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,s=[],o=ft.test(e)||typeof e!="string"?w(e,t||this.context):0;for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&w.find.matchesSelector(n,e))){n=s.push(n);break}return this.pushStack(s.length>1?w.unique(s):s)},index:function(e){return e?typeof e=="string"?w.inArray(this[0],w(e)):w.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?w(e,t):w.makeArray(e&&e.nodeType?[e]:e),r=w.merge(this.get(),n);return this.pushStack(w.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});w.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return w.dir(e,"parentNode")},parentsUntil:function(e,t,n){return w.dir(e,"parentNode",n)},next:function(e){return ct(e,"nextSibling")},prev:function(e){return ct(e,"previousSibling")},nextAll:function(e){return w.dir(e,"nextSibling")},prevAll:function(e){return w.dir(e,"previousSibling")},nextUntil:function(e,t,n){return w.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return w.dir(e,"previousSibling",n)},siblings:function(e){return w.sibling((e.parentNode||
{}).firstChild,e)},children:function(e){return w.sibling(e.firstChild)},contents:function(e){return w.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:w.merge([],e.childNodes)}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);e.slice(-5)!=="Until"&&(r=n);r&&typeof r=="string"&&(i=w.filter(r,i));if(this.length>1){lt[e]||(i=w.unique(i));at.test(e)&&(i=i.reverse())}return this.pushStack(i)}});w.extend({filter:function(e,t,n){var r=t[0];n&&(e=":not("+e+")");return t.length===1&&r.nodeType===1?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return e.nodeType===1}))},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!w(s).is(r))){s.nodeType===1&&i.push(s);s=s[n]}return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var dt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",vt=/ jQuery\d+="(?:null|\d+)"/g,mt=new RegExp("<(?:"+dt+")[\\s/>]","i"),gt=/^\s+/,yt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,wt=/<tbody/i,Et=/<|&#?\w+;/,St=/<(?:script|style|link)/i,xt=/^(?:checkbox|radio)$/i,Tt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^$|\/(?:java|ecma)script/i,Ct=/^true\/(.*)/,kt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Lt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:w.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},At=pt(o),Ot=At.appendChild(o.createElement("div"));Lt.optgroup=Lt.option;Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead;Lt.th=Lt.td;w.fn.extend({text:function(e){return w.access(this,function(e){return e===t?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Mt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Mt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?w.filter(e,this):this,i=0;for(;(n=r[i])!=null;i++){!t&&n.nodeType===1&&w.cleanData(jt(n));if(n.parentNode){t&&w.contains(n.ownerDocument,n)&&Pt(jt(n,"script"));n.parentNode.removeChild(n)}}return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&w.cleanData(jt(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&w.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){e=e==null?!1:e;t=t==null?e:t;return this.map(function(){return w.clone(this,e,t)})},html:function(e){return w.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(vt,""):t;if(typeof e=="string"&&!St.test(e)&&(w.support.htmlSerialize||!mt.test(e))&&(w.support.leadingWhitespace||!gt.test(e))&&!Lt[(bt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(yt,"<$1></$2>");try{for(;r<i;r++){n=this[r]||{};if(n.nodeType===1){w.cleanData(jt(n,!1));n.innerHTML=e}}n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=w.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;this.domManip(arguments,function(n){var r=e[t++],i=e[t++];if(i){r&&r.parentNode!==i&&(r=this.nextSibling);w(this).remove();i.insertBefore(n,r)}},!0);return t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=p.apply([],e);var r,i,s,o,u,a,f=0,l=this.length,c=this,h=l-1,d=e[0],v=w.isFunction(d);if(v||!(l<=1||typeof d!="string"||w.support.checkClone||!Tt.test(d)))return this.each(function(r){var i=c.eq(r);v&&(e[0]=d.call(this,r,i.html()));i.domManip(e,t,n)});if(l){a=w.buildFragment(e,this[0].ownerDocument,!1,!n&&this);r=a.firstChild;a.childNodes.length===1&&(a=r);if(r){o=w.map(jt(a,"script"),_t);s=o.length;for(;f<l;f++){i=a;if(f!==h){i=w.clone(i,!0,!0);s&&w.merge(o,jt(i,"script"))}t.call(this[f],i,f)}if(s){u=o[o.length-1].ownerDocument;w.map(o,Dt);for(f=0;f<s;f++){i=o[f];Nt.test(i.type||"")&&!w._data(i,"globalEval")&&w.contains(u,i)&&(i.src?w._evalUrl(i.src):w.globalEval((i.text||i.textContent||i.innerHTML||"").replace(kt,"")))}}a=r=null}}return this}});w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){var n,r=0,i=[],s=w(e),o=s.length-1;for(;r<=o;r++){n=r===o?this:this.clone(!0);w(s[r])[t](n);d.apply(i,n.get())}return this.pushStack(i)}});w.extend({clone:function(e,t,n){var r,i,s,o,u,a=w.contains(e.ownerDocument,e);if(w.support.html5Clone||w.isXMLDoc(e)||!mt.test("<"+e.nodeName+">"))s=e.cloneNode(!0);else{Ot.innerHTML=e.outerHTML;Ot.removeChild(s=Ot.firstChild)}if((!w.support.noCloneEvent||!w.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!w.isXMLDoc(e)){r=jt(s);u=jt(e);for(o=0;(i=u[o])!=null;++o)r[o]&&Bt(i,r[o])}if(t)if(n){u=u||jt(e);r=r||jt(s);for(o=0;(i=u[o])!=null;o++)Ht(i,r[o])}else Ht(e,s);r=jt(s,"script");r.length>0&&Pt(r,!a&&jt(e,"script"));r=u=i=null;return s},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l,c=e.length,h=pt(t),p=[],d=0;for(;d<c;d++){s=e[d];if(s||s===0)if(w.type(s)==="object")w.merge(p,s.nodeType?[s]:s);else if(!Et.test(s))p.push(t.createTextNode(s));else{u=u||h.appendChild(t.createElement("div"));a=(bt.exec(s)||["",""])[1].toLowerCase();l=Lt[a]||Lt._default;u.innerHTML=l[1]+s.replace(yt,"<$1></$2>")+l[2];i=l[0];while(i--)u=u.lastChild;!w.support.leadingWhitespace&&gt.test(s)&&p.push(t.createTextNode(gt.exec(s)[0]));if(!w.support.tbody){s=a==="table"&&!wt.test(s)?u.firstChild:l[1]==="<table>"&&!wt.test(s)?u:0;i=s&&s.childNodes.length;while(i--)w.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}w.merge(p,u.childNodes);u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=h.lastChild}}u&&h.removeChild(u);w.support.appendChecked||w.grep(jt(p,"input"),Ft);d=0;while(s=p[d++]){if(r&&w.inArray(s,r)!==-1)continue;o=w.contains(s.ownerDocument,s);u=jt(h.appendChild(s),"script");o&&Pt(u);if(n){i=0;while(s=u[i++])Nt.test(s.type||"")&&n.push(s)}}u=null;return h},cleanData:function(e,t){var n,r,s,o,u=0,a=w.expando,f=w.cache,l=w.support.deleteExpando,h=w.event.special;for(;(n=e[u])!=null;u++)if(t||w.acceptData(n)){s=n[a];o=s&&f[s];if(o){if(o.events)for(r in o.events)h[r]?w.event.remove(n,r):w.removeEvent(n,r,o.handle);if(f[s]){delete f[s];l?delete n[a]:typeof n.removeAttribute!==i?n.removeAttribute(a):n[a]=null;c.push(s)}}}},_evalUrl:function(e){return w.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});w.fn.extend({wrapAll:function(e){if(w.isFunction(e))return this.each(function(t){w(this).wrapAll(e.call(this,t))});if(this[0]){var t=w(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return w.isFunction(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=w.isFunction(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){w.nodeName(this,"body")||w(this).replaceWith(this.childNodes)}).end()}});var It,qt,Rt,Ut=/alpha\([^)]*\)/i,zt=/opacity\s*=\s*([^)]*)/,Wt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Vt=/^margin/,$t=new RegExp("^("+E+")(.*)$","i"),Jt=new RegExp("^("+E+")(?!px)[a-z%]+$","i"),Kt=new RegExp("^([+-])=("+E+")","i"),Qt={BODY:"block"},Gt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];w.fn.extend({css:function(e,n){return w.access(this,function(e,n,r){var i,s,o={},u=0;if(w.isArray(n)){s=qt(e);i=n.length;for(;u<i;u++)o[n[u]]=w.css(e,n[u],!1,s);return o}return r!==t?w.style(e,n,r):w.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){nn(this)?w(this).show():w(this).hide()})}});w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Rt(e,"opacity");return n===""?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":w.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=w.camelCase(n),f=e.style;n=w.cssProps[a]||(w.cssProps[a]=tn(f,a));u=w.cssHooks[n]||w.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r;if(o==="string"&&(s=Kt.exec(r))){r=(s[1]+1)*s[2]+parseFloat(w.css(e,n));o="number"}if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!w.cssNumber[a]&&(r+="px");!w.support.clearCloneStyle&&r===""&&n.indexOf("background")===0&&(f[n]="inherit");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=w.camelCase(n);n=w.cssProps[a]||(w.cssProps[a]=tn(e.style,a));u=w.cssHooks[n]||w.cssHooks[a];u&&"get"in u&&(o=u.get(e,!0,r));o===t&&(o=Rt(e,n,i));o==="normal"&&n in Yt&&(o=Yt[n]);if(r===""||r){s=parseFloat(o);return r===!0||w.isNumeric(s)?s||0:o}return o}});if(e.getComputedStyle){qt=function(t){return e.getComputedStyle(t,null)};Rt=function(e,n,r){var i,s,o,u=r||qt(e),a=u?u.getPropertyValue(n)||u[n]:t,f=e.style;if(u){a===""&&!w.contains(e.ownerDocument,e)&&(a=w.style(e,n));if(Jt.test(a)&&Vt.test(n)){i=f.width;s=f.minWidth;o=f.maxWidth;f.minWidth=f.maxWidth=f.width=a;a=u.width;f.width=i;f.minWidth=s;f.maxWidth=o}}return a}}else if(o.documentElement.currentStyle){qt=function(e){return e.currentStyle};Rt=function(e,n,r){var i,s,o,u=r||qt(e),a=u?u[n]:t,f=e.style;a==null&&f&&f[n]&&(a=f[n]);if(Jt.test(a)&&!Wt.test(n)){i=f.left;s=e.runtimeStyle;o=s&&s.left;o&&(s.left=e.currentStyle.left);f.left=n==="fontSize"?"1em":a;a=f.pixelLeft+"px";f.left=i;o&&(s.left=o)}return a===""?"auto":a}}w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&Xt.test(w.css(e,"display"))?w.swap(e,Gt,function(){return un(e,t,r)}):un(e,t,r)},set:function(e,n,r){var i=r&&qt(e);return sn(e,n,r?on(e,t,r,w.support.boxSizing&&w.css(e,"boxSizing",!1,i)==="border-box",i):0)}}});w.support.opacity||(w.cssHooks.opacity={get:function(e,t){return zt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=w.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if((t>=1||t==="")&&w.trim(s.replace(Ut,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(t===""||r&&!r.filter)return}n.filter=Ut.test(s)?s.replace(Ut,i):s+" "+i}});w(function(){w.support.reliableMarginRight||(w.cssHooks.marginRight={get:function(e,t){if(t)return w.swap(e,{display:"inline-block"},Rt,[e,"marginRight"])}});!w.support.pixelPosition&&w.fn.position&&w.each(["top","left"],function(e,t){w.cssHooks[t]={get:function(e,n){if(n){n=Rt(e,t);return Jt.test(n)?w(e).position()[t]+"px":n}}}})});if(w.expr&&w.expr.filters){w.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!w.support.reliableHiddenOffsets&&(e.style&&e.style.display||w.css(e,"display"))==="none"};w.expr.filters.visible=function(e){return!w.expr.filters.hidden(e)}}w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+Zt[r]+t]=s[r]||s[r-2]||s[0];return i}};Vt.test(e)||(w.cssHooks[e+t].set=sn)});var ln=/%20/g,cn=/\[\]$/,hn=/\r?\n/g,pn=/^(?:submit|button|image|reset|file)$/i,dn=/^(?:input|select|textarea|keygen)/i;w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&dn.test(this.nodeName)&&!pn.test(e)&&(this.checked||!xt.test(e))}).map(function(e,t){var n=w(this).val();return n==null?null:w.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(hn,"\r\n")}}):{name:t.name,value:n.replace(hn,"\r\n")}}).get()}});w.param=function(e,n){var r,i=[],s=function(e,t){t=w.isFunction(t)?t():t==null?"":t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=w.ajaxSettings&&w.ajaxSettings.traditional);if(w.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){s(this.name,this.value)});else for(r in e)vn(r,e[r],n,s);return i.join("&").replace(ln,"+")};w.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,gn,yn=w.now(),bn=/\?/,wn=/#.*$/,En=/([?&])_=[^&]*/,Sn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,xn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Tn=/^(?:GET|HEAD)$/,Nn=/^\/\//,Cn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,kn=w.fn.load,Ln={},An={},On="*/".concat("*");try{gn=s.href}catch(Mn){gn=o.createElement("a");gn.href="";gn=gn.href}mn=Cn.exec(gn.toLowerCase())||[];w.fn.load=function(e,n,r){if(typeof e!="string"&&kn)return kn.apply(this,arguments);var i,s,o,u=this,a=e.indexOf(" ");if(a>=0){i=e.slice(a,e.length);e=e.slice(0,a)}if(w.isFunction(n)){r=n;n=t}else n&&typeof n=="object"&&(o="POST");u.length>0&&w.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){s=arguments;u.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){u.each(r,s||[e.responseText,t,e])});return this};w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}});w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gn,type:"GET",isLocal:xn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":On,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":w.parseJSON,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Pn(Pn(e,w.ajaxSettings),t):Pn(w.ajaxSettings,e)},ajaxPrefilter:_n(Ln),ajaxTransport:_n(An),ajax:function(e,n){function N(e,n,r,i){var l,g,y,E,S,T=n;if(b===2)return;b=2;u&&clearTimeout(u);f=t;o=i||"";x.readyState=e>0?4:0;l=e>=200&&e<300||e===304;r&&(E=Hn(c,x,r));E=Bn(c,E,x,l);if(l){if(c.ifModified){S=x.getResponseHeader("Last-Modified");S&&(w.lastModified[s]=S);S=x.getResponseHeader("etag");S&&(w.etag[s]=S)}if(e===204||c.type==="HEAD")T="nocontent";else if(e===304)T="notmodified";else{T=E.state;g=E.data;y=E.error;l=!y}}else{y=T;if(e||!T){T="error";e<0&&(e=0)}}x.status=e;x.statusText=(n||T)+"";l?d.resolveWith(h,[g,T,x]):d.rejectWith(h,[x,T,y]);x.statusCode(m);m=t;a&&p.trigger(l?"ajaxSuccess":"ajaxError",[x,c,l?g:y]);v.fireWith(h,[x,T]);if(a){p.trigger("ajaxComplete",[x,c]);--w.active||w.event.trigger("ajaxStop")}}if(typeof e=="object"){n=e;e=t}n=n||{};var r,i,s,o,u,a,f,l,c=w.ajaxSetup({},n),h=c.context||c,p=c.context&&(h.nodeType||h.jquery)?w(h):w.event,d=w.Deferred(),v=w.Callbacks("once memory"),m=c.statusCode||{},g={},y={},b=0,E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(b===2){if(!l){l={};while(t=Sn.exec(o))l[t[1].toLowerCase()]=t[2]}t=l[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return b===2?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();if(!b){e=y[n]=y[n]||e;g[e]=t}return this},overrideMimeType:function(e){b||(c.mimeType=e);return this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||E;f&&f.abort(t);N(0,t);return this}};d.promise(x).complete=v.add;x.success=x.done;x.error=x.fail;c.url=((e||c.url||gn)+"").replace(wn,"").replace(Nn,mn[1]+"//");c.type=n.method||n.type||c.method||c.type;c.dataTypes=w.trim(c.dataType||"*").toLowerCase().match(S)||[""];if(c.crossDomain==null){r=Cn.exec(c.url.toLowerCase());c.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||(r[1]==="http:"?"80":"443"))===(mn[3]||(mn[1]==="http:"?"80":"443")))}c.data&&c.processData&&typeof c.data!="string"&&(c.data=w.param(c.data,c.traditional));Dn(Ln,c,n,x);if(b===2)return x;a=c.global;a&&w.active++===0&&w.event.trigger("ajaxStart");c.type=c.type.toUpperCase();c.hasContent=!Tn.test(c.type);s=c.url;if(!c.hasContent){if(c.data){s=c.url+=(bn.test(s)?"&":"?")+c.data;delete c.data}c.cache===!1&&(c.url=En.test(s)?s.replace(En,"$1_="+yn++):s+(bn.test(s)?"&":"?")+"_="+yn++)}if(c.ifModified){w.lastModified[s]&&x.setRequestHeader("If-Modified-Since",w.lastModified[s]);w.etag[s]&&x.setRequestHeader("If-None-Match",w.etag[s])}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType);x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+On+"; q=0.01":""):c.accepts["*"]);for(i in c.headers)x.setRequestHeader(i,c.headers[i]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&b!==2){E="abort";for(i in{success:1,error:1,complete:1})x[i](c[i]);f=Dn(An,c,n,x);if(!f)N(-1,"No Transport");else{x.readyState=1;a&&p.trigger("ajaxSend",[x,c]);c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{b=1;f.send(g,N)}catch(T){if(!(b<2))throw T;N(-1,T)}}return x}return x.abort()},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,n){return w.get(e,t,n,"script")}});w.each(["get","post"],function(e,n){w[n]=function(e,r,i,s){if(w.isFunction(r)){s=s||i;i=r;r=t}return w.ajax({url:e,type:n,dataType:s,data:r,success:i})}});w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){w.globalEval(e);return e}}});w.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1);if(e.crossDomain){e.type="GET";e.global=!1}});w.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||w("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script");n.async=!0;e.scriptCharset&&(n.charset=e.scriptCharset);n.src=e.url;n.onload=n.onreadystatechange=function(e,t){if(t||!n.readyState||/loaded|complete/.test(n.readyState)){n.onload=n.onreadystatechange=null;n.parentNode&&n.parentNode.removeChild(n);n=null;t||i(200,"success")}};r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var jn=[],Fn=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=jn.pop()||w.expando+"_"+yn++;this[e]=!0;return e}});w.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.jsonp!==!1&&(Fn.test(n.url)?"url":typeof n.data=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Fn.test(n.data)&&"data");if(a||n.dataTypes[0]==="jsonp"){s=n.jsonpCallback=w.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback;a?n[a]=n[a].replace(Fn,"$1"+s):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+s);n.converters["script json"]=function(){u||w.error(s+" was not called");return u[0]};n.dataTypes[0]="json";o=e[s];e[s]=function(){u=arguments};i.always(function(){e[s]=o;if(n[s]){n.jsonpCallback=r.jsonpCallback;jn.push(s)}u&&w.isFunction(o)&&o(u[0]);u=o=t});return"script"}});var In,qn,Rn=0,Un=e.ActiveXObject&&function(){var e;for(e in In)In[e](t,!0)};w.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&zn()||Wn()}:zn;qn=w.ajaxSettings.xhr();w.support.cors=!!qn&&"withCredentials"in qn;qn=w.support.ajax=!!qn;qn&&w.ajaxTransport(function(n){if(!n.crossDomain||w.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType);!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null);r=function(e,i){var u,f,l,c;try{if(r&&(i||a.readyState===4)){r=t;if(o){a.onreadystatechange=w.noop;Un&&delete In[o]}if(i)a.readyState!==4&&a.abort();else{c={};u=a.status;f=a.getAllResponseHeaders();typeof a.responseText=="string"&&(c.text=a.responseText);try{l=a.statusText}catch(h){l=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(p){i||s(-1,p)}c&&s(u,l,c,f)};if(!n.async)r();else if(a.readyState===4)setTimeout(r);else{o=++Rn;if(Un){if(!In){In={};w(e).unload(Un)}In[o]=r}a.onreadystatechange=r}},abort:function(){r&&r(t,!0)}}}});var Xn,Vn,$n=/^(?:toggle|show|hide)$/,Jn=new RegExp("^(?:([+-])=|)("+E+")([a-z%]*)$","i"),Kn=/queueHooks$/,Qn=[nr],Gn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Jn.exec(t),s=i&&i[3]||(w.cssNumber[e]?"":"px"),o=(w.cssNumber[e]||s!=="px"&&+r)&&Jn.exec(w.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3];i=i||[];o=+r||1;do{u=u||".5";o/=u;w.style(n.elem,e,o+s)}while(u!==(u=n.cur()/r)&&u!==1&&--a)}if(i){o=n.start=+o||+r||0;n.unit=s;n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]}return n}]};w.Animation=w.extend(er,{tweener:function(e,t){if(w.isFunction(e)){t=e;e=["*"]}else e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++){n=e[r];Gn[n]=Gn[n]||[];Gn[n].unshift(t)}},prefilter:function(e,t){t?Qn.unshift(e):Qn.push(e)}});w.Tween=rr;rr.prototype={constructor:rr,init:function(e,t,n,r,i,s){this.elem=e;this.prop=n;this.easing=i||"swing";this.options=t;this.start=this.now=this.cur();this.end=r;this.unit=s||(w.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e;this.now=(this.end-this.start)*t+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);n&&n.set?n.set(this):rr.propHooks._default.set(this);return this}};rr.prototype.init.prototype=rr.prototype;rr.propHooks={_default:{get:function(e){var t;if(e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null){t=w.css(e.elem,e.prop,"");return!t||t==="auto"?0:t}return e.elem[e.prop]},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):e.elem.style&&(e.elem.style[w.cssProps[e.prop]]!=null||w.cssHooks[e.prop])?w.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}};rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}};w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return e==null||typeof e=="boolean"?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}});w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),s=w.speed(t,n,r),o=function(){var t=er(this,w.extend({},e),s);(i||w._data(this,"finish"))&&t.stop(!0)};o.finish=o;return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop;t(r)};if(typeof e!="string"){r=n;n=e;e=t}n&&e!==!1&&this.queue(e||"fx",[]);return this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=w.timers,o=w._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Kn.test(n)&&i(o[n]);for(n=s.length;n--;)if(s[n].elem===this&&(e==null||s[n].queue===e)){s[n].anim.stop(r);t=!1;s.splice(n,1)}(t||!r)&&w.dequeue(this,e)})},finish:function(e){e!==!1&&(e=e||"fx");return this.each(function(){var t,n=w._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=w.timers,o=r?r.length:0;n.finish=!0;w.queue(this,e,[]);i&&i.stop&&i.stop.call(this,!0);for(t=s.length;t--;)if(s[t].elem===this&&s[t].queue===e){s[t].anim.stop(!0);s.splice(t,1)}for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});w.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}});w.speed=function(e,t,n){var r=e&&typeof e=="object"?w.extend({},e):{complete:n||!n&&t||w.isFunction(e)&&e,duration:e,easing:n&&t||t&&!w.isFunction(t)&&t};r.duration=w.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in w.fx.speeds?w.fx.speeds[r.duration]:w.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";r.old=r.complete;r.complete=function(){w.isFunction(r.old)&&r.old.call(this);r.queue&&w.dequeue(this,r.queue)};return r};w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}};w.timers=[];w.fx=rr.prototype.init;w.fx.tick=function(){var e,n=w.timers,r=0;Xn=w.now();for(;r<n.length;r++){e=n[r];!e()&&n[r]===e&&n.splice(r--,1)}n.length||w.fx.stop();Xn=t};w.fx.timer=function(e){e()&&w.timers.push(e)&&w.fx.start()};w.fx.interval=13;w.fx.start=function(){Vn||(Vn=setInterval(w.fx.tick,w.fx.interval))};w.fx.stop=function(){clearInterval(Vn);Vn=null};w.fx.speeds={slow:600,fast:200,_default:400};w.fx.step={};w.expr&&w.expr.filters&&(w.expr.filters.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length});w.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){w.offset.setOffset(this,e,t)});var n,r,s={top:0,left:0},o=this[0],u=o&&o.ownerDocument;if(!u)return;n=u.documentElement;if(!w.contains(n,o))return s;typeof o.getBoundingClientRect!==i&&(s=o.getBoundingClientRect());r=sr(u);return{top:s.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:s.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}};w.offset={setOffset:function(e,t,n){var r=w.css(e,"position");r==="static"&&(e.style.position="relative");var i=w(e),s=i.offset(),o=w.css(e,"top"),u=w.css(e,"left"),a=(r==="absolute"||r==="fixed")&&w.inArray("auto",[o,u])>-1,f={},l={},c,h;if(a){l=i.position();c=l.top;h=l.left}else{c=parseFloat(o)||0;h=parseFloat(u)||0}w.isFunction(t)&&(t=t.call(e,n,s));t.top!=null&&(f.top=t.top-s.top+c);t.left!=null&&(f.left=t.left-s.left+h);"using"in t?t.using.call(e,f):i.css(f)}};w.fn.extend({position:function(){if(!this[0])return;var e,t,n={top:0,left:0},r=this[0];if(w.css(r,"position")==="fixed")t=r.getBoundingClientRect();else{e=this.offsetParent();t=this.offset();w.nodeName(e[0],"html")||(n=e.offset());n.top+=w.css(e[0],"borderTopWidth",!0);n.left+=w.css(e[0],"borderLeftWidth",!0)}return{top:t.top-n.top-w.css(r,"marginTop",!0),left:t.left-n.left-w.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||u;while(e&&!w.nodeName(e,"html")&&w.css(e,"position")==="static")e=e.offsetParent;return e||u})}});w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);w.fn[e]=function(i){return w.access(this,function(e,i,s){var o=sr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?w(o).scrollLeft():s,r?s:w(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}});w.each({Height:"height",Width:"width"},function(e,n){w.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){w.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return w.access(this,function(n,r,i){var s;if(w.isWindow(n))return n.document.documentElement["client"+e];if(n.nodeType===9){s=n.documentElement;return Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])}return i===t?w.css(n,r,u):w.style(n,r,i,u)},n,o?i:t,o,null)}})});w.fn.size=function(){return this.length};w.fn.andSelf=w.fn.addBack;if(typeof module=="object"&&module&&typeof module.exports=="object")module.exports=w;else{e.jQuery=e.$=w;typeof define=="function"&&define.amd&&define("jquery",[],function(){return w})}})(window);(function(){var e=this,t=e._,n={},r=Array.prototype,i=Object.prototype,s=Function.prototype,o=r.push,u=r.slice,a=r.concat,f=i.toString,l=i.hasOwnProperty,c=r.forEach,h=r.map,p=r.reduce,d=r.reduceRight,v=r.filter,m=r.every,g=r.some,y=r.indexOf,b=r.lastIndexOf,w=Array.isArray,E=Object.keys,S=s.bind,x=function(e){return e instanceof x?e:this instanceof x?(this._wrapped=e,void 0):new x(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=x),exports._=x):e._=x,x.VERSION="1.4.4";var T=x.each=x.forEach=function(e,t,r){if(null!=e)if(c&&e.forEach===c)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,s=e.length;s>i;i++)if(t.call(r,e[i],i,e)===n)return}else for(var o in e)if(x.has(e,o)&&t.call(r,e[o],o,e)===n)return};x.map=x.collect=function(e,t,n){var r=[];return null==e?r:h&&e.map===h?e.map(t,n):(T(e,function(e,i,s){r[r.length]=t.call(n,e,i,s)}),r)};var N="Reduce of empty array with no initial value";x.reduce=x.foldl=x.inject=function(e,t,n,r){var i=arguments.length>2;if(null==e&&(e=[]),p&&e.reduce===p)return r&&(t=x.bind(t,r)),i?e.reduce(t,n):e.reduce(t);if(T(e,function(e,s,o){i?n=t.call(r,n,e,s,o):(n=e,i=!0)}),!i)throw new TypeError(N);return n},x.reduceRight=x.foldr=function(e,t,n,r){var i=arguments.length>2;if(null==e&&(e=[]),d&&e.reduceRight===d)return r&&(t=x.bind(t,r)),i?e.reduceRight(t,n):e.reduceRight(t);var s=e.length;if(s!==+s){var o=x.keys(e);s=o.length}if(T(e,function(u,a,f){a=o?o[--s]:--s,i?n=t.call(r,n,e[a],a,f):(n=e[a],i=!0)}),!i)throw new TypeError(N);return n},x.find=x.detect=function(e,t,n){var r;return C(e,function(e,i,s){return t.call(n,e,i,s)?(r=e,!0):void 0}),r},x.filter=x.select=function(e,t,n){var r=[];return null==e?r:v&&e.filter===v?e.filter(t,n):(T(e,function(e,i,s){t.call(n,e,i,s)&&(r[r.length]=e)}),r)},x.reject=function(e,t,n){return x.filter(e,function(e,r,i){return!t.call(n,e,r,i)},n)},x.every=x.all=function(e,t,r){t||(t=x.identity);var i=!0;return null==e?i:m&&e.every===m?e.every(t,r):(T(e,function(e,s,o){return(i=i&&t.call(r,e,s,o))?void 0:n}),!!i)};var C=x.some=x.any=function(e,t,r){t||(t=x.identity);var i=!1;return null==e?i:g&&e.some===g?e.some(t,r):(T(e,function(e,s,o){return i||(i=t.call(r,e,s,o))?n:void 0}),!!i)};x.contains=x.include=function(e,t){return null==e?!1:y&&e.indexOf===y?e.indexOf(t)!=-1:C(e,function(e){return e===t})},x.invoke=function(e,t){var n=u.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){return(r?t:e[t]).apply(e,n)})},x.pluck=function(e,t){return x.map(e,function(e){return e[t]})},x.where=function(e,t,n){return x.isEmpty(t)?n?null:[]:x[n?"find":"filter"](e,function(e){for(var n in t)if(t[n]!==e[n])return!1;return!0})},x.findWhere=function(e,t){return x.where(e,t,!0)},x.max=function(e,t,n){if(!t&&x.isArray(e)&&e[0]===+e[0]&&65535>e.length)return Math.max.apply(Math,e);if(!t&&x.isEmpty(e))return-1/0;var r={computed:-1/0,value:-1/0};return T(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o>=r.computed&&(r={value:e,computed:o})}),r.value},x.min=function(e,t,n){if(!t&&x.isArray(e)&&e[0]===+e[0]&&65535>e.length)return Math.min.apply(Math,e);if(!t&&x.isEmpty(e))return 1/0;var r={computed:1/0,value:1/0};return T(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;r.computed>o&&(r={value:e,computed:o})}),r.value},x.shuffle=function(e){var t,n=0,r=[];return T(e,function(e){t=x.random(n++),r[n-1]=r[t],r[t]=e}),r};var k=function(e){return x.isFunction(e)?
e:function(t){return t[e]}};x.sortBy=function(e,t,n){var r=k(t);return x.pluck(x.map(e,function(e,t,i){return{value:e,index:t,criteria:r.call(n,e,t,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(r>n||r===void 0)return-1}return e.index<t.index?-1:1}),"value")};var L=function(e,t,n,r){var i={},s=k(t||x.identity);return T(e,function(t,o){var u=s.call(n,t,o,e);r(i,u,t)}),i};x.groupBy=function(e,t,n){return L(e,t,n,function(e,t,n){(x.has(e,t)?e[t]:e[t]=[]).push(n)})},x.countBy=function(e,t,n){return L(e,t,n,function(e,t){x.has(e,t)||(e[t]=0),e[t]++})},x.sortedIndex=function(e,t,n,r){n=null==n?x.identity:k(n);for(var i=n.call(r,t),s=0,o=e.length;o>s;){var u=s+o>>>1;i>n.call(r,e[u])?s=u+1:o=u}return s},x.toArray=function(e){return e?x.isArray(e)?u.call(e):e.length===+e.length?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:e.length===+e.length?e.length:x.keys(e).length},x.first=x.head=x.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:u.call(e,0,t)},x.initial=function(e,t,n){return u.call(e,0,e.length-(null==t||n?1:t))},x.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:u.call(e,Math.max(e.length-t,0))},x.rest=x.tail=x.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},x.compact=function(e){return x.filter(e,x.identity)};var A=function(e,t,n){return T(e,function(e){x.isArray(e)?t?o.apply(n,e):A(e,t,n):n.push(e)}),n};x.flatten=function(e,t){return A(e,t,[])},x.without=function(e){return x.difference(e,u.call(arguments,1))},x.uniq=x.unique=function(e,t,n,r){x.isFunction(t)&&(r=n,n=t,t=!1);var i=n?x.map(e,n,r):e,s=[],o=[];return T(i,function(n,r){(t?r&&o[o.length-1]===n:x.contains(o,n))||(o.push(n),s.push(e[r]))}),s},x.union=function(){return x.uniq(a.apply(r,arguments))},x.intersection=function(e){var t=u.call(arguments,1);return x.filter(x.uniq(e),function(e){return x.every(t,function(t){return x.indexOf(t,e)>=0})})},x.difference=function(e){var t=a.apply(r,u.call(arguments,1));return x.filter(e,function(e){return!x.contains(t,e)})},x.zip=function(){for(var e=u.call(arguments),t=x.max(x.pluck(e,"length")),n=Array(t),r=0;t>r;r++)n[r]=x.pluck(e,""+r);return n},x.object=function(e,t){if(null==e)return{};for(var n={},r=0,i=e.length;i>r;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},x.indexOf=function(e,t,n){if(null==e)return-1;var r=0,i=e.length;if(n){if("number"!=typeof n)return r=x.sortedIndex(e,t),e[r]===t?r:-1;r=0>n?Math.max(0,i+n):n}if(y&&e.indexOf===y)return e.indexOf(t,n);for(;i>r;r++)if(e[r]===t)return r;return-1},x.lastIndexOf=function(e,t,n){if(null==e)return-1;var r=null!=n;if(b&&e.lastIndexOf===b)return r?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var i=r?n:e.length;i--;)if(e[i]===t)return i;return-1},x.range=function(e,t,n){1>=arguments.length&&(t=e||0,e=0),n=arguments[2]||1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=0,s=Array(r);r>i;)s[i++]=e,e+=n;return s},x.bind=function(e,t){if(e.bind===S&&S)return S.apply(e,u.call(arguments,1));var n=u.call(arguments,2);return function(){return e.apply(t,n.concat(u.call(arguments)))}},x.partial=function(e){var t=u.call(arguments,1);return function(){return e.apply(this,t.concat(u.call(arguments)))}},x.bindAll=function(e){var t=u.call(arguments,1);return 0===t.length&&(t=x.functions(e)),T(t,function(t){e[t]=x.bind(e[t],e)}),e},x.memoize=function(e,t){var n={};return t||(t=x.identity),function(){var r=t.apply(this,arguments);return x.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}},x.delay=function(e,t){var n=u.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},x.defer=function(e){return x.delay.apply(x,[e,1].concat(u.call(arguments,1)))},x.throttle=function(e,t){var n,r,i,s,o=0,u=function(){o=new Date,i=null,s=e.apply(n,r)};return function(){var a=new Date,f=t-(a-o);return n=this,r=arguments,0>=f?(clearTimeout(i),i=null,o=a,s=e.apply(n,r)):i||(i=setTimeout(u,f)),s}},x.debounce=function(e,t,n){var r,i;return function(){var s=this,o=arguments,u=function(){r=null,n||(i=e.apply(s,o))},a=n&&!r;return clearTimeout(r),r=setTimeout(u,t),a&&(i=e.apply(s,o)),i}},x.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}},x.wrap=function(e,t){return function(){var n=[e];return o.apply(n,arguments),t.apply(this,n)}},x.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},x.after=function(e,t){return 0>=e?t():function(){return 1>--e?t.apply(this,arguments):void 0}},x.keys=E||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)x.has(e,n)&&(t[t.length]=n);return t},x.values=function(e){var t=[];for(var n in e)x.has(e,n)&&t.push(e[n]);return t},x.pairs=function(e){var t=[];for(var n in e)x.has(e,n)&&t.push([n,e[n]]);return t},x.invert=function(e){var t={};for(var n in e)x.has(e,n)&&(t[e[n]]=n);return t},x.functions=x.methods=function(e){var t=[];for(var n in e)x.isFunction(e[n])&&t.push(n);return t.sort()},x.extend=function(e){return T(u.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e},x.pick=function(e){var t={},n=a.apply(r,u.call(arguments,1));return T(n,function(n){n in e&&(t[n]=e[n])}),t},x.omit=function(e){var t={},n=a.apply(r,u.call(arguments,1));for(var i in e)x.contains(n,i)||(t[i]=e[i]);return t},x.defaults=function(e){return T(u.call(arguments,1),function(t){if(t)for(var n in t)null==e[n]&&(e[n]=t[n])}),e},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,t){return t(e),e};var O=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof x&&(e=e._wrapped),t instanceof x&&(t=t._wrapped);var i=f.call(e);if(i!=f.call(t))return!1;switch(i){case"[object String]":return e==t+"";case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var s=n.length;s--;)if(n[s]==e)return r[s]==t;n.push(e),r.push(t);var o=0,u=!0;if("[object Array]"==i){if(o=e.length,u=o==t.length)for(;o--&&(u=O(e[o],t[o],n,r)););}else{var a=e.constructor,l=t.constructor;if(a!==l&&!(x.isFunction(a)&&a instanceof a&&x.isFunction(l)&&l instanceof l))return!1;for(var c in e)if(x.has(e,c)&&(o++,!(u=x.has(t,c)&&O(e[c],t[c],n,r))))break;if(u){for(c in t)if(x.has(t,c)&&!(o--))break;u=!o}}return n.pop(),r.pop(),u};x.isEqual=function(e,t){return O(e,t,[],[])},x.isEmpty=function(e){if(null==e)return!0;if(x.isArray(e)||x.isString(e))return 0===e.length;for(var t in e)if(x.has(e,t))return!1;return!0},x.isElement=function(e){return!!e&&1===e.nodeType},x.isArray=w||function(e){return"[object Array]"==f.call(e)},x.isObject=function(e){return e===Object(e)},T(["Arguments","Function","String","Number","Date","RegExp"],function(e){x["is"+e]=function(t){return f.call(t)=="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return!!e&&!!x.has(e,"callee")}),"function"!=typeof /./&&(x.isFunction=function(e){return"function"==typeof e}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!=+e},x.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"==f.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return e===void 0},x.has=function(e,t){return l.call(e,t)},x.noConflict=function(){return e._=t,this},x.identity=function(e){return e},x.times=function(e,t,n){for(var r=Array(e),i=0;e>i;i++)r[i]=t.call(n,i);return r},x.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))};var M={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};M.unescape=x.invert(M.escape);var _={escape:RegExp("["+x.keys(M.escape).join("")+"]","g"),unescape:RegExp("("+x.keys(M.unescape).join("|")+")","g")};x.each(["escape","unescape"],function(e){x[e]=function(t){return null==t?"":(""+t).replace(_[e],function(t){return M[e][t]})}}),x.result=function(e,t){if(null==e)return null;var n=e[t];return x.isFunction(n)?n.call(e):n},x.mixin=function(e){T(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return o.apply(e,arguments),j.call(this,n.apply(x,e))}})};var D=0;x.uniqueId=function(e){var t=++D+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\t|\u2028|\u2029/g;x.template=function(e,t,n){var r;n=x.defaults({},n,x.templateSettings);var i=RegExp([(n.escape||P).source,(n.interpolate||P).source,(n.evaluate||P).source].join("|")+"|$","g"),s=0,o="__p+='";e.replace(i,function(t,n,r,i,u){return o+=e.slice(s,u).replace(B,function(e){return"\\"+H[e]}),n&&(o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(o+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),i&&(o+="';\n"+i+"\n__p+='"),s=u+t.length,t}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=Function(n.variable||"obj","_",o)}catch(u){throw u.source=o,u}if(t)return r(t,x);var a=function(e){return r.call(this,e,x)};return a.source="function("+(n.variable||"obj")+"){\n"+o+"}",a},x.chain=function(e){return x(e).chain()};var j=function(e){return this._chain?x(e).chain():e};x.mixin(x),T(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!=e&&"splice"!=e||0!==n.length||delete n[0],j.call(this,n)}}),T(["concat","join","slice"],function(e){var t=r[e];x.prototype[e]=function(){return j.call(this,t.apply(this._wrapped,arguments))}}),x.extend(x.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this);(function(){var e=this,t=e.Backbone,n=[],r=n.push,i=n.slice,s=n.splice,o;o="undefined"!=typeof exports?exports:e.Backbone={};o.VERSION="0.9.10";var u=e._;!u&&"undefined"!=typeof require&&(u=require("underscore"));o.$=e.jQuery||e.Zepto||e.ender;o.noConflict=function(){e.Backbone=t;return this};o.emulateHTTP=!1;o.emulateJSON=!1;var a=/\s+/,f=function(e,t,n,r){if(!n)return!0;if("object"==typeof n)for(var i in n)e[t].apply(e,[i,n[i]].concat(r));else{if(!a.test(n))return!0;n=n.split(a);i=0;for(var s=n.length;i<s;i++)e[t].apply(e,[n[i]].concat(r))}},l=function(e,t){var n,r=-1,i=e.length;switch(t.length){case 0:for(;++r<i;)(n=e[r]).callback.call(n.ctx);break;case 1:for(;++r<i;)(n=e[r]).callback.call(n.ctx,t[0]);break;case 2:for(;++r<i;)(n=e[r]).callback.call(n.ctx,t[0],t[1]);break;case 3:for(;++r<i;)(n=e[r]).callback.call(n.ctx,t[0],t[1],t[2]);break;default:for(;++r<i;)(n=e[r]).callback.apply(n.ctx,t)}},n=o.Events={on:function(e,t,n){if(!f(this,"on",e,[t,n])||!t)return this;this._events||(this._events={});(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this});return this},once:function(e,t,n){if(!f(this,"once",e,[t,n])||!t)return this;var r=this,i=u.once(function(){r.off(e,i);t.apply(this,arguments)});i._callback=t;this.on(e,i,n);return this},off:function(e,t,n){var r,i,s,o,a,l,c,h;if(!this._events||!f(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events={},this;o=e?[e]:u.keys(this._events);a=0;for(l=o.length;a<l;a++)if(e=o[a],r=this._events[e]){s=[];if(t||n){c=0;for(h=r.length;c<h;c++)i=r[c],(t&&t!==i.callback&&t!==i.callback._callback||n&&n!==i.context)&&s.push(i)}this._events[e]=s}return this},trigger:function(e){if(!this._events)return this;var t=i.call(arguments,1);if(!f(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;n&&l(n,t);r&&l(r,arguments);return this},listenTo:function(e,t,n){var r=this._listeners||(this._listeners={}),i=e._listenerId||(e._listenerId=u.uniqueId("l"));r[i]=e;e.on(t,"object"==typeof t?this:n,this);return this},stopListening:function(e,t,n){var r=this._listeners;if(r){if(e)e.off(t,"object"==typeof t?this:n,this),!t&&!n&&delete r[e._listenerId];else{"object"==typeof t&&(n=this);for(var i in r)r[i].off(t,n,this);this._listeners={}}return this}}};n.bind=n.on;n.unbind=n.off;u.extend(o,n);var c=o.Model=function(e,t){var n,r=e||{};this.cid=u.uniqueId("c");this.attributes={};t&&t.collection&&(this.collection=t.collection);t&&t.parse&&(r=this.parse(r,t)||{});if(n=u.result(this,"defaults"))r=u.defaults({},r,n);this.set(r,t);this.changed={};this.initialize.apply(this,arguments)};u.extend(c.prototype,n,{changed:null,idAttribute:"id",initialize:function(){},toJSON:function(){return u.clone(this.attributes)},sync:function(){return o.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return u.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,n){var r,i,s,o,a,f,l;if(null==e)return this;"object"==typeof e?(i=e,n=t):(i={})[e]=t;n||(n={});if(!this._validate(i,n))return!1;s=n.unset;o=n.silent;e=[];a=this._changing;this._changing=!0;a||(this._previousAttributes=u.clone(this.attributes),this.changed={});l=this.attributes;f=this._previousAttributes;this.idAttribute in i&&(this.id=i[this.idAttribute]);for(r in i)t=i[r],u.isEqual(l[r],t)||e.push(r),u.isEqual(f[r],t)?delete this.changed[r]:this.changed[r]=t,s?delete l[r]:l[r]=t;if(!o){e.length&&(this._pending=!0);t=0;for(r=e.length;t<r;t++)this.trigger("change:"+e[t],this,l[e[t]],n)}if(a)return this;if(!o)for(;this._pending;)this._pending=!1,this.trigger("change",this,n);this._changing=this._pending=!1;return this},unset:function(e,t){return this.set(e,void 0,u.extend({},t,{unset:!0}))},clear:function(e){var t={},n;for(n in this.attributes)t[n]=void 0;return this.set(t,u.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!u.isEmpty(this.changed):u.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?u.clone(this.changed):!1;var t,n=!1,r=this._changing?this._previousAttributes:this.attributes,i;for(i in e)u.isEqual(r[i],t=e[i])||((n||(n={}))[i]=t);return n},previous:function(e){return null==e||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return u.clone(this._previousAttributes)},fetch:function(e){e=e?u.clone(e):{};void 0===e.parse&&(e.parse=!0);var t=e.success;e.success=function(e,n,r){if(!e.set(e.parse(n,r),r))return!1;t&&t(e,n,r)};return this.sync("read",this,e)},save:function(e,t,n){var r,i,s=this.attributes;null==e||"object"==typeof e?(r=e,n=t):(r={})[e]=t;if(r&&(!n||!n.wait)&&!this.set(r,n))return!1;n=u.extend({validate:!0},n);if(!this._validate(r,n))return!1;r&&n.wait&&(this.attributes=u.extend({},s,r));void 0===n.parse&&(n.parse=!0);i=n.success;n.success=function(e,t,n){e.attributes=s;var o=e.parse(t,n);n.wait&&(o=u.extend(r||{},o));if(u.isObject(o)&&!e.set(o,n))return!1;i&&i(e,t,n)};e=this.isNew()?"create":n.patch?"patch":"update";"patch"===e&&(n.attrs=r);e=this.sync(e,this,n);r&&n.wait&&(this.attributes=s);return e},destroy:function(e){e=e?u.clone(e):{};var t=this,n=e.success,r=function(){t.trigger("destroy",t,t.collection,e)};e.success=function(e,t,i){(i.wait||e.isNew())&&r();n&&n(e,t,i)};if(this.isNew())return e.success(this,null,e),!1;var i=this.sync("delete",this,e);e.wait||r();return i},url:function(){var e=u.result(this,"urlRoot")||u.result(this.collection,"url")||k();return this.isNew()?e:e+("/"===e.charAt(e.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(e){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(e){return!this.validate||!this.validate(this.attributes,e)},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=u.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;if(!n)return!0;this.trigger("invalid",this,n,t||{});return!1}});var h=o.Collection=function(e,t){t||(t={});t.model&&(this.model=t.model);void 0!==t.comparator&&(this.comparator=t.comparator);this.models=[];this._reset();this.initialize.apply(this,arguments);e&&this.reset(e,u.extend({silent:!0},t))};u.extend(h.prototype,n,{model:c,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return o.sync.apply(this,arguments)},add:function(e,t){e=u.isArray(e)?e.slice():[e];t||(t={});var n,i,o,a,f,l,c,h,p,d;c=[];h=t.at;p=this.comparator&&null==h&&0!=t.sort;d=u.isString(this.comparator)?this.comparator:null;n=0;for(i=e.length;n<i;n++)(o=this._prepareModel(a=e[n],t))?(f=this.get(o))?t.merge&&(f.set(a===o?o.attributes:a,t),p&&!l&&f.hasChanged(d)&&(l=!0)):(c.push(o),o.on("all",this._onModelEvent,this),this._byId[o.cid]=o,null!=o.id&&(this._byId[o.id]=o)):this.trigger("invalid",this,a,t);c.length&&(p&&(l=!0),this.length+=c.length,null!=h?s.apply(this.models,[h,0].concat(c)):r.apply(this.models,c));l&&this.sort({silent:!0});if(t.silent)return this;n=0;for(i=c.length;n<i;n++)(o=c[n]).trigger("add",o,this,t);l&&this.trigger("sort",this,t);return this},remove:function(e,t){e=u.isArray(e)?e.slice():[e];t||(t={});var n,r,i,s;n=0;for(r=e.length;n<r;n++)if(s=this.get(e[n]))delete this._byId[s.id],delete this._byId[s.cid],i=this.indexOf(s),this.models.splice(i,1),this.length--,t.silent||(t.index=i,s.trigger("remove",s,this,t)),this._removeReference(s);return this},push:function(e,t){e=this._prepareModel(e,t);this.add(e,u.extend({at:this.length},t));return e},pop:function(e){var t=this.at(this.length-1);this.remove(t,e);return t},unshift:function(e,t){e=this._prepareModel(e,t);this.add(e,u.extend({at:0},t));return e},shift:function(e){var t=this.at(0);this.remove(t,e);return t},slice:function(e,t){return this.models.slice(e,t)},get:function(e){if(null!=e)return this._idAttr||(this._idAttr=this.model.prototype.idAttribute),this._byId[e.id||e.cid||e[this._idAttr]||e]},at:function(e){return this.models[e]},where:function(e){return u.isEmpty(e)?[]:this.filter(function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},sort:function(e){if(!this.comparator)throw Error("Cannot sort a set without a comparator");e||(e={});u.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(u.bind(this.comparator,this));e.silent||this.trigger("sort",this,e);return this},pluck:function(e){return u.invoke(this.models,"get",e)},update:function(e,t){t=u.extend({add:!0,merge:!0,remove:!0},t);t.parse&&(e=this.parse(e,t));var n,r,i,s,o=[],a=[],f={};u.isArray(e)||(e=e?[e]:[]);if(t.add&&!t.remove)return this.add(e,t);r=0;for(i=e.length;r<i;r++)n=e[r],s=this.get(n),t.remove&&s&&(f[s.cid]=!0),(t.add&&!s||t.merge&&s)&&o.push(n);if(t.remove){r=0;for(i=this.models.length;r<i;r++)n=this.models[r],f[n.cid]||a.push(n)}a.length&&this.remove(a,t);o.length&&this.add(o,t);return this},reset:function(e,t){t||(t={});t.parse&&(e=this.parse(e,t));for(var n=0,r=this.models.length;n<r;n++)this._removeReference(this.models[n]);t.previousModels=this.models.slice();this._reset();e&&this.add(e,u.extend({silent:!0},t));t.silent||this.trigger("reset",this,t);return this},fetch:function(e){e=e?u.clone(e):{};void 0===e.parse&&(e.parse=!0);var t=e.success;e.success=function(e,n,r){e[r.update?"update":"reset"](n,r);t&&t(e,n,r)};return this.sync("read",this,e)},create:function(e,t){t=t?u.clone(t):{};if(!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var n=this,r=t.success;t.success=function(e,t,i){i.wait&&n.add(e,i);r&&r(e,t,i)};e.save(null,t);return e},parse:function(e){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models.length=0;this._byId={}},_prepareModel:function(e,t){if(e instanceof c)return e.collection||(e.collection=this),e;t||(t={});t.collection=this;var n=new this.model(e,t);return n._validate(e,t)?n:!1},_removeReference:function(e){this===e.collection&&delete e.collection;e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"===e||"remove"===e)&&n!==this||("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))},sortedIndex:function(e,t,n){t||(t=this.comparator);var r=u.isFunction(t)?t:function(e){return e.get(t)};return u.sortedIndex(this.models,e,r,n)}});u.each("forEach each map collect reduce foldl inject reduceRight foldr find detect filter select reject every all some any include contains invoke max min toArray size first head take initial rest tail drop last without indexOf shuffle lastIndexOf isEmpty chain".split(" "),function(e){h.prototype[e]=function(){var t=i.call(arguments);t.unshift(this.models);return u[e].apply(u,t)}});u.each(["groupBy","countBy","sortBy"],function(e){h.prototype[e]=function(t,n){var r=u.isFunction(t)?t:function(e){return e.get(t)};return u[e](this.models,r,n)}});var p=o.Router=function(e){e||(e={});e.routes&&(this.routes=e.routes);this._bindRoutes();this.initialize.apply(this,arguments)},d=/\((.*?)\)/g,v=/(\(\?)?:\w+/g,m=/\*\w+/g,g=/[\-{}\[\]+?.,\\\^$|#\s]/g;u.extend(p.prototype,n,{initialize:function(){},route:function(e,t,n){u.isRegExp(e)||(e=this._routeToRegExp(e));n||(n=this[t]);o.history.route(e,u.bind(function(r){r=this._extractParameters(e,r);n&&n.apply(this,r);this.trigger.apply(this,["route:"+t].concat(r));this.trigger("route",t,r);o.history.trigger("route",this,t,r)},this));return this},navigate:function(e,t){o.history.navigate(e,t);return this},_bindRoutes:function(){if(this.routes)for(var e,t=u.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])},_routeToRegExp:function(e){e=e.replace(g,"\\$&").replace(d,"(?:$1)?").replace(v,function(e,t){return t?e:"([^/]+)"}).replace(m,"(.*?)");return RegExp("^"+e+"$")},_extractParameters:function(e,t){return e.exec(t).slice(1)}});var y=o.History=function(){this.handlers=[];u.bindAll(this,"checkUrl");"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},b=/^[#\/]|\s+$/g,w=/^\/+|\/+$/g,E=/msie [\w.]+/,S=/\/$/;y.started=!1;u.extend(y.prototype,n,{interval:50,getHash:function(e){return(e=(e||this).location.href.match(/#(.*)$/))?e[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=this.location.pathname;var n=this.root.replace(S,"");e.indexOf(n)||(e=e.substr(n.length))}else e=this.getHash();return e.replace(b,"")},start:function(e){if(y.started)throw Error("Backbone.history has already been started");y.started=!0;this.options=u.extend({},{root:"/"},this.options,e);this.root=this.options.root;this._wantsHashChange=!1!==this.options.hashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||!this.history||!this.history.pushState);e=this.getFragment();var t=document.documentMode,t=E.exec(navigator.userAgent.toLowerCase())&&(!t||7>=t);this.root=("/"+this.root+"/").replace(w,"/");t&&this._wantsHashChange&&(this.iframe=o.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(e));this._hasPushState?o.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!t?o.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));this.fragment=e;e=this.location;t=e.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!t)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._wantsPushState&&this._hasPushState&&t&&e.hash&&(this.fragment=this.getHash().replace(b,""),this.history.replaceState({},document.title,this.root+this.fragment+e.search));if(!this.options.silent)return this.loadUrl()},stop:function(){o.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);y.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(){var e=this.getFragment();e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe)));if(e===this.fragment)return!1;this.iframe&&this.navigate(e);this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(e){var t=this.fragment=this.getFragment(e);return u.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(e,t){if(!y.started)return!1;if(!t||!0===t)t={trigger:t};e=this.getFragment(e||"");if(this.fragment!==e){this.fragment=e;var n=this.root+e;if(this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}t.trigger&&this.loadUrl(e)}},_updateHash:function(e,t,n){n?(n=e.href.replace(/(javascript:|#).*$/,""),e.replace(n+"#"+t)):e.hash="#"+t}});o.history=new y;var x=o.View=function(e){this.cid=u.uniqueId("view");this._configure(e||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},T=/^(\S+)\s*(.*)$/,N="model collection el id attributes className tagName events".split(" ");u.extend(x.prototype,n,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(e,t){this.$el&&this.undelegateEvents();this.$el=e instanceof o.$?e:o.$(e);this.el=this.$el[0];!1!==t&&this.delegateEvents();return this},delegateEvents:function(e){if(e||(e=u.result(this,"events"))){this.undelegateEvents();for(var t in e){var n=e[t];u.isFunction(n)||(n=this[e[t]]);if(!n)throw Error('Method "'+e[t]+'" does not exist');var r=t.match(T),i=r[1],r=r[2],n=u.bind(n,this),i=i+(".delegateEvents"+this.cid);""===r?this.$el.on(i,n):this.$el.on(i,r,n)}}},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid)},_configure:function(e){this.options&&(e=u.extend({},u.result(this,"options"),e));u.extend(this,u.pick(e,N));this.options=e},_ensureElement:function(){if(this.el)this.setElement(u.result(this,"el"),!1);else{var e=u.extend({},u.result(this,"attributes"));this.id&&(e.id=u.result(this,"id"));this.className&&(e["class"]=u.result(this,"className"));e=o.$("<"+u.result(this,"tagName")+">").attr(e);this.setElement(e,!1)}}});var C={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};o.sync=function(e,t,n){var r=C[e];u.defaults(n||(n={}),{emulateHTTP:o.emulateHTTP,emulateJSON:o.emulateJSON});var i={type:r,dataType:"json"};n.url||(i.url=u.result(t,"url")||k());null==n.data&&t&&("create"===e||"update"===e||"patch"===e)&&(i.contentType="application/json",i.data=JSON.stringify(n.attrs||t.toJSON(n)));n.emulateJSON&&(i.contentType="application/x-www-form-urlencoded",i.data=i.data?{model:i.data}:{});if(n.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){i.type="POST";n.emulateJSON&&(i.data._method=r);var s=n.beforeSend;n.beforeSend=function(e){e.setRequestHeader("X-HTTP-Method-Override",r);if(s)return s.apply(this,arguments)}}"GET"!==i.type&&!n.emulateJSON&&(i.processData=!1);var a=n.success;n.success=function(e){a&&a(t,e,n);t.trigger("sync",t,e,n)};var f=n.error;n.error=function(e){f&&f(t,e,n);t.trigger("error",t,e,n)};e=n.xhr=o.ajax(u.extend(i,n));t.trigger("request",t,e,n);return e};o.ajax=function(){return o.$.ajax.apply(o.$,arguments)};c.extend=h.extend=p.extend=x.extend=y.extend=function(e,t){var n=this,r;r=e&&u.has(e,"constructor")?e.constructor:function(){return n.apply(this,arguments)};u.extend(r,n,t);var i=function(){this.constructor=r};i.prototype=n.prototype;r.prototype=new i;e&&u.extend(r.prototype,e);r.__super__=n.prototype;return r};var k=function(){throw Error('A "url" property or function must be specified')}}).call(this);var Tipped={version:"3.1.3"};Tipped.Skins={base:{afterUpdate:!1,ajax:{cache:!0,type:"get"},background:{color:"#ECF0F1",opacity:1},border:{size:1,color:"#000",opacity:1},closeButtonSkin:"default",containment:{selector:"viewport"},fadeIn:180,fadeOut:220,showDelay:75,hideDelay:25,radius:{size:2,position:"background"},hideAfter:!1,hideOn:{element:"self",event:"mouseleave"},hideOthers:!1,hook:"topleft",inline:!1,offset:{x:0,y:0},onHide:!1,onShow:!1,shadow:{blur:2,color:"#000",offset:{x:0,y:0},opacity:0},showOn:"mousemove",spinner:!0,stem:{height:9,width:18,offset:{x:9,y:9},spacing:2},target:"self"},reset:{ajax:!1,closeButton:!1,hideOn:[{element:"self",event:"mouseleave"},{element:"tooltip",event:"mouseleave"}],hook:"topmiddle",stem:!0},fontprep:{background:{color:"#fff"},border:{size:1,color:"#000",opacity:.1},shadow:{opacity:0,blur:0,offset:{x:2,y:2}},spinner:{color:"#333"},radius:5,stem:{height:6,width:20}}};(function(e){e.extend(Tipped.Skins,{black:e.extend(!0,{},Tipped.Skins.dark,{radius:0}),white:e.extend(!0,{},Tipped.Skins.light,{radius:0})})})(jQuery);Tipped.Skins.CloseButtons={base:{diameter:17,border:2,x:{diameter:10,size:2,opacity:1},states:{"default":{background:{color:[{position:0,color:"#1a1a1a"},{position:.46,color:"#171717"},{position:.53,color:"#121212"},{position:.54,color:"#101010"},{position:1,color:"#000"}],opacity:1},x:{color:"#fafafa",opacity:1},border:{color:"#fff",opacity:1}},hover:{background:{color:"#333",opacity:1},x:{color:"#e6e6e6",opacity:1},border:{color:"#fff",opacity:1}}},shadow:{blur:1,color:"#000",offset:{x:0,y:0},opacity:.5}},reset:{},"default":{},light:{diameter:17,border:2,x:{diameter:10,size:2,opacity:1},states:{"default":{background:{color:[{position:0,color:"#797979"},{position:.48,color:"#717171"},{position:.52,color:"#666"},{position:1,color:"#666"}],opacity:1},x:{color:"#fff",opacity:.95},border:{color:"#676767",opacity:1}},hover:{background:{color:[{position:0,color:"#868686"},{position:.48,color:"#7f7f7f"},{position:.52,color:"#757575"},{position:1,color:"#757575"}],opacity:1},x:{color:"#fff",opacity:1},border:{color:"#767676",opacity:1}}}}};eval(function(e,t,n,r,i,s){i=function(e){return(e<t?"":i(parseInt(e/t)))+((e%=t)>35?String.fromCharCode(e+29):e.toString(36))};if(!"".replace(/^/,String)){while(n--)s[i(n)]=r[n]||i(n);r=[function(e){return s[e]}];i=function(){return"\\w+"};n=1}while(n--)r[n]&&(e=e.replace(new RegExp("\\b"+i(n)+"\\b","g"),r[n]));return e}('!12(a){12 c(a,b){13 c=[a,b];1a c.15=a,c.17=b,c}12 f(a){1K.5z&&5z[5z.6F?"6F":"8i"](a)}12 j(a){11.1g=a}12 k(a){13 b={};28(13 c 5A a)b[c]=a[c]+"2y";1a b}12 l(a,b){1a 1b.8j(a*a+b*b)}12 m(a){1a 2F*a/1b.30}12 n(a){1a a*1b.30/2F}12 o(a){1a 1/1b.4G(a)}12 v(b){1f(b){11.1g=b,u.1y(b);13 c=11.2e();11.19=a.1k({},c.19),11.2z=1,11.1o={},11.1V=a(b).1X("2s-1V"),u.31(11),11.29=11.19.1u.1D,11.6G=11.19.1l&&11.29,11.3d={x:0,y:0},11.3n={17:0,15:0},11.1P()}}12 x(b,c){11.1g=b,11.1g&&c&&(11.19=a.1k({32:3,1A:{x:0,y:0},1Q:"#4H",1L:.5,2M:1},20[2]||{}),11.2z=11.19.2M,11.1o={},11.1V=a(b).1X("2s-1V"),w.31(11),11.1P())}12 z(b){11.1g=b,11.1g&&(11.19=a.1k({32:5,1A:{x:0,y:0},1Q:"#4H",1L:.5,2M:1},20[1]||{}),11.2z=11.19.2M,11.1V=a(b).1X("2s-1V"),y.31(11),11.1P())}12 A(b,c){28(13 d 5A c)c[d]&&c[d].3G&&c[d].3G===5B?(b[d]=a.1k({},b[d])||{},A(b[d],c[d])):b[d]=c[d];1a b}12 C(b,c){1f(11.1g=b,11.1g){13 e=a(b).1X("2s-1V");e&&B.1y(b),e=h(),a(b).1X("2s-1V",e),11.1V=e;13 f;"8k"!=a.1p(c)||d.2k(c)?f=20[2]||{}:(f=c,c=1r),11.19=B.6H(f);13 g=b.6I("5C");1f(!c){13 i=b.6I("1X-2s");i?c=i:g&&(c=g)}g&&(a(b).1X("5D",g),b.8l("5C","")),11.2G=c,11.2l=11.19.2l||+B.19.4I,11.1o={2H:{14:1,18:1},5E:[],3e:[],2t:{4J:!1,2m:!1,1M:!1,3f:!1,1P:!1,4K:!1,5F:!1,3H:!1},5G:""};13 j=11.19.1C;11.1C="2N"==j?"2N":"4L"!=j&&j?d.2k(j)?j:j&&1x.6J(j)||11.1g:11.1g,11.6K(),B.31(11)}}13 b=6L.3I.8m,d={8n:12(c,d){13 e=c;1a 12(){13 c=[a.1v(e,11)].6M(b.5H(20));1a d.5I(11,c)}},2k:12(a){1a a&&1==a.8o},4M:12(a,c){13 d=b.5H(20,2);1a 8p(12(){1a a.5I(a,d)},c)},46:12(a){1a d.4M.5I(11,[a,1].6M(b.5H(20,1)))},5J:12(a){1a{x:a.5K,y:a.6N}},1g:{4N:12(a){13 b=0,d=0;8q b+=a.4O||0,d+=a.4P||0,a=a.4Q;8r(a);1a c(d,b)},4R:12(b){13 e=a(b).1A(),f=d.1g.4N(b),g={17:a(1K).4O(),15:a(1K).4P()};1a e.15+=f.15-g.15,e.17+=f.17-g.17,c(e.15,e.17)},4S:12(){12 a(a){28(13 b=a;b&&b.4Q;)b=b.4Q;1a b}1a 12(b){13 c=a(b);1a!(!c||!c.33)}}()}},e=12(a){12 b(b){13 c=2I 5L(b+"([\\\\d.]+)").8s(a);1a c?5M(c[1]):!0}1a{3o:!(!1K.8t||-1!==a.3p("5N"))&&b("8u "),5N:a.3p("5N")>-1&&(!!1K.5O&&5O.6O&&5M(5O.6O())||7.55),5P:a.3p("6P/")>-1&&b("6P/"),4T:a.3p("4T")>-1&&-1===a.3p("8v")&&b("8w:"),6Q:!!a.3g(/8x.*8y.*8z/),4U:a.3p("4U")>-1&&b("4U/")}}(8A.8B),g={34:{47:{5Q:"1.4.4",5R:1K.47&&47.8C.8D}},6R:12(){12 b(b){28(13 c=b.3g(a),d=c&&c[1]&&c[1].2O(".")||[],e=0,f=0,g=d.2a;g>f;f++)e+=2P(d[f]*1b.6S(10,6-2*f));1a c&&c[3]?e-1:e}13 a=/^(\\d+(\\.?\\d+){0,3})([A-6T-8E-]+[A-6T-8F-9]+)?/;1a 12(a){11.34[a].6U||(11.34[a].6U=!0,(!11.34[a].5R||b(11.34[a].5R)<b(11.34[a].5Q)&&!11.34[a].6V)&&(11.34[a].6V=!0,f("1R 8G "+a+" >= "+11.34[a].5Q)))}}()},h=12(){13 a=0,b="8H";1a 12(c){28(c=c||b,a++;1x.6J(c+a);)a++;1a c+a}}(),i=12(){13 b=[];1a{1t:12(c){28(13 d=1r,e=0;e<b.2a;e++)b[e]&&b[e].48==c.48&&b[e].1p.6W()==c.1p.6W()&&a.6X(b[e].1X||{})==a.6X(c.1X||{})&&(d=b[e].4V);1a d},4W:12(c,d){11.1y(c.48),b.2n(a.1k({},c,{4V:d}))},1y:12(a){28(13 c=0;c<b.2a;c++)b[c]&&b[c].48==a&&3J b[c]},6Y:12(){b=[]}}}();a.1k(1R,12(){1a{2A:{3h:12(){13 a=1x.22("3h");1a!(!a.3q||!a.3q("2d"))}(),3r:12(){6Z{1a!!("8I"5A 1K||1K.70&&1x 8J 70)}71(a){1a!1}}(),49:12(){13 b=["8K","8L","8M"],c=!1;1a a.1w(b,12(a,b){6Z{1x.8N(b),c=!0}71(d){}}),c}()},3s:12(){(11.2A.3h||e.3o)&&(g.6R("47"),B.3t.1i&&(B.3t.1i.1y(),B.3t.1i=1r),a(1x).8O(12(){B.72(),B.73()}))},4X:12(a,b,c){1a j.4X(a,b,c),11.1t(a)},1t:12(a){1a 2I j(a)},5S:12(a){1a B.5S(a)},1W:12(a){1a 11.1t(a).1W(),11},1I:12(a){1a 11.1t(a).1I(),11},35:12(a){1a 11.1t(a).35(),11},2Q:12(a){1a 11.1t(a).2Q(),11},1y:12(a){1a 11.1t(a).1y(),11},4Y:12(){1a B.4Y(),11},5T:12(a){1a B.5T(a),11},5U:12(a){1a B.5U(a),11},1M:12(b){1f(d.2k(b))1a B.5V(b);1f("5W"!=a.1p(b)){13 c=a(b),e=0;1a a.1w(c,12(a,b){B.5V(b)&&e++}),e}1a B.3K().2a},5X:12(){1a B.5X(),11}}}()),a.1k(j,{4X:12(b,c){1f(b){13 e=20[2]||{},f=[];1a B.74(),d.2k(b)?f.2n(2I C(b,c,e)):a(b).1w(12(a,b){f.2n(2I C(b,c,e))}),f}}}),a.1k(j.3I,{4a:12(){1a B.2f.4Z={x:0,y:0},B.1t(11.1g)},1W:12(){1a a.1w(11.4a(),12(a,b){b.1W()}),11},1I:12(){1a a.1w(11.4a(),12(a,b){b.1I()}),11},35:12(){1a a.1w(11.4a(),12(a,b){b.35()}),11},2Q:12(){1a a.1w(11.4a(),12(a,b){b.2Q()}),11},1y:12(){1a B.1y(11.1g),11}});13 p={51:12(){13 b;1a b=e.6Q?{14:1K.5Y,18:1K.5Z}:{18:a(1K).18(),14:a(1K).14()}}},q={3u:1b.1E(1b.52(1K.3u?5M(1K.3u)||1:1,2)),3s:12(){12 a(a){13 b=a.3q("2d");b.8P(q.3u,q.3u)}1a 1K.53&&!1R.2A.3h&&e.3o?12(b){53.8Q(b),a(b)}:12(b){a(b)}}(),3v:12(b,c){a(b).3i({14:c.14*11.3u,18:c.18*11.3u}).1q(k(c))},75:12(b){13 c=a.1k({17:0,15:0,14:0,18:0,1n:0},20[1]||{}),d=c,e=d.15,f=d.17,g=d.14,h=d.18,i=d.1n;1a i?(b.2g(),b.3w(e+i,f),b.26(e+g-i,f+i,i,n(-90),n(0),!1),b.26(e+g-i,f+h-i,i,n(0),n(90),!1),b.26(e+i,f+h-i,i,n(90),n(2F),!1),b.26(e+i,f+i,i,n(-2F),n(-90),!1),b.2h(),b.36(),3x 0):(b.76(e,f,g,h),3x 0)},8R:12(b,c){28(13 d=a.1k({x:0,y:0,1Q:"#4H"},20[2]||{}),e=0,f=c.2a;f>e;e++)28(13 g=0,h=c[e].2a;h>g;g++){13 i=2P(c[e].3y(g))*(1/9);b.2R=t.2S(d.1Q,i),i&&b.76(d.x+g,d.y+e,1,1)}},4b:12(b,c){13 d;1f("2u"==a.1p(c))d=t.2S(c);1G 1f("2u"==a.1p(c.1Q))d=t.2S(c.1Q,"2B"==a.1p(c.1L)?c.1L:1);1G 1f(a.77(c.1Q)){13 e=a.1k({3L:0,3M:0,3N:0,3O:0},20[2]||{});d=q.78.79(b.8S(e.3L,e.3M,e.3N,e.3O),c.1Q,c.1L)}1a d}};q.78={79:12(b,c){28(13 d="2B"==a.1p(20[2])?20[2]:1,e=0,f=c.2a;f>e;e++){13 g=c[e];("5W"==a.1p(g.1L)||"2B"!=a.1p(g.1L))&&(g.1L=1),b.8T(g.1e,t.2S(g.1Q,g.1L*d))}1a b}};13 r={7a:["3P","4c","3Q","3R","4d","4e","4f","4g","4h","4i","4j","3S"],4k:{7b:/^(17|15|1S|1O)(17|15|1S|1O|2v|2T)$/,1J:/^(17|1S)/,37:/(2v|2T)/,7c:/^(17|1S|15|1O)/},7d:12(){13 a={17:"18",15:"14",1S:"18",1O:"14"};1a 12(b){1a a[b]}}(),37:12(a){1a!!a.3z().3g(11.4k.37)},7e:12(a){1a!11.37(a)},2J:12(a){1a a.3z().3g(11.4k.1J)?"1J":"2b"},60:12(a){13 b=1r,c=a.3z().3g(11.4k.7c);1a c&&c[1]&&(b=c[1]),b},2O:12(a){1a a.3z().3g(11.4k.7b)}},s={61:12(a){13 b=a.19.1l;1a{14:b.14,18:b.18}},4l:12(b,c){13 d=a.1k({3T:"1E"},20[2]||{}),e=b.19.1l,f=e.14,g=e.18,h=11.54(f,g,c);1a d.3T&&(h.14=1b[d.3T](h.14),h.18=1b[d.3T](h.18)),{14:h.14,18:h.18}},54:12(a,b,c){13 d=m(1b.7f(.5*(b/a))),e=2F-d,f=1b.4G(n(e-90))*c,g=a+2*f,h=g*b/a;1a{14:g,18:h}},3U:12(a,b){13 c=11.4l(a,b),d=11.61(a),f=(r.37(a.29),1b.1E(c.18+b));1a a.19.1l.1A||0,a.19.1n&&a.19.1n.2w||0,{2C:{1c:{14:1b.1E(c.14),18:1b.1E(f)}},1j:{1c:c},1l:{1c:{14:d.14,18:d.18}}}},62:12(b,c,d){13 f=b.19,g={17:0,15:0},h={17:0,15:0},i=a.1k({},c),j=b.1j,k=k||11.3U(b,b.1j),l=k.2C.1c;d&&(l.18=d,j=0);13 m=r.2O(b.29),n=r.2J(b.29);1f(b.19.1l){13 o=r.60(b.29);1f("17"==o?g.17=l.18-j:"15"==o&&(g.15=l.18-j),"1J"==n){1T(m[2]){1h"2v":1h"2T":h.15=.5*i.14;1B;1h"1O":h.15=i.14}"1S"==m[1]&&(h.17=i.18-j+l.18)}1G{1T(m[2]){1h"2v":1h"2T":h.17=.5*i.18;1B;1h"1S":h.17=i.18}"1O"==m[1]&&(h.15=i.14-j+l.18)}i[r.7d(o)]+=l.18-j}1G 1f("1J"==n){1T(m[2]){1h"2v":1h"2T":h.15=.5*i.14;1B;1h"1O":h.15=i.14}"1S"==m[1]&&(h.17=i.18)}1G{1T(m[2]){1h"2v":1h"2T":h.17=.5*i.18;1B;1h"1S":h.17=i.18}"1O"==m[1]&&(h.15=i.14)}13 p=f.1n&&f.1n.2w||0,q=f.1j&&f.1j.2w||0;1f(b.19.1l){13 t=p&&"1m"==f.1n.1e?p:0,u=p&&"1j"==f.1n.1e?p:p+q,v=q+t+.5*k.1l.1c.14-.5*k.1j.1c.14,w=u>v?u-v:0,x=1b.1E(q+t+.5*k.1l.1c.14+w);1f("1J"==n)1T(m[2]){1h"15":h.15+=x;1B;1h"1O":h.15-=x}1G 1T(m[2]){1h"17":h.17+=x;1B;1h"1S":h.17-=x}}13 y;1f(f.1l&&(y=f.1l.1A)){13 z=s.63(y,b.6G,c,k.1j.1c,q,p);1f(y=z.1A,z.4m,"1J"==n)1T(m[2]){1h"15":h.15+=y.x;1B;1h"1O":h.15-=y.x}1G 1T(m[2]){1h"17":h.17+=y.y;1B;1h"1S":h.17-=y.y}}13 B;1f(f.1l&&(B=f.1l.8U))1f("1J"==n)1T(m[1]){1h"17":h.17-=B;1B;1h"1S":h.17+=B}1G 1T(m[1]){1h"15":h.15-=B;1B;1h"1O":h.15+=B}1a{1c:i,1e:{17:0,15:0},1m:{1e:g,1c:c},1l:{1c:l},2K:h}},63:12(b,c,d,e,f,g){13 h=r.2J(c),i=a.1k({},b),j={x:0,y:0},k=0;1a"1J"==h&&(k=d.14-e.14-2*f-2*g)<2*b.x&&(j.x=i.x,/(1O)$/.3j(c)&&(j.x*=-1),i.x=0),"2b"==h&&(k=d.18-e.18-2*f-2*g)<2*b.y&&(j.y=i.y,/(1S)$/.3j(c)&&(j.y*=-1),i.y=0),{1A:i,4m:j}}},t=12(){12 d(a){13 b=a;1a b.7g=a[0],b.7h=a[1],b.7i=a[2],b}12 e(a){1a 2P(a,16)}12 f(a){13 b=2I 6L(3);1f(0==a.3p("#")&&(a=a.56(1)),a=a.3z(),""!=a.64(c,""))1a 1r;3==a.2a?(b[0]=a.3y(0)+a.3y(0),b[1]=a.3y(1)+a.3y(1),b[2]=a.3y(2)+a.3y(2)):(b[0]=a.56(0,2),b[1]=a.56(2,4),b[2]=a.56(4));28(13 f=0;f<b.2a;f++)b[f]=e(b[f]);1a d(b)}12 g(a,b){13 c=f(a);1a c[3]=b,c.1L=b,c}12 h(b,c){1a"5W"==a.1p(c)&&(c=1),"8V("+g(b,c).8W()+")"}12 i(a){1a"#"+(j(a)[2]>50?"4H":"8X")}12 j(a){1a k(f(a))}12 k(a){13 f,g,h,a=d(a),b=a.7g,c=a.7h,e=a.7i,i=b>c?b:c;e>i&&(i=e);13 j=c>b?b:c;1f(j>e&&(j=e),h=i/8Y,g=0!=i?(i-j)/i:0,0==g)f=0;1G{13 k=(i-b)/(i-j),l=(i-c)/(i-j),m=(i-e)/(i-j);f=b==i?m-l:c==i?2+k-m:4+l-k,f/=6,0>f&&(f+=1)}f=1b.23(7j*f),g=1b.23(65*g),h=1b.23(65*h);13 n=[];1a n[0]=f,n[1]=g,n[2]=h,n.8Z=f,n.91=g,n.92=h,n}13 b="93",c=2I 5L("["+b+"]","g");1a{94:f,2S:h,95:i}}(),u={57:{},1t:12(b){1f(!b)1a 1r;13 c=1r,d=a(b).1X("2s-1V");1a d&&(c=11.57[d]),c},31:12(a){11.57[a.1V]=a},1y:12(a){13 b=11.1t(a);b&&(3J 11.57[b.1V],b.1y())}};a.1k(v.3I,12(){12 b(){11.1o.1u={};13 b=11.29;a.1w(r.7a,a.1v(12(b,c){13 d,e=11.1o.1u[c]={};11.29=c;13 f=11.2p();d=f,e.2K=d.2K;13 g=d.1H.1c,h={17:d.1H.1e.17,15:d.1H.1e.15};1f(e.1H={1c:g,1e:h},e.1D={1c:d.21.1c},11.1s){13 i=11.1s.2p(),j=i.21.1e,k=e.1H.1e;a.1k(!0,e,{2K:i.2K,1H:{1e:{17:k.17+j.17,15:k.15+j.15}},1D:{1c:i.1D.1c}})}},11)),11.29=b}12 c(){11.38(),11.19.1s&&(w.1y(11.1g),11.19.1z&&11.19.1z.1s&&y.1y(11.1g)),11.2U&&(11.2U.1y(),11.2U=1r),11.1i&&(a(11.1i).1y(),11.1i=1r)}12 d(){11.1H&&(11.1z&&(a(11.1z).1y(),11.1z=1r,11.66=1r,11.67=1r),a(11.1H).1y(),11.1l=1r,11.1m=1r,11.1H=1r,11.1o={})}12 f(){13 a=11.2e();11.2H=a.1o.2H;13 b=a.19;11.1n=b.1n&&b.1n.2w||0,11.1j=b.1j&&b.1j.2w||0,11.2o=b.2o;13 c=1b.52(11.2H.18,11.2H.14);11.1n>c/2&&(11.1n=1b.68(c/2)),"1j"==11.19.1n.1e&&11.1n>11.1j&&(11.1j=11.1n),11.1o={19:{1n:11.1n,1j:11.1j,2o:11.2o}}}12 g(){11.38(),1K.53&&1K.53.96(1x);13 b=11.2e(),c=11.19;11.1H=a("<2i>").1Y("97")[0],a(b.58).1Z(11.1H),11.59(),11.7k(b),c.1z&&(11.7l(b),c.1z.1s&&(11.2V?(11.2V.19=c.1z.1s,11.2V.1P()):11.2V=2I z(11.1g,a.1k({2M:11.2z},c.1z.1s)))),e.3o&&e.3o<7&&a(b.1i).69(11.2U=a("<98>").1Y("99").3i({9a:0,4n:"9b:\'\';"})),11.5a(),c.1s&&(11.1s?(11.1s.19=c.1s,11.1s.1P()):11.1s=2I x(11.1g,11,a.1k({2M:11.2z},c.1s))),11.7m()}12 h(){13 b=11.2e(),c=a(b.1i),d=a(b.1i).6a(".7n").7o()[0];1f(d){a(d).1q({14:"6b",18:"6b"});13 e=2P(c.1q("17")),f=2P(c.1q("15")),g=2P(c.1q("14"));c.1q({15:"-7p",17:"-7p",14:"9c",18:"6b"}),b.1F("1M")||a(b.1i).1W();13 h=B.3t.6c(d);b.19.3k&&"2B"==a.1p(b.19.3k)&&h.14>b.19.3k&&(a(d).1q({14:b.19.3k+"2y"}),h=B.3t.6c(d)),b.1F("1M")||a(b.1i).1I(),b.1o.2H=h,c.1q({15:f+"2y",17:e+"2y",14:g+"2y"}),11.1P()}}12 i(a,b,c){13 d=!1;11.4o(a)&&(d=!0),11.7q(b)&&(d=!0),c&&11.7r(c)&&(d=!0),d&&11.1P()}12 j(a){13 b=!1;1a(11.3n.15!=a.15||11.3n.17!=a.17)&&(b=!0,11.3n=a),b}12 l(a){13 b=!1;1a(11.3d.x!=a.x||11.3d.y!=a.y)&&(b=!0,11.3d=a),b}12 m(a){13 c=!1;1a 11.29!=a&&(c=!0,11.29=a),c}12 o(){1a B.1t(11.1g)[0]}12 p(){1a s.3U(11,11.1j)}12 u(){13 b=11.2e().19.1z,c=b.3A+2*b.1j;a(11.66).1q({15:-1*c+"2y"}),a(11.67).1q({15:0})}12 v(){13 b=11.2e().19.1z,c=b.3A+2*b.1j;a(11.66).1q({15:0}),a(11.67).1q({15:c+"2y"})}12 A(b){13 c=b.19.1z,d={14:c.3A+2*c.1j,18:c.3A+2*c.1j};a(b.1i).1Z(a(11.1z=1x.22("2i")).1Y("6d").1q(k(d)).1Z(a(11.7s=1x.22("2i")).1Y("9d").1q(k(d)))),11.6e(b,"6f"),11.6e(b,"6g"),1R.2A.3r||e.4U||a(11.1z).3V("4p",a.1v(11.7t,11)).3V("5b",a.1v(11.7u,11))}12 C(b,c){13 d=b.19.1z,e=d.3A,f=d.1j||0,g=d.x.3A,h=d.x.2w,j=(d.x.9e,d.2t[c||"6f"]),l={14:e+2*f,18:e+2*f};g>=e&&(g=e-2);13 m;a(11.7s).1Z(a(11[c+"7v"]=1x.22("2i")).1Y("9f").1q(a.1k(k(l),{15:("6g"==c?l.14:0)+"2y"}))),a(1x.33).1Z(a(m=1x.22("3h"))),q.3v(m,l),q.3s(m);13 o=m.3q("2d");o.2M=11.2z,a(11[c+"7v"]).1Z(m),o.9g(l.14/2,l.18/2),o.2R=q.4b(o,j.1m,{3L:0,3M:0-e/2,3N:0,3O:0+e/2}),o.2g(),o.26(0,0,e/2,0,2*1b.30,!0),o.2h(),o.36(),f&&(o.2R=q.4b(o,j.1j,{3L:0,3M:0-e/2-f,3N:0,3O:0+e/2+f}),o.2g(),o.26(0,0,e/2,1b.30,0,!1),o.1d((e+f)/2,0),o.26(0,0,e/2+f,0,1b.30,!0),o.26(0,0,e/2+f,1b.30,0,!0),o.1d(e/2,0),o.26(0,0,e/2,0,1b.30,!1),o.2h(),o.36());13 p=g/2,r=h/2;1f(r>p){13 s=r;r=p,p=s}o.2R=t.2S(j.x.1Q||j.x,j.x.1L||1),o.5c(n(45)),o.2g(),o.3w(0,0),o.1d(0,p);28(13 u=0;4>u;u++)o.1d(0,p),o.1d(r,p),o.1d(r,p-(p-r)),o.1d(p,r),o.1d(p,0),o.5c(n(90));o.2h(),o.36()}12 D(b){13 l,m,o,p,q,c=a.1k({1l:!1,3B:1r,9h:1r,2g:!1,2h:!1,3C:1r,3D:1r,1n:0,1j:0,5d:0,39:{x:0,y:0}},20[1]||{}),d=c.3C,e=c.3D,f=c.39,g=c.1j,h=c.1n,i=c.3B,j=d.1m.1e,k=d.1m.1c,t={x:1b.2W(11.3d.x),y:1b.2W(11.3d.y)},u={x:0,y:0},v={x:0,y:0};1f(e){l=e.1l.1c,m=e.2C.1e,o=e.2C.1c,p=o.14-l.14;13 w=c.5d,x=g+h+.5*l.14-.5*e.1j.1c.14;q=1b.1E(w>x?w-x:0);13 y=s.63(f,i,k,e.1j.1c,g,h);f=y.1A,v=y.4m,u={x:1b.1U(k.14-2*1b.1U(q,f.x||0)-e.1j.1c.14-(2*h||0),0),y:1b.1U(k.18-2*1b.1U(q,f.y||0)-e.1j.1c.18-(2*h||0),0)},r.37(i)&&(u.x*=.5,u.y*=.5),t.x=1b.52(t.x,u.x),t.y=1b.52(t.y,u.y),r.37(i)&&(11.3d.x<0&&t.x>0&&(t.x*=-1),11.3d.y<0&&t.y>0&&(t.y*=-1)),11.3n&&11.3n.3E&&a.1w(11.3n.3E,12(b,c){a.1w("17 1O 1S 15".2O(" "),12(a,b){c==b&&2I 5L("("+b+")$").3j(i)&&(t[/^(15|1O)$/.3j(b)?"x":"y"]=0)})})}13 z,A;1f(h?(z=j.15+g+h,A=j.17+g):(z=j.15+g,A=j.17+g),f&&f.x&&/^(3P|3S)$/.3j(i)&&(z+=f.x),c.2g&&b.2g(),b.3w(z,A),c.1l)1T(i){1h"3P":z=j.15+g,h&&(z+=h),z+=1b.1U(q,f.x||0),z+=t.x,b.1d(z,A),A-=l.18,z+=.5*l.14,b.1d(z,A),A+=l.18,z+=.5*l.14,b.1d(z,A);1B;1h"4c":1h"5e":z=j.15+.5*k.14-.5*l.14,z+=t.x,b.1d(z,A),A-=l.18,z+=.5*l.14,b.1d(z,A),A+=l.18,z+=.5*l.14,b.1d(z,A),z=j.15+.5*k.14-.5*o.14,b.1d(z,A);1B;1h"3Q":z=j.15+k.14-g-l.14,h&&(z-=h),z-=1b.1U(q,f.x||0),z-=t.x,b.1d(z,A),A-=l.18,z+=.5*l.14,b.1d(z,A),A+=l.18,z+=.5*l.14,b.1d(z,A)}1f(h?h&&(b.26(j.15+k.14-g-h,j.17+g+h,h,n(-90),n(0),!1),z=j.15+k.14-g,A=j.17+g+h):(z=j.15+k.14-g,A=j.17+g,b.1d(z,A)),c.1l)1T(i){1h"3R":A=j.17+g,h&&(A+=h),A+=1b.1U(q,f.y||0),A+=t.y,b.1d(z,A),z+=l.18,A+=.5*l.14,b.1d(z,A),z-=l.18,A+=.5*l.14,b.1d(z,A);1B;1h"4d":1h"5f":A=j.17+.5*k.18-.5*l.14,A+=t.y,b.1d(z,A),z+=l.18,A+=.5*l.14,b.1d(z,A),z-=l.18,A+=.5*l.14,b.1d(z,A);1B;1h"4e":A=j.17+k.18-g,h&&(A-=h),A-=l.14,A-=1b.1U(q,f.y||0),A-=t.y,b.1d(z,A),z+=l.18,A+=.5*l.14,b.1d(z,A),z-=l.18,A+=.5*l.14,b.1d(z,A)}1f(h?h&&(b.26(j.15+k.14-g-h,j.17+k.18-g-h,h,n(0),n(90),!1),z=j.15+k.14-g-h,A=j.17+k.18-g):(z=j.15+k.14-g,A=j.17+k.18-g,b.1d(z,A)),c.1l)1T(i){1h"4f":z=j.15+k.14-g,h&&(z-=h),z-=1b.1U(q,f.x||0),z-=t.x,b.1d(z,A),z-=.5*l.14,A+=l.18,b.1d(z,A),z-=.5*l.14,A-=l.18,b.1d(z,A);1B;1h"4g":1h"5g":z=j.15+.5*k.14+.5*l.14,z+=t.x,b.1d(z,A),z-=.5*l.14,A+=l.18,b.1d(z,A),z-=.5*l.14,A-=l.18,b.1d(z,A);1B;1h"4h":z=j.15+g+l.14,h&&(z+=h),z+=1b.1U(q,f.x||0),z+=t.x,b.1d(z,A),z-=.5*l.14,A+=l.18,b.1d(z,A),z-=.5*l.14,A-=l.18,b.1d(z,A)}1f(h?h&&(b.26(j.15+g+h,j.17+k.18-g-h,h,n(90),n(2F),!1),z=j.15+g,A=j.17+k.18-g-h):(z=j.15+g,A=j.17+k.18-g,b.1d(z,A)),c.1l)1T(i){1h"4i":A=j.17+k.18-g,h&&(A-=h),A-=1b.1U(q,f.y||0),A-=t.y,b.1d(z,A),z-=l.18,A-=.5*l.14,b.1d(z,A),z+=l.18,A-=.5*l.14,b.1d(z,A);1B;1h"4j":1h"5h":A=j.17+.5*k.18+.5*l.14,A+=t.y,b.1d(z,A),z-=l.18,A-=.5*l.14,b.1d(z,A),z+=l.18,A-=.5*l.14,b.1d(z,A);1B;1h"3S":A=j.17+g+l.14,h&&(A+=h),A+=1b.1U(q,f.y||0),A+=t.y,b.1d(z,A),z-=l.18,A-=.5*l.14,b.1d(z,A),z+=l.18,A-=.5*l.14,b.1d(z,A)}1a h?h&&(b.26(j.15+g+h,j.17+g+h,h,n(-2F),n(-90),!1),z=j.15+g+h,A=j.17+g,z+=1,b.1d(z,A)):(z=j.15+g,A=j.17+g,b.1d(z,A)),c.2h&&b.2h(),{x:z,y:A,1l:t,5i:v,39:f}}12 E(b){13 o,p,q,r,s,t,c=a.1k({1l:!1,3B:1r,2g:!1,2h:!1,3C:1r,3D:1r,1n:0,1j:0,7w:0,39:{x:0,y:0},5j:1r},20[1]||{}),d=c.3C,e=c.3D,g=(c.7w,c.39),h=c.1j,i=c.1n&&c.1n.2w||0,j=c.7x,k=c.3B,l=d.1m.1e,m=d.1m.1c,u=c.5j&&c.5j.1l||{x:0,y:0};1f(e){o=e.1l.1c,p=e.2C.1e,q=e.2C.1c,r=e.1j.1c,s=q.14-o.14;13 v=h+j+.5*o.14-.5*r.14;t=1b.1E(i>v?i-v:0)}13 w=l.15+h+j,x=l.17+h;j&&(w+=1),a.1k({},{x:w,y:x}),c.2g&&b.2g();13 z=a.1k({},{x:w,y:x});1f(x-=h,b.1d(w,x),i?i&&(b.26(l.15+i,l.17+i,i,n(-90),n(-2F),!0),w=l.15,x=l.17+i):(w=l.15,x=l.17,b.1d(w,x)),c.1l)1T(k){1h"3S":x=l.17+h,j&&(x+=j),x-=.5*r.14,x+=.5*o.14,x+=1b.1U(t,g.y||0),x+=u.y,b.1d(w,x),w-=r.18,x+=.5*r.14,b.1d(w,x),w+=r.18,x+=.5*r.14,b.1d(w,x);1B;1h"4j":1h"5h":x=l.17+.5*m.18-.5*r.14,x+=u.y,b.1d(w,x),w-=r.18,x+=.5*r.14,b.1d(w,x),w+=r.18,x+=.5*r.14,b.1d(w,x);1B;1h"4i":x=l.17+m.18-h-r.14,j&&(x-=j),x+=.5*r.14,x-=.5*o.14,x-=1b.1U(t,g.y||0),x-=u.y,b.1d(w,x),w-=r.18,x+=.5*r.14,b.1d(w,x),w+=r.18,x+=.5*r.14,b.1d(w,x)}1f(i?i&&(b.26(l.15+i,l.17+m.18-i,i,n(-2F),n(-9i),!0),w=l.15+i,x=l.17+m.18):(w=l.15,x=l.17+m.18,b.1d(w,x)),c.1l)1T(k){1h"4h":w=l.15+h,j&&(w+=j),w-=.5*r.14,w+=.5*o.14,w+=1b.1U(t,g.x||0),w+=u.x,b.1d(w,x),x+=r.18,w+=.5*r.14,b.1d(w,x),x-=r.18,w+=.5*r.14,b.1d(w,x);1B;1h"4g":1h"5g":w=l.15+.5*m.14-.5*r.14,w+=u.x,b.1d(w,x),x+=r.18,w+=.5*r.14,b.1d(w,x),x-=r.18,w+=.5*r.14,b.1d(w,x),w=l.15+.5*m.14+r.14,b.1d(w,x);1B;1h"4f":w=l.15+m.14-h-r.14,j&&(w-=j),w+=.5*r.14,w-=.5*o.14,w-=1b.1U(t,g.x||0),w-=u.x,b.1d(w,x),x+=r.18,w+=.5*r.14,b.1d(w,x),x-=r.18,w+=.5*r.14,b.1d(w,x)}1f(i?i&&(b.26(l.15+m.14-i,l.17+m.18-i,i,n(90),n(0),!0),w=l.15+m.14,x=l.17+m.14+i):(w=l.15+m.14,x=l.17+m.18,b.1d(w,x)),c.1l)1T(k){1h"4e":x=l.17+m.18-h,x+=.5*r.14,x-=.5*o.14,j&&(x-=j),x-=1b.1U(t,g.y||0),x-=u.y,b.1d(w,x),w+=r.18,x-=.5*r.14,b.1d(w,x),w-=r.18,x-=.5*r.14,b.1d(w,x);1B;1h"4d":1h"5f":x=l.17+.5*m.18+.5*r.14,x+=u.y,b.1d(w,x),w+=r.18,x-=.5*r.14,b.1d(w,x),w-=r.18,x-=.5*r.14,b.1d(w,x);1B;1h"3R":x=l.17+h,j&&(x+=j),x+=r.14,x-=.5*r.14-.5*o.14,x+=1b.1U(t,g.y||0),x+=u.y,b.1d(w,x),w+=r.18,x-=.5*r.14,b.1d(w,x),w-=r.18,x-=.5*r.14,b.1d(w,x)}1f(i?i&&(b.26(l.15+m.14-i,l.17+i,i,n(0),n(-90),!0),w=l.15+m.14-i,x=l.17):(w=l.15+m.14,x=l.17,b.1d(w,x)),c.1l)1T(k){1h"3Q":w=l.15+m.14-h,w+=.5*r.14-.5*o.14,j&&(w-=j),w-=1b.1U(t,g.x||0),w-=u.x,b.1d(w,x),x-=r.18,w-=.5*r.14,b.1d(w,x),x+=r.18,w-=.5*r.14,b.1d(w,x);1B;1h"4c":1h"5e":w=l.15+.5*m.14+.5*r.14,w+=u.x,b.1d(w,x),x-=r.18,w-=.5*r.14,b.1d(w,x),x+=r.18,w-=.5*r.14,b.1d(w,x),w=l.15+.5*m.14-r.14,b.1d(w,x),b.1d(w,x);1B;1h"3P":w=l.15+h+r.14,w-=.5*r.14,w+=.5*o.14,j&&(w+=j),w+=1b.1U(t,g.x||0),w+=u.x,b.1d(w,x),x-=r.18,w-=.5*r.14,b.1d(w,x),x+=r.18,w-=.5*r.14,b.1d(w,x)}b.1d(z.x,z.y-h),b.1d(z.x,z.y),c.2h&&b.2h()}12 F(b){13 c=11.2p(),d=11.19.1l&&11.4q(),e=11.29&&11.29.3z(),f=11.1n,h=11.1j,i=11.2o,k=({14:2*h+2*i+11.2H.14,18:2*h+2*i+11.2H.18},b.19.1l&&b.19.1l.1A||{x:0,y:0}),l=0,m=0;f&&(l="1m"==11.19.1n.1e?f:0,m="1j"==11.19.1n.1e?f:l+h),a(1x.33).1Z(11.2X=1x.22("3h")),q.3v(11.2X,c.1H.1c),q.3s(11.2X);13 n=11.2X.3q("2d");n.2M=11.2z,a(11.1H).1Z(11.2X),n.2R=q.4b(n,11.19.1m,{3L:0,3M:c.1m.1e.17+h,3N:0,3O:c.1m.1e.17+c.1m.1c.18-h}),n.9j=0;13 o;1f(o=11.6h(n,{2g:!0,2h:!0,1j:h,1n:l,5d:m,3C:c,3D:d,1l:11.19.1l,3B:e,39:k}),n.36(),h){13 p=q.4b(n,11.19.1j,{3L:0,3M:c.1m.1e.17,3N:0,3O:c.1m.1e.17+c.1m.1c.18});n.2R=p,o=11.6h(n,{2g:!0,2h:!1,1j:h,1n:l,5d:m,3C:c,3D:d,1l:11.19.1l,3B:e,39:k}),11.7y(n,{2g:!1,2h:!0,1j:h,7x:l,1n:{2w:m,1e:11.19.1n.1e},3C:c,3D:d,1l:11.19.1l,3B:e,39:o.39,5j:o}),n.36()}11.3F=o}12 G(){13 i,a=11.2e(),b=11.2H,c=a.19,d=11.1n,f=11.1j,g=11.2o,h={14:2*f+2*g+b.14,18:2*f+2*g+b.18};1f(11.19.1l){13 j=11.4q();i=j.2C.1c}13 k=s.62(11,h),l=k.1c,m=k.1e,h=k.1m.1c,o=k.1m.1e;k.1l.1c;13 r,t,u,q={17:0,15:0},v={14:l.14,18:l.18};1f(c.1z){13 w=d;"1m"==c.1n.1e&&(w+=f);13 x=w-1b.9k(n(45))*w,y="1O";11.29.3z().3g(/^(3Q|3R)$/)&&(y="15");13 z=c.1z.3A+2*c.1z.1j,r={14:z,18:z};1f(q.15=o.15-z/2+("15"==y?x:h.14-x),q.17=o.17-z/2+x,"15"==y){1f(q.15<0){13 A=1b.2W(q.15);v.14+=A,m.15+=A,q.15=0}}1G{13 B=q.15+z-v.14;B>0&&(v.14+=B)}1f(q.17<0){13 C=1b.2W(q.17);v.18+=C,m.17+=C,q.17=0}1f(11.19.1z.1s){13 D=11.19.1z.1s,E=D.32,F=D.1A;1f(t={14:r.14+2*E,18:r.18+2*E},u={17:q.17-E+F.y,15:q.15-E+F.x},"15"==y){1f(u.15<0){13 A=1b.2W(u.15);v.14+=A,m.15+=A,q.15+=A,u.15=0}}1G{13 B=u.15+t.14-v.14;B>0&&(v.14+=B)}1f(u.17<0){13 C=1b.2W(u.17);v.18+=C,m.17+=C,q.17+=C,u.17=0}}}13 G=k.2K;G.17+=m.17,G.15+=m.15;13 H={15:1b.1E(m.15+o.15+11.1j+11.19.2o),17:1b.1E(m.17+o.17+11.1j+11.19.2o)},I={1D:{1c:{14:1b.1E(v.14),18:1b.1E(v.18)}},21:{1c:{14:1b.1E(v.14),18:1b.1E(v.18)}},1H:{1c:l,1e:{17:1b.23(m.17),15:1b.23(m.15)}},1m:{1c:{14:1b.1E(h.14),18:1b.1E(h.18)},1e:{17:1b.23(o.17),15:1b.23(o.15)}},2K:{17:1b.23(G.17),15:1b.23(G.15)},2G:{1e:H}};1a 11.19.1z&&(I.1z={1c:{14:1b.1E(r.14),18:1b.1E(r.18)},1e:{17:1b.23(q.17),15:1b.23(q.15)}},11.19.1z.1s&&(I.2V={1c:{14:1b.1E(t.14),18:1b.1E(t.18)},1e:{17:1b.23(u.17),15:1b.23(u.15)}})),I}12 H(){13 b=11.2p(),c=11.2e();a(c.1i).1q(k(b.1D.1c)),a(c.58).1q(k(b.21.1c)),11.2U&&11.2U.1q(k(b.1D.1c)),a(11.1H).1q(a.1k(k(b.1H.1c),k(b.1H.1e))),11.1z&&(a(11.1z).1q(k(b.1z.1e)),b.2V&&a(11.2V.1i).1q(k(b.2V.1e))),a(c.3a).1q(k(b.2G.1e))}12 I(a){11.2z=a||0,11.1s&&(11.1s.2z=11.2z)}12 J(a){11.7z(a),11.1P()}1a{59:f,7m:b,1P:g,1y:c,38:d,2e:o,2Q:h,5k:i,7r:j,7q:l,4o:m,7l:A,6e:C,7k:F,6h:D,7y:E,7t:u,7u:v,4q:p,2p:G,5a:H,7z:I,9l:J}}());13 w={3l:{},1t:12(b){1f(!b)1a 1r;13 c=1r,d=a(b).1X("2s-1V");1a d&&(c=11.3l[d]),c},31:12(a){11.3l[a.1V]=a},1y:12(a){13 b=11.1t(a);b&&(3J 11.3l[b.1V],b.1y())},4r:12(a){1a 1b.30/2-1b.6S(a,1b.4G(a)*1b.30)}};w.4s={4l:12(a,b){13 c=u.1t(a.1g),d=c.4q().1j.1c,e=11.54(d.14,d.18,b,{3T:!1});1a{14:e.14,18:e.18}},9m:12(a,b,c){13 d=.5*a,e=m(1b.9n(d/l(d,b))),f=2F-e-90,g=o(n(f))*c,h=2*(d+g),i=h/a*b;1a{14:h,18:i}},54:12(a,b,c){13 d=m(1b.7f(.5*(b/a))),e=2F-d,f=1b.4G(n(e-90))*c,g=a+2*f,h=g*b/a;1a{14:g,18:h}},3U:12(b){13 c=u.1t(b.1g),d=b.19.32,e=r.7e(c.29),g=(r.2J(c.29),w.4s.4l(b,d)),h={2C:{1c:{14:1b.1E(g.14),18:1b.1E(g.18)},1e:{17:0,15:0}}};1f(d){h.2Y=[];28(13 i=0;d>=i;i++){13 j=w.4s.4l(b,i,{3T:!1}),k={1e:{17:h.2C.1c.18-j.18,15:e?d-i:(h.2C.1c.14-j.14)/2},1c:j};h.2Y.2n(k)}}1G h.2Y=[a.1k({},h.2C)];1a h},5c:12(a,b,c){s.5c(a,b.3m(),c)}},a.1k(x.3I,12(){12 b(){1a B.1t(11.1g)[0]}12 c(){1a u.1t(11.1g)}12 d(){11.38()}12 e(){11.1i&&(a(11.1i).1y(),11.1l=1r,11.1m=1r,11.1H=1r,11.1i=1r,11.1o={})}12 f(){}12 g(){11.38(),11.59();13 b=11.2e(),c=11.3m();11.1i=a("<2i>").1Y("9o")[0],a(b.1i).69(11.1i),c.2U&&a(b.1i).69(c.2U),c.2p(),a(11.1i).1q({17:0,15:0}),11.7A(),11.5a()}12 h(){1a 11.19.1L/(11.19.32+1)}12 i(){13 b=11.3m(),c=b.2p(),d=11.2e(),e=11.2p(),f=11.19.32,g=w.4s.3U(11),h=b.29,i=r.60(h),j={17:f,15:f};1f(d.19.1l){13 l=g.2Y[g.2Y.2a-1];"15"==i&&(j.15+=1b.1E(l.1c.18)),"17"==i&&(j.17+=1b.1E(l.1c.18))}13 m=b.1o.19,n=m.1n,o=m.1j;"1m"==d.19.1n.1e&&n&&(n+=o);13 p=e.1H.1c;a(11.1i).1Z(a(11.1H=1x.22("2i")).1Y("9p").1q(k(p))).1q(k(p)),a(1x.33).1Z(a(11.2X=1x.22("3h"))),q.3v(11.2X,e.1H.1c),q.3s(11.2X);13 s=11.2X.3q("2d");s.2M=11.2z,a(11.1H).1Z(11.2X);28(13 u=f+1,v=0;f>=v;v++)s.2R=t.2S(11.19.1Q,w.4r(v*(1/u))*(11.19.1L/u)),q.75(s,{14:c.1m.1c.14+2*v,18:c.1m.1c.18+2*v,17:j.17-v,15:j.15-v,1n:n+v});1f(b.19.1l){13 x={x:j.15,y:j.17},y=g.2Y[0].1c,z=b.19.1l,A=o;A+=.5*z.14;13 B=b.19.1n&&"1m"==b.19.1n.1e?b.19.1n.2w||0:0;B&&(A+=B);13 C=o+B+.5*z.14-.5*y.14,D=1b.1E(n>C?n-C:0),E=b.3F&&b.3F.1l||{x:0,y:0},F=b.3F&&b.3F.5i||{x:0,y:0};1f(A+=1b.1U(D,b.19.1l.1A&&b.19.1l.1A[i&&/^(15|1O)$/.3j(i)?"y":"x"]||0),"17"==i||"1S"==i){1T(h){1h"3P":1h"4h":x.x+=A+E.x-F.x;1B;1h"4c":1h"5e":1h"4g":1h"5g":x.x+=.5*c.1m.1c.14+E.x;1B;1h"3Q":1h"4f":x.x+=c.1m.1c.14-(A-E.x+F.x)}"1S"==i&&(x.y+=c.1m.1c.18);28(13 v=0,G=g.2Y.2a;G>v;v++){s.2R=t.2S(11.19.1Q,w.4r(v*(1/u))*(11.19.1L/u));13 f=g.2Y[v];s.2g(),"17"==i?(s.3w(x.x,x.y-v),s.1d(x.x-.5*f.1c.14,x.y-v),s.1d(x.x,x.y-v-f.1c.18),s.1d(x.x+.5*f.1c.14,x.y-v)):(s.3w(x.x,x.y+v),s.1d(x.x-.5*f.1c.14,x.y+v),s.1d(x.x,x.y+v+f.1c.18),s.1d(x.x+.5*f.1c.14,x.y+v)),s.2h(),s.36()}}1G{1T(h){1h"3S":1h"3R":x.y+=A+E.y-F.y;1B;1h"4j":1h"5h":1h"4d":1h"5f":x.y+=.5*c.1m.1c.18+E.y;1B;1h"4i":1h"4e":x.y+=c.1m.1c.18-(A-E.y+F.y)}"1O"==i&&(x.x+=c.1m.1c.14);28(13 v=0,G=g.2Y.2a;G>v;v++){s.2R=t.2S(11.19.1Q,w.4r(v*(1/u))*(11.19.1L/u));13 f=g.2Y[v];s.2g(),"15"==i?(s.3w(x.x-v,x.y),s.1d(x.x-v,x.y-.5*f.1c.14),s.1d(x.x-v-f.1c.18,x.y),s.1d(x.x-v,x.y+.5*f.1c.14)):(s.3w(x.x+v,x.y),s.1d(x.x+v,x.y-.5*f.1c.14),s.1d(x.x+v+f.1c.18,x.y),s.1d(x.x+v,x.y+.5*f.1c.14)),s.2h(),s.36()}}}}12 j(){13 b=11.3m();b.2H,b.1n;13 e=b.2p(),g=(11.2e(),11.19.32),h=a.1k({},e.1m.1c);h.14+=2*g,h.18+=2*g;13 i,k;1f(b.19.1l){13 l=w.4s.3U(11);i=l.2C.1c,k=i.18}13 m=s.62(b,h,k),n=m.1c,o=m.1e,h=m.1m.1c,p=m.1m.1e,r=e.1H.1e,t=e.1m.1e,u={17:r.17+t.17-(p.17+g)+11.19.1A.y,15:r.15+t.15-(p.15+g)+11.19.1A.x},v=e.2K,x=e.21.1c,y={17:0,15:0};1f(u.17<0){13 z=1b.2W(u.17);y.17+=z,u.17=0,v.17+=z}1f(u.15<0){13 A=1b.2W(u.15);y.15+=A,u.15=0,v.15+=A}13 B={18:1b.1U(n.18+u.17,x.18+y.17),14:1b.1U(n.14+u.15,x.14+y.15)},C={15:1b.1E(y.15+e.1H.1e.15+e.1m.1e.15+b.1j+b.2o),17:1b.1E(y.17+e.1H.1e.17+e.1m.1e.17+b.1j+b.2o)},D={1D:{1c:B},21:{1c:x,1e:y},1i:{1c:n,1e:u},1H:{1c:n,1e:{17:1b.23(o.17),15:1b.23(o.15)}},1m:{1c:{14:1b.1E(h.14),18:1b.1E(h.18)},1e:{17:1b.23(p.17),15:1b.23(p.15)}},2K:v,2G:{1e:C}};1a D}12 l(){13 b=11.2p(),c=11.3m(),d=11.2e();1f(a(d.1i).1q(k(b.1D.1c)),a(d.58).1q(a.1k(k(b.21.1e),k(b.21.1c))),c.2U&&c.2U.1q(k(b.1D.1c)),d.19.1z){13 e=c.2p(),f=b.21.1e,g=e.1z.1e;1f(a(c.1z).1q(k({17:f.17+g.17,15:f.15+g.15})),d.19.1z.1s){13 h=e.2V.1e;a(c.2V.1i).1q(k({17:f.17+h.17,15:f.15+h.15}))}}a(11.1i).1q(a.1k(k(b.1i.1c),k(b.1i.1e))),a(11.1H).1q(k(b.1H.1c)),a(d.3a).1q(k(b.2G.1e))}1a{59:f,1y:d,38:e,1P:g,2e:b,3m:c,2p:j,7B:h,7A:i,5a:l}}());13 y={3l:{},1t:12(b){1f(!b)1a 1r;13 c=a(b).1X("2s-1V");1a c?11.3l[c]:1r},31:12(a){11.3l[a.1V]=a},1y:12(a){13 b=11.1t(a);b&&(3J 11.3l[b.1V],b.1y())}};a.1k(z.3I,12(){12 b(){1a B.1t(11.1g)[0]}12 c(){1a u.1t(11.1g)}12 d(){1a 11.19.1L/(11.19.32+1)}12 e(){11.38()}12 f(){11.1i&&(a(11.1i).1y(),11.1i=1r)}12 g(){11.38();13 c=(11.2e(),11.3m()),d=c.2p().1z.1c,e=a.1k({},d),f=11.19.32;e.14+=2*f,e.18+=2*f,a(c.1z).6i(a(11.1i=1x.22("2i")).1Y("9q")),a(1x.33).1Z(a(11.4t=1x.22("3h"))),q.3v(11.4t,e),q.3s(11.4t);13 g=11.4t.3q("2d");g.2M=11.2z,a(11.1i).1Z(11.4t);28(13 h=e.14/2,i=e.18/2,j=d.18/2,k=f+1,l=0;f>=l;l++)g.2R=t.2S(11.19.1Q,w.4r(l*(1/k))*(11.19.1L/k)),g.2g(),g.26(h,i,j+l,n(0),n(7j),!0),g.2h(),g.36()}1a{1P:g,1y:e,38:f,2e:b,3m:c,7B:d}}());13 B={2q:{},19:{3W:"6j",4I:9r},7C:12(){13 b=["2r"];1R.2A.3r&&(b.2n("7D"),11.4u&&a(1x.33).4v("2r",11.4u),11.4u=1r),a.1w(b,12(b,c){a(1x.6k).9s(".3b .6d, .3b .7E-1D",c)}),11.4w&&(a(1K).4v("3v",11.4w),11.4w=1r),a(1x).4v("4x",B.2f.6l)},73:12(){12 b(){11.7C();13 b=["2r"];1R.2A.3r&&(b.2n("7D"),11.4u=12(){1a 3x 0},a(1x.33).3V("2r",11.4u)),a.1w(b,12(b,c){a(1x.6k).9t(".3b .6d, .3b .7E-1D",c,12(b){b.9u(),b.9v(),B.6m(a(b.1C).5l(".3b")[0]).1I()})}),11.4w=a.1v(11.7F,11),a(1K).3V("3v",11.4w),a(1x).3V("4x",B.2f.6l)}1a b}(),7F:12(){11.5m&&(1K.6n(11.5m),11.5m=1r),11.5m=d.4M(a.1v(12(){13 b=11.3K();a.1w(b,12(a,b){b.1e()})},11),9w)},5n:12(b){13 d,c=a(b).1X("2s-1V");1f(!c){13 e=11.6m(a(b).5l(".3b")[0]);e&&e.1g&&(c=a(e.1g).1X("2s-1V"))}1a c&&(d=11.2q[c])?d:3x 0},5S:12(a){13 b;1a d.2k(a)&&(b=11.5n(a)),b&&b.1g},1t:12(b){13 c=[];1f(d.2k(b)){13 e=11.5n(b);e&&(c=[e])}1G a.1w(11.2q,12(d,e){e.1g&&a(e.1g).7G(b)&&c.2n(e)});1a c},6m:12(b){1f(!b)1a 1r;13 c=1r;1a a.1w(11.2q,12(a,d){d.1F("1P")&&d.1i===b&&(c=d)}),c},9x:12(b){13 c=[];1a a.1w(11.2q,12(d,e){e.1g&&a(e.1g).7G(b)&&c.2n(e)}),c},1W:12(b){1f(d.2k(b)){13 c=b,e=11.1t(c)[0];e&&e.1W()}1G a(b).1w(a.1v(12(a,b){13 c=11.1t(b)[0];c&&c.1W()},11))},1I:12(b){1f(d.2k(b)){13 c=11.1t(b)[0];c&&c.1I()}1G a(b).1w(a.1v(12(a,b){13 c=11.1t(b)[0];c&&c.1I()},11))},35:12(b){1f(d.2k(b)){13 c=b,e=11.1t(c)[0];e&&e.35()}1G a(b).1w(a.1v(12(a,b){13 c=11.1t(b)[0];c&&c.35()},11))},4Y:12(){a.1w(11.3K(),12(a,b){b.1I()})},2Q:12(b){1f(d.2k(b)){13 c=b,e=11.1t(c)[0];e&&e.2Q()}1G a(b).1w(a.1v(12(a,b){13 c=11.1t(b)[0];c&&c.2Q()},11))},3K:12(){13 b=[];1a a.1w(11.2q,12(a,c){c.1M()&&b.2n(c)}),b},5V:12(b){13 c=!1;1a d.2k(b)&&a.1w(11.3K()||[],12(a,d){1a d.1g==b?(c=!0,!1):3x 0}),c},7H:12(){13 c,b=0;1a a.1w(11.2q,12(a,d){d.2l>b&&(b=d.2l,c=d)}),c},7I:12(){11.3K().2a<=1&&a.1w(11.2q,12(b,c){c.1F("1P")&&!c.19.2l&&a(c.1i).1q({2l:c.2l=+B.19.4I})})},31:12(a){11.2q[a.1V]=a},4y:12(b){13 c=11.5n(b);1f(c){13 d=a(c.1g).1X("2s-1V");3J 11.2q[d],c.1I(),c.1y()}},1y:12(b){d.2k(b)?11.4y(b):a(b).1w(a.1v(12(a,b){11.4y(b)},11))},74:12(){a.1w(11.2q,a.1v(12(a,b){b.1g&&!d.1g.4S(b.1g)&&11.4y(b.1g)},11))},72:12(){a.1w(11.2q,a.1v(12(a,b){b.1g&&11.4y(b.1g)},11)),11.2q={}},5T:12(a){11.19.3W=a||"6j"},5U:12(a){11.19.4I=a||0},5X:12(){a.1w(11.2q,a.1v(12(a,b){b.1o&&b.1o.2m&&(b.1o.2m.6o(),b.1o.2m=1r),b.27("3f",!1)},11)),i.6Y()},6H:12(){12 f(d){13 e;1a e="2u"==a.1p(d)?{1g:c.25&&c.25.1g||b.25.1g,2x:d}:A(a.1k({},b.25),d)}12 g(f){1a b=1R.2D.7J,c=A(a.1k({},b),1R.2D.6p),d=1R.2D.6q.7J,e=A(a.1k({},d),1R.2D.6q.6p),g=h,h(f)}12 h(g){g.21=g.21&&1R.2D[g.21]?g.21:1R.2D[B.19.3W]?B.19.3W:"6j";13 h=g.21?a.1k({},1R.2D[g.21]||1R.2D[B.19.3W]):{},i=A(a.1k({},c),h),j=A(a.1k({},i),g);1f(j.2c){13 k=c.2c||{},l=b.2c;"4z"==a.1p(j.2c)&&(j.2c={3X:k.3X||l.3X,1p:k.1p||l.1p}),j.2c=A(a.1k({},l),j.2c)}1f(j.1m&&"2u"==a.1p(j.1m)&&(j.1m={1Q:j.1m,1L:1}),j.1j){13 m,n=c.1j||{},o=b.1j;m="2B"==a.1p(j.1j)?{2w:j.1j,1Q:n.1Q||o.1Q,1L:n.1L||o.1L}:A(a.1k({},o),j.1j),j.1j=0===m.2w?!1:m}1f(j.1n){13 p;p="2B"==a.1p(j.1n)?{2w:j.1n,1e:c.1n&&c.1n.1e||b.1n.1e}:A(a.1k({},b.1n),j.1n),j.1n=0===p.2w?!1:p}13 q,s=s=j.1u&&j.1u.1C||"2u"==a.1p(j.1u)&&j.1u||c.1u&&c.1u.1C||"2u"==a.1p(c.1u)&&c.1u||b.1u&&b.1u.1C||b.1u,t=j.1u&&j.1u.1D||c.1u&&c.1u.1D||b.1u&&b.1u.1D||B.2f.6r(s);1f(j.1u?"2u"==a.1p(j.1u)?q={1C:j.1u,1D:B.2f.7K(j.1u)}:(q={1D:t,1C:s},j.1u.1D&&(q.1D=j.1u.1D),j.1u.1C&&(q.1C=j.1u.1C)):q={1D:t,1C:s},"2N"==j.1C){13 u=r.2J(q.1C);q.1C="1J"==u?q.1C.64(/(15|1O)/,"2v"):q.1C.64(/(17|1S)/,"2v")}j.1u=q;13 v;1f("2N"==j.1C?(v=a.1k({},b.1A),a.1k(v,1R.2D.6p.1A||{}),g.21&&a.1k(v,(1R.2D[g.21]||1R.2D[B.19.3W]).1A||{}),v=B.2f.7L(b.1A,b.1u,q.1C,!0),g.1A&&(v=a.1k(v,g.1A||{})),j.3Y=0):v={x:j.1A.x,y:j.1A.y},j.1A=v,j.1z&&j.7M){13 w=a.1k({},1R.2D.6q[j.7M]),x=A(a.1k({},e),w);1f(x.2t&&a.1w(["6f","6g"],12(b,c){13 f=x.2t[c],g=e.2t&&e.2t[c];1f(f.1m){13 h=g&&g.1m;1f("2B"==a.1p(f.1m))f.1m={1Q:h&&h.1Q||d.2t[c].1m.1Q,1L:f.1m};1G 1f("2u"==a.1p(f.1m)){13 i=h&&"2B"==a.1p(h.1L)&&h.1L||d.2t[c].1m.1L;f.1m={1Q:f.1m,1L:i}}1G f.1m=A(a.1k({},d.2t[c].1m),f.1m)}1f(f.1j){13 j=g&&g.1j;f.1j="2B"==a.1p(f.1j)?{1Q:j&&j.1Q||d.2t[c].1j.1Q,1L:f.1j}:A(a.1k({},d.2t[c].1j),f.1j)}}),x.1s){13 z=e.1s&&e.1s.3G&&e.1s.3G==5B?e.1s:d.1s;x.1s.3G&&x.1s.3G==5B&&(z=A(z,x.1s)),x.1s=z}j.1z=x}1f(j.1s){13 C;C="4z"==a.1p(j.1s)?c.1s&&"4z"==a.1p(c.1s)?b.1s:c.1s?c.1s:b.1s:A(a.1k({},b.1s),j.1s||{}),"2B"==a.1p(C.1A)&&(C.1A={x:C.1A,y:C.1A}),j.1s=C}1f(j.1l){13 D={};D="4z"==a.1p(j.1l)?A({},b.1l):A(A({},b.1l),a.1k({},j.1l)),"2B"==a.1p(D.1A)&&(D.1A={x:D.1A,y:D.1A}),j.1l=D}1f(j.2Z&&("2u"==a.1p(j.2Z)?j.2Z={5o:j.2Z,7N:!0}:"4z"==a.1p(j.2Z)&&(j.2Z=j.2Z?{5o:"51",7N:!0}:!1)),j.25&&"2r-9y"==j.25&&(j.7O=!0,j.25=!1),j.25)1f(a.77(j.25)){13 E=[];a.1w(j.25,12(a,b){E.2n(f(b))}),j.25=E}1G j.25=[f(j.25)];1a j.2L&&"2u"==a.1p(j.2L)&&(j.2L=[""+j.2L]),j.2o=0,j.1N&&(1K.6s||(j.1N=!1)),j}13 b,c,d,e;1a g}()};B.2f=12(){12 c(c){13 d=r.2O(c),e=d[1],f=d[2],g=r.2J(c),h=a.1k({1J:!0,2b:!0},20[1]||{});1a"1J"==g?(h.2b&&(e=b[e]),h.1J&&(f=b[f])):(h.2b&&(f=b[f]),h.1J&&(e=b[e])),e+f}12 f(a){13 d=r.2O(a);1a c(d[1]+b[d[2]])}12 h(b,c){a(b.1i).1q({17:c.17+"2y",15:c.15+"2y"})}12 j(a,b,d,e){13 g=y(a,b,d,e),h=d&&"2u"==7P d.1p?d.1p:"";1f(/9z$/.3j(h),1===g.3Z.40)1a l(a,g),g;13 m=b,n=e,o={1J:!g.3Z.1J,2b:!g.3Z.2b},p={1J:!1,2b:!1},q=r.2J(b);1a((p.2b="1J"==q&&o.2b)||(p.1J="2b"==q&&o.1J))&&(m=c(b,p),n=c(e,p),g=y(a,m,d,n),1===g.3Z.40)?(l(a,g),g):(g=k(g,a),l(a,g),g)}12 k(a,b){13 c=z(b),d=c.1c,e=c.1e,f=u.1t(b.1g).1o.1u[a.1u.1D].1D.1c,g=a.1e,h={17:0,15:0,3E:[]};1a e.15>g.15&&(h.15=e.15-g.15,h.3E.2n("15"),a.1e.15=e.15),e.17>g.17&&(h.17=g.17-e.17,h.3E.2n("17"),a.1e.17=e.17),e.15+d.14<g.15+f.14&&(h.15=e.15+d.14-(g.15+f.14),h.3E.2n("1O"),a.1e.15=e.15+d.14-f.14),e.17+d.18<g.17+f.18&&(h.17=e.17+d.18-(g.17+f.18),h.3E.2n("1S"),a.1e.17=e.17+d.18-f.18),a.7Q=h,a}12 l(a,b){a.5k(b.1u.1D,b.3Z.4m,b.7Q),h(a,b.1e)}12 m(a){1a a&&(/^2N|2r|3r$/.3j("2u"==7P a.1p&&a.1p||"")||a.5K>=0)}12 n(a,b,c){1a a>=b&&c>=a}12 o(a,b,c,d){13 e=n(a,c,d),f=n(b,c,d);1f(e&&f)1a b-a;1f(e&&!f)1a d-a;1f(!e&&f)1a b-c;13 g=n(c,a,b),h=n(d,a,b);1a g&&h?d-c:g&&!h?b-c:!g&&h?d-a:0}12 q(a,b){1a o(a.1e.15,a.1e.15+a.1c.14,b.1e.15,b.1e.15+b.1c.14)*o(a.1e.17,a.1e.17+a.1c.18,b.1e.17,b.1e.17+b.1c.18)}12 s(a,b){13 c=a.1c.14*a.1c.18;1a c?q(a,b)/c:0}12 t(a,b){13 c=r.2O(b),d=r.2J(b),e={15:0,17:0};1f("1J"==d){1T(c[2]){1h"2v":1h"2T":e.15=.5*a.14;1B;1h"1O":e.15=a.14}"1S"==c[1]&&(e.17=a.18)}1G{1T(c[2]){1h"2v":1h"2T":e.17=.5*a.18;1B;1h"1S":e.17=a.18}"1O"==c[1]&&(e.15=a.14)}1a e}12 v(b){13 c=d.1g.4R(b),e=d.1g.4N(b),f={17:a(1K).4O(),15:a(1K).4P()};1a c.15+=-1*(e.15-f.15),c.17+=-1*(e.17-f.17),c}12 y(b,e,f,g){13 h,i,j,k=u.1t(b.1g),l=k.19,n=l.1A,o=m(f);1f(o||!f){1f(j={14:24,18:24},o){13 p=d.5J(f);h={17:p.y-.5*j.18+6,15:p.x-.5*j.14+6}}1G{13 q=b.1o.2x;h={17:(q?q.y:0)-.5*j.18+6,15:(q?q.x:0)-.5*j.14+6}}b.1o.2x={x:h.15,y:h.17}}1G h=v(f),j={14:a(f).7R(),18:a(f).7S()};1f(l.1l&&"2N"!=l.1C){13 y=r.2O(g),A=r.2O(e),C=r.2J(g),D=k.1o.19,E=k.4q().1j.1c,F=D.1n,G=D.1j,H=F&&"1m"==l.1n.1e?F:0,I=F&&"1j"==l.1n.1e?F:F+G,J=G+H+.5*l.1l.14-.5*E.14,K=I>J?I-J:0;4A=1b.1E(G+H+.5*l.1l.14+K+l.1l.1A["1J"==C?"x":"y"]),"1J"==C&&"15"==y[2]&&"15"==A[2]||"1O"==y[2]&&"1O"==A[2]?(j.14-=2*4A,h.15+=4A):("2b"==C&&"17"==y[2]&&"17"==A[2]||"1S"==y[2]&&"1S"==A[2])&&(j.18-=2*4A,h.17+=4A)}i=a.1k({},h);13 L=o?c(l.1u.1D):l.1u.1C,M=t(j,L),N=t(j,g);({17:h.17+M.17+n.y,15:h.15+M.15+n.x}),h={15:h.15+N.15,17:h.17+N.17};13 P=a.1k({},n);P=x(P,L,g,"2N"==k.19.1C),h.17+=P.y,h.15+=P.x;13 k=u.1t(b.1g),Q=k.1o.1u,R=a.1k({},Q[e]),S={x:0,y:0},y=r.2O(g);1f("2v"!=y[2]){13 C=C=r.2J(g),T=B.2f.6r(g,"2b"==C?{1J:!0,2b:!1}:{1J:!1,2b:!0});e==T&&(S.y=k.3F.5i.y,S.x=k.3F.5i.x)}13 U={17:h.17-R.2K.17-S.y,15:h.15-R.2K.15-S.x};R.1D.1e=U;13 V={1J:!0,2b:!0},W={x:0,y:0};1f(b.19.2Z){13 X=z(b),Y=b.19.1s?w.1t(b.1g):k,Z=Y.2p().1D.1c;V.40=s({1c:Z,1e:U},X),V.40<1&&((U.15<X.1e.15||U.15+Z.14>X.1e.15+X.1c.14)&&(V.1J=!1,W.x=U.15<X.1e.15?U.15-X.1e.15:U.15+Z.14-(X.1e.15+X.1c.14)),(U.17<X.1e.17||U.17+Z.18>X.1e.17+X.1c.18)&&(V.2b=!1,W.y=U.17<X.1e.17?U.17-X.1e.17:U.17+Z.18-(X.1e.17+X.1c.18)))}1G V.40=1;V.4m=W;13 $=Q[e].1H,7T=s({1c:j,1e:i},{1c:$.1c,1e:{17:U.17+$.1e.17,15:U.15+$.1e.15}});1a{1e:U,40:{1C:7T},3Z:V,1u:{1D:e,1C:g}}}12 z(b){13 c={17:a(1K).4O(),15:a(1K).4P()},e=b.19,f=e.1C;("2N"==f||"4L"==f)&&(f=b.1g);13 g=a(f).5l(e.2Z.5o).7o()[0];1f(!g||"51"==e.2Z.5o)1a{1c:p.51(),1e:c};13 h=d.1g.4R(g),i=d.1g.4N(g);1a h.15+=-1*(i.15-c.15),h.17+=-1*(i.17-c.17),{1c:{14:a(g).5Y(),18:a(g).5Z()},1e:h}}13 b={15:"1O",1O:"15",17:"1S",1S:"17",2v:"2v",2T:"2T"};e.3o&&e.3o<9||e.4T&&e.4T<2||e.5P&&e.5P<9A;13 x=12(){13 a=[[-1,-1],[0,-1],[1,-1],[-1,0],[0,0],[1,0],[-1,1],[0,1],[1,1]],b={3S:0,3P:0,4c:1,5e:1,3Q:2,3R:2,4d:5,5f:5,4e:8,4f:8,4g:7,5g:7,4h:6,4i:6,4j:3,5h:3};1a 12(c,d,e,f){13 g=a[b[d]],h=a[b[e]],i=[1b.68(.5*1b.2W(g[0]-h[0]))?-1:1,1b.68(.5*1b.2W(g[1]-h[1]))?-1:1];1a r.37(d)||!r.37(e)||f||("1J"==r.2J(e)?i[0]=0:i[1]=0),{x:i[0]*c.x,y:i[1]*c.y}}}();1a{1t:y,4W:j,6r:c,7K:f,7U:v,7L:x,6t:m}}(),B.2f.4Z={x:0,y:0},B.2f.6l=12(a){B.2f.4Z={x:a.5K,y:a.6N}},B.3t=12(){12 b(){a(1x.33).1Z(a(1x.22("2i")).1Y("9B").1Z(a(1x.22("2i")).1Y("3b").1Z(a(11.1i=1x.22("2i")).1Y("7V"))))}12 c(b){1a{14:a(b).5Y(),18:a(b).5Z()}}12 e(b){13 d=c(b),e=b.4Q;1a e&&a(e).1q({14:d.14+"2y"})&&c(b).18>d.18&&d.14++,a(e).1q({14:"65%"}),d}12 f(b,c,e){(!11.1i||11.1i&&!d.1g.4S(11.1i))&&11.1P();13 f=b.19,g=a.1k({1N:!1},20[3]||{});!f.7W&&!d.2k(c)||a(c).1X("7X")||(f.7W&&"2u"==a.1p(c)&&(b.3c=a("#"+c)[0],c=b.3c),!b.41&&c&&d.1g.4S(c)&&(a(b.3c).1X("7Y",a(b.3c).1q("7Z")),b.41=1x.22("2i"),a(b.3c).6i(a(b.41).1I())));13 h=1x.22("2i");a(11.1i).1Z(a(h).1Y("7n 9C").1Z(c)),d.2k(c)&&a(c).1W(),f.21&&a(h).1Y("9D"+b.19.21);13 i=a(h).6a("80[4n]").9E(12(){1a!(a(11).3i("18")&&a(11).3i("14"))});1f(i.2a>0&&!b.1F("3H")){b.27("3H",!0),f.1N&&(g.1N||b.1N||(b.1N=b.6u(f.1N)),b.1F("1M")&&(b.1e(),a(b.1i).1W()),b.1N.6v());13 j=0,k=1b.1U(9F,9G*(i.2a||0));b.2j("3H"),b.42("3H",a.1v(12(){i.1w(12(){11.6w=12(){}}),j>=i.2a||(11.5p(b,h),e&&e())},11),k),a.1w(i,a.1v(12(c,d){13 f=2I 9H;f.6w=a.1v(12(){f.6w=12(){};13 c=f.14,g=f.18,k=a(d).3i("14"),l=a(d).3i("18");k&&l||(!k&&l?(c=1b.23(l*c/g),g=l):!l&&k&&(g=1b.23(k*g/c),c=k),a(d).3i({14:c,18:g}),j++),j==i.2a&&(b.2j("3H"),b.1N&&(b.1N.1y(),b.1N=1r),b.1F("1M")&&a(b.1i).1I(),11.5p(b,h),e&&e())},11),f.4n=d.4n},11))}1G 11.5p(b,h),e&&e()}12 g(b,c){13 d=e(c),f={14:d.14-(2P(a(c).1q("2o-15"))||0)-(2P(a(c).1q("2o-1O"))||0),18:d.18-(2P(a(c).1q("2o-17"))||0)-(2P(a(c).1q("2o-1S"))||0)};b.19.3k&&"2B"==a.1p(b.19.3k)&&f.14>b.19.3k&&(a(c).1q({14:b.19.3k+"2y"}),d=e(c)),b.1o.2H=d,a(b.3a).81(c)}1a{1P:b,43:f,5p:g,6c:e}}(),a.1k(C.3I,12(){12 b(a,b,c){11.1o.3e[a]=d.4M(b,c)}12 c(a){1a 11.1o.3e[a]}12 e(a){11.1o.3e[a]&&(1K.6n(11.1o.3e[a]),3J 11.1o.3e[a])}12 f(){a.1w(11.1o.3e,12(a,b){1K.6n(b)}),11.1o.3e=[]}12 g(b,c,d,e){c=c;13 f=a.1v(d,e||11);11.1o.5E.2n({1g:b,82:c,83:f}),a(b).3V(c,f)}12 h(){a.1w(11.1o.5E,12(b,c){a(c.1g).4v(c.82,c.83)})}12 j(a,b){11.1o.2t[a]=b}12 l(a){1a 11.1o.2t[a]}12 m(){11.2E(11.1g,"4p",11.5q),11.2E(11.1g,"5b",a.1v(12(a){11.6x(a)},11)),11.19.2L&&a.1w(11.19.2L,a.1v(12(b,c){13 d=!1;"2r"==c&&(11.19.25&&a.1w(11.19.25,12(a,b){1a"4L"==b.1g&&"2r"==b.2x?(d=!0,!1):3x 0}),11.27("5F",d)),11.2E(11.1g,c,"2r"==c?d?11.35:11.1W:a.1v(12(){11.84()},11))},11)),11.19.25?a.1w(11.19.25,a.1v(12(b,c){13 d;1T(c.1g){1h"4L":1f(11.1F("5F")&&"2r"==c.2x)1a;d=11.1g;1B;1h"1C":d=11.1C}d&&11.2E(d,c.2x,"2r"==c.2x?11.1I:a.1v(12(){11.6y()},11))},11)):11.19.85&&11.19.2L&&!a.6z("2r",11.19.2L)>-1&&11.2E(11.1g,"5b",a.1v(12(){11.2j("1W")},11));13 b=!1;!11.19.9I&&11.19.2L&&((b=a.6z("4x",11.19.2L)>-1)||a.6z("5r",11.19.2L)>-1)&&"2N"==11.1C&&11.2E(11.1g,b?"4x":"5r",12(a){11.1F("4K")&&11.1e(a)})}12 n(){11.2E(11.1i,1R.2A.3r?"5r":"4p",11.5q),11.2E(11.1i,"5b",11.6x),11.2E(11.1i,1R.2A.3r?"5r":"4p",a.1v(12(){11.5s("4B")||11.1W()},11)),11.19.25&&a.1w(11.19.25,a.1v(12(b,c){13 d;1T(c.1g){1h"1D":d=11.1i}d&&11.2E(d,c.2x,c.2x.3g(/^(2r|4x|4p)$/)?11.1I:a.1v(12(){11.6y()},11))},11))}12 o(a,b,c){13 d=u.1t(11.1g);d&&d.5k(a,b,c)}12 p(a){13 b=u.1t(11.1g);b&&b.4o(a)}12 q(){11.4o(11.19.1u.1D)}12 r(){a(11.1i=1x.22("2i")).1Y("3b"),11.86()}12 s(){11.1P();13 a=u.1t(11.1g);a?a.1P():(2I v(11.1g),11.27("4K",!0))}12 t(){11.1F("1P")||(a(1x.33).1Z(a(11.1i).1q({15:"-5t",17:"-5t",2l:11.2l}).1Z(a(11.58=1x.22("2i")).1Y("9J")).1Z(a(11.3a=1x.22("2i")).1Y("7V"))),a(11.1i).1Y("9K"+11.19.21),11.19.7O&&(a(11.1g).1Y("87"),11.2E(1x.6k,"2r",a.1v(12(b){1f(11.1M()){13 c=a(b.1C).5l(".3b, .87")[0];(!c||c&&c!=11.1i&&c!=11.1g)&&11.1I()}},11))),1R.2A.49&&(11.19.4C||11.19.3Y)&&(11.5u(11.19.4C),a(11.1i).1Y("6A")),11.88(),11.27("1P",!0),B.31(11))}12 w(){13 c;11.2G,11.41&&11.3c&&((c=a(11.3c).1X("7Y"))&&a(11.3c).1q({7Z:c}),a(11.41).6i(11.3c).1y(),11.41=1r)}12 x(){d.46(a.1v(12(){11.89()},11)),11.8a(),11.6B(),d.46(a.1v(12(){a(11.1i).6a("80[4n]").4v("9L")},11)),u.1y(11.1g),11.1F("1P")&&11.1i&&(a(11.1i).1y(),11.1i=1r);13 c,b="5D";(c=a(11.1g).1X(b))&&a(11.1g).3i("5C",c).8b("5D"),a(11.1g).8b("2s-1V")}12 y(b){13 c=a.1k({4D:11.19.4D,1N:!1},20[1]||{});11.1P(),11.1F("1M")&&a(11.1i).1I(),B.3t.43(11,b,a.1v(12(){13 b=11.1F("1M");b||11.27("1M",!0),11.8c(),b||11.27("1M",!1),11.1F("1M")&&(a(11.1i).1I(),11.1e(),11.5v(),a(11.1i).1W()),11.27("3f",!0),c.4D&&c.4D(11.3a.4E,11.1g),c.4F&&c.4F()},11),{1N:c.1N})}12 z(b){13 c,d={48:11.2G,1p:11.19.2c.1p,1X:11.19.2c.1X||{},8d:11.19.2c.8d||"81"};1f(!(11.1F("2m")||11.19.2c.3X&&11.1F("3f"))){1f(11.19.2c.3X&&(c=i.1t(d)))1a 11.6C(c,{4F:a.1v(12(){11.1F("1M")&&11.19.44&&11.19.44(11.3a.4E,11.1g)},11)}),3x 0;11.27("2m",!0),11.19.1N&&(11.1N?11.1N.6v():(11.1N=11.6u(11.19.1N),11.27("3f",!1)),11.1e(b)),11.1o.2m&&(11.1o.2m.6o(),11.1o.2m=1r),11.1o.2m=a.2c(a.1k({},d,{9M:a.1v(12(b,c,e){0!==e.9N&&(i.4W(d,e.4V),11.6C(e.4V,{4F:a.1v(12(){11.27("2m",!1),11.1F("1M")&&11.19.44&&11.19.44(11.3a.4E,11.1g),11.1N&&(11.1N.1y(),11.1N=1r)},11)}))},11)}))}}12 A(b){13 c=a.1k({1N:11.19.1N&&11.1N},20[1]||{});11.43(b,c)}12 C(){13 b=1x.22("2i");a(b).1X("7X",!0);13 c=6s.4X(b,a.1k({},20[0]||{})),d=6s.61(b);1a a(b).1q(k(d)),11.43(b,{4D:!1,4F:12(){c.6v()}}),c}12 E(){1f(11.1F("1P")&&!11.19.2l){13 b=B.7H();b&&b!=11&&11.2l<=b.2l&&a(11.1i).1q({2l:11.2l=b.2l+1})}}12 F(){13 a=u.1t(11.1g);a&&(a.2Q(),11.1M()&&11.1e())}12 G(a){1f(1R.2A.49){a=a||0;13 b=11.1i.9O;b.9P=a+"5w",b.9Q=a+"5w",b.9R=a+"5w",b.9S=a+"5w"}}12 H(b){11.2j("1I"),11.2j("4B"),11.1F("1M")||11.5s("1W")||11.42("1W",a.1v(12(){11.2j("1W"),11.1W(b)},11),11.19.85||1)}12 I(b){1f(11.2j("1I"),11.2j("4B"),!11.1M()){1f("12"==a.1p(11.2G)||"12"==a.1p(11.1o.5x)){"12"!=a.1p(11.1o.5x)&&(11.1o.5x=11.2G);13 c=11.1o.5x(11.1g)||!1;1f(c!=11.1o.5G&&(11.1o.5G=c,11.27("3f",!1),11.6B()),11.2G=c,!c)1a}11.19.9T&&B.4Y(),11.27("1M",!0),11.19.2c?11.8e(b):11.1F("3f")||11.43(11.2G),11.1F("4K")&&11.1e(b),11.5v(),11.19.5y&&d.46(a.1v(12(){11.5q()},11)),"12"==a.1p(11.19.44)&&(!11.19.2c||11.19.2c&&11.19.2c.3X&&11.1F("3f"))&&11.19.44(11.3a.4E,11.1g),1R.2A.49&&(11.19.4C||11.19.3Y)&&(11.5u(11.19.4C),a(11.1i).1Y("8f").8g("6A")),a(11.1i).1W()}}12 J(){11.2j("1W"),11.1F("1M")&&(11.27("1M",!1),1R.2A.49&&(11.19.4C||11.19.3Y)?(11.5u(11.19.3Y),a(11.1i).8g("8f").1Y("6A"),11.42("4B",a.1v(11.6D,11),11.19.3Y)):11.6D(),11.1o.2m&&(11.1o.2m.6o(),11.1o.2m=1r,11.27("2m",!1)))}12 K(){11.1F("1P")&&(a(11.1i).1q({15:"-5t",17:"-5t"}),B.7I(),"12"!=a.1p(11.19.8h)||11.1N||11.19.8h(11.3a.4E,11.1g))}12 L(){11.2j("1W"),!11.5s("1I")&&11.1F("1M")&&11.42("1I",a.1v(12(){11.2j("1I"),11.2j("4B"),11.1I()},11),11.19.9U||1)}12 M(a){11[11.1M()?"1I":"1W"](a)}12 N(){1a 11.1F("1M")}12 O(){11.27("4J",!0),11.1F("1M")&&11.5v(),11.19.5y&&11.2j("6E")}12 P(){11.27("4J",!1),11.19.5y&&11.42("6E",a.1v(12(){11.2j("6E"),11.1F("4J")||11.1I()},11),11.19.5y)}13 D=12(b){1f(11.1M()){13 c;1f("2N"==11.19.1C){13 e=B.2f.6t(b),f=B.2f.4Z;1f(e)f.x||f.y?(11.1o.2x={x:f.x,y:f.y},c=1r):c=b;1G{1f(f.x||f.y)11.1o.2x={x:f.x,y:f.y};1G 1f(!11.1o.2x){13 g=B.2f.7U(11.1g);11.1o.2x={x:g.15,y:g.17}}c=1r}}1G c=11.1C;1f(B.2f.4W(11,11.19.1u.1D,c,11.19.1u.1C),b&&B.2f.6t(b)){13 h={14:a(11.1i).7R(),18:a(11.1i).7S()},i=d.5J(b),g=d.1g.4R(11.1i);i.x>=g.15&&i.x<=g.15+h.14&&i.y>=g.17&&i.y<=g.17+h.18&&d.46(a.1v(12(){11.2j("1I")},11))}}};1a{1P:t,6K:r,8c:s,86:m,88:n,1W:I,1I:J,6D:K,35:M,1M:N,84:H,6y:L,5u:G,27:j,1F:l,5q:O,6x:P,5s:c,42:b,2j:e,8a:f,2E:g,89:h,5k:o,4o:p,9V:q,2Q:F,43:y,8e:z,6C:A,6u:C,1e:D,5v:E,6B:w,1y:x}}()),1R.3s()}(47);'
,62,616,"|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||this|function|var|width|left||top|height|options|return|Math|dimensions|lineTo|position|if|element|case|container|border|extend|stem|background|radius|_cache|type|css|null|shadow|get|hook|proxy|each|document|remove|closeButton|offset|break|target|tooltip|ceil|getState|else|bubble|hide|horizontal|window|opacity|visible|spinner|right|build|color|Tipped|bottom|switch|max|uid|show|data|addClass|append|arguments|skin|createElement|round||hideOn|arc|setState|for|_hookPosition|length|vertical|ajax||getTooltip|Position|beginPath|closePath|div|clearTimer|isElement|zIndex|xhr|push|padding|getOrderLayout|tooltips|click|tipped|states|string|middle|size|event|px|_globalAlpha|support|number|box|Skins|setEvent|180|content|contentDimensions|new|getOrientation|anchor|showOn|globalAlpha|mouse|split|parseInt|refresh|fillStyle|hex2fill|center|iframeShim|closeButtonShadow|abs|bubbleCanvas|blurs|containment|PI|add|blur|body|scripts|toggle|fill|isCenter|cleanup|cornerOffset|contentElement|t_Tooltip|inlineContent|_stemCorrection|timers|updated|match|canvas|attr|test|maxWidth|shadows|getSkin|_adjustment|IE|indexOf|getContext|touch|init|UpdateQueue|devicePixelRatio|resize|moveTo|void|charAt|toLowerCase|diameter|hookPosition|layout|stemLayout|sides|_corrections|constructor|preloading_images|prototype|delete|getVisible|x1|y1|x2|y2|topleft|topright|righttop|lefttop|math|getLayout|bind|defaultSkin|cache|fadeOut|contained|overlap|inlineMarker|setTimer|update|onShow||defer|jQuery|url|cssTransitions|items|createFillStyle|topmiddle|rightmiddle|rightbottom|bottomright|bottommiddle|bottomleft|leftbottom|leftmiddle|regex|getBorderDimensions|correction|src|setHookPosition|mouseenter|getStemLayout|transition|Stem|closeButtonCanvas|_void|unbind|_onWindowResizeHandler|mousemove|_remove|boolean|sideOffset|fadeTransition|fadeIn|afterUpdate|firstChild|callback|cos|000|startingZIndex|active|skinned|self|delay|cumulativeScrollOffset|scrollTop|scrollLeft|parentNode|cumulativeOffset|isAttached|Gecko|Chrome|responseText|set|create|hideAll|mouseBuffer||viewport|min|G_vmlCanvasManager|getCenterBorderDimensions||substring|skins|skinElement|prepare|order|mouseleave|rotate|borderRadius|topcenter|rightcenter|bottomcenter|leftcenter|corner|corrections|setHookPositionAndStemCorrection|closest|_resizeTimer|_getTooltip|selector|_updateTooltip|setActive|touchmove|getTimer|10000px|setFadeDuration|raise|ms|contentFunction|hideAfter|console|in|Object|title|tipped_restore_title|events|toggles|fnCallContent|call|apply|pointer|pageX|RegExp|parseFloat|Opera|opera|WebKit|required|available|findElement|setDefaultSkin|setStartingZIndex|isVisibleByElement|undefined|clearAjaxCache|innerWidth|innerHeight|getSide|getDimensions|getBubbleLayout|nullifyCornerOffset|replace|100|defaultCloseButton|hoverCloseButton|floor|prepend|find|auto|getMeasureElementDimensions|t_Close|drawCloseButtonState|default|hover|_drawBackgroundPath|before|dark|documentElement|_mouseBufferHandler|getByTooltipElement|clearTimeout|abort|reset|CloseButtons|getInversedPosition|Spinners|isPointerEvent|insertSpinner|play|onload|setIdle|hideDelayed|inArray|t_hidden|_restoreInlineContent|afterAjaxUpdate|_hide|idle|warn|_stemPosition|createOptions|getAttribute|getElementById|_preBuild|Array|concat|pageY|version|AppleWebKit|MobileSafari|check|pow|Za|checked|notified|toUpperCase|param|clear|try|DocumentTouch|catch|removeAll|startDelegating|removeDetached|drawRoundedRectangle|fillRect|isArray|Gradient|addColorStops|positions|toOrientation|side|toDimension|isCorner|atan|red|green|blue|360|drawBubble|drawCloseButton|createHookCache|t_ContentContainer|first|25000px|setStemCorrection|setAdjustment|closeButtonShift|closeButtonMouseover|closeButtonMouseout|CloseButton|stemOffset|backgroundRadius|_drawBorderPath|setGlobalAlpha|drawBackground|getBlurOpacity|stopDelegating|touchstart|close|onWindowResize|is|getHighestTooltip|resetZ|base|getTooltipPositionFromTarget|adjustOffsetBasedOnHooks|closeButtonSkin|flip|hideOnClickOutside|typeof|adjustment|outerWidth|outerHeight|_|getAbsoluteOffset|t_Content|inline|isSpinner|tipped_restore_inline_display|display|img|html|eventName|handler|showDelayed|showDelay|createPreBuildObservers|t_hideOnClickOutside|createPostBuildObservers|clearEvents|clearTimers|removeData|_buildSkin|dataType|ajaxUpdate|t_visible|removeClass|onHide|log|sqrt|object|setAttribute|slice|wrap|nodeType|setTimeout|do|while|exec|attachEvent|MSIE|KHTML|rv|Apple|Mobile|Safari|navigator|userAgent|fn|jquery|z_|z0|requires|_t_uid_|ontouchstart|instanceof|WebKitTransitionEvent|TransitionEvent|OTransitionEvent|createEvent|ready|scale|initElement|drawPixelArray|createLinearGradient|addColorStop|spacing|rgba|join|fff|255|hue||saturation|brightness|0123456789abcdef|hex2rgb|getSaturatedBW|init_|t_Bubble|iframe|t_iframeShim|frameBorder|javascript|15000px|t_CloseButtonShift|lineCap|t_CloseState|translate|stemCorrection|270|lineWidth|sin|setOpacity|getCenterBorderDimensions2|acos|t_Shadow|t_ShadowBubble|t_CloseButtonShadow|999999|undelegate|delegate|preventDefault|stopPropagation|200|getBySelector|outside|move|530|t_UpdateQueue|t_clearfix|t_Content_|filter|8e3|750|Image|fixed|t_Skin|t_Tooltip_|load|success|status|style|MozTransitionDuration|webkitTransitionDuration|OTransitionDuration|transitionDuration|hideOthers|hideDelay|resetHookPosition".split("|"),0,{}));var Spinners={version:"3.0.0"};(function(e){function n(e){var t=1/e,n=[];for(var r=0;r<e;r++)n.push((r+1)*t);return n}function r(e,t){return Math.sqrt(e*e+t*t)}function i(e){return e*180/Math.PI}function s(e){return e*Math.PI/180}function f(e){this.element=e}function l(t){if(!t)return;this.element=t;a.remove(t);a.removeDetached();this._position=0;this._state="stopped";this.setOptions(e.extend({color:"#000",dashes:12,radius:5,height:5,width:1.8,opacity:1,padding:3,rotation:700},arguments[1]||{}));this.drawPosition(0);a.add(this)}var t={scroll:function(e,t){if(!t)return e;var n=e.slice(0,t),r=e.slice(t,e.length);return r.concat(n)},isElement:function(e){return e&&e.nodeType==1},element:{isAttached:function(){function e(e){var t=e;while(t&&t.parentNode)t=t.parentNode;return t}return function(t){var n=e(t);return!!n&&!!n.body}}()}},o={drawRoundedRectangle:function(t){var n=e.extend({top:0,left:0,width:0,height:0,radius:0},arguments[1]||{}),r=n,i=r.left,o=r.top,u=r.width,a=r.height,f=r.radius;t.beginPath();t.moveTo(i+f,o);t.arc(i+u-f,o+f,f,s(-90),s(0),!1);t.arc(i+u-f,o+a-f,f,s(0),s(90),!1);t.arc(i+f,o+a-f,f,s(90),s(180),!1);t.arc(i+f,o+f,f,s(-180),s(-90),!1);t.closePath();t.fill()}},u=function(){function n(e){var t=e;t.red=e[0];t.green=e[1];t.blue=e[2];return t}function r(e){return parseInt(e,16)}function i(e){var i=[];e.indexOf("#")==0&&(e=e.substring(1));e=e.toLowerCase();if(e.replace(t,"")!="")return null;if(e.length==3){i[0]=e.charAt(0)+e.charAt(0);i[1]=e.charAt(1)+e.charAt(1);i[2]=e.charAt(2)+e.charAt(2)}else{i[0]=e.substring(0,2);i[1]=e.substring(2,4);i[2]=e.substring(4)}for(var s=0;s<i.length;s++)i[s]=r(i[s]);return n(i)}function s(e,t){var n=i(e);n[3]=t;n.opacity=t;return n}function o(e,t){typeof t=="undefined"&&(t=1);return"rgba("+s(e,t).join()+")"}var e="0123456789abcdef",t=new RegExp("["+e+"]","g"),u=function(){function e(e,t,n){e=e.toString(n||10);return(new Array(t-e.length)).join("0")+e}return function(t,n,r){return"#"+e(t,2,16)+e(n,2,16)+e(r,2,16)}}();return{hex2rgb:i,hex2fill:o,rgb2hex:u}}();e.extend(Spinners,{enabled:!1,support:{canvas:function(){var t=e("<canvas>")[0];return!!t.getContext&&!!t.getContext("2d")}()},init:function(){if(!this.support.canvas&&(!window.G_vmlCanvasManager||!window.attachEvent||navigator.userAgent.indexOf("Opera")!==-1))return;window.G_vmlCanvasManager&&window.G_vmlCanvasManager.init_(document);this.enabled=!0},create:function(e,t){f.create(e,t);return this.get(e)},get:function(e){return new f(e)},play:function(e){this.get(e).play();return this},pause:function(e){this.get(e).pause();return this},toggle:function(e){this.get(e).toggle();return this},stop:function(e){this.get(e).stop();return this},remove:function(e){this.get(e).remove();return this},removeDetached:function(e){a.removeDetached();return this},center:function(e){this.get(e).center();return this},setOptions:function(e,t){this.get(e).setOptions(t);return this},getDimensions:function(e){var t=a.get(e)[0],n=t.getLayout().workspace.radius*2;return{width:n,height:n}}});var a={spinners:[],get:function(n){if(!n)return;var r=[];e.each(this.spinners,function(i,s){s&&(t.isElement(n)?s.element==n:e(s.element).is(n))&&r.push(s)});return r},add:function(e){this.spinners.push(e)},remove:function(n){e(e.map(this.spinners,function(r,i){if(t.isElement(n)?r.element==n:e(r.element).is(n))return r.element})).each(e.proxy(function(e,t){this.removeByElement(t)},this))},removeByElement:function(t){var n=this.get(t)[0];if(n){n.remove();this.spinners=e.grep(this.spinners,function(e){return e.element!=t})}},removeDetached:function(){e.each(this.spinners,e.proxy(function(e,n){n&&n.element&&!t.element.isAttached(n.element)&&this.remove(n.element)},this))}};e.extend(f,{create:function(n){if(!n)return;var r=arguments[1]||{},i=[];t.isElement(n)?i.push(new l(n,r)):e(n).each(function(e,t){i.push(new l(t,r))});return i}});e.extend(f.prototype,{items:function(){return a.get(this.element)},play:function(){e.each(this.items(),function(e,t){t.play()});return this},stop:function(){e.each(this.items(),function(e,t){t.stop()});return this},pause:function(){e.each(this.items(),function(e,t){t.pause()});return this},toggle:function(){e.each(this.items(),function(e,t){t.toggle()});return this},center:function(){e.each(this.items(),function(e,t){t.center()});return this},setOptions:function(t){e.each(this.items(),function(e,n){n.setOptions(t)});return this},remove:function(){a.remove(this.element);return this}});e.extend(l.prototype,{setOptions:function(t){this.options=e.extend({},this.options,t||{});if(this.options.radii){var n=this.options.radii;this.options.radius=Math.min(n[0],n[1]);this.options.height=Math.max(n[0],n[1])-this.options.radius}this.options.dashWidth&&(this.options.width=this.options.dashWidth);this.options.speed&&(this.options.duration=this.options.speed*1e3);var r=this._state,i=this._position;this._layout=null;this.build();i&&i>=this.options.dashes-1&&(this._position=this.options.dashes-1);switch(r){case"playing":this.play();break;case"paused":case"stopped":this.drawPosition(this._position)}this._centered&&this.center()},remove:function(){if(!this.canvas)return;this.pause();e(this.canvas).remove();this.canvas=null;this.ctx=null},build:function(){this.remove();var t=this.getLayout().workspace.radius;e(document.body).append(this.canvas=e("<canvas>").attr({width:t*2,height:t*2}).css({zoom:1}));window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.canvas[0]);this.ctx=this.canvas[0].getContext("2d");this.ctx.globalAlpha=this.options.opacity;e(this.element).append(this.canvas);this.ctx.translate(t,t);return this},drawPosition:function(e){var n=this.getLayout().workspace,r=t.scroll(n.opacities,e*-1),i=n.radius,o=this.options.dashes,u=s(360/o);this.ctx.clearRect(i*-1,i*-1,i*2,i*2);for(var a=0,f=o;a<f;a++){this.drawDash(r[a],this.options.color);this.ctx.rotate(u)}},drawDash:function(e,t){this.ctx.fillStyle=u.hex2fill(t,e);var n=this.getLayout(),r=n.workspace.radius,i=n.dash.position,s=n.dash.dimensions;o.drawRoundedRectangle(this.ctx,{top:i.top-r,left:i.left-r,width:s.width,height:s.height,radius:Math.min(s.height,s.width)/2})},_nextPosition:function(){var t=this.options.rotation/this.options.dashes;this.nextPosition();this._playTimer=window.setTimeout(e.proxy(this._nextPosition,this),t)},nextPosition:function(){this._position==this.options.dashes-1&&(this._position=-1);this._position++;this.drawPosition(this._position)},play:function(){if(this._state=="playing")return;this._state="playing";var t=this.options.rotation/this.options.dashes;this._playTimer=window.setTimeout(e.proxy(this._nextPosition,this),t);return this},pause:function(){if(this._state=="paused")return;this._pause();this._state="paused";return this},_pause:function(){if(!this._playTimer)return;window.clearTimeout(this._playTimer);this._playTimer=null},stop:function(){if(this._state=="stopped")return;this._pause();this._position=0;this.drawPosition(0);this._state="stopped";return this},toggle:function(){this[this._state=="playing"?"pause":"play"]();return this},getLayout:function(){if(this._layout)return this._layout;var e=this.options,t=e.dashes,i=e.width,s=e.radius,o=e.radius+e.height,u=Math.max(i,o),a=Math.ceil(Math.max(u,r(o,i/2)));a+=e.padding;var f={workspace:{radius:a,opacities:n(t)},dash:{position:{top:a-o,left:a-i/2},dimensions:{width:i,height:o-s}}};this._layout=f;return f},center:function(){var t=this.getLayout().workspace.radius*2;e(this.element.parentNode).css({position:"relative"});e(this.element).css({position:"absolute",height:t+"px",width:t+"px",top:"50%",left:"50%",marginLeft:-0.5*t+"px",marginTop:-0.5*t+"px"});this._centered=!0}});Spinners.init();Spinners.enabled||(f.create=function(){return[]})})(jQuery);(function(e,t,n){function f(e,t,n){var r=[];for(var i=0;i<e.length;i++){var s=tinycolor(e[i]),u=s.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";u+=tinycolor.equals(t,e[i])?" sp-thumb-active":"";var a=o?"background-color:"+s.toRgbString():"filter:"+s.toFilter();r.push('<span title="'+s.toRgbString()+'" data-color="'+s.toRgbString()+'" class="'+u+'"><span class="sp-thumb-inner" style="'+a+';" /></span>')}return"<div class='sp-cf "+n+"'>"+r.join("")+"</div>"}function l(){for(var e=0;e<i.length;e++)i[e]&&i[e].hide()}function c(e,n){var i=t.extend({},r,e);i.callbacks={move:m(i.move,n),change:m(i.change,n),show:m(i.show,n),hide:m(i.hide,n),beforeShow:m(i.beforeShow,n)};return i}function h(r,h){function mt(){V.toggleClass("sp-flat",m);V.toggleClass("sp-input-disabled",!d.showInput);V.toggleClass("sp-alpha-enabled",d.showAlpha);V.toggleClass("sp-buttons-disabled",!d.showButtons||m);V.toggleClass("sp-palette-disabled",!d.showPalette);V.toggleClass("sp-palette-only",d.showPaletteOnly);V.toggleClass("sp-initial-disabled",!d.showInitial);V.addClass(d.className);Bt()}function gt(){function i(e){if(e.data&&e.data.ignore){At(t(this).data("color"));_t()}else{At(t(this).data("color"));Ht(!0);_t();kt()}return!1}s&&V.find("*:not(input)").attr("unselectable","on");mt();ut&&W.hide().after(at);m?W.after(V).hide():t(z).append(V);if(w&&e.localStorage){try{var n=e.localStorage[w].split(",#");if(n.length>1){delete e.localStorage[w];t.each(n,function(e,t){yt(t)})}}catch(r){}try{I=e.localStorage[w].split(";")}catch(r){}}ft.bind("click.spectrum touchstart.spectrum",function(e){X||Nt();e.stopPropagation();t(e.target).is("input")||e.preventDefault()});(W.is(":disabled")||d.disabled===!0)&&qt();V.click(v);tt.change(Tt);tt.bind("paste",function(){setTimeout(Tt,1)});tt.keydown(function(e){e.keyCode==13&&Tt()});it.text(d.cancelText);it.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();kt("cancel")});st.text(d.chooseText);st.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(Mt()){Ht(!0);kt()}});g(Z,function(e,t,n){B=e/O;n.shiftKey&&(B=Math.round(B*10)/10);_t()});g(Q,function(e,t){D=parseFloat(t/L);_t()},St,xt);g(J,function(e,t){P=parseFloat(e/N);H=parseFloat((C-t)/C);_t()},St,xt);if(!ct)Dt();else{At(ct);Dt();dt=pt||tinycolor(ct).format;yt(ct)}m&&Ct();var o=s?"mousedown.spectrum":"click.spectrum touchstart.spectrum";nt.delegate(".sp-thumb-el",o,i);rt.delegate(".sp-thumb-el:nth-child(1)",o,{ignore:!0},i)}function yt(n){if(b){var r=tinycolor(n).toRgbString();if(t.inArray(r,I)===-1){I.push(r);while(I.length>q)I.shift()}if(w&&e.localStorage)try{e.localStorage[w]=I.join(";")}catch(i){}}}function bt(){var e=[],t=I,n={},r;if(d.showPalette){for(var i=0;i<F.length;i++)for(var s=0;s<F[i].length;s++){r=tinycolor(F[i][s]).toRgbString();n[r]=!0}for(i=0;i<t.length;i++){r=tinycolor(t[i]).toRgbString();if(!n.hasOwnProperty(r)){e.push(t[i]);n[r]=!0}}}return e.reverse().slice(0,d.maxSelectionSize)}function wt(){var e=Ot(),n=t.map(F,function(t,n){return f(t,e,"sp-palette-row sp-palette-row-"+n)});I&&n.push(f(bt(),e,"sp-palette-row sp-palette-row-selection"));nt.html(n.join(""))}function Et(){if(d.showInitial){var e=ht,t=Ot();rt.html(f([e,t],t,"sp-palette-row-initial"))}}function St(){(C===0||N===0||L===0)&&Bt();V.addClass(R)}function xt(){V.removeClass(R)}function Tt(){var e=tinycolor(tt.val());e.ok?At(e):tt.addClass("sp-validation-error")}function Nt(){T?kt():Ct()}function Ct(){var n=t.Event("beforeShow.spectrum");if(T){Bt();return}W.trigger(n,[Ot()]);if(S.beforeShow(Ot())===!1||n.isDefaultPrevented())return;l();T=!0;t(U).bind("click.spectrum",kt);t(e).bind("resize.spectrum",x);at.addClass("sp-active");V.removeClass("sp-hidden");d.showPalette&&wt();Bt();Dt();ht=Ot();Et();S.show(ht);W.trigger("show.spectrum",[ht])}function kt(n){if(n&&n.type=="click"&&n.button==2)return;if(!T||m)return;T=!1;t(U).unbind("click.spectrum",kt);t(e).unbind("resize.spectrum",x);at.removeClass("sp-active");V.addClass("sp-hidden");var r=!tinycolor.equals(Ot(),ht);r&&(vt&&n!=="cancel"?Ht(!0):Lt());S.hide(Ot());W.trigger("hide.spectrum",[Ot()])}function Lt(){At(ht,!0)}function At(e,t){if(tinycolor.equals(e,Ot()))return;var n=tinycolor(e),r=n.toHsv();D=r.h;P=r.s;H=r.v;B=r.a;Dt();n.ok&&!t&&(dt=pt||n.format)}function Ot(){return tinycolor.fromRatio({h:D,s:P,v:H,a:Math.round(B*100)/100})}function Mt(){return!tt.hasClass("sp-validation-error")}function _t(){Dt();S.move(Ot());W.trigger("move.spectrum",[Ot()])}function Dt(){tt.removeClass("sp-validation-error");Pt();var e=tinycolor({h:D,s:"1.0",v:"1.0"});J.css("background-color",e.toHexString());var t=dt;B<1&&(t==="hex"||t==="name")&&(t="rgb");var n=Ot(),r=n.toHexString(),i=n.toRgbString();if(o||n.alpha===1)lt.css("background-color",i);else{lt.css("background-color","transparent");lt.css("filter",n.toFilter())}if(d.showAlpha){var u=n.toRgb();u.a=0;var a=tinycolor(u).toRgbString(),f="linear-gradient(left, "+a+", "+r+")";if(s)Y.css("filter",tinycolor(a).toFilter({gradientType:1},r));else{Y.css("background","-webkit-"+f);Y.css("background","-moz-"+f);Y.css("background","-ms-"+f);Y.css("background",f)}}if(d.showInput){B<1&&(t==="hex"||t==="name")&&(t="rgb");tt.val(n.toString(t))}d.showPalette&&wt();Et()}function Pt(){var e=P,t=H,n=e*N,r=C-t*C;n=Math.max(-k,Math.min(N-k,n-k));r=Math.max(-k,Math.min(C-k,r-k));K.css({top:r,left:n});var i=B*O;et.css({left:i-M/2});var s=D*L;G.css({top:s-_})}function Ht(e){var t=Ot();ot&&W.val(t.toString(dt)).change();var n=!tinycolor.equals(t,ht);ht=t;yt(t);if(e&&n){S.change(t);W.trigger("change.spectrum",[t])}}function Bt(){N=J.width();C=J.height();k=K.height();A=Q.width();L=Q.height();_=G.height();O=Z.width();M=et.width();m||V.offset(p(V,ft));Pt()}function jt(){W.show();ft.unbind("click.spectrum touchstart.spectrum");V.remove();at.remove();i[Rt.id]=null}function Ft(e,r){if(e===n)return t.extend({},d);if(r===n)return d[e];d[e]=r;mt()}function It(){X=!1;W.attr("disabled",!1);ft.removeClass("sp-disabled")}function qt(){kt();X=!0;W.attr("disabled",!0);ft.addClass("sp-disabled")}var d=c(h,r),m=d.flat,b=d.showSelectionPalette,w=d.localStorageKey,E=d.theme,S=d.callbacks,x=y(Bt,10),T=!1,N=0,C=0,k=0,L=0,A=0,O=0,M=0,_=0,D=0,P=0,H=0,B=1,j=d.palette.slice(0),F=t.isArray(j[0])?j:[j],I=d.selectionPalette.slice(0),q=d.maxSelectionSize,R="sp-dragging",U=r.ownerDocument,z=U.body,W=t(r),X=!1,V=t(a,U).addClass(E),J=V.find(".sp-color"),K=V.find(".sp-dragger"),Q=V.find(".sp-hue"),G=V.find(".sp-slider"),Y=V.find(".sp-alpha-inner"),Z=V.find(".sp-alpha"),et=V.find(".sp-alpha-handle"),tt=V.find(".sp-input"),nt=V.find(".sp-palette"),rt=V.find(".sp-initial"),it=V.find(".sp-cancel"),st=V.find(".sp-choose"),ot=W.is("input"),ut=ot&&!m,at=ut?t(u).addClass(E):t([]),ft=ut?at:W,lt=at.find(".sp-preview-inner"),ct=d.color||ot&&W.val(),ht=!1,pt=d.preferredFormat,dt=pt,vt=!d.showButtons||d.clickoutFiresChange;gt();var Rt={show:Ct,hide:kt,toggle:Nt,reflow:Bt,option:Ft,enable:It,disable:qt,set:function(e){At(e);Ht()},get:Ot,destroy:jt,container:V};Rt.id=i.push(Rt)-1;return Rt}function p(e,n){var r=0,i=e.outerWidth(),s=e.outerHeight(),o=n.outerHeight(),u=e[0].ownerDocument,a=u.documentElement,f=a.clientWidth+t(u).scrollLeft(),l=a.clientHeight+t(u).scrollTop(),c=n.offset();c.top+=o;c.left-=Math.min(c.left,c.left+i>f&&f>i?Math.abs(c.left+i-f):0);c.top-=Math.min(c.top,c.top+s>l&&l>s?Math.abs(s+o-r):r);return c}function d(){}function v(e){e.stopPropagation()}function m(e,t){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function g(n,r,i,o){function d(e){e.stopPropagation&&e.stopPropagation();e.preventDefault&&e.preventDefault();e.returnValue=!1}function v(e){if(a){if(s&&document.documentMode<9&&!e.button)return g();var t=e.originalEvent.touches,i=t?t[0].pageX:e.pageX,o=t?t[0].pageY:e.pageY,u=Math.max(0,Math.min(i-f.left,c)),p=Math.max(0,Math.min(o-f.top,l));h&&d(e);r.apply(n,[u,p,e])}}function m(e){var r=e.which?e.which==3:e.button==2,s=e.originalEvent.touches;if(!r&&!a&&i.apply(n,arguments)!==!1){a=!0;l=t(n).height();c=t(n).width();f=t(n).offset();t(u).bind(p);t(u.body).addClass("sp-dragging");h||v(e);d(e)}}function g(){if(a){t(u).unbind(p);t(u.body).removeClass("sp-dragging");o.apply(n,arguments)}a=!1}r=r||function(){};i=i||function(){};o=o||function(){};var u=n.ownerDocument||document,a=!1,f={},l=0,c=0,h="ontouchstart"in e,p={};p.selectstart=d;p.dragstart=d;p[h?"touchmove":"mousemove"]=v;p[h?"touchend":"mouseup"]=g;t(n).bind(h?"touchstart":"mousedown",m)}function y(e,t,n){var r;return function(){var i=this,s=arguments,o=function(){r=null;e.apply(i,s)};n&&clearTimeout(r);if(n||!r)r=setTimeout(o,t)}}function w(){e.console&&(w=Function.prototype.bind?Function.prototype.bind.call(console.log,console):function(){Function.prototype.apply.call(console.log,console,arguments)},w.apply(this,arguments))}var r={beforeShow:d,move:d,change:d,show:d,hide:d,color:!1,flat:!1,showInput:!1,showButtons:!0,clickoutFiresChange:!1,showInitial:!1,showPalette:!1,showPaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",preferredFormat:!1,className:"",showAlpha:!1,theme:"sp-light",palette:["fff","000"],selectionPalette:[],disabled:!1},i=[],s=!!/msie/i.exec(e.navigator.userAgent),o=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div"),n=t.style;n.cssText="background-color:rgba(0,0,0,.5)";return e(n.backgroundColor,"rgba")||e(n.backgroundColor,"hsla")}(),u=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),a=function(){var e="";if(s)for(var t=1;t<=6;t++)e+="<div class='sp-"+t+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",e,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),b="spectrum.id";t.fn.spectrum=function(e,n){if(typeof e=="string"){var r=this,s=Array.prototype.slice.call(arguments,1);this.each(function(){var n=i[t(this).data(b)];if(n){var o=n[e];if(!o)throw new Error("Spectrum: no such method: '"+e+"'");if(e=="get")r=n.get();else if(e=="container")r=n.container;else if(e=="option")r=n.option.apply(n,s);else if(e=="destroy"){n.destroy();t(this).removeData(b)}else o.apply(n,s)}});return r}return this.spectrum("destroy").each(function(){var n=h(this,e);t(this).data(b,n.id)})};t.fn.spectrum.load=!0;t.fn.spectrum.loadOpts={};t.fn.spectrum.draggable=g;t.fn.spectrum.defaults=r;t.spectrum={};t.spectrum.localization={};t.spectrum.palettes={};t.fn.spectrum.processNativeColorInputs=function(){var e=t("<input type='color' value='!' />")[0],n=e.type==="color"&&e.value!="!";n||t("input[type=color]").spectrum({preferredFormat:"hex6"})};(function(e){function l(e,t){if(typeof e=="object"&&e.hasOwnProperty("_tc_id"))return e;var n=c(e),i=n.r,o=n.g,u=n.b,a=f(n.a),h=n.format;return{ok:n.ok,format:h,_tc_id:r++,alpha:a,toHsv:function(){var e=v(i,o,u);return{h:e.h,s:e.s,v:e.v,a:a}},toHsvString:function(){var e=v(i,o,u),t=s(e.h*360),n=s(e.s*100),r=s(e.v*100);return a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+a+")"},toHsl:function(){var e=p(i,o,u);return{h:e.h,s:e.s,l:e.l,a:a}},toHslString:function(){var e=p(i,o,u),t=s(e.h*360),n=s(e.s*100),r=s(e.l*100);return a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+a+")"},toHex:function(){return g(i,o,u)},toHexString:function(e){return"#"+g(i,o,u,e)},toRgb:function(){return{r:s(i),g:s(o),b:s(u),a:a}},toRgbString:function(){return a==1?"rgb("+s(i)+", "+s(o)+", "+s(u)+")":"rgba("+s(i)+", "+s(o)+", "+s(u)+", "+a+")"},toName:function(){return b[g(i,o,u)]||!1},toFilter:function(e,t){var n=g(i,o,u,!0),r=n,s=Math.round(f(a)*255).toString(16),c=s,h=e&&e.gradientType?"GradientType = 1, ":"";if(t){var p=l(t);r=p.toHex();c=Math.round(f(p.alpha)*255).toString(16)}return"progid:DXImageTransform.Microsoft.gradient("+h+"startColorstr=#"+C(s)+n+",endColorstr=#"+C(c)+r+")"},toString:function(e){e=e||this.format;var t=!1;e==="rgb"&&(t=this.toRgbString());e==="hex"&&(t=this.toHexString());e==="hex6"&&(t=this.toHexString(!0));e==="name"&&(t=this.toName());e==="hsl"&&(t=this.toHslString());e==="hsv"&&(t=this.toHsvString());return t||this.toHexString(!0)}}}function c(e){var t={r:0,g:0,b:0},n=1,r=!1,i=!1;typeof e=="string"&&(e=L(e));if(typeof e=="object"){if(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")){t=h(e.r,e.g,e.b);r=!0;i="rgb"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")){t=m(e.h,e.s,e.v);r=!0;i="hsv"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")){t=d(e.h,e.s,e.l);r=!0;i="hsl"}e.hasOwnProperty("a")&&(n=e.a)}t.r=o(255,u(t.r,0));t.g=o(255,u(t.g,0));t.b=o(255,u(t.b,0));t.r<1&&(t.r=s(t.r));t.g<1&&(t.g=s(t.g));t.b<1&&(t.b=s(t.b));return{ok:r,format:e&&e.format||i,r:t.r,g:t.g,b:t.b,a:n}}function h(e,t,n){return{r:E(e,255)*255,g:E(t,255)*255,b:E(n,255)*255}}function p(e,t,n){e=E(e,255);t=E(t,255);n=E(n,255);var r=u(e,t,n),i=o(e,t,n),s,a,f=(r+i)/2;if(r==i)s=a=0;else{var l=r-i;a=f>.5?l/(2-r-i):l/(r+i);switch(r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4}s/=6}return{h:s,s:a,l:f}}function d(e,t,n){function o(e,t,n){n<0&&(n+=1);n>1&&(n-=1);return n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var r,i,s;e=E(e,360);t=E(t,100);n=E(n,100);if(t===0)r=i=s=n;else{var u=n<.5?n*(1+t):n+t-n*t,a=2*n-u;r=o(a,u,e+1/3);i=o(a,u,e);s=o(a,u,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function v(e,t,n){e=E(e,255);t=E(t,255);n=E(n,255);var r=u(e,t,n),i=o(e,t,n),s,a,f=r,l=r-i;a=r===0?0:l/r;if(r==i)s=0;else{switch(r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4}s/=6}return{h:s,s:a,v:f}}function m(e,t,n){e=E(e,360)*6;t=E(t,100);n=E(n,100);var r=i.floor(e),s=e-r,o=n*(1-t),u=n*(1-s*t),a=n*(1-(1-s)*t),f=r%6,l=[n,u,o,o,a,n][f],c=[a,n,n,u,o,o][f],h=[o,o,a,n,n,u][f];return{r:l*255,g:c*255,b:h*255}}function g(e,t,n,r){var i=[C(s(e).toString(16)),C(s(t).toString(16)),C(s(n).toString(16))];return!r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function w(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function E(e,t){T(e)&&(e="100%");var n=N(e);e=o(t,u(0,f(e)));n&&(e*=t/100);return i.abs(e-t)<1e-6?1:e>=1?e%t/f(t):e}function S(e){return o(1,u(0,e))}function x(e){return parseInt(e,16)}function T(e){return typeof e=="string"&&e.indexOf(".")!=-1&&f(e)===1}function N(e){return typeof e=="string"&&e.indexOf("%")!=-1}function C(e){return e.length==1?"0"+e:""+e}function L(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r=!1;if(y[e]){e=y[e];r=!0}else if(e=="transparent")return{r:0,g:0,b:0,a:0};var i;return(i=k.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=k.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=k.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=k.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=k.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=k.hex6.exec(e))?{r:x(i[1]),g:x(i[2]),b:x(i[3]),format:r?"name":"hex"}:(i=k.hex3.exec(e))?{r:x(i[1]+""+i[1]),g:x(i[2]+""+i[2]),b:x(i[3]+""+i[3]),format:r?"name":"hex"}:!1}var t=/^[\s,#]+/,n=/\s+$/,r=0,i=Math,s=i.round,o=i.min,u=i.max,a=i.random,f=e.parseFloat;l.fromRatio=function(e){if(typeof e=="object")for(var t in e)e[t]===1&&(e[t]="1.0");return l(e)};l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()};l.random=function(){return l.fromRatio({r:a(),g:a(),b:a()})};l.desaturate=function(e,t){var n=l(e).toHsl();n.s-=(t||10)/100;n.s=S(n.s);return l(n)};l.saturate=function(e,t){var n=l(e).toHsl();n.s+=(t||10)/100;n.s=S(n.s);return l(n)};l.greyscale=function(e){return l.desaturate(e,100)};l.lighten=function(e,t){var n=l(e).toHsl();n.l+=(t||10)/100;n.l=S(n.l);return l(n)};l.darken=function(e,t){var n=l(e).toHsl();n.l-=(t||10)/100;n.l=S(n.l);return l(n)};l.complement=function(e){var t=l(e).toHsl();t.h=(t.h+.5)%1;return l(t)};l.triad=function(e){var t=l(e).toHsl(),n=t.h*360;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]};l.tetrad=function(e){var t=l(e).toHsl(),n=t.h*360;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]};l.splitcomplement=function(e){var t=l(e).toHsl(),n=t.h*360;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]};l.analogous=function(e,t,n){t=t||6;n=n||30;var r=l(e).toHsl(),i=360/n,s=[l(e)];r.h*=360;for(r.h=(r.h-(i*t>>1)+720)%360;--t;){r.h=(r.h+i)%360;s.push(l(r))}return s};l.monochromatic=function(e,t){t=t||6;var n=l(e).toHsv(),r=n.h,i=n.s,s=n.v,o=[],u=1/t;while(t--){o.push(l({h:r,s:i,v:s}));s=(s+u)%1}return o};l.readable=function(e,t){var n=l(e).toRgb(),r=l(t).toRgb();return(r.r-n.r)*(r.r-n.r)+(r.g-n.g)*(r.g-n.g)+(r.b-n.b)*(r.b-n.b)>10404};var y=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod
:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},b=l.hexNames=w(y),k=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();e.tinycolor=l})(this);t(function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()})})(window,jQuery);FP.Views.Viewer.Main=Backbone.View.extend({el:"body.view",events:{"change .goto":"goto","change .font-size input":"changeFontSize","change input.text-color":"changeTextColor","change input.background-color":"changeBackgroundColor"},initialize:function(){if(this.$el.length==0)return;this.currentFontID=FP.currentFontID;this.$text=this.$el.find("p.text");this.$fontSizeIndicator=this.$el.find(".font-size .indicator")},stylizeText:function(){if(!this.currentFontID)return;$("head").append("<link rel='stylesheet' type='text/css' href='/font/css?id="+this.currentFontID+"&raw=1' />")},"goto":function(e){var t=$(e.target).val();window.location=FP.Routes.viewer+"/"+t},changeFontSize:function(e){var t=$(e.target),n=parseInt(t.val());n=n||16;this.$fontSizeIndicator.text(n+"px");this.$text.css({"font-size":n,"line-height":n+10+"px"})},changeTextColor:function(e){var t=$(e.target);this.$text.css({color:t.val()})},changeBackgroundColor:function(e){var t=$(e.target);this.$el.css({background:t.val()})}});FP.TemplateFetcher=function(){this.templatePath="/templates/";this.templates={};_.templateSettings.interpolate=/\{\{(.+?)\}\}/g;_.templateSettings.escape=/\{\{\{([\s\S]+?)\}\}\}/g,_.templateSettings.evaluate=/\{\%([\s\S]+?)\%\}/g,this.ajaxTemplate=function(e){var t="";$.ajax({url:this.templatePath+e+".jst?"+(new Date).getTime(),async:!1,success:function(e){t=e},error:function(t){console.log("Error loading template: "+e)}});return t};this.getTemplate=function(e,t){t=t||{};if(this.templates.hasOwnProperty(e))return this.templates[e](t);var n=this.ajaxTemplate(e);this.templates[e]=_.template(n);return this.templates[e](t)}};$(document).ready(function(){FP.Instances={};FP.Instances.Viewer=new FP.Views.Viewer.Main});