diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index ef65e934..6922c954 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: Thu Apr 14 20:08:23 2011 +0100 +* Date: Thu Apr 14 20:23:41 2011 +0100 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -1055,7 +1055,7 @@ function QTip(target, options, id, attr) // Make sure this axis is enabled for reposition if (!readjust.horizontal) { return 0; } - var viewportScroll = viewport.scrollLeft, + var viewportScroll = (viewport.offset.left || 0) + viewport.scrollLeft, myWidth = my.x === 'left' ? elemWidth : my.x === 'right' ? -elemWidth : -elemWidth / 2, atWidth = at.x === 'left' ? targetWidth : at.x === 'right' ? -targetWidth : -targetWidth / 2, tipAdjust = tip && tip.precedance === 'x' ? options.style.tip.width : 0, @@ -1089,7 +1089,7 @@ function QTip(target, options, id, attr) // Make sure this axis is enabled for reposition if (!readjust.vertical) { return 0; } - var viewportScroll = viewport.scrollTop, + var viewportScroll = (viewport.offset.top || 0) + viewport.scrollTop, myHeight = my.y === 'top' ? elemHeight : my.y === 'bottom' ? -elemHeight : -elemHeight / 2, atHeight = at.y === 'top' ? targetHeight : at.y === 'bottom' ? -targetHeight : -targetHeight / 2, tipAdjust = tip && tip.precedance === 'y' ? options.style.tip.height : 0, @@ -1127,7 +1127,8 @@ function QTip(target, options, id, attr) height: viewport[ (viewport[0] === window ? 'h' : 'outerH') + 'eight' ](), width: viewport[ (viewport[0] === window ? 'w' : 'outerW') + 'idth' ](), scrollLeft: viewport.scrollLeft(), - scrollTop: viewport.scrollTop() + scrollTop: viewport.scrollTop(), + offset: viewport.offset() || {} }; // Check if mouse was the target diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index dc87b9ce..d3362596 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: Thu Apr 14 20:08:23 2011 +0100 +* Date: Thu Apr 14 20:23:41 2011 +0100 */ /* Fluid class for determining actual width in IE */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 107f085e..2c279d04 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: Thu Apr 14 20:08:23 2011 +0100 +* Date: Thu Apr 14 20:23:41 2011 +0100 */ "use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ @@ -1055,7 +1055,7 @@ function QTip(target, options, id, attr) // Make sure this axis is enabled for reposition if (!readjust.horizontal) { return 0; } - var viewportScroll = viewport.scrollLeft, + var viewportScroll = (viewport.offset.left || 0) + viewport.scrollLeft, myWidth = my.x === 'left' ? elemWidth : my.x === 'right' ? -elemWidth : -elemWidth / 2, atWidth = at.x === 'left' ? targetWidth : at.x === 'right' ? -targetWidth : -targetWidth / 2, tipAdjust = tip && tip.precedance === 'x' ? options.style.tip.width : 0, @@ -1089,7 +1089,7 @@ function QTip(target, options, id, attr) // Make sure this axis is enabled for reposition if (!readjust.vertical) { return 0; } - var viewportScroll = viewport.scrollTop, + var viewportScroll = (viewport.offset.top || 0) + viewport.scrollTop, myHeight = my.y === 'top' ? elemHeight : my.y === 'bottom' ? -elemHeight : -elemHeight / 2, atHeight = at.y === 'top' ? targetHeight : at.y === 'bottom' ? -targetHeight : -targetHeight / 2, tipAdjust = tip && tip.precedance === 'y' ? options.style.tip.height : 0, @@ -1127,7 +1127,8 @@ function QTip(target, options, id, attr) height: viewport[ (viewport[0] === window ? 'h' : 'outerH') + 'eight' ](), width: viewport[ (viewport[0] === window ? 'w' : 'outerW') + 'idth' ](), scrollLeft: viewport.scrollLeft(), - scrollTop: viewport.scrollTop() + scrollTop: viewport.scrollTop(), + offset: viewport.offset() || {} }; // Check if mouse was the target diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 5b205849..16704700 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: Thu Apr 14 20:08:23 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;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;i.unbind(k).unbind(k+c.id).bind("tooltipshow"+k+" tooltiphide"+k,function(b,c,d){var e=b.type.replace("tooltip","");a.isFunction(g[e])?g[e].call(h.overlay,d,c):f[e](d)}).bind("tooltipfocus",function(a,b,c){l.css("z-index",c-1)}),f.create(),h.overlay.css("cursor",g.blur?"pointer":""),g.blur===d&&h.overlay.bind("click"+k+c.id,function(){c.hide.call(c)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}l=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).bind("resize"+k,function(){l.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return l},toggle:function(b){var g=c.options.show.modal.effect,h=b?"show":"hide",i;l||(l=f.create());if(!l.is(":animated")||b){l.stop(d,e),a.isFunction(g)?g.call(l,b):g===e?l[h]():l.fadeTo(90,b?.7:0,function(){b||a(this).hide()});return f}},show:function(){return f.toggle(d)},hide:function(){return f.toggle(e)},destroy:function(){var d=l;d&&(a(j).each(function(){var b=a(this).data("qtip");if(b&&b.id!==b.id&&b.options.show.modal)return d=e}),d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id));return i.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.substr(0,5)==="shift",q={left:0,top:0},r;i.corner.fixed!==d&&(p?(o.top&&(q.top=Math.abs(o.top)),o.left&&(q.left=Math.abs(o.left)),n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":n.precedance==="x"&&o.left&&n.y!=="center"&&(n.precedance=n.precedance==="x"?"y":"x"),!q.left&&!q.top&&(p=e)):(o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),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)&&(r=i.update(n,e))),r=i.position(n,q,1),r.right!==c&&(r.left=r.right),r.bottom!==c&&(r.top=r.bottom),r.option=Math.max(0,j.offset);if(p&&q.top&&!q.left||!p||!r)h.left-=r.left.charAt?r.option:(r.right?-1:1)*r.left;if(p&&q.left&&!q.top||!p||!r)h.top-=r.top.charAt?r.option:(r.bottom?-1:1)*r.top;p&&q.left&&n.precedance==="y"?h.left-=r.option:p&&q.top&&n.precedance==="x"&&(h.top-=r.option),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,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,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.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,null,d)},position:function(b,c,f){var g=k.tip,h={},m,o,q;if(j.corner===e||!g)return e;b=b||i.corner,m=b.precedance,o=v(b),q=[b.x,b.y],c=[Math.max(0,j.offset+(c?c.left:0)),Math.max(0,j.offset+(c?c.top:0))],m==="x"&&(q.reverse(),c.reverse()),a.each(q,function(a,e){var f,g,i;e==="center"?(g=m==="y"?"left":"top",h[g]="50%",h["margin-"+g]=-Math.round(o[m==="y"?"width":"height"]/2)+c[a]):(g=t(b,e,d),i=u(b),f=a&&m==="y"?"height":"width",h[e]=Math.min(l[f]()-n[f]-p,a?t(b,e)+(a?0:i):c[a]+(i>g?i:0)))}),h[b[m]]-=o[m==="x"?"width":"height"],f&&g.css({top:"",bottom:"",left:"",right:"",margin:""}).css(h);return h},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"?(f.unbind(h),d&&f.bind("tooltipshow"+h,c.load)):g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.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.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,u=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,v=m.data(c.metadata.name||"qtipopts");try{v=typeof v==="string"?(new Function("return "+v))():v}catch(w){r("Unable to parse HTML5 attribute data: "+v)}l=a.extend(d,{},g.defaults,c,typeof v==="object"?s(v):f,s(u||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,q,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,o,p,r){function K(c,d,e,f){f=parseInt(f,10)!==0;var g=".qtip-"+p,h={show:c&&o.show.target[0],hide:d&&o.hide.target[0],tooltip:e&&t.rendered&&z.tooltip[0],content:e&&t.rendered&&z.content[0],container:f&&o.position.container[0]===u?document:o.position.container[0],window:f&&b};t.rendered?a([]).pushStack(a.grep([h.show,h.hide,h.tooltip,h.container,h.content,h.window],function(a){return typeof a==="object"})).unbind(g):c&&o.show.target.unbind(g+"-create")}function J(d,f,h,j){function B(a){y.is(":visible")&&t.reposition(a)}function A(a){if(y.hasClass(l))return e;clearTimeout(t.timers.inactive),t.timers.inactive=setTimeout(function(){t.hide(a)},o.hide.inactive)}function x(b){if(y.hasClass(l))return e;var c=a(b.relatedTarget||b.target),d=c.closest(m)[0]===y[0],f=c[0]===q.show[0];clearTimeout(t.timers.show),clearTimeout(t.timers.hide);if(n.target==="mouse"&&d||o.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||f))){b.stopPropagation(),b.preventDefault();return e}o.hide.delay>0?t.timers.hide=setTimeout(function(){t.hide(b)},o.hide.delay):t.hide(b)}function w(a){if(y.hasClass(l))return e;q.show.trigger("qtip-"+p+"-inactive"),clearTimeout(t.timers.show),clearTimeout(t.timers.hide);var b=function(){t.show(a)};o.show.delay>0?t.timers.show=setTimeout(b,o.show.delay):b()}var k=".qtip-"+p,n=o.position,q={show:o.show.target,hide:o.hide.target,container:n.container[0]===u?a(document):n.container,doc:a(document)},r={show:a.trim(""+o.show.event).split(" "),hide:a.trim(""+o.hide.event).split(" ")},s=a.browser.msie&&parseInt(a.browser.version,10)===6,v;h&&(o.hide.fixed&&(q.hide=q.hide.add(y),y.bind("mouseover"+k,function(){y.hasClass(l)||clearTimeout(t.timers.hide)})),n.target==="mouse"&&n.adjust.mouse&&o.hide.event&&y.bind("mouseleave"+k,function(a){(a.relatedTarget||a.target)!==q.show[0]&&t.hide(a)}),y.bind("mouseenter"+k+" mouseleave"+k,function(a){t[a.type==="mouseenter"?"focus":"blur"](a)})),f&&("number"===typeof o.hide.inactive&&(q.show.bind("qtip-"+p+"-inactive",A),a.each(g.inactiveEvents,function(a,b){q.hide.add(z.tooltip).bind(b+k+"-inactive",A)})),a.each(r.hide,function(b,c){var d=a.inArray(c,r.show),e=a(q.hide);d>-1&&e.add(q.show).length===e.length||c==="unfocus"?(q.show.bind(c+k,function(a){y.is(":visible")?x(a):w(a)}),delete r.show[d]):q.hide.bind(c+k,x)})),d&&a.each(r.show,function(a,b){q.show.bind(b+k,w)}),j&&((n.adjust.resize||n.viewport)&&a(a.event.special.resize?n.viewport:b).bind("resize"+k,B),(n.viewport||s&&y.css("position")==="fixed")&&a(n.viewport).bind("scroll"+k,B),/unfocus/i.test(o.hide.event)&&q.doc.bind("mousedown"+k,function(b){var d=a(b.target);d.parents(m).length===0&&d.add(c).length>1&&y.is(":visible")&&!y.hasClass(l)&&t.hide(b)}),o.hide.leave&&/mouseleave|mouseout/i.test(o.hide.event)&&a(b).bind("blur"+k+" mouse"+(o.hide.leave.indexOf("frame")>-1?"out":"leave")+k,function(a){a.relatedTarget||t.hide(a)}),n.target==="mouse"&&q.doc.bind("mousemove"+k,function(a){n.adjust.mouse&&!y.hasClass(l)&&y.is(":visible")&&t.reposition(a||i)}))}function I(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(t.redraw(),t.reposition(A.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=t.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=z.content;if(!t.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,t)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),t.rendered<0?y.queue("fx",g):(x=0,g(a.noop));return t}function H(b){var d=z.title;if(!t.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,t)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),t.redraw(),t.rendered&&y.is(":visible")&&t.reposition(A.event)}function G(a){var b=z.button,c=z.title;if(!t.rendered)return e;a?(c||F(),E()):b.remove()}function F(){var b=v+"-title";z.titlebar&&D(),z.titlebar=a("
",{"class":j+"-titlebar "+(o.style.widget?"ui-widget-header":"")}).append(z.title=a("
",{id:b,"class":j+"-title","aria-atomic":d})).insertBefore(z.content),o.content.title.button?E():t.rendered&&t.redraw()}function E(){var b=o.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";z.button&&z.button.remove(),b.jquery?z.button=b:z.button=a("",{"class":"ui-state-default "+(o.style.widget?"":j+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),z.button.appendTo(z.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){y.hasClass(l)||t.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")}),t.redraw()}function D(){z.title&&(z.titlebar.remove(),z.titlebar=z.title=z.button=f,t.reposition())}function C(){var a=o.style.widget;y.toggleClass(k,a),z.content.toggleClass(k+"-content",a),z.titlebar&&z.titlebar.toggleClass(k+"-header",a),z.button&&z.button.toggleClass(j+"-icon",!a)}function B(a){var b=0,c,d=o,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(y[0].id=i,z.content[0].id=i+"-content",z.title[0].id=i+"-title")},"^content.text$":function(a,b,c){I(c)},"^content.title.text$":function(a,b,c){if(!c)return D();!z.title&&c&&F(),H(c)},"^content.title.button$":function(a,b,c){G(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){t.rendered&&y.appendTo(c)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(a,b,c,d,e){var f=[1,0,0];f[e[1]==="show"?"push":"unshift"](0),K.apply(t,f),J.apply(t,[1,1,0,0])},"^show.ready$":function(){t.rendered?t.show():t.render(1)},"^style.classes$":function(b,c,d){a.attr(y[0],"class",j+" qtip ui-helper-reset "+d)},"^style.widget|content.title":C,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){y[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)}},a.extend(t,{render:function(b){if(t.rendered)return t;var f=o.content.text,g=o.content.title.text,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",v),y=z.tooltip=a("
",{id:v,"class":j+" qtip ui-helper-reset "+o.style.classes,width:o.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":v+"-content","aria-hidden":d}).toggleClass(l,A.disabled).data("qtip",t).appendTo(o.position.container).append(z.content=a("
",{"class":j+"-content",id:v+"-content","aria-atomic":d})),t.rendered=-1,x=1,g&&(F(),H(g)),I(f),t.rendered=d,C(),a.each(o.events,function(b,c){a.isFunction(c)&&y.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(t)}),J(1,1,1,1),y.queue("fx",function(a){i.originalEvent=A.event,y.trigger(i,[t]),x=0,t.redraw(),(o.show.ready||b)&&t.show(A.event),a()});return t},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:y.outerHeight(),width:y.outerWidth()};break;case"offset":b=h.offset(y,o.position.container);break;default:c=B(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(t,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=t.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=B(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(o),w=x=1,a.each(b,m),w=x=0,y.is(":visible")&&t.rendered&&(i&&t.reposition(o.position.target==="mouse"?f:A.event),j&&t.redraw());return t},toggle:function(b,c){function j(){b?(a.browser.msie&&y[0].style.removeAttribute("filter"),y.css("overflow","")):y.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}if(!t.rendered)if(b)t.render(1);else return t;var d=b?"show":"hide",g=o[d],h=y.is(":visible"),i;(typeof b).search("boolean|number")&&(b=!h);if(h===b)return t;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(A.event.type)&&c.target===o.show.target[0]&&y.has(c.relatedTarget).length)return t;A.event=a.extend({},c)}i=a.Event("tooltip"+d),i.originalEvent=c?A.event:f,y.trigger(i,[t,90]);if(i.isDefaultPrevented())return t;a.attr(y[0],"aria-hidden",!b),b?(t.focus(c),t.reposition(c),g.solo&&a(m,g.solo).not(y).qtip("hide",i)):(clearTimeout(t.timers.show),t.blur(c)),y.stop(0,1),a.isFunction(g.effect)?(g.effect.call(y,t),y.queue("fx",function(a){j(),a()})):g.effect===e?(y[d](),j.call(y)):y.fadeTo(90,b?1:0,j),b&&g.target.trigger("qtip-"+p+"-inactive");return t},show:function(a){return t.toggle(d,a)},hide:function(a){return t.toggle(e,a)},focus:function(b){if(!t.rendered)return t;var c=a(m),d=parseInt(y[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;y.hasClass(n)||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+n).qtip("blur",f)),i=a.Event("tooltipfocus"),i.originalEvent=f,y.trigger(i,[t,e]),i.isDefaultPrevented()||(y.addClass(n)[0].style.zIndex=e));return t},blur:function(b){var c=a.extend({},b),d;y.removeClass(n),d=a.Event("tooltipblur"),d.originalEvent=c,y.trigger(d,[t]);return t},reposition:function(c,d){if(!t.rendered||w)return t;w=1;var f=o.position.target,g=o.position,k=g.my,l=g.at,m=g.adjust,n=m.method,p=y.outerWidth(),q=y.outerHeight(),r=0,s=0,v=a.Event("tooltipmove"),x=y.css("position")==="fixed",z=g.viewport.jquery?g.viewport:a(b),B={left:0,top:0},C=(t.plugins.tip||{}).corner,D={method:n.substr(0,5),horizontal:n.length<6||n.indexOf("horizontal")>-1,vertical:n.length<6||n.indexOf("vertical")>-1,left:function(a){if(!D.horizontal)return 0;var b=z.scrollLeft,c=k.x==="left"?p:k.x==="right"?-p:-p/2,d=l.x==="left"?r:l.x==="right"?-r:-r/2,e=C&&C.precedance==="x"?o.style.tip.width:0,f=b-a-e,g=a+p-z.width-b+e,h=c-(k.precedance==="x"||k.x===k.y?d:0),i=k.x==="center";D.method==="shift"?B.left+=f>0?f-e:g>0?-g+e:0:(f>0&&(k.x!=="left"||g>0)?B.left-=h+(i?0:2*m.x):g>0&&(k.x!=="right"||f>0)&&(B.left-=i?-h:h+2*m.x),B.left!==a&&i&&(B.left-=m.x)),B.left<0&&-B.left>g&&(B.left=a);return B.left-a},top:function(a){if(!D.vertical)return 0;var b=z.scrollTop,c=k.y==="top"?q:k.y==="bottom"?-q:-q/2,d=l.y==="top"?s:l.y==="bottom"?-s:-s/2,e=C&&C.precedance==="y"?o.style.tip.height:0,f=b-a-e,g=a+q-z.height-b+e,h=c-(k.precedance==="y"||k.x===k.y?d:0),i=k.y==="center";D.method==="shift"?B.top+=f-e>0?f:g>0?-g+e:0:(f>0&&(k.y!=="top"||g>0)?B.top-=h+(i?0:2*m.y):g>0&&(k.y!=="bottom"||f>0)&&(B.top-=i?-h:h+2*m.y),B.top!==a&&i&&(B.top-=m.y)),B.top<0&&-B.top>g&&(B.top=a);return B.top-a}};z=z?{elem:z,height:z[(z[0]===b?"h":"outerH")+"eight"](),width:z[(z[0]===b?"w":"outerW")+"idth"](),scrollLeft:z.scrollLeft(),scrollTop:z.scrollTop()}:e;if(f==="mouse")l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?A.event:m.mouse||!c||!c.pageX||/over|enter$/i.test(c.type)&&!m.mouse?a.extend({},i):c,B={top:c.pageY,left:c.pageX};else{f==="event"&&(c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=A.target=a(c.target):f=A.target),f=a(f).eq(0);if(f.length===0)return t;f[0]===document||f[0]===b?(r=f.width(),s=f.height(),f[0]===b&&(B={top:!x||h.iOS?z.scrollTop:0,left:!x||h.iOS?z.scrollLeft:0})):f.is("area")&&h.imagemap?B=h.imagemap(f,l):f[0].namespaceURI=="http://www.w3.org/2000/svg"&&h.svg?B=h.svg(f,l):(r=f.outerWidth(),s=f.outerHeight(),B=h.offset(f,g.container)),B.offset&&(r=B.width,s=B.height,B=B.offset),B.left+=l.x==="right"?r:l.x==="center"?r/2:0,B.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}B.left+=m.x+(k.x==="right"?-p:k.x==="center"?-p/2:0),B.top+=m.y+(k.y==="bottom"?-q:k.y==="center"?-q/2:0),g.viewport.jquery&&f[0]!==b&&f[0]!==u?B.adjusted={left:D.left(B.left),top:D.top(B.top)}:B.adjusted={left:0,top:0},y.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+k.abbreviation()),v.originalEvent=a.extend({},c),y.trigger(v,[t,B,z.elem]);if(v.isDefaultPrevented())return t;delete B.adjusted,d===e||isNaN(B.left)||isNaN(B.top)||!a.isFunction(g.effect)?y.css(B):a.isFunction(g.effect)&&(g.effect.call(y,t,a.extend({},B)),y.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),w=0;return t},redraw:function(){if(t.rendered<1||o.style.width||x)return t;var b=j+"-fluid",c,d,e;x=1,y.css("width","").addClass(b),c=y.width()+(a.browser.mozilla?1:0),d=parseInt(y.css("max-width"),10)||0,e=parseInt(y.css("min-width"),10)||0,c=d+e?Math.min(Math.max(c,e),d):c,y.css("width",c).removeClass(b),x=0;return t},disable:function(b){var c=l;"boolean"!==typeof b&&(b=!y.hasClass(c)&&!A.disabled),t.rendered?(y.toggleClass(c,b),a.attr(y[0],"aria-disabled",b)):A.disabled=!!b;return t},enable:function(){return t.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,q);t.rendered&&(y.remove(),a.each(t.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(t.timers.show),clearTimeout(t.timers.hide),K(1,1,1,1),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(q)),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}),"adjust"in b.position&&(/flip|shift( horizontal| vertical)*/i.test(b.position.adjust.method)||delete b.position.adjust.method)),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function r(){var c=b.console;return c&&(c.error||c.log||a.noop).apply(c,arguments)}var d=!0,e=!1,f=null,g,h,i,j="ui-tooltip",k="ui-widget",l="ui-state-disabled",m="div.qtip."+j,n=j+"-focus",o="-31000px",p="_replacedByqTip",q="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},i.hide.event==="unfocus"&&(l.hide="mouseleave"+n),k.show.bind(l.show,p),(i.show.ready||i.prerender)&&p(c)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d){function k(a,b){e.left+=b*a.scrollLeft(),e.top+=b*a.scrollTop()}var e=c.offset(),f=d,g=0,i=document.body,j;if(f){do{if(f[0]===i)break;f.css("position")!=="static"&&(j=f.position(),e.left-=j.left+(parseInt(f.css("borderLeftWidth"),10)||0),e.top-=j.top+(parseInt(f.css("borderTopWidth"),10)||0),g++)}while(f=f.offsetParent());(d[0]!==i||g>1)&&k(d,1),h.iOS<4.1&&h.iOS>3.1&&k(a(b),-1)}return e},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,q);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+p].apply(this,arguments),a.attr(d,q,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+p].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,q)),this.removeAttribute(q)}).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+p]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip"},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"},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]}}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;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;i.unbind(k).unbind(k+c.id).bind("tooltipshow"+k+" tooltiphide"+k,function(b,c,d){var e=b.type.replace("tooltip","");a.isFunction(g[e])?g[e].call(h.overlay,d,c):f[e](d)}).bind("tooltipfocus",function(a,b,c){l.css("z-index",c-1)}),f.create(),h.overlay.css("cursor",g.blur?"pointer":""),g.blur===d&&h.overlay.bind("click"+k+c.id,function(){c.hide.call(c)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}l=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).bind("resize"+k,function(){l.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return l},toggle:function(b){var g=c.options.show.modal.effect,h=b?"show":"hide",i;l||(l=f.create());if(!l.is(":animated")||b){l.stop(d,e),a.isFunction(g)?g.call(l,b):g===e?l[h]():l.fadeTo(90,b?.7:0,function(){b||a(this).hide()});return f}},show:function(){return f.toggle(d)},hide:function(){return f.toggle(e)},destroy:function(){var d=l;d&&(a(j).each(function(){var b=a(this).data("qtip");if(b&&b.id!==b.id&&b.options.show.modal)return d=e}),d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id));return i.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.substr(0,5)==="shift",q={left:0,top:0},r;i.corner.fixed!==d&&(p?(o.top&&(q.top=Math.abs(o.top)),o.left&&(q.left=Math.abs(o.left)),n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":n.precedance==="x"&&o.left&&n.y!=="center"&&(n.precedance=n.precedance==="x"?"y":"x"),!q.left&&!q.top&&(p=e)):(o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),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)&&(r=i.update(n,e))),r=i.position(n,q,1),r.right!==c&&(r.left=r.right),r.bottom!==c&&(r.top=r.bottom),r.option=Math.max(0,j.offset);if(p&&q.top&&!q.left||!p||!r)h.left-=r.left.charAt?r.option:(r.right?-1:1)*r.left;if(p&&q.left&&!q.top||!p||!r)h.top-=r.top.charAt?r.option:(r.bottom?-1:1)*r.top;p&&q.left&&n.precedance==="y"?h.left-=r.option:p&&q.top&&n.precedance==="x"&&(h.top-=r.option),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,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,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.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,null,d)},position:function(b,c,f){var g=k.tip,h={},m,o,q;if(j.corner===e||!g)return e;b=b||i.corner,m=b.precedance,o=v(b),q=[b.x,b.y],c=[Math.max(0,j.offset+(c?c.left:0)),Math.max(0,j.offset+(c?c.top:0))],m==="x"&&(q.reverse(),c.reverse()),a.each(q,function(a,e){var f,g,i;e==="center"?(g=m==="y"?"left":"top",h[g]="50%",h["margin-"+g]=-Math.round(o[m==="y"?"width":"height"]/2)+c[a]):(g=t(b,e,d),i=u(b),f=a&&m==="y"?"height":"width",h[e]=Math.min(l[f]()-n[f]-p,a?t(b,e)+(a?0:i):c[a]+(i>g?i:0)))}),h[b[m]]-=o[m==="x"?"width":"height"],f&&g.css({top:"",bottom:"",left:"",right:"",margin:""}).css(h);return h},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"?(f.unbind(h),d&&f.bind("tooltipshow"+h,c.load)):g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.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.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,u=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,v=m.data(c.metadata.name||"qtipopts");try{v=typeof v==="string"?(new Function("return "+v))():v}catch(w){r("Unable to parse HTML5 attribute data: "+v)}l=a.extend(d,{},g.defaults,c,typeof v==="object"?s(v):f,s(u||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,q,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,o,p,r){function K(c,d,e,f){f=parseInt(f,10)!==0;var g=".qtip-"+p,h={show:c&&o.show.target[0],hide:d&&o.hide.target[0],tooltip:e&&t.rendered&&z.tooltip[0],content:e&&t.rendered&&z.content[0],container:f&&o.position.container[0]===u?document:o.position.container[0],window:f&&b};t.rendered?a([]).pushStack(a.grep([h.show,h.hide,h.tooltip,h.container,h.content,h.window],function(a){return typeof a==="object"})).unbind(g):c&&o.show.target.unbind(g+"-create")}function J(d,f,h,j){function B(a){y.is(":visible")&&t.reposition(a)}function A(a){if(y.hasClass(l))return e;clearTimeout(t.timers.inactive),t.timers.inactive=setTimeout(function(){t.hide(a)},o.hide.inactive)}function x(b){if(y.hasClass(l))return e;var c=a(b.relatedTarget||b.target),d=c.closest(m)[0]===y[0],f=c[0]===q.show[0];clearTimeout(t.timers.show),clearTimeout(t.timers.hide);if(n.target==="mouse"&&d||o.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||f))){b.stopPropagation(),b.preventDefault();return e}o.hide.delay>0?t.timers.hide=setTimeout(function(){t.hide(b)},o.hide.delay):t.hide(b)}function w(a){if(y.hasClass(l))return e;q.show.trigger("qtip-"+p+"-inactive"),clearTimeout(t.timers.show),clearTimeout(t.timers.hide);var b=function(){t.show(a)};o.show.delay>0?t.timers.show=setTimeout(b,o.show.delay):b()}var k=".qtip-"+p,n=o.position,q={show:o.show.target,hide:o.hide.target,container:n.container[0]===u?a(document):n.container,doc:a(document)},r={show:a.trim(""+o.show.event).split(" "),hide:a.trim(""+o.hide.event).split(" ")},s=a.browser.msie&&parseInt(a.browser.version,10)===6,v;h&&(o.hide.fixed&&(q.hide=q.hide.add(y),y.bind("mouseover"+k,function(){y.hasClass(l)||clearTimeout(t.timers.hide)})),n.target==="mouse"&&n.adjust.mouse&&o.hide.event&&y.bind("mouseleave"+k,function(a){(a.relatedTarget||a.target)!==q.show[0]&&t.hide(a)}),y.bind("mouseenter"+k+" mouseleave"+k,function(a){t[a.type==="mouseenter"?"focus":"blur"](a)})),f&&("number"===typeof o.hide.inactive&&(q.show.bind("qtip-"+p+"-inactive",A),a.each(g.inactiveEvents,function(a,b){q.hide.add(z.tooltip).bind(b+k+"-inactive",A)})),a.each(r.hide,function(b,c){var d=a.inArray(c,r.show),e=a(q.hide);d>-1&&e.add(q.show).length===e.length||c==="unfocus"?(q.show.bind(c+k,function(a){y.is(":visible")?x(a):w(a)}),delete r.show[d]):q.hide.bind(c+k,x)})),d&&a.each(r.show,function(a,b){q.show.bind(b+k,w)}),j&&((n.adjust.resize||n.viewport)&&a(a.event.special.resize?n.viewport:b).bind("resize"+k,B),(n.viewport||s&&y.css("position")==="fixed")&&a(n.viewport).bind("scroll"+k,B),/unfocus/i.test(o.hide.event)&&q.doc.bind("mousedown"+k,function(b){var d=a(b.target);d.parents(m).length===0&&d.add(c).length>1&&y.is(":visible")&&!y.hasClass(l)&&t.hide(b)}),o.hide.leave&&/mouseleave|mouseout/i.test(o.hide.event)&&a(b).bind("blur"+k+" mouse"+(o.hide.leave.indexOf("frame")>-1?"out":"leave")+k,function(a){a.relatedTarget||t.hide(a)}),n.target==="mouse"&&q.doc.bind("mousemove"+k,function(a){n.adjust.mouse&&!y.hasClass(l)&&y.is(":visible")&&t.reposition(a||i)}))}function I(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(t.redraw(),t.reposition(A.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=t.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=z.content;if(!t.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,t)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),t.rendered<0?y.queue("fx",g):(x=0,g(a.noop));return t}function H(b){var d=z.title;if(!t.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,t)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),t.redraw(),t.rendered&&y.is(":visible")&&t.reposition(A.event)}function G(a){var b=z.button,c=z.title;if(!t.rendered)return e;a?(c||F(),E()):b.remove()}function F(){var b=v+"-title";z.titlebar&&D(),z.titlebar=a("
",{"class":j+"-titlebar "+(o.style.widget?"ui-widget-header":"")}).append(z.title=a("
",{id:b,"class":j+"-title","aria-atomic":d})).insertBefore(z.content),o.content.title.button?E():t.rendered&&t.redraw()}function E(){var b=o.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";z.button&&z.button.remove(),b.jquery?z.button=b:z.button=a("",{"class":"ui-state-default "+(o.style.widget?"":j+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),z.button.appendTo(z.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){y.hasClass(l)||t.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")}),t.redraw()}function D(){z.title&&(z.titlebar.remove(),z.titlebar=z.title=z.button=f,t.reposition())}function C(){var a=o.style.widget;y.toggleClass(k,a),z.content.toggleClass(k+"-content",a),z.titlebar&&z.titlebar.toggleClass(k+"-header",a),z.button&&z.button.toggleClass(j+"-icon",!a)}function B(a){var b=0,c,d=o,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(y[0].id=i,z.content[0].id=i+"-content",z.title[0].id=i+"-title")},"^content.text$":function(a,b,c){I(c)},"^content.title.text$":function(a,b,c){if(!c)return D();!z.title&&c&&F(),H(c)},"^content.title.button$":function(a,b,c){G(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){t.rendered&&y.appendTo(c)},"^(show|hide).(event|target|fixed|delay|inactive)$":function(a,b,c,d,e){var f=[1,0,0];f[e[1]==="show"?"push":"unshift"](0),K.apply(t,f),J.apply(t,[1,1,0,0])},"^show.ready$":function(){t.rendered?t.show():t.render(1)},"^style.classes$":function(b,c,d){a.attr(y[0],"class",j+" qtip ui-helper-reset "+d)},"^style.widget|content.title":C,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){y[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)}},a.extend(t,{render:function(b){if(t.rendered)return t;var f=o.content.text,g=o.content.title.text,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",v),y=z.tooltip=a("
",{id:v,"class":j+" qtip ui-helper-reset "+o.style.classes,width:o.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":v+"-content","aria-hidden":d}).toggleClass(l,A.disabled).data("qtip",t).appendTo(o.position.container).append(z.content=a("
",{"class":j+"-content",id:v+"-content","aria-atomic":d})),t.rendered=-1,x=1,g&&(F(),H(g)),I(f),t.rendered=d,C(),a.each(o.events,function(b,c){a.isFunction(c)&&y.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(t)}),J(1,1,1,1),y.queue("fx",function(a){i.originalEvent=A.event,y.trigger(i,[t]),x=0,t.redraw(),(o.show.ready||b)&&t.show(A.event),a()});return t},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:y.outerHeight(),width:y.outerWidth()};break;case"offset":b=h.offset(y,o.position.container);break;default:c=B(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(t,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=t.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=B(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(o),w=x=1,a.each(b,m),w=x=0,y.is(":visible")&&t.rendered&&(i&&t.reposition(o.position.target==="mouse"?f:A.event),j&&t.redraw());return t},toggle:function(b,c){function j(){b?(a.browser.msie&&y[0].style.removeAttribute("filter"),y.css("overflow","")):y.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}if(!t.rendered)if(b)t.render(1);else return t;var d=b?"show":"hide",g=o[d],h=y.is(":visible"),i;(typeof b).search("boolean|number")&&(b=!h);if(h===b)return t;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(A.event.type)&&c.target===o.show.target[0]&&y.has(c.relatedTarget).length)return t;A.event=a.extend({},c)}i=a.Event("tooltip"+d),i.originalEvent=c?A.event:f,y.trigger(i,[t,90]);if(i.isDefaultPrevented())return t;a.attr(y[0],"aria-hidden",!b),b?(t.focus(c),t.reposition(c),g.solo&&a(m,g.solo).not(y).qtip("hide",i)):(clearTimeout(t.timers.show),t.blur(c)),y.stop(0,1),a.isFunction(g.effect)?(g.effect.call(y,t),y.queue("fx",function(a){j(),a()})):g.effect===e?(y[d](),j.call(y)):y.fadeTo(90,b?1:0,j),b&&g.target.trigger("qtip-"+p+"-inactive");return t},show:function(a){return t.toggle(d,a)},hide:function(a){return t.toggle(e,a)},focus:function(b){if(!t.rendered)return t;var c=a(m),d=parseInt(y[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;y.hasClass(n)||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+n).qtip("blur",f)),i=a.Event("tooltipfocus"),i.originalEvent=f,y.trigger(i,[t,e]),i.isDefaultPrevented()||(y.addClass(n)[0].style.zIndex=e));return t},blur:function(b){var c=a.extend({},b),d;y.removeClass(n),d=a.Event("tooltipblur"),d.originalEvent=c,y.trigger(d,[t]);return t},reposition:function(c,d){if(!t.rendered||w)return t;w=1;var f=o.position.target,g=o.position,k=g.my,l=g.at,m=g.adjust,n=m.method,p=y.outerWidth(),q=y.outerHeight(),r=0,s=0,v=a.Event("tooltipmove"),x=y.css("position")==="fixed",z=g.viewport.jquery?g.viewport:a(b),B={left:0,top:0},C=(t.plugins.tip||{}).corner,D={method:n.substr(0,5),horizontal:n.length<6||n.indexOf("horizontal")>-1,vertical:n.length<6||n.indexOf("vertical")>-1,left:function(a){if(!D.horizontal)return 0;var b=(z.offset.left||0)+z.scrollLeft,c=k.x==="left"?p:k.x==="right"?-p:-p/2,d=l.x==="left"?r:l.x==="right"?-r:-r/2,e=C&&C.precedance==="x"?o.style.tip.width:0,f=b-a-e,g=a+p-z.width-b+e,h=c-(k.precedance==="x"||k.x===k.y?d:0),i=k.x==="center";D.method==="shift"?B.left+=f>0?f-e:g>0?-g+e:0:(f>0&&(k.x!=="left"||g>0)?B.left-=h+(i?0:2*m.x):g>0&&(k.x!=="right"||f>0)&&(B.left-=i?-h:h+2*m.x),B.left!==a&&i&&(B.left-=m.x)),B.left<0&&-B.left>g&&(B.left=a);return B.left-a},top:function(a){if(!D.vertical)return 0;var b=(z.offset.top||0)+z.scrollTop,c=k.y==="top"?q:k.y==="bottom"?-q:-q/2,d=l.y==="top"?s:l.y==="bottom"?-s:-s/2,e=C&&C.precedance==="y"?o.style.tip.height:0,f=b-a-e,g=a+q-z.height-b+e,h=c-(k.precedance==="y"||k.x===k.y?d:0),i=k.y==="center";D.method==="shift"?B.top+=f-e>0?f:g>0?-g+e:0:(f>0&&(k.y!=="top"||g>0)?B.top-=h+(i?0:2*m.y):g>0&&(k.y!=="bottom"||f>0)&&(B.top-=i?-h:h+2*m.y),B.top!==a&&i&&(B.top-=m.y)),B.top<0&&-B.top>g&&(B.top=a);return B.top-a}};z=z?{elem:z,height:z[(z[0]===b?"h":"outerH")+"eight"](),width:z[(z[0]===b?"w":"outerW")+"idth"](),scrollLeft:z.scrollLeft(),scrollTop:z.scrollTop(),offset:z.offset()||{}}:e;if(f==="mouse")l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?A.event:m.mouse||!c||!c.pageX||/over|enter$/i.test(c.type)&&!m.mouse?a.extend({},i):c,B={top:c.pageY,left:c.pageX};else{f==="event"&&(c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=A.target=a(c.target):f=A.target),f=a(f).eq(0);if(f.length===0)return t;f[0]===document||f[0]===b?(r=f.width(),s=f.height(),f[0]===b&&(B={top:!x||h.iOS?z.scrollTop:0,left:!x||h.iOS?z.scrollLeft:0})):f.is("area")&&h.imagemap?B=h.imagemap(f,l):f[0].namespaceURI=="http://www.w3.org/2000/svg"&&h.svg?B=h.svg(f,l):(r=f.outerWidth(),s=f.outerHeight(),B=h.offset(f,g.container)),B.offset&&(r=B.width,s=B.height,B=B.offset),B.left+=l.x==="right"?r:l.x==="center"?r/2:0,B.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}B.left+=m.x+(k.x==="right"?-p:k.x==="center"?-p/2:0),B.top+=m.y+(k.y==="bottom"?-q:k.y==="center"?-q/2:0),g.viewport.jquery&&f[0]!==b&&f[0]!==u?B.adjusted={left:D.left(B.left),top:D.top(B.top)}:B.adjusted={left:0,top:0},y.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(j+"-pos-"+k.abbreviation()),v.originalEvent=a.extend({},c),y.trigger(v,[t,B,z.elem]);if(v.isDefaultPrevented())return t;delete B.adjusted,d===e||isNaN(B.left)||isNaN(B.top)||!a.isFunction(g.effect)?y.css(B):a.isFunction(g.effect)&&(g.effect.call(y,t,a.extend({},B)),y.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),w=0;return t},redraw:function(){if(t.rendered<1||o.style.width||x)return t;var b=j+"-fluid",c,d,e;x=1,y.css("width","").addClass(b),c=y.width()+(a.browser.mozilla?1:0),d=parseInt(y.css("max-width"),10)||0,e=parseInt(y.css("min-width"),10)||0,c=d+e?Math.min(Math.max(c,e),d):c,y.css("width",c).removeClass(b),x=0;return t},disable:function(b){var c=l;"boolean"!==typeof b&&(b=!y.hasClass(c)&&!A.disabled),t.rendered?(y.toggleClass(c,b),a.attr(y[0],"aria-disabled",b)):A.disabled=!!b;return t},enable:function(){return t.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,q);t.rendered&&(y.remove(),a.each(t.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(t.timers.show),clearTimeout(t.timers.hide),K(1,1,1,1),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(q)),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}),"adjust"in b.position&&(/flip|shift( horizontal| vertical)*/i.test(b.position.adjust.method)||delete b.position.adjust.method)),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function r(){var c=b.console;return c&&(c.error||c.log||a.noop).apply(c,arguments)}var d=!0,e=!1,f=null,g,h,i,j="ui-tooltip",k="ui-widget",l="ui-state-disabled",m="div.qtip."+j,n=j+"-focus",o="-31000px",p="_replacedByqTip",q="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},i.hide.event==="unfocus"&&(l.hide="mouseleave"+n),k.show.bind(l.show,p),(i.show.ready||i.prerender)&&p(c)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d){function k(a,b){e.left+=b*a.scrollLeft(),e.top+=b*a.scrollTop()}var e=c.offset(),f=d,g=0,i=document.body,j;if(f){do{if(f[0]===i)break;f.css("position")!=="static"&&(j=f.position(),e.left-=j.left+(parseInt(f.css("borderLeftWidth"),10)||0),e.top-=j.top+(parseInt(f.css("borderTopWidth"),10)||0),g++)}while(f=f.offsetParent());(d[0]!==i||g>1)&&k(d,1),h.iOS<4.1&&h.iOS>3.1&&k(a(b),-1)}return e},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,q);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+p].apply(this,arguments),a.attr(d,q,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+p].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,q)),this.removeAttribute(q)}).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+p]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip"},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"},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]}}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}('"5v 5w",9(a,b,c){9 z(b){P c=Q,d=b.2M,e=d.1o,f=".1Y-"+b.1h;a.1i(c,{1V:9(){d.1Y=a(\'<4W 1I="1r-1o-1Y" 7X="0" 5x="-1" 5y="5z:\\\'\\\';" 13="2g:2L; 11:3N; z-51:-1; 2t:7U(4f=0); -5A-2t:"5B:5C.80.7w(5E=0)";">\'),d.1Y.2G(e),e.18("4a"+f,c.1G)},1G:9(){P a=b.3Q("4Y"),c=b.1D.16,f=d.16,g,h;h=1x(e.X("1d-N-T"),10)||0,h={N:-h,M:-h},c&&f&&(g=c.1g.1c==="x"?["T","N"]:["V","M"],h[g[1]]-=f[g[0]]()),d.1Y.X(h).X(a)},2a:9(){d.1Y.1P(),e.1z(f)}}),c.1V()}9 y(c){P f=Q,g=c.1J.O.1t,h=c.2M,i=h.1o,j="#1a-26",k=".5G",l;c.2N.1t={"^O.1t.(2S|1N)$":9(){f.1V(),h.26.27(i.1U(":2e"))}},a.1i(f,{1V:9(){S(!g.2S)L f;i.1z(k).1z(k+c.1h).18("3y"+k+" 4X"+k,9(b,c,d){P e=b.1v.28("1o","");a.1Q(g[e])?g[e].1E(h.26,d,c):f[e](d)}).18("56",9(a,b,c){l.X("z-51",c-1)}),f.2c(),h.26.X("5H",g.1N?"5I":""),g.1N===d&&h.26.18("49"+k+c.1h,9(){c.R.1E(c)});L f},2c:9(){P c=a(j);S(c.17){h.26=c;L c}l=h.26=a("<2h />",{1h:j.29(1),X:{11:"3N",M:0,N:0,2g:"4s"},3o:9(){L e}}).2G(1A.35),a(b).18("2n"+k,9(){l.X({V:19.2A(a(b).V(),a(1A).V()),T:19.2A(a(b).T(),a(1A).T())})}).2o("2n");L l},27:9(b){P g=c.1J.O.1t.1K,h=b?"O":"R",i;l||(l=f.2c());S(!l.1U(":7A")||b){l.4l(d,e),a.1Q(g)?g.1E(l,b):g===e?l[h]():l.54(3I,b?.7:0,9(){b||a(Q).R()});L f}},O:9(){L f.27(d)},R:9(){L f.27(e)},2a:9(){P d=l;d&&(a(j).1j(9(){P b=a(Q).23("1a");S(b&&b.1h!==b.1h&&b.1J.O.1t)L d=e}),d?(h.26.1P(),a(b).1z(k)):h.26.1z(k+c.1h));L i.1z(k)}}),f.1V()}9 x(b,g){9 v(a){P b=a.1c==="y",c=n[b?"T":"V"],d=n[b?"V":"T"],e=a.1m().2E("1n")>-1,f=c*(e?.5:1),g=19.5L,h=19.40,i,j,k,l=19.3S(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=19.3S(g(m[0],2)-g(p,2)),m[3]=19.3S(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)];L{V:k[b?0:1],T:k[b?1:0]}}9 u(b){P c=k.1y&&b.y==="M",d=c?k.1y:k.U,e=a.21.5n,f=e?"-5N-":a.21.4N?"-4N-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1d-4m-"+g:"1d-"+g+"-4m");L 1x(d.X(h),10)||1x(l.X(h),10)||0}9 t(a,b,c){b=b?b:a[a.1c];P d=k.1y&&a.y==="M",e=d?k.1y:k.U,f="1d-"+b+"-T",g=1x(e.X(f),10);L(c?g||1x(l.X(f),10):g)||0}9 s(f,g,h,l){S(k.16){P n=a.1i({},i.1g),o=h.3F,p=b.1J.11.1G.2m.29(0,5)==="3K",q={N:0,M:0},r;i.1g.2l!==d&&(p?(o.M&&(q.M=19.2P(o.M)),o.N&&(q.N=19.2P(o.N)),n.1c==="y"&&o.M&&n.x!=="1n"?n.1c=n.1c==="y"?"x":"y":n.1c==="x"&&o.N&&n.y!=="1n"&&(n.1c=n.1c==="x"?"y":"x"),!q.N&&!q.M&&(p=e)):(o.N&&(n.x=n.x==="1n"?o.N>0?"N":"1k":n.x==="N"?"1k":"N"),o.M&&(n.y=n.y==="1n"?o.M>0?"M":"1l":n.y==="M"?"1l":"M")),n.1m()!==m.1g&&(m.M!==o.M||m.N!==o.N)&&(r=i.39(n,e))),r=i.11(n,q,1),r.1k!==c&&(r.N=r.1k),r.1l!==c&&(r.M=r.1l),r.2I=19.2A(0,j.W);S(p&&q.M&&!q.N||!p||!r)h.N-=r.N.3c?r.2I:(r.1k?-1:1)*r.N;S(p&&q.N&&!q.M||!p||!r)h.M-=r.M.3c?r.2I:(r.1l?-1:1)*r.M;p&&q.N&&n.1c==="y"?h.N-=r.2I:p&&q.M&&n.1c==="x"&&(h.M-=r.2I),m.N=o.N,m.M=o.M,m.1g=n.1m()}}P i=Q,j=b.1J.13.16,k=b.2M,l=k.1o,m={M:0,N:0,1g:""},n={T:j.T,V:j.V},o={},p=j.1d||0,q=".1a-16",r=a("<4n />")[0].3O;i.1g=f,i.3r=f,b.2N.16={"^11.1O|13.16.(1g|3r|1d)$":9(){i.1V()||i.2a(),b.1T()},"^13.16.(V|T)$":9(){n={T:j.T,V:j.V},i.2c(),i.39(),b.1T()},"^U.15.1p|13.(2Z|2i)$":9(){k.16&&i.39()}},a.1i(i,{1V:9(){P b=i.5r()&&(r||a.21.37);b&&(i.2c(),i.39(),l.1z(q).18("4a"+q,s));L b},5r:9(){P a=j.1g,c=b.1J.11,f=c.2p,g=c.1O.1m?c.1O.1m():c.1O;S(a===e||g===e&&f===e)L e;a===d?i.1g=1C h.2w(g):a.1m||(i.1g=1C h.2w(a),i.1g.2l=d);L i.1g.1m()!=="5p"},4q:9(){P c,d,e,f=k.16.X({5P:"",1d:""}),g=i.1g,h=g[g.1c],m="1d-"+h+"-2Y",p="1d"+h.3c(0)+h.29(1)+"6x",q=/5Q?\\(0, 0, 0(, 0)?\\)|3n/i,r="5S-2Y",s="3n",t="1r-1o-5k",u=a(1A.35).X("2Y"),v=b.2M.U.X("2Y"),w=k.1y&&(g.y==="M"||g.y==="1n"&&f.11().M+n.V/2+j.W",{"1I":"1r-1o-16"}).X({T:b,V:c}).5T(l),r?a("<4n />").2G(k.16)[0].3O("2d").4o():(d=\'<48:3T 5U="0,0" 13="2g:4z-2L; 11:3N; 4x:2j(#3z#4y);">\',k.16.2J(p?d+=d:d))},39:9(b,c){P g=k.16,l=g.5V(),m=n.T,q=n.V,s="3P 5W ",u="3P 5X 3n",x=j.3r,y=19.40,z,A,B,C,D;b||(b=i.1g),x===e?x=b:(x=1C h.2w(x),x.1c=b.1c,x.x==="3B"?x.x=b.x:x.y==="3B"?x.y=b.y:x.x===x.y&&(x[b.1c]=b[b.1c])),z=x.1c,i.4q(),p=o.1d==="3n"||o.1d==="#5Y"?0:j.1d===d?t(b,f,d):j.1d,B=w(x,m,q),D=v(b),g.X(D),b.1c==="y"?C=[y(x.x==="N"?p:x.x==="1k"?D.T-m-p:(D.T-m)/2),y(x.y==="M"?D.V-q:0)]:C=[y(x.x==="N"?D.T-m:0),y(x.y==="M"?p:x.y==="1l"?D.V-q-p:(D.V-q)/2)],r?(l.14(D),A=l[0].3O("2d"),A.5Z(),A.4o(),A.60(0,0,4p,4p),A.62(C[0],C[1]),A.63(),A.64(B[0][0],B[0][1]),A.5m(B[1][0],B[1][1]),A.5m(B[2][0],B[2][1]),A.65(),A.66=o.2C,A.7W=o.1d,A.67=p*2,A.68="4V",A.69=7S,A.55(),A.2C()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6b",C[2]=p&&/^(r|b)/i.1w(b.1m())?4E(a.21.3C,10)===8?2:1:0,l.X({6c:""+(x.1m().2E("1n")>-1),N:C[0]-C[2]*5b(z==="x"),M:C[1]-C[2]*5b(z==="y"),T:m+p,V:q+p}).1j(9(b){P c=a(Q);c.14({6d:m+p+" "+(q+p),6f:B,6g:o.2C,6h:!!b,6i:!b}).X({2g:p||b?"2L":"4s"}),!b&&p>0&&c.2J()===""&&c.2J(\'<48:55 6j="\'+p*2+\'3P" 2Y="\'+o.1d+\'" 6k="6l" 6m="4V" 13="4x:2j(#3z#4y); 2g:4z-2L;" />\')})),c!==e&&i.11(b,5h,d)},11:9(b,c,f){P g=k.16,h={},m,o,q;S(j.1g===e||!g)L e;b=b||i.1g,m=b.1c,o=v(b),q=[b.x,b.y],c=[19.2A(0,j.W+(c?c.N:0)),19.2A(0,j.W+(c?c.M:0))],m==="x"&&(q.4R(),c.4R()),a.1j(q,9(a,e){P f,g,i;e==="1n"?(g=m==="y"?"N":"M",h[g]="50%",h["4S-"+g]=-19.40(o[m==="y"?"T":"V"]/2)+c[a]):(g=t(b,e,d),i=u(b),f=a&&m==="y"?"V":"T",h[e]=19.4g(l[f]()-n[f]-p,a?t(b,e)+(a?0:i):c[a]+(i>g?i:0)))}),h[b[m]]-=o[m==="x"?"T":"V"],f&&g.X({M:"",1l:"",N:"",1k:"",4S:""}).X(h);L h},2a:9(){k.16&&k.16.1P(),l.1z(q)}}),i.1V()}9 w(a,b,c){P d=19.3x(b/2),e=19.3x(c/2),f={4D:[[0,0],[b,c],[b,0]],4O:[[0,0],[b,0],[0,c]],4B:[[0,c],[b,0],[b,c]],4C:[[0,0],[0,c],[b,c]],7q:[[0,c],[d,0],[b,c]],7p:[[0,0],[b,0],[d,c]],6q:[[0,0],[b,e],[0,c]],6r:[[b,0],[b,c],[0,e]]};f.7m=f.4D,f.6t=f.4O,f.6v=f.4B,f.6w=f.4C;L f[a.1m()]}9 v(b){P c=Q,f=b.2M.1o,g=b.1J.U.1u,h=".1a-1u",i=/<3V\\b[^<]*(?:(?!<\\/3V>)<[^<]*)*<\\/3V>/4r,j=d;b.2N.1u={"^U.1u":9(a,b,d){b==="1u"&&(g=d),b==="2x"?(f.1z(h),d&&f.18("3y"+h,c.3s)):g&&g.2j?c.3s():f.1z(h)}},a.1i(c,{1V:9(){g&&g.2j&&f.18("3y"+h,c.3s);L c},3s:9(d,h){9 p(a,c,d){b.32("U.1p",c+": "+d),n()}9 o(c){l&&(c=a("<2h/>").2W(c.28(i,"")).4H(l)),b.32("U.1p",c),n()}9 n(){m&&(f.X("45",""),h=e)}S(d.3D())L c;P j=g.2j.2E(" "),k=g.2j,l,m=g.2x&&!g.5s&&h;m&&f.X("45","3M"),j>-1&&(l=k.29(j),k=k.29(0,j)),a.1u(a.1i({7c:o,4j:p,6y:b},g,{2j:k}));L c}}),c.1V()}9 u(b,c){P i,j,k,l,m=a(Q),n=a(1A.35),o=Q===1A?n:m,p=m.1X?m.1X(c.1X):f,u=c.1X.1v==="79"&&p?p[c.1X.3Z]:f,v=m.23(c.1X.3Z||"6B");6C{v=Y v==="1m"?(1C 76("L "+v))():v}75(w){r("74 6F 6H 6I 6K 23: "+v)}l=a.1i(d,{},g.3g,c,Y v==="1e"?s(v):f,s(u||p)),p&&a.5q(Q,"1X"),j=l.11,l.1h=b;S("2T"===Y l.U.1p){k=m.14(l.U.14);S(l.U.14!==e&&k)l.U.1p=k;2r L e}j.1s===e&&(j.1s=n),j.12===e&&(j.12=o),l.O.12===e&&(l.O.12=o),l.O.3f===d&&(l.O.3f=n),l.R.12===e&&(l.R.12=o),l.11.1Z===d&&(l.11.1Z=j.1s),j.2p=1C h.2w(j.2p),j.1O=1C h.2w(j.1O);S(a.23(Q,"1a"))S(l.4d)m.1a("2a");2r S(l.4d===e)L e;a.14(Q,"15")&&(a.14(Q,q,a.14(Q,"15")),Q.3v("15")),i=1C t(m,l,b,!!k),a.23(Q,"1a",i),m.18("1P.1a",9(){i.2a()});L i}9 t(c,o,p,r){9 K(c,d,e,f){f=1x(f,10)!==0;P g=".1a-"+p,h={O:c&&o.O.12[0],R:d&&o.R.12[0],1o:e&&t.1f&&z.1o[0],U:e&&t.1f&&z.U[0],1s:f&&o.11.1s[0]===u?1A:o.11.1s[0],3J:f&&b};t.1f?a([]).6L(a.6Y([h.O,h.R,h.1o,h.1s,h.U,h.3J],9(a){L Y a==="1e"})).1z(g):c&&o.O.12.1z(g+"-2c")}9 J(d,f,h,j){9 B(a){y.1U(":2e")&&t.1T(a)}9 A(a){S(y.2b(l))L e;1F(t.1q.1S),t.1q.1S=3a(9(){t.R(a)},o.R.1S)}9 x(b){S(y.2b(l))L e;P c=a(b.3m||b.12),d=c.6X(m)[0]===y[0],f=c[0]===q.O[0];1F(t.1q.O),1F(t.1q.R);S(n.12==="1H"&&d||o.R.2l&&(/1H(46|2Q|3Y)/.1w(b.1v)&&(d||f))){b.6W(),b.6O();L e}o.R.22>0?t.1q.R=3a(9(){t.R(b)},o.R.22):t.R(b)}9 w(a){S(y.2b(l))L e;q.O.2o("1a-"+p+"-1S"),1F(t.1q.O),1F(t.1q.R);P b=9(){t.O(a)};o.O.22>0?t.1q.O=3a(b,o.O.22):b()}P k=".1a-"+p,n=o.11,q={O:o.O.12,R:o.R.12,1s:n.1s[0]===u?a(1A):n.1s,3U:a(1A)},r={O:a.3E(""+o.O.1b).33(" "),R:a.3E(""+o.R.1b).33(" ")},s=a.21.37&&1x(a.21.3C,10)===6,v;h&&(o.R.2l&&(q.R=q.R.2H(y),y.18("6Q"+k,9(){y.2b(l)||1F(t.1q.R)})),n.12==="1H"&&n.1G.1H&&o.R.1b&&y.18("2O"+k,9(a){(a.3m||a.12)!==q.O[0]&&t.R(a)}),y.18("3e"+k+" 2O"+k,9(a){t[a.1v==="3e"?"2y":"1N"](a)})),f&&("2D"===Y o.R.1S&&(q.O.18("1a-"+p+"-1S",A),a.1j(g.53,9(a,b){q.R.2H(z.1o).18(b+k+"-1S",A)})),a.1j(r.R,9(b,c){P d=a.6R(c,r.O),e=a(q.R);d>-1&&e.2H(q.O).17===e.17||c==="4e"?(q.O.18(c+k,9(a){y.1U(":2e")?x(a):w(a)}),2s r.O[d]):q.R.18(c+k,x)})),d&&a.1j(r.O,9(a,b){q.O.18(b+k,w)}),j&&((n.1G.2n||n.1Z)&&a(a.1b.6T.2n?n.1Z:b).18("2n"+k,B),(n.1Z||s&&y.X("11")==="2l")&&a(n.1Z).18("4c"+k,B),/4e/i.1w(o.R.1b)&&q.3U.18("3o"+k,9(b){P d=a(b.12);d.6U(m).17===0&&d.2H(c).17>1&&y.1U(":2e")&&!y.2b(l)&&t.R(b)}),o.R.2Q&&/2O|4M/i.1w(o.R.1b)&&a(b).18("1N"+k+" 1H"+(o.R.2Q.2E("6V")>-1?"46":"2Q")+k,9(a){a.3m||t.R(a)}),n.12==="1H"&&q.3U.18("3k"+k,9(a){n.1G.1H&&!y.2b(l)&&y.1U(":2e")&&t.1T(a||i)}))}9 I(b,d){9 g(a){9 c(c){(b=b.3l(Q)).17===0&&(t.2z(),t.1T(A.1b),a())}P b;S((b=f.4H("3u:3l([V]):3l([T])")).17===0)L c.1E(b);b.1j(9(a,b){(9 d(){P e=t.1q.3u;S(b.V&&b.T){1F(e[a]);L c.1E(b)}e[a]=3a(d,20)})()})}P f=z.U;S(!t.1f||!b)L e;a.1Q(b)&&(b=b.1E(c,t)||""),b.1W&&b.17>0?f.4I().2W(b.X({2g:"2L"})):f.2J(b),t.1f<0?y.3G("3R",g):(x=0,g(a.5l));L t}9 H(b){P d=z.15;S(!t.1f||!b)L e;a.1Q(b)&&(b=b.1E(c,t)||""),b.1W&&b.17>0?d.4I().2W(b.X({2g:"2L"})):d.2J(b),t.2z(),t.1f&&y.1U(":2e")&&t.1T(A.1b)}9 G(a){P b=z.1B,c=z.15;S(!t.1f)L e;a?(c||F(),E()):b.1P()}9 F(){P b=v+"-15";z.1y&&D(),z.1y=a("<2h />",{"1I":j+"-1y "+(o.13.2i?"1r-2i-4P":"")}).2W(z.15=a("<2h />",{1h:b,"1I":j+"-15","1L-41":d})).71(z.U),o.U.15.1B?E():t.1f&&t.2z()}9 E(){P b=o.U.15.1B,c=Y b==="1m",d=c?b:"72 1o";z.1B&&z.1B.1P(),b.1W?z.1B=b:z.1B=a("",{"1I":"1r-2X-3z "+(o.13.2i?"":j+"-3w"),15:d,"1L-73":d}).77(a("<78 />",{"1I":"1r-3w 1r-3w-7a",2J:"&7b;"})),z.1B.2G(z.1y).14("4U","1B").4K(9(b){a(Q).2q("1r-2X-4K",b.1v==="3e")}).49(9(a){y.2b(l)||t.R(a);L e}).18("3o 7e 58 7f 4M",9(b){a(Q).2q("1r-2X-7g 1r-2X-2y",b.1v.29(-4)==="7i")}),t.2z()}9 D(){z.15&&(z.1y.1P(),z.1y=z.15=z.1B=f,t.1T())}9 C(){P a=o.13.2i;y.2q(k,a),z.U.2q(k+"-U",a),z.1y&&z.1y.2q(k+"-4P",a),z.1B&&z.1B.2q(j+"-3w",!a)}9 B(a){P b=0,c,d=o,e=a.33(".");2V(d=d[e[b++]])b0&&!a("#"+i).17&&(y[0].1h=i,z.U[0].1h=i+"-U",z.15[0].1h=i+"-15")},"^U.1p$":9(a,b,c){I(c)},"^U.15.1p$":9(a,b,c){S(!c)L D();!z.15&&c&&F(),H(c)},"^U.15.1B$":9(a,b,c){G(c)},"^11.(1O|2p)$":9(a,b,c){"1m"===Y c&&(a[b]=1C h.2w(c))},"^11.1s$":9(a,b,c){t.1f&&y.2G(c)},"^(O|R).(1b|12|2l|22|1S)$":9(a,b,c,d,e){P f=[1,0,0];f[e[1]==="O"?"43":"7n"](0),K.24(t,f),J.24(t,[1,1,0,0])},"^O.2R$":9(){t.1f?t.O():t.1R(1)},"^13.2Z$":9(b,c,d){a.14(y[0],"1I",j+" 1a 1r-4Q-4T "+d)},"^13.2i|U.15":C,"^3L.(1R|O|3Y|R|2y|1N)$":9(b,c,d){y[(a.1Q(d)?"":"7o")+"18"]("1o"+c,d)}},a.1i(t,{1R:9(b){S(t.1f)L t;P f=o.U.1p,g=o.U.15.1p,i=a.38("7r");a.14(c[0],"1L-4i",v),y=z.1o=a("<2h/>",{1h:v,"1I":j+" 1a 1r-4Q-4T "+o.13.2Z,T:o.13.T||"",4U:"7t","1L-7u":"7v","1L-41":e,"1L-4i":v+"-U","1L-3M":d}).2q(l,A.2u).23("1a",t).2G(o.11.1s).2W(z.U=a("<2h />",{"1I":j+"-U",1h:v+"-U","1L-41":d})),t.1f=-1,x=1,g&&(F(),H(g)),I(f),t.1f=d,C(),a.1j(o.3L,9(b,c){a.1Q(c)&&y.18(b==="27"?"3y 4X":"1o"+b,c)}),a.1j(h,9(){Q.2v==="1R"&&Q(t)}),J(1,1,1,1),y.3G("3R",9(a){i.3d=A.1b,y.2o(i,[t]),x=0,t.2z(),(o.O.2R||b)&&t.O(A.1b),a()});L t},3Q:9(a){P b,c;57(a.2k()){3b"4Y":b={V:y.36(),T:y.3p()};2B;3b"W":b=h.W(y,o.11.1s);2B;3z:c=B(a.2k()),b=c[0][c[1]],b=b.1c?b.1m():b}L b},32:9(b,c){9 m(a,b){P c,d,e;4Z(c 1M k)4Z(d 1M k[c])S(e=(1C 7x(d,"i")).4F(a))b.43(e),k[c][d].24(t,b)}P g=/^11\\.(1O|2p|1G|12|1s)|13|U|O\\.2R/i,h=/^U\\.(15|14)|13/i,i=e,j=e,k=t.2N,l;"1m"===Y b?(l=b,b={},b[l]=c):b=a.1i(d,{},b),a.1j(b,9(c,d){P e=B(c.2k()),f;f=e[0][e[1]],e[0][e[1]]="1e"===Y d&&d.7y?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1w(c)||i,j=h.1w(c)||j}),s(o),w=x=1,a.1j(b,m),w=x=0,y.1U(":2e")&&t.1f&&(i&&t.1T(o.11.12==="1H"?f:A.1b),j&&t.2z());L t},27:9(b,c){9 j(){b?(a.21.37&&y[0].13.3v("2t"),y.X("7z","")):y.X({2g:"",45:"",T:"",4f:"",N:"",M:""})}S(!t.1f)S(b)t.1R(1);2r L t;P d=b?"O":"R",g=o[d],h=y.1U(":2e"),i;(Y b).4t("2T|2D")&&(b=!h);S(h===b)L t;S(c){S(/5d|5e/.1w(c.1v)&&/46|2Q/.1w(A.1b.1v)&&c.12===o.O.12[0]&&y.7B(c.3m).17)L t;A.1b=a.1i({},c)}i=a.38("1o"+d),i.3d=c?A.1b:f,y.2o(i,[t,3I]);S(i.3D())L t;a.14(y[0],"1L-3M",!b),b?(t.2y(c),t.1T(c),g.3f&&a(m,g.3f).3l(y).1a("R",i)):(1F(t.1q.O),t.1N(c)),y.4l(0,1),a.1Q(g.1K)?(g.1K.1E(y,t),y.3G("3R",9(a){j(),a()})):g.1K===e?(y[d](),j.1E(y)):y.54(3I,b?1:0,j),b&&g.12.2o("1a-"+p+"-1S");L t},O:9(a){L t.27(d,a)},R:9(a){L t.27(e,a)},2y:9(b){S(!t.1f)L t;P c=a(m),d=1x(y[0].13.2U,10),e=g.5a+c.17,f=a.1i({},b),h,i;y.2b(n)||(d!==e&&(c.1j(9(){Q.13.2U>d&&(Q.13.2U=Q.13.2U-1)}),c.2t("."+n).1a("1N",f)),i=a.38("56"),i.3d=f,y.2o(i,[t,e]),i.3D()||(y.3H(n)[0].13.2U=e));L t},1N:9(b){P c=a.1i({},b),d;y.4h(n),d=a.38("7E"),d.3d=c,y.2o(d,[t]);L t},1T:9(c,d){S(!t.1f||w)L t;w=1;P f=o.11.12,g=o.11,k=g.1O,l=g.2p,m=g.1G,n=m.2m,p=y.3p(),q=y.36(),r=0,s=0,v=a.38("4a"),x=y.X("11")==="2l",z=g.1Z.1W?g.1Z:a(b),B={N:0,M:0},C=(t.1D.16||{}).1g,D={2m:n.29(0,5),3h:n.17<6||n.2E("3h")>-1,3i:n.17<6||n.2E("3i")>-1,N:9(a){S(!D.3h)L 0;P b=z.2K,c=k.x==="N"?p:k.x==="1k"?-p:-p/2,d=l.x==="N"?r:l.x==="1k"?-r:-r/2,e=C&&C.1c==="x"?o.13.16.T:0,f=b-a-e,g=a+p-z.T-b+e,h=c-(k.1c==="x"||k.x===k.y?d:0),i=k.x==="1n";D.2m==="3K"?B.N+=f>0?f-e:g>0?-g+e:0:(f>0&&(k.x!=="N"||g>0)?B.N-=h+(i?0:2*m.x):g>0&&(k.x!=="1k"||f>0)&&(B.N-=i?-h:h+2*m.x),B.N!==a&&i&&(B.N-=m.x)),B.N<0&&-B.N>g&&(B.N=a);L B.N-a},M:9(a){S(!D.3i)L 0;P b=z.2F,c=k.y==="M"?q:k.y==="1l"?-q:-q/2,d=l.y==="M"?s:l.y==="1l"?-s:-s/2,e=C&&C.1c==="y"?o.13.16.V:0,f=b-a-e,g=a+q-z.V-b+e,h=c-(k.1c==="y"||k.x===k.y?d:0),i=k.y==="1n";D.2m==="3K"?B.M+=f-e>0?f:g>0?-g+e:0:(f>0&&(k.y!=="M"||g>0)?B.M-=h+(i?0:2*m.y):g>0&&(k.y!=="1l"||f>0)&&(B.M-=i?-h:h+2*m.y),B.M!==a&&i&&(B.M-=m.y)),B.M<0&&-B.M>g&&(B.M=a);L B.M-a}};z=z?{5i:z,V:z[(z[0]===b?"h":"7G")+"7H"](),T:z[(z[0]===b?"w":"7I")+"7K"](),2K:z.2K(),2F:z.2F()}:e;S(f==="1H")l={x:"N",y:"M"},c=c&&(c.1v==="2n"||c.1v==="4c")?A.1b:m.1H||!c||!c.3A||/5d|5e$/i.1w(c.1v)&&!m.1H?a.1i({},i):c,B={M:c.44,N:c.3A};2r{f==="1b"&&(c&&c.12&&c.1v!=="4c"&&c.1v!=="2n"?f=A.12=a(c.12):f=A.12),f=a(f).7M(0);S(f.17===0)L t;f[0]===1A||f[0]===b?(r=f.T(),s=f.V(),f[0]===b&&(B={M:!x||h.34?z.2F:0,N:!x||h.34?z.2K:0})):f.1U("7N")&&h.3W?B=h.3W(f,l):f[0].7O=="7P://7Q.7R.7T/7V/3j"&&h.3j?B=h.3j(f,l):(r=f.3p(),s=f.36(),B=h.W(f,g.1s)),B.W&&(r=B.T,s=B.V,B=B.W),B.N+=l.x==="1k"?r:l.x==="1n"?r/2:0,B.M+=l.y==="1l"?s:l.y==="1n"?s/2:0}B.N+=m.x+(k.x==="1k"?-p:k.x==="1n"?-p/2:0),B.M+=m.y+(k.y==="1l"?-q:k.y==="1n"?-q/2:0),g.1Z.1W&&f[0]!==b&&f[0]!==u?B.3F={N:D.N(B.N),M:D.M(B.M)}:B.3F={N:0,M:0},y.14("1I",9(b,c){L a.14(Q,"1I").28(/1r-1o-5g-\\w+/i,"")}).3H(j+"-5g-"+k.4v()),v.3d=a.1i({},c),y.2o(v,[t,B,z.5i]);S(v.3D())L t;2s B.3F,d===e||5j(B.N)||5j(B.M)||!a.1Q(g.1K)?y.X(B):a.1Q(g.1K)&&(g.1K.1E(y,t,a.1i({},B)),y.3G(9(b){a(Q).X({4f:"",V:""}),a.21.37&&Q.13.3v("2t"),b()})),w=0;L t},2z:9(){S(t.1f<1||o.13.T||x)L t;P b=j+"-5k",c,d,e;x=1,y.X("T","").3H(b),c=y.T()+(a.21.5n?1:0),d=1x(y.X("2A-T"),10)||0,e=1x(y.X("4g-T"),10)||0,c=d+e?19.4g(19.2A(c,e),d):c,y.X("T",c).4h(b),x=0;L t},42:9(b){P c=l;"2T"!==Y b&&(b=!y.2b(c)&&!A.2u),t.1f?(y.2q(c,b),a.14(y[0],"1L-2u",b)):A.2u=!!b;L t},7Y:9(){L t.42(e)},2a:9(){P b=c[0],d=a.14(b,q);t.1f&&(y.1P(),a.1j(t.1D,9(){Q.2a&&Q.2a()})),1F(t.1q.O),1F(t.1q.R),K(1,1,1,1),a.5q(b,"1a"),d&&(a.14(b,"15",d),c.3X(q)),c.3X("1L-4i").1z(".1a");L c}})}9 s(b){P c;S(!b||"1e"!==Y b)L e;"1e"!==Y b.1X&&(b.1X={1v:b.1X});S("U"1M b){S("1e"!==Y b.U||b.U.1W)b.U={1p:b.U};c=b.U.1p||e,!a.1Q(c)&&(!c&&!c.14||c.17<1||"1e"===Y c&&!c.1W)&&(b.U.1p=e),"15"1M b.U&&("1e"!==Y b.U.15&&(b.U.15={1p:b.U.15}),c=b.U.15.1p||e,!a.1Q(c)&&(!c&&!c.14||c.17<1||"1e"===Y c&&!c.1W)&&(b.U.15.1p=e))}"11"1M b&&("1e"!==Y b.11&&(b.11={1O:b.11,2p:b.11}),"1G"1M b.11&&(/5o|3K( 3h| 3i)*/i.1w(b.11.1G.2m)||2s b.11.1G.2m)),"O"1M b&&("1e"!==Y b.O&&(b.O.1W?b.O={12:b.O}:b.O={1b:b.O})),"R"1M b&&("1e"!==Y b.R&&(b.R.1W?b.R={12:b.R}:b.R={1b:b.R})),"13"1M b&&("1e"!==Y b.13&&(b.13={2Z:b.13})),a.1j(h,9(){Q.30&&Q.30(b)});L b}9 r(){P c=b.5t;L c&&(c.4j||c.5u||a.5l).24(c,25)}P d=!0,e=!1,f=5h,g,h,i,j="1r-1o",k="1r-2i",l="1r-2X-2u",m="2h.1a."+j,n=j+"-2y",o="-5D",p="5F",q="4L";g=a.2f.1a=9(b,h,i){P j=(""+b).2k(),k=f,l=j==="42"?[d]:a.5J(25).4k(1,10),m=l[l.17-1],n=Q[0]?a.23(Q[0],"1a"):f;S(!25.17&&n||j==="5K")L n;S("1m"===Y b){Q.1j(9(){P b=a.23(Q,"1a");S(!b)L d;m&&m.5M&&(b.31.1b=m);S(j!=="2I"&&j!=="1J"||!h)b[j]&&b[j].24(b[j],l);2r S(a.5O(h)||i!==c)b.32(h,i);2r{k=b.3Q(h);L e}});L k!==f?k:Q}S("1e"===Y b||!25.17){n=s(a.1i(d,{},b));L g.18.1E(Q,n,m)}},g.18=9(b,c){L Q.1j(9(f){9 p(b){9 c(){o.1R(Y b==="1e"||i.O.2R),k.O.1z(l.O),k.R.1z(l.R)}S(o.31.2u)L e;o.31.1b=a.1i({},b),i.O.22>0?(1F(o.1q.O),o.1q.O=3a(c,i.O.22),l.O!==l.R&&k.R.18(l.R,9(){1F(o.1q.O)})):c()}P i,k,l,m=!b.1h||b.1h===e||b.1h.17<1||a("#"+j+"-"+b.1h).17?g.47++:b.1h,n=".1a-"+m+"-2c",o=u.1E(Q,m,b);S(o===e)L d;i=o.1J,a.1j(h,9(){Q.2v==="2v"&&Q(o)}),k={O:i.O.12,R:i.R.12},l={O:a.3E(""+i.O.1b).28(/ /g,n+" ")+n,R:a.3E(""+i.R.1b).28(/ /g,n+" ")+n},i.R.1b==="4e"&&(l.R="2O"+n),k.O.18(l.O,p),(i.O.2R||i.5c)&&p(c)})},h=g.1D={2w:9(a){a=(""+a).28(/([A-Z])/," $1").28(/6e/4r,"1n").2k(),Q.x=(a.4b(/N|1k/i)||a.4b(/1n/)||["3B"])[0].2k(),Q.y=(a.4b(/M|1l|1n/i)||["3B"])[0].2k(),Q.1c=a.3c(0).4t(/^(t|b)/)>-1?"y":"x",Q.1m=9(){L Q.1c==="y"?Q.y+Q.x:Q.x+Q.y},Q.4v=9(){P a=Q.x.29(0,1),b=Q.y.29(0,1);L a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},W:9(c,d){9 k(a,b){e.N+=b*a.2K(),e.M+=b*a.2F()}P e=c.W(),f=d,g=0,i=1A.35,j;S(f){6n{S(f[0]===i)2B;f.X("11")!=="6o"&&(j=f.11(),e.N-=j.N+(1x(f.X("6p"),10)||0),e.M-=j.M+(1x(f.X("6s"),10)||0),g++)}2V(f=f.6u());(d[0]!==i||g>1)&&k(d,1),h.34<4.1&&h.34>3.1&&k(a(b),-1)}L e},34:4E((""+(/4G.*6z ([0-6A]{1,3})|(4G 6E).*6G.*6J/i.4F(6N.6P)||[0,""])[1]).28("59","6S").28("6Z","."))||e,2f:{14:9(b,c){S(Q.17){P d=Q[0],e="15",f=a.23(d,"1a");S(b===e){S(25.17<2)L a.14(d,q);S(Y f==="1e"){f&&f.1f&&f.1J.U.14===e&&f.31.14&&f.32("U.1p",c),a.2f["14"+p].24(Q,25),a.14(d,q,a.14(d,e));L Q.3X(e)}}}},4J:9(b){P c=a([]),d="15",e;e=a.2f["4J"+p].24(Q,25).2t("[4L]").1j(9(){a.14(Q,d,a.14(Q,q)),Q.3v(q)}).7j();L e},1P:a.1r?f:9(b,c){a(Q).1j(9(){c||(!b||a.2t(b,[Q]).17)&&a("*",Q).2H(Q).1j(9(){a(Q).7s("1P")})})}}},a.1j(h.2f,9(b,c){S(!c)L d;P e=a.2f[b+p]=a.2f[b];a.2f[b]=9(){L c.24(Q,25)||e.24(Q,25)}}),a(1A).18("3k.1a",9(a){i={3A:a.3A,44:a.44,1v:"3k"}}),g.3C="2.0.7C",g.47=0,g.53="49 7D 3o 58 3k 2O 3e".33(" "),g.5a=7J,g.3g={5c:e,1h:e,4d:d,U:{1p:d,14:"15",15:{1p:e,1B:e}},11:{1O:"M N",2p:"1l 1k",12:e,1s:e,1Z:e,1G:{x:0,y:0,1H:d,2n:d,2m:"5o"},1K:d},O:{12:e,1b:"3e",1K:d,22:3I,3f:e,2R:e},R:{12:e,1b:"2O",1K:d,22:0,2l:e,1S:e,2Q:"3J"},13:{2Z:"",2i:e,T:e},3L:{1R:f,3Y:f,O:f,R:f,27:f,2y:f,1N:f}},h.1u=9(a){P b=a.1D.1u;L"1e"===Y b?b:a.1D.1u=1C v(a)},h.1u.2v="1R",h.1u.30=9(a){P b=a.U,c;b&&"1u"1M b&&(c=b.1u,Y c!=="1e"&&(c=a.U.1u={2j:c}),"2T"!==Y c.2x&&c.2x&&(c.2x=!!c.2x))},a.1i(d,g.3g,{U:{1u:{5s:d,2x:d}}}),h.16=9(a){P b=a.1D.16;L"1e"===Y b?b:a.1D.16=1C x(a)},h.16.2v="1R",h.16.30=9(a){P b=a.13,c;b&&"16"1M b&&(c=a.13.16,Y c!=="1e"&&(a.13.16={1g:c}),/1m|2T/i.1w(Y c.1g)||(c.1g=d),Y c.T!=="2D"&&2s c.T,Y c.V!=="2D"&&2s c.V,Y c.1d!=="2D"&&c.1d!==d&&2s c.1d,Y c.W!=="2D"&&2s c.W)},a.1i(d,g.3g,{13:{16:{1g:d,3r:e,T:6,V:6,1d:d,W:0}}}),h.3W=9(b,c){9 l(a,b){P d=0,e=1,f=1,g=0,h=0,i=a.T,j=a.V;2V(i>0&&j>0&&e>0&&f>0){i=19.3q(i/2),j=19.3q(j/2),c.x==="N"?e=i:c.x==="1k"?e=a.T-i:e+=19.3q(i/2),c.y==="M"?f=j:c.y==="1l"?f=a.V-j:f+=19.3q(j/2),d=b.17;2V(d--){S(b.17<2)2B;g=b[d][0]-a.W.N,h=b[d][1]-a.W.M,(c.x==="N"&&g>=e||c.x==="1k"&&g<=e||c.x==="1n"&&(ga.T-e)||c.y==="M"&&h>=f||c.y==="1l"&&h<=f||c.y==="1n"&&(ha.V-f))&&b.6M(d,1)}}L{N:b[0][0],M:b[0][1]}}P d=b.14("3T").2k(),e=b.14("70").33(","),f=[],g=a(\'3u[7d="#\'+b.7h("52").14("3Z")+\'"]\'),h=g.W(),i={T:0,V:0,W:{M:3t,1k:0,1l:0,N:3t}},j=0,k=0;h.N+=19.3x((g.3p()-g.T())/2),h.M+=19.3x((g.36()-g.V())/2);S(d==="5f"){j=e.17;2V(j--)k=[1x(e[--j],10),1x(e[j+1],10)],k[0]>i.W.1k&&(i.W.1k=k[0]),k[0]i.W.1l&&(i.W.1l=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}('"5v 5w",9(a,b,c){9 z(b){P c=Q,d=b.2M,e=d.1o,f=".1Y-"+b.1h;a.1i(c,{1V:9(){d.1Y=a(\'<4W 1I="1r-1o-1Y" 7X="0" 5x="-1" 5y="5z:\\\'\\\';" 13="2g:2L; 11:3N; z-51:-1; 2t:7U(4f=0); -5A-2t:"5B:5C.80.7w(5E=0)";">\'),d.1Y.2G(e),e.18("4a"+f,c.1G)},1G:9(){P a=b.3Q("4Y"),c=b.1D.16,f=d.16,g,h;h=1x(e.X("1d-N-T"),10)||0,h={N:-h,M:-h},c&&f&&(g=c.1g.1c==="x"?["T","N"]:["W","M"],h[g[1]]-=f[g[0]]()),d.1Y.X(h).X(a)},2a:9(){d.1Y.1P(),e.1z(f)}}),c.1V()}9 y(c){P f=Q,g=c.1J.O.1t,h=c.2M,i=h.1o,j="#1a-26",k=".5G",l;c.2N.1t={"^O.1t.(2S|1N)$":9(){f.1V(),h.26.27(i.1U(":2e"))}},a.1i(f,{1V:9(){S(!g.2S)L f;i.1z(k).1z(k+c.1h).18("3y"+k+" 4X"+k,9(b,c,d){P e=b.1v.28("1o","");a.1Q(g[e])?g[e].1E(h.26,d,c):f[e](d)}).18("56",9(a,b,c){l.X("z-51",c-1)}),f.2c(),h.26.X("5H",g.1N?"5I":""),g.1N===d&&h.26.18("49"+k+c.1h,9(){c.R.1E(c)});L f},2c:9(){P c=a(j);S(c.17){h.26=c;L c}l=h.26=a("<2h />",{1h:j.29(1),X:{11:"3N",M:0,N:0,2g:"4s"},3o:9(){L e}}).2G(1A.35),a(b).18("2n"+k,9(){l.X({W:19.2A(a(b).W(),a(1A).W()),T:19.2A(a(b).T(),a(1A).T())})}).2o("2n");L l},27:9(b){P g=c.1J.O.1t.1K,h=b?"O":"R",i;l||(l=f.2c());S(!l.1U(":7A")||b){l.4l(d,e),a.1Q(g)?g.1E(l,b):g===e?l[h]():l.54(3I,b?.7:0,9(){b||a(Q).R()});L f}},O:9(){L f.27(d)},R:9(){L f.27(e)},2a:9(){P d=l;d&&(a(j).1j(9(){P b=a(Q).23("1a");S(b&&b.1h!==b.1h&&b.1J.O.1t)L d=e}),d?(h.26.1P(),a(b).1z(k)):h.26.1z(k+c.1h));L i.1z(k)}}),f.1V()}9 x(b,g){9 v(a){P b=a.1c==="y",c=n[b?"T":"W"],d=n[b?"W":"T"],e=a.1m().2E("1n")>-1,f=c*(e?.5:1),g=19.5L,h=19.40,i,j,k,l=19.3S(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=19.3S(g(m[0],2)-g(p,2)),m[3]=19.3S(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)];L{W:k[b?0:1],T:k[b?1:0]}}9 u(b){P c=k.1y&&b.y==="M",d=c?k.1y:k.U,e=a.21.5n,f=e?"-5N-":a.21.4N?"-4N-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1d-4m-"+g:"1d-"+g+"-4m");L 1x(d.X(h),10)||1x(l.X(h),10)||0}9 t(a,b,c){b=b?b:a[a.1c];P d=k.1y&&a.y==="M",e=d?k.1y:k.U,f="1d-"+b+"-T",g=1x(e.X(f),10);L(c?g||1x(l.X(f),10):g)||0}9 s(f,g,h,l){S(k.16){P n=a.1i({},i.1g),o=h.3F,p=b.1J.11.1G.2m.29(0,5)==="3K",q={N:0,M:0},r;i.1g.2l!==d&&(p?(o.M&&(q.M=19.2P(o.M)),o.N&&(q.N=19.2P(o.N)),n.1c==="y"&&o.M&&n.x!=="1n"?n.1c=n.1c==="y"?"x":"y":n.1c==="x"&&o.N&&n.y!=="1n"&&(n.1c=n.1c==="x"?"y":"x"),!q.N&&!q.M&&(p=e)):(o.N&&(n.x=n.x==="1n"?o.N>0?"N":"1k":n.x==="N"?"1k":"N"),o.M&&(n.y=n.y==="1n"?o.M>0?"M":"1l":n.y==="M"?"1l":"M")),n.1m()!==m.1g&&(m.M!==o.M||m.N!==o.N)&&(r=i.39(n,e))),r=i.11(n,q,1),r.1k!==c&&(r.N=r.1k),r.1l!==c&&(r.M=r.1l),r.2I=19.2A(0,j.V);S(p&&q.M&&!q.N||!p||!r)h.N-=r.N.3c?r.2I:(r.1k?-1:1)*r.N;S(p&&q.N&&!q.M||!p||!r)h.M-=r.M.3c?r.2I:(r.1l?-1:1)*r.M;p&&q.N&&n.1c==="y"?h.N-=r.2I:p&&q.M&&n.1c==="x"&&(h.M-=r.2I),m.N=o.N,m.M=o.M,m.1g=n.1m()}}P i=Q,j=b.1J.13.16,k=b.2M,l=k.1o,m={M:0,N:0,1g:""},n={T:j.T,W:j.W},o={},p=j.1d||0,q=".1a-16",r=a("<4n />")[0].3O;i.1g=f,i.3r=f,b.2N.16={"^11.1O|13.16.(1g|3r|1d)$":9(){i.1V()||i.2a(),b.1T()},"^13.16.(W|T)$":9(){n={T:j.T,W:j.W},i.2c(),i.39(),b.1T()},"^U.15.1p|13.(2Z|2i)$":9(){k.16&&i.39()}},a.1i(i,{1V:9(){P b=i.5r()&&(r||a.21.37);b&&(i.2c(),i.39(),l.1z(q).18("4a"+q,s));L b},5r:9(){P a=j.1g,c=b.1J.11,f=c.2p,g=c.1O.1m?c.1O.1m():c.1O;S(a===e||g===e&&f===e)L e;a===d?i.1g=1C h.2w(g):a.1m||(i.1g=1C h.2w(a),i.1g.2l=d);L i.1g.1m()!=="5p"},4q:9(){P c,d,e,f=k.16.X({5P:"",1d:""}),g=i.1g,h=g[g.1c],m="1d-"+h+"-2Y",p="1d"+h.3c(0)+h.29(1)+"6x",q=/5Q?\\(0, 0, 0(, 0)?\\)|3n/i,r="5S-2Y",s="3n",t="1r-1o-5k",u=a(1A.35).X("2Y"),v=b.2M.U.X("2Y"),w=k.1y&&(g.y==="M"||g.y==="1n"&&f.11().M+n.W/2+j.V",{"1I":"1r-1o-16"}).X({T:b,W:c}).5T(l),r?a("<4n />").2G(k.16)[0].3O("2d").4o():(d=\'<48:3T 5U="0,0" 13="2g:4z-2L; 11:3N; 4x:2j(#3z#4y);">\',k.16.2J(p?d+=d:d))},39:9(b,c){P g=k.16,l=g.5V(),m=n.T,q=n.W,s="3P 5W ",u="3P 5X 3n",x=j.3r,y=19.40,z,A,B,C,D;b||(b=i.1g),x===e?x=b:(x=1C h.2w(x),x.1c=b.1c,x.x==="3B"?x.x=b.x:x.y==="3B"?x.y=b.y:x.x===x.y&&(x[b.1c]=b[b.1c])),z=x.1c,i.4q(),p=o.1d==="3n"||o.1d==="#5Y"?0:j.1d===d?t(b,f,d):j.1d,B=w(x,m,q),D=v(b),g.X(D),b.1c==="y"?C=[y(x.x==="N"?p:x.x==="1k"?D.T-m-p:(D.T-m)/2),y(x.y==="M"?D.W-q:0)]:C=[y(x.x==="N"?D.T-m:0),y(x.y==="M"?p:x.y==="1l"?D.W-q-p:(D.W-q)/2)],r?(l.14(D),A=l[0].3O("2d"),A.5Z(),A.4o(),A.60(0,0,4p,4p),A.62(C[0],C[1]),A.63(),A.64(B[0][0],B[0][1]),A.5m(B[1][0],B[1][1]),A.5m(B[2][0],B[2][1]),A.65(),A.66=o.2C,A.7W=o.1d,A.67=p*2,A.68="4V",A.69=7S,A.55(),A.2C()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6b",C[2]=p&&/^(r|b)/i.1w(b.1m())?4E(a.21.3C,10)===8?2:1:0,l.X({6c:""+(x.1m().2E("1n")>-1),N:C[0]-C[2]*5b(z==="x"),M:C[1]-C[2]*5b(z==="y"),T:m+p,W:q+p}).1j(9(b){P c=a(Q);c.14({6d:m+p+" "+(q+p),6f:B,6g:o.2C,6h:!!b,6i:!b}).X({2g:p||b?"2L":"4s"}),!b&&p>0&&c.2J()===""&&c.2J(\'<48:55 6j="\'+p*2+\'3P" 2Y="\'+o.1d+\'" 6k="6l" 6m="4V" 13="4x:2j(#3z#4y); 2g:4z-2L;" />\')})),c!==e&&i.11(b,5h,d)},11:9(b,c,f){P g=k.16,h={},m,o,q;S(j.1g===e||!g)L e;b=b||i.1g,m=b.1c,o=v(b),q=[b.x,b.y],c=[19.2A(0,j.V+(c?c.N:0)),19.2A(0,j.V+(c?c.M:0))],m==="x"&&(q.4R(),c.4R()),a.1j(q,9(a,e){P f,g,i;e==="1n"?(g=m==="y"?"N":"M",h[g]="50%",h["4S-"+g]=-19.40(o[m==="y"?"T":"W"]/2)+c[a]):(g=t(b,e,d),i=u(b),f=a&&m==="y"?"W":"T",h[e]=19.4g(l[f]()-n[f]-p,a?t(b,e)+(a?0:i):c[a]+(i>g?i:0)))}),h[b[m]]-=o[m==="x"?"T":"W"],f&&g.X({M:"",1l:"",N:"",1k:"",4S:""}).X(h);L h},2a:9(){k.16&&k.16.1P(),l.1z(q)}}),i.1V()}9 w(a,b,c){P d=19.3x(b/2),e=19.3x(c/2),f={4D:[[0,0],[b,c],[b,0]],4O:[[0,0],[b,0],[0,c]],4B:[[0,c],[b,0],[b,c]],4C:[[0,0],[0,c],[b,c]],7q:[[0,c],[d,0],[b,c]],7p:[[0,0],[b,0],[d,c]],6q:[[0,0],[b,e],[0,c]],6r:[[b,0],[b,c],[0,e]]};f.7m=f.4D,f.6t=f.4O,f.6v=f.4B,f.6w=f.4C;L f[a.1m()]}9 v(b){P c=Q,f=b.2M.1o,g=b.1J.U.1u,h=".1a-1u",i=/<3V\\b[^<]*(?:(?!<\\/3V>)<[^<]*)*<\\/3V>/4r,j=d;b.2N.1u={"^U.1u":9(a,b,d){b==="1u"&&(g=d),b==="2x"?(f.1z(h),d&&f.18("3y"+h,c.3s)):g&&g.2j?c.3s():f.1z(h)}},a.1i(c,{1V:9(){g&&g.2j&&f.18("3y"+h,c.3s);L c},3s:9(d,h){9 p(a,c,d){b.32("U.1p",c+": "+d),n()}9 o(c){l&&(c=a("<2h/>").2W(c.28(i,"")).4H(l)),b.32("U.1p",c),n()}9 n(){m&&(f.X("45",""),h=e)}S(d.3D())L c;P j=g.2j.2E(" "),k=g.2j,l,m=g.2x&&!g.5s&&h;m&&f.X("45","3M"),j>-1&&(l=k.29(j),k=k.29(0,j)),a.1u(a.1i({7c:o,4j:p,6y:b},g,{2j:k}));L c}}),c.1V()}9 u(b,c){P i,j,k,l,m=a(Q),n=a(1A.35),o=Q===1A?n:m,p=m.1X?m.1X(c.1X):f,u=c.1X.1v==="79"&&p?p[c.1X.3Z]:f,v=m.23(c.1X.3Z||"6B");6C{v=Y v==="1m"?(1C 76("L "+v))():v}75(w){r("74 6F 6H 6I 6K 23: "+v)}l=a.1i(d,{},g.3g,c,Y v==="1e"?s(v):f,s(u||p)),p&&a.5q(Q,"1X"),j=l.11,l.1h=b;S("2T"===Y l.U.1p){k=m.14(l.U.14);S(l.U.14!==e&&k)l.U.1p=k;2r L e}j.1s===e&&(j.1s=n),j.12===e&&(j.12=o),l.O.12===e&&(l.O.12=o),l.O.3f===d&&(l.O.3f=n),l.R.12===e&&(l.R.12=o),l.11.1Z===d&&(l.11.1Z=j.1s),j.2p=1C h.2w(j.2p),j.1O=1C h.2w(j.1O);S(a.23(Q,"1a"))S(l.4d)m.1a("2a");2r S(l.4d===e)L e;a.14(Q,"15")&&(a.14(Q,q,a.14(Q,"15")),Q.3v("15")),i=1C t(m,l,b,!!k),a.23(Q,"1a",i),m.18("1P.1a",9(){i.2a()});L i}9 t(c,o,p,r){9 K(c,d,e,f){f=1x(f,10)!==0;P g=".1a-"+p,h={O:c&&o.O.12[0],R:d&&o.R.12[0],1o:e&&t.1f&&z.1o[0],U:e&&t.1f&&z.U[0],1s:f&&o.11.1s[0]===u?1A:o.11.1s[0],3J:f&&b};t.1f?a([]).6L(a.6Y([h.O,h.R,h.1o,h.1s,h.U,h.3J],9(a){L Y a==="1e"})).1z(g):c&&o.O.12.1z(g+"-2c")}9 J(d,f,h,j){9 B(a){y.1U(":2e")&&t.1T(a)}9 A(a){S(y.2b(l))L e;1F(t.1q.1S),t.1q.1S=3a(9(){t.R(a)},o.R.1S)}9 x(b){S(y.2b(l))L e;P c=a(b.3m||b.12),d=c.6X(m)[0]===y[0],f=c[0]===q.O[0];1F(t.1q.O),1F(t.1q.R);S(n.12==="1H"&&d||o.R.2l&&(/1H(46|2Q|3Y)/.1w(b.1v)&&(d||f))){b.6W(),b.6O();L e}o.R.22>0?t.1q.R=3a(9(){t.R(b)},o.R.22):t.R(b)}9 w(a){S(y.2b(l))L e;q.O.2o("1a-"+p+"-1S"),1F(t.1q.O),1F(t.1q.R);P b=9(){t.O(a)};o.O.22>0?t.1q.O=3a(b,o.O.22):b()}P k=".1a-"+p,n=o.11,q={O:o.O.12,R:o.R.12,1s:n.1s[0]===u?a(1A):n.1s,3U:a(1A)},r={O:a.3E(""+o.O.1b).33(" "),R:a.3E(""+o.R.1b).33(" ")},s=a.21.37&&1x(a.21.3C,10)===6,v;h&&(o.R.2l&&(q.R=q.R.2H(y),y.18("6Q"+k,9(){y.2b(l)||1F(t.1q.R)})),n.12==="1H"&&n.1G.1H&&o.R.1b&&y.18("2O"+k,9(a){(a.3m||a.12)!==q.O[0]&&t.R(a)}),y.18("3e"+k+" 2O"+k,9(a){t[a.1v==="3e"?"2y":"1N"](a)})),f&&("2D"===Y o.R.1S&&(q.O.18("1a-"+p+"-1S",A),a.1j(g.53,9(a,b){q.R.2H(z.1o).18(b+k+"-1S",A)})),a.1j(r.R,9(b,c){P d=a.6R(c,r.O),e=a(q.R);d>-1&&e.2H(q.O).17===e.17||c==="4e"?(q.O.18(c+k,9(a){y.1U(":2e")?x(a):w(a)}),2s r.O[d]):q.R.18(c+k,x)})),d&&a.1j(r.O,9(a,b){q.O.18(b+k,w)}),j&&((n.1G.2n||n.1Z)&&a(a.1b.6T.2n?n.1Z:b).18("2n"+k,B),(n.1Z||s&&y.X("11")==="2l")&&a(n.1Z).18("4c"+k,B),/4e/i.1w(o.R.1b)&&q.3U.18("3o"+k,9(b){P d=a(b.12);d.6U(m).17===0&&d.2H(c).17>1&&y.1U(":2e")&&!y.2b(l)&&t.R(b)}),o.R.2Q&&/2O|4M/i.1w(o.R.1b)&&a(b).18("1N"+k+" 1H"+(o.R.2Q.2E("6V")>-1?"46":"2Q")+k,9(a){a.3m||t.R(a)}),n.12==="1H"&&q.3U.18("3k"+k,9(a){n.1G.1H&&!y.2b(l)&&y.1U(":2e")&&t.1T(a||i)}))}9 I(b,d){9 g(a){9 c(c){(b=b.3l(Q)).17===0&&(t.2z(),t.1T(A.1b),a())}P b;S((b=f.4H("3u:3l([W]):3l([T])")).17===0)L c.1E(b);b.1j(9(a,b){(9 d(){P e=t.1q.3u;S(b.W&&b.T){1F(e[a]);L c.1E(b)}e[a]=3a(d,20)})()})}P f=z.U;S(!t.1f||!b)L e;a.1Q(b)&&(b=b.1E(c,t)||""),b.1W&&b.17>0?f.4I().2W(b.X({2g:"2L"})):f.2J(b),t.1f<0?y.3G("3R",g):(x=0,g(a.5l));L t}9 H(b){P d=z.15;S(!t.1f||!b)L e;a.1Q(b)&&(b=b.1E(c,t)||""),b.1W&&b.17>0?d.4I().2W(b.X({2g:"2L"})):d.2J(b),t.2z(),t.1f&&y.1U(":2e")&&t.1T(A.1b)}9 G(a){P b=z.1B,c=z.15;S(!t.1f)L e;a?(c||F(),E()):b.1P()}9 F(){P b=v+"-15";z.1y&&D(),z.1y=a("<2h />",{"1I":j+"-1y "+(o.13.2i?"1r-2i-4P":"")}).2W(z.15=a("<2h />",{1h:b,"1I":j+"-15","1L-41":d})).71(z.U),o.U.15.1B?E():t.1f&&t.2z()}9 E(){P b=o.U.15.1B,c=Y b==="1m",d=c?b:"72 1o";z.1B&&z.1B.1P(),b.1W?z.1B=b:z.1B=a("",{"1I":"1r-2X-3z "+(o.13.2i?"":j+"-3w"),15:d,"1L-73":d}).77(a("<78 />",{"1I":"1r-3w 1r-3w-7a",2J:"&7b;"})),z.1B.2G(z.1y).14("4U","1B").4K(9(b){a(Q).2q("1r-2X-4K",b.1v==="3e")}).49(9(a){y.2b(l)||t.R(a);L e}).18("3o 7e 58 7f 4M",9(b){a(Q).2q("1r-2X-7g 1r-2X-2y",b.1v.29(-4)==="7i")}),t.2z()}9 D(){z.15&&(z.1y.1P(),z.1y=z.15=z.1B=f,t.1T())}9 C(){P a=o.13.2i;y.2q(k,a),z.U.2q(k+"-U",a),z.1y&&z.1y.2q(k+"-4P",a),z.1B&&z.1B.2q(j+"-3w",!a)}9 B(a){P b=0,c,d=o,e=a.33(".");2V(d=d[e[b++]])b0&&!a("#"+i).17&&(y[0].1h=i,z.U[0].1h=i+"-U",z.15[0].1h=i+"-15")},"^U.1p$":9(a,b,c){I(c)},"^U.15.1p$":9(a,b,c){S(!c)L D();!z.15&&c&&F(),H(c)},"^U.15.1B$":9(a,b,c){G(c)},"^11.(1O|2p)$":9(a,b,c){"1m"===Y c&&(a[b]=1C h.2w(c))},"^11.1s$":9(a,b,c){t.1f&&y.2G(c)},"^(O|R).(1b|12|2l|22|1S)$":9(a,b,c,d,e){P f=[1,0,0];f[e[1]==="O"?"43":"7n"](0),K.24(t,f),J.24(t,[1,1,0,0])},"^O.2R$":9(){t.1f?t.O():t.1R(1)},"^13.2Z$":9(b,c,d){a.14(y[0],"1I",j+" 1a 1r-4Q-4T "+d)},"^13.2i|U.15":C,"^3L.(1R|O|3Y|R|2y|1N)$":9(b,c,d){y[(a.1Q(d)?"":"7o")+"18"]("1o"+c,d)}},a.1i(t,{1R:9(b){S(t.1f)L t;P f=o.U.1p,g=o.U.15.1p,i=a.38("7r");a.14(c[0],"1L-4i",v),y=z.1o=a("<2h/>",{1h:v,"1I":j+" 1a 1r-4Q-4T "+o.13.2Z,T:o.13.T||"",4U:"7t","1L-7u":"7v","1L-41":e,"1L-4i":v+"-U","1L-3M":d}).2q(l,A.2u).23("1a",t).2G(o.11.1s).2W(z.U=a("<2h />",{"1I":j+"-U",1h:v+"-U","1L-41":d})),t.1f=-1,x=1,g&&(F(),H(g)),I(f),t.1f=d,C(),a.1j(o.3L,9(b,c){a.1Q(c)&&y.18(b==="27"?"3y 4X":"1o"+b,c)}),a.1j(h,9(){Q.2v==="1R"&&Q(t)}),J(1,1,1,1),y.3G("3R",9(a){i.3d=A.1b,y.2o(i,[t]),x=0,t.2z(),(o.O.2R||b)&&t.O(A.1b),a()});L t},3Q:9(a){P b,c;57(a.2k()){3b"4Y":b={W:y.36(),T:y.3p()};2B;3b"V":b=h.V(y,o.11.1s);2B;3z:c=B(a.2k()),b=c[0][c[1]],b=b.1c?b.1m():b}L b},32:9(b,c){9 m(a,b){P c,d,e;4Z(c 1M k)4Z(d 1M k[c])S(e=(1C 7x(d,"i")).4F(a))b.43(e),k[c][d].24(t,b)}P g=/^11\\.(1O|2p|1G|12|1s)|13|U|O\\.2R/i,h=/^U\\.(15|14)|13/i,i=e,j=e,k=t.2N,l;"1m"===Y b?(l=b,b={},b[l]=c):b=a.1i(d,{},b),a.1j(b,9(c,d){P e=B(c.2k()),f;f=e[0][e[1]],e[0][e[1]]="1e"===Y d&&d.7y?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1w(c)||i,j=h.1w(c)||j}),s(o),w=x=1,a.1j(b,m),w=x=0,y.1U(":2e")&&t.1f&&(i&&t.1T(o.11.12==="1H"?f:A.1b),j&&t.2z());L t},27:9(b,c){9 j(){b?(a.21.37&&y[0].13.3v("2t"),y.X("7z","")):y.X({2g:"",45:"",T:"",4f:"",N:"",M:""})}S(!t.1f)S(b)t.1R(1);2r L t;P d=b?"O":"R",g=o[d],h=y.1U(":2e"),i;(Y b).4t("2T|2D")&&(b=!h);S(h===b)L t;S(c){S(/5d|5e/.1w(c.1v)&&/46|2Q/.1w(A.1b.1v)&&c.12===o.O.12[0]&&y.7B(c.3m).17)L t;A.1b=a.1i({},c)}i=a.38("1o"+d),i.3d=c?A.1b:f,y.2o(i,[t,3I]);S(i.3D())L t;a.14(y[0],"1L-3M",!b),b?(t.2y(c),t.1T(c),g.3f&&a(m,g.3f).3l(y).1a("R",i)):(1F(t.1q.O),t.1N(c)),y.4l(0,1),a.1Q(g.1K)?(g.1K.1E(y,t),y.3G("3R",9(a){j(),a()})):g.1K===e?(y[d](),j.1E(y)):y.54(3I,b?1:0,j),b&&g.12.2o("1a-"+p+"-1S");L t},O:9(a){L t.27(d,a)},R:9(a){L t.27(e,a)},2y:9(b){S(!t.1f)L t;P c=a(m),d=1x(y[0].13.2U,10),e=g.5a+c.17,f=a.1i({},b),h,i;y.2b(n)||(d!==e&&(c.1j(9(){Q.13.2U>d&&(Q.13.2U=Q.13.2U-1)}),c.2t("."+n).1a("1N",f)),i=a.38("56"),i.3d=f,y.2o(i,[t,e]),i.3D()||(y.3H(n)[0].13.2U=e));L t},1N:9(b){P c=a.1i({},b),d;y.4h(n),d=a.38("7E"),d.3d=c,y.2o(d,[t]);L t},1T:9(c,d){S(!t.1f||w)L t;w=1;P f=o.11.12,g=o.11,k=g.1O,l=g.2p,m=g.1G,n=m.2m,p=y.3p(),q=y.36(),r=0,s=0,v=a.38("4a"),x=y.X("11")==="2l",z=g.1Z.1W?g.1Z:a(b),B={N:0,M:0},C=(t.1D.16||{}).1g,D={2m:n.29(0,5),3h:n.17<6||n.2E("3h")>-1,3i:n.17<6||n.2E("3i")>-1,N:9(a){S(!D.3h)L 0;P b=(z.V.N||0)+z.2K,c=k.x==="N"?p:k.x==="1k"?-p:-p/2,d=l.x==="N"?r:l.x==="1k"?-r:-r/2,e=C&&C.1c==="x"?o.13.16.T:0,f=b-a-e,g=a+p-z.T-b+e,h=c-(k.1c==="x"||k.x===k.y?d:0),i=k.x==="1n";D.2m==="3K"?B.N+=f>0?f-e:g>0?-g+e:0:(f>0&&(k.x!=="N"||g>0)?B.N-=h+(i?0:2*m.x):g>0&&(k.x!=="1k"||f>0)&&(B.N-=i?-h:h+2*m.x),B.N!==a&&i&&(B.N-=m.x)),B.N<0&&-B.N>g&&(B.N=a);L B.N-a},M:9(a){S(!D.3i)L 0;P b=(z.V.M||0)+z.2F,c=k.y==="M"?q:k.y==="1l"?-q:-q/2,d=l.y==="M"?s:l.y==="1l"?-s:-s/2,e=C&&C.1c==="y"?o.13.16.W:0,f=b-a-e,g=a+q-z.W-b+e,h=c-(k.1c==="y"||k.x===k.y?d:0),i=k.y==="1n";D.2m==="3K"?B.M+=f-e>0?f:g>0?-g+e:0:(f>0&&(k.y!=="M"||g>0)?B.M-=h+(i?0:2*m.y):g>0&&(k.y!=="1l"||f>0)&&(B.M-=i?-h:h+2*m.y),B.M!==a&&i&&(B.M-=m.y)),B.M<0&&-B.M>g&&(B.M=a);L B.M-a}};z=z?{5i:z,W:z[(z[0]===b?"h":"7G")+"7H"](),T:z[(z[0]===b?"w":"7I")+"7K"](),2K:z.2K(),2F:z.2F(),V:z.V()||{}}:e;S(f==="1H")l={x:"N",y:"M"},c=c&&(c.1v==="2n"||c.1v==="4c")?A.1b:m.1H||!c||!c.3A||/5d|5e$/i.1w(c.1v)&&!m.1H?a.1i({},i):c,B={M:c.44,N:c.3A};2r{f==="1b"&&(c&&c.12&&c.1v!=="4c"&&c.1v!=="2n"?f=A.12=a(c.12):f=A.12),f=a(f).7M(0);S(f.17===0)L t;f[0]===1A||f[0]===b?(r=f.T(),s=f.W(),f[0]===b&&(B={M:!x||h.34?z.2F:0,N:!x||h.34?z.2K:0})):f.1U("7N")&&h.3W?B=h.3W(f,l):f[0].7O=="7P://7Q.7R.7T/7V/3j"&&h.3j?B=h.3j(f,l):(r=f.3p(),s=f.36(),B=h.V(f,g.1s)),B.V&&(r=B.T,s=B.W,B=B.V),B.N+=l.x==="1k"?r:l.x==="1n"?r/2:0,B.M+=l.y==="1l"?s:l.y==="1n"?s/2:0}B.N+=m.x+(k.x==="1k"?-p:k.x==="1n"?-p/2:0),B.M+=m.y+(k.y==="1l"?-q:k.y==="1n"?-q/2:0),g.1Z.1W&&f[0]!==b&&f[0]!==u?B.3F={N:D.N(B.N),M:D.M(B.M)}:B.3F={N:0,M:0},y.14("1I",9(b,c){L a.14(Q,"1I").28(/1r-1o-5g-\\w+/i,"")}).3H(j+"-5g-"+k.4v()),v.3d=a.1i({},c),y.2o(v,[t,B,z.5i]);S(v.3D())L t;2s B.3F,d===e||5j(B.N)||5j(B.M)||!a.1Q(g.1K)?y.X(B):a.1Q(g.1K)&&(g.1K.1E(y,t,a.1i({},B)),y.3G(9(b){a(Q).X({4f:"",W:""}),a.21.37&&Q.13.3v("2t"),b()})),w=0;L t},2z:9(){S(t.1f<1||o.13.T||x)L t;P b=j+"-5k",c,d,e;x=1,y.X("T","").3H(b),c=y.T()+(a.21.5n?1:0),d=1x(y.X("2A-T"),10)||0,e=1x(y.X("4g-T"),10)||0,c=d+e?19.4g(19.2A(c,e),d):c,y.X("T",c).4h(b),x=0;L t},42:9(b){P c=l;"2T"!==Y b&&(b=!y.2b(c)&&!A.2u),t.1f?(y.2q(c,b),a.14(y[0],"1L-2u",b)):A.2u=!!b;L t},7Y:9(){L t.42(e)},2a:9(){P b=c[0],d=a.14(b,q);t.1f&&(y.1P(),a.1j(t.1D,9(){Q.2a&&Q.2a()})),1F(t.1q.O),1F(t.1q.R),K(1,1,1,1),a.5q(b,"1a"),d&&(a.14(b,"15",d),c.3X(q)),c.3X("1L-4i").1z(".1a");L c}})}9 s(b){P c;S(!b||"1e"!==Y b)L e;"1e"!==Y b.1X&&(b.1X={1v:b.1X});S("U"1M b){S("1e"!==Y b.U||b.U.1W)b.U={1p:b.U};c=b.U.1p||e,!a.1Q(c)&&(!c&&!c.14||c.17<1||"1e"===Y c&&!c.1W)&&(b.U.1p=e),"15"1M b.U&&("1e"!==Y b.U.15&&(b.U.15={1p:b.U.15}),c=b.U.15.1p||e,!a.1Q(c)&&(!c&&!c.14||c.17<1||"1e"===Y c&&!c.1W)&&(b.U.15.1p=e))}"11"1M b&&("1e"!==Y b.11&&(b.11={1O:b.11,2p:b.11}),"1G"1M b.11&&(/5o|3K( 3h| 3i)*/i.1w(b.11.1G.2m)||2s b.11.1G.2m)),"O"1M b&&("1e"!==Y b.O&&(b.O.1W?b.O={12:b.O}:b.O={1b:b.O})),"R"1M b&&("1e"!==Y b.R&&(b.R.1W?b.R={12:b.R}:b.R={1b:b.R})),"13"1M b&&("1e"!==Y b.13&&(b.13={2Z:b.13})),a.1j(h,9(){Q.30&&Q.30(b)});L b}9 r(){P c=b.5t;L c&&(c.4j||c.5u||a.5l).24(c,25)}P d=!0,e=!1,f=5h,g,h,i,j="1r-1o",k="1r-2i",l="1r-2X-2u",m="2h.1a."+j,n=j+"-2y",o="-5D",p="5F",q="4L";g=a.2f.1a=9(b,h,i){P j=(""+b).2k(),k=f,l=j==="42"?[d]:a.5J(25).4k(1,10),m=l[l.17-1],n=Q[0]?a.23(Q[0],"1a"):f;S(!25.17&&n||j==="5K")L n;S("1m"===Y b){Q.1j(9(){P b=a.23(Q,"1a");S(!b)L d;m&&m.5M&&(b.31.1b=m);S(j!=="2I"&&j!=="1J"||!h)b[j]&&b[j].24(b[j],l);2r S(a.5O(h)||i!==c)b.32(h,i);2r{k=b.3Q(h);L e}});L k!==f?k:Q}S("1e"===Y b||!25.17){n=s(a.1i(d,{},b));L g.18.1E(Q,n,m)}},g.18=9(b,c){L Q.1j(9(f){9 p(b){9 c(){o.1R(Y b==="1e"||i.O.2R),k.O.1z(l.O),k.R.1z(l.R)}S(o.31.2u)L e;o.31.1b=a.1i({},b),i.O.22>0?(1F(o.1q.O),o.1q.O=3a(c,i.O.22),l.O!==l.R&&k.R.18(l.R,9(){1F(o.1q.O)})):c()}P i,k,l,m=!b.1h||b.1h===e||b.1h.17<1||a("#"+j+"-"+b.1h).17?g.47++:b.1h,n=".1a-"+m+"-2c",o=u.1E(Q,m,b);S(o===e)L d;i=o.1J,a.1j(h,9(){Q.2v==="2v"&&Q(o)}),k={O:i.O.12,R:i.R.12},l={O:a.3E(""+i.O.1b).28(/ /g,n+" ")+n,R:a.3E(""+i.R.1b).28(/ /g,n+" ")+n},i.R.1b==="4e"&&(l.R="2O"+n),k.O.18(l.O,p),(i.O.2R||i.5c)&&p(c)})},h=g.1D={2w:9(a){a=(""+a).28(/([A-Z])/," $1").28(/6e/4r,"1n").2k(),Q.x=(a.4b(/N|1k/i)||a.4b(/1n/)||["3B"])[0].2k(),Q.y=(a.4b(/M|1l|1n/i)||["3B"])[0].2k(),Q.1c=a.3c(0).4t(/^(t|b)/)>-1?"y":"x",Q.1m=9(){L Q.1c==="y"?Q.y+Q.x:Q.x+Q.y},Q.4v=9(){P a=Q.x.29(0,1),b=Q.y.29(0,1);L a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},V:9(c,d){9 k(a,b){e.N+=b*a.2K(),e.M+=b*a.2F()}P e=c.V(),f=d,g=0,i=1A.35,j;S(f){6n{S(f[0]===i)2B;f.X("11")!=="6o"&&(j=f.11(),e.N-=j.N+(1x(f.X("6p"),10)||0),e.M-=j.M+(1x(f.X("6s"),10)||0),g++)}2V(f=f.6u());(d[0]!==i||g>1)&&k(d,1),h.34<4.1&&h.34>3.1&&k(a(b),-1)}L e},34:4E((""+(/4G.*6z ([0-6A]{1,3})|(4G 6E).*6G.*6J/i.4F(6N.6P)||[0,""])[1]).28("59","6S").28("6Z","."))||e,2f:{14:9(b,c){S(Q.17){P d=Q[0],e="15",f=a.23(d,"1a");S(b===e){S(25.17<2)L a.14(d,q);S(Y f==="1e"){f&&f.1f&&f.1J.U.14===e&&f.31.14&&f.32("U.1p",c),a.2f["14"+p].24(Q,25),a.14(d,q,a.14(d,e));L Q.3X(e)}}}},4J:9(b){P c=a([]),d="15",e;e=a.2f["4J"+p].24(Q,25).2t("[4L]").1j(9(){a.14(Q,d,a.14(Q,q)),Q.3v(q)}).7j();L e},1P:a.1r?f:9(b,c){a(Q).1j(9(){c||(!b||a.2t(b,[Q]).17)&&a("*",Q).2H(Q).1j(9(){a(Q).7s("1P")})})}}},a.1j(h.2f,9(b,c){S(!c)L d;P e=a.2f[b+p]=a.2f[b];a.2f[b]=9(){L c.24(Q,25)||e.24(Q,25)}}),a(1A).18("3k.1a",9(a){i={3A:a.3A,44:a.44,1v:"3k"}}),g.3C="2.0.7C",g.47=0,g.53="49 7D 3o 58 3k 2O 3e".33(" "),g.5a=7J,g.3g={5c:e,1h:e,4d:d,U:{1p:d,14:"15",15:{1p:e,1B:e}},11:{1O:"M N",2p:"1l 1k",12:e,1s:e,1Z:e,1G:{x:0,y:0,1H:d,2n:d,2m:"5o"},1K:d},O:{12:e,1b:"3e",1K:d,22:3I,3f:e,2R:e},R:{12:e,1b:"2O",1K:d,22:0,2l:e,1S:e,2Q:"3J"},13:{2Z:"",2i:e,T:e},3L:{1R:f,3Y:f,O:f,R:f,27:f,2y:f,1N:f}},h.1u=9(a){P b=a.1D.1u;L"1e"===Y b?b:a.1D.1u=1C v(a)},h.1u.2v="1R",h.1u.30=9(a){P b=a.U,c;b&&"1u"1M b&&(c=b.1u,Y c!=="1e"&&(c=a.U.1u={2j:c}),"2T"!==Y c.2x&&c.2x&&(c.2x=!!c.2x))},a.1i(d,g.3g,{U:{1u:{5s:d,2x:d}}}),h.16=9(a){P b=a.1D.16;L"1e"===Y b?b:a.1D.16=1C x(a)},h.16.2v="1R",h.16.30=9(a){P b=a.13,c;b&&"16"1M b&&(c=a.13.16,Y c!=="1e"&&(a.13.16={1g:c}),/1m|2T/i.1w(Y c.1g)||(c.1g=d),Y c.T!=="2D"&&2s c.T,Y c.W!=="2D"&&2s c.W,Y c.1d!=="2D"&&c.1d!==d&&2s c.1d,Y c.V!=="2D"&&2s c.V)},a.1i(d,g.3g,{13:{16:{1g:d,3r:e,T:6,W:6,1d:d,V:0}}}),h.3W=9(b,c){9 l(a,b){P d=0,e=1,f=1,g=0,h=0,i=a.T,j=a.W;2V(i>0&&j>0&&e>0&&f>0){i=19.3q(i/2),j=19.3q(j/2),c.x==="N"?e=i:c.x==="1k"?e=a.T-i:e+=19.3q(i/2),c.y==="M"?f=j:c.y==="1l"?f=a.W-j:f+=19.3q(j/2),d=b.17;2V(d--){S(b.17<2)2B;g=b[d][0]-a.V.N,h=b[d][1]-a.V.M,(c.x==="N"&&g>=e||c.x==="1k"&&g<=e||c.x==="1n"&&(ga.T-e)||c.y==="M"&&h>=f||c.y==="1l"&&h<=f||c.y==="1n"&&(ha.W-f))&&b.6M(d,1)}}L{N:b[0][0],M:b[0][1]}}P d=b.14("3T").2k(),e=b.14("70").33(","),f=[],g=a(\'3u[7d="#\'+b.7h("52").14("3Z")+\'"]\'),h=g.V(),i={T:0,W:0,V:{M:3t,1k:0,1l:0,N:3t}},j=0,k=0;h.N+=19.3x((g.3p()-g.T())/2),h.M+=19.3x((g.36()-g.W())/2);S(d==="5f"){j=e.17;2V(j--)k=[1x(e[--j],10),1x(e[j+1],10)],k[0]>i.V.1k&&(i.V.1k=k[0]),k[0]i.V.1l&&(i.V.1l=k[1]),k[1]