From 86580cdaea742ff2cb38fb4d05d7943951b390a2 Mon Sep 17 00:00:00 2001 From: Craig Michael Thompson Date: Thu, 28 Apr 2011 13:47:27 +0100 Subject: [PATCH] Fixed unfocus hoverIntent bug --- dist/jquery.qtip.css | 2 +- dist/jquery.qtip.js | 10 ++++++---- dist/jquery.qtip.min.js | 4 ++-- dist/jquery.qtip.pack.js | 4 ++-- src/core.js | 8 +++++--- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 6928a5e7..ffb019d6 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: Wed Apr 27 01:02:12 2011 +0100 +* Date: Wed Apr 27 14:45:16 2011 +0100 */ /* Fluid class for determining actual width in IE */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index b5992c22..afcaf777 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: Wed Apr 27 01:02:12 2011 +0100 +* Date: Wed Apr 27 14:45:16 2011 +0100 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -1566,10 +1566,12 @@ QTIP.bind = function(opts, event) }; /* - * If hide event is just 'unfocus', we'll use mouseleave as the hide event... - * since unfocus is actually library specific and won't fire as an event anywho. + * Make sure hoverIntent functions properly by using mouseleave as a hide event if + * mouseenter/mouseout is used for show.event, even if it isn't in the users options. */ - if(options.hide.event === 'unfocus') { events.hide = 'mouseleave' + namespace; } + if(/mouse(over|enter)/i.test(events.show) && !/mouse(out|leave)/i.test(events.hide)) { + events.hide += ' mouseleave' + namespace; + } // Define hoverIntent function function hoverIntent(event) { diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index aa772270..133f591c 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,5 +9,5 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Apr 27 01:02:12 2011 +0100 -*/"use strict",function(a,b,c){function A(b){var c=this,d=b.elements,e=d.tooltip,f=".bgiframe-"+b.id;a.extend(c,{init:function(){d.bgiframe=a(''),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function z(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;o=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){o[0].style.zIndex=c-1}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(n)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(n)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}o=h.overlay=a("
",{id:j.substr(1),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return e}}).appendTo(document.body),a(b).unbind(k).bind("resize"+k,function(){o.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return o},toggle:function(b,c,j){if(b&&b.isDefaultPrevented())return f;var k=g.effect,l=c?"show":"hide",n=a("["+m+"]:visible").not(i),p;o||(o=f.create());if(o.is(":animated")&&!c||!c&&n.length)return f;c&&h.overlay.css("cursor",g.blur?"pointer":""),o.stop(d,e),a.isFunction(k)?k.call(o,c):k===e?o[l]():o.fadeTo(parseInt(j,10)||90,c?.7:0,function(){c||a(this).hide()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=o;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id));return i.removeAttr(m).unbind(k)}}),f.init()}function y(b,g){function v(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function u(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function t(a,b,c){b=b?b:a[a.precedance];var d=k.titlebar&&a.y==="top",e=d?k.titlebar:k.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(l.css(f),10):g)||0}function s(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",r=a("")[0].getContext;i.corner=f,i.mimic=f,i.position={},b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(r||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,s));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,r="background-color",s="transparent",t="ui-tooltip-fluid",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),r?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(p?d+=d:d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,s="px solid ",u="px dashed transparent",w=j.mimic,y=Math.round,z,A,B,C,D;b||(b=i.corner),w===e?w=b:(w=new h.Corner(w),w.precedance=b.precedance,w.x==="inherit"?w.x=b.x:w.y==="inherit"?w.y=b.y:w.x===w.y&&(w[b.precedance]=b[b.precedance])),z=w.precedance,i.detectColours(),p=o.border==="transparent"||o.border==="#123456"?0:j.border===d?t(b,f,d):j.border,B=x(w,m,q),D=v(b),g.css(D),b.precedance==="y"?C=[y(w.x==="left"?p:w.x==="right"?D.width-m-p:(D.width-m)/2),y(w.y==="top"?D.height-q:0)]:C=[y(w.x==="left"?D.width-m:0),y(w.y==="top"?p:w.y==="bottom"?D.height-q-p:(D.height-q)/2)],r?(l.attr(D),A=l[0].getContext("2d"),A.restore(),A.save(),A.clearRect(0,0,3e3,3e3),A.translate(C[0],C[1]),A.beginPath(),A.moveTo(B[0][0],B[0][1]),A.lineTo(B[1][0],B[1][1]),A.lineTo(B[2][0],B[2][1]),A.closePath(),A.fillStyle=o.fill,A.strokeStyle=o.border,A.lineWidth=p*2,A.lineJoin="miter",A.miterLimit=100,A.stroke(),A.fill()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(w.string().indexOf("center")>-1),left:C[0]-C[2]*Number(z==="x"),top:C[1]-C[2]*Number(z==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c.attr({coordsize:m+p+" "+(q+p),path:B,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&p>0&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=v(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function x(a,b,c){var d=Math.ceil(b/2),e=Math.ceil(c/2),f={bottomright:[[0,0],[b,c],[b,0]],bottomleft:[[0,0],[b,0],[0,c]],topright:[[0,c],[b,0],[b,c]],topleft:[[0,0],[0,c],[b,c]],topcenter:[[0,c],[d,0],[b,c]],bottomcenter:[[0,0],[b,0],[d,c]],rightcenter:[[0,0],[b,e],[0,c]],leftcenter:[[b,0],[b,c],[0,e]]};f.lefttop=f.bottomright,f.righttop=f.bottomleft,f.leftbottom=f.topright,f.rightbottom=f.topleft;return f[a.string()]}function w(b){var c=this,f=b.elements.tooltip,g=b.options.content.ajax,h=".qtip-ajax",i=/)<[^<]*)*<\/script>/gi,j=d;b.checks.ajax={"^content.ajax":function(a,b,d){b==="ajax"&&(g=d),b==="once"?c.init():g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.unbind(h)[g.once?"one":"bind"]("tooltipshow"+h,c.load);return c},load:function(d,h){function p(a,c,d){b.set("content.text",c+": "+d),n()}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c),n()}function n(){m&&(f.css("visibility",""),h=e)}if(d&&d.isDefaultPrevented())return c;var j=g.url.indexOf(" "),k=g.url,l,m=g.once&&!g.loading&&h;m&&f.css("visibility","hidden"),j>-1&&(l=k.substr(j),k=k.substr(0,j)),a.ajax(a.extend({success:o,error:p,context:b},g,{url:k}));return c}}),c.init()}function v(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,v=m.data(c.metadata.name||"qtipopts");try{v=typeof v==="string"?(new Function("return "+v))():v}catch(w){s("Unable to parse HTML5 attribute data: "+v)}l=a.extend(d,{},g.defaults,c,typeof v==="object"?t(v):f,t(q||p)),p&&a.removeData(this,"metadata"),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else return e}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,r,a.attr(this,"title")),this.removeAttribute("title")),i=new u(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function u(c,p,q,s){function L(c,d,e,f){f=parseInt(f,10)!==0;var g=".qtip-"+q,h={show:c&&p.show.target[0],hide:d&&p.hide.target[0],tooltip:e&&u.rendered&&A.tooltip[0],content:e&&u.rendered&&A.content[0],container:f&&p.position.container[0]===v?document:p.position.container[0],window:f&&b};u.rendered?a([]).pushStack(a.grep([h.show,h.hide,h.tooltip,h.container,h.content,h.window],function(a){return typeof a==="object"})).unbind(g):c&&p.show.target.unbind(g+"-create")}function K(d,f,h,j){function D(a){z.is(":visible")&&u.reposition(a)}function C(a){if(z.hasClass(l))return e;clearTimeout(u.timers.inactive),u.timers.inactive=setTimeout(function(){u.hide(a)},p.hide.inactive)}function y(b){if(z.hasClass(l))return e;var c=a(b.relatedTarget||b.target),d=c.closest(m)[0]===z[0],f=c[0]===r.show[0];clearTimeout(u.timers.show),clearTimeout(u.timers.hide);if(n.target==="mouse"&&d||p.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||f))){b.stopPropagation(),b.preventDefault();return e}p.hide.delay>0?u.timers.hide=setTimeout(function(){u.hide(b)},p.hide.delay):u.hide(b)}function x(a){if(z.hasClass(l))return e;r.show.trigger("qtip-"+q+"-inactive"),clearTimeout(u.timers.show),clearTimeout(u.timers.hide);var b=function(){u.show(a)};p.show.delay>0?u.timers.show=setTimeout(b,p.show.delay):b()}var k=".qtip-"+q,n=p.position,r={show:p.show.target,hide:p.hide.target,container:n.container[0]===v?a(document):n.container,doc:a(document)},s={show:a.trim(""+p.show.event).split(" "),hide:a.trim(""+p.hide.event).split(" ")},t=a.browser.msie&&parseInt(a.browser.version,10)===6,w;h&&(p.hide.fixed&&(r.hide=r.hide.add(z),z.bind("mouseover"+k,function(){z.hasClass(l)||clearTimeout(u.timers.hide)})),n.target==="mouse"&&n.adjust.mouse&&p.hide.event&&z.bind("mouseleave"+k,function(a){(a.relatedTarget||a.target)!==r.show[0]&&u.hide(a)}),z.bind("mouseenter"+k,function(a){u[a.type==="mouseenter"?"focus":"blur"](a)}),z.bind("mouseenter"+k+" mouseleave"+k,function(a){z.toggleClass(o,a.type==="mouseenter")})),f&&("number"===typeof p.hide.inactive&&(r.show.bind("qtip-"+q+"-inactive",C),a.each(g.inactiveEvents,function(a,b){r.hide.add(A.tooltip).bind(b+k+"-inactive",C)})),a.each(s.hide,function(b,c){var d=a.inArray(c,s.show),e=a(r.hide);d>-1&&e.add(r.show).length===e.length||c==="unfocus"?(r.show.bind(c+k,function(a){z.is(":visible")?y(a):x(a)}),delete s.show[d]):r.hide.bind(c+k,y)})),d&&(a.each(s.show,function(a,b){r.show.bind(b+k,x)}),"number"===typeof p.hide.distance&&r.show.bind("mousemove"+k,function(a){var b=B.origin||{},c=p.hide.distance,d=Math.abs;b&&(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&u.hide(a)})),j&&((n.adjust.resize||n.viewport)&&a(a.event.special.resize?n.viewport:b).bind("resize"+k,D),(n.viewport||t&&z.css("position")==="fixed")&&a(n.viewport).bind("scroll"+k,D),/unfocus/i.test(p.hide.event)&&r.doc.bind("mousedown"+k,function(b){var d=a(b.target);d.parents(m).length===0&&d.add(c).length>1&&z.is(":visible")&&!z.hasClass(l)&&u.hide(b)}),p.hide.leave&&/mouseleave|mouseout/i.test(p.hide.event)&&a(b).bind("blur"+k+" mouse"+(p.hide.leave.indexOf("frame")>-1?"out":"leave")+k,function(a){a.relatedTarget||u.hide(a)}),n.target==="mouse"&&r.doc.bind("mousemove"+k,function(a){n.adjust.mouse&&!z.hasClass(l)&&z.is(":visible")&&u.reposition(a||i)}))}function J(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(u.redraw(),u.reposition(B.event),a())}var b;if((b=f.find("img:not([height]):not([width])")).length===0)return c.call(b);b.each(function(a,b){(function d(){var e=u.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=A.content;b=b||p.content.text;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),u.rendered<0?z.queue("fx",g):(y=0,g(a.noop));return u}function I(b){var d=A.title;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),u.redraw(),u.rendered&&z.is(":visible")&&u.reposition(B.event)}function H(a){var b=A.button,c=A.title;if(!u.rendered)return e;a?(c||G(),F()):b.remove()}function G(){var b=w+"-title";A.titlebar&&E(),A.titlebar=a("
",{"class":j+"-titlebar "+(p.style.widget?"ui-widget-header":"")}).append(A.title=a("
",{id:b,"class":j+"-title","aria-atomic":d})).insertBefore(A.content),p.content.title.button?F():u.rendered&&u.redraw()}function F(){var b=p.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";A.button&&A.button.remove(),b.jquery?A.button=b:A.button=a("",{"class":"ui-state-default "+(p.style.widget?"":j+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),A.button.appendTo(A.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){z.hasClass(l)||u.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),u.redraw()}function E(){A.title&&(A.titlebar.remove(),A.titlebar=A.title=A.button=f,u.reposition())}function D(){var a=p.style.widget;z.toggleClass(k,a),A.content.toggleClass(k+"-content",a),A.titlebar&&A.titlebar.toggleClass(k+"-header",a),A.button&&A.button.toggleClass(j+"-icon",!a)}function C(a){var b=0,c,d=p,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(z[0].id=i,A.content[0].id=i+"-content",A.title[0].id=i+"-title")},"^content.text$":function(a,b,c){J(c)},"^content.title.text$":function(a,b,c){if(!c)return E();!A.title&&c&&G(),I(c)},"^content.title.button$":function(a,b,c){H(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){u.rendered&&z.appendTo(c)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(a,b,c,d,e){var f=[1,0,0];f[e[1]==="show"?"push":"unshift"](0),L.apply(u,f),K.apply(u,[1,1,0,0])},"^show.ready$":function(){u.rendered?u.show():u.render(1)},"^style.classes$":function(b,c,d){a.attr(z[0],"class",j+" qtip ui-helper-reset "+d)},"^style.widget|content.title":D,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){z[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)}},a.extend(u,{render:function(b){if(u.rendered)return u;var f=p.content.title.text,g=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",w),z=A.tooltip=a("
",{id:w,"class":j+" qtip ui-helper-reset "+p.style.classes,width:p.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":w+"-content","aria-hidden":d}).toggleClass(l,B.disabled).data("qtip",u).appendTo(p.position.container).append(A.content=a("
",{"class":j+"-content",id:w+"-content","aria-atomic":d})),u.rendered=-1,y=1,f&&(G(),I(f)),J(),u.rendered=d,D(),a.each(p.events,function(b,c){a.isFunction(c)&&z.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(u)}),K(1,1,1,1),z.queue("fx",function(a){g.originalEvent=B.event,z.trigger(g,[u]),y=0,u.redraw(),(p.show.ready||b)&&u.show(B.event),a()});return u},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:z.outerHeight(),width:z.outerWidth()};break;case"offset":b=h.offset(z,p.position.container);break;default:c=C(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(u,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=u.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=C(c.toLowerCase()),f;f=e[0][e[1]],e[0][e[1]]="object"===typeof d&&d.nodeType?a(d):d,b[c]=[e[0],e[1],d,f],i=g.test(c)||i,j=h.test(c)||j}),t(p),x=y=1,a.each(b,m),x=y=0,z.is(":visible")&&u.rendered&&(i&&u.reposition(p.position.target==="mouse"?f:B.event),j&&u.redraw());return u},toggle:function(b,c){function l(){b?(a.browser.msie&&z[0].style.removeAttribute("filter"),z.css("overflow","")):z.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}if(!u.rendered)if(b)u.render(1);else return u;var d=b?"show":"hide",g=p[d],h=z.is(":visible"),j,k;(typeof b).search("boolean|number")&&(b=!h);if(h===b)return u;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(B.event.type)&&c.target===p.show.target[0]&&z.has(c.relatedTarget).length)return u;B.event=a.extend({},c)}k=a.Event("tooltip"+d),k.originalEvent=c?B.event:f,z.trigger(k,[u,90]);if(k.isDefaultPrevented())return u;a.attr(z[0],"aria-hidden",!b),b?(B.origin=a.extend({},i),u.focus(c),a.isFunction(p.content.text)&&J(),u.reposition(c),g.solo&&a(m,g.solo).not(z).qtip("hide",k)):(clearTimeout(u.timers.show),delete B.origin,u.blur(c)),z.stop(0,1),a.isFunction(g.effect)?(g.effect.call(z,u),z.queue("fx",function(a){l(),a()})):g.effect===e?(z[d](),l.call(z)):z.fadeTo(90,b?1:0,l),b&&g.target.trigger("qtip-"+q+"-inactive");return u},show:function(a){return u.toggle(d,a)},hide:function(a){return u.toggle(e,a)},focus:function(b){if(!u.rendered)return u;var c=a(m),d=parseInt(z[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;z.hasClass(n)||(i=a.Event("tooltipfocus"),i.originalEvent=f,z.trigger(i,[u,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+n).qtip("blur",f)),z.addClass(n)[0].style.zIndex=e));return u},blur:function(b){var c=a.extend({},b),d;z.removeClass(n),d=a.Event("tooltipblur"),d.originalEvent=c,z.trigger(d,[u]);return u},reposition:function(c,d){if(!u.rendered||x)return u;x=1;var f=p.position.target,g=p.position,k=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=z.outerWidth(),q=z.outerHeight(),r=0,s=0,t=a.Event("tooltipmove"),w=z.css("position")==="fixed",y=g.viewport.jquery?g.viewport:a(b),A={left:0,top:0},C=(u.plugins.tip||{}).corner,D={horizontal:n[0],vertical:n[1]||n[0],tip:p.style.tip||{},left:function(a){var b=D.horizontal==="shift",c=y.offset.left+y.scrollLeft,d=k.x==="left"?o:k.x==="right"?-o:-o/2,e=l.x==="left"?r:l.x==="right"?-r:-r/2,f=D.tip.width+D.tip.border*2||0,g=C&&C.precedance==="x"&&!b?f:0,h=c-a-g,i=a+o-y.width-c+g,j=d-(k.precedance==="x"||k.x===k.y?e:0),n=k.x==="center";b?(g=C&&C.precedance==="y"?f:0,j=(k.x==="left"?1:-1)*d-g,A.left+=h>0?h:i>0?-i:0,A.left=Math.max(y.offset.left+(g&&C.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.left+y.width,a+j),A.left))):(h>0&&(k.x!=="left"||i>0)?A.left-=j+(n?0:2*m.x):i>0&&(k.x!=="right"||h>0)&&(A.left-=n?-j:j+2*m.x),A.left!==a&&n&&(A.left-=m.x),A.lefti&&(A.left=a));return A.left-a},top:function(a){var b=D.vertical==="shift",c=y.offset.top+y.scrollTop,d=k.y==="top"?q:k.y==="bottom"?-q:-q/2,e=l.y==="top"?s:l.y==="bottom"?-s:-s/2,f=D.tip.height+D.tip.border*2||0,g=C&&C.precedance==="y"&&!b?f:0,h=c-a-g,i=a+q-y.height-c+g,j=d-(k.precedance==="y"||k.x===k.y?e:0),n=k.y==="center";b?(g=C&&C.precedance==="x"?f:0,j=(k.y==="top"?1:-1)*d-g,A.top+=h>0?h:i>0?-i:0,A.top=Math.max(y.offset.top+(g&&C.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.top+y.height,a+j),A.top))):(h>0&&(k.y!=="top"||i>0)?A.top-=j+(n?0:2*m.y):i>0&&(k.y!=="bottom"||h>0)&&(A.top-=n?-j:j+2*m.y),A.top!==a&&n&&(A.top-=m.y),A.top<0&&-A.top>i&&(A.top=a));return A.top-a}};if(f==="mouse")l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?B.event:!m.mouse&&B.origin?B.origin:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:c,A={top:c.pageY,left:c.pageX};else{f==="event"&&(c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=B.target=a(c.target):f=B.target),f=a(f).eq(0);if(f.length===0)return u;f[0]===document||f[0]===b?(r=f.width(),s=f.height(),f[0]===b&&(A={top:!w||h.iOS?y.scrollTop():0,left:!w||h.iOS?y.scrollLeft():0})):f.is("area")&&h.imagemap?A=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?A=h.svg(f,l):(r=f.outerWidth(),s=f.outerHeight(),A=h.offset(f,g.container,w)),A.offset&&(r=A.width,s=A.height,A=A.offset),A.left+=l.x==="right"?r:l.x==="center"?r/2:0,A.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}A.left+=m.x+(k.x==="right"?-o:k.x==="center"?-o/2:0),A.top+=m.y+(k.y==="bottom"?-q:k.y==="center"?-q/2:0),y.jquery&&f[0]!==b&&f[0]!==v&&D.vertical+D.horizontal!=="nonenone"?(y={elem:y,height:y[(y[0]===b?"h":"outerH")+"eight"](),width:y[(y[0]===b?"w":"outerW")+"idth"](),scrollLeft:y.scrollLeft(),scrollTop:y.scrollTop(),offset:y.offset()||{left:0,top:0}},A.adjusted={left:D.horizontal!=="none"?D.left(A.left):0,top:D.vertical!=="none"?D.top(A.top):0}):A.adjusted={left:0,top:0},z.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+k.abbreviation()),t.originalEvent=a.extend({},c),z.trigger(t,[u,A,y.elem||y]);if(t.isDefaultPrevented())return u;delete A.adjusted,d===e||isNaN(A.left)||isNaN(A.top)||!a.isFunction(g.effect)?z.css(A):a.isFunction(g.effect)&&(g.effect.call(z,u,a.extend({},A)),z.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),x=0;return u},redraw:function(){if(u.rendered<1||p.style.width||y)return u;var b=j+"-fluid",c=p.position.container,d,e,f,g;y=1,z.css("width","").addClass(b),e=z.width()+(a.browser.mozilla?1:0),f=z.css("max-width")||"",g=z.css("min-width")||"",d=(f+g).indexOf("%")>-1?c.width()/100:0,f=(f.indexOf("%")>-1?d:1)*parseInt(f,10)||e,g=(g.indexOf("%")>-1?d:1)*parseInt(g,10)||0,e=f+g?Math.min(Math.max(e,g),f):e,z.css("width",Math.round(e)).removeClass(b),y=0;return u},disable:function(b){var c=l;"boolean"!==typeof b&&(b=!z.hasClass(c)&&!B.disabled),u.rendered?(z.toggleClass(c,b),a.attr(z[0],"aria-disabled",b)):B.disabled=!!b;return u},enable:function(){return u.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,r);u.rendered&&(z.remove(),a.each(u.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(u.timers.show),clearTimeout(u.timers.hide),L(1,1,1,1),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(r)),c.removeAttr("aria-describedby").unbind(".qtip");return c}})}function t(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function s(){var c=b.console;return c&&(c.error||c.log||a.noop).apply(c,arguments)}var d=!0,e=!1,f=null,g,h,i,j="ui-tooltip",k="ui-widget",l="ui-state-disabled",m="div.qtip."+j,n=j+"-focus",o=j+"-hover",p="-31000px",q="_replacedByqTip",r="oldtitle";g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1,10),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=t(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,c){return this.each(function(f){function p(b){function c(){o.render(typeof b==="object"||i.show.ready),k.show.unbind(l.show),k.hide.unbind(l.hide)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),i.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(c,i.show.delay),l.show!==l.hide&&k.hide.bind(l.hide,function(){clearTimeout(o.timers.show)})):c()}var i,k,l,m=!b.id||b.id===e||b.id.length<1||a("#"+j+"-"+b.id).length?g.nextid++:b.id,n=".qtip-"+m+"-create",o=v.call(this,m,b);if(o===e)return d;i=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),k={show:i.show.target,hide:i.hide.target},l={show:a.trim(""+i.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+i.hide.event).replace(/ /g,n+" ")+n},i.hide.event==="unfocus"&&(l.hide="mouseleave"+n),k.show.bind(l.show,p),(i.show.ready||i.prerender)&&p(c)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.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 a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{if(g[0]===j)break;g.css("position")!=="static"&&(k=g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++)}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,r);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+q].apply(this,arguments),a.attr(d,r,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+q].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,r)),this.removeAttribute(r)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+q]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:d},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new w(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new y(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[1]'),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function z(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;o=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){o[0].style.zIndex=c-1}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(n)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(n)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}o=h.overlay=a("
",{id:j.substr(1),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return e}}).appendTo(document.body),a(b).unbind(k).bind("resize"+k,function(){o.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return o},toggle:function(b,c,j){if(b&&b.isDefaultPrevented())return f;var k=g.effect,l=c?"show":"hide",n=a("["+m+"]:visible").not(i),p;o||(o=f.create());if(o.is(":animated")&&!c||!c&&n.length)return f;c&&h.overlay.css("cursor",g.blur?"pointer":""),o.stop(d,e),a.isFunction(k)?k.call(o,c):k===e?o[l]():o.fadeTo(parseInt(j,10)||90,c?.7:0,function(){c||a(this).hide()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=o;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id));return i.removeAttr(m).unbind(k)}}),f.init()}function y(b,g){function v(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function u(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function t(a,b,c){b=b?b:a[a.precedance];var d=k.titlebar&&a.y==="top",e=d?k.titlebar:k.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(l.css(f),10):g)||0}function s(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",r=a("")[0].getContext;i.corner=f,i.mimic=f,i.position={},b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(r||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,s));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,r="background-color",s="transparent",t="ui-tooltip-fluid",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),r?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(p?d+=d:d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,s="px solid ",u="px dashed transparent",w=j.mimic,y=Math.round,z,A,B,C,D;b||(b=i.corner),w===e?w=b:(w=new h.Corner(w),w.precedance=b.precedance,w.x==="inherit"?w.x=b.x:w.y==="inherit"?w.y=b.y:w.x===w.y&&(w[b.precedance]=b[b.precedance])),z=w.precedance,i.detectColours(),p=o.border==="transparent"||o.border==="#123456"?0:j.border===d?t(b,f,d):j.border,B=x(w,m,q),D=v(b),g.css(D),b.precedance==="y"?C=[y(w.x==="left"?p:w.x==="right"?D.width-m-p:(D.width-m)/2),y(w.y==="top"?D.height-q:0)]:C=[y(w.x==="left"?D.width-m:0),y(w.y==="top"?p:w.y==="bottom"?D.height-q-p:(D.height-q)/2)],r?(l.attr(D),A=l[0].getContext("2d"),A.restore(),A.save(),A.clearRect(0,0,3e3,3e3),A.translate(C[0],C[1]),A.beginPath(),A.moveTo(B[0][0],B[0][1]),A.lineTo(B[1][0],B[1][1]),A.lineTo(B[2][0],B[2][1]),A.closePath(),A.fillStyle=o.fill,A.strokeStyle=o.border,A.lineWidth=p*2,A.lineJoin="miter",A.miterLimit=100,A.stroke(),A.fill()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(w.string().indexOf("center")>-1),left:C[0]-C[2]*Number(z==="x"),top:C[1]-C[2]*Number(z==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c.attr({coordsize:m+p+" "+(q+p),path:B,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&p>0&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=v(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function x(a,b,c){var d=Math.ceil(b/2),e=Math.ceil(c/2),f={bottomright:[[0,0],[b,c],[b,0]],bottomleft:[[0,0],[b,0],[0,c]],topright:[[0,c],[b,0],[b,c]],topleft:[[0,0],[0,c],[b,c]],topcenter:[[0,c],[d,0],[b,c]],bottomcenter:[[0,0],[b,0],[d,c]],rightcenter:[[0,0],[b,e],[0,c]],leftcenter:[[b,0],[b,c],[0,e]]};f.lefttop=f.bottomright,f.righttop=f.bottomleft,f.leftbottom=f.topright,f.rightbottom=f.topleft;return f[a.string()]}function w(b){var c=this,f=b.elements.tooltip,g=b.options.content.ajax,h=".qtip-ajax",i=/)<[^<]*)*<\/script>/gi,j=d;b.checks.ajax={"^content.ajax":function(a,b,d){b==="ajax"&&(g=d),b==="once"?c.init():g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.unbind(h)[g.once?"one":"bind"]("tooltipshow"+h,c.load);return c},load:function(d,h){function p(a,c,d){b.set("content.text",c+": "+d),n()}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c),n()}function n(){m&&(f.css("visibility",""),h=e)}if(d&&d.isDefaultPrevented())return c;var j=g.url.indexOf(" "),k=g.url,l,m=g.once&&!g.loading&&h;m&&f.css("visibility","hidden"),j>-1&&(l=k.substr(j),k=k.substr(0,j)),a.ajax(a.extend({success:o,error:p,context:b},g,{url:k}));return c}}),c.init()}function v(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,v=m.data(c.metadata.name||"qtipopts");try{v=typeof v==="string"?(new Function("return "+v))():v}catch(w){s("Unable to parse HTML5 attribute data: "+v)}l=a.extend(d,{},g.defaults,c,typeof v==="object"?t(v):f,t(q||p)),p&&a.removeData(this,"metadata"),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else return e}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,r,a.attr(this,"title")),this.removeAttribute("title")),i=new u(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function u(c,p,q,s){function L(c,d,e,f){f=parseInt(f,10)!==0;var g=".qtip-"+q,h={show:c&&p.show.target[0],hide:d&&p.hide.target[0],tooltip:e&&u.rendered&&A.tooltip[0],content:e&&u.rendered&&A.content[0],container:f&&p.position.container[0]===v?document:p.position.container[0],window:f&&b};u.rendered?a([]).pushStack(a.grep([h.show,h.hide,h.tooltip,h.container,h.content,h.window],function(a){return typeof a==="object"})).unbind(g):c&&p.show.target.unbind(g+"-create")}function K(d,f,h,j){function D(a){z.is(":visible")&&u.reposition(a)}function C(a){if(z.hasClass(l))return e;clearTimeout(u.timers.inactive),u.timers.inactive=setTimeout(function(){u.hide(a)},p.hide.inactive)}function y(b){if(z.hasClass(l))return e;var c=a(b.relatedTarget||b.target),d=c.closest(m)[0]===z[0],f=c[0]===r.show[0];clearTimeout(u.timers.show),clearTimeout(u.timers.hide);if(n.target==="mouse"&&d||p.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||f))){b.stopPropagation(),b.preventDefault();return e}p.hide.delay>0?u.timers.hide=setTimeout(function(){u.hide(b)},p.hide.delay):u.hide(b)}function x(a){if(z.hasClass(l))return e;r.show.trigger("qtip-"+q+"-inactive"),clearTimeout(u.timers.show),clearTimeout(u.timers.hide);var b=function(){u.show(a)};p.show.delay>0?u.timers.show=setTimeout(b,p.show.delay):b()}var k=".qtip-"+q,n=p.position,r={show:p.show.target,hide:p.hide.target,container:n.container[0]===v?a(document):n.container,doc:a(document)},s={show:a.trim(""+p.show.event).split(" "),hide:a.trim(""+p.hide.event).split(" ")},t=a.browser.msie&&parseInt(a.browser.version,10)===6,w;h&&(p.hide.fixed&&(r.hide=r.hide.add(z),z.bind("mouseover"+k,function(){z.hasClass(l)||clearTimeout(u.timers.hide)})),n.target==="mouse"&&n.adjust.mouse&&p.hide.event&&z.bind("mouseleave"+k,function(a){(a.relatedTarget||a.target)!==r.show[0]&&u.hide(a)}),z.bind("mouseenter"+k,function(a){u[a.type==="mouseenter"?"focus":"blur"](a)}),z.bind("mouseenter"+k+" mouseleave"+k,function(a){z.toggleClass(o,a.type==="mouseenter")})),f&&("number"===typeof p.hide.inactive&&(r.show.bind("qtip-"+q+"-inactive",C),a.each(g.inactiveEvents,function(a,b){r.hide.add(A.tooltip).bind(b+k+"-inactive",C)})),a.each(s.hide,function(b,c){var d=a.inArray(c,s.show),e=a(r.hide);d>-1&&e.add(r.show).length===e.length||c==="unfocus"?(r.show.bind(c+k,function(a){z.is(":visible")?y(a):x(a)}),delete s.show[d]):r.hide.bind(c+k,y)})),d&&(a.each(s.show,function(a,b){r.show.bind(b+k,x)}),"number"===typeof p.hide.distance&&r.show.bind("mousemove"+k,function(a){var b=B.origin||{},c=p.hide.distance,d=Math.abs;b&&(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&u.hide(a)})),j&&((n.adjust.resize||n.viewport)&&a(a.event.special.resize?n.viewport:b).bind("resize"+k,D),(n.viewport||t&&z.css("position")==="fixed")&&a(n.viewport).bind("scroll"+k,D),/unfocus/i.test(p.hide.event)&&r.doc.bind("mousedown"+k,function(b){var d=a(b.target);d.parents(m).length===0&&d.add(c).length>1&&z.is(":visible")&&!z.hasClass(l)&&u.hide(b)}),p.hide.leave&&/mouseleave|mouseout/i.test(p.hide.event)&&a(b).bind("blur"+k+" mouse"+(p.hide.leave.indexOf("frame")>-1?"out":"leave")+k,function(a){a.relatedTarget||u.hide(a)}),n.target==="mouse"&&r.doc.bind("mousemove"+k,function(a){n.adjust.mouse&&!z.hasClass(l)&&z.is(":visible")&&u.reposition(a||i)}))}function J(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(u.redraw(),u.reposition(B.event),a())}var b;if((b=f.find("img:not([height]):not([width])")).length===0)return c.call(b);b.each(function(a,b){(function d(){var e=u.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=A.content;b=b||p.content.text;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),u.rendered<0?z.queue("fx",g):(y=0,g(a.noop));return u}function I(b){var d=A.title;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),u.redraw(),u.rendered&&z.is(":visible")&&u.reposition(B.event)}function H(a){var b=A.button,c=A.title;if(!u.rendered)return e;a?(c||G(),F()):b.remove()}function G(){var b=w+"-title";A.titlebar&&E(),A.titlebar=a("
",{"class":j+"-titlebar "+(p.style.widget?"ui-widget-header":"")}).append(A.title=a("
",{id:b,"class":j+"-title","aria-atomic":d})).insertBefore(A.content),p.content.title.button?F():u.rendered&&u.redraw()}function F(){var b=p.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";A.button&&A.button.remove(),b.jquery?A.button=b:A.button=a("",{"class":"ui-state-default "+(p.style.widget?"":j+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),A.button.appendTo(A.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){z.hasClass(l)||u.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),u.redraw()}function E(){A.title&&(A.titlebar.remove(),A.titlebar=A.title=A.button=f,u.reposition())}function D(){var a=p.style.widget;z.toggleClass(k,a),A.content.toggleClass(k+"-content",a),A.titlebar&&A.titlebar.toggleClass(k+"-header",a),A.button&&A.button.toggleClass(j+"-icon",!a)}function C(a){var b=0,c,d=p,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(z[0].id=i,A.content[0].id=i+"-content",A.title[0].id=i+"-title")},"^content.text$":function(a,b,c){J(c)},"^content.title.text$":function(a,b,c){if(!c)return E();!A.title&&c&&G(),I(c)},"^content.title.button$":function(a,b,c){H(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){u.rendered&&z.appendTo(c)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(a,b,c,d,e){var f=[1,0,0];f[e[1]==="show"?"push":"unshift"](0),L.apply(u,f),K.apply(u,[1,1,0,0])},"^show.ready$":function(){u.rendered?u.show():u.render(1)},"^style.classes$":function(b,c,d){a.attr(z[0],"class",j+" qtip ui-helper-reset "+d)},"^style.widget|content.title":D,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){z[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)}},a.extend(u,{render:function(b){if(u.rendered)return u;var f=p.content.title.text,g=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",w),z=A.tooltip=a("
",{id:w,"class":j+" qtip ui-helper-reset "+p.style.classes,width:p.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":w+"-content","aria-hidden":d}).toggleClass(l,B.disabled).data("qtip",u).appendTo(p.position.container).append(A.content=a("
",{"class":j+"-content",id:w+"-content","aria-atomic":d})),u.rendered=-1,y=1,f&&(G(),I(f)),J(),u.rendered=d,D(),a.each(p.events,function(b,c){a.isFunction(c)&&z.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(u)}),K(1,1,1,1),z.queue("fx",function(a){g.originalEvent=B.event,z.trigger(g,[u]),y=0,u.redraw(),(p.show.ready||b)&&u.show(B.event),a()});return u},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:z.outerHeight(),width:z.outerWidth()};break;case"offset":b=h.offset(z,p.position.container);break;default:c=C(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(u,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=u.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=C(c.toLowerCase()),f;f=e[0][e[1]],e[0][e[1]]="object"===typeof d&&d.nodeType?a(d):d,b[c]=[e[0],e[1],d,f],i=g.test(c)||i,j=h.test(c)||j}),t(p),x=y=1,a.each(b,m),x=y=0,z.is(":visible")&&u.rendered&&(i&&u.reposition(p.position.target==="mouse"?f:B.event),j&&u.redraw());return u},toggle:function(b,c){function l(){b?(a.browser.msie&&z[0].style.removeAttribute("filter"),z.css("overflow","")):z.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}if(!u.rendered)if(b)u.render(1);else return u;var d=b?"show":"hide",g=p[d],h=z.is(":visible"),j,k;(typeof b).search("boolean|number")&&(b=!h);if(h===b)return u;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(B.event.type)&&c.target===p.show.target[0]&&z.has(c.relatedTarget).length)return u;B.event=a.extend({},c)}k=a.Event("tooltip"+d),k.originalEvent=c?B.event:f,z.trigger(k,[u,90]);if(k.isDefaultPrevented())return u;a.attr(z[0],"aria-hidden",!b),b?(B.origin=a.extend({},i),u.focus(c),a.isFunction(p.content.text)&&J(),u.reposition(c),g.solo&&a(m,g.solo).not(z).qtip("hide",k)):(clearTimeout(u.timers.show),delete B.origin,u.blur(c)),z.stop(0,1),a.isFunction(g.effect)?(g.effect.call(z,u),z.queue("fx",function(a){l(),a()})):g.effect===e?(z[d](),l.call(z)):z.fadeTo(90,b?1:0,l),b&&g.target.trigger("qtip-"+q+"-inactive");return u},show:function(a){return u.toggle(d,a)},hide:function(a){return u.toggle(e,a)},focus:function(b){if(!u.rendered)return u;var c=a(m),d=parseInt(z[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;z.hasClass(n)||(i=a.Event("tooltipfocus"),i.originalEvent=f,z.trigger(i,[u,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+n).qtip("blur",f)),z.addClass(n)[0].style.zIndex=e));return u},blur:function(b){var c=a.extend({},b),d;z.removeClass(n),d=a.Event("tooltipblur"),d.originalEvent=c,z.trigger(d,[u]);return u},reposition:function(c,d){if(!u.rendered||x)return u;x=1;var f=p.position.target,g=p.position,k=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=z.outerWidth(),q=z.outerHeight(),r=0,s=0,t=a.Event("tooltipmove"),w=z.css("position")==="fixed",y=g.viewport.jquery?g.viewport:a(b),A={left:0,top:0},C=(u.plugins.tip||{}).corner,D={horizontal:n[0],vertical:n[1]||n[0],tip:p.style.tip||{},left:function(a){var b=D.horizontal==="shift",c=y.offset.left+y.scrollLeft,d=k.x==="left"?o:k.x==="right"?-o:-o/2,e=l.x==="left"?r:l.x==="right"?-r:-r/2,f=D.tip.width+D.tip.border*2||0,g=C&&C.precedance==="x"&&!b?f:0,h=c-a-g,i=a+o-y.width-c+g,j=d-(k.precedance==="x"||k.x===k.y?e:0),n=k.x==="center";b?(g=C&&C.precedance==="y"?f:0,j=(k.x==="left"?1:-1)*d-g,A.left+=h>0?h:i>0?-i:0,A.left=Math.max(y.offset.left+(g&&C.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.left+y.width,a+j),A.left))):(h>0&&(k.x!=="left"||i>0)?A.left-=j+(n?0:2*m.x):i>0&&(k.x!=="right"||h>0)&&(A.left-=n?-j:j+2*m.x),A.left!==a&&n&&(A.left-=m.x),A.lefti&&(A.left=a));return A.left-a},top:function(a){var b=D.vertical==="shift",c=y.offset.top+y.scrollTop,d=k.y==="top"?q:k.y==="bottom"?-q:-q/2,e=l.y==="top"?s:l.y==="bottom"?-s:-s/2,f=D.tip.height+D.tip.border*2||0,g=C&&C.precedance==="y"&&!b?f:0,h=c-a-g,i=a+q-y.height-c+g,j=d-(k.precedance==="y"||k.x===k.y?e:0),n=k.y==="center";b?(g=C&&C.precedance==="x"?f:0,j=(k.y==="top"?1:-1)*d-g,A.top+=h>0?h:i>0?-i:0,A.top=Math.max(y.offset.top+(g&&C.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.top+y.height,a+j),A.top))):(h>0&&(k.y!=="top"||i>0)?A.top-=j+(n?0:2*m.y):i>0&&(k.y!=="bottom"||h>0)&&(A.top-=n?-j:j+2*m.y),A.top!==a&&n&&(A.top-=m.y),A.top<0&&-A.top>i&&(A.top=a));return A.top-a}};if(f==="mouse")l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?B.event:!m.mouse&&B.origin?B.origin:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:c,A={top:c.pageY,left:c.pageX};else{f==="event"&&(c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=B.target=a(c.target):f=B.target),f=a(f).eq(0);if(f.length===0)return u;f[0]===document||f[0]===b?(r=f.width(),s=f.height(),f[0]===b&&(A={top:!w||h.iOS?y.scrollTop():0,left:!w||h.iOS?y.scrollLeft():0})):f.is("area")&&h.imagemap?A=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?A=h.svg(f,l):(r=f.outerWidth(),s=f.outerHeight(),A=h.offset(f,g.container,w)),A.offset&&(r=A.width,s=A.height,A=A.offset),A.left+=l.x==="right"?r:l.x==="center"?r/2:0,A.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}A.left+=m.x+(k.x==="right"?-o:k.x==="center"?-o/2:0),A.top+=m.y+(k.y==="bottom"?-q:k.y==="center"?-q/2:0),y.jquery&&f[0]!==b&&f[0]!==v&&D.vertical+D.horizontal!=="nonenone"?(y={elem:y,height:y[(y[0]===b?"h":"outerH")+"eight"](),width:y[(y[0]===b?"w":"outerW")+"idth"](),scrollLeft:y.scrollLeft(),scrollTop:y.scrollTop(),offset:y.offset()||{left:0,top:0}},A.adjusted={left:D.horizontal!=="none"?D.left(A.left):0,top:D.vertical!=="none"?D.top(A.top):0}):A.adjusted={left:0,top:0},z.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+k.abbreviation()),t.originalEvent=a.extend({},c),z.trigger(t,[u,A,y.elem||y]);if(t.isDefaultPrevented())return u;delete A.adjusted,d===e||isNaN(A.left)||isNaN(A.top)||!a.isFunction(g.effect)?z.css(A):a.isFunction(g.effect)&&(g.effect.call(z,u,a.extend({},A)),z.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),x=0;return u},redraw:function(){if(u.rendered<1||p.style.width||y)return u;var b=j+"-fluid",c=p.position.container,d,e,f,g;y=1,z.css("width","").addClass(b),e=z.width()+(a.browser.mozilla?1:0),f=z.css("max-width")||"",g=z.css("min-width")||"",d=(f+g).indexOf("%")>-1?c.width()/100:0,f=(f.indexOf("%")>-1?d:1)*parseInt(f,10)||e,g=(g.indexOf("%")>-1?d:1)*parseInt(g,10)||0,e=f+g?Math.min(Math.max(e,g),f):e,z.css("width",Math.round(e)).removeClass(b),y=0;return u},disable:function(b){var c=l;"boolean"!==typeof b&&(b=!z.hasClass(c)&&!B.disabled),u.rendered?(z.toggleClass(c,b),a.attr(z[0],"aria-disabled",b)):B.disabled=!!b;return u},enable:function(){return u.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,r);u.rendered&&(z.remove(),a.each(u.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(u.timers.show),clearTimeout(u.timers.hide),L(1,1,1,1),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(r)),c.removeAttr("aria-describedby").unbind(".qtip");return c}})}function t(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function s(){var c=b.console;return c&&(c.error||c.log||a.noop).apply(c,arguments)}var d=!0,e=!1,f=null,g,h,i,j="ui-tooltip",k="ui-widget",l="ui-state-disabled",m="div.qtip."+j,n=j+"-focus",o=j+"-hover",p="-31000px",q="_replacedByqTip",r="oldtitle";g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1,10),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=t(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,c){return this.each(function(f){function p(b){function c(){o.render(typeof b==="object"||i.show.ready),k.show.unbind(l.show),k.hide.unbind(l.hide)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),i.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(c,i.show.delay),l.show!==l.hide&&k.hide.bind(l.hide,function(){clearTimeout(o.timers.show)})):c()}var i,k,l,m=!b.id||b.id===e||b.id.length<1||a("#"+j+"-"+b.id).length?g.nextid++:b.id,n=".qtip-"+m+"-create",o=v.call(this,m,b);if(o===e)return d;i=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),k={show:i.show.target,hide:i.hide.target},l={show:a.trim(""+i.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+i.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(l.show)&&!/mouse(out|leave)/i.test(l.hide)&&(l.hide+=" mouseleave"+n),k.show.bind(l.show,p),(i.show.ready||i.prerender)&&p(c)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.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 a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{if(g[0]===j)break;g.css("position")!=="static"&&(k=g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++)}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,r);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+q].apply(this,arguments),a.attr(d,r,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+q].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,r)),this.removeAttribute(r)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+q]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:d},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new w(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new y(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[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}('"88 5x",9(a,b,c){9 A(b){Q c=S,d=b.2S,e=d.1p,f=".23-"+b.1o;a.1l(c,{1S:9(){d.23=a(\'<4r 1N="1t-1p-23" 5y="0" 5z="-1" 8a="5B:\\\'\\\';" 15="2i:2R; 14:3T; z-7S:-1; 2D:5C(4m=0); -86-2D:"5E:5F.5G.7C(5H=0)";">\'),d.23.2L(e),e.18("4h"+f,c.2a)},2a:9(){Q a=b.4k("51"),c=b.1C.12,f=d.12,g,h;h=1v(e.Y("1b-N-U"),10)||0,h={N:-h,M:-h},c&&f&&(g=c.1i.1e==="x"?["U","N"]:["X","M"],h[g[1]]-=f[g[0]]()),d.23.Y(h).Y(a)},2c:9(){d.23.1J(),e.1r(f)}}),c.1S()}9 z(c){Q f=S,g=c.24.P.1z,h=c.2S,i=h.1p,j="#1c-2n",k=".5I",l=k+c.1o,m="1I-1z-1c",o;c.2V.1z={"^P.1z.(2Z|1O)$":9(){f.1S(),h.2n.1Y(i.1I(":1U"))}},a.1l(f,{1S:9(){T(!g.2Z)O f;o=f.2s(),i.16(m,d).1r(k).1r(l).18("4b"+k+" 4Z"+k,9(a,b,c){f[a.1x.25("1p","")](a,c)}).18("58"+k,9(a,b,c){o[0].15.2M=c-1}).18("5a"+k,9(b){a("["+m+"]:1U").2H(i).7D().1c("2f",b)}),g.4s&&a(b).1r(l).18("4J"+l,9(a){a.7L===27&&i.1R(n)&&c.R(a)}),g.1O&&h.2n.1r(l).18("3R"+l,9(a){i.1R(n)&&c.R(a)});O f},2s:9(){Q c=a(j);T(c.1a){h.2n=c;O c}o=h.2n=a("<2l />",{1o:j.2z(1),Y:{14:"3T",M:0,N:0,2i:"3I"},3r:9(){O e}}).2L(1A.39),a(b).1r(k).18("2r"+k,9(){o.Y({X:17.1F(a(b).X(),a(1A).X()),U:17.1F(a(b).U(),a(1A).U())})}).2u("2r");O o},1Y:9(b,c,j){T(b&&b.3k())O f;Q k=g.1P,l=c?"P":"R",n=a("["+m+"]:1U").2H(i),p;o||(o=f.2s());T(o.1I(":5L")&&!c||!c&&n.1a)O f;c&&h.2n.Y("7o",g.1O?"5M":""),o.57(d,e),a.1L(k)?k.22(o,c):k===e?o[l]():o.4u(1v(j,10)||3P,c?.7:0,9(){c||a(S).R()});O f},P:9(a,b){O f.1Y(a,d,b)},R:9(a,b){O f.1Y(a,e,b)},2c:9(){Q d=o;d&&(d=a("["+m+"]").2H(i).1a<1,d?(h.2n.1J(),a(b).1r(k)):h.2n.1r(k+c.1o));O i.3v(m).1r(k)}}),f.1S()}9 y(b,g){9 v(a){Q b=a.1e==="y",c=n[b?"U":"X"],d=n[b?"X":"U"],e=a.1q().2F("1f")>-1,f=c*(e?.5:1),g=17.5O,h=17.3O,i,j,k,l=17.4p(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=17.4p(g(m[0],2)-g(p,2)),m[3]=17.4p(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];O{X:k[b?0:1],U:k[b?1:0]}}9 u(b){Q c=k.1y&&b.y==="M",d=c?k.1y:k.V,e=a.21.5o,f=e?"-6C-":a.21.4F?"-4F-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1b-4I-"+g:"1b-"+g+"-4I");O 1v(d.Y(h),10)||1v(l.Y(h),10)||0}9 t(a,b,c){b=b?b:a[a.1e];Q d=k.1y&&a.y==="M",e=d?k.1y:k.V,f="1b-"+b+"-U",g=1v(e.Y(f),10);O(c?g||1v(l.Y(f),10):g)||0}9 s(f,g,h,l){T(k.12){Q n=a.1l({},i.1i),o=h.3J,p=b.24.14.2a.4n.2A(" "),q=p[0],r=p[1]||p[0],s={N:e,M:e,x:0,y:0},t,u={},v;i.1i.2v!==d&&(q==="2g"&&n.1e==="x"&&o.N&&n.y!=="1f"?n.1e=n.1e==="x"?"y":"x":q==="3M"&&o.N&&(n.x=n.x==="1f"?o.N>0?"N":"1j":n.x==="N"?"1j":"N"),r==="2g"&&n.1e==="y"&&o.M&&n.x!=="1f"?n.1e=n.1e==="y"?"x":"y":r==="3M"&&o.M&&(n.y=n.y==="1f"?o.M>0?"M":"1k":n.y==="M"?"1k":"M"),n.1q()!==m.1i&&(m.M!==o.M||m.N!==o.N)&&i.35(n,e)),t=i.14(n,o),t.1j!==c&&(t.N=-t.1j),t.1k!==c&&(t.M=-t.1k),t.3Z=17.1F(0,j.W);T(s.N=q==="2g"&&!!o.N)n.x==="1f"?u["2N-N"]=s.x=t["2N-N"]-o.N:(v=t.1j!==c?[o.N,-t.N]:[-o.N,t.N],(s.x=17.1F(v[0],v[1]))>v[0]&&(h.N-=o.N,s.N=e),u[t.1j!==c?"1j":"N"]=s.x);T(s.M=r==="2g"&&!!o.M)n.y==="1f"?u["2N-M"]=s.y=t["2N-M"]-o.M:(v=t.1k!==c?[o.M,-t.M]:[-o.M,t.M],(s.y=17.1F(v[0],v[1]))>v[0]&&(h.M-=o.M,s.M=e),u[t.1k!==c?"1k":"M"]=s.y);k.12.Y(u).1Y(!(s.x&&s.y||n.x==="1f"&&s.y||n.y==="1f"&&s.x)),h.N-=t.N.31?t.3Z:q!=="2g"||s.M||!s.N&&!s.M?t.N:0,h.M-=t.M.31?t.3Z:r!=="2g"||s.N||!s.N&&!s.M?t.M:0,m.N=o.N,m.M=o.M,m.1i=n.1q()}}Q i=S,j=b.24.15.12,k=b.2S,l=k.1p,m={M:0,N:0,1i:""},n={U:j.U,X:j.X},o={},p=j.1b||0,q=".1c-12",r=a("<4P />")[0].3S;i.1i=f,i.3y=f,i.14={},b.2V.12={"^14.1Q|15.12.(1i|3y|1b)$":9(){i.1S()||i.2c(),b.1W()},"^15.12.(X|U)$":9(){n={U:j.U,X:j.X},i.2s(),i.35(),b.1W()},"^V.19.1n|15.(3f|2j)$":9(){k.12&&i.35()}},a.1l(i,{1S:9(){Q b=i.4t()&&(r||a.21.3j);b&&(i.2s(),i.35(),l.1r(q).18("4h"+q,s));O b},4t:9(){Q a=j.1i,c=b.24.14,f=c.2t,g=c.1Q.1q?c.1Q.1q():c.1Q;T(a===e||g===e&&f===e)O e;a===d?i.1i=1E h.2w(g):a.1q||(i.1i=1E h.2w(a),i.1i.2v=d);O i.1i.1q()!=="5q"},4w:9(){Q c,d,e,f=k.12.Y({6i:"",1b:""}),g=i.1i,h=g[g.1e],m="1b-"+h+"-36",p="1b"+h.31(0)+h.2z(1)+"5T",q=/5U?\\(0, 0, 0(, 0)?\\)|3q/i,r="5V-36",s="3q",t="1t-1p-5n",u=a(1A.39).Y("36"),v=b.2S.V.Y("36"),w=k.1y&&(g.y==="M"||g.y==="1f"&&f.14().M+n.X/2+j.W",{"1N":"1t-1p-12"}).Y({U:b,X:c}).5W(l),r?a("<4P />").2L(k.12)[0].3S("2d").4x():(d=\'<3W:41 5X="0,0" 15="2i:4X-2R; 14:3T; 4C:2h(#3B#4D);">\',k.12.2Q(p?d+=d:d))},35:9(b,c){Q g=k.12,l=g.5Z(),m=n.U,q=n.X,s="3X 60 ",u="3X 61 3q",w=j.3y,y=17.3O,z,A,B,C,D;b||(b=i.1i),w===e?w=b:(w=1E h.2w(w),w.1e=b.1e,w.x==="3D"?w.x=b.x:w.y==="3D"?w.y=b.y:w.x===w.y&&(w[b.1e]=b[b.1e])),z=w.1e,i.4w(),p=o.1b==="3q"||o.1b==="#62"?0:j.1b===d?t(b,f,d):j.1b,B=x(w,m,q),D=v(b),g.Y(D),b.1e==="y"?C=[y(w.x==="N"?p:w.x==="1j"?D.U-m-p:(D.U-m)/2),y(w.y==="M"?D.X-q:0)]:C=[y(w.x==="N"?D.U-m:0),y(w.y==="M"?p:w.y==="1k"?D.X-q-p:(D.X-q)/2)],r?(l.16(D),A=l[0].3S("2d"),A.63(),A.4x(),A.65(0,0,5u,5u),A.66(C[0],C[1]),A.67(),A.68(B[0][0],B[0][1]),A.4y(B[1][0],B[1][1]),A.4y(B[2][0],B[2][1]),A.69(),A.6a=o.2K,A.6b=o.1b,A.82=p*2,A.6c="4B",A.6d=5p,A.4z(),A.2K()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6e",C[2]=p&&/^(r|b)/i.1D(b.1q())?4G(a.21.3E,10)===8?2:1:0,l.Y({6f:""+(w.1q().2F("1f")>-1),N:C[0]-C[2]*5e(z==="x"),M:C[1]-C[2]*5e(z==="y"),U:m+p,X:q+p}).1m(9(b){Q c=a(S);c.16({6g:m+p+" "+(q+p),7U:B,6j:o.2K,6k:!!b,6l:!b}).Y({2i:p||b?"2R":"3I"}),!b&&p>0&&c.2Q()===""&&c.2Q(\'<3W:4z 6m="\'+p*2+\'3X" 36="\'+o.1b+\'" 6n="6o" 6p="4B" 15="4C:2h(#3B#4D); 2i:4X-2R;" />\')})),c!==e&&i.14(b)},14:9(b){Q c=k.12,f={},g=17.1F(0,j.W),h,l,m;T(j.1i===e||!c)O e;b=b||i.1i,h=b.1e,l=v(b),m=[b.x,b.y],h==="x"&&m.6q(),a.1m(m,9(a,c){Q e,i;c==="1f"?(e=h==="y"?"N":"M",f[e]="50%",f["2N-"+e]=-17.3O(l[h==="y"?"U":"X"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"U":"X"],c.Y({M:"",1k:"",N:"",1j:"",2N:""}).Y(f);O f},2c:9(){k.12&&k.12.1J(),l.1r(q)}}),i.1S()}9 x(a,b,c){Q d=17.3A(b/2),e=17.3A(c/2),f={4V:[[0,0],[b,c],[b,0]],4U:[[0,0],[b,0],[0,c]],4R:[[0,c],[b,0],[b,c]],4S:[[0,0],[0,c],[b,c]],7A:[[0,c],[d,0],[b,c]],6s:[[0,0],[b,0],[d,c]],6u:[[0,0],[b,e],[0,c]],6v:[[b,0],[b,c],[0,e]]};f.6x=f.4V,f.6y=f.4U,f.7s=f.4R,f.6B=f.4S;O f[a.1q()]}9 w(b){Q c=S,f=b.2S.1p,g=b.24.V.1w,h=".1c-1w",i=/<45\\b[^<]*(?:(?!<\\/45>)<[^<]*)*<\\/45>/5g,j=d;b.2V.1w={"^V.1w":9(a,b,d){b==="1w"&&(g=d),b==="2p"?c.1S():g&&g.2h?c.43():f.1r(h)}},a.1l(c,{1S:9(){g&&g.2h&&f.1r(h)[g.2p?"6D":"18"]("4b"+h,c.43);O c},43:9(d,h){9 p(a,c,d){b.3c("V.1n",c+": "+d),n()}9 o(c){l&&(c=a("<2l/>").38(c.25(i,"")).4M(l)),b.3c("V.1n",c),n()}9 n(){m&&(f.Y("4d",""),h=e)}T(d&&d.3k())O c;Q j=g.2h.2F(" "),k=g.2h,l,m=g.2p&&!g.5v&&h;m&&f.Y("4d","4f"),j>-1&&(l=k.2z(j),k=k.2z(0,j)),a.1w(a.1l({6E:o,5r:p,7k:b},g,{2h:k}));O c}}),c.1S()}9 v(b,c){Q i,j,k,l,m=a(S),n=a(1A.39),o=S===1A?n:m,p=m.1V?m.1V(c.1V):f,q=c.1V.1x==="6G"&&p?p[c.1V.46]:f,v=m.2o(c.1V.46||"6H");7g{v=11 v==="1q"?(1E 6J("O "+v))():v}7e(w){s("6K 7c 7b 7a 6N 2o: "+v)}l=a.1l(d,{},g.3a,c,11 v==="1g"?t(v):f,t(q||p)),p&&a.5s(S,"1V"),j=l.14,l.1o=b;T("3h"===11 l.V.1n){k=m.16(l.V.16);T(l.V.16!==e&&k)l.V.1n=k;2y O e}j.1u===e&&(j.1u=n),j.13===e&&(j.13=o),l.P.13===e&&(l.P.13=o),l.P.3o===d&&(l.P.3o=n),l.R.13===e&&(l.R.13=o),l.14.29===d&&(l.14.29=j.1u),j.2t=1E h.2w(j.2t),j.1Q=1E h.2w(j.1Q);T(a.2o(S,"1c"))T(l.4l)m.1c("2c");2y T(l.4l===e)O e;a.16(S,"19")&&(a.16(S,r,a.16(S,"19")),S.3w("19")),i=1E u(m,l,b,!!k),a.2o(S,"1c",i),m.18("1J.1c",9(){i.2c()});O i}9 u(c,p,q,s){9 L(c,d,e,f){f=1v(f,10)!==0;Q g=".1c-"+q,h={P:c&&p.P.13[0],R:d&&p.R.13[0],1p:e&&u.1h&&A.1p[0],V:e&&u.1h&&A.V[0],1u:f&&p.14.1u[0]===v?1A:p.14.1u[0],3Q:f&&b};u.1h?a([]).78(a.6Q([h.P,h.R,h.1p,h.1u,h.V,h.3Q],9(a){O 11 a==="1g"})).1r(g):c&&p.P.13.1r(g+"-2s")}9 K(d,f,h,j){9 D(a){z.1I(":1U")&&u.1W(a)}9 C(a){T(z.1R(l))O e;1H(u.1s.1T),u.1s.1T=37(9(){u.R(a)},p.R.1T)}9 y(b){T(z.1R(l))O e;Q c=a(b.3C||b.13),d=c.76(m)[0]===z[0],f=c[0]===r.P[0];1H(u.1s.P),1H(u.1s.R);T(n.13==="1G"&&d||p.R.2v&&(/1G(4e|2X|42)/.1D(b.1x)&&(d||f))){b.6R(),b.6T();O e}p.R.2e>0?u.1s.R=37(9(){u.R(b)},p.R.2e):u.R(b)}9 x(a){T(z.1R(l))O e;r.P.2u("1c-"+q+"-1T"),1H(u.1s.P),1H(u.1s.R);Q b=9(){u.P(a)};p.P.2e>0?u.1s.P=37(b,p.P.2e):b()}Q k=".1c-"+q,n=p.14,r={P:p.P.13,R:p.R.13,1u:n.1u[0]===v?a(1A):n.1u,40:a(1A)},s={P:a.3F(""+p.P.1d).2A(" "),R:a.3F(""+p.R.1d).2A(" ")},t=a.21.3j&&1v(a.21.3E,10)===6,w;h&&(p.R.2v&&(r.R=r.R.2T(z),z.18("6U"+k,9(){z.1R(l)||1H(u.1s.R)})),n.13==="1G"&&n.2a.1G&&p.R.1d&&z.18("30"+k,9(a){(a.3C||a.13)!==r.P[0]&&u.R(a)}),z.18("2E"+k,9(a){u[a.1x==="2E"?"2f":"1O"](a)}),z.18("2E"+k+" 30"+k,9(a){z.2b(o,a.1x==="2E")})),f&&("2J"===11 p.R.1T&&(r.P.18("1c-"+q+"-1T",C),a.1m(g.56,9(a,b){r.R.2T(A.1p).18(b+k+"-1T",C)})),a.1m(s.R,9(b,c){Q d=a.6W(c,s.P),e=a(r.R);d>-1&&e.2T(r.P).1a===e.1a||c==="3U"?(r.P.18(c+k,9(a){z.1I(":1U")?y(a):x(a)}),2C s.P[d]):r.R.18(c+k,y)})),d&&(a.1m(s.P,9(a,b){r.P.18(b+k,x)}),"2J"===11 p.R.4j&&r.P.18("34"+k,9(a){Q b=B.33||{},c=p.R.4j,d=17.3l;b&&(d(a.2m-b.2m)>=c||d(a.2x-b.2x)>=c)&&u.R(a)})),j&&((n.2a.2r||n.29)&&a(a.1d.6X.2r?n.29:b).18("2r"+k,D),(n.29||t&&z.Y("14")==="2v")&&a(n.29).18("4i"+k,D),/3U/i.1D(p.R.1d)&&r.40.18("3r"+k,9(b){Q d=a(b.13);d.70(m).1a===0&&d.2T(c).1a>1&&z.1I(":1U")&&!z.1R(l)&&u.R(b)}),p.R.2X&&/30|4H/i.1D(p.R.1d)&&a(b).18("1O"+k+" 1G"+(p.R.2X.2F("71")>-1?"4e":"2X")+k,9(a){a.3C||u.R(a)}),n.13==="1G"&&r.40.18("34"+k,9(a){n.2a.1G&&!z.1R(l)&&z.1I(":1U")&&u.1W(a||i)}))}9 J(b,d){9 g(a){9 c(c){(b=b.2H(S)).1a===0&&(u.2G(),u.1W(B.1d),a())}Q b;T((b=f.4M("3t:2H([X]):2H([U])")).1a===0)O c.22(b);b.1m(9(a,b){(9 d(){Q e=u.1s.3t;T(b.X&&b.U){1H(e[a]);O c.22(b)}e[a]=37(d,20)})()})}Q f=A.V;b=b||p.V.1n;T(!u.1h||!b)O e;a.1L(b)&&(b=b.22(c,u)||""),b.1Z&&b.1a>0?f.4N().38(b.Y({2i:"2R"})):f.2Q(b),u.1h<0?z.3K("3Y",g):(y=0,g(a.5h));O u}9 I(b){Q d=A.19;T(!u.1h||!b)O e;a.1L(b)&&(b=b.22(c,u)||""),b.1Z&&b.1a>0?d.4N().38(b.Y({2i:"2R"})):d.2Q(b),u.2G(),u.1h&&z.1I(":1U")&&u.1W(B.1d)}9 H(a){Q b=A.1B,c=A.19;T(!u.1h)O e;a?(c||G(),F()):b.1J()}9 G(){Q b=w+"-19";A.1y&&E(),A.1y=a("<2l />",{"1N":j+"-1y "+(p.15.2j?"1t-2j-4T":"")}).38(A.19=a("<2l />",{1o:b,"1N":j+"-19","1M-4a":d})).74(A.V),p.V.19.1B?F():u.1h&&u.2G()}9 F(){Q b=p.V.19.1B,c=11 b==="1q",d=c?b:"75 1p";A.1B&&A.1B.1J(),b.1Z?A.1B=b:A.1B=a("",{"1N":"1t-32-3B "+(p.15.2j?"":j+"-3x"),19:d,"1M-77":d}).79(a("<7d />",{"1N":"1t-3x 1t-3x-7f",2Q:"&7h;"})),A.1B.2L(A.1y).16("4Y","1B").49(9(b){a(S).2b("1t-32-49",b.1x==="2E")}).3R(9(a){z.1R(l)||u.R(a);O e}).18("3r 4J 5b 7j 4H",9(b){a(S).2b("1t-32-7l 1t-32-2f",b.1x.2z(-4)==="7n")}),u.2G()}9 E(){A.19&&(A.1y.1J(),A.1y=A.19=A.1B=f,u.1W())}9 D(){Q a=p.15.2j;z.2b(k,a),A.V.2b(k+"-V",a),A.1y&&A.1y.2b(k+"-4T",a),A.1B&&A.1B.2b(j+"-3x",!a)}9 C(a){Q b=0,c,d=p,e=a.2A(".");3e(d=d[e[b++]])b0&&!a("#"+i).1a&&(z[0].1o=i,A.V[0].1o=i+"-V",A.19[0].1o=i+"-19")},"^V.1n$":9(a,b,c){J(c)},"^V.19.1n$":9(a,b,c){T(!c)O E();!A.19&&c&&G(),I(c)},"^V.19.1B$":9(a,b,c){H(c)},"^14.(1Q|2t)$":9(a,b,c){"1q"===11 c&&(a[b]=1E h.2w(c))},"^14.1u$":9(a,b,c){u.1h&&z.2L(c)},"^(P|R).(1d|13|2v|2e|1T)$":9(a,b,c,d,e){Q f=[1,0,0];f[e[1]==="P"?"4c":"7t"](0),L.26(u,f),K.26(u,[1,1,0,0])},"^P.2Y$":9(){u.1h?u.P():u.1K(1)},"^15.3f$":9(b,c,d){a.16(z[0],"1N",j+" 1c 1t-4E-4W "+d)},"^15.2j|V.19":D,"^48.(1K|P|42|R|2f|1O)$":9(b,c,d){z[(a.1L(d)?"":"7u")+"18"]("1p"+c,d)}},a.1l(u,{1K:9(b){T(u.1h)O u;Q f=p.V.19.1n,g=a.3b("7v");a.16(c[0],"1M-4q",w),z=A.1p=a("<2l/>",{1o:w,"1N":j+" 1c 1t-4E-4W "+p.15.3f,U:p.15.U||"",4Y:"7y","1M-7z":"7B","1M-4a":e,"1M-4q":w+"-V","1M-4f":d}).2b(l,B.2B).2o("1c",u).2L(p.14.1u).38(A.V=a("<2l />",{"1N":j+"-V",1o:w+"-V","1M-4a":d})),u.1h=-1,y=1,f&&(G(),I(f)),J(),u.1h=d,D(),a.1m(p.48,9(b,c){a.1L(c)&&z.18(b==="1Y"?"4b 4Z":"1p"+b,c)}),a.1m(h,9(){S.2I==="1K"&&S(u)}),K(1,1,1,1),z.3K("3Y",9(a){g.3n=B.1d,z.2u(g,[u]),y=0,u.2G(),(p.P.2Y||b)&&u.P(B.1d),a()});O u},4k:9(a){Q b,c;59(a.2q()){3i"51":b={X:z.3d(),U:z.3z()};2W;3i"W":b=h.W(z,p.14.1u);2W;3B:c=C(a.2q()),b=c[0][c[1]],b=b.1e?b.1q():b}O b},3c:9(b,c){9 m(a,b){Q c,d,e;52(c 1X k)52(d 1X k[c])T(e=(1E 7E(d,"i")).4L(a))b.4c(e),k[c][d].26(u,b)}Q g=/^14\\.(1Q|2t|2a|13|1u)|15|V|P\\.2Y/i,h=/^V\\.(19|16)|15/i,i=e,j=e,k=u.2V,l;"1q"===11 b?(l=b,b={},b[l]=c):b=a.1l(d,{},b),a.1m(b,9(c,d){Q e=C(c.2q()),f;f=e[0][e[1]],e[0][e[1]]="1g"===11 d&&d.7F?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1D(c)||i,j=h.1D(c)||j}),t(p),x=y=1,a.1m(b,m),x=y=0,z.1I(":1U")&&u.1h&&(i&&u.1W(p.14.13==="1G"?f:B.1d),j&&u.2G());O u},1Y:9(b,c){9 l(){b?(a.21.3j&&z[0].15.3w("2D"),z.Y("7G","")):z.Y({2i:"",4d:"",U:"",4m:"",N:"",M:""})}T(!u.1h)T(b)u.1K(1);2y O u;Q d=b?"P":"R",g=p[d],h=z.1I(":1U"),j,k;(11 b).4A("3h|2J")&&(b=!h);T(h===b)O u;T(c){T(/7H|7I/.1D(c.1x)&&/4e|2X/.1D(B.1d.1x)&&c.13===p.P.13[0]&&z.7J(c.3C).1a)O u;B.1d=a.1l({},c)}k=a.3b("1p"+d),k.3n=c?B.1d:f,z.2u(k,[u,3P]);T(k.3k())O u;a.16(z[0],"1M-4f",!b),b?(B.33=a.1l({},i),u.2f(c),a.1L(p.V.1n)&&J(),u.1W(c),g.3o&&a(m,g.3o).2H(z).1c("R",k)):(1H(u.1s.P),2C B.33,u.1O(c)),z.57(0,1),a.1L(g.1P)?(g.1P.22(z,u),z.3K("3Y",9(a){l(),a()})):g.1P===e?(z[d](),l.22(z)):z.4u(3P,b?1:0,l),b&&g.13.2u("1c-"+q+"-1T");O u},P:9(a){O u.1Y(d,a)},R:9(a){O u.1Y(e,a)},2f:9(b){T(!u.1h)O u;Q c=a(m),d=1v(z[0].15.2M,10),e=g.5d+c.1a,f=a.1l({},b),h,i;z.1R(n)||(i=a.3b("58"),i.3n=f,z.2u(i,[u,e]),i.3k()||(d!==e&&(c.1m(9(){S.15.2M>d&&(S.15.2M=S.15.2M-1)}),c.2D("."+n).1c("1O",f)),z.3L(n)[0].15.2M=e));O u},1O:9(b){Q c=a.1l({},b),d;z.4o(n),d=a.3b("5a"),d.3n=c,z.2u(d,[u]);O u},1W:9(c,d){T(!u.1h||x)O u;x=1;Q f=p.14.13,g=p.14,k=g.1Q,l=g.2t,m=g.2a,n=m.4n.2A(" "),o=z.3z(),q=z.3d(),r=0,s=0,t=a.3b("4h"),w=z.Y("14")==="2v",y=g.29.1Z?g.29:a(b),A={N:0,M:0},C=(u.1C.12||{}).1i,D={3G:n[0],3H:n[1]||n[0],12:p.15.12||{},N:9(a){Q b=D.3G==="2g",c=y.W.N+y.2P,d=k.x==="N"?o:k.x==="1j"?-o:-o/2,e=l.x==="N"?r:l.x==="1j"?-r:-r/2,f=D.12.U+D.12.1b*2||0,g=C&&C.1e==="x"&&!b?f:0,h=c-a-g,i=a+o-y.U-c+g,j=d-(k.1e==="x"||k.x===k.y?e:0),n=k.x==="1f";b?(g=C&&C.1e==="y"?f:0,j=(k.x==="N"?1:-1)*d-g,A.N+=h>0?h:i>0?-i:0,A.N=17.1F(y.W.N+(g&&C.x==="1f"?D.12.W:0),a-j,17.3N(17.1F(y.W.N+y.U,a+j),A.N))):(h>0&&(k.x!=="N"||i>0)?A.N-=j+(n?0:2*m.x):i>0&&(k.x!=="1j"||h>0)&&(A.N-=n?-j:j+2*m.x),A.N!==a&&n&&(A.N-=m.x),A.Ni&&(A.N=a));O A.N-a},M:9(a){Q b=D.3H==="2g",c=y.W.M+y.2U,d=k.y==="M"?q:k.y==="1k"?-q:-q/2,e=l.y==="M"?s:l.y==="1k"?-s:-s/2,f=D.12.X+D.12.1b*2||0,g=C&&C.1e==="y"&&!b?f:0,h=c-a-g,i=a+q-y.X-c+g,j=d-(k.1e==="y"||k.x===k.y?e:0),n=k.y==="1f";b?(g=C&&C.1e==="x"?f:0,j=(k.y==="M"?1:-1)*d-g,A.M+=h>0?h:i>0?-i:0,A.M=17.1F(y.W.M+(g&&C.x==="1f"?D.12.W:0),a-j,17.3N(17.1F(y.W.M+y.X,a+j),A.M))):(h>0&&(k.y!=="M"||i>0)?A.M-=j+(n?0:2*m.y):i>0&&(k.y!=="1k"||h>0)&&(A.M-=n?-j:j+2*m.y),A.M!==a&&n&&(A.M-=m.y),A.M<0&&-A.M>i&&(A.M=a));O A.M-a}};T(f==="1G")l={x:"N",y:"M"},c=c&&(c.1x==="2r"||c.1x==="4i")?B.1d:!m.1G&&B.33?B.33:i&&(m.1G||!c||!c.2m)?{2m:i.2m,2x:i.2x}:c,A={M:c.2x,N:c.2m};2y{f==="1d"&&(c&&c.13&&c.1x!=="4i"&&c.1x!=="2r"?f=B.13=a(c.13):f=B.13),f=a(f).7O(0);T(f.1a===0)O u;f[0]===1A||f[0]===b?(r=f.U(),s=f.X(),f[0]===b&&(A={M:!w||h.2O?y.2U():0,N:!w||h.2O?y.2P():0})):f.1I("7Q")&&h.44?A=h.44(f,l):f[0].7T==="7V://7W.7X.7Y/7Z/3p"&&h.3p?A=h.3p(f,l):(r=f.3z(),s=f.3d(),A=h.W(f,g.1u,w)),A.W&&(r=A.U,s=A.X,A=A.W),A.N+=l.x==="1j"?r:l.x==="1f"?r/2:0,A.M+=l.y==="1k"?s:l.y==="1f"?s/2:0}A.N+=m.x+(k.x==="1j"?-o:k.x==="1f"?-o/2:0),A.M+=m.y+(k.y==="1k"?-q:k.y==="1f"?-q/2:0),y.1Z&&f[0]!==b&&f[0]!==v&&D.3H+D.3G!=="80"?(y={5l:y,X:y[(y[0]===b?"h":"81")+"83"](),U:y[(y[0]===b?"w":"84")+"85"](),2P:y.2P(),2U:y.2U(),W:y.W()||{N:0,M:0}},A.3J={N:D.3G!=="3I"?D.N(A.N):0,M:D.3H!=="3I"?D.M(A.M):0}):A.3J={N:0,M:0},z.16("1N",9(b,c){O a.16(S,"1N").25(/1t-1p-5k-\\w+/i,"")}).3L(j+"-5k-"+k.55()),t.3n=a.1l({},c),z.2u(t,[u,A,y.5l||y]);T(t.3k())O u;2C A.3J,d===e||5m(A.N)||5m(A.M)||!a.1L(g.1P)?z.Y(A):a.1L(g.1P)&&(g.1P.22(z,u,a.1l({},A)),z.3K(9(b){a(S).Y({4m:"",X:""}),a.21.3j&&S.15.3w("2D"),b()})),x=0;O u},2G:9(){T(u.1h<1||p.15.U||y)O u;Q b=j+"-5n",c=p.14.1u,d,e,f,g;y=1,z.Y("U","").3L(b),e=z.U()+(a.21.5o?1:0),f=z.Y("1F-U")||"",g=z.Y("3N-U")||"",d=(f+g).2F("%")>-1?c.U()/5p:0,f=(f.2F("%")>-1?d:1)*1v(f,10)||e,g=(g.2F("%")>-1?d:1)*1v(g,10)||0,e=f+g?17.3N(17.1F(e,g),f):e,z.Y("U",17.3O(e)).4o(b),y=0;O u},47:9(b){Q c=l;"3h"!==11 b&&(b=!z.1R(c)&&!B.2B),u.1h?(z.2b(c,b),a.16(z[0],"1M-2B",b)):B.2B=!!b;O u},87:9(){O u.47(e)},2c:9(){Q b=c[0],d=a.16(b,r);u.1h&&(z.1J(),a.1m(u.1C,9(){S.2c&&S.2c()})),1H(u.1s.P),1H(u.1s.R),L(1,1,1,1),a.5s(b,"1c"),d&&(a.16(b,"19",d),c.3v(r)),c.3v("1M-4q").1r(".1c");O c}})}9 t(b){Q c;T(!b||"1g"!==11 b)O e;"1g"!==11 b.1V&&(b.1V={1x:b.1V});T("V"1X b){T("1g"!==11 b.V||b.V.1Z)b.V={1n:b.V};c=b.V.1n||e,!a.1L(c)&&(!c&&!c.16||c.1a<1||"1g"===11 c&&!c.1Z)&&(b.V.1n=e),"19"1X b.V&&("1g"!==11 b.V.19&&(b.V.19={1n:b.V.19}),c=b.V.19.1n||e,!a.1L(c)&&(!c&&!c.16||c.1a<1||"1g"===11 c&&!c.1Z)&&(b.V.19.1n=e))}"14"1X b&&("1g"!==11 b.14&&(b.14={1Q:b.14,2t:b.14})),"P"1X b&&("1g"!==11 b.P&&(b.P.1Z?b.P={13:b.P}:b.P={1d:b.P})),"R"1X b&&("1g"!==11 b.R&&(b.R.1Z?b.R={13:b.R}:b.R={1d:b.R})),"15"1X b&&("1g"!==11 b.15&&(b.15={3f:b.15})),a.1m(h,9(){S.3g&&S.3g(b)});O b}9 s(){Q c=b.5w;O c&&(c.5r||c.5A||a.5h).26(c,28)}Q d=!0,e=!1,f=5D,g,h,i,j="1t-1p",k="1t-2j",l="1t-32-2B",m="2l.1c."+j,n=j+"-2f",o=j+"-49",p="-5J",q="5K",r="4K";g=a.2k.1c=9(b,h,i){Q j=(""+b).2q(),k=f,l=j==="47"?[d]:a.5N(28).5t(1,10),m=l[l.1a-1],n=S[0]?a.2o(S[0],"1c"):f;T(!28.1a&&n||j==="7w")O n;T("1q"===11 b){S.1m(9(){Q b=a.2o(S,"1c");T(!b)O d;m&&m.5P&&(b.3m.1d=m);T(j!=="5R"&&j!=="24"||!h)b[j]&&b[j].26(b[j],l);2y T(a.5S(h)||i!==c)b.3c(h,i);2y{k=b.4k(h);O e}});O k!==f?k:S}T("1g"===11 b||!28.1a){n=t(a.1l(d,{},b));O g.18.22(S,n,m)}},g.18=9(b,c){O S.1m(9(f){9 p(b){9 c(){o.1K(11 b==="1g"||i.P.2Y),k.P.1r(l.P),k.R.1r(l.R)}T(o.3m.2B)O e;o.3m.1d=a.1l({},b),i.P.2e>0?(1H(o.1s.P),o.1s.P=37(c,i.P.2e),l.P!==l.R&&k.R.18(l.R,9(){1H(o.1s.P)})):c()}Q i,k,l,m=!b.1o||b.1o===e||b.1o.1a<1||a("#"+j+"-"+b.1o).1a?g.4g++:b.1o,n=".1c-"+m+"-2s",o=v.22(S,m,b);T(o===e)O d;i=o.24,a.1m(h,9(){S.2I==="2I"&&S(o)}),k={P:i.P.13,R:i.R.13},l={P:a.3F(""+i.P.1d).25(/ /g,n+" ")+n,R:a.3F(""+i.R.1d).25(/ /g,n+" ")+n},i.R.1d==="3U"&&(l.R="30"+n),k.P.18(l.P,p),(i.P.2Y||i.5f)&&p(c)})},h=g.1C={2w:9(a){a=(""+a).25(/([A-Z])/," $1").25(/6h/5g,"1f").2q(),S.x=(a.3V(/N|1j/i)||a.3V(/1f/)||["3D"])[0].2q(),S.y=(a.3V(/M|1k|1f/i)||["3D"])[0].2q(),S.1e=a.31(0).4A(/^(t|b)/)>-1?"y":"x",S.1q=9(){O S.1e==="y"?S.y+S.x:S.x+S.y},S.55=9(){Q a=S.x.2z(0,1),b=S.y.2z(0,1);O a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},W:9(c,d,e){9 l(a,b){f.N+=b*a.2P(),f.M+=b*a.2U()}Q f=c.W(),g=d,i=0,j=1A.39,k;T(g){6r{T(g[0]===j)2W;g.Y("14")!=="6t"&&(k=g.14(),f.N-=k.N+(1v(g.Y("6w"),10)||0),f.M-=k.M+(1v(g.Y("6z"),10)||0),i++)}3e(g=g.6A());(d[0]!==j||i>1)&&l(d,1),(h.2O<4.1&&h.2O>3.1||!h.2O&&e)&&l(a(b),-1)}O f},2O:4G((""+(/4O.*6F ([0-6I]{1,3})|(4O 6L).*6M.*6O/i.4L(6S.6V)||[0,""])[1]).25("5c","6Y").25("72","."))||e,2k:{16:9(b,c){T(S.1a){Q d=S[0],e="19",f=a.2o(d,"1c");T(b===e){T(28.1a<2)O a.16(d,r);T(11 f==="1g"){f&&f.1h&&f.24.V.16===e&&f.3m.16&&f.3c("V.1n",c),a.2k["16"+q].26(S,28),a.16(d,r,a.16(d,e));O S.3v(e)}}}},4Q:9(b){Q c=a([]),d="19",e;e=a.2k["4Q"+q].26(S,28).2D("[4K]").1m(9(){a.16(S,d,a.16(S,r)),S.3w(r)}).7q();O e},1J:a.1t?f:9(b,c){a(S).1m(9(){c||(!b||a.2D(b,[S]).1a)&&a("*",S).2T(S).1m(9(){a(S).7x("1J")})})}}},a.1m(h.2k,9(b,c){T(!c)O d;Q e=a.2k[b+q]=a.2k[b];a.2k[b]=9(){O c.26(S,28)||e.26(S,28)}}),a(1A).18("34.1c",9(a){i={2m:a.2m,2x:a.2x,1x:"34"}}),g.3E="2.0.7K",g.4g=0,g.56="3R 7M 3r 5b 34 30 2E".2A(" "),g.5d=7P,g.3a={5f:e,1o:e,4l:d,V:{1n:d,16:"19",19:{1n:e,1B:e}},14:{1Q:"M N",2t:"1k 1j",13:e,1u:e,29:e,2a:{x:0,y:0,1G:d,2r:d,4n:"3M 3M"},1P:d},P:{13:e,1d:"2E",1P:d,2e:3P,3o:e,2Y:e},R:{13:e,1d:"30",1P:d,2e:0,2v:e,1T:e,2X:"3Q",4j:e},15:{3f:"",2j:e,U:e},48:{1K:f,42:f,P:f,R:f,1Y:f,2f:f,1O:f}},h.1w=9(a){Q b=a.1C.1w;O"1g"===11 b?b:a.1C.1w=1E w(a)},h.1w.2I="1K",h.1w.3g=9(a){Q b=a.V,c;b&&"1w"1X b&&(c=b.1w,11 c!=="1g"&&(c=a.V.1w={2h:c}),"3h"!==11 c.2p&&c.2p&&(c.2p=!!c.2p))},a.1l(d,g.3a,{V:{1w:{5v:d,2p:d}}}),h.12=9(a){Q b=a.1C.12;O"1g"===11 b?b:a.1C.12=1E y(a)},h.12.2I="1K",h.12.3g=9(a){Q b=a.15,c;b&&"12"1X b&&(c=a.15.12,11 c!=="1g"&&(a.15.12={1i:c}),/1q|3h/i.1D(11 c.1i)||(c.1i=d),11 c.U!=="2J"&&2C c.U,11 c.X!=="2J"&&2C c.X,11 c.1b!=="2J"&&c.1b!==d&&2C c.1b,11 c.W!=="2J"&&2C c.W)},a.1l(d,g.3a,{15:{12:{1i:d,3y:e,U:6,X:6,1b:d,W:0}}}),h.44=9(b,c){9 l(a,b){Q d=0,e=1,f=1,g=0,h=0,i=a.U,j=a.X;3e(i>0&&j>0&&e>0&&f>0){i=17.3u(i/2),j=17.3u(j/2),c.x==="N"?e=i:c.x==="1j"?e=a.U-i:e+=17.3u(i/2),c.y==="M"?f=j:c.y==="1k"?f=a.X-j:f+=17.3u(j/2),d=b.1a;3e(d--){T(b.1a<2)2W;g=b[d][0]-a.W.N,h=b[d][1]-a.W.M,(c.x==="N"&&g>=e||c.x==="1j"&&g<=e||c.x==="1f"&&(ga.U-e)||c.y==="M"&&h>=f||c.y==="1k"&&h<=f||c.y==="1f"&&(ha.X-f))&&b.6P(d,1)}}O{N:b[0][0],M:b[0][1]}}Q d=b.16("41").2q(),e=b.16("73").2A(","),f=[],g=a(\'3t[7i="#\'+b.7m("54").16("46")+\'"]\'),h=g.W(),i={U:0,X:0,W:{M:3s,1j:0,1k:0,N:3s}},j=0,k=0;h.N+=17.3A((g.3z()-g.U())/2),h.M+=17.3A((g.3d()-g.X())/2);T(d==="5i"){j=e.1a;3e(j--)k=[1v(e[--j],10),1v(e[j+1],10)],k[0]>i.W.1j&&(i.W.1j=k[0]),k[0]i.W.1k&&(i.W.1k=k[1]),k[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}('"87 5z",9(a,b,c){9 A(b){Q c=S,d=b.2U,e=d.1n,f=".22-"+b.1p;a.1l(c,{1R:9(){d.22=a(\'<52 1Q="1u-1n-22" 5A="0" 5B="-1" 85="5D:\\\'\\\';" 15="2h:2T; 14:3U; z-5E:-1; 2A:5F(4m=0); -5G-2A:"5H:5I.5J.7L(7F=0)";">\'),d.22.2X(e),e.18("4j"+f,c.2a)},2a:9(){Q a=b.42("54"),c=b.1F.12,f=d.12,g,h;h=1v(e.Y("1b-N-U"),10)||0,h={N:-h,M:-h},c&&f&&(g=c.1j.1d==="x"?["U","N"]:["X","M"],h[g[1]]-=f[g[0]]()),d.22.Y(h).Y(a)},28:9(){d.22.1I(),e.1r(f)}}),c.1R()}9 z(c){Q f=S,g=c.2b.P.1x,h=c.2U,i=h.1n,j="#1c-2k",k=".5L",l=k+c.1p,m="1L-1x-1c",o;c.2V.1x={"^P.1x.(2Z|1K)$":9(){f.1R(),h.2k.1W(i.1L(":1V"))}},a.1l(f,{1R:9(){T(!g.2Z)O f;o=f.2g(),i.17(m,d).1r(k).1r(l).18("3X"+k+" 53"+k,9(a,b,c){f[a.1A.24("1n","")](a,c)}).18("5a"+k,9(a,b,c){o[0].15.2M=c-1}).18("5b"+k,9(b){a("["+m+"]:1V").2w(i).7E().1c("2f",b)}),g.4r&&a(b).1r(l).18("4K"+l,9(a){a.5N===27&&i.1S(n)&&c.R(a)}),g.1K&&h.2k.1r(l).18("3W"+l,9(a){i.1S(n)&&c.R(a)});O f},2g:9(){Q c=a(j);T(c.1a){h.2k=c;O c}o=h.2k=a("<2q />",{1p:j.2y(1),Y:{14:"3U",M:0,N:0,2h:"3I"},3E:9(){O e}}).2X(1C.3a),a(b).1r(k).18("2s"+k,9(){o.Y({X:16.1G(a(b).X(),a(1C).X()),U:16.1G(a(b).U(),a(1C).U())})}).2r("2s");O o},1W:9(b,c,j){T(b&&b.3j())O f;Q k=g.1M,l=c?"P":"R",n=a("["+m+"]:1V").2w(i),p;o||(o=f.2g());T(o.1L(":5P")&&!c||!c&&n.1a)O f;c&&h.2k.Y("7w",g.1K?"7q":""),o.58(d,e),a.1J(k)?k.1X(o,c):k===e?o[l]():o.4u(1v(j,10)||3P,c?.7:0,9(){c||a(S).R()});O f},P:9(a,b){O f.1W(a,d,b)},R:9(a,b){O f.1W(a,e,b)},28:9(){Q d=o;d&&(d=a("["+m+"]").2w(i).1a<1,d?(h.2k.1I(),a(b).1r(k)):h.2k.1r(k+c.1p));O i.3y(m).1r(k)}}),f.1R()}9 y(b,g){9 v(a){Q b=a.1d==="y",c=n[b?"U":"X"],d=n[b?"X":"U"],e=a.1q().2D("1f")>-1,f=c*(e?.5:1),g=16.5S,h=16.3O,i,j,k,l=16.4i(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=16.4i(g(m[0],2)-g(p,2)),m[3]=16.4i(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];O{X:k[b?0:1],U:k[b?1:0]}}9 u(b){Q c=k.1w&&b.y==="M",d=c?k.1w:k.V,e=a.1U.5o,f=e?"-8a-":a.1U.4H?"-4H-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1b-4F-"+g:"1b-"+g+"-4F");O 1v(d.Y(h),10)||1v(l.Y(h),10)||0}9 t(a,b,c){b=b?b:a[a.1d];Q d=k.1w&&a.y==="M",e=d?k.1w:k.V,f="1b-"+b+"-U",g=1v(e.Y(f),10);O(c?g||1v(l.Y(f),10):g)||0}9 s(f,g,h,l){T(k.12){Q n=a.1l({},i.1j),o=h.3J,p=b.2b.14.2a.4n.2z(" "),q=p[0],r=p[1]||p[0],s={N:e,M:e,x:0,y:0},t,u={},v;i.1j.2v!==d&&(q==="2p"&&n.1d==="x"&&o.N&&n.y!=="1f"?n.1d=n.1d==="x"?"y":"x":q==="3N"&&o.N&&(n.x=n.x==="1f"?o.N>0?"N":"1k":n.x==="N"?"1k":"N"),r==="2p"&&n.1d==="y"&&o.M&&n.x!=="1f"?n.1d=n.1d==="y"?"x":"y":r==="3N"&&o.M&&(n.y=n.y==="1f"?o.M>0?"M":"1i":n.y==="M"?"1i":"M"),n.1q()!==m.1j&&(m.M!==o.M||m.N!==o.N)&&i.32(n,e)),t=i.14(n,o),t.1k!==c&&(t.N=-t.1k),t.1i!==c&&(t.M=-t.1i),t.41=16.1G(0,j.W);T(s.N=q==="2p"&&!!o.N)n.x==="1f"?u["2O-N"]=s.x=t["2O-N"]-o.N:(v=t.1k!==c?[o.N,-t.N]:[-o.N,t.N],(s.x=16.1G(v[0],v[1]))>v[0]&&(h.N-=o.N,s.N=e),u[t.1k!==c?"1k":"N"]=s.x);T(s.M=r==="2p"&&!!o.M)n.y==="1f"?u["2O-M"]=s.y=t["2O-M"]-o.M:(v=t.1i!==c?[o.M,-t.M]:[-o.M,t.M],(s.y=16.1G(v[0],v[1]))>v[0]&&(h.M-=o.M,s.M=e),u[t.1i!==c?"1i":"M"]=s.y);k.12.Y(u).1W(!(s.x&&s.y||n.x==="1f"&&s.y||n.y==="1f"&&s.x)),h.N-=t.N.33?t.41:q!=="2p"||s.M||!s.N&&!s.M?t.N:0,h.M-=t.M.33?t.41:r!=="2p"||s.N||!s.N&&!s.M?t.M:0,m.N=o.N,m.M=o.M,m.1j=n.1q()}}Q i=S,j=b.2b.15.12,k=b.2U,l=k.1n,m={M:0,N:0,1j:""},n={U:j.U,X:j.X},o={},p=j.1b||0,q=".1c-12",r=a("<4G />")[0].3V;i.1j=f,i.3z=f,i.14={},b.2V.12={"^14.1O|15.12.(1j|3z|1b)$":9(){i.1R()||i.28(),b.1Y()},"^15.12.(X|U)$":9(){n={U:j.U,X:j.X},i.2g(),i.32(),b.1Y()},"^V.19.1o|15.(3o|2t)$":9(){k.12&&i.32()}},a.1l(i,{1R:9(){Q b=i.4s()&&(r||a.1U.3c);b&&(i.2g(),i.32(),l.1r(q).18("4j"+q,s));O b},4s:9(){Q a=j.1j,c=b.2b.14,f=c.2u,g=c.1O.1q?c.1O.1q():c.1O;T(a===e||g===e&&f===e)O e;a===d?i.1j=1E h.2F(g):a.1q||(i.1j=1E h.2F(a),i.1j.2v=d);O i.1j.1q()!=="5r"},4v:9(){Q c,d,e,f=k.12.Y({6x:"",1b:""}),g=i.1j,h=g[g.1d],m="1b-"+h+"-34",p="1b"+h.33(0)+h.2y(1)+"5V",q=/5W?\\(0, 0, 0(, 0)?\\)|3F/i,r="5X-34",s="3F",t="1u-1n-5n",u=a(1C.3a).Y("34"),v=b.2U.V.Y("34"),w=k.1w&&(g.y==="M"||g.y==="1f"&&f.14().M+n.X/2+j.W",{"1Q":"1u-1n-12"}).Y({U:b,X:c}).5Y(l),r?a("<4G />").2X(k.12)[0].3V("2d").4w():(d=\'<3Z:44 5Z="0,0" 15="2h:4Z-2T; 14:3U; 4C:2i(#3C#4D);">\',k.12.2Q(p?d+=d:d))},32:9(b,c){Q g=k.12,l=g.60(),m=n.U,q=n.X,s="40 6d ",u="40 61 3F",w=j.3z,y=16.3O,z,A,B,C,D;b||(b=i.1j),w===e?w=b:(w=1E h.2F(w),w.1d=b.1d,w.x==="3p"?w.x=b.x:w.y==="3p"?w.y=b.y:w.x===w.y&&(w[b.1d]=b[b.1d])),z=w.1d,i.4v(),p=o.1b==="3F"||o.1b==="#63"?0:j.1b===d?t(b,f,d):j.1b,B=x(w,m,q),D=v(b),g.Y(D),b.1d==="y"?C=[y(w.x==="N"?p:w.x==="1k"?D.U-m-p:(D.U-m)/2),y(w.y==="M"?D.X-q:0)]:C=[y(w.x==="N"?D.U-m:0),y(w.y==="M"?p:w.y==="1i"?D.X-q-p:(D.X-q)/2)],r?(l.17(D),A=l[0].3V("2d"),A.64(),A.4w(),A.66(0,0,5t,5t),A.67(C[0],C[1]),A.68(),A.69(B[0][0],B[0][1]),A.4x(B[1][0],B[1][1]),A.4x(B[2][0],B[2][1]),A.6a(),A.6b=o.2L,A.6c=o.1b,A.82=p*2,A.6e="4B",A.6f=5p,A.4z(),A.2L()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6g",C[2]=p&&/^(r|b)/i.1y(b.1q())?4J(a.1U.3q,10)===8?2:1:0,l.Y({6h:""+(w.1q().2D("1f")>-1),N:C[0]-C[2]*4y(z==="x"),M:C[1]-C[2]*4y(z==="y"),U:m+p,X:q+p}).1m(9(b){Q c=a(S);c.17({6i:m+p+" "+(q+p),7U:B,6k:o.2L,6l:!!b,6m:!b}).Y({2h:p||b?"2T":"3I"}),!b&&p>0&&c.2Q()===""&&c.2Q(\'<3Z:4z 6n="\'+p*2+\'40" 34="\'+o.1b+\'" 6o="6p" 6q="4B" 15="4C:2i(#3C#4D); 2h:4Z-2T;" />\')})),c!==e&&i.14(b)},14:9(b){Q c=k.12,f={},g=16.1G(0,j.W),h,l,m;T(j.1j===e||!c)O e;b=b||i.1j,h=b.1d,l=v(b),m=[b.x,b.y],h==="x"&&m.6r(),a.1m(m,9(a,c){Q e,i;c==="1f"?(e=h==="y"?"N":"M",f[e]="50%",f["2O-"+e]=-16.3O(l[h==="y"?"U":"X"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"U":"X"],c.Y({M:"",1i:"",N:"",1k:"",2O:""}).Y(f);O f},28:9(){k.12&&k.12.1I(),l.1r(q)}}),i.1R()}9 x(a,b,c){Q d=16.3t(b/2),e=16.3t(c/2),f={4W:[[0,0],[b,c],[b,0]],4U:[[0,0],[b,0],[0,c]],4Q:[[0,c],[b,0],[b,c]],4V:[[0,0],[0,c],[b,c]],7A:[[0,c],[d,0],[b,c]],7z:[[0,0],[b,0],[d,c]],6u:[[0,0],[b,e],[0,c]],6v:[[b,0],[b,c],[0,e]]};f.6y=f.4W,f.6z=f.4U,f.6B=f.4Q,f.6D=f.4V;O f[a.1q()]}9 w(b){Q c=S,f=b.2U.1n,g=b.2b.V.1z,h=".1c-1z",i=/<4a\\b[^<]*(?:(?!<\\/4a>)<[^<]*)*<\\/4a>/5g,j=d;b.2V.1z={"^V.1z":9(a,b,d){b==="1z"&&(g=d),b==="2m"?c.1R():g&&g.2i?c.45():f.1r(h)}},a.1l(c,{1R:9(){g&&g.2i&&f.1r(h)[g.2m?"6E":"18"]("3X"+h,c.45);O c},45:9(d,h){9 p(a,c,d){b.38("V.1o",c+": "+d),n()}9 o(c){l&&(c=a("<2q/>").35(c.24(i,"")).4N(l)),b.38("V.1o",c),n()}9 n(){m&&(f.Y("4e",""),h=e)}T(d&&d.3j())O c;Q j=g.2i.2D(" "),k=g.2i,l,m=g.2m&&!g.5q&&h;m&&f.Y("4e","4f"),j>-1&&(l=k.2y(j),k=k.2y(0,j)),a.1z(a.1l({6F:o,4q:p,7k:b},g,{2i:k}));O c}}),c.1R()}9 v(b,c){Q i,j,k,l,m=a(S),n=a(1C.3a),o=S===1C?n:m,p=m.21?m.21(c.21):f,q=c.21.1A==="6H"&&p?p[c.21.47]:f,v=m.2n(c.21.47||"6I");7g{v=11 v==="1q"?(1E 6K("O "+v))():v}7e(w){s("6L 7c 7b 7a 6O 2n: "+v)}l=a.1l(d,{},g.3i,c,11 v==="1g"?t(v):f,t(q||p)),p&&a.5u(S,"21"),j=l.14,l.1p=b;T("37"===11 l.V.1o){k=m.17(l.V.17);T(l.V.17!==e&&k)l.V.1o=k;2x O e}j.1t===e&&(j.1t=n),j.13===e&&(j.13=o),l.P.13===e&&(l.P.13=o),l.P.3n===d&&(l.P.3n=n),l.R.13===e&&(l.R.13=o),l.14.29===d&&(l.14.29=j.1t),j.2u=1E h.2F(j.2u),j.1O=1E h.2F(j.1O);T(a.2n(S,"1c"))T(l.4k)m.1c("28");2x T(l.4k===e)O e;a.17(S,"19")&&(a.17(S,r,a.17(S,"19")),S.3u("19")),i=1E u(m,l,b,!!k),a.2n(S,"1c",i),m.18("1I.1c",9(){i.28()});O i}9 u(c,p,q,s){9 L(c,d,e,f){f=1v(f,10)!==0;Q g=".1c-"+q,h={P:c&&p.P.13[0],R:d&&p.R.13[0],1n:e&&u.1h&&A.1n[0],V:e&&u.1h&&A.V[0],1t:f&&p.14.1t[0]===v?1C:p.14.1t[0],3R:f&&b};u.1h?a([]).78(a.6R([h.P,h.R,h.1n,h.1t,h.V,h.3R],9(a){O 11 a==="1g"})).1r(g):c&&p.P.13.1r(g+"-2g")}9 K(d,f,h,j){9 D(a){z.1L(":1V")&&u.1Y(a)}9 C(a){T(z.1S(l))O e;1H(u.1s.1T),u.1s.1T=3e(9(){u.R(a)},p.R.1T)}9 y(b){T(z.1S(l))O e;Q c=a(b.3r||b.13),d=c.76(m)[0]===z[0],f=c[0]===r.P[0];1H(u.1s.P),1H(u.1s.R);T(n.13==="1B"&&d||p.R.2v&&(/1B(3s|2K|49)/.1y(b.1A)&&(d||f))){b.6S(),b.6U();O e}p.R.2e>0?u.1s.R=3e(9(){u.R(b)},p.R.2e):u.R(b)}9 x(a){T(z.1S(l))O e;r.P.2r("1c-"+q+"-1T"),1H(u.1s.P),1H(u.1s.R);Q b=9(){u.P(a)};p.P.2e>0?u.1s.P=3e(b,p.P.2e):b()}Q k=".1c-"+q,n=p.14,r={P:p.P.13,R:p.R.13,1t:n.1t[0]===v?a(1C):n.1t,43:a(1C)},s={P:a.3x(""+p.P.1e).2z(" "),R:a.3x(""+p.R.1e).2z(" ")},t=a.1U.3c&&1v(a.1U.3q,10)===6,w;h&&(p.R.2v&&(r.R=r.R.2P(z),z.18("6V"+k,9(){z.1S(l)||1H(u.1s.R)})),n.13==="1B"&&n.2a.1B&&p.R.1e&&z.18("30"+k,9(a){(a.3r||a.13)!==r.P[0]&&u.R(a)}),z.18("2H"+k,9(a){u[a.1A==="2H"?"2f":"1K"](a)}),z.18("2H"+k+" 30"+k,9(a){z.25(o,a.1A==="2H")})),f&&("2J"===11 p.R.1T&&(r.P.18("1c-"+q+"-1T",C),a.1m(g.59,9(a,b){r.R.2P(A.1n).18(b+k+"-1T",C)})),a.1m(s.R,9(b,c){Q d=a.6X(c,s.P),e=a(r.R);d>-1&&e.2P(r.P).1a===e.1a||c==="4L"?(r.P.18(c+k,9(a){z.1L(":1V")?y(a):x(a)}),2B s.P[d]):r.R.18(c+k,y)})),d&&(a.1m(s.P,9(a,b){r.P.18(b+k,x)}),"2J"===11 p.R.4l&&r.P.18("31"+k,9(a){Q b=B.3d||{},c=p.R.4l,d=16.3l;b&&(d(a.2j-b.2j)>=c||d(a.2C-b.2C)>=c)&&u.R(a)})),j&&((n.2a.2s||n.29)&&a(a.1e.6Y.2s?n.29:b).18("2s"+k,D),(n.29||t&&z.Y("14")==="2v")&&a(n.29).18("3T"+k,D),/4L/i.1y(p.R.1e)&&r.43.18("3E"+k,9(b){Q d=a(b.13);d.71(m).1a===0&&d.2P(c).1a>1&&z.1L(":1V")&&!z.1S(l)&&u.R(b)}),p.R.2K&&/30|4S/i.1y(p.R.1e)&&a(b).18("1K"+k+" 1B"+(p.R.2K.2D("72")>-1?"3s":"2K")+k,9(a){a.3r||u.R(a)}),n.13==="1B"&&r.43.18("31"+k,9(a){n.2a.1B&&!z.1S(l)&&z.1L(":1V")&&u.1Y(a||i)}))}9 J(b,d){9 g(a){9 c(c){(b=b.2w(S)).1a===0&&(u.2G(),u.1Y(B.1e),a())}Q b;T((b=f.4N("3w:2w([X]):2w([U])")).1a===0)O c.1X(b);b.1m(9(a,b){(9 d(){Q e=u.1s.3w;T(b.X&&b.U){1H(e[a]);O c.1X(b)}e[a]=3e(d,20)})()})}Q f=A.V;b=b||p.V.1o;T(!u.1h||!b)O e;a.1J(b)&&(b=b.1X(c,u)||""),b.1Z&&b.1a>0?f.4O().35(b.Y({2h:"2T"})):f.2Q(b),u.1h<0?z.3K("4h",g):(y=0,g(a.5s));O u}9 I(b){Q d=A.19;T(!u.1h||!b)O e;a.1J(b)&&(b=b.1X(c,u)||""),b.1Z&&b.1a>0?d.4O().35(b.Y({2h:"2T"})):d.2Q(b),u.2G(),u.1h&&z.1L(":1V")&&u.1Y(B.1e)}9 H(a){Q b=A.1D,c=A.19;T(!u.1h)O e;a?(c||G(),F()):b.1I()}9 G(){Q b=w+"-19";A.1w&&E(),A.1w=a("<2q />",{"1Q":j+"-1w "+(p.15.2t?"1u-2t-4T":"")}).35(A.19=a("<2q />",{1p:b,"1Q":j+"-19","1N-4b":d})).75(A.V),p.V.19.1D?F():u.1h&&u.2G()}9 F(){Q b=p.V.19.1D,c=11 b==="1q",d=c?b:"77 1n";A.1D&&A.1D.1I(),b.1Z?A.1D=b:A.1D=a("",{"1Q":"1u-3f-3C "+(p.15.2t?"":j+"-3A"),19:d,"1N-79":d}).7d(a("<7f />",{"1Q":"1u-3A 1u-3A-7h",2Q:"&7l;"})),A.1D.2X(A.1w).17("4Y","1D").3S(9(b){a(S).25("1u-3f-3S",b.1A==="2H")}).3W(9(a){z.1S(l)||u.R(a);O e}).18("3E 4K 5d 7m 4S",9(b){a(S).25("1u-3f-7o 1u-3f-2f",b.1A.2y(-4)==="7p")}),u.2G()}9 E(){A.19&&(A.1w.1I(),A.1w=A.19=A.1D=f,u.1Y())}9 D(){Q a=p.15.2t;z.25(k,a),A.V.25(k+"-V",a),A.1w&&A.1w.25(k+"-4T",a),A.1D&&A.1D.25(j+"-3A",!a)}9 C(a){Q b=0,c,d=p,e=a.2z(".");3b(d=d[e[b++]])b0&&!a("#"+i).1a&&(z[0].1p=i,A.V[0].1p=i+"-V",A.19[0].1p=i+"-19")},"^V.1o$":9(a,b,c){J(c)},"^V.19.1o$":9(a,b,c){T(!c)O E();!A.19&&c&&G(),I(c)},"^V.19.1D$":9(a,b,c){H(c)},"^14.(1O|2u)$":9(a,b,c){"1q"===11 c&&(a[b]=1E h.2F(c))},"^14.1t$":9(a,b,c){u.1h&&z.2X(c)},"^(P|R).(1e|13|2v|2e|1T)$":9(a,b,c,d,e){Q f=[1,0,0];f[e[1]==="P"?"4d":"7u"](0),L.2c(u,f),K.2c(u,[1,1,0,0])},"^P.2Y$":9(){u.1h?u.P():u.1P(1)},"^15.3o$":9(b,c,d){a.17(z[0],"1Q",j+" 1c 1u-4X-4E "+d)},"^15.2t|V.19":D,"^48.(1P|P|49|R|2f|1K)$":9(b,c,d){z[(a.1J(d)?"":"7v")+"18"]("1n"+c,d)}},a.1l(u,{1P:9(b){T(u.1h)O u;Q f=p.V.19.1o,g=a.3m("7x");a.17(c[0],"1N-4p",w),z=A.1n=a("<2q/>",{1p:w,"1Q":j+" 1c 1u-4X-4E "+p.15.3o,U:p.15.U||"",4Y:"7B","1N-7C":"7D","1N-4b":e,"1N-4p":w+"-V","1N-4f":d}).25(l,B.2E).2n("1c",u).2X(p.14.1t).35(A.V=a("<2q />",{"1Q":j+"-V",1p:w+"-V","1N-4b":d})),u.1h=-1,y=1,f&&(G(),I(f)),J(),u.1h=d,D(),a.1m(p.48,9(b,c){a.1J(c)&&z.18(b==="1W"?"3X 53":"1n"+b,c)}),a.1m(h,9(){S.2I==="1P"&&S(u)}),K(1,1,1,1),z.3K("4h",9(a){g.3h=B.1e,z.2r(g,[u]),y=0,u.2G(),(p.P.2Y||b)&&u.P(B.1e),a()});O u},42:9(a){Q b,c;5c(a.2o()){3g"54":b={X:z.39(),U:z.3B()};2W;3g"W":b=h.W(z,p.14.1t);2W;3C:c=C(a.2o()),b=c[0][c[1]],b=b.1d?b.1q():b}O b},38:9(b,c){9 m(a,b){Q c,d,e;55(c 23 k)55(d 23 k[c])T(e=(1E 7G(d,"i")).4M(a))b.4d(e),k[c][d].2c(u,b)}Q g=/^14\\.(1O|2u|2a|13|1t)|15|V|P\\.2Y/i,h=/^V\\.(19|17)|15/i,i=e,j=e,k=u.2V,l;"1q"===11 b?(l=b,b={},b[l]=c):b=a.1l(d,{},b),a.1m(b,9(c,d){Q e=C(c.2o()),f;f=e[0][e[1]],e[0][e[1]]="1g"===11 d&&d.7H?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1y(c)||i,j=h.1y(c)||j}),t(p),x=y=1,a.1m(b,m),x=y=0,z.1L(":1V")&&u.1h&&(i&&u.1Y(p.14.13==="1B"?f:B.1e),j&&u.2G());O u},1W:9(b,c){9 l(){b?(a.1U.3c&&z[0].15.3u("2A"),z.Y("7I","")):z.Y({2h:"",4e:"",U:"",4m:"",N:"",M:""})}T(!u.1h)T(b)u.1P(1);2x O u;Q d=b?"P":"R",g=p[d],h=z.1L(":1V"),j,k;(11 b).4A("37|2J")&&(b=!h);T(h===b)O u;T(c){T(/5w|5x/.1y(c.1A)&&/3s|2K/.1y(B.1e.1A)&&c.13===p.P.13[0]&&z.7J(c.3r).1a)O u;B.1e=a.1l({},c)}k=a.3m("1n"+d),k.3h=c?B.1e:f,z.2r(k,[u,3P]);T(k.3j())O u;a.17(z[0],"1N-4f",!b),b?(B.3d=a.1l({},i),u.2f(c),a.1J(p.V.1o)&&J(),u.1Y(c),g.3n&&a(m,g.3n).2w(z).1c("R",k)):(1H(u.1s.P),2B B.3d,u.1K(c)),z.58(0,1),a.1J(g.1M)?(g.1M.1X(z,u),z.3K("4h",9(a){l(),a()})):g.1M===e?(z[d](),l.1X(z)):z.4u(3P,b?1:0,l),b&&g.13.2r("1c-"+q+"-1T");O u},P:9(a){O u.1W(d,a)},R:9(a){O u.1W(e,a)},2f:9(b){T(!u.1h)O u;Q c=a(m),d=1v(z[0].15.2M,10),e=g.5f+c.1a,f=a.1l({},b),h,i;z.1S(n)||(i=a.3m("5a"),i.3h=f,z.2r(i,[u,e]),i.3j()||(d!==e&&(c.1m(9(){S.15.2M>d&&(S.15.2M=S.15.2M-1)}),c.2A("."+n).1c("1K",f)),z.3L(n)[0].15.2M=e));O u},1K:9(b){Q c=a.1l({},b),d;z.4o(n),d=a.3m("5b"),d.3h=c,z.2r(d,[u]);O u},1Y:9(c,d){T(!u.1h||x)O u;x=1;Q f=p.14.13,g=p.14,k=g.1O,l=g.2u,m=g.2a,n=m.4n.2z(" "),o=z.3B(),q=z.39(),r=0,s=0,t=a.3m("4j"),w=z.Y("14")==="2v",y=g.29.1Z?g.29:a(b),A={N:0,M:0},C=(u.1F.12||{}).1j,D={3G:n[0],3H:n[1]||n[0],12:p.15.12||{},N:9(a){Q b=D.3G==="2p",c=y.W.N+y.2R,d=k.x==="N"?o:k.x==="1k"?-o:-o/2,e=l.x==="N"?r:l.x==="1k"?-r:-r/2,f=D.12.U+D.12.1b*2||0,g=C&&C.1d==="x"&&!b?f:0,h=c-a-g,i=a+o-y.U-c+g,j=d-(k.1d==="x"||k.x===k.y?e:0),n=k.x==="1f";b?(g=C&&C.1d==="y"?f:0,j=(k.x==="N"?1:-1)*d-g,A.N+=h>0?h:i>0?-i:0,A.N=16.1G(y.W.N+(g&&C.x==="1f"?D.12.W:0),a-j,16.3M(16.1G(y.W.N+y.U,a+j),A.N))):(h>0&&(k.x!=="N"||i>0)?A.N-=j+(n?0:2*m.x):i>0&&(k.x!=="1k"||h>0)&&(A.N-=n?-j:j+2*m.x),A.N!==a&&n&&(A.N-=m.x),A.Ni&&(A.N=a));O A.N-a},M:9(a){Q b=D.3H==="2p",c=y.W.M+y.2N,d=k.y==="M"?q:k.y==="1i"?-q:-q/2,e=l.y==="M"?s:l.y==="1i"?-s:-s/2,f=D.12.X+D.12.1b*2||0,g=C&&C.1d==="y"&&!b?f:0,h=c-a-g,i=a+q-y.X-c+g,j=d-(k.1d==="y"||k.x===k.y?e:0),n=k.y==="1f";b?(g=C&&C.1d==="x"?f:0,j=(k.y==="M"?1:-1)*d-g,A.M+=h>0?h:i>0?-i:0,A.M=16.1G(y.W.M+(g&&C.x==="1f"?D.12.W:0),a-j,16.3M(16.1G(y.W.M+y.X,a+j),A.M))):(h>0&&(k.y!=="M"||i>0)?A.M-=j+(n?0:2*m.y):i>0&&(k.y!=="1i"||h>0)&&(A.M-=n?-j:j+2*m.y),A.M!==a&&n&&(A.M-=m.y),A.M<0&&-A.M>i&&(A.M=a));O A.M-a}};T(f==="1B")l={x:"N",y:"M"},c=c&&(c.1A==="2s"||c.1A==="3T")?B.1e:!m.1B&&B.3d?B.3d:i&&(m.1B||!c||!c.2j)?{2j:i.2j,2C:i.2C}:c,A={M:c.2C,N:c.2j};2x{f==="1e"&&(c&&c.13&&c.1A!=="3T"&&c.1A!=="2s"?f=B.13=a(c.13):f=B.13),f=a(f).7O(0);T(f.1a===0)O u;f[0]===1C||f[0]===b?(r=f.U(),s=f.X(),f[0]===b&&(A={M:!w||h.2S?y.2N():0,N:!w||h.2S?y.2R():0})):f.1L("7P")&&h.46?A=h.46(f,l):f[0].7R==="7S://7V.7W.7X/7Y/3Q"&&h.3Q?A=h.3Q(f,l):(r=f.3B(),s=f.39(),A=h.W(f,g.1t,w)),A.W&&(r=A.U,s=A.X,A=A.W),A.N+=l.x==="1k"?r:l.x==="1f"?r/2:0,A.M+=l.y==="1i"?s:l.y==="1f"?s/2:0}A.N+=m.x+(k.x==="1k"?-o:k.x==="1f"?-o/2:0),A.M+=m.y+(k.y==="1i"?-q:k.y==="1f"?-q/2:0),y.1Z&&f[0]!==b&&f[0]!==v&&D.3H+D.3G!=="7Z"?(y={5l:y,X:y[(y[0]===b?"h":"80")+"81"](),U:y[(y[0]===b?"w":"83")+"84"](),2R:y.2R(),2N:y.2N(),W:y.W()||{N:0,M:0}},A.3J={N:D.3G!=="3I"?D.N(A.N):0,M:D.3H!=="3I"?D.M(A.M):0}):A.3J={N:0,M:0},z.17("1Q",9(b,c){O a.17(S,"1Q").24(/1u-1n-5k-\\w+/i,"")}).3L(j+"-5k-"+k.51()),t.3h=a.1l({},c),z.2r(t,[u,A,y.5l||y]);T(t.3j())O u;2B A.3J,d===e||5m(A.N)||5m(A.M)||!a.1J(g.1M)?z.Y(A):a.1J(g.1M)&&(g.1M.1X(z,u,a.1l({},A)),z.3K(9(b){a(S).Y({4m:"",X:""}),a.1U.3c&&S.15.3u("2A"),b()})),x=0;O u},2G:9(){T(u.1h<1||p.15.U||y)O u;Q b=j+"-5n",c=p.14.1t,d,e,f,g;y=1,z.Y("U","").3L(b),e=z.U()+(a.1U.5o?1:0),f=z.Y("1G-U")||"",g=z.Y("3M-U")||"",d=(f+g).2D("%")>-1?c.U()/5p:0,f=(f.2D("%")>-1?d:1)*1v(f,10)||e,g=(g.2D("%")>-1?d:1)*1v(g,10)||0,e=f+g?16.3M(16.1G(e,g),f):e,z.Y("U",16.3O(e)).4o(b),y=0;O u},4c:9(b){Q c=l;"37"!==11 b&&(b=!z.1S(c)&&!B.2E),u.1h?(z.25(c,b),a.17(z[0],"1N-2E",b)):B.2E=!!b;O u},86:9(){O u.4c(e)},28:9(){Q b=c[0],d=a.17(b,r);u.1h&&(z.1I(),a.1m(u.1F,9(){S.28&&S.28()})),1H(u.1s.P),1H(u.1s.R),L(1,1,1,1),a.5u(b,"1c"),d&&(a.17(b,"19",d),c.3y(r)),c.3y("1N-4p").1r(".1c");O c}})}9 t(b){Q c;T(!b||"1g"!==11 b)O e;"1g"!==11 b.21&&(b.21={1A:b.21});T("V"23 b){T("1g"!==11 b.V||b.V.1Z)b.V={1o:b.V};c=b.V.1o||e,!a.1J(c)&&(!c&&!c.17||c.1a<1||"1g"===11 c&&!c.1Z)&&(b.V.1o=e),"19"23 b.V&&("1g"!==11 b.V.19&&(b.V.19={1o:b.V.19}),c=b.V.19.1o||e,!a.1J(c)&&(!c&&!c.17||c.1a<1||"1g"===11 c&&!c.1Z)&&(b.V.19.1o=e))}"14"23 b&&("1g"!==11 b.14&&(b.14={1O:b.14,2u:b.14})),"P"23 b&&("1g"!==11 b.P&&(b.P.1Z?b.P={13:b.P}:b.P={1e:b.P})),"R"23 b&&("1g"!==11 b.R&&(b.R.1Z?b.R={13:b.R}:b.R={1e:b.R})),"15"23 b&&("1g"!==11 b.15&&(b.15={3o:b.15})),a.1m(h,9(){S.36&&S.36(b)});O b}9 s(){Q c=b.88;O c&&(c.4q||c.5y||a.5s).2c(c,26)}Q d=!0,e=!1,f=5C,g,h,i,j="1u-1n",k="1u-2t",l="1u-3f-2E",m="2q.1c."+j,n=j+"-2f",o=j+"-3S",p="-5K",q="5M",r="4R";g=a.2l.1c=9(b,h,i){Q j=(""+b).2o(),k=f,l=j==="4c"?[d]:a.5O(26).5v(1,10),m=l[l.1a-1],n=S[0]?a.2n(S[0],"1c"):f;T(!26.1a&&n||j==="5Q")O n;T("1q"===11 b){S.1m(9(){Q b=a.2n(S,"1c");T(!b)O d;m&&m.5R&&(b.3k.1e=m);T(j!=="7j"&&j!=="2b"||!h)b[j]&&b[j].2c(b[j],l);2x T(a.5T(h)||i!==c)b.38(h,i);2x{k=b.42(h);O e}});O k!==f?k:S}T("1g"===11 b||!26.1a){n=t(a.1l(d,{},b));O g.18.1X(S,n,m)}},g.18=9(b,c){O S.1m(9(f){9 p(b){9 c(){o.1P(11 b==="1g"||i.P.2Y),k.P.1r(l.P),k.R.1r(l.R)}T(o.3k.2E)O e;o.3k.1e=a.1l({},b),i.P.2e>0?(1H(o.1s.P),o.1s.P=3e(c,i.P.2e),l.P!==l.R&&k.R.18(l.R,9(){1H(o.1s.P)})):c()}Q i,k,l,m=!b.1p||b.1p===e||b.1p.1a<1||a("#"+j+"-"+b.1p).1a?g.4g++:b.1p,n=".1c-"+m+"-2g",o=v.1X(S,m,b);T(o===e)O d;i=o.2b,a.1m(h,9(){S.2I==="2I"&&S(o)}),k={P:i.P.13,R:i.R.13},l={P:a.3x(""+i.P.1e).24(/ /g,n+" ")+n,R:a.3x(""+i.R.1e).24(/ /g,n+" ")+n},/1B(5w|5x)/i.1y(l.P)&&!/1B(3s|2K)/i.1y(l.R)&&(l.R+=" 30"+n),k.P.18(l.P,p),(i.P.2Y||i.5i)&&p(c)})},h=g.1F={2F:9(a){a=(""+a).24(/([A-Z])/," $1").24(/6j/5g,"1f").2o(),S.x=(a.3Y(/N|1k/i)||a.3Y(/1f/)||["3p"])[0].2o(),S.y=(a.3Y(/M|1i|1f/i)||["3p"])[0].2o(),S.1d=a.33(0).4A(/^(t|b)/)>-1?"y":"x",S.1q=9(){O S.1d==="y"?S.y+S.x:S.x+S.y},S.51=9(){Q a=S.x.2y(0,1),b=S.y.2y(0,1);O a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},W:9(c,d,e){9 l(a,b){f.N+=b*a.2R(),f.M+=b*a.2N()}Q f=c.W(),g=d,i=0,j=1C.3a,k;T(g){6s{T(g[0]===j)2W;g.Y("14")!=="6t"&&(k=g.14(),f.N-=k.N+(1v(g.Y("6w"),10)||0),f.M-=k.M+(1v(g.Y("6A"),10)||0),i++)}3b(g=g.6C());(d[0]!==j||i>1)&&l(d,1),(h.2S<4.1&&h.2S>3.1||!h.2S&&e)&&l(a(b),-1)}O f},2S:4J((""+(/4P.*6G ([0-6J]{1,3})|(4P 6M).*6N.*6P/i.4M(6T.6W)||[0,""])[1]).24("5e","6Z").24("73","."))||e,2l:{17:9(b,c){T(S.1a){Q d=S[0],e="19",f=a.2n(d,"1c");T(b===e){T(26.1a<2)O a.17(d,r);T(11 f==="1g"){f&&f.1h&&f.2b.V.17===e&&f.3k.17&&f.38("V.1o",c),a.2l["17"+q].2c(S,26),a.17(d,r,a.17(d,e));O S.3y(e)}}}},4I:9(b){Q c=a([]),d="19",e;e=a.2l["4I"+q].2c(S,26).2A("[4R]").1m(9(){a.17(S,d,a.17(S,r)),S.3u(r)}).7s();O e},1I:a.1u?f:9(b,c){a(S).1m(9(){c||(!b||a.2A(b,[S]).1a)&&a("*",S).2P(S).1m(9(){a(S).7y("1I")})})}}},a.1m(h.2l,9(b,c){T(!c)O d;Q e=a.2l[b+q]=a.2l[b];a.2l[b]=9(){O c.2c(S,26)||e.2c(S,26)}}),a(1C).18("31.1c",9(a){i={2j:a.2j,2C:a.2C,1A:"31"}}),g.3q="2.0.7K",g.4g=0,g.59="3W 7M 3E 5d 31 30 2H".2z(" "),g.5f=7Q,g.3i={5i:e,1p:e,4k:d,V:{1o:d,17:"19",19:{1o:e,1D:e}},14:{1O:"M N",2u:"1i 1k",13:e,1t:e,29:e,2a:{x:0,y:0,1B:d,2s:d,4n:"3N 3N"},1M:d},P:{13:e,1e:"2H",1M:d,2e:3P,3n:e,2Y:e},R:{13:e,1e:"30",1M:d,2e:0,2v:e,1T:e,2K:"3R",4l:e},15:{3o:"",2t:e,U:e},48:{1P:f,49:f,P:f,R:f,1W:f,2f:f,1K:f}},h.1z=9(a){Q b=a.1F.1z;O"1g"===11 b?b:a.1F.1z=1E w(a)},h.1z.2I="1P",h.1z.36=9(a){Q b=a.V,c;b&&"1z"23 b&&(c=b.1z,11 c!=="1g"&&(c=a.V.1z={2i:c}),"37"!==11 c.2m&&c.2m&&(c.2m=!!c.2m))},a.1l(d,g.3i,{V:{1z:{5q:d,2m:d}}}),h.12=9(a){Q b=a.1F.12;O"1g"===11 b?b:a.1F.12=1E y(a)},h.12.2I="1P",h.12.36=9(a){Q b=a.15,c;b&&"12"23 b&&(c=a.15.12,11 c!=="1g"&&(a.15.12={1j:c}),/1q|37/i.1y(11 c.1j)||(c.1j=d),11 c.U!=="2J"&&2B c.U,11 c.X!=="2J"&&2B c.X,11 c.1b!=="2J"&&c.1b!==d&&2B c.1b,11 c.W!=="2J"&&2B c.W)},a.1l(d,g.3i,{15:{12:{1j:d,3z:e,U:6,X:6,1b:d,W:0}}}),h.46=9(b,c){9 l(a,b){Q d=0,e=1,f=1,g=0,h=0,i=a.U,j=a.X;3b(i>0&&j>0&&e>0&&f>0){i=16.3v(i/2),j=16.3v(j/2),c.x==="N"?e=i:c.x==="1k"?e=a.U-i:e+=16.3v(i/2),c.y==="M"?f=j:c.y==="1i"?f=a.X-j:f+=16.3v(j/2),d=b.1a;3b(d--){T(b.1a<2)2W;g=b[d][0]-a.W.N,h=b[d][1]-a.W.M,(c.x==="N"&&g>=e||c.x==="1k"&&g<=e||c.x==="1f"&&(ga.U-e)||c.y==="M"&&h>=f||c.y==="1i"&&h<=f||c.y==="1f"&&(ha.X-f))&&b.6Q(d,1)}}O{N:b[0][0],M:b[0][1]}}Q d=b.17("44").2o(),e=b.17("74").2z(","),f=[],g=a(\'3w[7i="#\'+b.7n("56").17("47")+\'"]\'),h=g.W(),i={U:0,X:0,W:{M:3D,1k:0,1i:0,N:3D}},j=0,k=0;h.N+=16.3t((g.3B()-g.U())/2),h.M+=16.3t((g.39()-g.X())/2);T(d==="5j"){j=e.1a;3b(j--)k=[1v(e[--j],10),1v(e[j+1],10)],k[0]>i.W.1k&&(i.W.1k=k[0]),k[0]i.W.1i&&(i.W.1i=k[1]),k[1]