From bf1c0534724bcbf054dba73a5f3a0131a8de0296 Mon Sep 17 00:00:00 2001 From: Craig Michael Thompson Date: Sun, 15 May 2011 15:19:33 +0100 Subject: [PATCH] Cleaned up some redundant code --- dist/jquery.qtip.basic.js | 4 ++-- dist/jquery.qtip.css | 2 +- dist/jquery.qtip.js | 4 ++-- dist/jquery.qtip.min.js | 4 ++-- dist/jquery.qtip.pack.js | 4 ++-- src/core.js | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index e69eb664..910dcc8d 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: Sat May 14 15:49:38 2011 +0100 +* Date: Sun May 15 15:15:52 2011 +0100 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -671,7 +671,7 @@ function QTip(target, options, id, attr) }, // Properties which require event reassignment - '^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$': function(obj, o, v, p, match) { + '^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$': function() { unassignEvents(); assignEvents(); } }; diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 7ffd5a37..a1b4c20b 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: Sat May 14 15:49:38 2011 +0100 +* Date: Sun May 15 15:15:52 2011 +0100 */ /* Fluid class for determining actual width in IE */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 01362a27..35156286 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: Sat May 14 15:49:38 2011 +0100 +* Date: Sun May 15 15:15:52 2011 +0100 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -671,7 +671,7 @@ function QTip(target, options, id, attr) }, // Properties which require event reassignment - '^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$': function(obj, o, v, p, match) { + '^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$': function() { unassignEvents(); assignEvents(); } }; diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 6d93339c..ec032f67 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: Sat May 14 15:49:38 2011 +0100 -*/"use strict",function(a,b,c){function z(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 y(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;o=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){o[0].style.zIndex=c-1}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(n)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(n)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}o=h.overlay=a("
",{id:j.substr(1),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return e}}).appendTo(document.body),a(b).unbind(k).bind("resize"+k,function(){o.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return o},toggle:function(b,c,j){if(b&&b.isDefaultPrevented())return f;var k=g.effect,l=c?"show":"hide",n=a("["+m+"]:visible").not(i),p;o||(o=f.create());if(o.is(":animated")&&!c||!c&&n.length)return f;c&&h.overlay.css("cursor",g.blur?"pointer":""),o.stop(d,e),a.isFunction(k)?k.call(o,c):k===e?o[l]():o.fadeTo(parseInt(j,10)||90,c?.7:0,function(){c||a(this).hide()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=o;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id));return i.removeAttr(m).unbind(k)}}),f.init()}function x(b,g){function v(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function u(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function t(a,b,c){b=b?b:a[a.precedance];var d=k.titlebar&&a.y==="top",e=d?k.titlebar:k.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(l.css(f),10):g)||0}function s(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",r=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.position={},b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(r||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,s));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,r="background-color",s="transparent",t="ui-tooltip-fluid",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),r?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(p?d+=d:d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,s="px solid ",u="px dashed transparent",x=j.mimic,y=Math.round,z,A,B,C,D;b||(b=i.corner),x===e?x=b:(x=new h.Corner(x),x.precedance=b.precedance,x.x==="inherit"?x.x=b.x:x.y==="inherit"?x.y=b.y:x.x===x.y&&(x[b.precedance]=b[b.precedance])),z=x.precedance,i.detectColours(),p=o.border==="transparent"||o.border==="#123456"?0:j.border===d?t(b,f,d):j.border,B=w(x,m,q),D=v(b),g.css(D),b.precedance==="y"?C=[y(x.x==="left"?p:x.x==="right"?D.width-m-p:(D.width-m)/2),y(x.y==="top"?D.height-q:0)]:C=[y(x.x==="left"?D.width-m:0),y(x.y==="top"?p:x.y==="bottom"?D.height-q-p:(D.height-q)/2)],r?(l.attr(D),A=l[0].getContext("2d"),A.restore(),A.save(),A.clearRect(0,0,3e3,3e3),A.translate(C[0],C[1]),A.beginPath(),A.moveTo(B[0][0],B[0][1]),A.lineTo(B[1][0],B[1][1]),A.lineTo(B[2][0],B[2][1]),A.closePath(),A.fillStyle=o.fill,A.strokeStyle=o.border,A.lineWidth=p*2,A.lineJoin="miter",A.miterLimit=100,p&&A.stroke(),A.fill()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(x.string().indexOf("center")>-1),left:C[0]-C[2]*Number(z==="x"),top:C[1]-C[2]*Number(z==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:B,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&p>0&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=v(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function w(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 v(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 u(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,u=m.data(c.metadata.name||"qtipopts");try{u=typeof u==="string"?(new Function("return "+u))():u}catch(v){a.error("Unable to parse HTML5 attribute data: "+u)}l=a.extend(d,{},g.defaults,c,typeof u==="object"?s(u):f,s(q||p)),p&&a.removeData(this,"metadata"),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else return e}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,r,a.attr(this,"title")),this.removeAttribute("title")),i=new t(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function t(c,p,q,t){function M(){var c=[p.show.target[0],p.hide.target[0],u.rendered&&B.tooltip[0],p.position.container[0],p.position.viewport[0],b,document];u.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(A):p.show.target.unbind(A+"-create")}function L(){function s(a){z.is(":visible")&&u.reposition(a)}function r(a){if(z.hasClass(l))return e;clearTimeout(u.timers.inactive),u.timers.inactive=setTimeout(function(){u.hide(a)},p.hide.inactive)}function n(b){if(z.hasClass(l))return e;var c=a(b.relatedTarget||b.target),g=c.closest(m)[0]===z[0],h=c[0]===f.show[0];clearTimeout(u.timers.show),clearTimeout(u.timers.hide);d.target==="mouse"&&g||p.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(g||h))?b.preventDefault():p.hide.delay>0?u.timers.hide=setTimeout(function(){u.hide(b)},p.hide.delay):u.hide(b)}function k(a){if(z.hasClass(l))return e;f.show.trigger("qtip-"+q+"-inactive"),clearTimeout(u.timers.show),clearTimeout(u.timers.hide);var b=function(){u.show(a)};p.show.delay>0?u.timers.show=setTimeout(b,p.show.delay):b()}var d=p.position,f={show:p.show.target,hide:p.hide.target,viewport:a(d.viewport),document:a(document),window:a(b)},h={show:a.trim(""+p.show.event).split(" "),hide:a.trim(""+p.hide.event).split(" ")},j=a.browser.msie&&parseInt(a.browser.version,10)===6;z.bind("mouseenter"+A+" mouseleave"+A,function(a){var b=a.type==="mouseenter";b&&u.focus(a),z.toggleClass(o,b)}),p.hide.fixed&&(f.hide=f.hide.add(z),z.bind("mouseover"+A,function(){z.hasClass(l)||clearTimeout(u.timers.hide)})),/mouse(out|leave)/i.test(p.hide.event)?p.hide.leave&&f.window.bind("mouse"+(p.hide.leave.indexOf("frame")>-1?"out":"leave")+A,function(a){a.relatedTarget||u.hide(a)}):/mouse(over|enter)/i.test(p.show.event)&&f.hide.bind("mouseleave"+A,function(a){clearTimeout(u.timers.show)}),p.hide.event.indexOf("unfocus")>0&&f.document.bind("mousedown"+A,function(b){var d=a(b.target),e=!z.hasClass(l)&&z.is(":visible");d.parents(m).length===0&&d.add(c).length>1&&u.hide(b)}),"number"===typeof p.hide.inactive&&(f.show.bind("qtip-"+q+"-inactive",r),a.each(g.inactiveEvents,function(a,b){f.hide.add(B.tooltip).bind(b+A+"-inactive",r)})),a.each(h.hide,function(b,c){var d=a.inArray(c,h.show),e=a(f.hide);d>-1&&e.add(f.show).length===e.length||c==="unfocus"?(f.show.bind(c+A,function(a){z.is(":visible")?n(a):k(a)}),delete h.show[d]):f.hide.bind(c+A,n)}),a.each(h.show,function(a,b){f.show.bind(b+A,k)}),"number"===typeof p.hide.distance&&f.show.bind("mousemove"+A,function(a){var b=C.origin||{},c=p.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&u.hide(a)}),d.target==="mouse"&&(f.show.add(z).bind("mousemove"+A,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),d.adjust.mouse&&(p.hide.event&&z.bind("mouseleave"+A,function(a){(a.relatedTarget||a.target)!==f.show[0]&&u.hide(a)}),f.document.bind("mousemove"+A,function(a){!z.hasClass(l)&&z.is(":visible")&&u.reposition(a||i)}))),(d.adjust.resize||f.viewport.length)&&(a.event.special.resize?f.viewport:f.window).bind("resize"+A,s),(f.viewport.length||j&&z.css("position")==="fixed")&&f.viewport.bind("scroll"+A,s)}function K(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(u.redraw(),d!==e&&u.reposition(C.event),a())}var b;if((b=f.find("img:not([height]):not([width])")).length===0)return c.call(b);b.each(function(a,b){(function d(){var e=u.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=B.content;b=b||p.content.text;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),u.rendered<0?z.queue("fx",g):(y=0,g(a.noop));return u}function J(b){var d=B.title;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),u.redraw(),u.rendered&&z.is(":visible")&&u.reposition(C.event)}function I(a){var b=B.button,c=B.title;if(!u.rendered)return e;a?(c||H(),G()):b.remove()}function H(){var b=w+"-title";B.titlebar&&F(),B.titlebar=a("
",{"class":j+"-titlebar "+(p.style.widget?"ui-widget-header":"")}).append(B.title=a("
",{id:b,"class":j+"-title","aria-atomic":d})).insertBefore(B.content),p.content.title.button?G():u.rendered&&u.redraw()}function G(){var b=p.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";B.button&&B.button.remove(),b.jquery?B.button=b:B.button=a("",{"class":"ui-state-default "+(p.style.widget?"":j+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),B.button.appendTo(B.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){z.hasClass(l)||u.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),u.redraw()}function F(){B.title&&(B.titlebar.remove(),B.titlebar=B.title=B.button=f,u.reposition())}function E(){var a=p.style.widget;z.toggleClass(k,a),B.content.toggleClass(k+"-content",a),B.titlebar&&B.titlebar.toggleClass(k+"-header",a),B.button&&B.button.toggleClass(j+"-icon",!a)}function D(a){var b=0,c,d=p,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(z[0].id=i,B.content[0].id=i+"-content",B.title[0].id=i+"-title")},"^content.text$":function(a,b,c){K(c)},"^content.title.text$":function(a,b,c){if(!c)return F();!B.title&&c&&H(),J(c)},"^content.title.button$":function(a,b,c){I(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){u.rendered&&z.appendTo(c)},"^show.ready$":function(){u.rendered?u.show():u.render(1)},"^style.classes$":function(b,c,d){a.attr(z[0],"class",j+" qtip ui-helper-reset "+d)},"^style.widget|content.title":E,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){z[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$":function(a,b,c,d,e){M(),L()}},a.extend(u,{render:function(b){if(u.rendered)return u;var f=p.content.title.text,g=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",w),z=B.tooltip=a("
",{id:w,"class":j+" qtip ui-helper-reset "+p.style.classes,width:p.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":w+"-content","aria-hidden":d}).toggleClass(l,C.disabled).data("qtip",u).appendTo(p.position.container).append(B.content=a("
",{"class":j+"-content",id:w+"-content","aria-atomic":d})),u.rendered=-1,y=1,f&&(H(),J(f)),K(e,e),u.rendered=d,E(),a.each(p.events,function(b,c){a.isFunction(c)&&z.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(u)}),L(),z.queue("fx",function(a){g.originalEvent=C.event,z.trigger(g,[u]),y=0,u.redraw(),(p.show.ready||b)&&u.show(C.event),a()});return u},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:z.outerHeight(),width:z.outerWidth()};break;case"offset":b=h.offset(z,p.position.container);break;default:c=D(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(u,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=u.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=D(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}),s(p),x=y=1,a.each(b,m),x=y=0,z.is(":visible")&&u.rendered&&(i&&u.reposition(p.position.target==="mouse"?f:C.event),j&&u.redraw());return u},toggle:function(b,c){function l(){b?(a.browser.msie&&z[0].style.removeAttribute("filter"),z.css("overflow","")):z.css({display:"",visibility:"",width:p.style.width||"",opacity:"",left:"",top:""})}if(!u.rendered)if(b)u.render(1);else return u;var d=b?"show":"hide",g=p[d],h=z.is(":visible"),j,k;(typeof b).search("boolean|number")&&(b=!h);if(h===b)return u;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(C.event.type)&&c.target===p.show.target[0]&&z.has(c.relatedTarget).length)return u;C.event=a.extend({},c)}k=a.Event("tooltip"+d),k.originalEvent=c?C.event:f,z.trigger(k,[u,90]);if(k.isDefaultPrevented())return u;a.attr(z[0],"aria-hidden",!b),b?(C.origin=a.extend({},i),u.focus(c),a.isFunction(p.content.text)&&K(),u.reposition(c),g.solo&&a(m,g.solo).not(z).qtip("hide",k)):(clearTimeout(u.timers.show),delete C.origin,u.blur(c)),z.stop(0,1),a.isFunction(g.effect)?(g.effect.call(z,u),z.queue("fx",function(a){l(),a()})):g.effect===e?(z[d](),l.call(z)):z.fadeTo(90,b?1:0,l),b&&g.target.trigger("qtip-"+q+"-inactive");return u},show:function(a){return u.toggle(d,a)},hide:function(a){return u.toggle(e,a)},focus:function(b){if(!u.rendered)return u;var c=a(m),d=parseInt(z[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;z.hasClass(n)||(i=a.Event("tooltipfocus"),i.originalEvent=f,z.trigger(i,[u,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+n).qtip("blur",f)),z.addClass(n)[0].style.zIndex=e));return u},blur:function(b){var c=a.extend({},b),d;z.removeClass(n),d=a.Event("tooltipblur"),d.originalEvent=c,z.trigger(d,[u]);return u},reposition:function(c,d){if(!u.rendered||x)return u;x=1;var f=p.position.target,g=p.position,k=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=z.outerWidth(),q=z.outerHeight(),r=0,s=0,t=a.Event("tooltipmove"),w=z.css("position")==="fixed",y=g.viewport,A={left:0,top:0},B=(u.plugins.tip||{}).corner,D={horizontal:n[0],vertical:n[1]||n[0],tip:p.style.tip||{},left:function(a){var b=D.horizontal==="shift",c=y.offset.left+y.scrollLeft,d=k.x==="left"?o:k.x==="right"?-o:-o/2,e=l.x==="left"?r:l.x==="right"?-r:-r/2,f=D.tip.width+D.tip.border*2||0,g=B&&B.precedance==="x"&&!b?f:0,h=c-a-g,i=a+o-y.width-c+g,j=d-(k.precedance==="x"||k.x===k.y?e:0),n=k.x==="center";b?(g=B&&B.precedance==="y"?f:0,j=(k.x==="left"?1:-1)*d-g,A.left+=h>0?h:i>0?-i:0,A.left=Math.max(y.offset.left+(g&&B.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.left+y.width,a+j),A.left))):(h>0&&(k.x!=="left"||i>0)?A.left-=j+(n?0:2*m.x):i>0&&(k.x!=="right"||h>0)&&(A.left-=n?-j:j+2*m.x),A.left!==a&&n&&(A.left-=m.x),A.lefti&&(A.left=a));return A.left-a},top:function(a){var b=D.vertical==="shift",c=y.offset.top+y.scrollTop,d=k.y==="top"?q:k.y==="bottom"?-q:-q/2,e=l.y==="top"?s:l.y==="bottom"?-s:-s/2,f=D.tip.height+D.tip.border*2||0,g=B&&B.precedance==="y"&&!b?f:0,h=c-a-g,i=a+q-y.height-c+g,j=d-(k.precedance==="y"||k.x===k.y?e:0),n=k.y==="center";b?(g=B&&B.precedance==="x"?f:0,j=(k.y==="top"?1:-1)*d-g,A.top+=h>0?h:i>0?-i:0,A.top=Math.max(y.offset.top+(g&&B.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.top+y.height,a+j),A.top))):(h>0&&(k.y!=="top"||i>0)?A.top-=j+(n?0:2*m.y):i>0&&(k.y!=="bottom"||h>0)&&(A.top-=n?-j:j+2*m.y),A.top!==a&&n&&(A.top-=m.y),A.top<0&&-A.top>i&&(A.top=a));return A.top-a}};if(f==="mouse")l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?C.event:!m.mouse&&C.origin?C.origin:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:c,A={top:c.pageY,left:c.pageX};else{f==="event"&&(c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=C.target=a(c.target):f=C.target),f=a(f).eq(0);if(f.length===0)return u;f[0]===document||f[0]===b?(r=h.iOS?b.innerWidth:f.width(),s=h.iOS?b.innerHeight:f.height(),f[0]===b&&(A={top:!w||h.iOS?(y||f).scrollTop():0,left:!w||h.iOS?(y||f).scrollLeft():0})):f.is("area")&&h.imagemap?A=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?A=h.svg(f,l):(r=f.outerWidth(),s=f.outerHeight(),A=h.offset(f,g.container,w)),A.offset&&(r=A.width,s=A.height,A=A.offset),A.left+=l.x==="right"?r:l.x==="center"?r/2:0,A.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}A.left+=m.x+(k.x==="right"?-o:k.x==="center"?-o/2:0),A.top+=m.y+(k.y==="bottom"?-q:k.y==="center"?-q/2:0),y.jquery&&f[0]!==b&&f[0]!==v&&D.vertical+D.horizontal!=="nonenone"?(y={elem:y,height:y[(y[0]===b?"h":"outerH")+"eight"](),width:y[(y[0]===b?"w":"outerW")+"idth"](),scrollLeft:w?0:y.scrollLeft(),scrollTop:w?0:y.scrollTop(),offset:y.offset()||{left:0,top:0}},A.adjusted={left:D.horizontal!=="none"?D.left(A.left):0,top:D.vertical!=="none"?D.top(A.top):0}):A.adjusted={left:0,top:0},z.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+k.abbreviation()),t.originalEvent=a.extend({},c),z.trigger(t,[u,A,y.elem||y]);if(t.isDefaultPrevented())return u;delete A.adjusted,d===e||isNaN(A.left)||isNaN(A.top)||!a.isFunction(g.effect)?z.css(A):a.isFunction(g.effect)&&(g.effect.call(z,u,a.extend({},A)),z.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),x=0;return u},redraw:function(){if(u.rendered<1||y)return u;var b=j+"-fluid",c=p.position.container,d,e,f,g;y=1,p.style.width?z.css("width",p.style.width):(z.css("width","").addClass(b),e=z.width()+(a.browser.mozilla?1:0),f=z.css("max-width")||"",g=z.css("min-width")||"",d=(f+g).indexOf("%")>-1?c.width()/100:0,f=(f.indexOf("%")>-1?d:1)*parseInt(f,10)||e,g=(g.indexOf("%")>-1?d:1)*parseInt(g,10)||0,e=f+g?Math.min(Math.max(e,g),f):e,z.css("width",Math.round(e)).removeClass(b)),y=0;return u},disable:function(b){var c=l;"boolean"!==typeof b&&(b=!z.hasClass(c)&&!C.disabled),u.rendered?(z.toggleClass(c,b),a.attr(z[0],"aria-disabled",b)):C.disabled=!!b;return u},enable:function(){return u.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,r);u.rendered&&(z.remove(),a.each(u.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(u.timers.show),clearTimeout(u.timers.hide),M(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(r)),c.removeAttr("aria-describedby").unbind(".qtip");return c}})}function s(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}var d=!0,e=!1,f=null,g,h,i,j="ui-tooltip",k="ui-widget",l="ui-state-disabled",m="div.qtip."+j,n=j+"-focus",o=j+"-hover",p="-31000px",q="_replacedByqTip",r="oldtitle";g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1,10),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=s(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,c){return this.each(function(f){function p(b){function c(){o.render(typeof b==="object"||i.show.ready),k.show.unbind(l.show),k.hide.unbind(l.hide)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),i.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(c,i.show.delay),l.show!==l.hide&&k.hide.bind(l.hide,function(){clearTimeout(o.timers.show)})):c()}var i,k,l,m=!b.id||b.id===e||b.id.length<1||a("#"+j+"-"+b.id).length?g.nextid++:b.id,n=".qtip-"+m+"-create",o=u.call(this,m,b);if(o===e)return d;i=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),k={show:i.show.target,hide:i.hide.target},l={show:a.trim(""+i.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+i.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(l.show)&&!/mouse(out|leave)/i.test(l.hide)&&(l.hide+=" mouseleave"+n),k.show.bind(l.show,p),(i.show.ready||i.prerender)&&p(c)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{if(g[0]===j)break;g.css("position")!=="static"&&(k=g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++)}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,r);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+q].apply(this,arguments),a.attr(d,r,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+q].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,r)),this.removeAttribute(r)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+q]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:d},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new v(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 x(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 y(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;o=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){f[a.type.replace("tooltip","")](a,c)}).bind("tooltipfocus"+k,function(a,b,c){o[0].style.zIndex=c-1}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(n)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(n)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}o=h.overlay=a("
",{id:j.substr(1),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return e}}).appendTo(document.body),a(b).unbind(k).bind("resize"+k,function(){o.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return o},toggle:function(b,c,j){if(b&&b.isDefaultPrevented())return f;var k=g.effect,l=c?"show":"hide",n=a("["+m+"]:visible").not(i),p;o||(o=f.create());if(o.is(":animated")&&!c||!c&&n.length)return f;c&&h.overlay.css("cursor",g.blur?"pointer":""),o.stop(d,e),a.isFunction(k)?k.call(o,c):k===e?o[l]():o.fadeTo(parseInt(j,10)||90,c?.7:0,function(){c||a(this).hide()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=o;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id));return i.removeAttr(m).unbind(k)}}),f.init()}function x(b,g){function v(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function u(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function t(a,b,c){b=b?b:a[a.precedance];var d=k.titlebar&&a.y==="top",e=d?k.titlebar:k.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(l.css(f),10):g)||0}function s(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",r=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.position={},b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(r||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,s));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,r="background-color",s="transparent",t="ui-tooltip-fluid",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),r?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(p?d+=d:d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,s="px solid ",u="px dashed transparent",x=j.mimic,y=Math.round,z,A,B,C,D;b||(b=i.corner),x===e?x=b:(x=new h.Corner(x),x.precedance=b.precedance,x.x==="inherit"?x.x=b.x:x.y==="inherit"?x.y=b.y:x.x===x.y&&(x[b.precedance]=b[b.precedance])),z=x.precedance,i.detectColours(),p=o.border==="transparent"||o.border==="#123456"?0:j.border===d?t(b,f,d):j.border,B=w(x,m,q),D=v(b),g.css(D),b.precedance==="y"?C=[y(x.x==="left"?p:x.x==="right"?D.width-m-p:(D.width-m)/2),y(x.y==="top"?D.height-q:0)]:C=[y(x.x==="left"?D.width-m:0),y(x.y==="top"?p:x.y==="bottom"?D.height-q-p:(D.height-q)/2)],r?(l.attr(D),A=l[0].getContext("2d"),A.restore(),A.save(),A.clearRect(0,0,3e3,3e3),A.translate(C[0],C[1]),A.beginPath(),A.moveTo(B[0][0],B[0][1]),A.lineTo(B[1][0],B[1][1]),A.lineTo(B[2][0],B[2][1]),A.closePath(),A.fillStyle=o.fill,A.strokeStyle=o.border,A.lineWidth=p*2,A.lineJoin="miter",A.miterLimit=100,p&&A.stroke(),A.fill()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(x.string().indexOf("center")>-1),left:C[0]-C[2]*Number(z==="x"),top:C[1]-C[2]*Number(z==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:B,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&p>0&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=v(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function w(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 v(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 u(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,u=m.data(c.metadata.name||"qtipopts");try{u=typeof u==="string"?(new Function("return "+u))():u}catch(v){a.error("Unable to parse HTML5 attribute data: "+u)}l=a.extend(d,{},g.defaults,c,typeof u==="object"?s(u):f,s(q||p)),p&&a.removeData(this,"metadata"),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else return e}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,r,a.attr(this,"title")),this.removeAttribute("title")),i=new t(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function t(c,p,q,t){function M(){var c=[p.show.target[0],p.hide.target[0],u.rendered&&B.tooltip[0],p.position.container[0],p.position.viewport[0],b,document];u.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(A):p.show.target.unbind(A+"-create")}function L(){function s(a){z.is(":visible")&&u.reposition(a)}function r(a){if(z.hasClass(l))return e;clearTimeout(u.timers.inactive),u.timers.inactive=setTimeout(function(){u.hide(a)},p.hide.inactive)}function n(b){if(z.hasClass(l))return e;var c=a(b.relatedTarget||b.target),g=c.closest(m)[0]===z[0],h=c[0]===f.show[0];clearTimeout(u.timers.show),clearTimeout(u.timers.hide);d.target==="mouse"&&g||p.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(g||h))?b.preventDefault():p.hide.delay>0?u.timers.hide=setTimeout(function(){u.hide(b)},p.hide.delay):u.hide(b)}function k(a){if(z.hasClass(l))return e;f.show.trigger("qtip-"+q+"-inactive"),clearTimeout(u.timers.show),clearTimeout(u.timers.hide);var b=function(){u.show(a)};p.show.delay>0?u.timers.show=setTimeout(b,p.show.delay):b()}var d=p.position,f={show:p.show.target,hide:p.hide.target,viewport:a(d.viewport),document:a(document),window:a(b)},h={show:a.trim(""+p.show.event).split(" "),hide:a.trim(""+p.hide.event).split(" ")},j=a.browser.msie&&parseInt(a.browser.version,10)===6;z.bind("mouseenter"+A+" mouseleave"+A,function(a){var b=a.type==="mouseenter";b&&u.focus(a),z.toggleClass(o,b)}),p.hide.fixed&&(f.hide=f.hide.add(z),z.bind("mouseover"+A,function(){z.hasClass(l)||clearTimeout(u.timers.hide)})),/mouse(out|leave)/i.test(p.hide.event)?p.hide.leave&&f.window.bind("mouse"+(p.hide.leave.indexOf("frame")>-1?"out":"leave")+A,function(a){a.relatedTarget||u.hide(a)}):/mouse(over|enter)/i.test(p.show.event)&&f.hide.bind("mouseleave"+A,function(a){clearTimeout(u.timers.show)}),p.hide.event.indexOf("unfocus")>0&&f.document.bind("mousedown"+A,function(b){var d=a(b.target),e=!z.hasClass(l)&&z.is(":visible");d.parents(m).length===0&&d.add(c).length>1&&u.hide(b)}),"number"===typeof p.hide.inactive&&(f.show.bind("qtip-"+q+"-inactive",r),a.each(g.inactiveEvents,function(a,b){f.hide.add(B.tooltip).bind(b+A+"-inactive",r)})),a.each(h.hide,function(b,c){var d=a.inArray(c,h.show),e=a(f.hide);d>-1&&e.add(f.show).length===e.length||c==="unfocus"?(f.show.bind(c+A,function(a){z.is(":visible")?n(a):k(a)}),delete h.show[d]):f.hide.bind(c+A,n)}),a.each(h.show,function(a,b){f.show.bind(b+A,k)}),"number"===typeof p.hide.distance&&f.show.bind("mousemove"+A,function(a){var b=C.origin||{},c=p.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&u.hide(a)}),d.target==="mouse"&&(f.show.add(z).bind("mousemove"+A,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),d.adjust.mouse&&(p.hide.event&&z.bind("mouseleave"+A,function(a){(a.relatedTarget||a.target)!==f.show[0]&&u.hide(a)}),f.document.bind("mousemove"+A,function(a){!z.hasClass(l)&&z.is(":visible")&&u.reposition(a||i)}))),(d.adjust.resize||f.viewport.length)&&(a.event.special.resize?f.viewport:f.window).bind("resize"+A,s),(f.viewport.length||j&&z.css("position")==="fixed")&&f.viewport.bind("scroll"+A,s)}function K(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(u.redraw(),d!==e&&u.reposition(C.event),a())}var b;if((b=f.find("img:not([height]):not([width])")).length===0)return c.call(b);b.each(function(a,b){(function d(){var e=u.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=B.content;b=b||p.content.text;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),u.rendered<0?z.queue("fx",g):(y=0,g(a.noop));return u}function J(b){var d=B.title;if(!u.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,u)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),u.redraw(),u.rendered&&z.is(":visible")&&u.reposition(C.event)}function I(a){var b=B.button,c=B.title;if(!u.rendered)return e;a?(c||H(),G()):b.remove()}function H(){var b=w+"-title";B.titlebar&&F(),B.titlebar=a("
",{"class":j+"-titlebar "+(p.style.widget?"ui-widget-header":"")}).append(B.title=a("
",{id:b,"class":j+"-title","aria-atomic":d})).insertBefore(B.content),p.content.title.button?G():u.rendered&&u.redraw()}function G(){var b=p.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";B.button&&B.button.remove(),b.jquery?B.button=b:B.button=a("",{"class":"ui-state-default "+(p.style.widget?"":j+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),B.button.appendTo(B.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){z.hasClass(l)||u.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),u.redraw()}function F(){B.title&&(B.titlebar.remove(),B.titlebar=B.title=B.button=f,u.reposition())}function E(){var a=p.style.widget;z.toggleClass(k,a),B.content.toggleClass(k+"-content",a),B.titlebar&&B.titlebar.toggleClass(k+"-header",a),B.button&&B.button.toggleClass(j+"-icon",!a)}function D(a){var b=0,c,d=p,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(z[0].id=i,B.content[0].id=i+"-content",B.title[0].id=i+"-title")},"^content.text$":function(a,b,c){K(c)},"^content.title.text$":function(a,b,c){if(!c)return F();!B.title&&c&&H(),J(c)},"^content.title.button$":function(a,b,c){I(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){u.rendered&&z.appendTo(c)},"^show.ready$":function(){u.rendered?u.show():u.render(1)},"^style.classes$":function(b,c,d){a.attr(z[0],"class",j+" qtip ui-helper-reset "+d)},"^style.widget|content.title":E,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){z[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$":function(){M(),L()}},a.extend(u,{render:function(b){if(u.rendered)return u;var f=p.content.title.text,g=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",w),z=B.tooltip=a("
",{id:w,"class":j+" qtip ui-helper-reset "+p.style.classes,width:p.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":w+"-content","aria-hidden":d}).toggleClass(l,C.disabled).data("qtip",u).appendTo(p.position.container).append(B.content=a("
",{"class":j+"-content",id:w+"-content","aria-atomic":d})),u.rendered=-1,y=1,f&&(H(),J(f)),K(e,e),u.rendered=d,E(),a.each(p.events,function(b,c){a.isFunction(c)&&z.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(u)}),L(),z.queue("fx",function(a){g.originalEvent=C.event,z.trigger(g,[u]),y=0,u.redraw(),(p.show.ready||b)&&u.show(C.event),a()});return u},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:z.outerHeight(),width:z.outerWidth()};break;case"offset":b=h.offset(z,p.position.container);break;default:c=D(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(u,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=u.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=D(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}),s(p),x=y=1,a.each(b,m),x=y=0,z.is(":visible")&&u.rendered&&(i&&u.reposition(p.position.target==="mouse"?f:C.event),j&&u.redraw());return u},toggle:function(b,c){function l(){b?(a.browser.msie&&z[0].style.removeAttribute("filter"),z.css("overflow","")):z.css({display:"",visibility:"",width:p.style.width||"",opacity:"",left:"",top:""})}if(!u.rendered)if(b)u.render(1);else return u;var d=b?"show":"hide",g=p[d],h=z.is(":visible"),j,k;(typeof b).search("boolean|number")&&(b=!h);if(h===b)return u;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(C.event.type)&&c.target===p.show.target[0]&&z.has(c.relatedTarget).length)return u;C.event=a.extend({},c)}k=a.Event("tooltip"+d),k.originalEvent=c?C.event:f,z.trigger(k,[u,90]);if(k.isDefaultPrevented())return u;a.attr(z[0],"aria-hidden",!b),b?(C.origin=a.extend({},i),u.focus(c),a.isFunction(p.content.text)&&K(),u.reposition(c),g.solo&&a(m,g.solo).not(z).qtip("hide",k)):(clearTimeout(u.timers.show),delete C.origin,u.blur(c)),z.stop(0,1),a.isFunction(g.effect)?(g.effect.call(z,u),z.queue("fx",function(a){l(),a()})):g.effect===e?(z[d](),l.call(z)):z.fadeTo(90,b?1:0,l),b&&g.target.trigger("qtip-"+q+"-inactive");return u},show:function(a){return u.toggle(d,a)},hide:function(a){return u.toggle(e,a)},focus:function(b){if(!u.rendered)return u;var c=a(m),d=parseInt(z[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;z.hasClass(n)||(i=a.Event("tooltipfocus"),i.originalEvent=f,z.trigger(i,[u,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+n).qtip("blur",f)),z.addClass(n)[0].style.zIndex=e));return u},blur:function(b){var c=a.extend({},b),d;z.removeClass(n),d=a.Event("tooltipblur"),d.originalEvent=c,z.trigger(d,[u]);return u},reposition:function(c,d){if(!u.rendered||x)return u;x=1;var f=p.position.target,g=p.position,k=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=z.outerWidth(),q=z.outerHeight(),r=0,s=0,t=a.Event("tooltipmove"),w=z.css("position")==="fixed",y=g.viewport,A={left:0,top:0},B=(u.plugins.tip||{}).corner,D={horizontal:n[0],vertical:n[1]||n[0],tip:p.style.tip||{},left:function(a){var b=D.horizontal==="shift",c=y.offset.left+y.scrollLeft,d=k.x==="left"?o:k.x==="right"?-o:-o/2,e=l.x==="left"?r:l.x==="right"?-r:-r/2,f=D.tip.width+D.tip.border*2||0,g=B&&B.precedance==="x"&&!b?f:0,h=c-a-g,i=a+o-y.width-c+g,j=d-(k.precedance==="x"||k.x===k.y?e:0),n=k.x==="center";b?(g=B&&B.precedance==="y"?f:0,j=(k.x==="left"?1:-1)*d-g,A.left+=h>0?h:i>0?-i:0,A.left=Math.max(y.offset.left+(g&&B.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.left+y.width,a+j),A.left))):(h>0&&(k.x!=="left"||i>0)?A.left-=j+(n?0:2*m.x):i>0&&(k.x!=="right"||h>0)&&(A.left-=n?-j:j+2*m.x),A.left!==a&&n&&(A.left-=m.x),A.lefti&&(A.left=a));return A.left-a},top:function(a){var b=D.vertical==="shift",c=y.offset.top+y.scrollTop,d=k.y==="top"?q:k.y==="bottom"?-q:-q/2,e=l.y==="top"?s:l.y==="bottom"?-s:-s/2,f=D.tip.height+D.tip.border*2||0,g=B&&B.precedance==="y"&&!b?f:0,h=c-a-g,i=a+q-y.height-c+g,j=d-(k.precedance==="y"||k.x===k.y?e:0),n=k.y==="center";b?(g=B&&B.precedance==="x"?f:0,j=(k.y==="top"?1:-1)*d-g,A.top+=h>0?h:i>0?-i:0,A.top=Math.max(y.offset.top+(g&&B.x==="center"?D.tip.offset:0),a-j,Math.min(Math.max(y.offset.top+y.height,a+j),A.top))):(h>0&&(k.y!=="top"||i>0)?A.top-=j+(n?0:2*m.y):i>0&&(k.y!=="bottom"||h>0)&&(A.top-=n?-j:j+2*m.y),A.top!==a&&n&&(A.top-=m.y),A.top<0&&-A.top>i&&(A.top=a));return A.top-a}};if(f==="mouse")l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?C.event:!m.mouse&&C.origin?C.origin:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:c,A={top:c.pageY,left:c.pageX};else{f==="event"&&(c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=C.target=a(c.target):f=C.target),f=a(f).eq(0);if(f.length===0)return u;f[0]===document||f[0]===b?(r=h.iOS?b.innerWidth:f.width(),s=h.iOS?b.innerHeight:f.height(),f[0]===b&&(A={top:!w||h.iOS?(y||f).scrollTop():0,left:!w||h.iOS?(y||f).scrollLeft():0})):f.is("area")&&h.imagemap?A=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?A=h.svg(f,l):(r=f.outerWidth(),s=f.outerHeight(),A=h.offset(f,g.container,w)),A.offset&&(r=A.width,s=A.height,A=A.offset),A.left+=l.x==="right"?r:l.x==="center"?r/2:0,A.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}A.left+=m.x+(k.x==="right"?-o:k.x==="center"?-o/2:0),A.top+=m.y+(k.y==="bottom"?-q:k.y==="center"?-q/2:0),y.jquery&&f[0]!==b&&f[0]!==v&&D.vertical+D.horizontal!=="nonenone"?(y={elem:y,height:y[(y[0]===b?"h":"outerH")+"eight"](),width:y[(y[0]===b?"w":"outerW")+"idth"](),scrollLeft:w?0:y.scrollLeft(),scrollTop:w?0:y.scrollTop(),offset:y.offset()||{left:0,top:0}},A.adjusted={left:D.horizontal!=="none"?D.left(A.left):0,top:D.vertical!=="none"?D.top(A.top):0}):A.adjusted={left:0,top:0},z.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+k.abbreviation()),t.originalEvent=a.extend({},c),z.trigger(t,[u,A,y.elem||y]);if(t.isDefaultPrevented())return u;delete A.adjusted,d===e||isNaN(A.left)||isNaN(A.top)||!a.isFunction(g.effect)?z.css(A):a.isFunction(g.effect)&&(g.effect.call(z,u,a.extend({},A)),z.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),x=0;return u},redraw:function(){if(u.rendered<1||y)return u;var b=j+"-fluid",c=p.position.container,d,e,f,g;y=1,p.style.width?z.css("width",p.style.width):(z.css("width","").addClass(b),e=z.width()+(a.browser.mozilla?1:0),f=z.css("max-width")||"",g=z.css("min-width")||"",d=(f+g).indexOf("%")>-1?c.width()/100:0,f=(f.indexOf("%")>-1?d:1)*parseInt(f,10)||e,g=(g.indexOf("%")>-1?d:1)*parseInt(g,10)||0,e=f+g?Math.min(Math.max(e,g),f):e,z.css("width",Math.round(e)).removeClass(b)),y=0;return u},disable:function(b){var c=l;"boolean"!==typeof b&&(b=!z.hasClass(c)&&!C.disabled),u.rendered?(z.toggleClass(c,b),a.attr(z[0],"aria-disabled",b)):C.disabled=!!b;return u},enable:function(){return u.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,r);u.rendered&&(z.remove(),a.each(u.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(u.timers.show),clearTimeout(u.timers.hide),M(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(r)),c.removeAttr("aria-describedby").unbind(".qtip");return c}})}function s(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}var d=!0,e=!1,f=null,g,h,i,j="ui-tooltip",k="ui-widget",l="ui-state-disabled",m="div.qtip."+j,n=j+"-focus",o=j+"-hover",p="-31000px",q="_replacedByqTip",r="oldtitle";g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1,10),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=s(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,c){return this.each(function(f){function p(b){function c(){o.render(typeof b==="object"||i.show.ready),k.show.unbind(l.show),k.hide.unbind(l.hide)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),i.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(c,i.show.delay),l.show!==l.hide&&k.hide.bind(l.hide,function(){clearTimeout(o.timers.show)})):c()}var i,k,l,m=!b.id||b.id===e||b.id.length<1||a("#"+j+"-"+b.id).length?g.nextid++:b.id,n=".qtip-"+m+"-create",o=u.call(this,m,b);if(o===e)return d;i=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),k={show:i.show.target,hide:i.hide.target},l={show:a.trim(""+i.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+i.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(l.show)&&!/mouse(out|leave)/i.test(l.hide)&&(l.hide+=" mouseleave"+n),k.show.bind(l.show,p),(i.show.ready||i.prerender)&&p(c)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{if(g[0]===j)break;g.css("position")!=="static"&&(k=g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++)}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,r);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+q].apply(this,arguments),a.attr(d,r,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+q].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,r)),this.removeAttribute(r)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+q]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:d},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new v(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 x(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}('"5x 5y",9(a,b,c){9 z(b){R c=T,d=b.2R,e=d.1u,f=".1W-"+b.1p;a.1m(c,{1J:9(){d.1W=a(\'<55 1S="1t-1u-1W" 5z="0" 86="-1" 87="5B:\\\'\\\';" 14="2l:2S; 15:3X; z-5C:-1; 2E:5D(4p=0); -5E-2E:"5F:5G.7F.5H(5I=0)";">\'),d.1W.2P(e),e.19("4k"+f,c.2b)},2b:9(){R a=b.45("56"),c=b.1E.13,f=d.13,g,h;h=1A(e.11("1c-O-V"),10)||0,h={O:-h,N:-h},c&&f&&(g=c.1i.1f==="x"?["V","O"]:["Y","N"],h[g[1]]-=f[g[0]]()),d.1W.11(h).11(a)},2a:9(){d.1W.1T(),e.1r(f)}}),c.1J()}9 y(c){R f=T,g=c.26.Q.1w,h=c.2R,i=h.1u,j="#1e-2o",k=".7D",l=k+c.1p,m="1K-1w-1e",o;c.2W.1w={"^Q.1w.(2Z|25)$":9(){f.1J(),h.2o.21(i.1K(":1V"))}},a.1m(f,{1J:9(){U(!g.2Z)P f;o=f.2e(),i.17(m,d).1r(k).1r(l).19("4d"+k+" 54"+k,9(a,b,c){f[a.1C.28("1u","")](a,c)}).19("5d"+k,9(a,b,c){o[0].14.2N=c-1}).19("5f"+k,9(b){a("["+m+"]:1V").2G(i).7E().1e("2i",b)}),g.4X&&a(b).1r(l).19("4Q"+l,9(a){a.5L===27&&i.1M(n)&&c.S(a)}),g.25&&h.2o.1r(l).19("3W"+l,9(a){i.1M(n)&&c.S(a)});P f},2e:9(){R c=a(j);U(c.1b){h.2o=c;P c}o=h.2o=a("<2y />",{1p:j.2H(1),11:{15:"3X",N:0,O:0,2l:"3K"},3v:9(){P e}}).2P(1y.35),a(b).1r(k).19("2u"+k,9(){o.11({Y:18.1H(a(b).Y(),a(1y).Y()),V:18.1H(a(b).V(),a(1y).V())})}).2w("2u");P o},21:9(b,c,j){U(b&&b.3n())P f;R k=g.1N,l=c?"Q":"S",n=a("["+m+"]:1V").2G(i),p;o||(o=f.2e());U(o.1K(":7L")&&!c||!c&&n.1b)P f;c&&h.2o.11("7u",g.25?"5N":""),o.5c(d,e),a.1R(k)?k.1X(o,c):k===e?o[l]():o.4s(1A(j,10)||3P,c?.7:0,9(){c||a(T).S()});P f},Q:9(a,b){P f.21(a,d,b)},S:9(a,b){P f.21(a,e,b)},2a:9(){R d=o;d&&(d=a("["+m+"]").2G(i).1b<1,d?(h.2o.1T(),a(b).1r(k)):h.2o.1r(k+c.1p));P i.3C(m).1r(k)}}),f.1J()}9 x(b,g){9 v(a){R b=a.1f==="y",c=n[b?"V":"Y"],d=n[b?"Y":"V"],e=a.1o().2r("1g")>-1,f=c*(e?.5:1),g=18.5Q,h=18.3S,i,j,k,l=18.4j(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=18.4j(g(m[0],2)-g(p,2)),m[3]=18.4j(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)];P{Y:k[b?0:1],V:k[b?1:0]}}9 u(b){R c=k.1z&&b.y==="N",d=c?k.1z:k.X,e=a.22.5s,f=e?"-5S-":a.22.4I?"-4I-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1c-4F-"+g:"1c-"+g+"-4F");P 1A(d.11(h),10)||1A(l.11(h),10)||0}9 t(a,b,c){b=b?b:a[a.1f];R d=k.1z&&a.y==="N",e=d?k.1z:k.X,f="1c-"+b+"-V",g=1A(e.11(f),10);P(c?g||1A(l.11(f),10):g)||0}9 s(f,g,h,l){U(k.13){R n=a.1m({},i.1i),o=h.3L,p=b.26.15.2b.4o.2L(" "),q=p[0],r=p[1]||p[0],s={O:e,N:e,x:0,y:0},t,u={},v;i.1i.2p!==d&&(q==="2k"&&n.1f==="x"&&o.O&&n.y!=="1g"?n.1f=n.1f==="x"?"y":"x":q==="3N"&&o.O&&(n.x=n.x==="1g"?o.O>0?"O":"1j":n.x==="O"?"1j":"O"),r==="2k"&&n.1f==="y"&&o.N&&n.x!=="1g"?n.1f=n.1f==="y"?"x":"y":r==="3N"&&o.N&&(n.y=n.y==="1g"?o.N>0?"N":"1k":n.y==="N"?"1k":"N"),n.1o()!==m.1i&&(m.N!==o.N||m.O!==o.O)&&i.39(n,e)),t=i.15(n,o),t.1j!==c&&(t.O=-t.1j),t.1k!==c&&(t.N=-t.1k),t.43=18.1H(0,j.W);U(s.O=q==="2k"&&!!o.O)n.x==="1g"?u["2V-O"]=s.x=t["2V-O"]-o.O:(v=t.1j!==c?[o.O,-t.O]:[-o.O,t.O],(s.x=18.1H(v[0],v[1]))>v[0]&&(h.O-=o.O,s.O=e),u[t.1j!==c?"1j":"O"]=s.x);U(s.N=r==="2k"&&!!o.N)n.y==="1g"?u["2V-N"]=s.y=t["2V-N"]-o.N:(v=t.1k!==c?[o.N,-t.N]:[-o.N,t.N],(s.y=18.1H(v[0],v[1]))>v[0]&&(h.N-=o.N,s.N=e),u[t.1k!==c?"1k":"N"]=s.y);k.13.11(u).21(!(s.x&&s.y||n.x==="1g"&&s.y||n.y==="1g"&&s.x)),h.O-=t.O.3h?t.43:q!=="2k"||s.N||!s.O&&!s.N?t.O:0,h.N-=t.N.3h?t.43:r!=="2k"||s.O||!s.O&&!s.N?t.N:0,m.O=o.O,m.N=o.N,m.1i=n.1o()}}R i=T,j=b.26.14.13,k=b.2R,l=k.1u,m={N:0,O:0,1i:""},n={V:j.V,Y:j.Y},o={},p=j.1c||0,q=".1e-13",r=!!(a("<4x />")[0]||{}).3Y;i.1i=f,i.3B=f,i.15={},b.2W.13={"^15.1O|14.13.(1i|3B|1c)$":9(){i.1J()||i.2a(),b.23()},"^14.13.(Y|V)$":9(){n={V:j.V,Y:j.Y},i.2e(),i.39(),b.23()},"^X.1a.1q|14.(3k|2s)$":9(){k.13&&i.39()}},a.1m(i,{1J:9(){R b=i.58()&&(r||a.22.3b);b&&(i.2e(),i.39(),l.1r(q).19("4k"+q,s));P b},58:9(){R a=j.1i,c=b.26.15,f=c.2t,g=c.1O.1o?c.1O.1o():c.1O;U(a===e||g===e&&f===e)P e;a===d?i.1i=1F h.2z(g):a.1o||(i.1i=1F h.2z(a),i.1i.2p=d);P i.1i.1o()!=="5u"},4t:9(){R c,d,e,f=k.13.11({5U:"",1c:""}),g=i.1i,h=g[g.1f],m="1c-"+h+"-38",p="1c"+h.3h(0)+h.2H(1)+"6o",q=/5V?\\(0, 0, 0(, 0)?\\)|3u/i,r="6h-38",s="3u",t="1t-1u-5q",u=a(1y.35).11("38"),v=b.2R.X.11("38"),w=k.1z&&(g.y==="N"||g.y==="1g"&&f.15().N+n.Y/2+j.W",{"1S":"1t-1u-13"}).11({V:b,Y:c}).5X(l),r?a("<4x />").2P(k.13)[0].3Y("2d").4v():(d=\'<4n:46 5Y="0,0" 14="2l:4D-2S; 15:3X; 52:2j(#3F#4C);">\',k.13.2U(p?d+=d:d))},39:9(b,c){R g=k.13,l=g.5Z(),m=n.V,q=n.Y,s="4f 60 ",u="4f 61 3u",x=j.3B,y=18.3S,z,A,B,C,D;b||(b=i.1i),x===e?x=b:(x=1F h.2z(x),x.1f=b.1f,x.x==="3G"?x.x=b.x:x.y==="3G"?x.y=b.y:x.x===x.y&&(x[b.1f]=b[b.1f])),z=x.1f,i.4t(),p=o.1c==="3u"||o.1c==="#62"?0:j.1c===d?t(b,f,d):j.1c,B=w(x,m,q),D=v(b),g.11(D),b.1f==="y"?C=[y(x.x==="O"?p:x.x==="1j"?D.V-m-p:(D.V-m)/2),y(x.y==="N"?D.Y-q:0)]:C=[y(x.x==="O"?D.V-m:0),y(x.y==="N"?p:x.y==="1k"?D.Y-q-p:(D.Y-q)/2)],r?(l.17(D),A=l[0].3Y("2d"),A.64(),A.4v(),A.65(0,0,4J,4J),A.66(C[0],C[1]),A.67(),A.69(B[0][0],B[0][1]),A.4w(B[1][0],B[1][1]),A.4w(B[2][0],B[2][1]),A.6a(),A.6b=o.2A,A.83=o.1c,A.6c=p*2,A.6d="4B",A.6e=5t,p&&A.5w(),A.2A()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6f",C[2]=p&&/^(r|b)/i.1v(b.1o())?4M(a.22.3H,10)===8?2:1:0,l.11({6g:""+(x.1o().2r("1g")>-1),O:C[0]-C[2]*5k(z==="x"),N:C[1]-C[2]*5k(z==="y"),V:m+p,Y:q+p}).1n(9(b){R c=a(T);c[c.5l?"5l":"17"]({6i:m+p+" "+(q+p),6j:B,6k:o.2A,6l:!!b,6m:!b}).11({2l:p||b?"2S":"3K"}),!b&&p>0&&c.2U()===""&&c.2U(\'<4n:5w 6p="\'+p*2+\'4f" 38="\'+o.1c+\'" 6q="6r" 6s="4B" 14="52:2j(#3F#4C); 2l:4D-2S;" />\')})),c!==e&&i.15(b)},15:9(b){R c=k.13,f={},g=18.1H(0,j.W),h,l,m;U(j.1i===e||!c)P e;b=b||i.1i,h=b.1f,l=v(b),m=[b.x,b.y],h==="x"&&m.6t(),a.1n(m,9(a,c){R e,i;c==="1g"?(e=h==="y"?"O":"N",f[e]="50%",f["2V-"+e]=-18.3S(l[h==="y"?"V":"Y"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"V":"Y"],c.11({N:"",1k:"",O:"",1j:"",2V:""}).11(f);P f},2a:9(){k.13&&k.13.1T(),l.1r(q)}}),i.1J()}9 w(a,b,c){R d=18.3w(b/2),e=18.3w(c/2),f={4S:[[0,0],[b,c],[b,0]],4T:[[0,0],[b,0],[0,c]],4H:[[0,c],[b,0],[b,c]],4R:[[0,0],[0,c],[b,c]],6u:[[0,c],[d,0],[b,c]],6v:[[0,0],[b,0],[d,c]],7x:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.4S,f.7t=f.4T,f.6A=f.4H,f.6C=f.4R;P f[a.1o()]}9 v(b){R c=T,f=b.2R.1u,g=b.26.X.1x,h=".1e-1x",i=/<47\\b[^<]*(?:(?!<\\/47>)<[^<]*)*<\\/47>/4A,j=d;b.2W.1x={"^X.1x":9(a,b,d){b==="1x"&&(g=d),b==="2v"?c.1J():g&&g.2j?c.44():f.1r(h)}},a.1m(c,{1J:9(){g&&g.2j&&f.1r(h)[g.2v?"6D":"19"]("4d"+h,c.44);P c},44:9(d,h){9 p(a,c,d){b.36("X.1q",c+": "+d),n()}9 o(c){l&&(c=a("<2y/>").3a(c.28(i,"")).4N(l)),b.36("X.1q",c),n()}9 n(){m&&(f.11("4g",""),h=e)}U(d&&d.3n())P c;R j=g.2j.2r(" "),k=g.2j,l,m=g.2v&&!g.5r&&h;m&&f.11("4g","4h"),j>-1&&(l=k.2H(j),k=k.2H(0,j)),a.1x(a.1m({6F:o,4O:p,6H:b},g,{2j:k}));P c}}),c.1J()}9 u(b,c){R i,j,k,l,m=a(T),n=a(1y.35),o=T===1y?n:m,p=m.1Z?m.1Z(c.1Z):f,q=c.1Z.1C==="7h"&&p?p[c.1Z.49]:f,u=m.2m(c.1Z.49||"6I");6J{u=12 u==="1o"?(1F 6K("P "+u))():u}7d(v){a.4O("7b 6M 79 6P 77 2m: "+u)}l=a.1m(d,{},g.3j,c,12 u==="1h"?s(u):f,s(q||p)),p&&a.5v(T,"1Z"),j=l.15,l.1p=b;U("3g"===12 l.X.1q){k=m.17(l.X.17);U(l.X.17!==e&&k)l.X.1q=k;2D P e}j.1P===e&&(j.1P=n),j.16===e&&(j.16=o),l.Q.16===e&&(l.Q.16=o),l.Q.3q===d&&(l.Q.3q=n),l.S.16===e&&(l.S.16=o),l.15.1I===d&&(l.15.1I=j.1P),j.2t=1F h.2z(j.2t),j.1O=1F h.2z(j.1O);U(a.2m(T,"1e"))U(l.4m)m.1e("2a");2D U(l.4m===e)P e;a.17(T,"1a")&&(a.17(T,r,a.17(T,"1a")),T.3x("1a")),i=1F t(m,l,b,!!k),a.2m(T,"1e",i),m.19("1T.1e",9(){i.2a()});P i}9 t(c,p,q,t){9 M(){R c=[p.Q.16[0],p.S.16[0],u.1l&&B.1u[0],p.15.1P[0],p.15.1I[0],b,1y];u.1l?a([]).6Q(a.6S(c,9(a){P 12 a==="1h"})).1r(A):p.Q.16.1r(A+"-2e")}9 L(){9 s(a){z.1K(":1V")&&u.23(a)}9 r(a){U(z.1M(l))P e;1G(u.1s.24),u.1s.24=3e(9(){u.S(a)},p.S.24)}9 n(b){U(z.1M(l))P e;R c=a(b.3t||b.16),g=c.6T(m)[0]===z[0],h=c[0]===f.Q[0];1G(u.1s.Q),1G(u.1s.S);d.16==="1B"&&g||p.S.2p&&(/1B(3l|2c|48)/.1v(b.1C)&&(g||h))?b.6V():p.S.2x>0?u.1s.S=3e(9(){u.S(b)},p.S.2x):u.S(b)}9 k(a){U(z.1M(l))P e;f.Q.2w("1e-"+q+"-24"),1G(u.1s.Q),1G(u.1s.S);R b=9(){u.Q(a)};p.Q.2x>0?u.1s.Q=3e(b,p.Q.2x):b()}R d=p.15,f={Q:p.Q.16,S:p.S.16,1I:a(d.1I),1y:a(1y),3r:a(b)},h={Q:a.3Q(""+p.Q.1d).2L(" "),S:a.3Q(""+p.S.1d).2L(" ")},j=a.22.3b&&1A(a.22.3H,10)===6;z.19("3p"+A+" 30"+A,9(a){R b=a.1C==="3p";b&&u.2i(a),z.29(o,b)}),p.S.2p&&(f.S=f.S.2F(z),z.19("6W"+A,9(){z.1M(l)||1G(u.1s.S)})),/1B(3l|2c)/i.1v(p.S.1d)?p.S.2c&&f.3r.19("1B"+(p.S.2c.2r("6Z")>-1?"3l":"2c")+A,9(a){a.3t||u.S(a)}):/1B(3Z|40)/i.1v(p.Q.1d)&&f.S.19("30"+A,9(a){1G(u.1s.Q)}),p.S.1d.2r("4K")>0&&f.1y.19("3v"+A,9(b){R d=a(b.16),e=!z.1M(l)&&z.1K(":1V");d.70(m).1b===0&&d.2F(c).1b>1&&u.S(b)}),"2B"===12 p.S.24&&(f.Q.19("1e-"+q+"-24",r),a.1n(g.5a,9(a,b){f.S.2F(B.1u).19(b+A+"-24",r)})),a.1n(h.S,9(b,c){R d=a.71(c,h.Q),e=a(f.S);d>-1&&e.2F(f.Q).1b===e.1b||c==="4K"?(f.Q.19(c+A,9(a){z.1K(":1V")?n(a):k(a)}),2C h.Q[d]):f.S.19(c+A,n)}),a.1n(h.Q,9(a,b){f.Q.19(b+A,k)}),"2B"===12 p.S.3T&&f.Q.19("32"+A,9(a){R b=C.31||{},c=p.S.3T,d=18.3o;(d(a.2f-b.2f)>=c||d(a.2J-b.2J)>=c)&&u.S(a)}),d.16==="1B"&&(f.Q.2F(z).19("32"+A,9(a){i={2f:a.2f,2J:a.2J,1C:"32"}}),d.2b.1B&&(p.S.1d&&z.19("30"+A,9(a){(a.3t||a.16)!==f.Q[0]&&u.S(a)}),f.1y.19("32"+A,9(a){!z.1M(l)&&z.1K(":1V")&&u.23(a||i)}))),(d.2b.2u||f.1I.1b)&&(a.1d.73.2u?f.1I:f.3r).19("2u"+A,s),(f.1I.1b||j&&z.11("15")==="2p")&&f.1I.19("4l"+A,s)}9 K(b,d){9 g(a){9 c(c){(b=b.2G(T)).1b===0&&(u.2I(),d!==e&&u.23(C.1d),a())}R b;U((b=f.4N("3A:2G([Y]):2G([V])")).1b===0)P c.1X(b);b.1n(9(a,b){(9 d(){R e=u.1s.3A;U(b.Y&&b.V){1G(e[a]);P c.1X(b)}e[a]=3e(d,20)})()})}R f=B.X;b=b||p.X.1q;U(!u.1l||!b)P e;a.1R(b)&&(b=b.1X(c,u)||""),b.1Y&&b.1b>0?f.4P().3a(b.11({2l:"2S"})):f.2U(b),u.1l<0?z.3M("42",g):(y=0,g(a.76));P u}9 J(b){R d=B.1a;U(!u.1l||!b)P e;a.1R(b)&&(b=b.1X(c,u)||""),b.1Y&&b.1b>0?d.4P().3a(b.11({2l:"2S"})):d.2U(b),u.2I(),u.1l&&z.1K(":1V")&&u.23(C.1d)}9 I(a){R b=B.1D,c=B.1a;U(!u.1l)P e;a?(c||H(),G()):b.1T()}9 H(){R b=w+"-1a";B.1z&&F(),B.1z=a("<2y />",{"1S":j+"-1z "+(p.14.2s?"1t-2s-4U":"")}).3a(B.1a=a("<2y />",{1p:b,"1S":j+"-1a","1L-4c":d})).7a(B.X),p.X.1a.1D?G():u.1l&&u.2I()}9 G(){R b=p.X.1a.1D,c=12 b==="1o",d=c?b:"7e 1u";B.1D&&B.1D.1T(),b.1Y?B.1D=b:B.1D=a("",{"1S":"1t-3f-3F "+(p.14.2s?"":j+"-3y"),1a:d,"1L-7f":d}).7g(a("<7i />",{"1S":"1t-3y 1t-3y-7j",2U:"&7k;"})),B.1D.2P(B.1z).17("51","1D").4e(9(b){a(T).29("1t-3f-4e",b.1C==="3p")}).3W(9(a){z.1M(l)||u.S(a);P e}).19("3v 4Q 5g 7m 7n",9(b){a(T).29("1t-3f-7o 1t-3f-2i",b.1C.2H(-4)==="7p")}),u.2I()}9 F(){B.1a&&(B.1z.1T(),B.1z=B.1a=B.1D=f,u.23())}9 E(){R a=p.14.2s;z.29(k,a),B.X.29(k+"-X",a),B.1z&&B.1z.29(k+"-4U",a),B.1D&&B.1D.29(j+"-3y",!a)}9 D(a){R b=0,c,d=p,e=a.2L(".");33(d=d[e[b++]])b0&&!a("#"+i).1b&&(z[0].1p=i,B.X[0].1p=i+"-X",B.1a[0].1p=i+"-1a")},"^X.1q$":9(a,b,c){K(c)},"^X.1a.1q$":9(a,b,c){U(!c)P F();!B.1a&&c&&H(),J(c)},"^X.1a.1D$":9(a,b,c){I(c)},"^15.(1O|2t)$":9(a,b,c){"1o"===12 c&&(a[b]=1F h.2z(c))},"^15.1P$":9(a,b,c){u.1l&&z.2P(c)},"^Q.2Y$":9(){u.1l?u.Q():u.1Q(1)},"^14.3k$":9(b,c,d){a.17(z[0],"1S",j+" 1e 1t-4Y-4Z "+d)},"^14.2s|X.1a":E,"^4b.(1Q|Q|48|S|2i|25)$":9(b,c,d){z[(a.1R(d)?"":"7v")+"19"]("1u"+c,d)},"^(Q|S|15).(1d|16|2p|24|2c|3T|1I|2b)$":9(a,b,c,d,e){M(),L()}},a.1m(u,{1Q:9(b){U(u.1l)P u;R f=p.X.1a.1q,g=a.3d("7w");a.17(c[0],"1L-3U",w),z=B.1u=a("<2y/>",{1p:w,"1S":j+" 1e 1t-4Y-4Z "+p.14.3k,V:p.14.V||"",51:"7z","1L-7A":"7B","1L-4c":e,"1L-3U":w+"-X","1L-4h":d}).29(l,C.2K).2m("1e",u).2P(p.15.1P).3a(B.X=a("<2y />",{"1S":j+"-X",1p:w+"-X","1L-4c":d})),u.1l=-1,y=1,f&&(H(),J(f)),K(e,e),u.1l=d,E(),a.1n(p.4b,9(b,c){a.1R(c)&&z.19(b==="21"?"4d 54":"1u"+b,c)}),a.1n(h,9(){T.2M==="1Q"&&T(u)}),L(),z.3M("42",9(a){g.3m=C.1d,z.2w(g,[u]),y=0,u.2I(),(p.Q.2Y||b)&&u.Q(C.1d),a()});P u},45:9(a){R b,c;5h(a.2q()){3i"56":b={Y:z.34(),V:z.3E()};2X;3i"W":b=h.W(z,p.15.1P);2X;3F:c=D(a.2q()),b=c[0][c[1]],b=b.1f?b.1o():b}P b},36:9(b,c){9 m(a,b){R c,d,e;57(c 1U k)57(d 1U k[c])U(e=(1F 7G(d,"i")).5b(a))b.4z(e),k[c][d].2O(u,b)}R g=/^15\\.(1O|2t|2b|16|1P)|14|X|Q\\.2Y/i,h=/^X\\.(1a|17)|14/i,i=e,j=e,k=u.2W,l;"1o"===12 b?(l=b,b={},b[l]=c):b=a.1m(d,{},b),a.1n(b,9(c,d){R e=D(c.2q()),f;f=e[0][e[1]],e[0][e[1]]="1h"===12 d&&d.7H?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1v(c)||i,j=h.1v(c)||j}),s(p),x=y=1,a.1n(b,m),x=y=0,z.1K(":1V")&&u.1l&&(i&&u.23(p.15.16==="1B"?f:C.1d),j&&u.2I());P u},21:9(b,c){9 l(){b?(a.22.3b&&z[0].14.3x("2E"),z.11("7I","")):z.11({2l:"",4g:"",V:p.14.V||"",4p:"",O:"",N:""})}U(!u.1l)U(b)u.1Q(1);2D P u;R d=b?"Q":"S",g=p[d],h=z.1K(":1V"),j,k;(12 b).53("3g|2B")&&(b=!h);U(h===b)P u;U(c){U(/3Z|40/.1v(c.1C)&&/3l|2c/.1v(C.1d.1C)&&c.16===p.Q.16[0]&&z.7J(c.3t).1b)P u;C.1d=a.1m({},c)}k=a.3d("1u"+d),k.3m=c?C.1d:f,z.2w(k,[u,3P]);U(k.3n())P u;a.17(z[0],"1L-4h",!b),b?(C.31=a.1m({},i),u.2i(c),a.1R(p.X.1q)&&K(),u.23(c),g.3q&&a(m,g.3q).2G(z).1e("S",k)):(1G(u.1s.Q),2C C.31,u.25(c)),z.5c(0,1),a.1R(g.1N)?(g.1N.1X(z,u),z.3M("42",9(a){l(),a()})):g.1N===e?(z[d](),l.1X(z)):z.4s(3P,b?1:0,l),b&&g.16.2w("1e-"+q+"-24");P u},Q:9(a){P u.21(d,a)},S:9(a){P u.21(e,a)},2i:9(b){U(!u.1l)P u;R c=a(m),d=1A(z[0].14.2N,10),e=g.5i+c.1b,f=a.1m({},b),h,i;z.1M(n)||(i=a.3d("5d"),i.3m=f,z.2w(i,[u,e]),i.3n()||(d!==e&&(c.1n(9(){T.14.2N>d&&(T.14.2N=T.14.2N-1)}),c.2E("."+n).1e("25",f)),z.3O(n)[0].14.2N=e));P u},25:9(b){R c=a.1m({},b),d;z.4q(n),d=a.3d("5f"),d.3m=c,z.2w(d,[u]);P u},23:9(c,d){U(!u.1l||x)P u;x=1;R f=p.15.16,g=p.15,k=g.1O,l=g.2t,m=g.2b,n=m.4o.2L(" "),o=z.3E(),q=z.34(),r=0,s=0,t=a.3d("4k"),w=z.11("15")==="2p",y=g.1I,A={O:0,N:0},B=(u.1E.13||{}).1i,D={3I:n[0],3J:n[1]||n[0],13:p.14.13||{},O:9(a){R b=D.3I==="2k",c=y.W.O+y.2T,d=k.x==="O"?o:k.x==="1j"?-o:-o/2,e=l.x==="O"?r:l.x==="1j"?-r:-r/2,f=D.13.V+D.13.1c*2||0,g=B&&B.1f==="x"&&!b?f:0,h=c-a-g,i=a+o-y.V-c+g,j=d-(k.1f==="x"||k.x===k.y?e:0),n=k.x==="1g";b?(g=B&&B.1f==="y"?f:0,j=(k.x==="O"?1:-1)*d-g,A.O+=h>0?h:i>0?-i:0,A.O=18.1H(y.W.O+(g&&B.x==="1g"?D.13.W:0),a-j,18.3R(18.1H(y.W.O+y.V,a+j),A.O))):(h>0&&(k.x!=="O"||i>0)?A.O-=j+(n?0:2*m.x):i>0&&(k.x!=="1j"||h>0)&&(A.O-=n?-j:j+2*m.x),A.O!==a&&n&&(A.O-=m.x),A.Oi&&(A.O=a));P A.O-a},N:9(a){R b=D.3J==="2k",c=y.W.N+y.2Q,d=k.y==="N"?q:k.y==="1k"?-q:-q/2,e=l.y==="N"?s:l.y==="1k"?-s:-s/2,f=D.13.Y+D.13.1c*2||0,g=B&&B.1f==="y"&&!b?f:0,h=c-a-g,i=a+q-y.Y-c+g,j=d-(k.1f==="y"||k.x===k.y?e:0),n=k.y==="1g";b?(g=B&&B.1f==="x"?f:0,j=(k.y==="N"?1:-1)*d-g,A.N+=h>0?h:i>0?-i:0,A.N=18.1H(y.W.N+(g&&B.x==="1g"?D.13.W:0),a-j,18.3R(18.1H(y.W.N+y.Y,a+j),A.N))):(h>0&&(k.y!=="N"||i>0)?A.N-=j+(n?0:2*m.y):i>0&&(k.y!=="1k"||h>0)&&(A.N-=n?-j:j+2*m.y),A.N!==a&&n&&(A.N-=m.y),A.N<0&&-A.N>i&&(A.N=a));P A.N-a}};U(f==="1B")l={x:"O",y:"N"},c=c&&(c.1C==="2u"||c.1C==="4l")?C.1d:!m.1B&&C.31?C.31:i&&(m.1B||!c||!c.2f)?{2f:i.2f,2J:i.2J}:c,A={N:c.2J,O:c.2f};2D{f==="1d"&&(c&&c.16&&c.1C!=="4l"&&c.1C!=="2u"?f=C.16=a(c.16):f=C.16),f=a(f).7P(0);U(f.1b===0)P u;f[0]===1y||f[0]===b?(r=h.2n?b.7Q:f.V(),s=h.2n?b.7R:f.Y(),f[0]===b&&(A={N:!w||h.2n?(y||f).2Q():0,O:!w||h.2n?(y||f).2T():0})):f.1K("7S")&&h.4a?A=h.4a(f,l):f[0].7U==="7V://7W.7X.7Y/7Z/3s"&&h.3s?A=h.3s(f,l):(r=f.3E(),s=f.34(),A=h.W(f,g.1P,w)),A.W&&(r=A.V,s=A.Y,A=A.W),A.O+=l.x==="1j"?r:l.x==="1g"?r/2:0,A.N+=l.y==="1k"?s:l.y==="1g"?s/2:0}A.O+=m.x+(k.x==="1j"?-o:k.x==="1g"?-o/2:0),A.N+=m.y+(k.y==="1k"?-q:k.y==="1g"?-q/2:0),y.1Y&&f[0]!==b&&f[0]!==v&&D.3J+D.3I!=="80"?(y={5o:y,Y:y[(y[0]===b?"h":"81")+"82"](),V:y[(y[0]===b?"w":"84")+"85"](),2T:w?0:y.2T(),2Q:w?0:y.2Q(),W:y.W()||{O:0,N:0}},A.3L={O:D.3I!=="3K"?D.O(A.O):0,N:D.3J!=="3K"?D.N(A.N):0}):A.3L={O:0,N:0},z.17("1S",9(b,c){P a.17(T,"1S").28(/1t-1u-5n-\\w+/i,"")}).3O(j+"-5n-"+k.4E()),t.3m=a.1m({},c),z.2w(t,[u,A,y.5o||y]);U(t.3n())P u;2C A.3L,d===e||5p(A.O)||5p(A.N)||!a.1R(g.1N)?z.11(A):a.1R(g.1N)&&(g.1N.1X(z,u,a.1m({},A)),z.3M(9(b){a(T).11({4p:"",Y:""}),a.22.3b&&T.14.3x("2E"),b()})),x=0;P u},2I:9(){U(u.1l<1||y)P u;R b=j+"-5q",c=p.15.1P,d,e,f,g;y=1,p.14.V?z.11("V",p.14.V):(z.11("V","").3O(b),e=z.V()+(a.22.5s?1:0),f=z.11("1H-V")||"",g=z.11("3R-V")||"",d=(f+g).2r("%")>-1?c.V()/5t:0,f=(f.2r("%")>-1?d:1)*1A(f,10)||e,g=(g.2r("%")>-1?d:1)*1A(g,10)||0,e=f+g?18.3R(18.1H(e,g),f):e,z.11("V",18.3S(e)).4q(b)),y=0;P u},3V:9(b){R c=l;"3g"!==12 b&&(b=!z.1M(c)&&!C.2K),u.1l?(z.29(c,b),a.17(z[0],"1L-2K",b)):C.2K=!!b;P u},88:9(){P u.3V(e)},2a:9(){R b=c[0],d=a.17(b,r);u.1l&&(z.1T(),a.1n(u.1E,9(){T.2a&&T.2a()})),1G(u.1s.Q),1G(u.1s.S),M(),a.5v(b,"1e"),d&&(a.17(b,"1a",d),c.3C(r)),c.3C("1L-3U").1r(".1e");P c}})}9 s(b){R c;U(!b||"1h"!==12 b)P e;"1h"!==12 b.1Z&&(b.1Z={1C:b.1Z});U("X"1U b){U("1h"!==12 b.X||b.X.1Y)b.X={1q:b.X};c=b.X.1q||e,!a.1R(c)&&(!c&&!c.17||c.1b<1||"1h"===12 c&&!c.1Y)&&(b.X.1q=e),"1a"1U b.X&&("1h"!==12 b.X.1a&&(b.X.1a={1q:b.X.1a}),c=b.X.1a.1q||e,!a.1R(c)&&(!c&&!c.17||c.1b<1||"1h"===12 c&&!c.1Y)&&(b.X.1a.1q=e))}"15"1U b&&("1h"!==12 b.15&&(b.15={1O:b.15,2t:b.15})),"Q"1U b&&("1h"!==12 b.Q&&(b.Q.1Y?b.Q={16:b.Q}:b.Q={1d:b.Q})),"S"1U b&&("1h"!==12 b.S&&(b.S.1Y?b.S={16:b.S}:b.S={1d:b.S})),"14"1U b&&("1h"!==12 b.14&&(b.14={3k:b.14})),a.1n(h,9(){T.3c&&T.3c(b)});P b}R d=!0,e=!1,f=5A,g,h,i,j="1t-1u",k="1t-2s",l="1t-3f-2K",m="2y.1e."+j,n=j+"-2i",o=j+"-4e",p="-5J",q="5K",r="4W";g=a.2g.1e=9(b,h,i){R j=(""+b).2q(),k=f,l=j==="3V"?[d]:a.5M(2h).4r(1,10),m=l[l.1b-1],n=T[0]?a.2m(T[0],"1e"):f;U(!2h.1b&&n||j==="5O")P n;U("1o"===12 b){T.1n(9(){R b=a.2m(T,"1e");U(!b)P d;m&&m.5P&&(b.37.1d=m);U(j!=="5R"&&j!=="26"||!h)b[j]&&b[j].2O(b[j],l);2D U(a.5T(h)||i!==c)b.36(h,i);2D{k=b.45(h);P e}});P k!==f?k:T}U("1h"===12 b||!2h.1b){n=s(a.1m(d,{},b));P g.19.1X(T,n,m)}},g.19=9(b,c){P T.1n(9(f){9 p(b){9 c(){o.1Q(12 b==="1h"||i.Q.2Y),k.Q.1r(l.Q),k.S.1r(l.S)}U(o.37.2K)P e;o.37.1d=a.1m({},b),i.Q.2x>0?(1G(o.1s.Q),o.1s.Q=3e(c,i.Q.2x),l.Q!==l.S&&k.S.19(l.S,9(){1G(o.1s.Q)})):c()}R i,k,l,m=!b.1p||b.1p===e||b.1p.1b<1||a("#"+j+"-"+b.1p).1b?g.4i++:b.1p,n=".1e-"+m+"-2e",o=u.1X(T,m,b);U(o===e)P d;i=o.26,a.1n(h,9(){T.2M==="2M"&&T(o)}),k={Q:i.Q.16,S:i.S.16},l={Q:a.3Q(""+i.Q.1d).28(/ /g,n+" ")+n,S:a.3Q(""+i.S.1d).28(/ /g,n+" ")+n},/1B(3Z|40)/i.1v(l.Q)&&!/1B(3l|2c)/i.1v(l.S)&&(l.S+=" 30"+n),k.Q.19(l.Q,p),(i.Q.2Y||i.5j)&&p(c)})},h=g.1E={2z:9(a){a=(""+a).28(/([A-Z])/," $1").28(/6n/4A,"1g").2q(),T.x=(a.41(/O|1j/i)||a.41(/1g/)||["3G"])[0].2q(),T.y=(a.41(/N|1k|1g/i)||["3G"])[0].2q(),T.1f=a.3h(0).53(/^(t|b)/)>-1?"y":"x",T.1o=9(){P T.1f==="y"?T.y+T.x:T.x+T.y},T.4E=9(){R a=T.x.2H(0,1),b=T.y.2H(0,1);P a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},W:9(c,d,e){9 l(a,b){f.O+=b*a.2T(),f.N+=b*a.2Q()}R f=c.W(),g=d,i=0,j=1y.35,k;U(g){6y{U(g[0]===j)2X;g.11("15")!=="6z"&&(k=g.15(),f.O-=k.O+(1A(g.11("6B"),10)||0),f.N-=k.N+(1A(g.11("6E"),10)||0),i++)}33(g=g.6G());(d[0]!==j||i>1)&&l(d,1),(h.2n<4.1&&h.2n>3.1||!h.2n&&e)&&l(a(b),-1)}P f},2n:4M((""+(/4L.*6L ([0-6N]{1,3})|(4L 6R).*6U.*6X/i.5b(72.74)||[0,""])[1]).28("5e","75").28("7c","."))||e,2g:{17:9(b,c){U(T.1b){R d=T[0],e="1a",f=a.2m(d,"1e");U(b===e){U(2h.1b<2)P a.17(d,r);U(12 f==="1h"){f&&f.1l&&f.26.X.17===e&&f.37.17&&f.36("X.1q",c),a.2g["17"+q].2O(T,2h),a.17(d,r,a.17(d,e));P T.3C(e)}}}},4V:9(b){R c=a([]),d="1a",e;e=a.2g["4V"+q].2O(T,2h).2E("[4W]").1n(9(){a.17(T,d,a.17(T,r)),T.3x(r)}).7y();P e},1T:a.1t?f:9(b,c){a(T).1n(9(){c||(!b||a.2E(b,[T]).1b)&&a("*",T).2F(T).1n(9(){a(T).7C("1T")})})}}},a.1n(h.2g,9(b,c){U(!c)P d;R e=a.2g[b+q]=a.2g[b];a.2g[b]=9(){P c.2O(T,2h)||e.2O(T,2h)}}),g.3H="2.0.7K",g.4i=0,g.5a="3W 7M 3v 5g 32 30 3p".2L(" "),g.5i=7O,g.3j={5j:e,1p:e,4m:d,X:{1q:d,17:"1a",1a:{1q:e,1D:e}},15:{1O:"N O",2t:"1k 1j",16:e,1P:e,1I:e,2b:{x:0,y:0,1B:d,2u:d,4o:"3N 3N"},1N:d},Q:{16:e,1d:"3p",1N:d,2x:3P,3q:e,2Y:e},S:{16:e,1d:"30",1N:d,2x:0,2p:e,24:e,2c:"3r",3T:e},14:{3k:"",2s:e,V:e},4b:{1Q:f,48:f,Q:f,S:f,21:f,2i:f,25:f}},h.1x=9(a){R b=a.1E.1x;P"1h"===12 b?b:a.1E.1x=1F v(a)},h.1x.2M="1Q",h.1x.3c=9(a){R b=a.X,c;b&&"1x"1U b&&(c=b.1x,12 c!=="1h"&&(c=a.X.1x={2j:c}),"3g"!==12 c.2v&&c.2v&&(c.2v=!!c.2v))},a.1m(d,g.3j,{X:{1x:{5r:d,2v:d}}}),h.13=9(a){R b=a.1E.13;P"1h"===12 b?b:a.1E.13=1F x(a)},h.13.2M="1Q",h.13.3c=9(a){R b=a.14,c;b&&"13"1U b&&(c=a.14.13,12 c!=="1h"&&(a.14.13={1i:c}),/1o|3g/i.1v(12 c.1i)||(c.1i=d),12 c.V!=="2B"&&2C c.V,12 c.Y!=="2B"&&2C c.Y,12 c.1c!=="2B"&&c.1c!==d&&2C c.1c,12 c.W!=="2B"&&2C c.W)},a.1m(d,g.3j,{14:{13:{1i:d,3B:e,V:6,Y:6,1c:d,W:0}}}),h.4a=9(b,c){9 l(a,b){R d=0,e=1,f=1,g=0,h=0,i=a.V,j=a.Y;33(i>0&&j>0&&e>0&&f>0){i=18.3z(i/2),j=18.3z(j/2),c.x==="O"?e=i:c.x==="1j"?e=a.V-i:e+=18.3z(i/2),c.y==="N"?f=j:c.y==="1k"?f=a.Y-j:f+=18.3z(j/2),d=b.1b;33(d--){U(b.1b<2)2X;g=b[d][0]-a.W.O,h=b[d][1]-a.W.N,(c.x==="O"&&g>=e||c.x==="1j"&&g<=e||c.x==="1g"&&(ga.V-e)||c.y==="N"&&h>=f||c.y==="1k"&&h<=f||c.y==="1g"&&(ha.Y-f))&&b.6O(d,1)}}P{O:b[0][0],N:b[0][1]}}b.1Y||(b=a(b));R d=b.17("46").2q(),e=b.17("78").2L(","),f=[],g=a(\'3A[7l="#\'+b.7q("59").17("49")+\'"]\'),h=g.W(),i={V:0,Y:0,W:{N:3D,1j:0,1k:0,O:3D}},j=0,k=0;h.O+=18.3w((g.3E()-g.V())/2),h.N+=18.3w((g.34()-g.Y())/2);U(d==="5m"){j=e.1b;33(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.W.1j&&(i.W.1j=k[0]),k[0]i.W.1k&&(i.W.1k=k[1]),k[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('"5x 5y",9(a,b,c){9 z(b){R c=T,d=b.2R,e=d.1u,f=".1W-"+b.1p;a.1m(c,{1J:9(){d.1W=a(\'<55 1S="1t-1u-1W" 5z="0" 86="-1" 87="5B:\\\'\\\';" 14="2l:2S; 15:3X; z-5C:-1; 2E:5D(4p=0); -5E-2E:"5F:5G.7F.5H(5I=0)";">\'),d.1W.2P(e),e.19("4k"+f,c.2b)},2b:9(){R a=b.45("56"),c=b.1E.13,f=d.13,g,h;h=1A(e.11("1c-O-V"),10)||0,h={O:-h,N:-h},c&&f&&(g=c.1i.1f==="x"?["V","O"]:["Y","N"],h[g[1]]-=f[g[0]]()),d.1W.11(h).11(a)},2a:9(){d.1W.1T(),e.1r(f)}}),c.1J()}9 y(c){R f=T,g=c.26.Q.1w,h=c.2R,i=h.1u,j="#1e-2o",k=".7D",l=k+c.1p,m="1K-1w-1e",o;c.2W.1w={"^Q.1w.(2Z|25)$":9(){f.1J(),h.2o.21(i.1K(":1V"))}},a.1m(f,{1J:9(){U(!g.2Z)P f;o=f.2e(),i.17(m,d).1r(k).1r(l).19("4d"+k+" 54"+k,9(a,b,c){f[a.1C.28("1u","")](a,c)}).19("5d"+k,9(a,b,c){o[0].14.2N=c-1}).19("5f"+k,9(b){a("["+m+"]:1V").2G(i).7E().1e("2i",b)}),g.4X&&a(b).1r(l).19("4Q"+l,9(a){a.5L===27&&i.1M(n)&&c.S(a)}),g.25&&h.2o.1r(l).19("3W"+l,9(a){i.1M(n)&&c.S(a)});P f},2e:9(){R c=a(j);U(c.1b){h.2o=c;P c}o=h.2o=a("<2y />",{1p:j.2H(1),11:{15:"3X",N:0,O:0,2l:"3K"},3v:9(){P e}}).2P(1y.35),a(b).1r(k).19("2u"+k,9(){o.11({Y:18.1H(a(b).Y(),a(1y).Y()),V:18.1H(a(b).V(),a(1y).V())})}).2w("2u");P o},21:9(b,c,j){U(b&&b.3n())P f;R k=g.1N,l=c?"Q":"S",n=a("["+m+"]:1V").2G(i),p;o||(o=f.2e());U(o.1K(":7L")&&!c||!c&&n.1b)P f;c&&h.2o.11("7u",g.25?"5N":""),o.5c(d,e),a.1R(k)?k.1X(o,c):k===e?o[l]():o.4s(1A(j,10)||3P,c?.7:0,9(){c||a(T).S()});P f},Q:9(a,b){P f.21(a,d,b)},S:9(a,b){P f.21(a,e,b)},2a:9(){R d=o;d&&(d=a("["+m+"]").2G(i).1b<1,d?(h.2o.1T(),a(b).1r(k)):h.2o.1r(k+c.1p));P i.3C(m).1r(k)}}),f.1J()}9 x(b,g){9 v(a){R b=a.1f==="y",c=n[b?"V":"Y"],d=n[b?"Y":"V"],e=a.1o().2r("1g")>-1,f=c*(e?.5:1),g=18.5Q,h=18.3S,i,j,k,l=18.4j(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=18.4j(g(m[0],2)-g(p,2)),m[3]=18.4j(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)];P{Y:k[b?0:1],V:k[b?1:0]}}9 u(b){R c=k.1z&&b.y==="N",d=c?k.1z:k.X,e=a.22.5s,f=e?"-5S-":a.22.4I?"-4I-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1c-4F-"+g:"1c-"+g+"-4F");P 1A(d.11(h),10)||1A(l.11(h),10)||0}9 t(a,b,c){b=b?b:a[a.1f];R d=k.1z&&a.y==="N",e=d?k.1z:k.X,f="1c-"+b+"-V",g=1A(e.11(f),10);P(c?g||1A(l.11(f),10):g)||0}9 s(f,g,h,l){U(k.13){R n=a.1m({},i.1i),o=h.3L,p=b.26.15.2b.4o.2L(" "),q=p[0],r=p[1]||p[0],s={O:e,N:e,x:0,y:0},t,u={},v;i.1i.2p!==d&&(q==="2k"&&n.1f==="x"&&o.O&&n.y!=="1g"?n.1f=n.1f==="x"?"y":"x":q==="3N"&&o.O&&(n.x=n.x==="1g"?o.O>0?"O":"1j":n.x==="O"?"1j":"O"),r==="2k"&&n.1f==="y"&&o.N&&n.x!=="1g"?n.1f=n.1f==="y"?"x":"y":r==="3N"&&o.N&&(n.y=n.y==="1g"?o.N>0?"N":"1k":n.y==="N"?"1k":"N"),n.1o()!==m.1i&&(m.N!==o.N||m.O!==o.O)&&i.39(n,e)),t=i.15(n,o),t.1j!==c&&(t.O=-t.1j),t.1k!==c&&(t.N=-t.1k),t.43=18.1H(0,j.W);U(s.O=q==="2k"&&!!o.O)n.x==="1g"?u["2V-O"]=s.x=t["2V-O"]-o.O:(v=t.1j!==c?[o.O,-t.O]:[-o.O,t.O],(s.x=18.1H(v[0],v[1]))>v[0]&&(h.O-=o.O,s.O=e),u[t.1j!==c?"1j":"O"]=s.x);U(s.N=r==="2k"&&!!o.N)n.y==="1g"?u["2V-N"]=s.y=t["2V-N"]-o.N:(v=t.1k!==c?[o.N,-t.N]:[-o.N,t.N],(s.y=18.1H(v[0],v[1]))>v[0]&&(h.N-=o.N,s.N=e),u[t.1k!==c?"1k":"N"]=s.y);k.13.11(u).21(!(s.x&&s.y||n.x==="1g"&&s.y||n.y==="1g"&&s.x)),h.O-=t.O.3h?t.43:q!=="2k"||s.N||!s.O&&!s.N?t.O:0,h.N-=t.N.3h?t.43:r!=="2k"||s.O||!s.O&&!s.N?t.N:0,m.O=o.O,m.N=o.N,m.1i=n.1o()}}R i=T,j=b.26.14.13,k=b.2R,l=k.1u,m={N:0,O:0,1i:""},n={V:j.V,Y:j.Y},o={},p=j.1c||0,q=".1e-13",r=!!(a("<4x />")[0]||{}).3Y;i.1i=f,i.3B=f,i.15={},b.2W.13={"^15.1O|14.13.(1i|3B|1c)$":9(){i.1J()||i.2a(),b.23()},"^14.13.(Y|V)$":9(){n={V:j.V,Y:j.Y},i.2e(),i.39(),b.23()},"^X.1a.1q|14.(3k|2s)$":9(){k.13&&i.39()}},a.1m(i,{1J:9(){R b=i.58()&&(r||a.22.3b);b&&(i.2e(),i.39(),l.1r(q).19("4k"+q,s));P b},58:9(){R a=j.1i,c=b.26.15,f=c.2t,g=c.1O.1o?c.1O.1o():c.1O;U(a===e||g===e&&f===e)P e;a===d?i.1i=1F h.2z(g):a.1o||(i.1i=1F h.2z(a),i.1i.2p=d);P i.1i.1o()!=="5u"},4t:9(){R c,d,e,f=k.13.11({5U:"",1c:""}),g=i.1i,h=g[g.1f],m="1c-"+h+"-38",p="1c"+h.3h(0)+h.2H(1)+"6o",q=/5V?\\(0, 0, 0(, 0)?\\)|3u/i,r="6h-38",s="3u",t="1t-1u-5q",u=a(1y.35).11("38"),v=b.2R.X.11("38"),w=k.1z&&(g.y==="N"||g.y==="1g"&&f.15().N+n.Y/2+j.W",{"1S":"1t-1u-13"}).11({V:b,Y:c}).5X(l),r?a("<4x />").2P(k.13)[0].3Y("2d").4v():(d=\'<4n:46 5Y="0,0" 14="2l:4D-2S; 15:3X; 52:2j(#3F#4C);">\',k.13.2U(p?d+=d:d))},39:9(b,c){R g=k.13,l=g.5Z(),m=n.V,q=n.Y,s="4f 60 ",u="4f 61 3u",x=j.3B,y=18.3S,z,A,B,C,D;b||(b=i.1i),x===e?x=b:(x=1F h.2z(x),x.1f=b.1f,x.x==="3G"?x.x=b.x:x.y==="3G"?x.y=b.y:x.x===x.y&&(x[b.1f]=b[b.1f])),z=x.1f,i.4t(),p=o.1c==="3u"||o.1c==="#62"?0:j.1c===d?t(b,f,d):j.1c,B=w(x,m,q),D=v(b),g.11(D),b.1f==="y"?C=[y(x.x==="O"?p:x.x==="1j"?D.V-m-p:(D.V-m)/2),y(x.y==="N"?D.Y-q:0)]:C=[y(x.x==="O"?D.V-m:0),y(x.y==="N"?p:x.y==="1k"?D.Y-q-p:(D.Y-q)/2)],r?(l.17(D),A=l[0].3Y("2d"),A.64(),A.4v(),A.65(0,0,4J,4J),A.66(C[0],C[1]),A.67(),A.69(B[0][0],B[0][1]),A.4w(B[1][0],B[1][1]),A.4w(B[2][0],B[2][1]),A.6a(),A.6b=o.2A,A.83=o.1c,A.6c=p*2,A.6d="4B",A.6e=5t,p&&A.5w(),A.2A()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6f",C[2]=p&&/^(r|b)/i.1v(b.1o())?4M(a.22.3H,10)===8?2:1:0,l.11({6g:""+(x.1o().2r("1g")>-1),O:C[0]-C[2]*5k(z==="x"),N:C[1]-C[2]*5k(z==="y"),V:m+p,Y:q+p}).1n(9(b){R c=a(T);c[c.5l?"5l":"17"]({6i:m+p+" "+(q+p),6j:B,6k:o.2A,6l:!!b,6m:!b}).11({2l:p||b?"2S":"3K"}),!b&&p>0&&c.2U()===""&&c.2U(\'<4n:5w 6p="\'+p*2+\'4f" 38="\'+o.1c+\'" 6q="6r" 6s="4B" 14="52:2j(#3F#4C); 2l:4D-2S;" />\')})),c!==e&&i.15(b)},15:9(b){R c=k.13,f={},g=18.1H(0,j.W),h,l,m;U(j.1i===e||!c)P e;b=b||i.1i,h=b.1f,l=v(b),m=[b.x,b.y],h==="x"&&m.6t(),a.1n(m,9(a,c){R e,i;c==="1g"?(e=h==="y"?"O":"N",f[e]="50%",f["2V-"+e]=-18.3S(l[h==="y"?"V":"Y"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"V":"Y"],c.11({N:"",1k:"",O:"",1j:"",2V:""}).11(f);P f},2a:9(){k.13&&k.13.1T(),l.1r(q)}}),i.1J()}9 w(a,b,c){R d=18.3w(b/2),e=18.3w(c/2),f={4S:[[0,0],[b,c],[b,0]],4T:[[0,0],[b,0],[0,c]],4H:[[0,c],[b,0],[b,c]],4R:[[0,0],[0,c],[b,c]],6u:[[0,c],[d,0],[b,c]],6v:[[0,0],[b,0],[d,c]],7x:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.4S,f.7t=f.4T,f.6A=f.4H,f.6C=f.4R;P f[a.1o()]}9 v(b){R c=T,f=b.2R.1u,g=b.26.X.1x,h=".1e-1x",i=/<47\\b[^<]*(?:(?!<\\/47>)<[^<]*)*<\\/47>/4A,j=d;b.2W.1x={"^X.1x":9(a,b,d){b==="1x"&&(g=d),b==="2v"?c.1J():g&&g.2j?c.44():f.1r(h)}},a.1m(c,{1J:9(){g&&g.2j&&f.1r(h)[g.2v?"6D":"19"]("4d"+h,c.44);P c},44:9(d,h){9 p(a,c,d){b.36("X.1q",c+": "+d),n()}9 o(c){l&&(c=a("<2y/>").3a(c.28(i,"")).4N(l)),b.36("X.1q",c),n()}9 n(){m&&(f.11("4g",""),h=e)}U(d&&d.3n())P c;R j=g.2j.2r(" "),k=g.2j,l,m=g.2v&&!g.5r&&h;m&&f.11("4g","4h"),j>-1&&(l=k.2H(j),k=k.2H(0,j)),a.1x(a.1m({6F:o,4O:p,6H:b},g,{2j:k}));P c}}),c.1J()}9 u(b,c){R i,j,k,l,m=a(T),n=a(1y.35),o=T===1y?n:m,p=m.1Z?m.1Z(c.1Z):f,q=c.1Z.1C==="7h"&&p?p[c.1Z.49]:f,u=m.2m(c.1Z.49||"6I");6J{u=12 u==="1o"?(1F 6K("P "+u))():u}7d(v){a.4O("7b 6M 79 6P 77 2m: "+u)}l=a.1m(d,{},g.3j,c,12 u==="1h"?s(u):f,s(q||p)),p&&a.5v(T,"1Z"),j=l.15,l.1p=b;U("3g"===12 l.X.1q){k=m.17(l.X.17);U(l.X.17!==e&&k)l.X.1q=k;2D P e}j.1P===e&&(j.1P=n),j.16===e&&(j.16=o),l.Q.16===e&&(l.Q.16=o),l.Q.3q===d&&(l.Q.3q=n),l.S.16===e&&(l.S.16=o),l.15.1I===d&&(l.15.1I=j.1P),j.2t=1F h.2z(j.2t),j.1O=1F h.2z(j.1O);U(a.2m(T,"1e"))U(l.4m)m.1e("2a");2D U(l.4m===e)P e;a.17(T,"1a")&&(a.17(T,r,a.17(T,"1a")),T.3x("1a")),i=1F t(m,l,b,!!k),a.2m(T,"1e",i),m.19("1T.1e",9(){i.2a()});P i}9 t(c,p,q,t){9 M(){R c=[p.Q.16[0],p.S.16[0],u.1l&&B.1u[0],p.15.1P[0],p.15.1I[0],b,1y];u.1l?a([]).6Q(a.6S(c,9(a){P 12 a==="1h"})).1r(A):p.Q.16.1r(A+"-2e")}9 L(){9 s(a){z.1K(":1V")&&u.23(a)}9 r(a){U(z.1M(l))P e;1G(u.1s.24),u.1s.24=3e(9(){u.S(a)},p.S.24)}9 n(b){U(z.1M(l))P e;R c=a(b.3t||b.16),g=c.6T(m)[0]===z[0],h=c[0]===f.Q[0];1G(u.1s.Q),1G(u.1s.S);d.16==="1B"&&g||p.S.2p&&(/1B(3l|2c|48)/.1v(b.1C)&&(g||h))?b.6V():p.S.2x>0?u.1s.S=3e(9(){u.S(b)},p.S.2x):u.S(b)}9 k(a){U(z.1M(l))P e;f.Q.2w("1e-"+q+"-24"),1G(u.1s.Q),1G(u.1s.S);R b=9(){u.Q(a)};p.Q.2x>0?u.1s.Q=3e(b,p.Q.2x):b()}R d=p.15,f={Q:p.Q.16,S:p.S.16,1I:a(d.1I),1y:a(1y),3r:a(b)},h={Q:a.3Q(""+p.Q.1d).2L(" "),S:a.3Q(""+p.S.1d).2L(" ")},j=a.22.3b&&1A(a.22.3H,10)===6;z.19("3p"+A+" 30"+A,9(a){R b=a.1C==="3p";b&&u.2i(a),z.29(o,b)}),p.S.2p&&(f.S=f.S.2F(z),z.19("6W"+A,9(){z.1M(l)||1G(u.1s.S)})),/1B(3l|2c)/i.1v(p.S.1d)?p.S.2c&&f.3r.19("1B"+(p.S.2c.2r("6Z")>-1?"3l":"2c")+A,9(a){a.3t||u.S(a)}):/1B(3Z|40)/i.1v(p.Q.1d)&&f.S.19("30"+A,9(a){1G(u.1s.Q)}),p.S.1d.2r("4K")>0&&f.1y.19("3v"+A,9(b){R d=a(b.16),e=!z.1M(l)&&z.1K(":1V");d.70(m).1b===0&&d.2F(c).1b>1&&u.S(b)}),"2B"===12 p.S.24&&(f.Q.19("1e-"+q+"-24",r),a.1n(g.5a,9(a,b){f.S.2F(B.1u).19(b+A+"-24",r)})),a.1n(h.S,9(b,c){R d=a.71(c,h.Q),e=a(f.S);d>-1&&e.2F(f.Q).1b===e.1b||c==="4K"?(f.Q.19(c+A,9(a){z.1K(":1V")?n(a):k(a)}),2C h.Q[d]):f.S.19(c+A,n)}),a.1n(h.Q,9(a,b){f.Q.19(b+A,k)}),"2B"===12 p.S.3T&&f.Q.19("32"+A,9(a){R b=C.31||{},c=p.S.3T,d=18.3o;(d(a.2f-b.2f)>=c||d(a.2J-b.2J)>=c)&&u.S(a)}),d.16==="1B"&&(f.Q.2F(z).19("32"+A,9(a){i={2f:a.2f,2J:a.2J,1C:"32"}}),d.2b.1B&&(p.S.1d&&z.19("30"+A,9(a){(a.3t||a.16)!==f.Q[0]&&u.S(a)}),f.1y.19("32"+A,9(a){!z.1M(l)&&z.1K(":1V")&&u.23(a||i)}))),(d.2b.2u||f.1I.1b)&&(a.1d.73.2u?f.1I:f.3r).19("2u"+A,s),(f.1I.1b||j&&z.11("15")==="2p")&&f.1I.19("4l"+A,s)}9 K(b,d){9 g(a){9 c(c){(b=b.2G(T)).1b===0&&(u.2I(),d!==e&&u.23(C.1d),a())}R b;U((b=f.4N("3A:2G([Y]):2G([V])")).1b===0)P c.1X(b);b.1n(9(a,b){(9 d(){R e=u.1s.3A;U(b.Y&&b.V){1G(e[a]);P c.1X(b)}e[a]=3e(d,20)})()})}R f=B.X;b=b||p.X.1q;U(!u.1l||!b)P e;a.1R(b)&&(b=b.1X(c,u)||""),b.1Y&&b.1b>0?f.4P().3a(b.11({2l:"2S"})):f.2U(b),u.1l<0?z.3M("42",g):(y=0,g(a.76));P u}9 J(b){R d=B.1a;U(!u.1l||!b)P e;a.1R(b)&&(b=b.1X(c,u)||""),b.1Y&&b.1b>0?d.4P().3a(b.11({2l:"2S"})):d.2U(b),u.2I(),u.1l&&z.1K(":1V")&&u.23(C.1d)}9 I(a){R b=B.1D,c=B.1a;U(!u.1l)P e;a?(c||H(),G()):b.1T()}9 H(){R b=w+"-1a";B.1z&&F(),B.1z=a("<2y />",{"1S":j+"-1z "+(p.14.2s?"1t-2s-4U":"")}).3a(B.1a=a("<2y />",{1p:b,"1S":j+"-1a","1L-4c":d})).7a(B.X),p.X.1a.1D?G():u.1l&&u.2I()}9 G(){R b=p.X.1a.1D,c=12 b==="1o",d=c?b:"7e 1u";B.1D&&B.1D.1T(),b.1Y?B.1D=b:B.1D=a("",{"1S":"1t-3f-3F "+(p.14.2s?"":j+"-3y"),1a:d,"1L-7f":d}).7g(a("<7i />",{"1S":"1t-3y 1t-3y-7j",2U:"&7k;"})),B.1D.2P(B.1z).17("51","1D").4e(9(b){a(T).29("1t-3f-4e",b.1C==="3p")}).3W(9(a){z.1M(l)||u.S(a);P e}).19("3v 4Q 5g 7m 7n",9(b){a(T).29("1t-3f-7o 1t-3f-2i",b.1C.2H(-4)==="7p")}),u.2I()}9 F(){B.1a&&(B.1z.1T(),B.1z=B.1a=B.1D=f,u.23())}9 E(){R a=p.14.2s;z.29(k,a),B.X.29(k+"-X",a),B.1z&&B.1z.29(k+"-4U",a),B.1D&&B.1D.29(j+"-3y",!a)}9 D(a){R b=0,c,d=p,e=a.2L(".");33(d=d[e[b++]])b0&&!a("#"+i).1b&&(z[0].1p=i,B.X[0].1p=i+"-X",B.1a[0].1p=i+"-1a")},"^X.1q$":9(a,b,c){K(c)},"^X.1a.1q$":9(a,b,c){U(!c)P F();!B.1a&&c&&H(),J(c)},"^X.1a.1D$":9(a,b,c){I(c)},"^15.(1O|2t)$":9(a,b,c){"1o"===12 c&&(a[b]=1F h.2z(c))},"^15.1P$":9(a,b,c){u.1l&&z.2P(c)},"^Q.2Y$":9(){u.1l?u.Q():u.1Q(1)},"^14.3k$":9(b,c,d){a.17(z[0],"1S",j+" 1e 1t-4Y-4Z "+d)},"^14.2s|X.1a":E,"^4b.(1Q|Q|48|S|2i|25)$":9(b,c,d){z[(a.1R(d)?"":"7v")+"19"]("1u"+c,d)},"^(Q|S|15).(1d|16|2p|24|2c|3T|1I|2b)$":9(){M(),L()}},a.1m(u,{1Q:9(b){U(u.1l)P u;R f=p.X.1a.1q,g=a.3d("7w");a.17(c[0],"1L-3U",w),z=B.1u=a("<2y/>",{1p:w,"1S":j+" 1e 1t-4Y-4Z "+p.14.3k,V:p.14.V||"",51:"7z","1L-7A":"7B","1L-4c":e,"1L-3U":w+"-X","1L-4h":d}).29(l,C.2K).2m("1e",u).2P(p.15.1P).3a(B.X=a("<2y />",{"1S":j+"-X",1p:w+"-X","1L-4c":d})),u.1l=-1,y=1,f&&(H(),J(f)),K(e,e),u.1l=d,E(),a.1n(p.4b,9(b,c){a.1R(c)&&z.19(b==="21"?"4d 54":"1u"+b,c)}),a.1n(h,9(){T.2M==="1Q"&&T(u)}),L(),z.3M("42",9(a){g.3m=C.1d,z.2w(g,[u]),y=0,u.2I(),(p.Q.2Y||b)&&u.Q(C.1d),a()});P u},45:9(a){R b,c;5h(a.2q()){3i"56":b={Y:z.34(),V:z.3E()};2X;3i"W":b=h.W(z,p.15.1P);2X;3F:c=D(a.2q()),b=c[0][c[1]],b=b.1f?b.1o():b}P b},36:9(b,c){9 m(a,b){R c,d,e;57(c 1U k)57(d 1U k[c])U(e=(1F 7G(d,"i")).5b(a))b.4z(e),k[c][d].2O(u,b)}R g=/^15\\.(1O|2t|2b|16|1P)|14|X|Q\\.2Y/i,h=/^X\\.(1a|17)|14/i,i=e,j=e,k=u.2W,l;"1o"===12 b?(l=b,b={},b[l]=c):b=a.1m(d,{},b),a.1n(b,9(c,d){R e=D(c.2q()),f;f=e[0][e[1]],e[0][e[1]]="1h"===12 d&&d.7H?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1v(c)||i,j=h.1v(c)||j}),s(p),x=y=1,a.1n(b,m),x=y=0,z.1K(":1V")&&u.1l&&(i&&u.23(p.15.16==="1B"?f:C.1d),j&&u.2I());P u},21:9(b,c){9 l(){b?(a.22.3b&&z[0].14.3x("2E"),z.11("7I","")):z.11({2l:"",4g:"",V:p.14.V||"",4p:"",O:"",N:""})}U(!u.1l)U(b)u.1Q(1);2D P u;R d=b?"Q":"S",g=p[d],h=z.1K(":1V"),j,k;(12 b).53("3g|2B")&&(b=!h);U(h===b)P u;U(c){U(/3Z|40/.1v(c.1C)&&/3l|2c/.1v(C.1d.1C)&&c.16===p.Q.16[0]&&z.7J(c.3t).1b)P u;C.1d=a.1m({},c)}k=a.3d("1u"+d),k.3m=c?C.1d:f,z.2w(k,[u,3P]);U(k.3n())P u;a.17(z[0],"1L-4h",!b),b?(C.31=a.1m({},i),u.2i(c),a.1R(p.X.1q)&&K(),u.23(c),g.3q&&a(m,g.3q).2G(z).1e("S",k)):(1G(u.1s.Q),2C C.31,u.25(c)),z.5c(0,1),a.1R(g.1N)?(g.1N.1X(z,u),z.3M("42",9(a){l(),a()})):g.1N===e?(z[d](),l.1X(z)):z.4s(3P,b?1:0,l),b&&g.16.2w("1e-"+q+"-24");P u},Q:9(a){P u.21(d,a)},S:9(a){P u.21(e,a)},2i:9(b){U(!u.1l)P u;R c=a(m),d=1A(z[0].14.2N,10),e=g.5i+c.1b,f=a.1m({},b),h,i;z.1M(n)||(i=a.3d("5d"),i.3m=f,z.2w(i,[u,e]),i.3n()||(d!==e&&(c.1n(9(){T.14.2N>d&&(T.14.2N=T.14.2N-1)}),c.2E("."+n).1e("25",f)),z.3O(n)[0].14.2N=e));P u},25:9(b){R c=a.1m({},b),d;z.4q(n),d=a.3d("5f"),d.3m=c,z.2w(d,[u]);P u},23:9(c,d){U(!u.1l||x)P u;x=1;R f=p.15.16,g=p.15,k=g.1O,l=g.2t,m=g.2b,n=m.4o.2L(" "),o=z.3E(),q=z.34(),r=0,s=0,t=a.3d("4k"),w=z.11("15")==="2p",y=g.1I,A={O:0,N:0},B=(u.1E.13||{}).1i,D={3I:n[0],3J:n[1]||n[0],13:p.14.13||{},O:9(a){R b=D.3I==="2k",c=y.W.O+y.2T,d=k.x==="O"?o:k.x==="1j"?-o:-o/2,e=l.x==="O"?r:l.x==="1j"?-r:-r/2,f=D.13.V+D.13.1c*2||0,g=B&&B.1f==="x"&&!b?f:0,h=c-a-g,i=a+o-y.V-c+g,j=d-(k.1f==="x"||k.x===k.y?e:0),n=k.x==="1g";b?(g=B&&B.1f==="y"?f:0,j=(k.x==="O"?1:-1)*d-g,A.O+=h>0?h:i>0?-i:0,A.O=18.1H(y.W.O+(g&&B.x==="1g"?D.13.W:0),a-j,18.3R(18.1H(y.W.O+y.V,a+j),A.O))):(h>0&&(k.x!=="O"||i>0)?A.O-=j+(n?0:2*m.x):i>0&&(k.x!=="1j"||h>0)&&(A.O-=n?-j:j+2*m.x),A.O!==a&&n&&(A.O-=m.x),A.Oi&&(A.O=a));P A.O-a},N:9(a){R b=D.3J==="2k",c=y.W.N+y.2Q,d=k.y==="N"?q:k.y==="1k"?-q:-q/2,e=l.y==="N"?s:l.y==="1k"?-s:-s/2,f=D.13.Y+D.13.1c*2||0,g=B&&B.1f==="y"&&!b?f:0,h=c-a-g,i=a+q-y.Y-c+g,j=d-(k.1f==="y"||k.x===k.y?e:0),n=k.y==="1g";b?(g=B&&B.1f==="x"?f:0,j=(k.y==="N"?1:-1)*d-g,A.N+=h>0?h:i>0?-i:0,A.N=18.1H(y.W.N+(g&&B.x==="1g"?D.13.W:0),a-j,18.3R(18.1H(y.W.N+y.Y,a+j),A.N))):(h>0&&(k.y!=="N"||i>0)?A.N-=j+(n?0:2*m.y):i>0&&(k.y!=="1k"||h>0)&&(A.N-=n?-j:j+2*m.y),A.N!==a&&n&&(A.N-=m.y),A.N<0&&-A.N>i&&(A.N=a));P A.N-a}};U(f==="1B")l={x:"O",y:"N"},c=c&&(c.1C==="2u"||c.1C==="4l")?C.1d:!m.1B&&C.31?C.31:i&&(m.1B||!c||!c.2f)?{2f:i.2f,2J:i.2J}:c,A={N:c.2J,O:c.2f};2D{f==="1d"&&(c&&c.16&&c.1C!=="4l"&&c.1C!=="2u"?f=C.16=a(c.16):f=C.16),f=a(f).7P(0);U(f.1b===0)P u;f[0]===1y||f[0]===b?(r=h.2n?b.7Q:f.V(),s=h.2n?b.7R:f.Y(),f[0]===b&&(A={N:!w||h.2n?(y||f).2Q():0,O:!w||h.2n?(y||f).2T():0})):f.1K("7S")&&h.4a?A=h.4a(f,l):f[0].7U==="7V://7W.7X.7Y/7Z/3s"&&h.3s?A=h.3s(f,l):(r=f.3E(),s=f.34(),A=h.W(f,g.1P,w)),A.W&&(r=A.V,s=A.Y,A=A.W),A.O+=l.x==="1j"?r:l.x==="1g"?r/2:0,A.N+=l.y==="1k"?s:l.y==="1g"?s/2:0}A.O+=m.x+(k.x==="1j"?-o:k.x==="1g"?-o/2:0),A.N+=m.y+(k.y==="1k"?-q:k.y==="1g"?-q/2:0),y.1Y&&f[0]!==b&&f[0]!==v&&D.3J+D.3I!=="80"?(y={5o:y,Y:y[(y[0]===b?"h":"81")+"82"](),V:y[(y[0]===b?"w":"84")+"85"](),2T:w?0:y.2T(),2Q:w?0:y.2Q(),W:y.W()||{O:0,N:0}},A.3L={O:D.3I!=="3K"?D.O(A.O):0,N:D.3J!=="3K"?D.N(A.N):0}):A.3L={O:0,N:0},z.17("1S",9(b,c){P a.17(T,"1S").28(/1t-1u-5n-\\w+/i,"")}).3O(j+"-5n-"+k.4E()),t.3m=a.1m({},c),z.2w(t,[u,A,y.5o||y]);U(t.3n())P u;2C A.3L,d===e||5p(A.O)||5p(A.N)||!a.1R(g.1N)?z.11(A):a.1R(g.1N)&&(g.1N.1X(z,u,a.1m({},A)),z.3M(9(b){a(T).11({4p:"",Y:""}),a.22.3b&&T.14.3x("2E"),b()})),x=0;P u},2I:9(){U(u.1l<1||y)P u;R b=j+"-5q",c=p.15.1P,d,e,f,g;y=1,p.14.V?z.11("V",p.14.V):(z.11("V","").3O(b),e=z.V()+(a.22.5s?1:0),f=z.11("1H-V")||"",g=z.11("3R-V")||"",d=(f+g).2r("%")>-1?c.V()/5t:0,f=(f.2r("%")>-1?d:1)*1A(f,10)||e,g=(g.2r("%")>-1?d:1)*1A(g,10)||0,e=f+g?18.3R(18.1H(e,g),f):e,z.11("V",18.3S(e)).4q(b)),y=0;P u},3V:9(b){R c=l;"3g"!==12 b&&(b=!z.1M(c)&&!C.2K),u.1l?(z.29(c,b),a.17(z[0],"1L-2K",b)):C.2K=!!b;P u},88:9(){P u.3V(e)},2a:9(){R b=c[0],d=a.17(b,r);u.1l&&(z.1T(),a.1n(u.1E,9(){T.2a&&T.2a()})),1G(u.1s.Q),1G(u.1s.S),M(),a.5v(b,"1e"),d&&(a.17(b,"1a",d),c.3C(r)),c.3C("1L-3U").1r(".1e");P c}})}9 s(b){R c;U(!b||"1h"!==12 b)P e;"1h"!==12 b.1Z&&(b.1Z={1C:b.1Z});U("X"1U b){U("1h"!==12 b.X||b.X.1Y)b.X={1q:b.X};c=b.X.1q||e,!a.1R(c)&&(!c&&!c.17||c.1b<1||"1h"===12 c&&!c.1Y)&&(b.X.1q=e),"1a"1U b.X&&("1h"!==12 b.X.1a&&(b.X.1a={1q:b.X.1a}),c=b.X.1a.1q||e,!a.1R(c)&&(!c&&!c.17||c.1b<1||"1h"===12 c&&!c.1Y)&&(b.X.1a.1q=e))}"15"1U b&&("1h"!==12 b.15&&(b.15={1O:b.15,2t:b.15})),"Q"1U b&&("1h"!==12 b.Q&&(b.Q.1Y?b.Q={16:b.Q}:b.Q={1d:b.Q})),"S"1U b&&("1h"!==12 b.S&&(b.S.1Y?b.S={16:b.S}:b.S={1d:b.S})),"14"1U b&&("1h"!==12 b.14&&(b.14={3k:b.14})),a.1n(h,9(){T.3c&&T.3c(b)});P b}R d=!0,e=!1,f=5A,g,h,i,j="1t-1u",k="1t-2s",l="1t-3f-2K",m="2y.1e."+j,n=j+"-2i",o=j+"-4e",p="-5J",q="5K",r="4W";g=a.2g.1e=9(b,h,i){R j=(""+b).2q(),k=f,l=j==="3V"?[d]:a.5M(2h).4r(1,10),m=l[l.1b-1],n=T[0]?a.2m(T[0],"1e"):f;U(!2h.1b&&n||j==="5O")P n;U("1o"===12 b){T.1n(9(){R b=a.2m(T,"1e");U(!b)P d;m&&m.5P&&(b.37.1d=m);U(j!=="5R"&&j!=="26"||!h)b[j]&&b[j].2O(b[j],l);2D U(a.5T(h)||i!==c)b.36(h,i);2D{k=b.45(h);P e}});P k!==f?k:T}U("1h"===12 b||!2h.1b){n=s(a.1m(d,{},b));P g.19.1X(T,n,m)}},g.19=9(b,c){P T.1n(9(f){9 p(b){9 c(){o.1Q(12 b==="1h"||i.Q.2Y),k.Q.1r(l.Q),k.S.1r(l.S)}U(o.37.2K)P e;o.37.1d=a.1m({},b),i.Q.2x>0?(1G(o.1s.Q),o.1s.Q=3e(c,i.Q.2x),l.Q!==l.S&&k.S.19(l.S,9(){1G(o.1s.Q)})):c()}R i,k,l,m=!b.1p||b.1p===e||b.1p.1b<1||a("#"+j+"-"+b.1p).1b?g.4i++:b.1p,n=".1e-"+m+"-2e",o=u.1X(T,m,b);U(o===e)P d;i=o.26,a.1n(h,9(){T.2M==="2M"&&T(o)}),k={Q:i.Q.16,S:i.S.16},l={Q:a.3Q(""+i.Q.1d).28(/ /g,n+" ")+n,S:a.3Q(""+i.S.1d).28(/ /g,n+" ")+n},/1B(3Z|40)/i.1v(l.Q)&&!/1B(3l|2c)/i.1v(l.S)&&(l.S+=" 30"+n),k.Q.19(l.Q,p),(i.Q.2Y||i.5j)&&p(c)})},h=g.1E={2z:9(a){a=(""+a).28(/([A-Z])/," $1").28(/6n/4A,"1g").2q(),T.x=(a.41(/O|1j/i)||a.41(/1g/)||["3G"])[0].2q(),T.y=(a.41(/N|1k|1g/i)||["3G"])[0].2q(),T.1f=a.3h(0).53(/^(t|b)/)>-1?"y":"x",T.1o=9(){P T.1f==="y"?T.y+T.x:T.x+T.y},T.4E=9(){R a=T.x.2H(0,1),b=T.y.2H(0,1);P a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},W:9(c,d,e){9 l(a,b){f.O+=b*a.2T(),f.N+=b*a.2Q()}R f=c.W(),g=d,i=0,j=1y.35,k;U(g){6y{U(g[0]===j)2X;g.11("15")!=="6z"&&(k=g.15(),f.O-=k.O+(1A(g.11("6B"),10)||0),f.N-=k.N+(1A(g.11("6E"),10)||0),i++)}33(g=g.6G());(d[0]!==j||i>1)&&l(d,1),(h.2n<4.1&&h.2n>3.1||!h.2n&&e)&&l(a(b),-1)}P f},2n:4M((""+(/4L.*6L ([0-6N]{1,3})|(4L 6R).*6U.*6X/i.5b(72.74)||[0,""])[1]).28("5e","75").28("7c","."))||e,2g:{17:9(b,c){U(T.1b){R d=T[0],e="1a",f=a.2m(d,"1e");U(b===e){U(2h.1b<2)P a.17(d,r);U(12 f==="1h"){f&&f.1l&&f.26.X.17===e&&f.37.17&&f.36("X.1q",c),a.2g["17"+q].2O(T,2h),a.17(d,r,a.17(d,e));P T.3C(e)}}}},4V:9(b){R c=a([]),d="1a",e;e=a.2g["4V"+q].2O(T,2h).2E("[4W]").1n(9(){a.17(T,d,a.17(T,r)),T.3x(r)}).7y();P e},1T:a.1t?f:9(b,c){a(T).1n(9(){c||(!b||a.2E(b,[T]).1b)&&a("*",T).2F(T).1n(9(){a(T).7C("1T")})})}}},a.1n(h.2g,9(b,c){U(!c)P d;R e=a.2g[b+q]=a.2g[b];a.2g[b]=9(){P c.2O(T,2h)||e.2O(T,2h)}}),g.3H="2.0.7K",g.4i=0,g.5a="3W 7M 3v 5g 32 30 3p".2L(" "),g.5i=7O,g.3j={5j:e,1p:e,4m:d,X:{1q:d,17:"1a",1a:{1q:e,1D:e}},15:{1O:"N O",2t:"1k 1j",16:e,1P:e,1I:e,2b:{x:0,y:0,1B:d,2u:d,4o:"3N 3N"},1N:d},Q:{16:e,1d:"3p",1N:d,2x:3P,3q:e,2Y:e},S:{16:e,1d:"30",1N:d,2x:0,2p:e,24:e,2c:"3r",3T:e},14:{3k:"",2s:e,V:e},4b:{1Q:f,48:f,Q:f,S:f,21:f,2i:f,25:f}},h.1x=9(a){R b=a.1E.1x;P"1h"===12 b?b:a.1E.1x=1F v(a)},h.1x.2M="1Q",h.1x.3c=9(a){R b=a.X,c;b&&"1x"1U b&&(c=b.1x,12 c!=="1h"&&(c=a.X.1x={2j:c}),"3g"!==12 c.2v&&c.2v&&(c.2v=!!c.2v))},a.1m(d,g.3j,{X:{1x:{5r:d,2v:d}}}),h.13=9(a){R b=a.1E.13;P"1h"===12 b?b:a.1E.13=1F x(a)},h.13.2M="1Q",h.13.3c=9(a){R b=a.14,c;b&&"13"1U b&&(c=a.14.13,12 c!=="1h"&&(a.14.13={1i:c}),/1o|3g/i.1v(12 c.1i)||(c.1i=d),12 c.V!=="2B"&&2C c.V,12 c.Y!=="2B"&&2C c.Y,12 c.1c!=="2B"&&c.1c!==d&&2C c.1c,12 c.W!=="2B"&&2C c.W)},a.1m(d,g.3j,{14:{13:{1i:d,3B:e,V:6,Y:6,1c:d,W:0}}}),h.4a=9(b,c){9 l(a,b){R d=0,e=1,f=1,g=0,h=0,i=a.V,j=a.Y;33(i>0&&j>0&&e>0&&f>0){i=18.3z(i/2),j=18.3z(j/2),c.x==="O"?e=i:c.x==="1j"?e=a.V-i:e+=18.3z(i/2),c.y==="N"?f=j:c.y==="1k"?f=a.Y-j:f+=18.3z(j/2),d=b.1b;33(d--){U(b.1b<2)2X;g=b[d][0]-a.W.O,h=b[d][1]-a.W.N,(c.x==="O"&&g>=e||c.x==="1j"&&g<=e||c.x==="1g"&&(ga.V-e)||c.y==="N"&&h>=f||c.y==="1k"&&h<=f||c.y==="1g"&&(ha.Y-f))&&b.6O(d,1)}}P{O:b[0][0],N:b[0][1]}}b.1Y||(b=a(b));R d=b.17("46").2q(),e=b.17("78").2L(","),f=[],g=a(\'3A[7l="#\'+b.7q("59").17("49")+\'"]\'),h=g.W(),i={V:0,Y:0,W:{N:3D,1j:0,1k:0,O:3D}},j=0,k=0;h.O+=18.3w((g.3E()-g.V())/2),h.N+=18.3w((g.34()-g.Y())/2);U(d==="5m"){j=e.1b;33(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.W.1j&&(i.W.1j=k[0]),k[0]i.W.1k&&(i.W.1k=k[1]),k[1]