diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 4e2ced8b..e0b49b62 100644 --- a/dist/jquery.qtip.css +++ b/dist/jquery.qtip.css @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Nov 30 19:05:05 2010 +0000 +* Date: Tue Nov 30 19:06:56 2010 +0000 */ .ui-tooltip-accessible{ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index f0bd7f41..36d7bb45 100644 --- a/dist/jquery.qtip.js +++ b/dist/jquery.qtip.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Nov 30 19:05:05 2010 +0000 +* Date: Tue Nov 30 19:06:56 2010 +0000 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -1154,12 +1154,6 @@ function QTip(target, options, id) if(callback.isDefaultPrevented()){ return self; } delete position.adjusted; - // Make sure the tooltip doesn't extend the top/left window boundaries - if(posOptions.container[0] == document.body) { - if(position.top + viewport.scrollTop < 1) { position.top = 0; } - if(position.left + viewport.scrollLeft < 1) { position.left = 0; } - } - // Use custom function if provided if(tooltip.is(':visible') && $.isFunction(posOptions.effect)) { posOptions.effect.call(tooltip, self.hash(), position); @@ -1724,8 +1718,7 @@ function Tip(qTip, command) }, color = { }, border = opts.border || 0, - method = opts.method || FALSE, - adjust = { x: 0, y: 0 }; + method = opts.method || FALSE; self.corner = NULL; self.mimic = NULL; @@ -1764,26 +1757,27 @@ function Tip(qTip, command) var tip = elems.tip, corners = ['left', 'right'], offset = opts.offset, - precedance, - oppositeP; + precedance, precedanceOp; // Return if tips are disabled or tip is not yet rendered if(opts.corner === FALSE || !tip) { return FALSE; } // Inherit corner if not provided corner = corner || self.corner; - precedance = corner.precedance; - oppositeP = precedance === 'y' ? 'x' : 'y'; - // Reet initial position - tip.css({ top: '', bottom: '', left: '', right: '', margin: '' }); + // Cache precedances + precedance = corner.precedance; + precedanceOp = precedance === 'y' ? 'x' : 'y'; // Setup corners to be adjusted corners[ precedance === 'y' ? 'push' : 'unshift' ]('top', 'bottom'); // Calculate offset adjustments - offset = Math.max(corner[ oppositeP ] === 'center' ? offset : 0, offset) - adjust[ oppositeP ]; + offset = Math.max(corner[ precedanceOp ] === 'center' ? offset : 0, offset); + // Reet initial position + tip.css({ top: '', bottom: '', left: '', right: '', margin: '' }); + // Adjust primary corners switch(corner[ precedance === 'y' ? 'x' : 'y' ]) { @@ -1834,17 +1828,10 @@ function Tip(qTip, command) pos[ precedance[1] ] += (newCorner[ precedance[0] ] === precedance[1] ? 1 : -1) * (size[ precedance[3] ] - offset[0]); pos[ precedance[2] ] -= (newCorner[ precedance[4] ] === precedance[2] || newCorner[ precedance[4] ] === 'center' ? 1 : -1) * offset[1]; - // Account for overflow by modifying tip - adjust.x = Math.max(-pos.left - viewport.scrollLeft(), 0); - adjust.y = Math.max(-pos.top - viewport.scrollTop(), 0); - // Update and redraw the tip if needed if(newCorner.string() !== cache.corner.string() && (cache.top !== adjusted.top || cache.left !== adjusted.left)) { self.update(newCorner); } - else if(Math.max(adjust.x, adjust.y, 0)) { - position(); - } // Cache overflow details cache.left = adjusted.left; @@ -1993,7 +1980,7 @@ function Tip(qTip, command) else if(mimic.x === mimic.y) { mimic[ corner.precedance ] = corner[ corner.precedance ]; } - + // Determine what type of rounding to use so we get pixel perfect precision! round = Math[ /b|r/.test(mimic[ mimic.precedance === 'y' ? 'x' : 'y' ]) ? 'ceil' : 'floor' ]; diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 8f531dab..24c5e3d6 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Tue Nov 30 19:05:05 2010 +0000 +* Date: Tue Nov 30 19:06:56 2010 +0000 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -17,68 +17,67 @@ /*global window: false, jQuery: false */ var TRUE=true,FALSE=false,NULL=null; -(function(a,G,K){function L(c,d){var g,h=a();if(!c)return FALSE;try{if("metadata"in c&&"object"!==typeof c.metadata)c.metadata={type:c.metadata};if("content"in c){if("object"!==typeof c.content||c.content.jquery)c.content={text:c.content};g=c.content.text||FALSE;if(!a.isFunction(g)&&(!g&&!g.attr||g.length<1||"object"===typeof g&&!g.jquery))g=c.content.text=FALSE;if("title"in c.content&&"object"!==typeof c.content.title)c.content.title={text:c.content.title}}if("position"in c){if("object"!==typeof c.position)c.position= -{my:c.position,at:c.position};if("object"!==typeof c.position.adjust)c.position.adjust={};if("undefined"!==typeof c.position.adjust.screen)c.position.adjust.screen=!!c.position.adjust.screen}if("show"in c){if("object"!==typeof c.show)c.show={event:c.show};if("object"!==typeof c.show)c.show=c.show.jquery?{target:c.show}:{event:c.show}}if("hide"in c)if("object"!==typeof c.hide)c.hide=c.hide.jquery?{target:c.hide}:{event:c.hide};if("style"in c&&"object"!==typeof c.style)c.style={classes:c.style}}catch(o){}if(a.isFunction(g)){c.content.text= -[];d.each(function(){var m=g.call(this);if(m){c.content.text.push(m);h=h.add(a(this))}})}else h=d;a.each(a.fn.qtip.plugins,function(){this.sanitize&&this.sanitize(c)});return d?h:c}function O(c,d,g){function h(b){var f,j=b.split("."),k=d[j[0]];for(b=1;b",{html:f}):a("",{"class":"ui-state-default",text:"Close tooltip",title:"Close tooltip",css:{"text-indent":"-10000em"}}).prepend(a("",{"class":"ui-icon ui-icon-close"}));b.button.prependTo(b.titlebar).attr("role","button").addClass(B+"-"+(f===TRUE?"close":"button")).hover(function(j){a(this).toggleClass("ui-state-hover",j.type==="mouseenter")}).click(function(){b.tooltip.hasClass("ui-state-disabled")||e.hide(); -return FALSE}).bind("mousedown keydown mouseup keyup mouseout",function(j){a(this).toggleClass("ui-state-active ui-state-focus",/down$/i.test(j.type))})}function q(){var b=e.elements;b.titlebar&&t();b.titlebar=a("
",{"class":B+"-titlebar "+(d.style.widget?"ui-widget-header":"")}).append(b.title=a("
",{id:B+"-"+g+"-title","class":B+"-title",html:d.content.title.text})).prependTo(b.wrapper);d.content.title.button&&s()}function u(b){var f=e.elements;if(!e.rendered||!b)return FALSE;if(a.isFunction(b))b= -b.call(c);b.jquery&&b.length>0?f.content.empty().append(b.css({display:"block"})):f.content.html(b);f.tooltip.queue("fx",function(j){function k(l){i=i.not(l);if(i.length===0){l=void 0;var r=e.elements.tooltip,x,w;if(e.rendered&&a.browser.msie&&parseInt(a.browser.version.charAt(0),10)<9){r.css({width:"auto",maxWidth:"none"});l=m("dimensions").width;r.css({maxWidth:""});x=parseInt(r.css("max-width"),10)||0;w=parseInt(r.css("min-width"),10)||0;l=x+w?Math.min(Math.max(l,w),x):l;r.width(l)}e.rendered=== -TRUE&&e.reposition(e.cache.event);j()}}var i=a("img:not([height]):not([width])",e.elements.content);i.each(function(l,r){var x=["abort","error","load","unload",""].join(".qtip-image ");a(this).bind(x,function(){clearTimeout(e.timers.img[l]);k(this)});(function w(){if(r.height)return k(r);e.timers.img[l]=setTimeout(w,20)})();return TRUE});i.length===0&&k(i)});return e}function y(b,f,j,k){function i(D){if(p.tooltip.hasClass("ui-state-disabled"))return FALSE;p.show.trigger("qtip-"+g+"-inactive");clearTimeout(e.timers.show); -clearTimeout(e.timers.hide);var v=function(){e.show(D)};if(d.show.delay>0)e.timers.show=setTimeout(v,d.show.delay);else v()}function l(D){if(p.tooltip.hasClass("ui-state-disabled"))return FALSE;var v=a(D.relatedTarget||D.target).parents(n)[0]==p.tooltip[0];clearTimeout(e.timers.show);clearTimeout(e.timers.hide);if(d.hide.fixed&&(d.position.target==="mouse"&&v||/mouse(out|leave|move)/.test(D.type)&&v)){D.stopPropagation();D.preventDefault();return FALSE}p.tooltip.stop(TRUE);if(d.hide.delay>0)e.timers.hide= -setTimeout(function(){e.hide(D)},d.hide.delay);else e.hide(D)}function r(D){if(p.tooltip.hasClass("ui-state-disabled"))return FALSE;clearTimeout(e.timers.inactive);e.timers.inactive=setTimeout(function(){e.hide(D)},d.hide.inactive)}function x(D){e.elements.tooltip.is(":visible")&&e.reposition(D)}var w=".qtip-"+g,p={show:d.show.target,hide:d.hide.target,tooltip:e.elements.tooltip},C={show:String(d.show.event).split(" "),hide:String(d.hide.event).split(" ")},E=a.browser.msie&&/^6\.[0-9]/.test(a.browser.version); -c.bind("remove.qtip",function(){e.destroy()});if(j&&d.hide.fixed){p.hide=p.hide.add(p.tooltip);p.tooltip.bind("mouseover"+w,function(){p.tooltip.hasClass("ui-state-disabled")||clearTimeout(e.timers.hide)})}if(f){if("number"===typeof d.hide.inactive){p.show.bind("qtip-"+g+"-inactive",r);a.each(a.fn.qtip.inactiveEvents,function(D,v){p.hide.add(e.elements.tooltip).bind(v+w+"-inactive",r)})}a.each(C.hide,function(D,v){var z=a.inArray(v,C.show);if(z>-1&&a(p.hide).add(p.show).length===a(p.hide).length|| -v==="unfocus"){p.show.bind(v+w,function(F){p.tooltip.is(":visible")?l(F):i(F)});delete C.show[z]}else p.hide.bind(v+w,l)})}if(b){a.each(C.show,function(D,v){p.show.bind(v+w,i)});p.tooltip.bind("mouseover"+w,function(){e.focus()})}if(k){if(d.position.adjust.resize||d.position.adjust.screen)a(G).bind("resize"+w,x);if(d.position.adjust.screen||E&&p.tooltip.css("position")==="fixed")a(document).bind("scroll"+w,x);/unfocus/i.test(d.hide.event)&&a(document).bind("mousedown"+w,function(D){var v=e.elements.tooltip; -a(D.target).parents(n).length===0&&a(D.target).add(c).length>1&&v.is(":visible")&&!v.hasClass("ui-state-disabled")&&e.hide()});d.position.target==="mouse"&&a(document).bind("mousemove"+w,function(D){if(d.position.adjust.mouse&&!p.tooltip.hasClass("ui-state-disabled")&&p.tooltip.is(":visible"))e.reposition(D||a.fn.qtip.mouse)})}}function A(b,f,j,k){k=parseInt(k,10)!==0;var i=".qtip-"+g,l={show:b?d.show.target:a("
"),hide:f?d.hide.target:a("
"),tooltip:j?e.elements.tooltip:a("
")};f= -{show:String(d.show.event).split(" "),hide:String(d.hide.event).split(" ")};if(e.rendered){a.each(f.show,function(r,x){l.show.unbind(x+i)});l.show.unbind("mousemove"+i).unbind("mouseout"+i).unbind("qtip-"+g+"-inactive");a.each(f.hide,function(r,x){l.hide.add(l.tooltip).unbind(x+i)});a.each(a.fn.qtip.inactiveEvents,function(r,x){l.hide.add(j?e.elements.content:NULL).unbind(x+i+"-inactive")});l.hide.unbind("mouseout"+i);l.tooltip.unbind("mouseover"+i);if(k){a(G).unbind("resize"+i);a(document).unbind("mousedown"+ -i+" mousemove"+i)}}else b&&l.show.unbind(f.show+i+"-create")}var e=this,B="ui-tooltip",n=".qtip."+B;e.id=g;e.rendered=FALSE;e.elements={target:c};e.cache={event:{},target:NULL,disabled:FALSE};e.timers={img:[]};e.options=d;e.plugins={};a.extend(e,{render:function(b){var f=e.elements,j=a.Event("tooltiprender");if(e.rendered)return FALSE;e.rendered=b?-2:-1;f.tooltip=a("
").attr({id:B+"-"+g,role:"tooltip","class":B+" qtip ui-tooltip-accessible ui-helper-reset "+d.style.classes}).css("z-index",a.fn.qtip.zindex+ -a(n).length).toggleClass("ui-widget",d.style.widget).toggleClass("ui-state-disabled",e.cache.disabled).data("qtip",e).appendTo(d.position.container);f.wrapper=a("
",{"class":B+"-wrapper"}).appendTo(f.tooltip);f.content=a("
",{"class":B+"-content "+(d.style.widget?"ui-widget-content":""),id:B+"-"+g+"-content"}).appendTo(f.wrapper);u(d.content.text);d.content.title.text&&q();a.each(a.fn.qtip.plugins,function(){this.initialize==="render"&&this(e)});e.rendered=TRUE;y(1,1,1,1);a.each(d.events, -function(k,i){f.tooltip.bind("tooltip"+k,i)});f.tooltip.queue("fx",function(k){if(d.show.ready||b){f.tooltip.hide();e.show(e.cache.event)}f.tooltip.removeClass("ui-tooltip-accessible");j.originalEvent=a.extend({},e.cache.event);f.tooltip.trigger(j,[e.hash()]);k()});return e},get:function(b){switch(b.toLowerCase()){case "offset":b=m("position");break;case "dimensions":b=m("dimensions");break;default:b=h(b.toLowerCase());b=b[0].precedance?b[0].string():b[0].jquery?b[0]:b[0][b[1]];break}return b},set:function(b, -f){b=b.toLowerCase();var j=h(b),k=e.elements,i=k.tooltip,l,r,x,w={builtin:{id:function(){var p=f===TRUE?a.fn.qtip.nextid:f,C=B+"-"+p;if(p!==FALSE&&p.length>0&&!a("#ui-tooltip-"+p).length){i[0].id=C;k.content[0].id=C+"-content";k.title[0].id=C+"-title"}},"^content.text":function(){u(f)},"^content.title.text":function(){if(e.rendered)if(!e.elements.title&&f){q();e.reposition()}else f?e.elements.title.html(f):t()},"^content.title.button":function(){var p=e.elements.button,C=e.elements.title;if(e.rendered)if(f){C|| -q();s()}else p.remove()},"^position.(my|at)$":function(){var p=/my$/i.test(b)?"my":"at";if("string"===typeof f)d.position[p]=new a.fn.qtip.plugins.Corner(f)},"^position.(my|at|adjust|target)":function(){e.rendered&&e.reposition()},"^position.container$":function(){if(e.rendered===TRUE){i.appendTo(f);e.reposition()}},"^(show|hide).(event|target|fixed|delay|inactive)":function(p,C,E,D){var v=b.search(/fixed/i)>-1?[0,[0,1,1,1]]:[b.substr(0,3),b.charAt(0)==="s"?[1,0,0,0]:[0,1,0,0]];if(v[0])p[C]=D;A.apply(e, -v[1]);if(v[0])p[C]=E;y.apply(e,v[1])},"^show.ready$":function(){e.rendered===FALSE&&e.show()},"^style.classes$":function(){e.elements.tooltip.css("class",B+" qtip ui-helper-reset "+f)},"^style.widget$":function(){i.toggleClass("ui-widget",!!f);k.titlebar.toggleClass("ui-widget-header",!!f);k.content.toggleClass("ui-widget-content",!!f)},"^events.(render|show|move|hide|focus|blur)":function(p,C,E,D){a.isFunction(f)?k.tooltip.bind("tooltip"+C,E):k.tooltip.unbind("tooltip"+C,D)}}};a.each(e.plugins,function(p){if("object"=== -typeof this.checks)w[p]=this.checks});l=j[0][j[1]];j[0][j[1]]=f.nodeType?a(f):f;L(d,c);for(r in w)for(x in w[r])RegExp(x,"i").test(b)&&w[r][x].call(e,j[0],j[1],f,l);return e},toggle:function(b,f){function j(){var w=a(this),p=b?"attr":"removeAttr",C=/^1|0$/.test(w.css("opacity"));e.elements.title&&c[p]("aria-labelledby",B+"-"+g+"-title");c[p]("aria-describedby",B+"-"+g+"-content");if(b){if(a.browser.msie&&this.style&&C){x=this.style;x.removeAttribute("filter");x.removeAttribute("opacity")}}else C&& -w.hide()}if(e.rendered===FALSE)return FALSE;var k=b?"show":"hide",i=e.elements.tooltip,l=d[k],r=i.is(":visible"),x;if((typeof b).search("boolean|number"))b=!i.is(":visible");if(!r&&!b||i.is(":animated"))return e;if(f){if(e.cache.event&&/over|enter/.test(f.type)&&/out|leave/.test(e.cache.event.type)&&a(f.target).add(d.show.target).length<2&&a(f.relatedTarget).parents(n).length>0)return e;e.cache.event=a.extend({},f)}r=a.Event("tooltip"+k);r.originalEvent=a.extend({},f);i.trigger(r,[e.hash(),90]);if(r.isDefaultPrevented())return e; -if(b){e.focus();e.reposition(f);l.solo&&a(n).qtip("hide")}else clearTimeout(e.timers.show);i.attr("aria-hidden",Boolean(!b));i.stop(TRUE,FALSE);if(a.isFunction(l.effect)){l.effect.call(i,e.hash());i.queue(function(){j.call(this);a(this).dequeue()})}else if(l.effect===FALSE){i[k]();j.call(i)}else i.fadeTo(90,b?1:0,j);b&&l.target.trigger("qtip-"+g+"-inactive");return e},show:function(b){e.toggle(TRUE,b)},hide:function(b){e.toggle(FALSE,b)},focus:function(b){if(e.rendered===false)return FALSE;var f= -e.elements.tooltip,j=a(n),k=parseInt(f.css("z-index"),10),i=a.fn.qtip.zindex+j.length,l=B+"-focus",r=a.extend({},b);if(!f.hasClass(l)&&k!==i){j.css("z-index",function(x,w){return w-1});a(n+"."+l).each(function(){var x=a(this),w=x.qtip(),p;if(!w||w.rendered===FALSE)return TRUE;x.removeClass(l);p=a.Event("tooltipblur");p.originalEvent=r;x.trigger(p,[w,i])});b=a.Event("tooltipfocus");b.originalEvent=r;f.trigger(b,[e.hash(),i]);b.isDefaultPrevented()||f.css({zIndex:i}).addClass(l)}return e},reposition:function(b){if(e.rendered=== -FALSE)return FALSE;var f=d.position.target,j=e.elements.tooltip,k=d.position,i=k.my,l=k.at,r=e.elements.tooltip.width(),x=e.elements.tooltip.height(),w=a(k.container)[0],p=0,C=0,E=a.Event("tooltipmove"),D=j.css("position")==="fixed",v=a(k.adjust.container&&w!==document.body?w:G),z={left:0,top:0};w={left:function(F){var H=v.scrollTop,I=i.x==="left"?r:i.x==="right"?-r:-r/2,J=-2*k.adjust.x,M=F+r-v.width-H;if(H-F>0)z.left-=I+J;else if(M>0)z.left-=(i.x==="center"?-1:1)*(I+J);return z.left-F},top:function(F){var H= -v.scrollTop,I=i.y==="top"?x:i.y==="bottom"?-x:-x/2,J=-2*k.adjust.y,M=F+x-v.height-H;if(H-F>0)z.top-=I+J;else if(M>0)z.top-=(i.y==="center"?-1:1)*(I+J);return z.top-F}};v={elem:v,height:v[(v[0]===G?"h":"outerH")+"eight"](),width:v[(v[0]===G?"w":"outerW")+"idth"](),scrollLeft:v.scrollLeft(),scrollTop:v.scrollTop()};if(f==="mouse"){l={x:"left",y:"top"};b=k.adjust.mouse||!b||!b.pageX?a.extend({},a.fn.qtip.mouse):b;z={top:b.pageY,left:b.pageX}}else{if(f==="event")f=b&&b.target&&b.type!=="scroll"&&b.type!== -"resize"?e.cache.target=a(b.target):e.cache.target;f=a(f).eq(0);if(f.length===0)return e;else if(f[0]===document||f[0]===G){p=f.width();C=f.height();if(f[0]===G)z={top:D?0:v.scrollTop,left:D?0:v.scrollLeft}}else if(f.is("area")&&a.fn.qtip.plugins.imagemap){z=a.fn.qtip.plugins.imagemap(f,l);p=z.width;C=z.height;z=z.offset}else{p=f.outerWidth();C=f.outerHeight();z=o(f)}z.left+=l.x==="right"?p:l.x==="center"?p/2:0;z.top+=l.y==="bottom"?C:l.y==="center"?C/2:0}z.left+=k.adjust.x+(i.x==="right"?-r:i.x=== -"center"?-r/2:0);z.top+=k.adjust.y+(i.y==="bottom"?-x:i.y==="center"?-x/2:0);z.adjusted=k.adjust.screen&&f[0]!==G&&f[0]!==document.body?{left:w.left(z.left),top:w.top(z.top)}:{left:0,top:0};j.attr("class",function(){return a(this).attr("class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(B+"-pos-"+i.abbreviation());E.originalEvent=a.extend({},b);j.trigger(E,[e.hash(),z,v.elem]);if(E.isDefaultPrevented())return e;delete z.adjusted;if(k.container[0]==document.body){if(z.top+v.scrollTop<1)z.top=0;if(z.left+ -v.scrollLeft<1)z.left=0}if(j.is(":visible")&&a.isFunction(k.effect)){k.effect.call(j,e.hash(),z);j.queue(function(){var F=a(this);F.css({opacity:"",height:""});a.browser.msie&&this.style&&this.style.removeAttribute("filter");F.dequeue()})}else isNaN(z.left,z.top)||j.css(z);return e},disable:function(b){var f=e.elements.tooltip;if(e.rendered)f.toggleClass("ui-state-disabled",b);else e.cache.disabled=!!b;return e},destroy:function(){var b=e.elements,f=b.target.data("oldtitle");e.rendered&&a.each(e.plugins, -function(){this.initialize==="render"&&this.destroy()});A(1,1,1,1);c.removeData("qtip");e.rendered&&b.tooltip.remove();f&&c.attr("title",f);c.removeAttr("aria-describedby");return c},hash:function(){var b=a.extend({},e);delete b.cache;delete b.timers;delete b.options;delete b.plugins;delete b.render;delete b.hash;return b}})}function P(c,d){var g,h=a(this);g=a(document.body);var o=h.metadata?h.metadata(d.metadata):{};o=a.extend(TRUE,{},d,L(a.extend(TRUE,{},(o&&d.metadata.type==="html5"?o[d.metadata.name]: -{})||o)));var m=o.position,t=this===document?g:h;h.removeData("metadata");if("boolean"===typeof o.content.text)if(o.content.attr!==FALSE&&h.attr(o.content.attr))o.content.text=h.attr(o.content.attr);else return FALSE;if(m.container===FALSE)m.container=g;if(m.target===FALSE)m.target=t;if(o.show.target===FALSE)o.show.target=t;if(o.hide.target===FALSE)o.hide.target=t;m.at=new a.fn.qtip.plugins.Corner(m.at);m.my=new a.fn.qtip.plugins.Corner(m.my);if(h.data("qtip"))if(o.overwrite)h.qtip("destroy");else if(o.overwrite=== -FALSE)return FALSE;g=new O(h,o,c);h.data("qtip",g);return g}function Q(c){var d=this;d.checks={"^content.ajax":function(){this.plugins.ajax.load(this.options.content.ajax)}};a.extend(d,{init:function(){var g=c.options.content.ajax;c.elements.tooltip.bind("tooltiprender.ajax",function(){d.load(g);c.elements.tooltip.bind("tooltipshow.ajax",function(){g.once===FALSE&&c.rendered===TRUE&&d.load(g)})})},load:function(g){a.ajax(a.extend(TRUE,{},g,{success:function(h,o){if(a.isFunction(g.success))if(g.success.call(c.hash(), -h,o)===FALSE)return;c.set("content.text",h)},error:function(h,o,m){var t=o||m;if(a.isFunction(g.error)){h=g.error.call(c.hash(),h,o,m);if(h===FALSE)return}c.set("content.text",t)}}));return d},destroy:function(){c.elements.tooltip.unbind("tooltipshow.ajax")}});d.init()}function N(c,d,g){var h=Math.floor(d/2),o=Math.floor(g/2);d={bottomright:[[0,0],[d,g],[d,0]],bottomleft:[[0,0],[d,0],[0,g]],topright:[[0,g],[d,0],[d,g]],topleft:[[0,0],[0,g],[d,g]],topcenter:[[0,g],[h,0],[d,g]],bottomcenter:[[0,0], -[d,0],[h,g]],rightcenter:[[0,0],[d,o],[0,g]],leftcenter:[[d,0],[d,g],[0,o]]};d.lefttop=d.bottomright;d.righttop=d.bottomleft;d.leftbottom=d.topright;d.rightbottom=d.topleft;return d[c]}function R(c){function d(n){var b=m.tip,f=["left","right"],j=o.offset,k,i;if(o.corner===FALSE||!b)return FALSE;n=n||h.corner;k=n.precedance;i=k==="y"?"x":"y";b.css({top:"",bottom:"",left:"",right:"",margin:""});f[k==="y"?"push":"unshift"]("top","bottom");j=Math.max(n[i]==="center"?j:0,j)-B[i];switch(n[k==="y"?"x":"y"]){case "center":b.css(f[0], -"50%").css("margin-"+f[0],-(u[k==="y"?"width":"height"]/2)+j);break;case f[0]:b.css(f[0],j);break;case f[1]:b.css(f[1],j);break}j=u[k==="x"?"width":"height"];if(A){t.toggleClass("ui-tooltip-accessible",!t.is(":visible"));j-=parseInt(s.css("border-"+n[k]+"-width"),10)||0;t.removeClass("ui-tooltip-accessible")}b.css(n[k],-j)}function g(n,b,f,j){if(m.tip){n=a.extend({},h.corner);b=n.precedance==="y"?["y","top","left","height","x"]:["x","left","top","width","y"];var k=f.adjusted,i=[parseInt(s.css("border-"+ -n[b[0]]+"-width"),10)||0,0];if(k.left)n.x=n.x==="center"?k.left>0?"left":"right":n.x==="left"?"right":"left";if(k.top)n.y=n.y==="center"?k.top>0?"top":"bottom":n.y==="top"?"bottom":"top";i[1]=Math.max(n[b[4]]==="center"?o.offset:0,o.offset);f[b[1]]+=(n[b[0]]===b[1]?1:-1)*(u[b[3]]-i[0]);f[b[2]]-=(n[b[4]]===b[2]||n[b[4]]==="center"?1:-1)*i[1];B.x=Math.max(-f.left-j.scrollLeft(),0);B.y=Math.max(-f.top-j.scrollTop(),0);if(n.string()!==q.corner.string()&&(q.top!==k.top||q.left!==k.left))h.update(n);else Math.max(B.x, -B.y,0)&&d();q.left=k.left;q.top=k.top;q.corner=n}}var h=this,o=c.options.style.tip,m=c.elements,t=m.tooltip,s=m.wrapper,q={top:0,left:0,corner:{string:function(){}}},u={width:o.width,height:o.height},y={},A=o.border||0,e=o.method||FALSE,B={x:0,y:0};h.corner=NULL;h.mimic=NULL;h.checks={"^position.my|style.tip.(corner|mimic|method|border)":function(){A=o.border;if(h.init())this.get("position.target")!=="mouse"&&this.reposition();else h.destroy()},"^style.tip.(height|width)":function(){u={width:o.width, -height:o.height};h.create();h.update();c.reposition()}};a.extend(h,{init:function(){var n=a.browser.msie,b=h.mimic&&/center/i.test(h.mimic.string()),f=h.detectCorner();if(f){if(e===TRUE)e=a("")[0].getContext?"canvas":n&&(b||u.height!==u.width)?"vml":"polygon";else if(e==="canvas")e=n?"vml":!a("")[0].getContext?"polygon":"canvas";else if(e==="polygon")e=n&&b?"vml":e;h.create();h.detectColours();h.update();t.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",g)}return f},detectCorner:function(){var n= -o.corner,b=o.mimic||n,f=c.options.position.at,j=c.options.position.my;if(j.string)j=j.string();if(n===FALSE||j===FALSE&&f===FALSE)return FALSE;else{if(n===TRUE)h.corner=new a.fn.qtip.plugins.Corner(j);else if(!n.string)h.corner=new a.fn.qtip.plugins.Corner(n);if(b===TRUE)h.mimic=new a.fn.qtip.plugins.Corner(j);else if(!b.string){h.mimic=new a.fn.qtip.plugins.Corner(b);h.mimic.precedance=h.corner.precedance}}return h.corner.string()!=="centercenter"},detectColours:function(){var n=m.tip,b=h.mimic[h.mimic.precedance], -f="border-"+b+"-color";y.fill=n.css("background-color","").css("border","").css("background-color")||"transparent";y.border=n.get(0).style?n.get(0).style["border"+b.charAt(0)+b.substr(1)+"Color"]:n.css(f)||"transparent";if(/rgba?\(0, 0, 0(, 0)?\)|transparent/i.test(y.fill))y.fill=s.css(A?"background-color":f);if(!y.border||/rgba?\(0, 0, 0(, 0)?\)|transparent/i.test(y.border))y.border=s.css(f)||y.fill;a("*",n).add(n).css("background-color","transparent").css("border",0)},create:function(){var n=u.width, -b=u.height;m.tip&&m.tip.remove();m.tip=a('
').toggleClass("ui-widget-content",c.options.style.widget).css(u).prependTo(t);switch(e){case "canvas":m.tip.append('');break;case "vml":m.tip.html('');break;case "polygon":m.tip.append('
').append(A?'
':"");break}return h},update:function(n){var b=m.tip,f=u.width,j=u.height,k=A>0?0:1,i=Math.ceil(A/2+0.5),l=a.extend({},h.mimic),r,x;if(!n)n=h.corner;if(l.x==="inherit")l.x=n.x;else if(l.y==="inherit")l.y=n.y;else if(l.x===l.y)l[n.precedance]=n[n.precedance];x= -Math[/b|r/.test(l[l.precedance==="y"?"x":"y"])?"ceil":"floor"];b=b.children();switch(e){case "canvas":b=b.get(0).getContext("2d");b.restore();b.clearRect(0,0,3E3,3E3);for(r=N(l.string(),f,j);k<2;k++){if(k){b.save();b.translate(x((l.x==="left"?1:l.x==="right"?-1:0)*(A+1)*(l.precedance==="y"?0.5:1)),x((l.y==="top"?1:l.y==="bottom"?-1:0)*(A+1)*(l.precedance==="x"?0.5:1)))}b.beginPath();b.moveTo(r[0][0],r[0][1]);b.lineTo(r[1][0],r[1][1]);b.lineTo(r[2][0],r[2][1]);b.closePath();b.fillStyle=y[k?"fill": -"border"];b.fill()}break;case "vml":r=N(l.string(),f,j);k="m"+r[0][0]+","+r[0][1]+" l"+r[1][0]+","+r[1][1]+" "+r[2][0]+","+r[2][1]+" xe";b.attr({path:k,fillcolor:y.fill});if(A){b.children().attr("color",y.border);if(l.precedance==="y"){b.css("top",(l.y==="top"?1:-1)*(A-2));b.css("left",l.x==="left"?1:-2)}else{b.css("left",(l.x==="left"?1:-1)*(A-2));b.css("top",l.y==="top"?1:-2)}}break;case "polygon":if(l.precedance==="y"){k=f>j?1.5:fj?5:2.2;i=[Math.floor(k*i*(l.x==="right"?-1:1)*(l.y==="center"?0.9:1)),l.y==="top"?i:l.y==="bottom"?-i:0]}b.removeAttr("style").each(function(w){var p={x:l.precedance==="x"?l.x==="left"?"right":"left":l.x,y:l.precedance==="y"?l.y==="top"?"bottom":"top":l.y},C=l.x==="center"?["left","right",p.y,j,f]:["top","bottom",p.x,f,j],E=y[!w&&A?"border":"fill"];w&&a(this).css({position:"absolute","z-index":1,left:i[0],top:i[1]});l.x==="center"||l.y==="center"? -a(this).css("border-"+C[2],C[3]+"px solid "+E).css("border-"+C[0],Math.floor(C[4]/2)+"px dashed transparent").css("border-"+C[1],Math.floor(C[4]/2)+"px dashed transparent"):a(this).css("border-width",Math.floor(j/2)+"px "+Math.floor(f/2)+"px").css("border-"+p.x,Math.floor(f/2)+"px solid "+E).css("border-"+p.y,Math.floor(j/2)+"px solid "+E)});break}d(n);return h},destroy:function(){m.tip&&m.tip.remove();t.unbind(".qtip-tip")}})}function S(c,d){var g=this,h=c.elements,o=h.tooltip;h.overlay=a("#qtip-overlay"); -a.extend(g,{init:function(){o.bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(m,t,s){m=m.type.replace("tooltip","");a.isFunction(d[m])?d[m].call(h.overlay,s,t):g[m](s)});h.overlay.length||g.create();d.blur===TRUE&&h.overlay.bind("click.qtipmodal"+c.id,function(){c.hide.call(c)})},create:function(){h.overlay=a("
",{id:"qtip-overlay",css:{position:"absolute",top:0,left:0,display:"none"}}).appendTo(document.body);a(G).bind("resize.qtipmodal",function(){h.overlay.css({height:Math.max(a(G).height(), -a(document).height()),width:Math.max(a(G).width(),a(document).width())})}).trigger("resize")},toggle:function(m){var t=h.overlay,s=c.options.show.modal.effect,q=m?"show":"hide";t.stop(TRUE,FALSE);if(a.isFunction(s))s.call(t,m);else s===FALSE?t[q]():t.fadeTo(90,m?0.7:0,function(){m||a(this).hide()})},show:function(){g.toggle(TRUE)},hide:function(){g.toggle(FALSE)},destroy:function(){var m=TRUE;a("*").each(function(){var t=a(this).data("qtip");if(t&&t.id!==c.id&&t.options.show.modal)return m=FALSE}); -if(m){h.overlay.remove();a(G).unbind("scroll.qtipmodal resize.qtipmodal")}else h.overlay.unbind("click.qtipmodal"+c.id);o.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});g.init()}function T(c){var d=this,g=c.elements,h=g.tooltip,o=".bgiframe-"+c.id,m="tooltipmove"+o+" tooltipshow"+o;a.extend(d,{init:function(){g.bgiframe=a(''); -g.bgiframe.appendTo(h);h.bind(m,d.adjust)},adjust:function(){var t=c.get("dimensions"),s=c.plugins.tip,q=c.elements.tip,u;u=parseInt(h.css("border-left-width"),10)||0;u={left:-u,top:-u};if(s&&q){s=s.corner.precedance==="x"?["width","left"]:["height","top"];u[s[1]]-=q[s[0]]()}g.bgiframe.css(u).css(t)},destroy:function(){d.iframe.remove();h.unbind(m)}});d.init()}a.fn.qtip=function(c,d,g){var h=String(c).toLowerCase(),o=NULL,m=h==="disable"?[TRUE]:a.makeArray(arguments).slice(1,10),t=m[m.length-1],s= -a.extend(TRUE,{},c),q;if(!arguments.length&&this.data("qtip")||h==="api")return(s=this.data("qtip"))?s.hash():K;else if("string"===typeof c){this.each(function(){var u=a(this).data("qtip");if(!u)return TRUE;if(/option|set/.test(h)&&d)if(g!==K)u.set(d,g);else o=u.get(d);else{if(!u.rendered&&(h==="show"||h==="toggle")){if(t&&t.timeStamp)u.cache.event=t;u.render(1)}else if(h==="enable"){h="disable";m=[FALSE]}u[h]&&u[h].apply(u[h],m)}});return o!==NULL?o:this}else if("object"===typeof c||!arguments.length){q= -L(s,this);s=a.extend(TRUE,{},a.fn.qtip.defaults,s);return a.fn.qtip.bind.call(q,s,t)}};a.fn.qtip.bind=function(c,d){return this.each(function(g){function h(e){function B(){s.render(typeof e==="object"||q.show.ready);u.show.unbind(y.show);u.hide.unbind(y.hide)}if(s.cache.disabled)return FALSE;s.cache.event=a.extend({},e);if(q.show.delay>0){clearTimeout(s.timers.show);s.timers.show=setTimeout(B,q.show.delay);y.show!==y.hide&&u.hide.bind(y.hide,function(){clearTimeout(s.timers.show)})}else B()}var o= -a(this),m=c.id,t=c.content.text,s,q,u,y,A;c.id=m=m===FALSE||m.length<1||a("#ui-tooltip-"+m).length?a.fn.qtip.nextid++:m;A=".qtip-"+m+"-create";s=P.call(this,m,c);if(s===FALSE)return TRUE;q=s.options;if(a.isArray(t))q.content.text=t[g];o.attr("title")&&o.data("oldtitle",o.attr("title")).removeAttr("title");a.each(a.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(s)});u={show:q.show.target,hide:q.hide.target};y={show:String(q.show.event).replace(" ",A+" ")+A,hide:String(q.hide.event).replace(" ", -A+" ")+A};u.show.bind(y.show,h);if(c.show.ready||c.prerender)h(d)})};a.each({attr:function(c){var d=a(this),g=d.data("qtip");return arguments.length===1&&c==="title"&&g&&g.rendered===TRUE?d.data("oldtitle"):NULL},remove:a.ui?NULL:function(c,d){a(this).each(function(){if(!d)if(!c||a.filter(c,[this]).length)a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}},function(c,d){if(!d)return TRUE;a.fn["Old"+c]=a.fn[c];a.fn[c]=function(){return d.apply(this,arguments)||a.fn["Old"+c].apply(this, -arguments)}});a(document.body).attr("role",function(c,d){return!d?"application":d});a(document).bind("mousemove.qtip",function(c){a.fn.qtip.mouse={pageX:c.pageX,pageY:c.pageY}});a.fn.qtip.nextid=0;a.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");a.fn.qtip.zindex=15E3;a.fn.qtip.plugins={Corner:function(c){c=String(c).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(c.match(/left|right|center/i)||["inherit"])[0].toLowerCase(); -this.y=(c.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=c.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var d=this.x.substr(0,1),g=this.y.substr(0,1);return d===g?d:d==="c"||d!=="c"&&g!=="c"?g+d:d+g}}};a.fn.qtip.defaults={prerender:FALSE,id:FALSE,overwrite:TRUE,metadata:{type:"class"},content:{text:TRUE,attr:"title",title:{text:FALSE,button:FALSE}},position:{my:"top left", -at:"bottom right",target:FALSE,container:FALSE,adjust:{x:0,y:0,mouse:TRUE,screen:FALSE,resize:TRUE,container:FALSE},effect:TRUE},show:{target:FALSE,event:"mouseenter",effect:TRUE,delay:90,solo:FALSE,ready:FALSE},hide:{target:FALSE,event:"mouseleave",effect:TRUE,delay:0,fixed:FALSE,inactive:FALSE},style:{classes:"",widget:FALSE},events:{render:a.noop,move:a.noop,show:a.noop,hide:a.noop,focus:a.noop,blur:a.noop}};a.fn.qtip.plugins.ajax=function(c){var d=c.plugins.ajax,g=c.options.content.ajax;if(g&& -g.url)if(d)return d;else{c.plugins.ajax=new Q(c);return c.plugins.ajax}};a.fn.qtip.plugins.ajax.initialize="render";a.fn.qtip.plugins.ajax.sanitize=function(c){try{var d=c.content.ajax;if(typeof d!=="object")d=c.content.ajax={url:d};if("boolean"!==typeof d.once&&d.once)d.once=!!d.once}catch(g){}};a.extend(TRUE,a.fn.qtip.defaults,{content:{ajax:{once:TRUE}}});a.fn.qtip.plugins.tip=function(c){var d=c.plugins.tip,g=c.options.style.tip;if(g&&g.corner)if(d)return d;else{c.plugins.tip=new R(c);c.plugins.tip.init(); -return c.plugins.tip}};a.fn.qtip.plugins.tip.initialize="render";a.fn.qtip.plugins.tip.sanitize=function(c){try{var d=c.style.tip;if(typeof d!=="object")c.style.tip={corner:d};if(!/string|boolean/i.test(typeof d.corner))d.corner=true;if(typeof d.method!=="string")d.method=TRUE;if(!/canvas|polygon/i.test(d.method))d.method=TRUE;typeof d.width!=="number"&&delete d.width;typeof d.height!=="number"&&delete d.height;typeof d.border!=="number"&&delete d.border;typeof d.offset!=="number"&&delete d.offset}catch(g){}}; -a.extend(TRUE,a.fn.qtip.defaults,{style:{tip:{corner:TRUE,method:TRUE,width:9,height:9,border:0,offset:0}}});a.fn.qtip.plugins.imagemap=function(c,d){function g(A,e){for(var B=0,n=1,b=1,f=0,j=0,k=A.width,i=A.height;k>0&&i>0&&n>0&&b>0;){k=Math.floor(k/2);i=Math.floor(i/2);if(d.x==="left")n=k;else if(d.x==="right")n=A.width-k;else n+=Math.floor(k/2);if(d.y==="top")b=i;else if(d.y==="bottom")b=A.height-i;else b+=Math.floor(i/2);for(B=e.length;B--;){if(e.length<2)break;f=e[B][0]-A.offset.left;j=e[B][1]- -A.offset.top;if(d.x==="left"&&f>=n||d.x==="right"&&f<=n||d.x==="center"&&(fA.width-n)||d.y==="top"&&j>=b||d.y==="bottom"&&j<=b||d.y==="center"&&(jA.height-b))e.splice(B,1)}}return{left:e[0][0],top:e[0][1]}}var h=c.attr("shape").toLowerCase(),o=c.attr("coords").split(","),m=[],t=a('img[usemap="#'+c.parent("map").attr("name")+'"]'),s=t.offset(),q={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},u=0,y=0;s.left+=Math.ceil((t.outerWidth()-t.width())/2);s.top+=Math.ceil((t.outerHeight()- -t.height())/2);if(h==="poly")for(u=o.length;u--;){y=[parseInt(o[--u],10),parseInt(o[u+1],10)];if(y[0]>q.offset.right)q.offset.right=y[0];if(y[0]q.offset.bottom)q.offset.bottom=y[1];if(y[1]",{html:e}):a("",{"class":"ui-state-default",text:"Close tooltip",title:"Close tooltip",css:{"text-indent":"-10000em"}}).prepend(a("",{"class":"ui-icon ui-icon-close"}));d.button.prependTo(d.titlebar).attr("role","button").addClass(j+"-"+(e===TRUE?"close":"button")).hover(function(k){a(this).toggleClass("ui-state-hover",k.type==="mouseenter")}).click(function(){d.tooltip.hasClass("ui-state-disabled")||f.hide(); +return FALSE}).bind("mousedown keydown mouseup keyup mouseout",function(k){a(this).toggleClass("ui-state-active ui-state-focus",/down$/i.test(k.type))})}function r(){var d=f.elements;d.titlebar&&t();d.titlebar=a("
",{"class":j+"-titlebar "+(c.style.widget?"ui-widget-header":"")}).append(d.title=a("
",{id:j+"-"+h+"-title","class":j+"-title",html:c.content.title.text})).prependTo(d.wrapper);c.content.title.button&&s()}function u(d){var e=f.elements;if(!f.rendered||!d)return FALSE;if(a.isFunction(d))d= +d.call(b);d.jquery&&d.length>0?e.content.empty().append(d.css({display:"block"})):e.content.html(d);e.tooltip.queue("fx",function(k){function n(q){g=g.not(q);if(g.length===0){q=void 0;var w=f.elements.tooltip,y,v;if(f.rendered&&a.browser.msie&&parseInt(a.browser.version.charAt(0),10)<9){w.css({width:"auto",maxWidth:"none"});q=l("dimensions").width;w.css({maxWidth:""});y=parseInt(w.css("max-width"),10)||0;v=parseInt(w.css("min-width"),10)||0;q=y+v?Math.min(Math.max(q,v),y):q;w.width(q)}f.rendered=== +TRUE&&f.reposition(f.cache.event);k()}}var g=a("img:not([height]):not([width])",f.elements.content);g.each(function(q,w){var y=["abort","error","load","unload",""].join(".qtip-image ");a(this).bind(y,function(){clearTimeout(f.timers.img[q]);n(this)});(function v(){if(w.height)return n(w);f.timers.img[q]=setTimeout(v,20)})();return TRUE});g.length===0&&n(g)});return f}function z(d,e,k,n){function g(D){if(p.tooltip.hasClass("ui-state-disabled"))return FALSE;p.show.trigger("qtip-"+h+"-inactive");clearTimeout(f.timers.show); +clearTimeout(f.timers.hide);var x=function(){f.show(D)};if(c.show.delay>0)f.timers.show=setTimeout(x,c.show.delay);else x()}function q(D){if(p.tooltip.hasClass("ui-state-disabled"))return FALSE;var x=a(D.relatedTarget||D.target).parents(m)[0]==p.tooltip[0];clearTimeout(f.timers.show);clearTimeout(f.timers.hide);if(c.hide.fixed&&(c.position.target==="mouse"&&x||/mouse(out|leave|move)/.test(D.type)&&x)){D.stopPropagation();D.preventDefault();return FALSE}p.tooltip.stop(TRUE);if(c.hide.delay>0)f.timers.hide= +setTimeout(function(){f.hide(D)},c.hide.delay);else f.hide(D)}function w(D){if(p.tooltip.hasClass("ui-state-disabled"))return FALSE;clearTimeout(f.timers.inactive);f.timers.inactive=setTimeout(function(){f.hide(D)},c.hide.inactive)}function y(D){f.elements.tooltip.is(":visible")&&f.reposition(D)}var v=".qtip-"+h,p={show:c.show.target,hide:c.hide.target,tooltip:f.elements.tooltip},C={show:String(c.show.event).split(" "),hide:String(c.hide.event).split(" ")},G=a.browser.msie&&/^6\.[0-9]/.test(a.browser.version); +b.bind("remove.qtip",function(){f.destroy()});if(k&&c.hide.fixed){p.hide=p.hide.add(p.tooltip);p.tooltip.bind("mouseover"+v,function(){p.tooltip.hasClass("ui-state-disabled")||clearTimeout(f.timers.hide)})}if(e){if("number"===typeof c.hide.inactive){p.show.bind("qtip-"+h+"-inactive",w);a.each(a.fn.qtip.inactiveEvents,function(D,x){p.hide.add(f.elements.tooltip).bind(x+v+"-inactive",w)})}a.each(C.hide,function(D,x){var B=a.inArray(x,C.show);if(B>-1&&a(p.hide).add(p.show).length===a(p.hide).length|| +x==="unfocus"){p.show.bind(x+v,function(E){p.tooltip.is(":visible")?q(E):g(E)});delete C.show[B]}else p.hide.bind(x+v,q)})}if(d){a.each(C.show,function(D,x){p.show.bind(x+v,g)});p.tooltip.bind("mouseover"+v,function(){f.focus()})}if(n){if(c.position.adjust.resize||c.position.adjust.screen)a(F).bind("resize"+v,y);if(c.position.adjust.screen||G&&p.tooltip.css("position")==="fixed")a(document).bind("scroll"+v,y);/unfocus/i.test(c.hide.event)&&a(document).bind("mousedown"+v,function(D){var x=f.elements.tooltip; +a(D.target).parents(m).length===0&&a(D.target).add(b).length>1&&x.is(":visible")&&!x.hasClass("ui-state-disabled")&&f.hide()});c.position.target==="mouse"&&a(document).bind("mousemove"+v,function(D){if(c.position.adjust.mouse&&!p.tooltip.hasClass("ui-state-disabled")&&p.tooltip.is(":visible"))f.reposition(D||a.fn.qtip.mouse)})}}function A(d,e,k,n){n=parseInt(n,10)!==0;var g=".qtip-"+h,q={show:d?c.show.target:a("
"),hide:e?c.hide.target:a("
"),tooltip:k?f.elements.tooltip:a("
")};e= +{show:String(c.show.event).split(" "),hide:String(c.hide.event).split(" ")};if(f.rendered){a.each(e.show,function(w,y){q.show.unbind(y+g)});q.show.unbind("mousemove"+g).unbind("mouseout"+g).unbind("qtip-"+h+"-inactive");a.each(e.hide,function(w,y){q.hide.add(q.tooltip).unbind(y+g)});a.each(a.fn.qtip.inactiveEvents,function(w,y){q.hide.add(k?f.elements.content:NULL).unbind(y+g+"-inactive")});q.hide.unbind("mouseout"+g);q.tooltip.unbind("mouseover"+g);if(n){a(F).unbind("resize"+g);a(document).unbind("mousedown"+ +g+" mousemove"+g)}}else d&&q.show.unbind(e.show+g+"-create")}var f=this,j="ui-tooltip",m=".qtip."+j;f.id=h;f.rendered=FALSE;f.elements={target:b};f.cache={event:{},target:NULL,disabled:FALSE};f.timers={img:[]};f.options=c;f.plugins={};a.extend(f,{render:function(d){var e=f.elements,k=a.Event("tooltiprender");if(f.rendered)return FALSE;f.rendered=d?-2:-1;e.tooltip=a("
").attr({id:j+"-"+h,role:"tooltip","class":j+" qtip ui-tooltip-accessible ui-helper-reset "+c.style.classes}).css("z-index",a.fn.qtip.zindex+ +a(m).length).toggleClass("ui-widget",c.style.widget).toggleClass("ui-state-disabled",f.cache.disabled).data("qtip",f).appendTo(c.position.container);e.wrapper=a("
",{"class":j+"-wrapper"}).appendTo(e.tooltip);e.content=a("
",{"class":j+"-content "+(c.style.widget?"ui-widget-content":""),id:j+"-"+h+"-content"}).appendTo(e.wrapper);u(c.content.text);c.content.title.text&&r();a.each(a.fn.qtip.plugins,function(){this.initialize==="render"&&this(f)});f.rendered=TRUE;z(1,1,1,1);a.each(c.events, +function(n,g){e.tooltip.bind("tooltip"+n,g)});e.tooltip.queue("fx",function(n){if(c.show.ready||d){e.tooltip.hide();f.show(f.cache.event)}e.tooltip.removeClass("ui-tooltip-accessible");k.originalEvent=a.extend({},f.cache.event);e.tooltip.trigger(k,[f.hash()]);n()});return f},get:function(d){switch(d.toLowerCase()){case "offset":d=l("position");break;case "dimensions":d=l("dimensions");break;default:d=i(d.toLowerCase());d=d[0].precedance?d[0].string():d[0].jquery?d[0]:d[0][d[1]];break}return d},set:function(d, +e){d=d.toLowerCase();var k=i(d),n=f.elements,g=n.tooltip,q,w,y,v={builtin:{id:function(){var p=e===TRUE?a.fn.qtip.nextid:e,C=j+"-"+p;if(p!==FALSE&&p.length>0&&!a("#ui-tooltip-"+p).length){g[0].id=C;n.content[0].id=C+"-content";n.title[0].id=C+"-title"}},"^content.text":function(){u(e)},"^content.title.text":function(){if(f.rendered)if(!f.elements.title&&e){r();f.reposition()}else e?f.elements.title.html(e):t()},"^content.title.button":function(){var p=f.elements.button,C=f.elements.title;if(f.rendered)if(e){C|| +r();s()}else p.remove()},"^position.(my|at)$":function(){var p=/my$/i.test(d)?"my":"at";if("string"===typeof e)c.position[p]=new a.fn.qtip.plugins.Corner(e)},"^position.(my|at|adjust|target)":function(){f.rendered&&f.reposition()},"^position.container$":function(){if(f.rendered===TRUE){g.appendTo(e);f.reposition()}},"^(show|hide).(event|target|fixed|delay|inactive)":function(p,C,G,D){var x=d.search(/fixed/i)>-1?[0,[0,1,1,1]]:[d.substr(0,3),d.charAt(0)==="s"?[1,0,0,0]:[0,1,0,0]];if(x[0])p[C]=D;A.apply(f, +x[1]);if(x[0])p[C]=G;z.apply(f,x[1])},"^show.ready$":function(){f.rendered===FALSE&&f.show()},"^style.classes$":function(){f.elements.tooltip.css("class",j+" qtip ui-helper-reset "+e)},"^style.widget$":function(){g.toggleClass("ui-widget",!!e);n.titlebar.toggleClass("ui-widget-header",!!e);n.content.toggleClass("ui-widget-content",!!e)},"^events.(render|show|move|hide|focus|blur)":function(p,C,G,D){a.isFunction(e)?n.tooltip.bind("tooltip"+C,G):n.tooltip.unbind("tooltip"+C,D)}}};a.each(f.plugins,function(p){if("object"=== +typeof this.checks)v[p]=this.checks});q=k[0][k[1]];k[0][k[1]]=e.nodeType?a(e):e;L(c,b);for(w in v)for(y in v[w])RegExp(y,"i").test(d)&&v[w][y].call(f,k[0],k[1],e,q);return f},toggle:function(d,e){function k(){var v=a(this),p=d?"attr":"removeAttr",C=/^1|0$/.test(v.css("opacity"));f.elements.title&&b[p]("aria-labelledby",j+"-"+h+"-title");b[p]("aria-describedby",j+"-"+h+"-content");if(d){if(a.browser.msie&&this.style&&C){y=this.style;y.removeAttribute("filter");y.removeAttribute("opacity")}}else C&& +v.hide()}if(f.rendered===FALSE)return FALSE;var n=d?"show":"hide",g=f.elements.tooltip,q=c[n],w=g.is(":visible"),y;if((typeof d).search("boolean|number"))d=!g.is(":visible");if(!w&&!d||g.is(":animated"))return f;if(e){if(f.cache.event&&/over|enter/.test(e.type)&&/out|leave/.test(f.cache.event.type)&&a(e.target).add(c.show.target).length<2&&a(e.relatedTarget).parents(m).length>0)return f;f.cache.event=a.extend({},e)}w=a.Event("tooltip"+n);w.originalEvent=a.extend({},e);g.trigger(w,[f.hash(),90]);if(w.isDefaultPrevented())return f; +if(d){f.focus();f.reposition(e);q.solo&&a(m).qtip("hide")}else clearTimeout(f.timers.show);g.attr("aria-hidden",Boolean(!d));g.stop(TRUE,FALSE);if(a.isFunction(q.effect)){q.effect.call(g,f.hash());g.queue(function(){k.call(this);a(this).dequeue()})}else if(q.effect===FALSE){g[n]();k.call(g)}else g.fadeTo(90,d?1:0,k);d&&q.target.trigger("qtip-"+h+"-inactive");return f},show:function(d){f.toggle(TRUE,d)},hide:function(d){f.toggle(FALSE,d)},focus:function(d){if(f.rendered===false)return FALSE;var e= +f.elements.tooltip,k=a(m),n=parseInt(e.css("z-index"),10),g=a.fn.qtip.zindex+k.length,q=j+"-focus",w=a.extend({},d);if(!e.hasClass(q)&&n!==g){k.css("z-index",function(y,v){return v-1});a(m+"."+q).each(function(){var y=a(this),v=y.qtip(),p;if(!v||v.rendered===FALSE)return TRUE;y.removeClass(q);p=a.Event("tooltipblur");p.originalEvent=w;y.trigger(p,[v,g])});d=a.Event("tooltipfocus");d.originalEvent=w;e.trigger(d,[f.hash(),g]);d.isDefaultPrevented()||e.css({zIndex:g}).addClass(q)}return f},reposition:function(d){if(f.rendered=== +FALSE)return FALSE;var e=c.position.target,k=f.elements.tooltip,n=c.position,g=n.my,q=n.at,w=f.elements.tooltip.width(),y=f.elements.tooltip.height(),v=a(n.container)[0],p=0,C=0,G=a.Event("tooltipmove"),D=k.css("position")==="fixed",x=a(n.adjust.container&&v!==document.body?v:F),B={left:0,top:0};v={left:function(E){var H=x.scrollTop,I=g.x==="left"?w:g.x==="right"?-w:-w/2,J=-2*n.adjust.x,M=E+w-x.width-H;if(H-E>0)B.left-=I+J;else if(M>0)B.left-=(g.x==="center"?-1:1)*(I+J);return B.left-E},top:function(E){var H= +x.scrollTop,I=g.y==="top"?y:g.y==="bottom"?-y:-y/2,J=-2*n.adjust.y,M=E+y-x.height-H;if(H-E>0)B.top-=I+J;else if(M>0)B.top-=(g.y==="center"?-1:1)*(I+J);return B.top-E}};x={elem:x,height:x[(x[0]===F?"h":"outerH")+"eight"](),width:x[(x[0]===F?"w":"outerW")+"idth"](),scrollLeft:x.scrollLeft(),scrollTop:x.scrollTop()};if(e==="mouse"){q={x:"left",y:"top"};d=n.adjust.mouse||!d||!d.pageX?a.extend({},a.fn.qtip.mouse):d;B={top:d.pageY,left:d.pageX}}else{if(e==="event")e=d&&d.target&&d.type!=="scroll"&&d.type!== +"resize"?f.cache.target=a(d.target):f.cache.target;e=a(e).eq(0);if(e.length===0)return f;else if(e[0]===document||e[0]===F){p=e.width();C=e.height();if(e[0]===F)B={top:D?0:x.scrollTop,left:D?0:x.scrollLeft}}else if(e.is("area")&&a.fn.qtip.plugins.imagemap){B=a.fn.qtip.plugins.imagemap(e,q);p=B.width;C=B.height;B=B.offset}else{p=e.outerWidth();C=e.outerHeight();B=o(e)}B.left+=q.x==="right"?p:q.x==="center"?p/2:0;B.top+=q.y==="bottom"?C:q.y==="center"?C/2:0}B.left+=n.adjust.x+(g.x==="right"?-w:g.x=== +"center"?-w/2:0);B.top+=n.adjust.y+(g.y==="bottom"?-y:g.y==="center"?-y/2:0);B.adjusted=n.adjust.screen&&e[0]!==F&&e[0]!==document.body?{left:v.left(B.left),top:v.top(B.top)}:{left:0,top:0};k.attr("class",function(){return a(this).attr("class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+g.abbreviation());G.originalEvent=a.extend({},d);k.trigger(G,[f.hash(),B,x.elem]);if(G.isDefaultPrevented())return f;delete B.adjusted;if(k.is(":visible")&&a.isFunction(n.effect)){n.effect.call(k,f.hash(), +B);k.queue(function(){var E=a(this);E.css({opacity:"",height:""});a.browser.msie&&this.style&&this.style.removeAttribute("filter");E.dequeue()})}else isNaN(B.left,B.top)||k.css(B);return f},disable:function(d){var e=f.elements.tooltip;if(f.rendered)e.toggleClass("ui-state-disabled",d);else f.cache.disabled=!!d;return f},destroy:function(){var d=f.elements,e=d.target.data("oldtitle");f.rendered&&a.each(f.plugins,function(){this.initialize==="render"&&this.destroy()});A(1,1,1,1);b.removeData("qtip"); +f.rendered&&d.tooltip.remove();e&&b.attr("title",e);b.removeAttr("aria-describedby");return b},hash:function(){var d=a.extend({},f);delete d.cache;delete d.timers;delete d.options;delete d.plugins;delete d.render;delete d.hash;return d}})}function P(b,c){var h,i=a(this);h=a(document.body);var o=i.metadata?i.metadata(c.metadata):{};o=a.extend(TRUE,{},c,L(a.extend(TRUE,{},(o&&c.metadata.type==="html5"?o[c.metadata.name]:{})||o)));var l=o.position,t=this===document?h:i;i.removeData("metadata");if("boolean"=== +typeof o.content.text)if(o.content.attr!==FALSE&&i.attr(o.content.attr))o.content.text=i.attr(o.content.attr);else return FALSE;if(l.container===FALSE)l.container=h;if(l.target===FALSE)l.target=t;if(o.show.target===FALSE)o.show.target=t;if(o.hide.target===FALSE)o.hide.target=t;l.at=new a.fn.qtip.plugins.Corner(l.at);l.my=new a.fn.qtip.plugins.Corner(l.my);if(i.data("qtip"))if(o.overwrite)i.qtip("destroy");else if(o.overwrite===FALSE)return FALSE;h=new O(i,o,b);i.data("qtip",h);return h}function Q(b){var c= +this;c.checks={"^content.ajax":function(){this.plugins.ajax.load(this.options.content.ajax)}};a.extend(c,{init:function(){var h=b.options.content.ajax;b.elements.tooltip.bind("tooltiprender.ajax",function(){c.load(h);b.elements.tooltip.bind("tooltipshow.ajax",function(){h.once===FALSE&&b.rendered===TRUE&&c.load(h)})})},load:function(h){a.ajax(a.extend(TRUE,{},h,{success:function(i,o){if(a.isFunction(h.success))if(h.success.call(b.hash(),i,o)===FALSE)return;b.set("content.text",i)},error:function(i, +o,l){var t=o||l;if(a.isFunction(h.error)){i=h.error.call(b.hash(),i,o,l);if(i===FALSE)return}b.set("content.text",t)}}));return c},destroy:function(){b.elements.tooltip.unbind("tooltipshow.ajax")}});c.init()}function N(b,c,h){var i=Math.floor(c/2),o=Math.floor(h/2);c={bottomright:[[0,0],[c,h],[c,0]],bottomleft:[[0,0],[c,0],[0,h]],topright:[[0,h],[c,0],[c,h]],topleft:[[0,0],[0,h],[c,h]],topcenter:[[0,h],[i,0],[c,h]],bottomcenter:[[0,0],[c,0],[i,h]],rightcenter:[[0,0],[c,o],[0,h]],leftcenter:[[c,0], +[c,h],[0,o]]};c.lefttop=c.bottomright;c.righttop=c.bottomleft;c.leftbottom=c.topright;c.rightbottom=c.topleft;return c[b]}function R(b){function c(j){var m=l.tip,d=["left","right"],e=o.offset,k,n;if(o.corner===FALSE||!m)return FALSE;j=j||i.corner;k=j.precedance;n=k==="y"?"x":"y";d[k==="y"?"push":"unshift"]("top","bottom");e=Math.max(j[n]==="center"?e:0,e);m.css({top:"",bottom:"",left:"",right:"",margin:""});switch(j[k==="y"?"x":"y"]){case "center":m.css(d[0],"50%").css("margin-"+d[0],-(u[k==="y"? +"width":"height"]/2)+e);break;case d[0]:m.css(d[0],e);break;case d[1]:m.css(d[1],e);break}e=u[k==="x"?"width":"height"];if(A){t.toggleClass("ui-tooltip-accessible",!t.is(":visible"));e-=parseInt(s.css("border-"+j[k]+"-width"),10)||0;t.removeClass("ui-tooltip-accessible")}m.css(j[k],-e)}function h(j,m,d){if(l.tip){j=a.extend({},i.corner);m=j.precedance==="y"?["y","top","left","height","x"]:["x","left","top","width","y"];var e=d.adjusted,k=[parseInt(s.css("border-"+j[m[0]]+"-width"),10)||0,0];if(e.left)j.x= +j.x==="center"?e.left>0?"left":"right":j.x==="left"?"right":"left";if(e.top)j.y=j.y==="center"?e.top>0?"top":"bottom":j.y==="top"?"bottom":"top";k[1]=Math.max(j[m[4]]==="center"?o.offset:0,o.offset);d[m[1]]+=(j[m[0]]===m[1]?1:-1)*(u[m[3]]-k[0]);d[m[2]]-=(j[m[4]]===m[2]||j[m[4]]==="center"?1:-1)*k[1];if(j.string()!==r.corner.string()&&(r.top!==e.top||r.left!==e.left))i.update(j);r.left=e.left;r.top=e.top;r.corner=j}}var i=this,o=b.options.style.tip,l=b.elements,t=l.tooltip,s=l.wrapper,r={top:0,left:0, +corner:{string:function(){}}},u={width:o.width,height:o.height},z={},A=o.border||0,f=o.method||FALSE;i.corner=NULL;i.mimic=NULL;i.checks={"^position.my|style.tip.(corner|mimic|method|border)":function(){A=o.border;if(i.init())this.get("position.target")!=="mouse"&&this.reposition();else i.destroy()},"^style.tip.(height|width)":function(){u={width:o.width,height:o.height};i.create();i.update();b.reposition()}};a.extend(i,{init:function(){var j=a.browser.msie,m=i.mimic&&/center/i.test(i.mimic.string()), +d=i.detectCorner();if(d){if(f===TRUE)f=a("")[0].getContext?"canvas":j&&(m||u.height!==u.width)?"vml":"polygon";else if(f==="canvas")f=j?"vml":!a("")[0].getContext?"polygon":"canvas";else if(f==="polygon")f=j&&m?"vml":f;i.create();i.detectColours();i.update();t.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",h)}return d},detectCorner:function(){var j=o.corner,m=o.mimic||j,d=b.options.position.at,e=b.options.position.my;if(e.string)e=e.string();if(j===FALSE||e===FALSE&&d===FALSE)return FALSE; +else{if(j===TRUE)i.corner=new a.fn.qtip.plugins.Corner(e);else if(!j.string)i.corner=new a.fn.qtip.plugins.Corner(j);if(m===TRUE)i.mimic=new a.fn.qtip.plugins.Corner(e);else if(!m.string){i.mimic=new a.fn.qtip.plugins.Corner(m);i.mimic.precedance=i.corner.precedance}}return i.corner.string()!=="centercenter"},detectColours:function(){var j=l.tip,m=i.mimic[i.mimic.precedance],d="border-"+m+"-color";z.fill=j.css("background-color","").css("border","").css("background-color")||"transparent";z.border= +j.get(0).style?j.get(0).style["border"+m.charAt(0)+m.substr(1)+"Color"]:j.css(d)||"transparent";if(/rgba?\(0, 0, 0(, 0)?\)|transparent/i.test(z.fill))z.fill=s.css(A?"background-color":d);if(!z.border||/rgba?\(0, 0, 0(, 0)?\)|transparent/i.test(z.border))z.border=s.css(d)||z.fill;a("*",j).add(j).css("background-color","transparent").css("border",0)},create:function(){var j=u.width,m=u.height;l.tip&&l.tip.remove();l.tip=a('
').toggleClass("ui-widget-content",b.options.style.widget).css(u).prependTo(t); +switch(f){case "canvas":l.tip.append('');break;case "vml":l.tip.html('');break; +case "polygon":l.tip.append('
').append(A?'
':"");break}return i},update:function(j){var m=l.tip,d=u.width,e=u.height,k=A>0?0:1,n=Math.ceil(A/2+0.5),g=a.extend({},i.mimic),q,w;if(!j)j=i.corner;if(g.x==="inherit")g.x=j.x;else if(g.y==="inherit")g.y=j.y;else if(g.x===g.y)g[j.precedance]=j[j.precedance];w=Math[/b|r/.test(g[g.precedance==="y"?"x":"y"])?"ceil":"floor"];m=m.children();switch(f){case "canvas":m=m.get(0).getContext("2d"); +m.restore();m.clearRect(0,0,3E3,3E3);for(q=N(g.string(),d,e);k<2;k++){if(k){m.save();m.translate(w((g.x==="left"?1:g.x==="right"?-1:0)*(A+1)*(g.precedance==="y"?0.5:1)),w((g.y==="top"?1:g.y==="bottom"?-1:0)*(A+1)*(g.precedance==="x"?0.5:1)))}m.beginPath();m.moveTo(q[0][0],q[0][1]);m.lineTo(q[1][0],q[1][1]);m.lineTo(q[2][0],q[2][1]);m.closePath();m.fillStyle=z[k?"fill":"border"];m.fill()}break;case "vml":q=N(g.string(),d,e);k="m"+q[0][0]+","+q[0][1]+" l"+q[1][0]+","+q[1][1]+" "+q[2][0]+","+q[2][1]+ +" xe";m.attr({path:k,fillcolor:z.fill});if(A){m.children().attr("color",z.border);if(g.precedance==="y"){m.css("top",(g.y==="top"?1:-1)*(A-2));m.css("left",g.x==="left"?1:-2)}else{m.css("left",(g.x==="left"?1:-1)*(A-2));m.css("top",g.y==="top"?1:-2)}}break;case "polygon":if(g.precedance==="y"){k=d>e?1.5:de?5:2.2;n=[Math.floor(k*n*(g.x==="right"?-1:1)*(g.y==="center"?0.9:1)), +g.y==="top"?n:g.y==="bottom"?-n:0]}m.removeAttr("style").each(function(y){var v={x:g.precedance==="x"?g.x==="left"?"right":"left":g.x,y:g.precedance==="y"?g.y==="top"?"bottom":"top":g.y},p=g.x==="center"?["left","right",v.y,e,d]:["top","bottom",v.x,d,e],C=z[!y&&A?"border":"fill"];y&&a(this).css({position:"absolute","z-index":1,left:n[0],top:n[1]});g.x==="center"||g.y==="center"?a(this).css("border-"+p[2],p[3]+"px solid "+C).css("border-"+p[0],Math.floor(p[4]/2)+"px dashed transparent").css("border-"+ +p[1],Math.floor(p[4]/2)+"px dashed transparent"):a(this).css("border-width",Math.floor(e/2)+"px "+Math.floor(d/2)+"px").css("border-"+v.x,Math.floor(d/2)+"px solid "+C).css("border-"+v.y,Math.floor(e/2)+"px solid "+C)});break}c(j);return i},destroy:function(){l.tip&&l.tip.remove();t.unbind(".qtip-tip")}})}function S(b,c){var h=this,i=b.elements,o=i.tooltip;i.overlay=a("#qtip-overlay");a.extend(h,{init:function(){o.bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(l,t,s){l=l.type.replace("tooltip", +"");a.isFunction(c[l])?c[l].call(i.overlay,s,t):h[l](s)});i.overlay.length||h.create();c.blur===TRUE&&i.overlay.bind("click.qtipmodal"+b.id,function(){b.hide.call(b)})},create:function(){i.overlay=a("
",{id:"qtip-overlay",css:{position:"absolute",top:0,left:0,display:"none"}}).appendTo(document.body);a(F).bind("resize.qtipmodal",function(){i.overlay.css({height:Math.max(a(F).height(),a(document).height()),width:Math.max(a(F).width(),a(document).width())})}).trigger("resize")},toggle:function(l){var t= +i.overlay,s=b.options.show.modal.effect,r=l?"show":"hide";t.stop(TRUE,FALSE);if(a.isFunction(s))s.call(t,l);else s===FALSE?t[r]():t.fadeTo(90,l?0.7:0,function(){l||a(this).hide()})},show:function(){h.toggle(TRUE)},hide:function(){h.toggle(FALSE)},destroy:function(){var l=TRUE;a("*").each(function(){var t=a(this).data("qtip");if(t&&t.id!==b.id&&t.options.show.modal)return l=FALSE});if(l){i.overlay.remove();a(F).unbind("scroll.qtipmodal resize.qtipmodal")}else i.overlay.unbind("click.qtipmodal"+b.id); +o.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});h.init()}function T(b){var c=this,h=b.elements,i=h.tooltip,o=".bgiframe-"+b.id,l="tooltipmove"+o+" tooltipshow"+o;a.extend(c,{init:function(){h.bgiframe=a('');h.bgiframe.appendTo(i);i.bind(l,c.adjust)},adjust:function(){var t=b.get("dimensions"),s=b.plugins.tip,r= +b.elements.tip,u;u=parseInt(i.css("border-left-width"),10)||0;u={left:-u,top:-u};if(s&&r){s=s.corner.precedance==="x"?["width","left"]:["height","top"];u[s[1]]-=r[s[0]]()}h.bgiframe.css(u).css(t)},destroy:function(){c.iframe.remove();i.unbind(l)}});c.init()}a.fn.qtip=function(b,c,h){var i=String(b).toLowerCase(),o=NULL,l=i==="disable"?[TRUE]:a.makeArray(arguments).slice(1,10),t=l[l.length-1],s=a.extend(TRUE,{},b),r;if(!arguments.length&&this.data("qtip")||i==="api")return(s=this.data("qtip"))?s.hash(): +K;else if("string"===typeof b){this.each(function(){var u=a(this).data("qtip");if(!u)return TRUE;if(/option|set/.test(i)&&c)if(h!==K)u.set(c,h);else o=u.get(c);else{if(!u.rendered&&(i==="show"||i==="toggle")){if(t&&t.timeStamp)u.cache.event=t;u.render(1)}else if(i==="enable"){i="disable";l=[FALSE]}u[i]&&u[i].apply(u[i],l)}});return o!==NULL?o:this}else if("object"===typeof b||!arguments.length){r=L(s,this);s=a.extend(TRUE,{},a.fn.qtip.defaults,s);return a.fn.qtip.bind.call(r,s,t)}};a.fn.qtip.bind= +function(b,c){return this.each(function(h){function i(f){function j(){s.render(typeof f==="object"||r.show.ready);u.show.unbind(z.show);u.hide.unbind(z.hide)}if(s.cache.disabled)return FALSE;s.cache.event=a.extend({},f);if(r.show.delay>0){clearTimeout(s.timers.show);s.timers.show=setTimeout(j,r.show.delay);z.show!==z.hide&&u.hide.bind(z.hide,function(){clearTimeout(s.timers.show)})}else j()}var o=a(this),l=b.id,t=b.content.text,s,r,u,z,A;b.id=l=l===FALSE||l.length<1||a("#ui-tooltip-"+l).length?a.fn.qtip.nextid++: +l;A=".qtip-"+l+"-create";s=P.call(this,l,b);if(s===FALSE)return TRUE;r=s.options;if(a.isArray(t))r.content.text=t[h];o.attr("title")&&o.data("oldtitle",o.attr("title")).removeAttr("title");a.each(a.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(s)});u={show:r.show.target,hide:r.hide.target};z={show:String(r.show.event).replace(" ",A+" ")+A,hide:String(r.hide.event).replace(" ",A+" ")+A};u.show.bind(z.show,i);if(b.show.ready||b.prerender)i(c)})};a.each({attr:function(b){var c=a(this), +h=c.data("qtip");return arguments.length===1&&b==="title"&&h&&h.rendered===TRUE?c.data("oldtitle"):NULL},remove:a.ui?NULL:function(b,c){a(this).each(function(){if(!c)if(!b||a.filter(b,[this]).length)a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}},function(b,c){if(!c)return TRUE;a.fn["Old"+b]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||a.fn["Old"+b].apply(this,arguments)}});a(document.body).attr("role",function(b,c){return!c?"application":c});a(document).bind("mousemove.qtip", +function(b){a.fn.qtip.mouse={pageX:b.pageX,pageY:b.pageY}});a.fn.qtip.nextid=0;a.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");a.fn.qtip.zindex=15E3;a.fn.qtip.plugins={Corner:function(b){b=String(b).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(b.match(/left|right|center/i)||["inherit"])[0].toLowerCase();this.y=(b.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=b.charAt(0).search(/^(t|b)/)> +-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var c=this.x.substr(0,1),h=this.y.substr(0,1);return c===h?c:c==="c"||c!=="c"&&h!=="c"?h+c:c+h}}};a.fn.qtip.defaults={prerender:FALSE,id:FALSE,overwrite:TRUE,metadata:{type:"class"},content:{text:TRUE,attr:"title",title:{text:FALSE,button:FALSE}},position:{my:"top left",at:"bottom right",target:FALSE,container:FALSE,adjust:{x:0,y:0,mouse:TRUE,screen:FALSE,resize:TRUE,container:FALSE}, +effect:TRUE},show:{target:FALSE,event:"mouseenter",effect:TRUE,delay:90,solo:FALSE,ready:FALSE},hide:{target:FALSE,event:"mouseleave",effect:TRUE,delay:0,fixed:FALSE,inactive:FALSE},style:{classes:"",widget:FALSE},events:{render:a.noop,move:a.noop,show:a.noop,hide:a.noop,focus:a.noop,blur:a.noop}};a.fn.qtip.plugins.ajax=function(b){var c=b.plugins.ajax,h=b.options.content.ajax;if(h&&h.url)if(c)return c;else{b.plugins.ajax=new Q(b);return b.plugins.ajax}};a.fn.qtip.plugins.ajax.initialize="render"; +a.fn.qtip.plugins.ajax.sanitize=function(b){try{var c=b.content.ajax;if(typeof c!=="object")c=b.content.ajax={url:c};if("boolean"!==typeof c.once&&c.once)c.once=!!c.once}catch(h){}};a.extend(TRUE,a.fn.qtip.defaults,{content:{ajax:{once:TRUE}}});a.fn.qtip.plugins.tip=function(b){var c=b.plugins.tip,h=b.options.style.tip;if(h&&h.corner)if(c)return c;else{b.plugins.tip=new R(b);b.plugins.tip.init();return b.plugins.tip}};a.fn.qtip.plugins.tip.initialize="render";a.fn.qtip.plugins.tip.sanitize=function(b){try{var c= +b.style.tip;if(typeof c!=="object")b.style.tip={corner:c};if(!/string|boolean/i.test(typeof c.corner))c.corner=true;if(typeof c.method!=="string")c.method=TRUE;if(!/canvas|polygon/i.test(c.method))c.method=TRUE;typeof c.width!=="number"&&delete c.width;typeof c.height!=="number"&&delete c.height;typeof c.border!=="number"&&delete c.border;typeof c.offset!=="number"&&delete c.offset}catch(h){}};a.extend(TRUE,a.fn.qtip.defaults,{style:{tip:{corner:TRUE,method:TRUE,width:9,height:9,border:0,offset:0}}}); +a.fn.qtip.plugins.imagemap=function(b,c){function h(A,f){for(var j=0,m=1,d=1,e=0,k=0,n=A.width,g=A.height;n>0&&g>0&&m>0&&d>0;){n=Math.floor(n/2);g=Math.floor(g/2);if(c.x==="left")m=n;else if(c.x==="right")m=A.width-n;else m+=Math.floor(n/2);if(c.y==="top")d=g;else if(c.y==="bottom")d=A.height-g;else d+=Math.floor(g/2);for(j=f.length;j--;){if(f.length<2)break;e=f[j][0]-A.offset.left;k=f[j][1]-A.offset.top;if(c.x==="left"&&e>=m||c.x==="right"&&e<=m||c.x==="center"&&(eA.width-m)||c.y==="top"&& +k>=d||c.y==="bottom"&&k<=d||c.y==="center"&&(kA.height-d))f.splice(j,1)}}return{left:f[0][0],top:f[0][1]}}var i=b.attr("shape").toLowerCase(),o=b.attr("coords").split(","),l=[],t=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),s=t.offset(),r={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},u=0,z=0;s.left+=Math.ceil((t.outerWidth()-t.width())/2);s.top+=Math.ceil((t.outerHeight()-t.height())/2);if(i==="poly")for(u=o.length;u--;){z=[parseInt(o[--u],10),parseInt(o[u+1],10)]; +if(z[0]>r.offset.right)r.offset.right=z[0];if(z[0]r.offset.bottom)r.offset.bottom=z[1];if(z[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('"5w 5x";11 1a=4x,14=4N,2j=6U;(V(a,G,K){V L(c,d){11 g,h=a();U(!c)X 14;3Y{U("2a"2w c&&"1J"!==1l c.2a)c.2a={28:c.2a};U("18"2w c){U("1J"!==1l c.18||c.18.2E)c.18={1A:c.18};g=c.18.1A||14;U(!a.2p(g)&&(!g&&!g.1x||g.1q<1||"1J"===1l g&&!g.2E))g=c.18.1A=14;U("1o"2w c.18&&"1J"!==1l c.18.1o)c.18.1o={1A:c.18.1o}}U("1g"2w c){U("1J"!==1l c.1g)c.1g={2c:c.1g,2v:c.1g};U("1J"!==1l c.1g.1z)c.1g.1z={};U("5b"!==1l c.1g.1z.2U)c.1g.1z.2U=!!c.1g.1z.2U}U("W"2w c){U("1J"!==1l c.W)c.W={1w:c.W};U("1J"!==1l c.W)c.W=c.W.2E?{1j:c.W}:{1w:c.W}}U("17"2w c)U("1J"!==1l c.17)c.17=c.17.2E?{1j:c.17}:{1w:c.17};U("1p"2w c&&"1J"!==1l c.1p)c.1p={3T:c.1p}}40(o){}U(a.2p(g)){c.18.1A=[];d.1y(V(){11 m=g.1T(12);U(m){c.18.1A.4j(m);h=h.2h(a(12))}})}19 h=d;a.1y(a.1b.Y.1e,V(){12.3a&&12.3a(c)});X d?h:c}V O(c,d,g){V h(b){11 f,j=b.2R("."),k=d[j[0]];2Q(b=1;b",{3i:f}):a("",{"1Q":"1h-1X-3N",1A:"4A 13",1o:"4A 13",1c:{"1A-5C":"-71"}}).5D(a("<5E />",{"1Q":"1h-4B 1h-4B-5a"}));b.24.4g(b.2N).1x("44","24").3R(B+"-"+(f===1a?"5a":"24")).4C(V(j){a(12).2k("1h-1X-4C",j.28==="4m")}).3C(V(){b.13.2C("1h-1X-1V")||e.17();X 14}).1r("3P 5F 4S 5G 4a",V(j){a(12).2k("1h-1X-6v 1h-1X-2P",/5H$/i.1M(j.28))})}V q(){11 b=e.1i;b.2N&&t();b.2N=a("<21 />",{"1Q":B+"-2N "+(d.1p.1W?"1h-1W-4J":"")}).3d(b.1o=a("<21 />",{1K:B+"-"+g+"-1o","1Q":B+"-1o",3i:d.18.1o.1A})).4g(b.3k);d.18.1o.24&&s()}V u(b){11 f=e.1i;U(!e.1t||!b)X 14;U(a.2p(b))b=b.1T(c);b.2E&&b.1q>0?f.18.5I().3d(b.1c({39:"3x"})):f.18.3i(b);f.13.3G("4H",V(j){V k(l){i=i.47(l);U(i.1q===0){l=5J 0;11 r=e.1i.13,x,w;U(e.1t&&a.2s.31&&27(a.2s.4h.3I(0),10)<9){r.1c({1d:"5K",4T:"5n"});l=m("3b").1d;r.1c({4T:""});x=27(r.1c("2z-1d"),10)||0;w=27(r.1c("4E-1d"),10)||0;l=x+w?1n.4E(1n.2z(l,w),x):l;r.1d(l)}e.1t===1a&&e.2l(e.1P.1w);j()}}11 i=a("3n:47([1f]):47([1d])",e.1i.18);i.1y(V(l,r){11 x=["67","3L","3h","5L",""].5M(".Y-5N ");a(12).1r(x,V(){2n(e.1L.3n[l]);k(12)});(V w(){U(r.1f)X k(r);e.1L.3n[l]=3s(w,20)})();X 1a});i.1q===0&&k(i)});X e}V y(b,f,j,k){V i(D){U(p.13.2C("1h-1X-1V"))X 14;p.W.2B("Y-"+g+"-23");2n(e.1L.W);2n(e.1L.17);11 v=V(){e.W(D)};U(d.W.2A>0)e.1L.W=3s(v,d.W.2A);19 v()}V l(D){U(p.13.2C("1h-1X-1V"))X 14;11 v=a(D.4M||D.1j).3V(n)[0]==p.13[0];2n(e.1L.W);2n(e.1L.17);U(d.17.2T&&(d.1g.1j==="2e"&&v||/2e(4K|4L|4s)/.1M(D.28)&&v)){D.68();D.61();X 14}p.13.3U(1a);U(d.17.2A>0)e.1L.17=3s(V(){e.17(D)},d.17.2A);19 e.17(D)}V r(D){U(p.13.2C("1h-1X-1V"))X 14;2n(e.1L.23);e.1L.23=3s(V(){e.17(D)},d.17.23)}V x(D){e.1i.13.2f(":2y")&&e.2l(D)}11 w=".Y-"+g,p={W:d.W.1j,17:d.17.1j,13:e.1i.13},C={W:2H(d.W.1w).2R(" "),17:2H(d.17.1w).2R(" ")},E=a.2s.31&&/^6\\.[0-9]/.1M(a.2s.4h);c.1r("2b.Y",V(){e.2u()});U(j&&d.17.2T){p.17=p.17.2h(p.13);p.13.1r("41"+w,V(){p.13.2C("1h-1X-1V")||2n(e.1L.17)})}U(f){U("30"===1l d.17.23){p.W.1r("Y-"+g+"-23",r);a.1y(a.1b.Y.46,V(D,v){p.17.2h(e.1i.13).1r(v+w+"-23",r)})}a.1y(C.17,V(D,v){11 z=a.5O(v,C.W);U(z>-1&&a(p.17).2h(p.W).1q===a(p.17).1q||v==="4G"){p.W.1r(v+w,V(F){p.13.2f(":2y")?l(F):i(F)});1Y C.W[z]}19 p.17.1r(v+w,l)})}U(b){a.1y(C.W,V(D,v){p.W.1r(v+w,i)});p.13.1r("41"+w,V(){e.2P()})}U(k){U(d.1g.1z.2D||d.1g.1z.2U)a(G).1r("2D"+w,x);U(d.1g.1z.2U||E&&p.13.1c("1g")==="2T")a(1S).1r("3W"+w,x);/4G/i.1M(d.17.1w)&&a(1S).1r("3P"+w,V(D){11 v=e.1i.13;a(D.1j).3V(n).1q===0&&a(D.1j).2h(c).1q>1&&v.2f(":2y")&&!v.2C("1h-1X-1V")&&e.17()});d.1g.1j==="2e"&&a(1S).1r("3m"+w,V(D){U(d.1g.1z.2e&&!p.13.2C("1h-1X-1V")&&p.13.2f(":2y"))e.2l(D||a.1b.Y.2e)})}}V A(b,f,j,k){k=27(k,10)!==0;11 i=".Y-"+g,l={W:b?d.W.1j:a("<21/>"),17:f?d.17.1j:a("<21/>"),13:j?e.1i.13:a("<21/>")};f={W:2H(d.W.1w).2R(" "),17:2H(d.17.1w).2R(" ")};U(e.1t){a.1y(f.W,V(r,x){l.W.1B(x+i)});l.W.1B("3m"+i).1B("4a"+i).1B("Y-"+g+"-23");a.1y(f.17,V(r,x){l.17.2h(l.13).1B(x+i)});a.1y(a.1b.Y.46,V(r,x){l.17.2h(j?e.1i.18:2j).1B(x+i+"-23")});l.17.1B("4a"+i);l.13.1B("41"+i);U(k){a(G).1B("2D"+i);a(1S).1B("3P"+i+" 3m"+i)}}19 b&&l.W.1B(f.W+i+"-2L")}11 e=12,B="1h-13",n=".Y."+B;e.1K=g;e.1t=14;e.1i={1j:c};e.1P={1w:{},1j:2j,1V:14};e.1L={3n:[]};e.1U=d;e.1e={};a.1u(e,{1Z:V(b){11 f=e.1i,j=a.3r("4X");U(e.1t)X 14;e.1t=b?-2:-1;f.13=a("<21/>").1x({1K:B+"-"+g,44:"13","1Q":B+" Y 1h-13-3f 1h-4F-4I "+d.1p.3T}).1c("z-3e",a.1b.Y.4e+a(n).1q).2k("1h-1W",d.1p.1W).2k("1h-1X-1V",e.1P.1V).26("Y",e).2Y(d.1g.2i);f.3k=a("<21 />",{"1Q":B+"-3k"}).2Y(f.13);f.18=a("<21 />",{"1Q":B+"-18 "+(d.1p.1W?"1h-1W-18":""),1K:B+"-"+g+"-18"}).2Y(f.3k);u(d.18.1A);d.18.1o.1A&&q();a.1y(a.1b.Y.1e,V(){12.2K==="1Z"&&12(e)});e.1t=1a;y(1,1,1,1);a.1y(d.4r,V(k,i){f.13.1r("13"+k,i)});f.13.3G("4H",V(k){U(d.W.3p||b){f.13.17();e.W(e.1P.1w)}f.13.3J("1h-13-3f");j.3u=a.1u({},e.1P.1w);f.13.2B(j,[e.2g()]);k()});X e},2M:V(b){35(b.2I()){1N"1m":b=m("1g");1H;1N"3b":b=m("3b");1H;3N:b=h(b.2I());b=b[0].1G?b[0].1F():b[0].2E?b[0]:b[0][b[1]];1H}X b},3c:V(b,f){b=b.2I();11 j=h(b),k=e.1i,i=k.13,l,r,x,w={5P:{1K:V(){11 p=f===1a?a.1b.Y.4o:f,C=B+"-"+p;U(p!==14&&p.1q>0&&!a("#1h-13-"+p).1q){i[0].1K=C;k.18[0].1K=C+"-18";k.1o[0].1K=C+"-1o"}},"^18.1A":V(){u(f)},"^18.1o.1A":V(){U(e.1t)U(!e.1i.1o&&f){q();e.2l()}19 f?e.1i.1o.3i(f):t()},"^18.1o.24":V(){11 p=e.1i.24,C=e.1i.1o;U(e.1t)U(f){C||q();s()}19 p.2b()},"^1g.(2c|2v)$":V(){11 p=/2c$/i.1M(b)?"2c":"2v";U("1F"===1l f)d.1g[p]=22 a.1b.Y.1e.2G(f)},"^1g.(2c|2v|1z|1j)":V(){e.1t&&e.2l()},"^1g.2i$":V(){U(e.1t===1a){i.2Y(f);e.2l()}},"^(W|17).(1w|1j|2T|2A|23)":V(p,C,E,D){11 v=b.4b(/2T/i)>-1?[0,[0,1,1,1]]:[b.3M(0,3),b.3I(0)==="s"?[1,0,0,0]:[0,1,0,0]];U(v[0])p[C]=D;A.3j(e,v[1]);U(v[0])p[C]=E;y.3j(e,v[1])},"^W.3p$":V(){e.1t===14&&e.W()},"^1p.3T$":V(){e.1i.13.1c("1Q",B+" Y 1h-4F-4I "+f)},"^1p.1W$":V(){i.2k("1h-1W",!!f);k.2N.2k("1h-1W-4J",!!f);k.18.2k("1h-1W-18",!!f)},"^4r.(1Z|W|4s|17|2P|3v)":V(p,C,E,D){a.2p(f)?k.13.1r("13"+C,E):k.13.1B("13"+C,D)}}};a.1y(e.1e,V(p){U("1J"===1l 12.3F)w[p]=12.3F});l=j[0][j[1]];j[0][j[1]]=f.5Q?a(f):f;L(d,c);2Q(r 2w w)2Q(x 2w w[r])5R(x,"i").1M(b)&&w[r][x].1T(e,j[0],j[1],f,l);X e},2V:V(b,f){V j(){11 w=a(12),p=b?"1x":"3q",C=/^1|0$/.1M(w.1c("3B"));e.1i.1o&&c[p]("3l-4z",B+"-"+g+"-1o");c[p]("3l-4U",B+"-"+g+"-18");U(b){U(a.2s.31&&12.1p&&C){x=12.1p;x.48("3D");x.48("3B")}}19 C&&w.17()}U(e.1t===14)X 14;11 k=b?"W":"17",i=e.1i.13,l=d[k],r=i.2f(":2y"),x;U((1l b).4b("3A|30"))b=!i.2f(":2y");U(!r&&!b||i.2f(":5S"))X e;U(f){U(e.1P.1w&&/5T|5U/.1M(f.28)&&/4K|4L/.1M(e.1P.1w.28)&&a(f.1j).2h(d.W.1j).1q<2&&a(f.4M).3V(n).1q>0)X e;e.1P.1w=a.1u({},f)}r=a.3r("13"+k);r.3u=a.1u({},f);i.2B(r,[e.2g(),3S]);U(r.4i())X e;U(b){e.2P();e.2l(f);l.5i&&a(n).Y("17")}19 2n(e.1L.W);i.1x("3l-5W",5X(!b));i.3U(1a,14);U(a.2p(l.2o)){l.2o.1T(i,e.2g());i.3G(V(){j.1T(12);a(12).4R()})}19 U(l.2o===14){i[k]();j.1T(i)}19 i.4u(3S,b?1:0,j);b&&l.1j.2B("Y-"+g+"-23");X e},W:V(b){e.2V(1a,b)},17:V(b){e.2V(14,b)},2P:V(b){U(e.1t===4N)X 14;11 f=e.1i.13,j=a(n),k=27(f.1c("z-3e"),10),i=a.1b.Y.4e+j.1q,l=B+"-2P",r=a.1u({},b);U(!f.2C(l)&&k!==i){j.1c("z-3e",V(x,w){X w-1});a(n+"."+l).1y(V(){11 x=a(12),w=x.Y(),p;U(!w||w.1t===14)X 1a;x.3J(l);p=a.3r("5Y");p.3u=r;x.2B(p,[w,i])});b=a.3r("72");b.3u=r;f.2B(b,[e.2g(),i]);b.4i()||f.1c({5Z:i}).3R(l)}X e},2l:V(b){U(e.1t===14)X 14;11 f=d.1g.1j,j=e.1i.13,k=d.1g,i=k.2c,l=k.2v,r=e.1i.13.1d(),x=e.1i.13.1f(),w=a(k.2i)[0],p=0,C=0,E=a.3r("3X"),D=j.1c("1g")==="2T",v=a(k.1z.2i&&w!==1S.37?w:G),z={15:0,16:0};w={15:V(F){11 H=v.2O,I=i.x==="15"?r:i.x==="1D"?-r:-r/2,J=-2*k.1z.x,M=F+r-v.1d-H;U(H-F>0)z.15-=I+J;19 U(M>0)z.15-=(i.x==="1v"?-1:1)*(I+J);X z.15-F},16:V(F){11 H=v.2O,I=i.y==="16"?x:i.y==="1E"?-x:-x/2,J=-2*k.1z.y,M=F+x-v.1f-H;U(H-F>0)z.16-=I+J;19 U(M>0)z.16-=(i.y==="1v"?-1:1)*(I+J);X z.16-F}};v={4Q:v,1f:v[(v[0]===G?"h":"64")+"65"](),1d:v[(v[0]===G?"w":"66")+"69"](),3g:v.3g(),2O:v.2O()};U(f==="2e"){l={x:"15",y:"16"};b=k.1z.2e||!b||!b.3Q?a.1u({},a.1b.Y.2e):b;z={16:b.4l,15:b.3Q}}19{U(f==="1w")f=b&&b.1j&&b.28!=="3W"&&b.28!=="2D"?e.1P.1j=a(b.1j):e.1P.1j;f=a(f).6a(0);U(f.1q===0)X e;19 U(f[0]===1S||f[0]===G){p=f.1d();C=f.1f();U(f[0]===G)z={16:D?0:v.2O,15:D?0:v.3g}}19 U(f.2f("6b")&&a.1b.Y.1e.4p){z=a.1b.Y.1e.4p(f,l);p=z.1d;C=z.1f;z=z.1m}19{p=f.4c();C=f.43();z=o(f)}z.15+=l.x==="1D"?p:l.x==="1v"?p/2:0;z.16+=l.y==="1E"?C:l.y==="1v"?C/2:0}z.15+=k.1z.x+(i.x==="1D"?-r:i.x==="1v"?-r/2:0);z.16+=k.1z.y+(i.y==="1E"?-x:i.y==="1v"?-x/2:0);z.4d=k.1z.2U&&f[0]!==G&&f[0]!==1S.37?{15:w.15(z.15),16:w.16(z.16)}:{15:0,16:0};j.1x("1Q",V(){X a(12).1x("1Q").34(/1h-13-4P-\\w+/i,"")}).3R(B+"-4P-"+i.56());E.3u=a.1u({},b);j.2B(E,[e.2g(),z,v.4Q]);U(E.4i())X e;1Y z.4d;U(k.2i[0]==1S.37){U(z.16+v.2O<1)z.16=0;U(z.15+v.3g<1)z.15=0}U(j.2f(":2y")&&a.2p(k.2o)){k.2o.1T(j,e.2g(),z);j.3G(V(){11 F=a(12);F.1c({3B:"",1f:""});a.2s.31&&12.1p&&12.1p.48("3D");F.4R()})}19 6e(z.15,z.16)||j.1c(z);X e},4n:V(b){11 f=e.1i.13;U(e.1t)f.2k("1h-1X-1V",b);19 e.1P.1V=!!b;X e},2u:V(){11 b=e.1i,f=b.1j.26("42");e.1t&&a.1y(e.1e,V(){12.2K==="1Z"&&12.2u()});A(1,1,1,1);c.4V("Y");e.1t&&b.13.2b();f&&c.1x("1o",f);c.3q("3l-4U");X c},2g:V(){11 b=a.1u({},e);1Y b.1P;1Y b.1L;1Y b.1U;1Y b.1e;1Y b.1Z;1Y b.2g;X b}})}V P(c,d){11 g,h=a(12);g=a(1S.37);11 o=h.2a?h.2a(d.2a):{};o=a.1u(1a,{},d,L(a.1u(1a,{},(o&&d.2a.28==="6f"?o[d.2a.52]:{})||o)));11 m=o.1g,t=12===1S?g:h;h.4V("2a");U("3A"===1l o.18.1A)U(o.18.1x!==14&&h.1x(o.18.1x))o.18.1A=h.1x(o.18.1x);19 X 14;U(m.2i===14)m.2i=g;U(m.1j===14)m.1j=t;U(o.W.1j===14)o.W.1j=t;U(o.17.1j===14)o.17.1j=t;m.2v=22 a.1b.Y.1e.2G(m.2v);m.2c=22 a.1b.Y.1e.2G(m.2c);U(h.26("Y"))U(o.4f)h.Y("2u");19 U(o.4f===14)X 14;g=22 O(h,o,c);h.26("Y",g);X g}V Q(c){11 d=12;d.3F={"^18.1I":V(){12.1e.1I.3h(12.1U.18.1I)}};a.1u(d,{2x:V(){11 g=c.1U.18.1I;c.1i.13.1r("4X.1I",V(){d.3h(g);c.1i.13.1r("38.1I",V(){g.2X===14&&c.1t===1a&&d.3h(g)})})},3h:V(g){a.1I(a.1u(1a,{},g,{49:V(h,o){U(a.2p(g.49))U(g.49.1T(c.2g(),h,o)===14)X;c.3c("18.1A",h)},3L:V(h,o,m){11 t=o||m;U(a.2p(g.3L)){h=g.3L.1T(c.2g(),h,o,m);U(h===14)X}c.3c("18.1A",t)}}));X d},2u:V(){c.1i.13.1B("38.1I")}});d.2x()}V N(c,d,g){11 h=1n.1R(d/2),o=1n.1R(g/2);d={4Y:[[0,0],[d,g],[d,0]],4Z:[[0,0],[d,0],[0,g]],4W:[[0,g],[d,0],[d,g]],53:[[0,0],[0,g],[d,g]],6i:[[0,g],[h,0],[d,g]],6s:[[0,0],[d,0],[h,g]],6r:[[0,0],[d,o],[0,g]],6l:[[d,0],[d,g],[0,o]]};d.6m=d.4Y;d.6n=d.4Z;d.6p=d.4W;d.6t=d.53;X d[c]}V R(c){V d(n){11 b=m.1k,f=["15","1D"],j=o.1m,k,i;U(o.1C===14||!b)X 14;n=n||h.1C;k=n.1G;i=k==="y"?"x":"y";b.1c({16:"",1E:"",15:"",1D:"",54:""});f[k==="y"?"4j":"6u"]("16","1E");j=1n.2z(n[i]==="1v"?j:0,j)-B[i];35(n[k==="y"?"x":"y"]){1N"1v":b.1c(f[0],"50%").1c("54-"+f[0],-(u[k==="y"?"1d":"1f"]/2)+j);1H;1N f[0]:b.1c(f[0],j);1H;1N f[1]:b.1c(f[1],j);1H}j=u[k==="x"?"1d":"1f"];U(A){t.2k("1h-13-3f",!t.2f(":2y"));j-=27(s.1c("1s-"+n[k]+"-1d"),10)||0;t.3J("1h-13-3f")}b.1c(n[k],-j)}V g(n,b,f,j){U(m.1k){n=a.1u({},h.1C);b=n.1G==="y"?["y","16","15","1f","x"]:["x","15","16","1d","y"];11 k=f.4d,i=[27(s.1c("1s-"+n[b[0]]+"-1d"),10)||0,0];U(k.15)n.x=n.x==="1v"?k.15>0?"15":"1D":n.x==="15"?"1D":"15";U(k.16)n.y=n.y==="1v"?k.16>0?"16":"1E":n.y==="16"?"1E":"16";i[1]=1n.2z(n[b[4]]==="1v"?o.1m:0,o.1m);f[b[1]]+=(n[b[0]]===b[1]?1:-1)*(u[b[3]]-i[0]);f[b[2]]-=(n[b[4]]===b[2]||n[b[4]]==="1v"?1:-1)*i[1];B.x=1n.2z(-f.15-j.3g(),0);B.y=1n.2z(-f.16-j.2O(),0);U(n.1F()!==q.1C.1F()&&(q.16!==k.16||q.15!==k.15))h.3O(n);19 1n.2z(B.x,B.y,0)&&d();q.15=k.15;q.16=k.16;q.1C=n}}11 h=12,o=c.1U.1p.1k,m=c.1i,t=m.13,s=m.3k,q={16:0,15:0,1C:{1F:V(){}}},u={1d:o.1d,1f:o.1f},y={},A=o.1s||0,e=o.2S||14,B={x:0,y:0};h.1C=2j;h.25=2j;h.3F={"^1g.2c|1p.1k.(1C|25|2S|1s)":V(){A=o.1s;U(h.2x())12.2M("1g.1j")!=="2e"&&12.2l();19 h.2u()},"^1p.1k.(1f|1d)":V(){u={1d:o.1d,1f:o.1f};h.2L();h.3O();c.2l()}};a.1u(h,{2x:V(){11 n=a.2s.31,b=h.25&&/1v/i.1M(h.25.1F()),f=h.4O();U(f){U(e===1a)e=a("<2t />")[0].4k?"2t":n&&(b||u.1f!==u.1d)?"2F":"2Z";19 U(e==="2t")e=n?"2F":!a("<2t />")[0].4k?"2Z":"2t";19 U(e==="2Z")e=n&&b?"2F":e;h.2L();h.57();h.3O();t.1B(".Y-1k").1r("3X.Y-1k",g)}X f},4O:V(){11 n=o.1C,b=o.25||n,f=c.1U.1g.2v,j=c.1U.1g.2c;U(j.1F)j=j.1F();U(n===14||j===14&&f===14)X 14;19{U(n===1a)h.1C=22 a.1b.Y.1e.2G(j);19 U(!n.1F)h.1C=22 a.1b.Y.1e.2G(n);U(b===1a)h.25=22 a.1b.Y.1e.2G(j);19 U(!b.1F){h.25=22 a.1b.Y.1e.2G(b);h.25.1G=h.1C.1G}}X h.1C.1F()!=="4y"},57:V(){11 n=m.1k,b=h.25[h.25.1G],f="1s-"+b+"-36";y.2J=n.1c("3E-36","").1c("1s","").1c("3E-36")||"2W";y.1s=n.2M(0).1p?n.2M(0).1p["1s"+b.3I(0)+b.3M(1)+"6w"]:n.1c(f)||"2W";U(/59?\\(0, 0, 0(, 0)?\\)|2W/i.1M(y.2J))y.2J=s.1c(A?"3E-36":f);U(!y.1s||/59?\\(0, 0, 0(, 0)?\\)|2W/i.1M(y.1s))y.1s=s.1c(f)||y.2J;a("*",n).2h(n).1c("3E-36","2W").1c("1s",0)},2L:V(){11 n=u.1d,b=u.1f;m.1k&&m.1k.2b();m.1k=a(\'<21 1Q="1h-13-1k" />\').2k("1h-1W-18",c.1U.1p.1W).1c(u).4g(t);35(e){1N"2t":m.1k.3d(\'<2t 1f="\'+b+\'" 1d="\'+n+\'" />\');1H;1N"2F":m.1k.3i(\'<2F:45 6x="0 0" 6y="\'+n+" "+b+\'" 6z="\'+!!A+\'" 1p="5c:3w(#3N#5d); 39:5e-3x; 6A:1a; 1g: 3y; 16:0; 15:0; 1d:\'+n+"2q; 1f:"+b+"2q; 6B-6C:"+h.1C.y+\';"><2F:6D 6E="\'+(A-2)+\'2q" 6F="6G" 6H="10" 1p="5c:3w(#3N#5d); 39:5e-3x;" />\');1H;1N"2Z":m.1k.3d(\'<21 1Q="1h-13-1k-6I" />\').3d(A?\'<21 1Q="1h-13-1k-1s" />\':"");1H}X h},3O:V(n){11 b=m.1k,f=u.1d,j=u.1f,k=A>0?0:1,i=1n.3K(A/2+0.5),l=a.1u({},h.25),r,x;U(!n)n=h.1C;U(l.x==="3H")l.x=n.x;19 U(l.y==="3H")l.y=n.y;19 U(l.x===l.y)l[n.1G]=n[n.1G];x=1n[/b|r/.1M(l[l.1G==="y"?"x":"y"])?"3K":"1R"];b=b.5k();35(e){1N"2t":b=b.2M(0).4k("2d");b.6J();b.6K(0,0,5g,5g);2Q(r=N(l.1F(),f,j);k<2;k++){U(k){b.6L();b.6M(x((l.x==="15"?1:l.x==="1D"?-1:0)*(A+1)*(l.1G==="y"?0.5:1)),x((l.y==="16"?1:l.y==="1E"?-1:0)*(A+1)*(l.1G==="x"?0.5:1)))}b.6N();b.6O(r[0][0],r[0][1]);b.5h(r[1][0],r[1][1]);b.5h(r[2][0],r[2][1]);b.6P();b.6Q=y[k?"2J":"1s"];b.2J()}1H;1N"2F":r=N(l.1F(),f,j);k="m"+r[0][0]+","+r[0][1]+" l"+r[1][0]+","+r[1][1]+" "+r[2][0]+","+r[2][1]+" 6R";b.1x({6S:k,6T:y.2J});U(A){b.5k().1x("36",y.1s);U(l.1G==="y"){b.1c("16",(l.y==="16"?1:-1)*(A-2));b.1c("15",l.x==="15"?1:-2)}19{b.1c("15",(l.x==="15"?1:-1)*(A-2));b.1c("16",l.y==="16"?1:-2)}}1H;1N"2Z":U(l.1G==="y"){k=f>j?1.5:fj?5:2.2;i=[1n.1R(k*i*(l.x==="1D"?-1:1)*(l.y==="1v"?0.9:1)),l.y==="16"?i:l.y==="1E"?-i:0]}b.3q("1p").1y(V(w){11 p={x:l.1G==="x"?l.x==="15"?"1D":"15":l.x,y:l.1G==="y"?l.y==="16"?"1E":"16":l.y},C=l.x==="1v"?["15","1D",p.y,j,f]:["16","1E",p.x,f,j],E=y[!w&&A?"1s":"2J"];w&&a(12).1c({1g:"3y","z-3e":1,15:i[0],16:i[1]});l.x==="1v"||l.y==="1v"?a(12).1c("1s-"+C[2],C[3]+"2q 4q "+E).1c("1s-"+C[0],1n.1R(C[4]/2)+"2q 5m 2W").1c("1s-"+C[1],1n.1R(C[4]/2)+"2q 5m 2W"):a(12).1c("1s-1d",1n.1R(j/2)+"2q "+1n.1R(f/2)+"2q").1c("1s-"+p.x,1n.1R(f/2)+"2q 4q "+E).1c("1s-"+p.y,1n.1R(j/2)+"2q 4q "+E)});1H}d(n);X h},2u:V(){m.1k&&m.1k.2b();t.1B(".Y-1k")}})}V S(c,d){11 g=12,h=c.1i,o=h.13;h.29=a("#Y-29");a.1u(g,{2x:V(){o.1r("38.2r 4v.2r",V(m,t,s){m=m.28.34("13","");a.2p(d[m])?d[m].1T(h.29,s,t):g[m](s)});h.29.1q||g.2L();d.3v===1a&&h.29.1r("3C.2r"+c.1K,V(){c.17.1T(c)})},2L:V(){h.29=a("<21 />",{1K:"Y-29",1c:{1g:"3y",16:0,15:0,39:"5n"}}).2Y(1S.37);a(G).1r("2D.2r",V(){h.29.1c({1f:1n.2z(a(G).1f(),a(1S).1f()),1d:1n.2z(a(G).1d(),a(1S).1d())})}).2B("2D")},2V:V(m){11 t=h.29,s=c.1U.W.1O.2o,q=m?"W":"17";t.3U(1a,14);U(a.2p(s))s.1T(t,m);19 s===14?t[q]():t.4u(3S,m?0.7:0,V(){m||a(12).17()})},W:V(){g.2V(1a)},17:V(){g.2V(14)},2u:V(){11 m=1a;a("*").1y(V(){11 t=a(12).26("Y");U(t&&t.1K!==c.1K&&t.1U.W.1O)X m=14});U(m){h.29.2b();a(G).1B("3W.2r 2D.2r")}19 h.29.1B("3C.2r"+c.1K);o.1B("38.2r 4v.2r")}});g.2x()}V T(c){11 d=12,g=c.1i,h=g.13,o=".2m-"+c.1K,m="3X"+o+" 38"+o;a.1u(d,{2x:V(){g.2m=a(\'<3Z 1Q="1h-13-2m" 5o="0" 5p="-1" 5q="5r:\\\'\\\';" 1p="39:3x; 1g:3y; z-3e:-1; 3D:5s(3B=0);">\');g.2m.2Y(h);h.1r(m,d.1z)},1z:V(){11 t=c.2M("3b"),s=c.1e.1k,q=c.1i.1k,u;u=27(h.1c("1s-15-1d"),10)||0;u={15:-u,16:-u};U(s&&q){s=s.1C.1G==="x"?["1d","15"]:["1f","16"];u[s[1]]-=q[s[0]]()}g.2m.1c(u).1c(t)},2u:V(){d.3Z.2b();h.1B(m)}});d.2x()}a.1b.Y=V(c,d,g){11 h=2H(c).2I(),o=2j,m=h==="4n"?[1a]:a.5t(32).4D(1,10),t=m[m.1q-1],s=a.1u(1a,{},c),q;U(!32.1q&&12.26("Y")||h==="5u")X(s=12.26("Y"))?s.2g():K;19 U("1F"===1l c){12.1y(V(){11 u=a(12).26("Y");U(!u)X 1a;U(/5v|3c/.1M(h)&&d)U(g!==K)u.3c(d,g);19 o=u.2M(d);19{U(!u.1t&&(h==="W"||h==="2V")){U(t&&t.5y)u.1P.1w=t;u.1Z(1)}19 U(h==="5A"){h="4n";m=[14]}u[h]&&u[h].3j(u[h],m)}});X o!==2j?o:12}19 U("1J"===1l c||!32.1q){q=L(s,12);s=a.1u(1a,{},a.1b.Y.3o,s);X a.1b.Y.1r.1T(q,s,t)}};a.1b.Y.1r=V(c,d){X 12.1y(V(g){V h(e){V B(){s.1Z(1l e==="1J"||q.W.3p);u.W.1B(y.W);u.17.1B(y.17)}U(s.1P.1V)X 14;s.1P.1w=a.1u({},e);U(q.W.2A>0){2n(s.1L.W);s.1L.W=3s(B,q.W.2A);y.W!==y.17&&u.17.1r(y.17,V(){2n(s.1L.W)})}19 B()}11 o=a(12),m=c.1K,t=c.18.1A,s,q,u,y,A;c.1K=m=m===14||m.1q<1||a("#1h-13-"+m).1q?a.1b.Y.4o++:m;A=".Y-"+m+"-2L";s=P.1T(12,m,c);U(s===14)X 1a;q=s.1U;U(a.63(t))q.18.1A=t[g];o.1x("1o")&&o.26("42",o.1x("1o")).3q("1o");a.1y(a.1b.Y.1e,V(){12.2K==="2K"&&12(s)});u={W:q.W.1j,17:q.17.1j};y={W:2H(q.W.1w).34(" ",A+" ")+A,17:2H(q.17.1w).34(" ",A+" ")+A};u.W.1r(y.W,h);U(c.W.3p||c.58)h(d)})};a.1y({1x:V(c){11 d=a(12),g=d.26("Y");X 32.1q===1&&c==="1o"&&g&&g.1t===1a?d.26("42"):2j},2b:a.1h?2j:V(c,d){a(12).1y(V(){U(!d)U(!c||a.3D(c,[12]).1q)a("*",12).2h(12).1y(V(){a(12).5V("2b")})})}},V(c,d){U(!d)X 1a;a.1b["4t"+c]=a.1b[c];a.1b[c]=V(){X d.3j(12,32)||a.1b["4t"+c].3j(12,32)}});a(1S.37).1x("44",V(c,d){X!d?"62":d});a(1S).1r("3m.Y",V(c){a.1b.Y.2e={3Q:c.3Q,4l:c.4l}});a.1b.Y.4o=0;a.1b.Y.46="3C 6d 3P 4S 3m 5l 4m".2R(" ");a.1b.Y.4e=6g;a.1b.Y.1e={2G:V(c){c=2H(c).34(/([A-Z])/," $1").34(/6o/6q,"1v").2I();12.x=(c.51(/15|1D|1v/i)||["3H"])[0].2I();12.y=(c.51(/16|1E|1v/i)||["3H"])[0].2I();12.1G=c.3I(0).4b(/^(t|b)/)>-1?"y":"x";12.1F=V(){X 12.1G==="y"?12.y+12.x:12.x+12.y};12.56=V(){11 d=12.x.3M(0,1),g=12.y.3M(0,1);X d===g?d:d==="c"||d!=="c"&&g!=="c"?g+d:d+g}}};a.1b.Y.3o={58:14,1K:14,4f:1a,2a:{28:"1Q"},18:{1A:1a,1x:"1o",1o:{1A:14,24:14}},1g:{2c:"16 15",2v:"1E 1D",1j:14,2i:14,1z:{x:0,y:0,2e:1a,2U:14,2D:1a,2i:14},2o:1a},W:{1j:14,1w:"4m",2o:1a,2A:3S,5i:14,3p:14},17:{1j:14,1w:"5l",2o:1a,2A:0,2T:14,23:14},1p:{3T:"",1W:14},4r:{1Z:a.33,4s:a.33,W:a.33,17:a.33,2P:a.33,3v:a.33}};a.1b.Y.1e.1I=V(c){11 d=c.1e.1I,g=c.1U.18.1I;U(g&&g.3w)U(d)X d;19{c.1e.1I=22 Q(c);X c.1e.1I}};a.1b.Y.1e.1I.2K="1Z";a.1b.Y.1e.1I.3a=V(c){3Y{11 d=c.18.1I;U(1l d!=="1J")d=c.18.1I={3w:d};U("3A"!==1l d.2X&&d.2X)d.2X=!!d.2X}40(g){}};a.1u(1a,a.1b.Y.3o,{18:{1I:{2X:1a}}});a.1b.Y.1e.1k=V(c){11 d=c.1e.1k,g=c.1U.1p.1k;U(g&&g.1C)U(d)X d;19{c.1e.1k=22 R(c);c.1e.1k.2x();X c.1e.1k}};a.1b.Y.1e.1k.2K="1Z";a.1b.Y.1e.1k.3a=V(c){3Y{11 d=c.1p.1k;U(1l d!=="1J")c.1p.1k={1C:d};U(!/1F|3A/i.1M(1l d.1C))d.1C=4x;U(1l d.2S!=="1F")d.2S=1a;U(!/2t|2Z/i.1M(d.2S))d.2S=1a;1l d.1d!=="30"&&1Y d.1d;1l d.1f!=="30"&&1Y d.1f;1l d.1s!=="30"&&1Y d.1s;1l d.1m!=="30"&&1Y d.1m}40(g){}};a.1u(1a,a.1b.Y.3o,{1p:{1k:{1C:1a,2S:1a,1d:9,1f:9,1s:0,1m:0}}});a.1b.Y.1e.4p=V(c,d){V g(A,e){2Q(11 B=0,n=1,b=1,f=0,j=0,k=A.1d,i=A.1f;k>0&&i>0&&n>0&&b>0;){k=1n.1R(k/2);i=1n.1R(i/2);U(d.x==="15")n=k;19 U(d.x==="1D")n=A.1d-k;19 n+=1n.1R(k/2);U(d.y==="16")b=i;19 U(d.y==="1E")b=A.1f-i;19 b+=1n.1R(i/2);2Q(B=e.1q;B--;){U(e.1q<2)1H;f=e[B][0]-A.1m.15;j=e[B][1]-A.1m.16;U(d.x==="15"&&f>=n||d.x==="1D"&&f<=n||d.x==="1v"&&(fA.1d-n)||d.y==="16"&&j>=b||d.y==="1E"&&j<=b||d.y==="1v"&&(jA.1f-b))e.60(B,1)}}X{15:e[0][0],16:e[0][1]}}11 h=c.1x("45").2I(),o=c.1x("6c").2R(","),m=[],t=a(\'3n[6h="#\'+c.6j("5f").1x("52")+\'"]\'),s=t.1m(),q={1d:0,1f:0,1m:{16:55,1D:0,1E:0,15:55}},u=0,y=0;s.15+=1n.3K((t.4c()-t.1d())/2);s.16+=1n.3K((t.43()-t.1f())/2);U(h==="4w")2Q(u=o.1q;u--;){y=[27(o[--u],10),27(o[u+1],10)];U(y[0]>q.1m.1D)q.1m.1D=y[0];U(y[0]q.1m.1E)q.1m.1E=y[1];U(y[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('"6V 5w";11 1a=4w,14=4M,2h=6Z;(V(a,F,K){V L(b,c){11 h,i=a();U(!b)X 14;3X{U("2a"2x b&&"1I"!==1l b.2a)b.2a={2c:b.2a};U("18"2x b){U("1I"!==1l b.18||b.18.2C)b.18={1A:b.18};h=b.18.1A||14;U(!a.2m(h)&&(!h&&!h.1w||h.1q<1||"1I"===1l h&&!h.2C))h=b.18.1A=14;U("1n"2x b.18&&"1I"!==1l b.18.1n)b.18.1n={1A:b.18.1n}}U("1g"2x b){U("1I"!==1l b.1g)b.1g={2e:b.1g,2v:b.1g};U("1I"!==1l b.1g.1B)b.1g.1B={};U("5a"!==1l b.1g.1B.2M)b.1g.1B.2M=!!b.1g.1B.2M}U("W"2x b){U("1I"!==1l b.W)b.W={1x:b.W};U("1I"!==1l b.W)b.W=b.W.2C?{1i:b.W}:{1x:b.W}}U("15"2x b)U("1I"!==1l b.15)b.15=b.15.2C?{1i:b.15}:{1x:b.15};U("1o"2x b&&"1I"!==1l b.1o)b.1o={3R:b.1o}}3Z(o){}U(a.2m(h)){b.18.1A=[];c.1y(V(){11 l=h.1U(13);U(l){b.18.1A.4h(l);i=i.2i(a(13))}})}19 i=c;a.1y(a.1c.Y.1e,V(){13.3j&&13.3j(b)});X c?i:b}V O(b,c,h){V i(d){11 e,k=d.2Q("."),n=c[k[0]];2U(d=1;d",{3l:e}):a("",{"1O":"1h-1V-3N",1A:"5k 12",1n:"5k 12",1b:{"1A-5C":"-6J"}}).5D(a("<5E />",{"1O":"1h-4y 1h-4y-59"}));d.22.4e(d.2R).1w("4p","22").3S(j+"-"+(e===1a?"59":"22")).4z(V(k){a(13).2k("1h-1V-4z",k.2c==="40")}).3F(V(){d.12.2B("1h-1V-1W")||f.15();X 14}).1p("3z 5F 4Q 5G 47",V(k){a(13).2k("1h-1V-6q 1h-1V-2P",/5H$/i.1M(k.2c))})}V r(){11 d=f.1j;d.2R&&t();d.2R=a("<24 />",{"1O":j+"-2R "+(c.1o.1X?"1h-1X-4H":"")}).3p(d.1n=a("<24 />",{1K:j+"-"+h+"-1n","1O":j+"-1n",3l:c.18.1n.1A})).4e(d.3g);c.18.1n.22&&s()}V u(d){11 e=f.1j;U(!f.1u||!d)X 14;U(a.2m(d))d=d.1U(b);d.2C&&d.1q>0?e.18.5I().3p(d.1b({39:"3B"})):e.18.3l(d);e.12.3O("4F",V(k){V n(q){g=g.4g(q);U(g.1q===0){q=5J 0;11 w=f.1j.12,y,v;U(f.1u&&a.2q.2Z&&25(a.2q.46.3H(0),10)<9){w.1b({1d:"5K",4P:"5n"});q=l("3a").1d;w.1b({4P:""});y=25(w.1b("2V-1d"),10)||0;v=25(w.1b("4C-1d"),10)||0;q=y+v?1r.4C(1r.2V(q,v),y):q;w.1d(q)}f.1u===1a&&f.2j(f.1R.1x);k()}}11 g=a("3k:4g([1f]):4g([1d])",f.1j.18);g.1y(V(q,w){11 y=["67","3I","3i","5L",""].63(".Y-5M ");a(13).1p(y,V(){2n(f.1L.3k[q]);n(13)});(V v(){U(w.1f)X n(w);f.1L.3k[q]=3o(v,20)})();X 1a});g.1q===0&&n(g)});X f}V z(d,e,k,n){V g(D){U(p.12.2B("1h-1V-1W"))X 14;p.W.2E("Y-"+h+"-23");2n(f.1L.W);2n(f.1L.15);11 x=V(){f.W(D)};U(c.W.2z>0)f.1L.W=3o(x,c.W.2z);19 x()}V q(D){U(p.12.2B("1h-1V-1W"))X 14;11 x=a(D.4K||D.1i).3U(m)[0]==p.12[0];2n(f.1L.W);2n(f.1L.15);U(c.15.2T&&(c.1g.1i==="2f"&&x||/2f(4J|4I|4s)/.1M(D.2c)&&x)){D.68();D.61();X 14}p.12.3T(1a);U(c.15.2z>0)f.1L.15=3o(V(){f.15(D)},c.15.2z);19 f.15(D)}V w(D){U(p.12.2B("1h-1V-1W"))X 14;2n(f.1L.23);f.1L.23=3o(V(){f.15(D)},c.15.23)}V y(D){f.1j.12.26(":2y")&&f.2j(D)}11 v=".Y-"+h,p={W:c.W.1i,15:c.15.1i,12:f.1j.12},C={W:2D(c.W.1x).2Q(" "),15:2D(c.15.1x).2Q(" ")},G=a.2q.2Z&&/^6\\.[0-9]/.1M(a.2q.46);b.1p("2g.Y",V(){f.2t()});U(k&&c.15.2T){p.15=p.15.2i(p.12);p.12.1p("4n"+v,V(){p.12.2B("1h-1V-1W")||2n(f.1L.15)})}U(e){U("30"===1l c.15.23){p.W.1p("Y-"+h+"-23",w);a.1y(a.1c.Y.43,V(D,x){p.15.2i(f.1j.12).1p(x+v+"-23",w)})}a.1y(C.15,V(D,x){11 B=a.5O(x,C.W);U(B>-1&&a(p.15).2i(p.W).1q===a(p.15).1q||x==="4E"){p.W.1p(x+v,V(E){p.12.26(":2y")?q(E):g(E)});1Z C.W[B]}19 p.15.1p(x+v,q)})}U(d){a.1y(C.W,V(D,x){p.W.1p(x+v,g)});p.12.1p("4n"+v,V(){f.2P()})}U(n){U(c.1g.1B.2A||c.1g.1B.2M)a(F).1p("2A"+v,y);U(c.1g.1B.2M||G&&p.12.1b("1g")==="2T")a(1T).1p("3V"+v,y);/4E/i.1M(c.15.1x)&&a(1T).1p("3z"+v,V(D){11 x=f.1j.12;a(D.1i).3U(m).1q===0&&a(D.1i).2i(b).1q>1&&x.26(":2y")&&!x.2B("1h-1V-1W")&&f.15()});c.1g.1i==="2f"&&a(1T).1p("3m"+v,V(D){U(c.1g.1B.2f&&!p.12.2B("1h-1V-1W")&&p.12.26(":2y"))f.2j(D||a.1c.Y.2f)})}}V A(d,e,k,n){n=25(n,10)!==0;11 g=".Y-"+h,q={W:d?c.W.1i:a("<24/>"),15:e?c.15.1i:a("<24/>"),12:k?f.1j.12:a("<24/>")};e={W:2D(c.W.1x).2Q(" "),15:2D(c.15.1x).2Q(" ")};U(f.1u){a.1y(e.W,V(w,y){q.W.1C(y+g)});q.W.1C("3m"+g).1C("47"+g).1C("Y-"+h+"-23");a.1y(e.15,V(w,y){q.15.2i(q.12).1C(y+g)});a.1y(a.1c.Y.43,V(w,y){q.15.2i(k?f.1j.18:2h).1C(y+g+"-23")});q.15.1C("47"+g);q.12.1C("4n"+g);U(n){a(F).1C("2A"+g);a(1T).1C("3z"+g+" 3m"+g)}}19 d&&q.W.1C(e.W+g+"-2O")}11 f=13,j="1h-12",m=".Y."+j;f.1K=h;f.1u=14;f.1j={1i:b};f.1R={1x:{},1i:2h,1W:14};f.1L={3k:[]};f.1S=c;f.1e={};a.1t(f,{21:V(d){11 e=f.1j,k=a.3t("54");U(f.1u)X 14;f.1u=d?-2:-1;e.12=a("<24/>").1w({1K:j+"-"+h,4p:"12","1O":j+" Y 1h-12-37 1h-4D-4G "+c.1o.3R}).1b("z-3d",a.1c.Y.4f+a(m).1q).2k("1h-1X",c.1o.1X).2k("1h-1V-1W",f.1R.1W).29("Y",f).2X(c.1g.2u);e.3g=a("<24 />",{"1O":j+"-3g"}).2X(e.12);e.18=a("<24 />",{"1O":j+"-18 "+(c.1o.1X?"1h-1X-18":""),1K:j+"-"+h+"-18"}).2X(e.3g);u(c.18.1A);c.18.1n.1A&&r();a.1y(a.1c.Y.1e,V(){13.2J==="21"&&13(f)});f.1u=1a;z(1,1,1,1);a.1y(c.4q,V(n,g){e.12.1p("12"+n,g)});e.12.3O("4F",V(n){U(c.W.3s||d){e.12.15();f.W(f.1R.1x)}e.12.3K("1h-12-37");k.3n=a.1t({},f.1R.1x);e.12.2E(k,[f.27()]);n()});X f},2K:V(d){34(d.2I()){1N"1m":d=l("1g");1H;1N"3a":d=l("3a");1H;3N:d=i(d.2I());d=d[0].1G?d[0].1F():d[0].2C?d[0]:d[0][d[1]];1H}X d},3b:V(d,e){d=d.2I();11 k=i(d),n=f.1j,g=n.12,q,w,y,v={5P:{1K:V(){11 p=e===1a?a.1c.Y.4k:e,C=j+"-"+p;U(p!==14&&p.1q>0&&!a("#1h-12-"+p).1q){g[0].1K=C;n.18[0].1K=C+"-18";n.1n[0].1K=C+"-1n"}},"^18.1A":V(){u(e)},"^18.1n.1A":V(){U(f.1u)U(!f.1j.1n&&e){r();f.2j()}19 e?f.1j.1n.3l(e):t()},"^18.1n.22":V(){11 p=f.1j.22,C=f.1j.1n;U(f.1u)U(e){C||r();s()}19 p.2g()},"^1g.(2e|2v)$":V(){11 p=/2e$/i.1M(d)?"2e":"2v";U("1F"===1l e)c.1g[p]=1Y a.1c.Y.1e.2F(e)},"^1g.(2e|2v|1B|1i)":V(){f.1u&&f.2j()},"^1g.2u$":V(){U(f.1u===1a){g.2X(e);f.2j()}},"^(W|15).(1x|1i|2T|2z|23)":V(p,C,G,D){11 x=d.49(/2T/i)>-1?[0,[0,1,1,1]]:[d.3E(0,3),d.3H(0)==="s"?[1,0,0,0]:[0,1,0,0]];U(x[0])p[C]=D;A.36(f,x[1]);U(x[0])p[C]=G;z.36(f,x[1])},"^W.3s$":V(){f.1u===14&&f.W()},"^1o.3R$":V(){f.1j.12.1b("1O",j+" Y 1h-4D-4G "+e)},"^1o.1X$":V(){g.2k("1h-1X",!!e);n.2R.2k("1h-1X-4H",!!e);n.18.2k("1h-1X-18",!!e)},"^4q.(21|W|4s|15|2P|3J)":V(p,C,G,D){a.2m(e)?n.12.1p("12"+C,G):n.12.1C("12"+C,D)}}};a.1y(f.1e,V(p){U("1I"===1l 13.3D)v[p]=13.3D});q=k[0][k[1]];k[0][k[1]]=e.5Q?a(e):e;L(c,b);2U(w 2x v)2U(y 2x v[w])5R(y,"i").1M(d)&&v[w][y].1U(f,k[0],k[1],e,q);X f},2L:V(d,e){V k(){11 v=a(13),p=d?"1w":"3f",C=/^1|0$/.1M(v.1b("3y"));f.1j.1n&&b[p]("3h-4A",j+"-"+h+"-1n");b[p]("3h-4S",j+"-"+h+"-18");U(d){U(a.2q.2Z&&13.1o&&C){y=13.1o;y.45("3C");y.45("3y")}}19 C&&v.15()}U(f.1u===14)X 14;11 n=d?"W":"15",g=f.1j.12,q=c[n],w=g.26(":2y"),y;U((1l d).49("3A|30"))d=!g.26(":2y");U(!w&&!d||g.26(":5S"))X f;U(e){U(f.1R.1x&&/5T|5V/.1M(e.2c)&&/4J|4I/.1M(f.1R.1x.2c)&&a(e.1i).2i(c.W.1i).1q<2&&a(e.4K).3U(m).1q>0)X f;f.1R.1x=a.1t({},e)}w=a.3t("12"+n);w.3n=a.1t({},e);g.2E(w,[f.27(),3w]);U(w.44())X f;U(d){f.2P();f.2j(e);q.5g&&a(m).Y("15")}19 2n(f.1L.W);g.1w("3h-5W",5X(!d));g.3T(1a,14);U(a.2m(q.2o)){q.2o.1U(g,f.27());g.3O(V(){k.1U(13);a(13).4R()})}19 U(q.2o===14){g[n]();k.1U(g)}19 g.4t(3w,d?1:0,k);d&&q.1i.2E("Y-"+h+"-23");X f},W:V(d){f.2L(1a,d)},15:V(d){f.2L(14,d)},2P:V(d){U(f.1u===4M)X 14;11 e=f.1j.12,k=a(m),n=25(e.1b("z-3d"),10),g=a.1c.Y.4f+k.1q,q=j+"-2P",w=a.1t({},d);U(!e.2B(q)&&n!==g){k.1b("z-3d",V(y,v){X v-1});a(m+"."+q).1y(V(){11 y=a(13),v=y.Y(),p;U(!v||v.1u===14)X 1a;y.3K(q);p=a.3t("5Y");p.3n=w;y.2E(p,[v,g])});d=a.3t("72");d.3n=w;e.2E(d,[f.27(),g]);d.44()||e.1b({5Z:g}).3S(q)}X f},2j:V(d){U(f.1u===14)X 14;11 e=c.1g.1i,k=f.1j.12,n=c.1g,g=n.2e,q=n.2v,w=f.1j.12.1d(),y=f.1j.12.1f(),v=a(n.2u)[0],p=0,C=0,G=a.3t("3W"),D=k.1b("1g")==="2T",x=a(n.1B.2u&&v!==1T.3e?v:F),B={16:0,17:0};v={16:V(E){11 H=x.3c,I=g.x==="16"?w:g.x==="1D"?-w:-w/2,J=-2*n.1B.x,M=E+w-x.1d-H;U(H-E>0)B.16-=I+J;19 U(M>0)B.16-=(g.x==="1v"?-1:1)*(I+J);X B.16-E},17:V(E){11 H=x.3c,I=g.y==="17"?y:g.y==="1E"?-y:-y/2,J=-2*n.1B.y,M=E+y-x.1f-H;U(H-E>0)B.17-=I+J;19 U(M>0)B.17-=(g.y==="1v"?-1:1)*(I+J);X B.17-E}};x={4O:x,1f:x[(x[0]===F?"h":"64")+"65"](),1d:x[(x[0]===F?"w":"66")+"69"](),4l:x.4l(),3c:x.3c()};U(e==="2f"){q={x:"16",y:"17"};d=n.1B.2f||!d||!d.3Q?a.1t({},a.1c.Y.2f):d;B={17:d.4j,16:d.3Q}}19{U(e==="1x")e=d&&d.1i&&d.2c!=="3V"&&d.2c!=="2A"?f.1R.1i=a(d.1i):f.1R.1i;e=a(e).6a(0);U(e.1q===0)X f;19 U(e[0]===1T||e[0]===F){p=e.1d();C=e.1f();U(e[0]===F)B={17:D?0:x.3c,16:D?0:x.4l}}19 U(e.26("6b")&&a.1c.Y.1e.4o){B=a.1c.Y.1e.4o(e,q);p=B.1d;C=B.1f;B=B.1m}19{p=e.4a();C=e.4c();B=o(e)}B.16+=q.x==="1D"?p:q.x==="1v"?p/2:0;B.17+=q.y==="1E"?C:q.y==="1v"?C/2:0}B.16+=n.1B.x+(g.x==="1D"?-w:g.x==="1v"?-w/2:0);B.17+=n.1B.y+(g.y==="1E"?-y:g.y==="1v"?-y/2:0);B.4b=n.1B.2M&&e[0]!==F&&e[0]!==1T.3e?{16:v.16(B.16),17:v.17(B.17)}:{16:0,17:0};k.1w("1O",V(){X a(13).1w("1O").32(/1h-12-4N-\\w+/i,"")}).3S(j+"-4N-"+g.53());G.3n=a.1t({},d);k.2E(G,[f.27(),B,x.4O]);U(G.44())X f;1Z B.4b;U(k.26(":2y")&&a.2m(n.2o)){n.2o.1U(k,f.27(),B);k.3O(V(){11 E=a(13);E.1b({3y:"",1f:""});a.2q.2Z&&13.1o&&13.1o.45("3C");E.4R()})}19 6e(B.16,B.17)||k.1b(B);X f},4m:V(d){11 e=f.1j.12;U(f.1u)e.2k("1h-1V-1W",d);19 f.1R.1W=!!d;X f},2t:V(){11 d=f.1j,e=d.1i.29("41");f.1u&&a.1y(f.1e,V(){13.2J==="21"&&13.2t()});A(1,1,1,1);b.4T("Y");f.1u&&d.12.2g();e&&b.1w("1n",e);b.3f("3h-4S");X b},27:V(){11 d=a.1t({},f);1Z d.1R;1Z d.1L;1Z d.1S;1Z d.1e;1Z d.21;1Z d.27;X d}})}V P(b,c){11 h,i=a(13);h=a(1T.3e);11 o=i.2a?i.2a(c.2a):{};o=a.1t(1a,{},c,L(a.1t(1a,{},(o&&c.2a.2c==="6g"?o[c.2a.4X]:{})||o)));11 l=o.1g,t=13===1T?h:i;i.4T("2a");U("3A"===1l o.18.1A)U(o.18.1w!==14&&i.1w(o.18.1w))o.18.1A=i.1w(o.18.1w);19 X 14;U(l.2u===14)l.2u=h;U(l.1i===14)l.1i=t;U(o.W.1i===14)o.W.1i=t;U(o.15.1i===14)o.15.1i=t;l.2v=1Y a.1c.Y.1e.2F(l.2v);l.2e=1Y a.1c.Y.1e.2F(l.2e);U(i.29("Y"))U(o.4d)i.Y("2t");19 U(o.4d===14)X 14;h=1Y O(i,o,b);i.29("Y",h);X h}V Q(b){11 c=13;c.3D={"^18.1J":V(){13.1e.1J.3i(13.1S.18.1J)}};a.1t(c,{2w:V(){11 h=b.1S.18.1J;b.1j.12.1p("54.1J",V(){c.3i(h);b.1j.12.1p("38.1J",V(){h.2W===14&&b.1u===1a&&c.3i(h)})})},3i:V(h){a.1J(a.1t(1a,{},h,{48:V(i,o){U(a.2m(h.48))U(h.48.1U(b.27(),i,o)===14)X;b.3b("18.1A",i)},3I:V(i,o,l){11 t=o||l;U(a.2m(h.3I)){i=h.3I.1U(b.27(),i,o,l);U(i===14)X}b.3b("18.1A",t)}}));X c},2t:V(){b.1j.12.1C("38.1J")}});c.2w()}V N(b,c,h){11 i=1r.1P(c/2),o=1r.1P(h/2);c={4V:[[0,0],[c,h],[c,0]],4W:[[0,0],[c,0],[0,h]],4Y:[[0,h],[c,0],[c,h]],4Z:[[0,0],[0,h],[c,h]],6k:[[0,h],[i,0],[c,h]],6l:[[0,0],[c,0],[i,h]],6n:[[0,0],[c,o],[0,h]],6o:[[c,0],[c,h],[0,o]]};c.6r=c.4V;c.6s=c.4W;c.6t=c.4Y;c.6u=c.4Z;X c[b]}V R(b){V c(j){11 m=l.1k,d=["16","1D"],e=o.1m,k,n;U(o.1z===14||!m)X 14;j=j||i.1z;k=j.1G;n=k==="y"?"x":"y";d[k==="y"?"4h":"6v"]("17","1E");e=1r.2V(j[n]==="1v"?e:0,e);m.1b({17:"",1E:"",16:"",1D:"",52:""});34(j[k==="y"?"x":"y"]){1N"1v":m.1b(d[0],"50%").1b("52-"+d[0],-(u[k==="y"?"1d":"1f"]/2)+e);1H;1N d[0]:m.1b(d[0],e);1H;1N d[1]:m.1b(d[1],e);1H}e=u[k==="x"?"1d":"1f"];U(A){t.2k("1h-12-37",!t.26(":2y"));e-=25(s.1b("1s-"+j[k]+"-1d"),10)||0;t.3K("1h-12-37")}m.1b(j[k],-e)}V h(j,m,d){U(l.1k){j=a.1t({},i.1z);m=j.1G==="y"?["y","17","16","1f","x"]:["x","16","17","1d","y"];11 e=d.4b,k=[25(s.1b("1s-"+j[m[0]]+"-1d"),10)||0,0];U(e.16)j.x=j.x==="1v"?e.16>0?"16":"1D":j.x==="16"?"1D":"16";U(e.17)j.y=j.y==="1v"?e.17>0?"17":"1E":j.y==="17"?"1E":"17";k[1]=1r.2V(j[m[4]]==="1v"?o.1m:0,o.1m);d[m[1]]+=(j[m[0]]===m[1]?1:-1)*(u[m[3]]-k[0]);d[m[2]]-=(j[m[4]]===m[2]||j[m[4]]==="1v"?1:-1)*k[1];U(j.1F()!==r.1z.1F()&&(r.17!==e.17||r.16!==e.16))i.3P(j);r.16=e.16;r.17=e.17;r.1z=j}}11 i=13,o=b.1S.1o.1k,l=b.1j,t=l.12,s=l.3g,r={17:0,16:0,1z:{1F:V(){}}},u={1d:o.1d,1f:o.1f},z={},A=o.1s||0,f=o.2N||14;i.1z=2h;i.28=2h;i.3D={"^1g.2e|1o.1k.(1z|28|2N|1s)":V(){A=o.1s;U(i.2w())13.2K("1g.1i")!=="2f"&&13.2j();19 i.2t()},"^1o.1k.(1f|1d)":V(){u={1d:o.1d,1f:o.1f};i.2O();i.3P();b.2j()}};a.1t(i,{2w:V(){11 j=a.2q.2Z,m=i.28&&/1v/i.1M(i.28.1F()),d=i.56();U(d){U(f===1a)f=a("<2s />")[0].4i?"2s":j&&(m||u.1f!==u.1d)?"2H":"2Y";19 U(f==="2s")f=j?"2H":!a("<2s />")[0].4i?"2Y":"2s";19 U(f==="2Y")f=j&&m?"2H":f;i.2O();i.57();i.3P();t.1C(".Y-1k").1p("3W.Y-1k",h)}X d},56:V(){11 j=o.1z,m=o.28||j,d=b.1S.1g.2v,e=b.1S.1g.2e;U(e.1F)e=e.1F();U(j===14||e===14&&d===14)X 14;19{U(j===1a)i.1z=1Y a.1c.Y.1e.2F(e);19 U(!j.1F)i.1z=1Y a.1c.Y.1e.2F(j);U(m===1a)i.28=1Y a.1c.Y.1e.2F(e);19 U(!m.1F){i.28=1Y a.1c.Y.1e.2F(m);i.28.1G=i.1z.1G}}X i.1z.1F()!=="4x"},57:V(){11 j=l.1k,m=i.28[i.28.1G],d="1s-"+m+"-35";z.2G=j.1b("3M-35","").1b("1s","").1b("3M-35")||"2S";z.1s=j.2K(0).1o?j.2K(0).1o["1s"+m.3H(0)+m.3E(1)+"6w"]:j.1b(d)||"2S";U(/58?\\(0, 0, 0(, 0)?\\)|2S/i.1M(z.2G))z.2G=s.1b(A?"3M-35":d);U(!z.1s||/58?\\(0, 0, 0(, 0)?\\)|2S/i.1M(z.1s))z.1s=s.1b(d)||z.2G;a("*",j).2i(j).1b("3M-35","2S").1b("1s",0)},2O:V(){11 j=u.1d,m=u.1f;l.1k&&l.1k.2g();l.1k=a(\'<24 1O="1h-12-1k" />\').2k("1h-1X-18",b.1S.1o.1X).1b(u).4e(t);34(f){1N"2s":l.1k.3p(\'<2s 1f="\'+m+\'" 1d="\'+j+\'" />\');1H;1N"2H":l.1k.3l(\'<2H:42 6x="0 0" 6y="\'+j+" "+m+\'" 6z="\'+!!A+\'" 1o="5b:3u(#3N#5c); 39:5d-3B; 6A:1a; 1g: 3v; 17:0; 16:0; 1d:\'+j+"2p; 1f:"+m+"2p; 6B-6C:"+i.1z.y+\';"><2H:6D 6E="\'+(A-2)+\'2p" 6F="6G" 6H="10" 1o="5b:3u(#3N#5c); 39:5d-3B;" />\');1H;1N"2Y":l.1k.3p(\'<24 1O="1h-12-1k-6I" />\').3p(A?\'<24 1O="1h-12-1k-1s" />\':"");1H}X i},3P:V(j){11 m=l.1k,d=u.1d,e=u.1f,k=A>0?0:1,n=1r.3L(A/2+0.5),g=a.1t({},i.28),q,w;U(!j)j=i.1z;U(g.x==="3G")g.x=j.x;19 U(g.y==="3G")g.y=j.y;19 U(g.x===g.y)g[j.1G]=j[j.1G];w=1r[/b|r/.1M(g[g.1G==="y"?"x":"y"])?"3L":"1P"];m=m.5l();34(f){1N"2s":m=m.2K(0).4i("2d");m.6K();m.6L(0,0,5f,5f);2U(q=N(g.1F(),d,e);k<2;k++){U(k){m.6M();m.6N(w((g.x==="16"?1:g.x==="1D"?-1:0)*(A+1)*(g.1G==="y"?0.5:1)),w((g.y==="17"?1:g.y==="1E"?-1:0)*(A+1)*(g.1G==="x"?0.5:1)))}m.6O();m.6P(q[0][0],q[0][1]);m.5i(q[1][0],q[1][1]);m.5i(q[2][0],q[2][1]);m.6Q();m.6R=z[k?"2G":"1s"];m.2G()}1H;1N"2H":q=N(g.1F(),d,e);k="m"+q[0][0]+","+q[0][1]+" l"+q[1][0]+","+q[1][1]+" "+q[2][0]+","+q[2][1]+" 6S";m.1w({6T:k,6U:z.2G});U(A){m.5l().1w("35",z.1s);U(g.1G==="y"){m.1b("17",(g.y==="17"?1:-1)*(A-2));m.1b("16",g.x==="16"?1:-2)}19{m.1b("16",(g.x==="16"?1:-1)*(A-2));m.1b("17",g.y==="17"?1:-2)}}1H;1N"2Y":U(g.1G==="y"){k=d>e?1.5:de?5:2.2;n=[1r.1P(k*n*(g.x==="1D"?-1:1)*(g.y==="1v"?0.9:1)),g.y==="17"?n:g.y==="1E"?-n:0]}m.3f("1o").1y(V(y){11 v={x:g.1G==="x"?g.x==="16"?"1D":"16":g.x,y:g.1G==="y"?g.y==="17"?"1E":"17":g.y},p=g.x==="1v"?["16","1D",v.y,e,d]:["17","1E",v.x,d,e],C=z[!y&&A?"1s":"2G"];y&&a(13).1b({1g:"3v","z-3d":1,16:n[0],17:n[1]});g.x==="1v"||g.y==="1v"?a(13).1b("1s-"+p[2],p[3]+"2p 4r "+C).1b("1s-"+p[0],1r.1P(p[4]/2)+"2p 5m 2S").1b("1s-"+p[1],1r.1P(p[4]/2)+"2p 5m 2S"):a(13).1b("1s-1d",1r.1P(e/2)+"2p "+1r.1P(d/2)+"2p").1b("1s-"+v.x,1r.1P(d/2)+"2p 4r "+C).1b("1s-"+v.y,1r.1P(e/2)+"2p 4r "+C)});1H}c(j);X i},2t:V(){l.1k&&l.1k.2g();t.1C(".Y-1k")}})}V S(b,c){11 h=13,i=b.1j,o=i.12;i.2b=a("#Y-2b");a.1t(h,{2w:V(){o.1p("38.2r 4u.2r",V(l,t,s){l=l.2c.32("12","");a.2m(c[l])?c[l].1U(i.2b,s,t):h[l](s)});i.2b.1q||h.2O();c.3J===1a&&i.2b.1p("3F.2r"+b.1K,V(){b.15.1U(b)})},2O:V(){i.2b=a("<24 />",{1K:"Y-2b",1b:{1g:"3v",17:0,16:0,39:"5n"}}).2X(1T.3e);a(F).1p("2A.2r",V(){i.2b.1b({1f:1r.2V(a(F).1f(),a(1T).1f()),1d:1r.2V(a(F).1d(),a(1T).1d())})}).2E("2A")},2L:V(l){11 t=i.2b,s=b.1S.W.1Q.2o,r=l?"W":"15";t.3T(1a,14);U(a.2m(s))s.1U(t,l);19 s===14?t[r]():t.4t(3w,l?0.7:0,V(){l||a(13).15()})},W:V(){h.2L(1a)},15:V(){h.2L(14)},2t:V(){11 l=1a;a("*").1y(V(){11 t=a(13).29("Y");U(t&&t.1K!==b.1K&&t.1S.W.1Q)X l=14});U(l){i.2b.2g();a(F).1C("3V.2r 2A.2r")}19 i.2b.1C("3F.2r"+b.1K);o.1C("38.2r 4u.2r")}});h.2w()}V T(b){11 c=13,h=b.1j,i=h.12,o=".2l-"+b.1K,l="3W"+o+" 38"+o;a.1t(c,{2w:V(){h.2l=a(\'<3Y 1O="1h-12-2l" 5o="0" 5p="-1" 5q="5r:\\\'\\\';" 1o="39:3B; 1g:3v; z-3d:-1; 3C:5s(3y=0);">\');h.2l.2X(i);i.1p(l,c.1B)},1B:V(){11 t=b.2K("3a"),s=b.1e.1k,r=b.1j.1k,u;u=25(i.1b("1s-16-1d"),10)||0;u={16:-u,17:-u};U(s&&r){s=s.1z.1G==="x"?["1d","16"]:["1f","17"];u[s[1]]-=r[s[0]]()}h.2l.1b(u).1b(t)},2t:V(){c.3Y.2g();i.1C(l)}});c.2w()}a.1c.Y=V(b,c,h){11 i=2D(b).2I(),o=2h,l=i==="4m"?[1a]:a.5t(31).4B(1,10),t=l[l.1q-1],s=a.1t(1a,{},b),r;U(!31.1q&&13.29("Y")||i==="5u")X(s=13.29("Y"))?s.27():K;19 U("1F"===1l b){13.1y(V(){11 u=a(13).29("Y");U(!u)X 1a;U(/5v|3b/.1M(i)&&c)U(h!==K)u.3b(c,h);19 o=u.2K(c);19{U(!u.1u&&(i==="W"||i==="2L")){U(t&&t.5x)u.1R.1x=t;u.21(1)}19 U(i==="5y"){i="4m";l=[14]}u[i]&&u[i].36(u[i],l)}});X o!==2h?o:13}19 U("1I"===1l b||!31.1q){r=L(s,13);s=a.1t(1a,{},a.1c.Y.3q,s);X a.1c.Y.1p.1U(r,s,t)}};a.1c.Y.1p=V(b,c){X 13.1y(V(h){V i(f){V j(){s.21(1l f==="1I"||r.W.3s);u.W.1C(z.W);u.15.1C(z.15)}U(s.1R.1W)X 14;s.1R.1x=a.1t({},f);U(r.W.2z>0){2n(s.1L.W);s.1L.W=3o(j,r.W.2z);z.W!==z.15&&u.15.1p(z.15,V(){2n(s.1L.W)})}19 j()}11 o=a(13),l=b.1K,t=b.18.1A,s,r,u,z,A;b.1K=l=l===14||l.1q<1||a("#1h-12-"+l).1q?a.1c.Y.4k++:l;A=".Y-"+l+"-2O";s=P.1U(13,l,b);U(s===14)X 1a;r=s.1S;U(a.5N(t))r.18.1A=t[h];o.1w("1n")&&o.29("41",o.1w("1n")).3f("1n");a.1y(a.1c.Y.1e,V(){13.2J==="2J"&&13(s)});u={W:r.W.1i,15:r.15.1i};z={W:2D(r.W.1x).32(" ",A+" ")+A,15:2D(r.15.1x).32(" ",A+" ")+A};u.W.1p(z.W,i);U(b.W.3s||b.55)i(c)})};a.1y({1w:V(b){11 c=a(13),h=c.29("Y");X 31.1q===1&&b==="1n"&&h&&h.1u===1a?c.29("41"):2h},2g:a.1h?2h:V(b,c){a(13).1y(V(){U(!c)U(!b||a.3C(b,[13]).1q)a("*",13).2i(13).1y(V(){a(13).5U("2g")})})}},V(b,c){U(!c)X 1a;a.1c["4L"+b]=a.1c[b];a.1c[b]=V(){X c.36(13,31)||a.1c["4L"+b].36(13,31)}});a(1T.3e).1w("4p",V(b,c){X!c?"62":c});a(1T).1p("3m.Y",V(b){a.1c.Y.2f={3Q:b.3Q,4j:b.4j}});a.1c.Y.4k=0;a.1c.Y.43="3F 6c 3z 4Q 3m 5j 40".2Q(" ");a.1c.Y.4f=6f;a.1c.Y.1e={2F:V(b){b=2D(b).32(/([A-Z])/," $1").32(/6m/6p,"1v").2I();13.x=(b.4U(/16|1D|1v/i)||["3G"])[0].2I();13.y=(b.4U(/17|1E|1v/i)||["3G"])[0].2I();13.1G=b.3H(0).49(/^(t|b)/)>-1?"y":"x";13.1F=V(){X 13.1G==="y"?13.y+13.x:13.x+13.y};13.53=V(){11 c=13.x.3E(0,1),h=13.y.3E(0,1);X c===h?c:c==="c"||c!=="c"&&h!=="c"?h+c:c+h}}};a.1c.Y.3q={55:14,1K:14,4d:1a,2a:{2c:"1O"},18:{1A:1a,1w:"1n",1n:{1A:14,22:14}},1g:{2e:"17 16",2v:"1E 1D",1i:14,2u:14,1B:{x:0,y:0,2f:1a,2M:14,2A:1a,2u:14},2o:1a},W:{1i:14,1x:"40",2o:1a,2z:3w,5g:14,3s:14},15:{1i:14,1x:"5j",2o:1a,2z:0,2T:14,23:14},1o:{3R:"",1X:14},4q:{21:a.33,4s:a.33,W:a.33,15:a.33,2P:a.33,3J:a.33}};a.1c.Y.1e.1J=V(b){11 c=b.1e.1J,h=b.1S.18.1J;U(h&&h.3u)U(c)X c;19{b.1e.1J=1Y Q(b);X b.1e.1J}};a.1c.Y.1e.1J.2J="21";a.1c.Y.1e.1J.3j=V(b){3X{11 c=b.18.1J;U(1l c!=="1I")c=b.18.1J={3u:c};U("3A"!==1l c.2W&&c.2W)c.2W=!!c.2W}3Z(h){}};a.1t(1a,a.1c.Y.3q,{18:{1J:{2W:1a}}});a.1c.Y.1e.1k=V(b){11 c=b.1e.1k,h=b.1S.1o.1k;U(h&&h.1z)U(c)X c;19{b.1e.1k=1Y R(b);b.1e.1k.2w();X b.1e.1k}};a.1c.Y.1e.1k.2J="21";a.1c.Y.1e.1k.3j=V(b){3X{11 c=b.1o.1k;U(1l c!=="1I")b.1o.1k={1z:c};U(!/1F|3A/i.1M(1l c.1z))c.1z=4w;U(1l c.2N!=="1F")c.2N=1a;U(!/2s|2Y/i.1M(c.2N))c.2N=1a;1l c.1d!=="30"&&1Z c.1d;1l c.1f!=="30"&&1Z c.1f;1l c.1s!=="30"&&1Z c.1s;1l c.1m!=="30"&&1Z c.1m}3Z(h){}};a.1t(1a,a.1c.Y.3q,{1o:{1k:{1z:1a,2N:1a,1d:9,1f:9,1s:0,1m:0}}});a.1c.Y.1e.4o=V(b,c){V h(A,f){2U(11 j=0,m=1,d=1,e=0,k=0,n=A.1d,g=A.1f;n>0&&g>0&&m>0&&d>0;){n=1r.1P(n/2);g=1r.1P(g/2);U(c.x==="16")m=n;19 U(c.x==="1D")m=A.1d-n;19 m+=1r.1P(n/2);U(c.y==="17")d=g;19 U(c.y==="1E")d=A.1f-g;19 d+=1r.1P(g/2);2U(j=f.1q;j--;){U(f.1q<2)1H;e=f[j][0]-A.1m.16;k=f[j][1]-A.1m.17;U(c.x==="16"&&e>=m||c.x==="1D"&&e<=m||c.x==="1v"&&(eA.1d-m)||c.y==="17"&&k>=d||c.y==="1E"&&k<=d||c.y==="1v"&&(kA.1f-d))f.60(j,1)}}X{16:f[0][0],17:f[0][1]}}11 i=b.1w("42").2I(),o=b.1w("6d").2Q(","),l=[],t=a(\'3k[6h="#\'+b.6i("5e").1w("4X")+\'"]\'),s=t.1m(),r={1d:0,1f:0,1m:{17:51,1D:0,1E:0,16:51}},u=0,z=0;s.16+=1r.3L((t.4a()-t.1d())/2);s.17+=1r.3L((t.4c()-t.1f())/2);U(i==="4v")2U(u=o.1q;u--;){z=[25(o[--u],10),25(o[u+1],10)];U(z[0]>r.1m.1D)r.1m.1D=z[0];U(z[0]r.1m.1E)r.1m.1E=z[1];U(z[1]