diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index a25ef34e..5af0148e 100644 --- a/dist/jquery.qtip.basic.js +++ b/dist/jquery.qtip.basic.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Fri Jun 17 18:59:56 2011 +0100 +* Date: Fri Jun 17 19:00:31 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -898,7 +898,7 @@ function QTip(target, options, id, attr) var type = state ? 'show' : 'hide', opts = options[type], visible = tooltip.is(':visible'), - sameTarget = !event || cache.target[0] === event.target, + sameTarget = !event || options[type].target.length < 2 || cache.target[0] === event.target, posOptions = options.position, contentOptions = options.content, delay, diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 1c9096c0..36b09816 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: Fri Jun 17 18:59:56 2011 +0100 +* Date: Fri Jun 17 19:00:31 2011 +0100 */ /* Core qTip styles */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 489a3cbd..8b440782 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: Fri Jun 17 18:59:56 2011 +0100 +* Date: Fri Jun 17 19:00:31 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -898,7 +898,7 @@ function QTip(target, options, id, attr) var type = state ? 'show' : 'hide', opts = options[type], visible = tooltip.is(':visible'), - sameTarget = !event || cache.target[0] === event.target, + sameTarget = !event || options[type].target.length < 2 || cache.target[0] === event.target, posOptions = options.position, contentOptions = options.content, delay, diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index f51b127d..448becd2 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: Fri Jun 17 18:59:56 2011 +0100 -*//*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true *//*global window: false, jQuery: false, console: false */(function(a,b,c){function E(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 D(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=a(document.body),q;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;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){var d=a.originalEvent;d&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget.closest(q[0]).length?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c}).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(p)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(p)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}q=h.overlay=a("
",{id:j.substr(1),html:"
",mousedown:function(){return e}}).insertBefore(a(n).last()),a(b).unbind(k).bind("resize"+k,function(){q.css({height:a(b).height(),width:a(b).width()})}).triggerHandler("resize");return q},toggle:function(b,c,h){if(b&&b.isDefaultPrevented())return f;var j=g.effect,k=c?"show":"hide",p=q.is(":visible"),r=a("["+m+"]:visible").not(i),s;q||(q=f.create());if(q.is(":animated")&&p===c||!c&&r.length)return f;c?(q.css({left:0,top:0}),q.toggleClass("blurs",g.blur),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focus"+l),q.stop(d,e),a.isFunction(j)?j.call(q,c):j===e?q[k]():q.fadeTo(parseInt(h,10)||90,c?1:0,function(){c||a(this).hide()}),c||q.queue(function(a){q.css({left:"",top:""}),a()});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=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focus"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function C(b,g){function w(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 v(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 u(a,b,c){b=b?b:a[a.precedance];var d=l.hasClass(r),e=k.titlebar&&a.y==="top",f=e?k.titlebar:k.content,g="border-"+b+"-width",h;l.addClass(r),h=parseInt(f.css(g),10),h=(c?h||parseInt(l.css(g),10):h)||0,l.toggleClass(r,d);return h}function t(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",s=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.border=p,i.offset=j.offset,i.size=n,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()&&(s||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,t));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,s="background-color",t="transparent",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),s?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(d+d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,r="px solid ",t="px dashed transparent",v=j.mimic,x=Math.round,y,z,A,C,D;b||(b=i.corner),v===e?v=b:(v=new h.Corner(v),v.precedance=b.precedance,v.x==="inherit"?v.x=b.x:v.y==="inherit"?v.y=b.y:v.x===v.y&&(v[b.precedance]=b[b.precedance])),y=v.precedance,i.detectColours(),o.border!=="transparent"&&o.border!=="#123456"?(p=u(b,f,d),j.border===0&&p>0&&(o.fill=o.border),i.border=p=j.border!==d?j.border:p):i.border=p=0,A=B(v,m,q),i.size=D=w(b),g.css(D),b.precedance==="y"?C=[x(v.x==="left"?p:v.x==="right"?D.width-m-p:(D.width-m)/2),x(v.y==="top"?D.height-q:0)]:C=[x(v.x==="left"?D.width-m:0),x(v.y==="top"?p:v.y==="bottom"?D.height-q-p:(D.height-q)/2)],s?(l.attr(D),z=l[0].getContext("2d"),z.restore(),z.save(),z.clearRect(0,0,3e3,3e3),z.translate(C[0],C[1]),z.beginPath(),z.moveTo(A[0][0],A[0][1]),z.lineTo(A[1][0],A[1][1]),z.lineTo(A[2][0],A[2][1]),z.closePath(),z.fillStyle=o.fill,z.strokeStyle=o.border,z.lineWidth=p*2,z.lineJoin="miter",z.miterLimit=100,p&&z.stroke(),z.fill()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(v.string().indexOf("center")>-1),left:C[0]-C[2]*Number(y==="x"),top:C[1]-C[2]*Number(y==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:A,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&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=w(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=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0: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 B(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 A(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 z(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,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){w("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?x(r):f,x(q||p)),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{w("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m);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,u,a.attr(this,"title")),this.removeAttribute("title")),i=new y(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave&&h.window.bind("mouse"+(s.hide.leave.indexOf("frame")>-1?"out":"leave")+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&y.hide(b)}),"number"===typeof s.hide.inactive&&(h.show.bind("qtip-"+t+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(F.tooltip).bind(b+E+"-inactive",p)})),a.each(j.hide,function(b,c){var d=a.inArray(c,j.show),e=a(h.hide);d>-1&&e.add(h.show).length===e.length||c==="unfocus"?(h.show.bind(c+E,function(a){D.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+E,o)}),a.each(j.show,function(a,b){h.show.bind(b+E,l)}),"number"===typeof s.hide.distance&&h.show.bind("mousemove"+E,function(a){var b=G.origin||{},c=s.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&y.hide(a)}),f.target==="mouse"&&(h.show.bind("mousemove"+E,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(s.hide.event&&D.bind("mouseleave"+E,function(a){(a.relatedTarget||a.target)!==h.show[0]&&y.hide(a)}),h.document.bind("mousemove"+E,function(a){!D.hasClass(m)&&D.is(":visible")&&y.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+E,r),(h.viewport.length||k&&D.css("position")==="fixed")&&h.viewport.bind("scroll"+E,r)}function O(b,d){function g(b){function g(f){clearTimeout(y.timers.img[this]),a(this).unbind(E),(c=c.not(this)).length===0&&(y.redraw(),d!==e&&y.reposition(G.event),b())}var c;if((c=f.find("img:not([height]):not([width])")).length===0)return g.call(c);c.each(function(b,c){(function d(){if(c.height&&c.width)return g.call(c);y.timers.img[c]=setTimeout(d,1e3)})(),a(c).bind("error"+E+" load"+E,g)})}var f=F.content;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.rendered<0?D.queue("fx",g):(C=0,g(a.noop));return y}function N(b,d){var f=F.title;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.redraw(),d!==e&&y.rendered&&D.is(":visible")&&y.reposition(G.event)}function M(a){var b=F.button,c=F.title;if(!y.rendered)return e;a?(c||L(),K()):b.remove()}function L(){var b=A+"-title";F.titlebar&&J(),F.titlebar=a("
",{"class":k+"-titlebar "+(s.style.widget?"ui-widget-header":"")}).append(F.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(F.content),s.content.title.button?K():y.rendered&&y.redraw()}function K(){var b=s.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";F.button&&F.button.remove(),b.jquery?F.button=b:F.button=a("",{"class":"ui-state-default "+(s.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),F.button.appendTo(F.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){D.hasClass(m)||y.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")}),y.redraw()}function J(){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(b,c,d){a.attr(D[0],"class",k+" qtip ui-helper-reset "+d)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,f&&(L(),N(f)),O(s.content.text,e),y.rendered=d,I(),a.each(s.events,function(b,c){a.isFunction(c)&&D.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(y)}),P(),D.queue("fx",function(a){i.originalEvent=G.event,D.trigger(i,[y]),C=0,y.redraw(),(s.show.ready||b)&&y.toggle(d,G.event),a()});return y},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:D.outerHeight(),width:D.outerWidth()};break;case"offset":b=h.offset(D,s.position.container);break;default:c=H(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(y,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=y.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=H(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}),x(s),B=C=1,a.each(b,m),B=C=0,D.is(":visible")&&y.rendered&&(i&&y.reposition(s.position.target==="mouse"?f:G.event),j&&y.redraw());return y},toggle:function(b,c){function q(){b?(a.browser.msie&&D[0].style.removeAttribute("filter"),D.css("overflow","")):D.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(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 w(){if(console)return(console.info||console.log||a.noop).apply(console,arguments)}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v=e;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),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=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},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{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}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,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).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+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),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:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},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 A(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 C(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]}}b.jquery||(b=a(b));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 D(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=a(document.body),q;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;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){var d=a.originalEvent;d&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget.closest(q[0]).length?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c}).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(p)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(p)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}q=h.overlay=a("
",{id:j.substr(1),html:"
",mousedown:function(){return e}}).insertBefore(a(n).last()),a(b).unbind(k).bind("resize"+k,function(){q.css({height:a(b).height(),width:a(b).width()})}).triggerHandler("resize");return q},toggle:function(b,c,h){if(b&&b.isDefaultPrevented())return f;var j=g.effect,k=c?"show":"hide",p=q.is(":visible"),r=a("["+m+"]:visible").not(i),s;q||(q=f.create());if(q.is(":animated")&&p===c||!c&&r.length)return f;c?(q.css({left:0,top:0}),q.toggleClass("blurs",g.blur),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focus"+l),q.stop(d,e),a.isFunction(j)?j.call(q,c):j===e?q[k]():q.fadeTo(parseInt(h,10)||90,c?1:0,function(){c||a(this).hide()}),c||q.queue(function(a){q.css({left:"",top:""}),a()});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=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focus"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function C(b,g){function w(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 v(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 u(a,b,c){b=b?b:a[a.precedance];var d=l.hasClass(r),e=k.titlebar&&a.y==="top",f=e?k.titlebar:k.content,g="border-"+b+"-width",h;l.addClass(r),h=parseInt(f.css(g),10),h=(c?h||parseInt(l.css(g),10):h)||0,l.toggleClass(r,d);return h}function t(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",s=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.border=p,i.offset=j.offset,i.size=n,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()&&(s||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,t));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,s="background-color",t="transparent",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),s?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(d+d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,r="px solid ",t="px dashed transparent",v=j.mimic,x=Math.round,y,z,A,C,D;b||(b=i.corner),v===e?v=b:(v=new h.Corner(v),v.precedance=b.precedance,v.x==="inherit"?v.x=b.x:v.y==="inherit"?v.y=b.y:v.x===v.y&&(v[b.precedance]=b[b.precedance])),y=v.precedance,i.detectColours(),o.border!=="transparent"&&o.border!=="#123456"?(p=u(b,f,d),j.border===0&&p>0&&(o.fill=o.border),i.border=p=j.border!==d?j.border:p):i.border=p=0,A=B(v,m,q),i.size=D=w(b),g.css(D),b.precedance==="y"?C=[x(v.x==="left"?p:v.x==="right"?D.width-m-p:(D.width-m)/2),x(v.y==="top"?D.height-q:0)]:C=[x(v.x==="left"?D.width-m:0),x(v.y==="top"?p:v.y==="bottom"?D.height-q-p:(D.height-q)/2)],s?(l.attr(D),z=l[0].getContext("2d"),z.restore(),z.save(),z.clearRect(0,0,3e3,3e3),z.translate(C[0],C[1]),z.beginPath(),z.moveTo(A[0][0],A[0][1]),z.lineTo(A[1][0],A[1][1]),z.lineTo(A[2][0],A[2][1]),z.closePath(),z.fillStyle=o.fill,z.strokeStyle=o.border,z.lineWidth=p*2,z.lineJoin="miter",z.miterLimit=100,p&&z.stroke(),z.fill()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(v.string().indexOf("center")>-1),left:C[0]-C[2]*Number(y==="x"),top:C[1]-C[2]*Number(y==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:A,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&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=w(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=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0: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 B(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 A(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 z(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,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){w("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?x(r):f,x(q||p)),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{w("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m);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,u,a.attr(this,"title")),this.removeAttribute("title")),i=new y(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave&&h.window.bind("mouse"+(s.hide.leave.indexOf("frame")>-1?"out":"leave")+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&y.hide(b)}),"number"===typeof s.hide.inactive&&(h.show.bind("qtip-"+t+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(F.tooltip).bind(b+E+"-inactive",p)})),a.each(j.hide,function(b,c){var d=a.inArray(c,j.show),e=a(h.hide);d>-1&&e.add(h.show).length===e.length||c==="unfocus"?(h.show.bind(c+E,function(a){D.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+E,o)}),a.each(j.show,function(a,b){h.show.bind(b+E,l)}),"number"===typeof s.hide.distance&&h.show.bind("mousemove"+E,function(a){var b=G.origin||{},c=s.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&y.hide(a)}),f.target==="mouse"&&(h.show.bind("mousemove"+E,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(s.hide.event&&D.bind("mouseleave"+E,function(a){(a.relatedTarget||a.target)!==h.show[0]&&y.hide(a)}),h.document.bind("mousemove"+E,function(a){!D.hasClass(m)&&D.is(":visible")&&y.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+E,r),(h.viewport.length||k&&D.css("position")==="fixed")&&h.viewport.bind("scroll"+E,r)}function O(b,d){function g(b){function g(f){clearTimeout(y.timers.img[this]),a(this).unbind(E),(c=c.not(this)).length===0&&(y.redraw(),d!==e&&y.reposition(G.event),b())}var c;if((c=f.find("img:not([height]):not([width])")).length===0)return g.call(c);c.each(function(b,c){(function d(){if(c.height&&c.width)return g.call(c);y.timers.img[c]=setTimeout(d,1e3)})(),a(c).bind("error"+E+" load"+E,g)})}var f=F.content;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.rendered<0?D.queue("fx",g):(C=0,g(a.noop));return y}function N(b,d){var f=F.title;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.redraw(),d!==e&&y.rendered&&D.is(":visible")&&y.reposition(G.event)}function M(a){var b=F.button,c=F.title;if(!y.rendered)return e;a?(c||L(),K()):b.remove()}function L(){var b=A+"-title";F.titlebar&&J(),F.titlebar=a("
",{"class":k+"-titlebar "+(s.style.widget?"ui-widget-header":"")}).append(F.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(F.content),s.content.title.button?K():y.rendered&&y.redraw()}function K(){var b=s.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";F.button&&F.button.remove(),b.jquery?F.button=b:F.button=a("",{"class":"ui-state-default "+(s.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),F.button.appendTo(F.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){D.hasClass(m)||y.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")}),y.redraw()}function J(){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(b,c,d){a.attr(D[0],"class",k+" qtip ui-helper-reset "+d)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,f&&(L(),N(f)),O(s.content.text,e),y.rendered=d,I(),a.each(s.events,function(b,c){a.isFunction(c)&&D.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(y)}),P(),D.queue("fx",function(a){i.originalEvent=G.event,D.trigger(i,[y]),C=0,y.redraw(),(s.show.ready||b)&&y.toggle(d,G.event),a()});return y},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:D.outerHeight(),width:D.outerWidth()};break;case"offset":b=h.offset(D,s.position.container);break;default:c=H(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(y,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=y.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=H(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}),x(s),B=C=1,a.each(b,m),B=C=0,D.is(":visible")&&y.rendered&&(i&&y.reposition(s.position.target==="mouse"?f:G.event),j&&y.redraw());return y},toggle:function(b,c){function q(){b?(a.browser.msie&&D[0].style.removeAttribute("filter"),D.css("overflow","")):D.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||s[g].target.length<2||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(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 w(){if(console)return(console.info||console.log||a.noop).apply(console,arguments)}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v=e;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),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=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},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{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}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,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).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+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),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:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},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 A(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 C(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]}}b.jquery||(b=a(b));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}('(7(a,b,c){7 E(b){T c=V,d=b.31,e=d.1x,f=".23-"+b.1w;a.1r(c,{1X:7(){d.23=a(\'<5K 20="1B-1x-23" 8s="0" 89="-1" 8g="8b:\\\'\\\';" 19="2J:2Y; 17:4C; z-8t:-1; 2I:8j(4t=0); -8k-2I:"83:8l.8m.8n(8o=0)";">\'),d.23.3f(e),e.1a("4p"+f,c.1O)},1O:7(){T a=b.43("5d"),c=b.1L.1e,f=d.1e,g,h;h=1A(e.14("1f-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1h.1j==="x"?["Y","R"]:["13","9"],h[g[1]]-=f[g[0]]()),d.23.14(h).14(a)},2j:7(){d.23.1V(),e.1u(f)}}),c.1X()}7 D(c){T f=V,g=c.2g.U.1F,h=c.31,i=h.1x,j="#1i-2H",k=".8q",l=k+c.1w,m="1J-1F-1i",o=a(1D.3a),q;c.2U.1F={"^U.1F.(2N|2c)$":7(){f.1X(),h.2H.1I(i.1J(":1N"))}},a.1r(f,{1X:7(){X(!g.2N)S f;q=f.2u(),i.18(m,d).1u(k).1u(l).1a("4g"+k+" 4h"+k,7(a,b,c){T d=a.33;d&&a.1y==="4h"&&/1p(29|3X)/.1z(d.1y)&&d.3b.4d(q[0]).1b?a.51():f[a.1y.2h("1x","")](a,c)}).1a("5l"+k,7(a,b,c){q[0].19.2T=c}).1a("5m"+k,7(b){a("["+m+"]:1N").2o(i).5c().1i("21",b)}),g.4D&&a(b).1u(l).1a("4Y"+l,7(a){a.8r===27&&i.1S(p)&&c.W(a)}),g.2c&&h.2H.1u(l).1a("4o"+l,7(a){i.1S(p)&&c.W(a)});S f},2u:7(){T c=a(j);X(c.1b){h.2H=c;S c}q=h.2H=a("<22 />",{1w:j.2S(1),2L:"<22>",3K:7(){S e}}).4W(a(n).5c()),a(b).1u(k).1a("2y"+k,7(){q.14({13:a(b).13(),Y:a(b).Y()})}).5b("2y");S q},1I:7(b,c,h){X(b&&b.3s())S f;T j=g.1Z,k=c?"U":"W",p=q.1J(":1N"),r=a("["+m+"]:1N").2o(i),s;q||(q=f.2u());X(q.1J(":5f")&&p===c||!c&&r.1b)S f;c?(q.14({R:0,9:0}),q.1R("7x",g.2c),o.7A("*","7B"+l,7(b){a(b.15).4d(n)[0]!==i[0]&&a("a, :5N, 2W",i).2r(i).21()})):o.4y("*","21"+l),q.5i(d,e),a.1T(j)?j.2a(q,c):j===e?q[k]():q.5j(1A(h,10)||3V,c?1:0,7(){c||a(V).W()}),c||q.34(7(a){q.14({R:"",9:""}),a()});S f},U:7(a,b){S f.1I(a,d,b)},W:7(a,b){S f.1I(a,e,b)},2j:7(){T d=q;d&&(d=a("["+m+"]").2o(i).1b<1,d?(h.2H.1V(),a(b).1u(k)):h.2H.1u(k+c.1w),o.4y("*","21"+l));S i.3G(m).1u(k)}}),f.1X()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"13"],d=n[b?"13":"Y"],e=a.1t().2A("1k")>-1,f=c*(e?.5:1),g=1d.5P,h=1d.3U,i,j,k,l=1d.3Z(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.3Z(g(m[0],2)-g(p,2)),m[3]=1d.3Z(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)];S{13:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1E&&b.y==="9",d=c?k.1E:k.12,e=a.2i.5Q,f=e?"-5R-":a.2i.4R?"-4R-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4z-"+g:"1f-"+g+"-4z");S 1A(d.14(h),10)||1A(l.14(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1S(r),e=k.1E&&a.y==="9",f=e?k.1E:k.12,g="1f-"+b+"-Y",h;l.3o(r),h=1A(f.14(g),10),h=(c?h||1A(l.14(g),10):h)||0,l.1R(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1h),o=h.3Q,p=b.2g.17.1O.4s.2M(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1h.2C!==d&&(q==="2n"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3R"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1o":n.x==="R"?"1o":"R"),r==="2n"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3R"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1q":n.y==="9"?"1q":"9"),n.1t()!==m.1h&&(m.9!==o.9||m.R!==o.R)&&i.3x(n,e)),t=i.17(n,o),t.1o!==c&&(t.R=-t.1o),t.1q!==c&&(t.9=-t.1q),t.48=1d.28(0,j.11);X(s.R=q==="2n"&&!!o.R)n.x==="1k"?u["2V-R"]=s.x=t["2V-R"]-o.R:(v=t.1o!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.28(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1o!==c?"1o":"R"]=s.x);X(s.9=r==="2n"&&!!o.9)n.y==="1k"?u["2V-9"]=s.y=t["2V-9"]-o.9:(v=t.1q!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.28(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1q!==c?"1q":"9"]=s.y);k.1e.14(u).1I(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3p?t.48:q!=="2n"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3p?t.48:r!=="2n"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1h=n.1t()}}T i=V,j=b.2g.19.1e,k=b.31,l=k.1x,m={9:0,R:0,1h:""},n={Y:j.Y,13:j.13},o={},p=j.1f||0,q=".1i-1e",s=!!(a("<4B />")[0]||{}).40;i.1h=f,i.3D=f,i.1f=p,i.11=j.11,i.30=n,b.2U.1e={"^17.1U|19.1e.(1h|3D|1f)$":7(){i.1X()||i.2j(),b.26()},"^19.1e.(13|Y)$":7(){n={Y:j.Y,13:j.13},i.2u(),i.3x(),b.26()},"^12.1c.1n|19.(3g|2D)$":7(){k.1e&&i.3x()}},a.1r(i,{1X:7(){T b=i.4X()&&(s||a.2i.39);b&&(i.2u(),i.3x(),l.1u(q).1a("4p"+q,t));S b},4X:7(){T a=j.1h,c=b.2g.17,f=c.2B,g=c.1U.1t?c.1U.1t():c.1U;X(a===e||g===e&&f===e)S e;a===d?i.1h=1K h.2R(g):a.1t||(i.1h=1K h.2R(a),i.1h.2C=d);S i.1h.1t()!=="5E"},4H:7(){T c,d,e,f=k.1e.14({6s:"",1f:""}),g=i.1h,h=g[g.1j],m="1f-"+h+"-3d",p="1f"+h.3p(0)+h.2S(1)+"6y",q=/5U?\\(0, 0, 0(, 0)?\\)|3A/i,s="7b-3d",t="3A",u=a(1D.3a).14("3d"),v=b.31.12.14("3d"),w=k.1E&&(g.y==="9"||g.y==="1k"&&f.17().9+n.13/2+j.11",{"20":"1B-1x-1e"}).14({Y:b,13:c}).5W(l),s?a("<4B />").3f(k.1e)[0].40("2d").4G():(d=\'<44:49 5X="0,0" 19="2J:5t-2Y; 17:4C; 5w:2z(#3c#5u);">\',k.1e.2L(d+d))},3x:7(b,c){T g=k.1e,l=g.5Z(),m=n.Y,q=n.13,r="45 60 ",t="45 61 3A",v=j.3D,x=1d.3U,y,z,A,C,D;b||(b=i.1h),v===e?v=b:(v=1K h.2R(v),v.1j=b.1j,v.x==="3M"?v.x=b.x:v.y==="3M"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4H(),o.1f!=="3A"&&o.1f!=="#62"?(p=u(b,f,d),j.1f===0&&p>0&&(o.2x=o.1f),i.1f=p=j.1f!==d?j.1f:p):i.1f=p=0,A=B(v,m,q),i.30=D=w(b),g.14(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1o"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.13-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1q"?D.13-q-p:(D.13-q)/2)],s?(l.18(D),z=l[0].40("2d"),z.64(),z.4G(),z.65(0,0,4E,4E),z.66(C[0],C[1]),z.67(),z.68(A[0][0],A[0][1]),z.5J(A[1][0],A[1][1]),z.5J(A[2][0],A[2][1]),z.69(),z.6a=o.2x,z.8p=o.1f,z.6b=p*2,z.6d="5v",z.6e=5D,p&&z.4J(),z.2x()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6f",C[2]=p&&/^(r|b)/i.1z(b.1t())?4S(a.2i.3N,10)===8?2:1:0,l.14({6g:""+(v.1t().2A("1k")>-1),R:C[0]-C[2]*5H(y==="x"),9:C[1]-C[2]*5H(y==="y"),Y:m+p,13:q+p}).1s(7(b){T c=a(V);c[c.5F?"5F":"18"]({6i:m+p+" "+(q+p),6j:A,6k:o.2x,6l:!!b,6m:!b}).14({2J:p||b?"2Y":"4r"}),!b&&c.2L()===""&&c.2L(\'<44:4J 6n="\'+p*2+\'45" 3d="\'+o.1f+\'" 85="6o" 6p="5v" 19="5w:2z(#3c#5u); 2J:5t-2Y;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.28(0,j.11),h,l,m;X(j.1h===e||!c)S e;b=b||i.1h,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6r(),a.1s(m,7(a,c){T e,i;c==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["2V-"+e]=-1d.3U(l[h==="y"?"Y":"13"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"13"],c.14({9:"",1q:"",R:"",1o:"",2V:""}).14(f);S f},2j:7(){k.1e&&k.1e.1V(),l.1u(q)}}),i.1X()}7 B(a,b,c){T d=1d.3J(b/2),e=1d.3J(c/2),f={4M:[[0,0],[b,c],[b,0]],5C:[[0,0],[b,0],[0,c]],4N:[[0,c],[b,0],[b,c]],5e:[[0,0],[0,c],[b,c]],6t:[[0,c],[d,0],[b,c]],6u:[[0,0],[b,0],[d,c]],6v:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.4M,f.6z=f.5C,f.6A=f.4N,f.6B=f.5e;S f[a.1t()]}7 A(b){T c=V,f=b.31.1x,g=b.2g.12.1C,h=".1i-1C",i=/<4j\\b[^<]*(?:(?!<\\/4j>)<[^<]*)*<\\/4j>/4L,j=d;b.2U.1C={"^12.1C":7(a,b,d){b==="1C"&&(g=d),b==="2E"?c.1X():g&&g.2z?c.3L():f.1u(h)}},a.1r(c,{1X:7(){g&&g.2z&&f.1u(h)[g.2E?"6C":"1a"]("4g"+h,c.3L);S c},3L:7(d,h){7 p(a,c,d){b.3e("12.1n",c+": "+d),n()}7 o(c){l&&(c=a("<22/>").3h(c.2h(i,"")).53(l)),b.3e("12.1n",c),n()}7 n(){m&&(f.14("4k",""),h=e)}X(d&&d.3s())S c;T j=g.2z.2A(" "),k=g.2z,l,m=g.2E&&!g.5I&&h;m&&f.14("4k","4l"),j>-1&&(l=k.2S(j),k=k.2S(0,j)),a.1C(a.1r({7H:o,4T:p,7G:b},g,{2z:k}));S c}}),c.1X()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1D.3a),o=V===1D?n:m,p=m.2l?m.2l(c.2l):f,q=c.2l.1y==="6F"&&p?p[c.2l.4f]:f,r=m.2t(c.2l.4f||"6H");6I{r=16 r==="1t"?(1K 6J("S "+r))():r}6K(s){w("59 5a 7z 7y 6N 2t: "+r)}l=a.1r(d,{},g.3t,c,16 r==="1l"?x(r):f,x(q||p)),j=l.17,l.1w=b;X("3q"===16 l.12.1n){k=m.18(l.12.18);X(l.12.18!==e&&k)l.12.1n=k;2p{w("59 5a 6O 12 46 1x! 6P 1Q 6Q 1x 2N 7r: ",m);S e}}j.1Y===e&&(j.1Y=n),j.15===e&&(j.15=o),l.U.15===e&&(l.U.15=o),l.U.35===d&&(l.U.35=n),l.W.15===e&&(l.W.15=o),l.17.1P===d&&(l.17.1P=j.1Y),j.2B=1K h.2R(j.2B),j.1U=1K h.2R(j.1U);X(a.2t(V,"1i"))X(l.4q)m.1i("2j");2p X(l.4q===e)S e;a.18(V,"1c")&&(a.18(V,u,a.18(V,"1c")),V.3C("1c")),i=1K y(m,l,b,!!k),a.2t(V,"1i",i),m.1a("1V.1i",7(){i.2j()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.15[0],s.W.15[0],y.1m&&F.1x[0],s.17.1Y[0],s.17.1P[0],b,1D];y.1m?a([]).7q(a.6S(c,7(a){S 16 a==="1l"})).1u(E):s.U.15.1u(E+"-2u")}7 P(){7 r(a){D.1J(":1N")&&y.26(a)}7 p(a){X(D.1S(m))S e;1M(y.1v.25),y.1v.25=3z(7(){y.W(a)},s.W.25)}7 o(b){X(D.1S(m))S e;T c=a(b.3b||b.15),d=c.4d(n)[0]===D[0],g=c[0]===h.U[0];1M(y.1v.U),1M(y.1v.W);f.15==="1p"&&d||s.W.2C&&(/1p(3w|29|4i)/.1z(b.1y)&&(d||g))?b.51():s.W.2w>0?y.1v.W=3z(7(){y.W(b)},s.W.2w):y.W(b)}7 l(a){X(D.1S(m))S e;h.U.2P("1i-"+t+"-25"),1M(y.1v.U),1M(y.1v.W);T b=7(){y.1I(d,a)};s.U.2w>0?y.1v.U=3z(b,s.U.2w):b()}T f=s.17,h={U:s.U.15,W:s.W.15,1P:a(f.1P),1D:a(1D),3y:a(b)},j={U:a.3Y(""+s.U.1g).2M(" "),W:a.3Y(""+s.W.1g).2M(" ")},k=a.2i.39&&1A(a.2i.3N,10)===6;D.1a("3v"+E+" 37"+E,7(a){T b=a.1y==="3v";b&&y.21(a),D.1R(q,b)}),s.W.2C&&(h.W=h.W.2r(D),D.1a("6U"+E,7(){D.1S(m)||1M(y.1v.W)})),/1p(3w|29)/i.1z(s.W.1g)?s.W.29&&h.3y.1a("1p"+(s.W.29.2A("6V")>-1?"3w":"29")+E,7(a){/4V|4I/.1z(a.15)&&!a.3b&&y.W(a)}):/1p(4x|3X)/i.1z(s.U.1g)&&h.W.1a("37"+E,7(a){1M(y.1v.U)}),(""+s.W.1g).2A("4Z")>-1&&h.1D.1a("3K"+E,7(b){T d=a(b.15),e=!D.1S(m)&&D.1J(":1N");d.6W(n).1b===0&&d.2r(c).1b>1&&y.W(b)}),"2Q"===16 s.W.25&&(h.U.1a("1i-"+t+"-25",p),a.1s(g.5h,7(a,b){h.W.2r(F.1x).1a(b+E+"-25",p)})),a.1s(j.W,7(b,c){T d=a.7j(c,j.U),e=a(h.W);d>-1&&e.2r(h.U).1b===e.1b||c==="4Z"?(h.U.1a(c+E,7(a){D.1J(":1N")?o(a):l(a)}),2m j.U[d]):h.W.1a(c+E,o)}),a.1s(j.U,7(a,b){h.U.1a(b+E,l)}),"2Q"===16 s.W.3B&&h.U.1a("2e"+E,7(a){T b=G.3m||{},c=s.W.3B,d=1d.3u;(d(a.1H-b.1H)>=c||d(a.2f-b.2f)>=c)&&y.W(a)}),f.15==="1p"&&(h.U.1a("2e"+E,7(a){i={1H:a.1H,2f:a.2f,1y:"2e"}}),f.1O.1p&&(s.W.1g&&D.1a("37"+E,7(a){(a.3b||a.15)!==h.U[0]&&y.W(a)}),h.1D.1a("2e"+E,7(a){!D.1S(m)&&D.1J(":1N")&&y.26(a||i)}))),(f.1O.2y||h.1P.1b)&&(a.1g.7h.2y?h.1P:h.3y).1a("2y"+E,r),(h.1P.1b||k&&D.14("17")==="2C")&&h.1P.1a("41"+E,r)}7 O(b,d){7 g(b){7 g(f){1M(y.1v.2W[V]),a(V).1u(E),(c=c.2o(V)).1b===0&&(y.2O(),d!==e&&y.26(G.1g),b())}T c;X((c=f.53("2W:2o([13]):2o([Y])")).1b===0)S g.2a(c);c.1s(7(b,c){(7 d(){X(c.13&&c.Y)S g.2a(c);y.1v.2W[c]=3z(d,71)})(),a(c).1a("4T"+E+" 3L"+E,g)})}T f=F.12;X(!y.1m||!b)S e;a.1T(b)&&(b=b.2a(c,G.1g,y)||""),b.2b&&b.1b>0?f.4U().3h(b.14({2J:"2Y"})):f.2L(b),y.1m<0?D.34("42",g):(C=0,g(a.5G));S y}7 N(b,d){T f=F.1c;X(!y.1m||!b)S e;a.1T(b)&&(b=b.2a(c,G.1g,y)||""),b.2b&&b.1b>0?f.4U().3h(b.14({2J:"2Y"})):f.2L(b),y.2O(),d!==e&&y.1m&&D.1J(":1N")&&y.26(G.1g)}7 M(a){T b=F.1G,c=F.1c;X(!y.1m)S e;a?(c||L(),K()):b.1V()}7 L(){T b=A+"-1c";F.1E&&J(),F.1E=a("<22 />",{"20":k+"-1E "+(s.19.2D?"1B-2D-54":"")}).3h(F.1c=a("<22 />",{1w:b,"20":k+"-1c","1W-4e":d})).4W(F.12),s.12.1c.1G?K():y.1m&&y.2O()}7 K(){T b=s.12.1c.1G,c=16 b==="1t",d=c?b:"75 1x";F.1G&&F.1G.1V(),b.2b?F.1G=b:F.1G=a("",{"20":"1B-3j-3c "+(s.19.2D?"":k+"-3F"),1c:d,"1W-76":d}).77(a("<78 />",{"20":"1B-3F 1B-3F-79",2L:"&7c;"})),F.1G.3f(F.1E).18("58","1G").4w(7(b){a(V).1R("1B-3j-4w",b.1y==="3v")}).4o(7(a){D.1S(m)||y.W(a);S e}).1a("3K 4Y 5n 7d 7f",7(b){a(V).1R("1B-3j-7g 1B-3j-21",b.1y.2S(-4)==="7i")}),y.2O()}7 J(){F.1c&&(F.1E.1V(),F.1E=F.1c=F.1G=f,y.26())}7 I(){T a=s.19.2D;D.1R(l,a).1R(o,!a),F.12.1R(l+"-12",a),F.1E&&F.1E.1R(l+"-54",a),F.1G&&F.1G.1R(k+"-3F",!a)}7 H(a){T b=0,c,d=s,e=a.2M(".");3k(d=d[e[b++]])b0&&!a("#"+i).1b&&(D[0].1w=i,F.12[0].1w=i+"-12",F.1c[0].1w=i+"-1c")},"^12.1n$":7(a,b,c){O(c)},"^12.1c.1n$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1G$":7(a,b,c){M(c)},"^17.(1U|2B)$":7(a,b,c){"1t"===16 c&&(a[b]=1K h.2R(c))},"^17.1Y$":7(a,b,c){y.1m&&D.3f(c)},"^U.36$":7(){y.1m?y.1I(d):y.1Q(1)},"^19.3g$":7(b,c,d){a.18(D[0],"20",k+" 1i 1B-57-4P "+d)},"^19.2D|12.1c":I,"^4c.(1Q|U|4i|W|21|2c)$":7(b,c,d){D[(a.1T(d)?"":"7m")+"1a"]("1x"+c,d)},"^(U|W|17).(1g|15|2C|25|29|3B|1P|1O)":7(){T a=s.17;D.18("4n",a.15==="1p"&&a.1O.1p),Q(),P()}},a.1r(y,{1Q:7(b){X(y.1m)S y;T f=s.12.1c.1n,g=s.17,i=a.3l("7p");a.18(c[0],"1W-4v",A),D=F.1x=a("<22/>",{1w:A,"20":k+" 1i 1B-57-4P "+o+" "+s.19.3g,Y:s.19.Y||"",4n:g.15==="1p"&&g.1O.1p,58:"7t","1W-7u":"7v","1W-4e":e,"1W-4v":A+"-12","1W-4l":d}).1R(m,G.2F).2t("1i",y).3f(s.17.1Y).3h(F.12=a("<22 />",{"20":k+"-12",1w:A+"-12","1W-4e":d})),y.1m=-1,C=1,f&&(L(),N(f)),O(s.12.1n,e),y.1m=d,I(),a.1s(s.4c,7(b,c){a.1T(c)&&D.1a(b==="1I"?"4g 4h":"1x"+b,c)}),a.1s(h,7(){V.2K==="1Q"&&V(y)}),P(),D.34("42",7(a){i.33=G.1g,D.2P(i,[y]),C=0,y.2O(),(s.U.36||b)&&y.1I(d,G.1g),a()});S y},43:7(a){T b,c;5q(a.2s()){3r"5d":b={13:D.3i(),Y:D.3I()};32;3r"11":b=h.11(D,s.17.1Y);32;3c:c=H(a.2s()),b=c[0][c[1]],b=b.1j?b.1t():b}S b},3e:7(b,c){7 m(a,b){T c,d,e;46(c 24 k)46(d 24 k[c])X(e=(1K 7C(d,"i")).56(a))b.5g(e),k[c][d].2G(y,b)}T g=/^17\\.(1U|2B|1O|15|1Y)|19|12|U\\.36/i,h=/^12\\.(1c|18)|19/i,i=e,j=e,k=y.2U,l;"1t"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2s()),f;f=e[0][e[1]],e[0][e[1]]="1l"===16 d&&d.7D?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1z(c)||i,j=h.1z(c)||j}),x(s),B=C=1,a.1s(b,m),B=C=0,D.1J(":1N")&&y.1m&&(i&&y.26(s.17.15==="1p"?f:G.1g),j&&y.2O());S y},1I:7(b,c){7 q(){b?(a.2i.39&&D[0].19.3C("2I"),D.14("7E","")):D.14({2J:"",4k:"",4t:"",R:"",9:""})}X(!y.1m)X(b)y.1Q(1);2p S y;T g=b?"U":"W",h=s[g],j=D.1J(":1N"),k=!c||G.15[0]===c.15,l=s.17,m=s.12,o,p;(16 b).5r("3q|2Q")&&(b=!j);X(!D.1J(":5f")&&j===b&&k)S y;X(c){X(/4x|3X/.1z(c.1y)&&/3w|29/.1z(G.1g.1y)&&c.15===s.U.15[0]&&D.7F(c.3b).1b)S y;G.1g=a.1r({},c)}p=a.3l("1x"+g),p.33=c?G.1g:f,D.2P(p,[y,3V]);X(p.3s())S y;a.18(D[0],"1W-4l",!b),b?(G.3m=a.1r({},i),y.21(c),a.1T(m.1n)&&O(m.1n,e),a.1T(m.1c.1n)&&N(m.1c.1n,e),!v&&l.15==="1p"&&l.1O.1p&&(a(1D).1a("2e.1i",7(a){i={1H:a.1H,2f:a.2f,1y:"2e"}}),v=d),y.26(c),h.35&&a(n,h.35).2o(D).1i("W",p)):(1M(y.1v.U),2m G.3m,v&&!a(n+\'[4n="7J"]:1N\',h.35).2o(D).1b&&(a(1D).1u("2e.1i"),v=e),y.2c(c)),k&&D.5i(0,1),h.1Z===e?(D[g](),q.2a(D)):a.1T(h.1Z)?(h.1Z.2a(D,y),D.34("42",7(a){q(),a()})):D.5j(3V,b?1:0,q),b&&h.15.2P("1i-"+t+"-25");S y},U:7(a){S y.1I(d,a)},W:7(a){S y.1I(e,a)},21:7(b){X(!y.1m)S y;T c=a(n),d=1A(D[0].19.2T,10),e=g.5o+c.1b,f=a.1r({},b),h,i;D.1S(p)||(i=a.3l("5l"),i.33=f,D.2P(i,[y,e]),i.3s()||(d!==e&&(c.1s(7(){V.19.2T>d&&(V.19.2T=V.19.2T-1)}),c.2I("."+p).1i("2c",f)),D.3o(p)[0].19.2T=e));S y},2c:7(b){T c=a.1r({},b),d;D.4u(p),d=a.3l("5m"),d.33=c,D.2P(d,[y]);S y},26:7(c,d){X(!y.1m||B)S y;B=1;T f=s.17.15,g=s.17,j=g.1U,l=g.2B,m=g.1O,n=m.4s.2M(" "),o=D.3I(),p=D.3i(),q=0,r=0,t=a.3l("4p"),u=D.14("17")==="2C",v=g.1P,w={R:0,9:0},x=y.1L.1e,A={3O:n[0],3P:n[1]||n[0],R:7(a){T b=A.3O==="2n",c=v.11.R+v.38,d=j.x==="R"?o:j.x==="1o"?-o:-o/2,e=l.x==="R"?q:l.x==="1o"?-q:-q/2,f=x&&x.30?x.30.Y||0:0,g=x&&x.1h&&x.1h.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1k";b?(g=x&&x.1h.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.28(v.11.R+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3T(1d.28(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1o"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3P==="2n",c=v.11.9+v.2Z,d=j.y==="9"?p:j.y==="1q"?-p:-p/2,e=l.y==="9"?r:l.y==="1q"?-r:-r/2,f=x&&x.30?x.30.13||0:0,g=x&&x.1h&&x.1h.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.13-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1k";b?(g=x&&x.1h.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.28(v.11.9+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3T(1d.28(v.11.9+v.13,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1q"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.4A(f)&&f.1b===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2p X(f==="1p"&&(c&&c.1H||G.1g.1H))l={x:"R",y:"9"},c=c&&(c.1y==="2y"||c.1y==="41")?G.1g:c&&c.1H&&c.1y==="2e"?c:i&&(m.1p||!c||!c.1H)?{1H:i.1H,2f:i.2f}:!m.1p&&G.3m?G.3m:c,w={9:c.2f,R:c.1H};2p{f==="1g"?c&&c.15&&c.1y!=="41"&&c.1y!=="2y"?f=G.15=a(c.15):f=G.15:G.15=a(f),f=a(f).7M(0);X(f.1b===0)S y;f[0]===1D||f[0]===b?(q=h.2v?b.7N:f.Y(),r=h.2v?b.7O:f.13(),f[0]===b&&(w={9:!u||h.2v?(v||f).2Z():0,R:!u||h.2v?(v||f).38():0})):f.1J("7P")&&h.4b?w=h.4b(f,l):f[0].7Q==="7S://7T.7U.7V/7W/3E"&&h.3E?w=h.3E(f,l):(q=f.3I(),r=f.3i(),w=h.11(f,g.1Y,u)),w.11&&(q=w.Y,r=w.13,w=w.11),w.R+=l.x==="1o"?q:l.x==="1k"?q/2:0,w.9+=l.y==="1q"?r:l.y==="1k"?r/2:0}w.R+=m.x+(j.x==="1o"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1q"?-p:j.y==="1k"?-p/2:0),v.2b&&f[0]!==b&&f[0]!==z&&A.3P+A.3O!=="7X"?(v={5z:v,13:v[(v[0]===b?"h":"7Y")+"7Z"](),Y:v[(v[0]===b?"w":"81")+"82"](),38:u?0:v.38(),2Z:u?0:v.2Z(),11:v.11()||{R:0,9:0}},w.3Q={R:A.3O!=="4r"?A.R(w.R):0,9:A.3P!=="4r"?A.9(w.9):0}):w.3Q={R:0,9:0},D.18("20",7(b,c){S a.18(V,"20").2h(/1B-1x-5y-\\w+/i,"")}).3o(k+"-5y-"+j.5x()),t.33=a.1r({},c),D.2P(t,[y,w,v.5z||v]);X(t.3s())S y;2m w.3Q,d===e||5B(w.R)||5B(w.9)||f==="1p"||!a.1T(g.1Z)?D.14(w):a.1T(g.1Z)&&(g.1Z.2a(D,y,a.1r({},w)),D.34(7(b){a(V).14({4t:"",13:""}),a.2i.39&&V.19.3C("2I"),b()})),B=0;S y},2O:7(){X(y.1m<1||C)S y;T a=s.17.1Y,b,c,d,e;C=1,s.19.Y?D.14("Y",s.19.Y):(D.14("Y","").3o(r),c=D.Y()+1,d=D.14("28-Y")||"",e=D.14("3T-Y")||"",b=(d+e).2A("%")>-1?a.Y()/5D:0,d=(d.2A("%")>-1?b:1)*1A(d,10)||c,e=(e.2A("%")>-1?b:1)*1A(e,10)||0,c=d+e?1d.3T(1d.28(c,e),d):c,D.14("Y",1d.3U(c)).4u(r)),C=0;S y},4a:7(b){T c=m;"3q"!==16 b&&(b=!D.1S(c)&&!G.2F),y.1m?(D.1R(c,b),a.18(D[0],"1W-2F",b)):G.2F=!!b;S y},88:7(){S y.4a(e)},2j:7(){T b=c[0],d=a.18(b,u);y.1m&&(D.1V(),a.1s(y.1L,7(){V.2j&&V.2j()})),1M(y.1v.U),1M(y.1v.W),Q(),a.8a(b,"1i"),d&&(a.18(b,"1c",d),c.3G(u)),c.3G("1W-4v").1u(".1i"),2m j[y.1w];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2l&&(b.2l={1y:b.2l});X("12"24 b){X("1l"!==16 b.12||b.12.2b)b.12={1n:b.12};c=b.12.1n||e,!a.1T(c)&&(!c&&!c.18||c.1b<1||"1l"===16 c&&!c.2b)&&(b.12.1n=e),"1c"24 b.12&&("1l"!==16 b.12.1c&&(b.12.1c={1n:b.12.1c}),c=b.12.1c.1n||e,!a.1T(c)&&(!c&&!c.18||c.1b<1||"1l"===16 c&&!c.2b)&&(b.12.1c.1n=e))}"17"24 b&&("1l"!==16 b.17&&(b.17={1U:b.17,2B:b.17})),"U"24 b&&("1l"!==16 b.U&&(b.U.2b?b.U={15:b.U}:b.U={1g:b.U})),"W"24 b&&("1l"!==16 b.W&&(b.W.2b?b.W={15:b.W}:b.W={1g:b.W})),"19"24 b&&("1l"!==16 b.19&&(b.19={3g:b.19})),a.1s(h,7(){V.3n&&V.3n(b)});S b}7 w(){X(3W)S(3W.8d||3W.8e||a.5G).2G(3W,2k)}"8f 8h";T d=!0,e=!1,f=8i,g,h,i,j={},k="1B-1x",l="1B-2D",m="1B-3j-2F",n="22.1i."+k,o=k+"-3c",p=k+"-21",q=k+"-4w",r=k+"-5M",s="-5O",t="7o",u="4Q",v=e;g=a.2q.1i=7(b,h,i){T j=(""+b).2s(),k=f,l=j==="4a"?[d]:a.5S(2k).5L(1),m=l[l.1b-1],n=V[0]?a.2t(V[0],"1i"):f;X(!2k.1b&&n||j==="5T")S n;X("1t"===16 b){V.1s(7(){T b=a.2t(V,"1i");X(!b)S d;m&&m.5V&&(b.2X.1g=m);X(j!=="4I"&&j!=="2g"||!h)b[j]&&b[j].2G(b[j],l);2p X(a.5Y(h)||i!==c)b.3e(h,i);2p{k=b.43(h);S e}});S k!==f?k:V}X("1l"===16 b||!2k.1b){n=x(a.1r(d,{},b));S g.1a.2a(V,n,m)}},g.1a=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1Q(16 b==="1l"||k.U.36),l.U.2r(l.W).1u(n)}X(o.2X.2F)S e;o.2X.1g=a.1r({},b),o.2X.15=b?a(b.15):[c],k.U.2w>0?(1M(o.1v.U),o.1v.U=3z(d,k.U.2w),m.U!==m.W&&l.W.1a(m.W,7(){1M(o.1v.U)})):d()}T k,l,m,n,o,p;p=a.4A(b.1w)?b.1w[i]:b.1w,p=!p||p===e||p.1b<1||j[p]?g.4m++:j[p]=p,n=".1i-"+p+"-2u",o=z.2a(V,p,b);X(o===e)S d;k=o.2g,a.1s(h,7(){V.2K==="2K"&&V(o)}),l={U:k.U.15,W:k.W.15},m={U:a.3Y(""+k.U.1g).2h(/ /g,n+" ")+n,W:a.3Y(""+k.W.1g).2h(/ /g,n+" ")+n},/1p(4x|3X)/i.1z(m.U)&&!/1p(3w|29)/i.1z(m.W)&&(m.W+=" 37"+n),l.U.1a(m.U,q),(k.U.36||k.5p)&&q(f)})},h=g.1L={2R:7(a){a=(""+a).2h(/([A-Z])/," $1").2h(/6q/4L,"1k").2s(),V.x=(a.47(/R|1o/i)||a.47(/1k/)||["3M"])[0].2s(),V.y=(a.47(/9|1q|1k/i)||["3M"])[0].2s(),V.1j=a.3p(0).5r(/^(t|b)/)>-1?"y":"x",V.1t=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.5x=7(){T a=V.x.2S(0,1),b=V.y.2S(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.38(),f.9+=b*a.2Z()}T f=c.11(),g=d,i=0,j=1D.3a,k;X(g){6D{g.14("17")!=="6E"&&(k=g[0]===j?{R:1A(g.14("R"),10)||0,9:1A(g.14("9"),10)||0}:g.17(),f.R-=k.R+(1A(g.14("6G"),10)||0),f.9-=k.9+(1A(g.14("6L"),10)||0),i++);X(g[0]===j)32}3k(g=g.6M());(d[0]!==j||i>1)&&l(d,1),(h.2v<4.1&&h.2v>3.1||!h.2v&&e)&&l(a(b),-1)}S f},2v:4S((""+(/52.*6R ([0-6T]{1,3})|(52 6X).*6Y.*6Z/i.56(72.73)||[0,""])[1]).2h("5s","74").2h("7a","."))||e,2q:{18:7(b,c){X(V.1b){T d=V[0],e="1c",f=a.2t(d,"1i");X(b===e){X(2k.1b<2)S a.18(d,u);X(16 f==="1l"){f&&f.1m&&f.2g.12.18===e&&f.2X.18&&f.3e("12.1n",c),a.2q["18"+t].2G(V,2k),a.18(d,u,a.18(d,e));S V.3G(e)}}}},55:7(b){T c=a([]),d="1c",e;e=a.2q["55"+t].2G(V,2k).2I("[4Q]").1s(7(){a.18(V,d,a.18(V,u)),V.3C(u)}).7w();S e},1V:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2I(b,[V]).1b)&&a("*",V).2r(V).1s(7(){a(V).5b("1V")})})}}},a.1s(h.2q,7(b,c){X(!c)S d;T e=a.2q[b+t]=a.2q[b];a.2q[b]=7(){S c.2G(V,2k)||e.2G(V,2k)}}),g.3N="2.0.7I",g.4m=0,g.5h="4o 7K 3K 5n 2e 37 3v".2M(" "),g.5o=7L,g.3t={5p:e,1w:e,4q:d,12:{1n:d,18:"1c",1c:{1n:e,1G:e}},17:{1U:"9 R",2B:"1q 1o",15:e,1Y:e,1P:e,1O:{x:0,y:0,1p:d,2y:d,4s:"3R 3R"},1Z:7(b,c,d){a(V).84(c,{86:87,34:e})}},U:{15:e,1g:"3v",1Z:d,2w:3V,35:e,36:e},W:{15:e,1g:"37",1Z:d,2w:0,2C:e,25:e,29:"3y",3B:e},19:{3g:"",2D:e,Y:e},4c:{1Q:f,4i:f,U:f,W:f,1I:f,21:f,2c:f}},h.1C=7(a){T b=a.1L.1C;S"1l"===16 b?b:a.1L.1C=1K A(a)},h.1C.2K="1Q",h.1C.3n=7(a){T b=a.12,c;b&&"1C"24 b&&(c=b.1C,16 c!=="1l"&&(c=a.12.1C={2z:c}),"3q"!==16 c.2E&&c.2E&&(c.2E=!!c.2E))},a.1r(d,g.3t,{12:{1C:{5I:d,2E:d}}}),h.1e=7(a){T b=a.1L.1e;S"1l"===16 b?b:a.1L.1e=1K C(a)},h.1e.2K="1Q",h.1e.3n=7(a){T b=a.19,c;b&&"1e"24 b&&(c=a.19.1e,16 c!=="1l"&&(a.19.1e={1h:c}),/1t|3q/i.1z(16 c.1h)||(c.1h=d),16 c.Y!=="2Q"&&2m c.Y,16 c.13!=="2Q"&&2m c.13,16 c.1f!=="2Q"&&c.1f!==d&&2m c.1f,16 c.11!=="2Q"&&2m c.11)},a.1r(d,g.3t,{19:{1e:{1h:d,3D:e,Y:6,13:6,1f:d,11:0}}}),h.4b=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.13;3k(i>0&&j>0&&e>0&&f>0){i=1d.3H(i/2),j=1d.3H(j/2),c.x==="R"?e=i:c.x==="1o"?e=a.Y-i:e+=1d.3H(i/2),c.y==="9"?f=j:c.y==="1q"?f=a.13-j:f+=1d.3H(j/2),d=b.1b;3k(d--){X(b.1b<2)32;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1o"&&g<=e||c.x==="1k"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1q"&&h<=f||c.y==="1k"&&(ha.13-f))&&b.70(d,1)}}S{R:b[0][0],9:b[0][1]}}b.2b||(b=a(b));T d=b.18("49").2s(),e=b.18("7e").2M(","),f=[],g=a(\'2W[7n="#\'+b.7s("5k").18("4f")+\'"]\'),h=g.11(),i={Y:0,13:0,11:{9:3S,1o:0,1q:0,R:3S}},j=0,k=0;h.R+=1d.3J((g.3I()-g.Y())/2),h.9+=1d.3J((g.3i()-g.13())/2);X(d==="5A"){j=e.1b;3k(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.11.1o&&(i.11.1o=k[0]),k[0]i.11.1q&&(i.11.1q=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}('(7(a,b,c){7 E(b){T c=V,d=b.31,e=d.1x,f=".23-"+b.1w;a.1r(c,{1X:7(){d.23=a(\'<5K 20="1B-1x-23" 8s="0" 89="-1" 8g="8b:\\\'\\\';" 1a="2J:2Y; 17:4C; z-8t:-1; 2I:8j(4t=0); -8k-2I:"83:8l.8m.8n(8o=0)";">\'),d.23.3f(e),e.1b("4p"+f,c.1O)},1O:7(){T a=b.43("5d"),c=b.1L.1e,f=d.1e,g,h;h=1A(e.15("1f-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1h.1j==="x"?["Y","R"]:["14","9"],h[g[1]]-=f[g[0]]()),d.23.15(h).15(a)},2j:7(){d.23.1V(),e.1u(f)}}),c.1X()}7 D(c){T f=V,g=c.2g.U.1F,h=c.31,i=h.1x,j="#1i-2H",k=".8q",l=k+c.1w,m="1J-1F-1i",o=a(1D.3a),q;c.2U.1F={"^U.1F.(2N|2c)$":7(){f.1X(),h.2H.1I(i.1J(":1N"))}},a.1r(f,{1X:7(){X(!g.2N)S f;q=f.2u(),i.19(m,d).1u(k).1u(l).1b("4g"+k+" 4h"+k,7(a,b,c){T d=a.33;d&&a.1y==="4h"&&/1p(29|3X)/.1z(d.1y)&&d.3b.4d(q[0]).18?a.51():f[a.1y.2h("1x","")](a,c)}).1b("5l"+k,7(a,b,c){q[0].1a.2T=c}).1b("5m"+k,7(b){a("["+m+"]:1N").2o(i).5c().1i("21",b)}),g.4D&&a(b).1u(l).1b("4Y"+l,7(a){a.8r===27&&i.1S(p)&&c.W(a)}),g.2c&&h.2H.1u(l).1b("4o"+l,7(a){i.1S(p)&&c.W(a)});S f},2u:7(){T c=a(j);X(c.18){h.2H=c;S c}q=h.2H=a("<22 />",{1w:j.2S(1),2L:"<22>",3K:7(){S e}}).4W(a(n).5c()),a(b).1u(k).1b("2y"+k,7(){q.15({14:a(b).14(),Y:a(b).Y()})}).5b("2y");S q},1I:7(b,c,h){X(b&&b.3s())S f;T j=g.1Z,k=c?"U":"W",p=q.1J(":1N"),r=a("["+m+"]:1N").2o(i),s;q||(q=f.2u());X(q.1J(":5f")&&p===c||!c&&r.18)S f;c?(q.15({R:0,9:0}),q.1R("7x",g.2c),o.7A("*","7B"+l,7(b){a(b.13).4d(n)[0]!==i[0]&&a("a, :5N, 2W",i).2r(i).21()})):o.4y("*","21"+l),q.5i(d,e),a.1T(j)?j.2a(q,c):j===e?q[k]():q.5j(1A(h,10)||3V,c?1:0,7(){c||a(V).W()}),c||q.34(7(a){q.15({R:"",9:""}),a()});S f},U:7(a,b){S f.1I(a,d,b)},W:7(a,b){S f.1I(a,e,b)},2j:7(){T d=q;d&&(d=a("["+m+"]").2o(i).18<1,d?(h.2H.1V(),a(b).1u(k)):h.2H.1u(k+c.1w),o.4y("*","21"+l));S i.3G(m).1u(k)}}),f.1X()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"14"],d=n[b?"14":"Y"],e=a.1t().2A("1k")>-1,f=c*(e?.5:1),g=1d.5P,h=1d.3U,i,j,k,l=1d.3Z(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.3Z(g(m[0],2)-g(p,2)),m[3]=1d.3Z(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)];S{14:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1E&&b.y==="9",d=c?k.1E:k.12,e=a.2i.5Q,f=e?"-5R-":a.2i.4R?"-4R-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4z-"+g:"1f-"+g+"-4z");S 1A(d.15(h),10)||1A(l.15(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1S(r),e=k.1E&&a.y==="9",f=e?k.1E:k.12,g="1f-"+b+"-Y",h;l.3o(r),h=1A(f.15(g),10),h=(c?h||1A(l.15(g),10):h)||0,l.1R(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1h),o=h.3Q,p=b.2g.17.1O.4s.2M(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1h.2C!==d&&(q==="2n"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3R"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1o":n.x==="R"?"1o":"R"),r==="2n"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3R"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1q":n.y==="9"?"1q":"9"),n.1t()!==m.1h&&(m.9!==o.9||m.R!==o.R)&&i.3x(n,e)),t=i.17(n,o),t.1o!==c&&(t.R=-t.1o),t.1q!==c&&(t.9=-t.1q),t.48=1d.28(0,j.11);X(s.R=q==="2n"&&!!o.R)n.x==="1k"?u["2V-R"]=s.x=t["2V-R"]-o.R:(v=t.1o!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.28(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1o!==c?"1o":"R"]=s.x);X(s.9=r==="2n"&&!!o.9)n.y==="1k"?u["2V-9"]=s.y=t["2V-9"]-o.9:(v=t.1q!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.28(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1q!==c?"1q":"9"]=s.y);k.1e.15(u).1I(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3p?t.48:q!=="2n"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3p?t.48:r!=="2n"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1h=n.1t()}}T i=V,j=b.2g.1a.1e,k=b.31,l=k.1x,m={9:0,R:0,1h:""},n={Y:j.Y,14:j.14},o={},p=j.1f||0,q=".1i-1e",s=!!(a("<4B />")[0]||{}).40;i.1h=f,i.3D=f,i.1f=p,i.11=j.11,i.30=n,b.2U.1e={"^17.1U|1a.1e.(1h|3D|1f)$":7(){i.1X()||i.2j(),b.26()},"^1a.1e.(14|Y)$":7(){n={Y:j.Y,14:j.14},i.2u(),i.3x(),b.26()},"^12.1c.1n|1a.(3g|2D)$":7(){k.1e&&i.3x()}},a.1r(i,{1X:7(){T b=i.4X()&&(s||a.2i.39);b&&(i.2u(),i.3x(),l.1u(q).1b("4p"+q,t));S b},4X:7(){T a=j.1h,c=b.2g.17,f=c.2B,g=c.1U.1t?c.1U.1t():c.1U;X(a===e||g===e&&f===e)S e;a===d?i.1h=1K h.2R(g):a.1t||(i.1h=1K h.2R(a),i.1h.2C=d);S i.1h.1t()!=="5E"},4H:7(){T c,d,e,f=k.1e.15({6s:"",1f:""}),g=i.1h,h=g[g.1j],m="1f-"+h+"-3d",p="1f"+h.3p(0)+h.2S(1)+"6y",q=/5U?\\(0, 0, 0(, 0)?\\)|3A/i,s="7b-3d",t="3A",u=a(1D.3a).15("3d"),v=b.31.12.15("3d"),w=k.1E&&(g.y==="9"||g.y==="1k"&&f.17().9+n.14/2+j.11",{"20":"1B-1x-1e"}).15({Y:b,14:c}).5W(l),s?a("<4B />").3f(k.1e)[0].40("2d").4G():(d=\'<44:49 5X="0,0" 1a="2J:5t-2Y; 17:4C; 5w:2z(#3c#5u);">\',k.1e.2L(d+d))},3x:7(b,c){T g=k.1e,l=g.5Z(),m=n.Y,q=n.14,r="45 60 ",t="45 61 3A",v=j.3D,x=1d.3U,y,z,A,C,D;b||(b=i.1h),v===e?v=b:(v=1K h.2R(v),v.1j=b.1j,v.x==="3M"?v.x=b.x:v.y==="3M"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4H(),o.1f!=="3A"&&o.1f!=="#62"?(p=u(b,f,d),j.1f===0&&p>0&&(o.2x=o.1f),i.1f=p=j.1f!==d?j.1f:p):i.1f=p=0,A=B(v,m,q),i.30=D=w(b),g.15(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1o"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.14-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1q"?D.14-q-p:(D.14-q)/2)],s?(l.19(D),z=l[0].40("2d"),z.64(),z.4G(),z.65(0,0,4E,4E),z.66(C[0],C[1]),z.67(),z.68(A[0][0],A[0][1]),z.5J(A[1][0],A[1][1]),z.5J(A[2][0],A[2][1]),z.69(),z.6a=o.2x,z.8p=o.1f,z.6b=p*2,z.6d="5v",z.6e=5D,p&&z.4J(),z.2x()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6f",C[2]=p&&/^(r|b)/i.1z(b.1t())?4S(a.2i.3N,10)===8?2:1:0,l.15({6g:""+(v.1t().2A("1k")>-1),R:C[0]-C[2]*5H(y==="x"),9:C[1]-C[2]*5H(y==="y"),Y:m+p,14:q+p}).1s(7(b){T c=a(V);c[c.5F?"5F":"19"]({6i:m+p+" "+(q+p),6j:A,6k:o.2x,6l:!!b,6m:!b}).15({2J:p||b?"2Y":"4r"}),!b&&c.2L()===""&&c.2L(\'<44:4J 6n="\'+p*2+\'45" 3d="\'+o.1f+\'" 85="6o" 6p="5v" 1a="5w:2z(#3c#5u); 2J:5t-2Y;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.28(0,j.11),h,l,m;X(j.1h===e||!c)S e;b=b||i.1h,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6r(),a.1s(m,7(a,c){T e,i;c==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["2V-"+e]=-1d.3U(l[h==="y"?"Y":"14"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"14"],c.15({9:"",1q:"",R:"",1o:"",2V:""}).15(f);S f},2j:7(){k.1e&&k.1e.1V(),l.1u(q)}}),i.1X()}7 B(a,b,c){T d=1d.3J(b/2),e=1d.3J(c/2),f={4M:[[0,0],[b,c],[b,0]],5C:[[0,0],[b,0],[0,c]],4N:[[0,c],[b,0],[b,c]],5e:[[0,0],[0,c],[b,c]],6t:[[0,c],[d,0],[b,c]],6u:[[0,0],[b,0],[d,c]],6v:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.4M,f.6z=f.5C,f.6A=f.4N,f.6B=f.5e;S f[a.1t()]}7 A(b){T c=V,f=b.31.1x,g=b.2g.12.1C,h=".1i-1C",i=/<4j\\b[^<]*(?:(?!<\\/4j>)<[^<]*)*<\\/4j>/4L,j=d;b.2U.1C={"^12.1C":7(a,b,d){b==="1C"&&(g=d),b==="2E"?c.1X():g&&g.2z?c.3L():f.1u(h)}},a.1r(c,{1X:7(){g&&g.2z&&f.1u(h)[g.2E?"6C":"1b"]("4g"+h,c.3L);S c},3L:7(d,h){7 p(a,c,d){b.3e("12.1n",c+": "+d),n()}7 o(c){l&&(c=a("<22/>").3h(c.2h(i,"")).53(l)),b.3e("12.1n",c),n()}7 n(){m&&(f.15("4k",""),h=e)}X(d&&d.3s())S c;T j=g.2z.2A(" "),k=g.2z,l,m=g.2E&&!g.5I&&h;m&&f.15("4k","4l"),j>-1&&(l=k.2S(j),k=k.2S(0,j)),a.1C(a.1r({7H:o,4T:p,7G:b},g,{2z:k}));S c}}),c.1X()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1D.3a),o=V===1D?n:m,p=m.2l?m.2l(c.2l):f,q=c.2l.1y==="6F"&&p?p[c.2l.4f]:f,r=m.2t(c.2l.4f||"6H");6I{r=16 r==="1t"?(1K 6J("S "+r))():r}6K(s){w("59 5a 7z 7y 6N 2t: "+r)}l=a.1r(d,{},g.3t,c,16 r==="1l"?x(r):f,x(q||p)),j=l.17,l.1w=b;X("3q"===16 l.12.1n){k=m.19(l.12.19);X(l.12.19!==e&&k)l.12.1n=k;2p{w("59 5a 6O 12 46 1x! 6P 1Q 6Q 1x 2N 7r: ",m);S e}}j.1Y===e&&(j.1Y=n),j.13===e&&(j.13=o),l.U.13===e&&(l.U.13=o),l.U.35===d&&(l.U.35=n),l.W.13===e&&(l.W.13=o),l.17.1P===d&&(l.17.1P=j.1Y),j.2B=1K h.2R(j.2B),j.1U=1K h.2R(j.1U);X(a.2t(V,"1i"))X(l.4q)m.1i("2j");2p X(l.4q===e)S e;a.19(V,"1c")&&(a.19(V,u,a.19(V,"1c")),V.3C("1c")),i=1K y(m,l,b,!!k),a.2t(V,"1i",i),m.1b("1V.1i",7(){i.2j()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.13[0],s.W.13[0],y.1m&&F.1x[0],s.17.1Y[0],s.17.1P[0],b,1D];y.1m?a([]).7q(a.6S(c,7(a){S 16 a==="1l"})).1u(E):s.U.13.1u(E+"-2u")}7 P(){7 r(a){D.1J(":1N")&&y.26(a)}7 p(a){X(D.1S(m))S e;1M(y.1v.25),y.1v.25=3z(7(){y.W(a)},s.W.25)}7 o(b){X(D.1S(m))S e;T c=a(b.3b||b.13),d=c.4d(n)[0]===D[0],g=c[0]===h.U[0];1M(y.1v.U),1M(y.1v.W);f.13==="1p"&&d||s.W.2C&&(/1p(3w|29|4i)/.1z(b.1y)&&(d||g))?b.51():s.W.2w>0?y.1v.W=3z(7(){y.W(b)},s.W.2w):y.W(b)}7 l(a){X(D.1S(m))S e;h.U.2P("1i-"+t+"-25"),1M(y.1v.U),1M(y.1v.W);T b=7(){y.1I(d,a)};s.U.2w>0?y.1v.U=3z(b,s.U.2w):b()}T f=s.17,h={U:s.U.13,W:s.W.13,1P:a(f.1P),1D:a(1D),3y:a(b)},j={U:a.3Y(""+s.U.1g).2M(" "),W:a.3Y(""+s.W.1g).2M(" ")},k=a.2i.39&&1A(a.2i.3N,10)===6;D.1b("3v"+E+" 37"+E,7(a){T b=a.1y==="3v";b&&y.21(a),D.1R(q,b)}),s.W.2C&&(h.W=h.W.2r(D),D.1b("6U"+E,7(){D.1S(m)||1M(y.1v.W)})),/1p(3w|29)/i.1z(s.W.1g)?s.W.29&&h.3y.1b("1p"+(s.W.29.2A("6V")>-1?"3w":"29")+E,7(a){/4V|4I/.1z(a.13)&&!a.3b&&y.W(a)}):/1p(4x|3X)/i.1z(s.U.1g)&&h.W.1b("37"+E,7(a){1M(y.1v.U)}),(""+s.W.1g).2A("4Z")>-1&&h.1D.1b("3K"+E,7(b){T d=a(b.13),e=!D.1S(m)&&D.1J(":1N");d.6W(n).18===0&&d.2r(c).18>1&&y.W(b)}),"2Q"===16 s.W.25&&(h.U.1b("1i-"+t+"-25",p),a.1s(g.5h,7(a,b){h.W.2r(F.1x).1b(b+E+"-25",p)})),a.1s(j.W,7(b,c){T d=a.7j(c,j.U),e=a(h.W);d>-1&&e.2r(h.U).18===e.18||c==="4Z"?(h.U.1b(c+E,7(a){D.1J(":1N")?o(a):l(a)}),2m j.U[d]):h.W.1b(c+E,o)}),a.1s(j.U,7(a,b){h.U.1b(b+E,l)}),"2Q"===16 s.W.3B&&h.U.1b("2e"+E,7(a){T b=G.3m||{},c=s.W.3B,d=1d.3u;(d(a.1H-b.1H)>=c||d(a.2f-b.2f)>=c)&&y.W(a)}),f.13==="1p"&&(h.U.1b("2e"+E,7(a){i={1H:a.1H,2f:a.2f,1y:"2e"}}),f.1O.1p&&(s.W.1g&&D.1b("37"+E,7(a){(a.3b||a.13)!==h.U[0]&&y.W(a)}),h.1D.1b("2e"+E,7(a){!D.1S(m)&&D.1J(":1N")&&y.26(a||i)}))),(f.1O.2y||h.1P.18)&&(a.1g.7h.2y?h.1P:h.3y).1b("2y"+E,r),(h.1P.18||k&&D.15("17")==="2C")&&h.1P.1b("41"+E,r)}7 O(b,d){7 g(b){7 g(f){1M(y.1v.2W[V]),a(V).1u(E),(c=c.2o(V)).18===0&&(y.2O(),d!==e&&y.26(G.1g),b())}T c;X((c=f.53("2W:2o([14]):2o([Y])")).18===0)S g.2a(c);c.1s(7(b,c){(7 d(){X(c.14&&c.Y)S g.2a(c);y.1v.2W[c]=3z(d,71)})(),a(c).1b("4T"+E+" 3L"+E,g)})}T f=F.12;X(!y.1m||!b)S e;a.1T(b)&&(b=b.2a(c,G.1g,y)||""),b.2b&&b.18>0?f.4U().3h(b.15({2J:"2Y"})):f.2L(b),y.1m<0?D.34("42",g):(C=0,g(a.5G));S y}7 N(b,d){T f=F.1c;X(!y.1m||!b)S e;a.1T(b)&&(b=b.2a(c,G.1g,y)||""),b.2b&&b.18>0?f.4U().3h(b.15({2J:"2Y"})):f.2L(b),y.2O(),d!==e&&y.1m&&D.1J(":1N")&&y.26(G.1g)}7 M(a){T b=F.1G,c=F.1c;X(!y.1m)S e;a?(c||L(),K()):b.1V()}7 L(){T b=A+"-1c";F.1E&&J(),F.1E=a("<22 />",{"20":k+"-1E "+(s.1a.2D?"1B-2D-54":"")}).3h(F.1c=a("<22 />",{1w:b,"20":k+"-1c","1W-4e":d})).4W(F.12),s.12.1c.1G?K():y.1m&&y.2O()}7 K(){T b=s.12.1c.1G,c=16 b==="1t",d=c?b:"75 1x";F.1G&&F.1G.1V(),b.2b?F.1G=b:F.1G=a("",{"20":"1B-3j-3c "+(s.1a.2D?"":k+"-3F"),1c:d,"1W-76":d}).77(a("<78 />",{"20":"1B-3F 1B-3F-79",2L:"&7c;"})),F.1G.3f(F.1E).19("58","1G").4w(7(b){a(V).1R("1B-3j-4w",b.1y==="3v")}).4o(7(a){D.1S(m)||y.W(a);S e}).1b("3K 4Y 5n 7d 7f",7(b){a(V).1R("1B-3j-7g 1B-3j-21",b.1y.2S(-4)==="7i")}),y.2O()}7 J(){F.1c&&(F.1E.1V(),F.1E=F.1c=F.1G=f,y.26())}7 I(){T a=s.1a.2D;D.1R(l,a).1R(o,!a),F.12.1R(l+"-12",a),F.1E&&F.1E.1R(l+"-54",a),F.1G&&F.1G.1R(k+"-3F",!a)}7 H(a){T b=0,c,d=s,e=a.2M(".");3k(d=d[e[b++]])b0&&!a("#"+i).18&&(D[0].1w=i,F.12[0].1w=i+"-12",F.1c[0].1w=i+"-1c")},"^12.1n$":7(a,b,c){O(c)},"^12.1c.1n$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1G$":7(a,b,c){M(c)},"^17.(1U|2B)$":7(a,b,c){"1t"===16 c&&(a[b]=1K h.2R(c))},"^17.1Y$":7(a,b,c){y.1m&&D.3f(c)},"^U.36$":7(){y.1m?y.1I(d):y.1Q(1)},"^1a.3g$":7(b,c,d){a.19(D[0],"20",k+" 1i 1B-57-4P "+d)},"^1a.2D|12.1c":I,"^4c.(1Q|U|4i|W|21|2c)$":7(b,c,d){D[(a.1T(d)?"":"7m")+"1b"]("1x"+c,d)},"^(U|W|17).(1g|13|2C|25|29|3B|1P|1O)":7(){T a=s.17;D.19("4n",a.13==="1p"&&a.1O.1p),Q(),P()}},a.1r(y,{1Q:7(b){X(y.1m)S y;T f=s.12.1c.1n,g=s.17,i=a.3l("7p");a.19(c[0],"1W-4v",A),D=F.1x=a("<22/>",{1w:A,"20":k+" 1i 1B-57-4P "+o+" "+s.1a.3g,Y:s.1a.Y||"",4n:g.13==="1p"&&g.1O.1p,58:"7t","1W-7u":"7v","1W-4e":e,"1W-4v":A+"-12","1W-4l":d}).1R(m,G.2F).2t("1i",y).3f(s.17.1Y).3h(F.12=a("<22 />",{"20":k+"-12",1w:A+"-12","1W-4e":d})),y.1m=-1,C=1,f&&(L(),N(f)),O(s.12.1n,e),y.1m=d,I(),a.1s(s.4c,7(b,c){a.1T(c)&&D.1b(b==="1I"?"4g 4h":"1x"+b,c)}),a.1s(h,7(){V.2K==="1Q"&&V(y)}),P(),D.34("42",7(a){i.33=G.1g,D.2P(i,[y]),C=0,y.2O(),(s.U.36||b)&&y.1I(d,G.1g),a()});S y},43:7(a){T b,c;5q(a.2s()){3r"5d":b={14:D.3i(),Y:D.3I()};32;3r"11":b=h.11(D,s.17.1Y);32;3c:c=H(a.2s()),b=c[0][c[1]],b=b.1j?b.1t():b}S b},3e:7(b,c){7 m(a,b){T c,d,e;46(c 24 k)46(d 24 k[c])X(e=(1K 7C(d,"i")).56(a))b.5g(e),k[c][d].2G(y,b)}T g=/^17\\.(1U|2B|1O|13|1Y)|1a|12|U\\.36/i,h=/^12\\.(1c|19)|1a/i,i=e,j=e,k=y.2U,l;"1t"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2s()),f;f=e[0][e[1]],e[0][e[1]]="1l"===16 d&&d.7D?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1z(c)||i,j=h.1z(c)||j}),x(s),B=C=1,a.1s(b,m),B=C=0,D.1J(":1N")&&y.1m&&(i&&y.26(s.17.13==="1p"?f:G.1g),j&&y.2O());S y},1I:7(b,c){7 q(){b?(a.2i.39&&D[0].1a.3C("2I"),D.15("7E","")):D.15({2J:"",4k:"",4t:"",R:"",9:""})}X(!y.1m)X(b)y.1Q(1);2p S y;T g=b?"U":"W",h=s[g],j=D.1J(":1N"),k=!c||s[g].13.18<2||G.13[0]===c.13,l=s.17,m=s.12,o,p;(16 b).5r("3q|2Q")&&(b=!j);X(!D.1J(":5f")&&j===b&&k)S y;X(c){X(/4x|3X/.1z(c.1y)&&/3w|29/.1z(G.1g.1y)&&c.13===s.U.13[0]&&D.7F(c.3b).18)S y;G.1g=a.1r({},c)}p=a.3l("1x"+g),p.33=c?G.1g:f,D.2P(p,[y,3V]);X(p.3s())S y;a.19(D[0],"1W-4l",!b),b?(G.3m=a.1r({},i),y.21(c),a.1T(m.1n)&&O(m.1n,e),a.1T(m.1c.1n)&&N(m.1c.1n,e),!v&&l.13==="1p"&&l.1O.1p&&(a(1D).1b("2e.1i",7(a){i={1H:a.1H,2f:a.2f,1y:"2e"}}),v=d),y.26(c),h.35&&a(n,h.35).2o(D).1i("W",p)):(1M(y.1v.U),2m G.3m,v&&!a(n+\'[4n="7J"]:1N\',h.35).2o(D).18&&(a(1D).1u("2e.1i"),v=e),y.2c(c)),k&&D.5i(0,1),h.1Z===e?(D[g](),q.2a(D)):a.1T(h.1Z)?(h.1Z.2a(D,y),D.34("42",7(a){q(),a()})):D.5j(3V,b?1:0,q),b&&h.13.2P("1i-"+t+"-25");S y},U:7(a){S y.1I(d,a)},W:7(a){S y.1I(e,a)},21:7(b){X(!y.1m)S y;T c=a(n),d=1A(D[0].1a.2T,10),e=g.5o+c.18,f=a.1r({},b),h,i;D.1S(p)||(i=a.3l("5l"),i.33=f,D.2P(i,[y,e]),i.3s()||(d!==e&&(c.1s(7(){V.1a.2T>d&&(V.1a.2T=V.1a.2T-1)}),c.2I("."+p).1i("2c",f)),D.3o(p)[0].1a.2T=e));S y},2c:7(b){T c=a.1r({},b),d;D.4u(p),d=a.3l("5m"),d.33=c,D.2P(d,[y]);S y},26:7(c,d){X(!y.1m||B)S y;B=1;T f=s.17.13,g=s.17,j=g.1U,l=g.2B,m=g.1O,n=m.4s.2M(" "),o=D.3I(),p=D.3i(),q=0,r=0,t=a.3l("4p"),u=D.15("17")==="2C",v=g.1P,w={R:0,9:0},x=y.1L.1e,A={3O:n[0],3P:n[1]||n[0],R:7(a){T b=A.3O==="2n",c=v.11.R+v.38,d=j.x==="R"?o:j.x==="1o"?-o:-o/2,e=l.x==="R"?q:l.x==="1o"?-q:-q/2,f=x&&x.30?x.30.Y||0:0,g=x&&x.1h&&x.1h.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1k";b?(g=x&&x.1h.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.28(v.11.R+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3T(1d.28(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1o"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3P==="2n",c=v.11.9+v.2Z,d=j.y==="9"?p:j.y==="1q"?-p:-p/2,e=l.y==="9"?r:l.y==="1q"?-r:-r/2,f=x&&x.30?x.30.14||0:0,g=x&&x.1h&&x.1h.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.14-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1k";b?(g=x&&x.1h.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.28(v.11.9+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3T(1d.28(v.11.9+v.14,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1q"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.4A(f)&&f.18===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2p X(f==="1p"&&(c&&c.1H||G.1g.1H))l={x:"R",y:"9"},c=c&&(c.1y==="2y"||c.1y==="41")?G.1g:c&&c.1H&&c.1y==="2e"?c:i&&(m.1p||!c||!c.1H)?{1H:i.1H,2f:i.2f}:!m.1p&&G.3m?G.3m:c,w={9:c.2f,R:c.1H};2p{f==="1g"?c&&c.13&&c.1y!=="41"&&c.1y!=="2y"?f=G.13=a(c.13):f=G.13:G.13=a(f),f=a(f).7M(0);X(f.18===0)S y;f[0]===1D||f[0]===b?(q=h.2v?b.7N:f.Y(),r=h.2v?b.7O:f.14(),f[0]===b&&(w={9:!u||h.2v?(v||f).2Z():0,R:!u||h.2v?(v||f).38():0})):f.1J("7P")&&h.4b?w=h.4b(f,l):f[0].7Q==="7S://7T.7U.7V/7W/3E"&&h.3E?w=h.3E(f,l):(q=f.3I(),r=f.3i(),w=h.11(f,g.1Y,u)),w.11&&(q=w.Y,r=w.14,w=w.11),w.R+=l.x==="1o"?q:l.x==="1k"?q/2:0,w.9+=l.y==="1q"?r:l.y==="1k"?r/2:0}w.R+=m.x+(j.x==="1o"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1q"?-p:j.y==="1k"?-p/2:0),v.2b&&f[0]!==b&&f[0]!==z&&A.3P+A.3O!=="7X"?(v={5z:v,14:v[(v[0]===b?"h":"7Y")+"7Z"](),Y:v[(v[0]===b?"w":"81")+"82"](),38:u?0:v.38(),2Z:u?0:v.2Z(),11:v.11()||{R:0,9:0}},w.3Q={R:A.3O!=="4r"?A.R(w.R):0,9:A.3P!=="4r"?A.9(w.9):0}):w.3Q={R:0,9:0},D.19("20",7(b,c){S a.19(V,"20").2h(/1B-1x-5y-\\w+/i,"")}).3o(k+"-5y-"+j.5x()),t.33=a.1r({},c),D.2P(t,[y,w,v.5z||v]);X(t.3s())S y;2m w.3Q,d===e||5B(w.R)||5B(w.9)||f==="1p"||!a.1T(g.1Z)?D.15(w):a.1T(g.1Z)&&(g.1Z.2a(D,y,a.1r({},w)),D.34(7(b){a(V).15({4t:"",14:""}),a.2i.39&&V.1a.3C("2I"),b()})),B=0;S y},2O:7(){X(y.1m<1||C)S y;T a=s.17.1Y,b,c,d,e;C=1,s.1a.Y?D.15("Y",s.1a.Y):(D.15("Y","").3o(r),c=D.Y()+1,d=D.15("28-Y")||"",e=D.15("3T-Y")||"",b=(d+e).2A("%")>-1?a.Y()/5D:0,d=(d.2A("%")>-1?b:1)*1A(d,10)||c,e=(e.2A("%")>-1?b:1)*1A(e,10)||0,c=d+e?1d.3T(1d.28(c,e),d):c,D.15("Y",1d.3U(c)).4u(r)),C=0;S y},4a:7(b){T c=m;"3q"!==16 b&&(b=!D.1S(c)&&!G.2F),y.1m?(D.1R(c,b),a.19(D[0],"1W-2F",b)):G.2F=!!b;S y},88:7(){S y.4a(e)},2j:7(){T b=c[0],d=a.19(b,u);y.1m&&(D.1V(),a.1s(y.1L,7(){V.2j&&V.2j()})),1M(y.1v.U),1M(y.1v.W),Q(),a.8a(b,"1i"),d&&(a.19(b,"1c",d),c.3G(u)),c.3G("1W-4v").1u(".1i"),2m j[y.1w];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2l&&(b.2l={1y:b.2l});X("12"24 b){X("1l"!==16 b.12||b.12.2b)b.12={1n:b.12};c=b.12.1n||e,!a.1T(c)&&(!c&&!c.19||c.18<1||"1l"===16 c&&!c.2b)&&(b.12.1n=e),"1c"24 b.12&&("1l"!==16 b.12.1c&&(b.12.1c={1n:b.12.1c}),c=b.12.1c.1n||e,!a.1T(c)&&(!c&&!c.19||c.18<1||"1l"===16 c&&!c.2b)&&(b.12.1c.1n=e))}"17"24 b&&("1l"!==16 b.17&&(b.17={1U:b.17,2B:b.17})),"U"24 b&&("1l"!==16 b.U&&(b.U.2b?b.U={13:b.U}:b.U={1g:b.U})),"W"24 b&&("1l"!==16 b.W&&(b.W.2b?b.W={13:b.W}:b.W={1g:b.W})),"1a"24 b&&("1l"!==16 b.1a&&(b.1a={3g:b.1a})),a.1s(h,7(){V.3n&&V.3n(b)});S b}7 w(){X(3W)S(3W.8d||3W.8e||a.5G).2G(3W,2k)}"8f 8h";T d=!0,e=!1,f=8i,g,h,i,j={},k="1B-1x",l="1B-2D",m="1B-3j-2F",n="22.1i."+k,o=k+"-3c",p=k+"-21",q=k+"-4w",r=k+"-5M",s="-5O",t="7o",u="4Q",v=e;g=a.2q.1i=7(b,h,i){T j=(""+b).2s(),k=f,l=j==="4a"?[d]:a.5S(2k).5L(1),m=l[l.18-1],n=V[0]?a.2t(V[0],"1i"):f;X(!2k.18&&n||j==="5T")S n;X("1t"===16 b){V.1s(7(){T b=a.2t(V,"1i");X(!b)S d;m&&m.5V&&(b.2X.1g=m);X(j!=="4I"&&j!=="2g"||!h)b[j]&&b[j].2G(b[j],l);2p X(a.5Y(h)||i!==c)b.3e(h,i);2p{k=b.43(h);S e}});S k!==f?k:V}X("1l"===16 b||!2k.18){n=x(a.1r(d,{},b));S g.1b.2a(V,n,m)}},g.1b=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1Q(16 b==="1l"||k.U.36),l.U.2r(l.W).1u(n)}X(o.2X.2F)S e;o.2X.1g=a.1r({},b),o.2X.13=b?a(b.13):[c],k.U.2w>0?(1M(o.1v.U),o.1v.U=3z(d,k.U.2w),m.U!==m.W&&l.W.1b(m.W,7(){1M(o.1v.U)})):d()}T k,l,m,n,o,p;p=a.4A(b.1w)?b.1w[i]:b.1w,p=!p||p===e||p.18<1||j[p]?g.4m++:j[p]=p,n=".1i-"+p+"-2u",o=z.2a(V,p,b);X(o===e)S d;k=o.2g,a.1s(h,7(){V.2K==="2K"&&V(o)}),l={U:k.U.13,W:k.W.13},m={U:a.3Y(""+k.U.1g).2h(/ /g,n+" ")+n,W:a.3Y(""+k.W.1g).2h(/ /g,n+" ")+n},/1p(4x|3X)/i.1z(m.U)&&!/1p(3w|29)/i.1z(m.W)&&(m.W+=" 37"+n),l.U.1b(m.U,q),(k.U.36||k.5p)&&q(f)})},h=g.1L={2R:7(a){a=(""+a).2h(/([A-Z])/," $1").2h(/6q/4L,"1k").2s(),V.x=(a.47(/R|1o/i)||a.47(/1k/)||["3M"])[0].2s(),V.y=(a.47(/9|1q|1k/i)||["3M"])[0].2s(),V.1j=a.3p(0).5r(/^(t|b)/)>-1?"y":"x",V.1t=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.5x=7(){T a=V.x.2S(0,1),b=V.y.2S(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.38(),f.9+=b*a.2Z()}T f=c.11(),g=d,i=0,j=1D.3a,k;X(g){6D{g.15("17")!=="6E"&&(k=g[0]===j?{R:1A(g.15("R"),10)||0,9:1A(g.15("9"),10)||0}:g.17(),f.R-=k.R+(1A(g.15("6G"),10)||0),f.9-=k.9+(1A(g.15("6L"),10)||0),i++);X(g[0]===j)32}3k(g=g.6M());(d[0]!==j||i>1)&&l(d,1),(h.2v<4.1&&h.2v>3.1||!h.2v&&e)&&l(a(b),-1)}S f},2v:4S((""+(/52.*6R ([0-6T]{1,3})|(52 6X).*6Y.*6Z/i.56(72.73)||[0,""])[1]).2h("5s","74").2h("7a","."))||e,2q:{19:7(b,c){X(V.18){T d=V[0],e="1c",f=a.2t(d,"1i");X(b===e){X(2k.18<2)S a.19(d,u);X(16 f==="1l"){f&&f.1m&&f.2g.12.19===e&&f.2X.19&&f.3e("12.1n",c),a.2q["19"+t].2G(V,2k),a.19(d,u,a.19(d,e));S V.3G(e)}}}},55:7(b){T c=a([]),d="1c",e;e=a.2q["55"+t].2G(V,2k).2I("[4Q]").1s(7(){a.19(V,d,a.19(V,u)),V.3C(u)}).7w();S e},1V:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2I(b,[V]).18)&&a("*",V).2r(V).1s(7(){a(V).5b("1V")})})}}},a.1s(h.2q,7(b,c){X(!c)S d;T e=a.2q[b+t]=a.2q[b];a.2q[b]=7(){S c.2G(V,2k)||e.2G(V,2k)}}),g.3N="2.0.7I",g.4m=0,g.5h="4o 7K 3K 5n 2e 37 3v".2M(" "),g.5o=7L,g.3t={5p:e,1w:e,4q:d,12:{1n:d,19:"1c",1c:{1n:e,1G:e}},17:{1U:"9 R",2B:"1q 1o",13:e,1Y:e,1P:e,1O:{x:0,y:0,1p:d,2y:d,4s:"3R 3R"},1Z:7(b,c,d){a(V).84(c,{86:87,34:e})}},U:{13:e,1g:"3v",1Z:d,2w:3V,35:e,36:e},W:{13:e,1g:"37",1Z:d,2w:0,2C:e,25:e,29:"3y",3B:e},1a:{3g:"",2D:e,Y:e},4c:{1Q:f,4i:f,U:f,W:f,1I:f,21:f,2c:f}},h.1C=7(a){T b=a.1L.1C;S"1l"===16 b?b:a.1L.1C=1K A(a)},h.1C.2K="1Q",h.1C.3n=7(a){T b=a.12,c;b&&"1C"24 b&&(c=b.1C,16 c!=="1l"&&(c=a.12.1C={2z:c}),"3q"!==16 c.2E&&c.2E&&(c.2E=!!c.2E))},a.1r(d,g.3t,{12:{1C:{5I:d,2E:d}}}),h.1e=7(a){T b=a.1L.1e;S"1l"===16 b?b:a.1L.1e=1K C(a)},h.1e.2K="1Q",h.1e.3n=7(a){T b=a.1a,c;b&&"1e"24 b&&(c=a.1a.1e,16 c!=="1l"&&(a.1a.1e={1h:c}),/1t|3q/i.1z(16 c.1h)||(c.1h=d),16 c.Y!=="2Q"&&2m c.Y,16 c.14!=="2Q"&&2m c.14,16 c.1f!=="2Q"&&c.1f!==d&&2m c.1f,16 c.11!=="2Q"&&2m c.11)},a.1r(d,g.3t,{1a:{1e:{1h:d,3D:e,Y:6,14:6,1f:d,11:0}}}),h.4b=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.14;3k(i>0&&j>0&&e>0&&f>0){i=1d.3H(i/2),j=1d.3H(j/2),c.x==="R"?e=i:c.x==="1o"?e=a.Y-i:e+=1d.3H(i/2),c.y==="9"?f=j:c.y==="1q"?f=a.14-j:f+=1d.3H(j/2),d=b.18;3k(d--){X(b.18<2)32;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1o"&&g<=e||c.x==="1k"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1q"&&h<=f||c.y==="1k"&&(ha.14-f))&&b.70(d,1)}}S{R:b[0][0],9:b[0][1]}}b.2b||(b=a(b));T d=b.19("49").2s(),e=b.19("7e").2M(","),f=[],g=a(\'2W[7n="#\'+b.7s("5k").19("4f")+\'"]\'),h=g.11(),i={Y:0,14:0,11:{9:3S,1o:0,1q:0,R:3S}},j=0,k=0;h.R+=1d.3J((g.3I()-g.Y())/2),h.9+=1d.3J((g.3i()-g.14())/2);X(d==="5A"){j=e.18;3k(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.11.1o&&(i.11.1o=k[0]),k[0]i.11.1q&&(i.11.1q=k[1]),k[1]