text: (function (){ function g(a){throw a;}
  var j=void 0,k=!0,l=null,n=!1,p,q=this,aa=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&
  !a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},s=function(a){return"array"==aa(a)},ca=function(a){var b=aa(a);return"array"==b||"object"==b&&"number"==typeof a.length},t=function(a){return"string"==typeof a},da=function(a){return"function"==aa(a)},ea=function(a){var b=typeof a;return"object"==b&&a!=l||"function"==b},ha=function(a){return a[fa]||(a[fa]=++ga)},fa="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),
  ga=0,ia=function(a,b,c){return a.call.apply(a.bind,arguments)},ja=function(a,b,c){a||g(Error());if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},u=function(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja;return u.apply(l,arguments)},ka=Date.now||function(){return+new Date},
  x=function(a,b){var c=a.split("."),d=q;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==j?d[e]=b:d=d[e]?d[e]:d[e]={}},y=function(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c};Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return u.apply(l,c)}return u(this,a)};var la=function(a){Error.captureStackTrace?Error.captureStackTrace(this,la):this.stack=Error().stack||"";a&&(this.message=String(a))};y(la,Error);la.prototype.name="CustomError";var ma=function(a,b){for(var c=1;c<arguments.length;c++){var d=String(arguments[c]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,d)}return a},sa=function(a){if(!na.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(oa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(pa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(qa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ra,"&quot;"));return a},oa=/&/g,pa=/</g,qa=/>/g,ra=/\"/g,na=/[&<>\"]/;var ta=function(a,b){b.unshift(a);la.call(this,ma.apply(l,b));b.shift()};y(ta,la);ta.prototype.name="AssertionError";var ua=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);g(new ta(""+e,f||[]))},z=function(a,b,c){a||ua("",l,b,Array.prototype.slice.call(arguments,2))},va=function(a,b,c){ea(a)||ua("Expected object but got %s: %s.",[aa(a),a],b,Array.prototype.slice.call(arguments,2))};var A=function(a){return a[a.length-1]},C=Array.prototype,wa=C.indexOf?function(a,b,c){z(a.length!=l);return C.indexOf.call(a,b,c)}:function(a,b,c){c=c==l?0:0>c?Math.max(0,a.length+c):c;if(t(a))return!t(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},xa=C.forEach?function(a,b,c){z(a.length!=l);C.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ya=C.filter?function(a,b,c){z(a.length!=l);
  return C.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=t(a)?a.split(""):a,m=0;m<d;m++)if(m in h){var r=h[m];b.call(c,r,m,a)&&(e[f++]=r)}return e},za=C.map?function(a,b,c){z(a.length!=l);return C.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=t(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Aa=C.every?function(a,b,c){z(a.length!=l);return C.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&
  !b.call(c,e[f],f,a))return n;return k},Ba=function(a,b){var c=wa(a,b);0<=c&&(z(a.length!=l),C.splice.call(a,c,1))},Ca=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},Da=function(a,b,c){z(a.length!=l);return 2>=arguments.length?C.slice.call(a,b):C.slice.call(a,b,c)},Ea=function(a,b){return a>b?1:a<b?-1:0};var Fa=function(a,b){this.x=a!==j?a:0;this.y=b!==j?b:0};Fa.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var D=function(a,b){this.width=a;this.height=b};D.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};D.prototype.Ha=function(){return!(this.width*this.height)};D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Ga=function(a,b){for(var c in a)b.call(j,a[c],c,a)},Ha=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Ia=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Ja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ka=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ja.length;f++)c=Ja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},La=function(a){var b=arguments.length;
  if(1==b&&s(arguments[0]))return La.apply(l,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=k;return c};var Ma,Na,Oa,Pa,Qa,Ra=function(){return q.navigator?q.navigator.userAgent:l},Sa=function(){return q.navigator};Pa=Oa=Na=Ma=n;var Ta;if(Ta=Ra()){var Ua=Sa();Ma=0==Ta.indexOf("Opera");Na=!Ma&&-1!=Ta.indexOf("MSIE");Oa=!Ma&&-1!=Ta.indexOf("WebKit");Pa=!Ma&&!Oa&&"Gecko"==Ua.product}var Va=Ma,E=Na,F=Pa,G=Oa,Wa=Sa();Qa=-1!=(Wa&&Wa.platform||"").indexOf("Mac");var Xa=!!Sa()&&-1!=(Sa().appVersion||"").indexOf("X11"),Ya=function(){var a=q.document;return a?a.documentMode:j},Za;
  a:{var $a="",ab;if(Va&&q.opera)var bb=q.opera.version,$a="function"==typeof bb?bb():bb;else if(F?ab=/rv\:([^\);]+)(\)|;)/:E?ab=/MSIE\s+([^\);]+)(\)|;)/:G&&(ab=/WebKit\/(\S+)/),ab)var cb=ab.exec(Ra()),$a=cb?cb[1]:"";if(E){var db=Ya();if(db>parseFloat($a)){Za=String(db);break a}}Za=$a}
  var eb=Za,fb={},H=function(a){var b;if(!(b=fb[a])){b=0;for(var c=String(eb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var h=c[f]||"",m=d[f]||"",r=RegExp("(\\d*)(\\D*)","g"),v=RegExp("(\\d*)(\\D*)","g");do{var B=r.exec(h)||["","",""],w=v.exec(m)||["","",""];if(0==B[0].length&&0==w[0].length)break;b=((0==B[1].length?0:parseInt(B[1],10))<(0==w[1].length?0:parseInt(w[1],10))?-1:(0==B[1].length?
  0:parseInt(B[1],10))>(0==w[1].length?0:parseInt(w[1],10))?1:0)||((0==B[2].length)<(0==w[2].length)?-1:(0==B[2].length)>(0==w[2].length)?1:0)||(B[2]<w[2]?-1:B[2]>w[2]?1:0)}while(0==b)}b=fb[a]=0<=b}return b},gb=q.document,hb=!gb||!E?j:Ya()||("CSS1Compat"==gb.compatMode?parseInt(eb,10):5);var ib,jb=!E||E&&9<=hb;!F&&!E||E&&E&&9<=hb||F&&H("1.9.1");E&&H("9");var kb=function(a){a=a.className;return t(a)&&a.match(/\S+/g)||[]},lb=function(a,b){for(var c=kb(a),d=Da(arguments,1),e=c.length+d.length,f=c,h=0;h<d.length;h++)0<=wa(f,d[h])||f.push(d[h]);a.className=c.join(" ");return c.length==e},mb=function(a,b){var c=kb(a),d=Da(arguments,1),c=ya(c,function(a){return!(0<=wa(d,a))});a.className=c.join(" ")};var K=function(a){return a?new I(J(a)):ib||(ib=new I)},ob={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},qb=function(a){a=a.document;a=pb(a)?a.documentElement:a.body;return new D(a.clientWidth,a.clientHeight)},rb=function(a){return a.parentWindow||a.defaultView},tb=function(a,b,c){return sb(document,arguments)},sb=function(a,
  b){var c=b[0],d=b[1];if(!jb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',sa(d.name),'"');if(d.type){c.push(' type="',sa(d.type),'"');var e={};Ka(e,d);delete e.type;d=e}c.push(">");c=c.join("")}var f=a.createElement(c);d&&(t(d)?f.className=d:s(d)?lb.apply(l,[f].concat(d)):Ga(d,function(a,b){"style"==b?f.style.cssText=a:"class"==b?f.className=a:"for"==b?f.htmlFor=a:b in ob?f.setAttribute(ob[b],a):0==b.lastIndexOf("aria-",0)||0==b.lastIndexOf("data-",0)?f.setAttribute(b,a):f[b]=a}));2<b.length&&
  ub(a,f,b,2);return f},ub=function(a,b,c,d){function e(c){c&&b.appendChild(t(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ca(f)&&!(ea(f)&&0<f.nodeType)){var h=xa,m;a:{if((m=f)&&"number"==typeof m.length){if(ea(m)){m="function"==typeof m.item||"string"==typeof m.item;break a}if(da(m)){m="function"==typeof m.item;break a}}m=n}h(m?Ca(f):f,e)}else e(f)}},pb=function(a){return"CSS1Compat"==a.compatMode},vb=function(a,b){ub(J(a),a,arguments,1)},wb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):
  l},xb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},J=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},I=function(a){this.f=a||q.document||document};I.prototype.h=K;var yb=function(a){return a.f};I.prototype.b=function(a){return t(a)?this.f.getElementById(a):a};var zb=function(a,b){var c;c=a.f;var d=b&&"*"!=b?b.toUpperCase():"";c=c.querySelectorAll&&c.querySelector&&d?c.querySelectorAll(d+""):c.getElementsByTagName(d||"*");return c};
  I.prototype.i=function(a,b,c){return sb(this.f,arguments)};I.prototype.createElement=function(a){return this.f.createElement(a)};I.prototype.createTextNode=function(a){return this.f.createTextNode(a)};var Ab=function(a){var b=a.f;a=!G&&pb(b)?b.documentElement:b.body;b=rb(b);return new Fa(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};I.prototype.appendChild=function(a,b){a.appendChild(b)};I.prototype.append=vb;I.prototype.removeNode=wb;var Bb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Bb.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};var Cb=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Cb.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var L=function(a,b){var c=J(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,l))?c[b]||c.getPropertyValue(b)||"":""},Db=function(a,b){return a.currentStyle?a.currentStyle[b]:l},Eb=function(a,b){return L(a,b)||Db(a,b)||a.style&&a.style[b]},Fb=function(a){return Eb(a,"position")},Hb=function(a,b,c){var d,e=F&&(Qa||Xa)&&H("1.9");b instanceof Fa?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Gb(d,e);a.style.top=Gb(b,e)},Ib=function(a){var b=a.getBoundingClientRect();
  E&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Jb=function(a){if(E&&!(E&&8<=hb))return a.offsetParent;var b=J(a),c=Eb(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Eb(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return l},Kb=function(a){var b,
  c=J(a),d=Eb(a,"position");va(a,"Parameter is required");var e=F&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Fa(0,0),h;b=c?J(c):document;if(h=E)if(h=!(E&&9<=hb))h=K(b),h=!pb(h.f);h=h?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=Ib(a),a=Ab(K(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=
  a;do{f.x+=e.offsetLeft;f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(G&&"fixed"==Fb(e)){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(Va||G&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Jb(e))&&e!=c.body&&e!=h;)if(f.x-=e.scrollLeft,!Va||"TR"!=e.tagName)f.y-=e.scrollTop}return f},Lb=function(a,b,c){b instanceof D?(c=b.height,b=b.width):c==j&&g(Error("missing height argument"));a.style.width=Gb(b,k);a.style.height=Gb(c,k)},Gb=function(a,
  b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Nb=function(a){if("none"!=Eb(a,"display"))return Mb(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Mb(a);b.display=c;b.position=e;b.visibility=d;return a},Mb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=G&&!b&&!c;return(b===j||d)&&a.getBoundingClientRect?(a=Ib(a),new D(a.right-a.left,a.bottom-a.top)):new D(b,c)},Ob=function(a,b){var c=a.style;"opacity"in c?
  c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")},M=function(a,b){a.style.display=b?"":"none"},Pb=function(a){E?a.cssText=".bidichecker-dialog-bg { position: absolute; top: 0; left: 0; }.bidichecker-dialog {font-family: arial, sans-serif}.bidichecker-dialog-buttons {display: none;}.bidichecker-dialog-title-close {position: absolute;right: 0;padding-right: 5px;padding-left: 5px;}.bidichecker-dialog-title-close:hover {background-color: #fee;}.bidichecker-dialog iframe {border: 0;height: 100%;width: 100%;background: white;}.bidichecker-dialog { position: absolute; background-color: #fcb; border: 1px solid #000; width: 800px; height: 600px; color: #000; outline: none; direction: ltr }.bidichecker-dialog-title { position: relative; padding-bottom: 5px;height: 1em;color: #000000;font-size: 16px; font-weight: bold; vertical-align: middle; }.bidichecker-dialog .bidichecker-dialog-title {cursor: pointer; cursor: hand }":
  a.innerHTML=".bidichecker-dialog-bg { position: absolute; top: 0; left: 0; }.bidichecker-dialog {font-family: arial, sans-serif}.bidichecker-dialog-buttons {display: none;}.bidichecker-dialog-title-close {position: absolute;right: 0;padding-right: 5px;padding-left: 5px;}.bidichecker-dialog-title-close:hover {background-color: #fee;}.bidichecker-dialog iframe {border: 0;height: 100%;width: 100%;background: white;}.bidichecker-dialog { position: absolute; background-color: #fcb; border: 1px solid #000; width: 800px; height: 600px; color: #000; outline: none; direction: ltr }.bidichecker-dialog-title { position: relative; padding-bottom: 5px;height: 1em;color: #000000;font-size: 16px; font-weight: bold; vertical-align: middle; }.bidichecker-dialog .bidichecker-dialog-title {cursor: pointer; cursor: hand }"},
  Qb=function(a){return"rtl"==Eb(a,"direction")},Rb=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b},Sb=function(a,b){return Rb(a,Db(a,b),"left","pixelLeft")},Tb={thin:2,medium:4,thick:6},Ub=function(a,b){if("none"==Db(a,b+"Style"))return 0;var c=Db(a,b+"Width");return c in Tb?Tb[c]:Rb(a,c,"left","pixelLeft")},Vb=function(a){if(E){var b=Ub(a,"borderLeft"),
  c=Ub(a,"borderRight"),d=Ub(a,"borderTop");a=Ub(a,"borderBottom");return new Bb(d,c,a,b)}b=L(a,"borderLeftWidth");c=L(a,"borderRightWidth");d=L(a,"borderTopWidth");a=L(a,"borderBottomWidth");return new Bb(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Wb=function(){};Wb.prototype.jb=n;Wb.prototype.q=function(){this.jb||(this.jb=k,this.g())};var Xb=function(a,b){a.Sa||(a.Sa=[]);a.Sa.push(b)};Wb.prototype.g=function(){this.Sa&&Yb.apply(l,this.Sa);if(this.ac)for(;this.ac.length;)this.ac.shift()()};var N=function(a){a&&"function"==typeof a.q&&a.q()},Yb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ca(d)?Yb.apply(l,d):N(d)}};var O=function(a,b){this.type=a;this.currentTarget=this.target=b};p=O.prototype;p.g=function(){};p.q=function(){};p.Q=n;p.defaultPrevented=n;p.Na=k;p.stopPropagation=function(){this.Q=k};p.preventDefault=function(){this.defaultPrevented=k;this.Na=n};var Zb=function(a){a.preventDefault()};var $b=function(a){$b[" "](a);return a};$b[" "]=function(){};var ac=!E||E&&9<=hb,bc=!E||E&&9<=hb,cc=E&&!H("9");!G||H("528");F&&H("1.9b")||E&&H("8")||Va&&H("9.5")||G&&H("528");F&&!H("8")||E&&H("9");var dc=function(a,b){a&&this.ga(a,b)};y(dc,O);var ec=[1,4,2];p=dc.prototype;p.target=l;p.relatedTarget=l;p.offsetX=0;p.offsetY=0;p.clientX=0;p.clientY=0;p.screenX=0;p.screenY=0;p.button=0;p.keyCode=0;p.charCode=0;p.ctrlKey=n;p.altKey=n;p.shiftKey=n;p.metaKey=n;p.u=l;
  p.ga=function(a,b){var c=this.type=a.type;O.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(F){var e;a:{try{$b(d.nodeName);e=k;break a}catch(f){}e=n}e||(d=l)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=G||a.offsetX!==j?a.offsetX:a.layerX;this.offsetY=G||a.offsetY!==j?a.offsetY:a.layerY;this.clientX=a.clientX!==j?a.clientX:a.pageX;this.clientY=a.clientY!==j?a.clientY:a.pageY;this.screenX=a.screenX||
  0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.u=a;a.defaultPrevented&&this.preventDefault();delete this.Q};p.stopPropagation=function(){dc.c.stopPropagation.call(this);this.u.stopPropagation?this.u.stopPropagation():this.u.cancelBubble=k};
  p.preventDefault=function(){dc.c.preventDefault.call(this);var a=this.u;if(a.preventDefault)a.preventDefault();else if(a.returnValue=n,cc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.g=function(){};var fc=function(){},gc=0;p=fc.prototype;p.key=0;p.P=n;p.sb=n;p.ga=function(a,b,c,d,e,f){da(a)?this.Ub=k:a&&a.handleEvent&&da(a.handleEvent)?this.Ub=n:g(Error("Invalid listener argument"));this.da=a;this.Pb=b;this.src=c;this.type=d;this.capture=!!e;this.Ea=f;this.sb=n;this.key=++gc;this.P=n};p.handleEvent=function(a){return this.Ub?this.da.call(this.Ea||this.src,a):this.da.handleEvent.call(this.da,a)};var hc={},P={},Q={},ic={},R=function(a,b,c,d,e){if(b){if(s(b)){for(var f=0;f<b.length;f++)R(a,b[f],c,d,e);return l}d=!!d;var h=P;b in h||(h[b]={k:0,s:0});h=h[b];d in h||(h[d]={k:0,s:0},h.k++);var h=h[d],m=ha(a),r;h.s++;if(h[m]){r=h[m];for(f=0;f<r.length;f++)if(h=r[f],h.da==c&&h.Ea==e){if(h.P)break;return r[f].key}}else r=h[m]=[],h.k++;var v=jc,B=bc?function(a){return v.call(B.src,B.key,a)}:function(a){a=v.call(B.src,B.key,a);if(!a)return a},f=B;f.src=a;h=new fc;h.ga(c,f,a,b,d,e);c=h.key;f.key=c;r.push(h);
  hc[c]=h;Q[m]||(Q[m]=[]);Q[m].push(h);a.addEventListener?(a==q||!a.Ob)&&a.addEventListener(b,f,d):a.attachEvent(b in ic?ic[b]:ic[b]="on"+b,f);return c}g(Error("Invalid event type"))},kc=function(a,b,c,d,e){if(s(b)){for(var f=0;f<b.length;f++)kc(a,b[f],c,d,e);return l}a=R(a,b,c,d,e);hc[a].sb=k;return a},lc=function(a,b,c,d,e){if(s(b))for(var f=0;f<b.length;f++)lc(a,b[f],c,d,e);else if(d=!!d,a=mc(a,b,d))for(f=0;f<a.length;f++)if(a[f].da==c&&a[f].capture==d&&a[f].Ea==e){nc(a[f].key);break}},nc=function(a){if(!hc[a])return n;
  var b=hc[a];if(b.P)return n;var c=b.src,d=b.type,e=b.Pb,f=b.capture;c.removeEventListener?(c==q||!c.Ob)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in ic?ic[d]:ic[d]="on"+d,e);c=ha(c);Q[c]&&(e=Q[c],Ba(e,b),0==e.length&&delete Q[c]);b.P=k;if(b=P[d][f][c])b.Sb=k,oc(d,f,c,b);delete hc[a];return k},oc=function(a,b,c,d){if(!d.La&&d.Sb){for(var e=0,f=0;e<d.length;e++)d[e].P?d[e].Pb.src=l:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Sb=n;0==f&&(delete P[a][b][c],P[a][b].k--,0==P[a][b].k&&(delete P[a][b],
  P[a].k--),0==P[a].k&&delete P[a])}},mc=function(a,b,c){var d=P;return b in d&&(d=d[b],c in d&&(d=d[c],a=ha(a),d[a]))?d[a]:l},qc=function(a,b,c,d,e){var f=1;b=ha(b);if(a[b]){a.s--;a=a[b];a.La?a.La++:a.La=1;try{for(var h=a.length,m=0;m<h;m++){var r=a[m];r&&!r.P&&(f&=pc(r,e)!==n)}}finally{a.La--,oc(c,d,b,a)}}return Boolean(f)},pc=function(a,b){a.sb&&nc(a.key);return a.handleEvent(b)},jc=function(a,b){if(!hc[a])return k;var c=hc[a],d=c.type,e=P;if(!(d in e))return k;var e=e[d],f,h;if(!bc){var m;if(!(m=
  b))a:{m=["window","event"];for(var r=q;f=m.shift();)if(r[f]!=l)r=r[f];else{m=l;break a}m=r}f=m;m=k in e;r=n in e;if(m){if(0>f.keyCode||f.returnValue!=j)return k;a:{var v=n;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(B){v=k}if(v||f.returnValue==j)f.returnValue=k}}v=new dc;v.ga(f,this);f=k;try{if(m){for(var w=[],nb=v.currentTarget;nb;nb=nb.parentNode)w.push(nb);h=e[k];h.s=h.k;for(var ba=w.length-1;!v.Q&&0<=ba&&h.s;ba--)v.currentTarget=w[ba],f&=qc(h,w[ba],d,k,v);if(r){h=e[n];h.s=h.k;for(ba=0;!v.Q&&
  ba<w.length&&h.s;ba++)v.currentTarget=w[ba],f&=qc(h,w[ba],d,n,v)}}else f=pc(c,v)}finally{w&&(w.length=0)}return f}d=new dc(b,this);return f=pc(c,d)};var S=function(a){this.lb=a;this.d=[]};y(S,Wb);
  var rc=[],T=function(a,b,c,d,e){s(c)||(rc[0]=c,c=rc);for(var f=0;f<c.length;f++){var h=R(b,c[f],d||a,e||n,a.lb||a);a.d.push(h)}return a},sc=function(a,b,c,d,e,f){if(s(c))for(var h=0;h<c.length;h++)sc(a,b,c[h],d,e,f);else b=kc(b,c,d||a,e,f||a.lb||a),a.d.push(b)},tc=function(a,b,c,d,e,f){if(s(c))for(var h=0;h<c.length;h++)tc(a,b,c[h],d,e,f);else{a:{d=d||a;f=f||a.lb||a;e=!!e;if(b=mc(b,c,e))for(c=0;c<b.length;c++)if(!b[c].P&&b[c].da==d&&b[c].capture==e&&b[c].Ea==f){b=b[c];break a}b=l}b&&(b=b.key,nc(b),
  Ba(a.d,b))}};S.prototype.D=function(){xa(this.d,nc);this.d.length=0};S.prototype.g=function(){S.c.g.call(this);this.D()};S.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};var uc=function(){};y(uc,Wb);p=uc.prototype;p.Ob=k;p.Ia=l;p.hb=function(a){this.Ia=a};p.addEventListener=function(a,b,c,d){R(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){lc(this,a,b,c,d)};
  p.dispatchEvent=function(a){var b=a.type||a,c=P;if(b in c){if(t(a))a=new O(a,this);else if(a instanceof O)a.target=a.target||this;else{var d=a;a=new O(b,this);Ka(a,d)}var d=1,e,c=c[b],b=k in c,f;if(b){e=[];for(f=this;f;f=f.Ia)e.push(f);f=c[k];f.s=f.k;for(var h=e.length-1;!a.Q&&0<=h&&f.s;h--)a.currentTarget=e[h],d&=qc(f,e[h],a.type,k,a)&&a.Na!=n}if(n in c)if(f=c[n],f.s=f.k,b)for(h=0;!a.Q&&h<e.length&&f.s;h++)a.currentTarget=e[h],d&=qc(f,e[h],a.type,n,a)&&a.Na!=n;else for(e=this;!a.Q&&e&&f.s;e=e.Ia)a.currentTarget=
  e,d&=qc(f,e,a.type,n,a)&&a.Na!=n;a=Boolean(d)}else a=k;return a};p.g=function(){uc.c.g.call(this);var a,b=0,c=a==l;a=!!a;if(this==l)Ga(Q,function(d){for(var f=d.length-1;0<=f;f--){var e=d[f];if(c||a==e.capture)nc(e.key),b++}});else{var d=ha(this);if(Q[d])for(var d=Q[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)nc(f.key),b++}}this.Ia=l};var vc=function(a,b,c){this.target=a;this.handle=b||a;this.Ga=c||new Cb(NaN,NaN,NaN,NaN);this.f=J(a);this.m=new S(this);R(this.handle,["touchstart","mousedown"],this.Mb,n,this)};y(vc,uc);var wc=E||F&&H("1.9.3");p=vc.prototype;p.clientX=0;p.clientY=0;p.screenX=0;p.screenY=0;p.Hb=0;p.Ib=0;p.ba=0;p.ca=0;p.Fb=k;p.O=n;p.Gb=0;p.kc=n;p.ab=n;p.L=function(){return this.m};
  p.g=function(){vc.c.g.call(this);lc(this.handle,["touchstart","mousedown"],this.Mb,n,this);this.m.D();wc&&this.f.releaseCapture();this.m=this.handle=this.target=l};var xc=function(a){a.Qa===j&&(a.Qa=Qb(a.target));return a.Qa};
  vc.prototype.Mb=function(a){var b="mousedown"==a.type;if(this.Fb&&!this.O&&(!b||(ac?0==a.u.button:"click"==a.type||a.u.button&ec[0])&&(!G||!Qa||!a.ctrlKey))){yc(a);if(0==this.Gb)if(this.dispatchEvent(new zc("start",this,a.clientX,a.clientY)))this.O=k,a.preventDefault();else return;else a.preventDefault();var b=this.f,c=b.documentElement,d=!wc;T(this.m,b,["touchmove","mousemove"],this.jc,d);T(this.m,b,["touchend","mouseup"],this.Da,d);wc?(c.setCapture(n),T(this.m,c,"losecapture",this.Da)):T(this.m,
  b?rb(b):window,"blur",this.Da);E&&this.kc&&T(this.m,b,"dragstart",Zb);this.mc&&T(this.m,this.mc,"scroll",this.lc,d);this.clientX=this.Hb=a.clientX;this.clientY=this.Ib=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.ab?(a=this.target,b=a.offsetLeft,c=a.offsetParent,!c&&"fixed"==Fb(a)&&(c=J(a).documentElement),c?(F?(d=Vb(c),b+=d.left):E&&8<=hb&&(d=Vb(c),b-=d.left),a=Qb(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.ba=a;this.ca=this.target.offsetTop;this.bb=Ab(K(this.f));
  ka()}else this.dispatchEvent("earlycancel")};vc.prototype.Da=function(a){this.m.D();wc&&this.f.releaseCapture();if(this.O){yc(a);this.O=n;var b=Ac(this,this.ba),c=Bc(this,this.ca);this.dispatchEvent(new zc("end",this,a.clientX,a.clientY,0,b,c))}else this.dispatchEvent("earlycancel");("touchend"==a.type||"touchcancel"==a.type)&&a.preventDefault()};
  var yc=function(a){var b=a.type;"touchstart"==b||"touchmove"==b?a.ga(a.u.targetTouches[0],a.currentTarget):("touchend"==b||"touchcancel"==b)&&a.ga(a.u.changedTouches[0],a.currentTarget)};
  vc.prototype.jc=function(a){if(this.Fb){yc(a);var b=(this.ab&&xc(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.O){var d=this.Hb-this.clientX,e=this.Ib-this.clientY;if(d*d+e*e>this.Gb)if(this.dispatchEvent(new zc("start",this,a.clientX,a.clientY)))this.O=k;else{this.jb||this.Da(a);return}}c=Cc(this,b,c);b=c.x;c=c.y;this.O&&this.dispatchEvent(new zc("beforedrag",this,a.clientX,a.clientY,
  0,b,c))&&(Dc(this,a,b,c),a.preventDefault())}};var Cc=function(a,b,c){var d=Ab(K(a.f));b+=d.x-a.bb.x;c+=d.y-a.bb.y;a.bb=d;a.ba+=b;a.ca+=c;b=Ac(a,a.ba);a=Bc(a,a.ca);return new Fa(b,a)};vc.prototype.lc=function(a){var b=Cc(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Dc(this,a,b.x,b.y)};
  var Dc=function(a,b,c,d){a.ab&&xc(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new zc("drag",a,b.clientX,b.clientY,0,c,d))},Ac=function(a,b){var c=a.Ga,d=!isNaN(c.left)?c.left:l,c=!isNaN(c.width)?c.width:0;return Math.min(d!=l?d+c:Infinity,Math.max(d!=l?d:-Infinity,b))},Bc=function(a,b){var c=a.Ga,d=!isNaN(c.top)?c.top:l,c=!isNaN(c.height)?c.height:0;return Math.min(d!=l?d+c:Infinity,Math.max(d!=l?d:-Infinity,b))},zc=function(a,b,c,d,e,f,h){O.call(this,
  a);this.clientX=c;this.clientY=d;this.left=f!==j?f:b.ba;this.top=h!==j?h:b.ca};y(zc,O);var Ec="StopIteration"in q?q.StopIteration:Error("StopIteration"),Fc=function(){};Fc.prototype.next=function(){g(Ec)};Fc.prototype.yb=function(){return this};var Gc=function(a){if(a instanceof Fc)return a;if("function"==typeof a.yb)return a.yb(n);if(ca(a)){var b=0,c=new Fc;c.next=function(){for(;;){b>=a.length&&g(Ec);if(b in a)return a[b++];b++}};return c}g(Error("Not implemented"))};var Hc=function(a){if("function"==typeof a.Fa)return a.Fa();if(t(a))return a.split("");if(ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ha(a)};var Ic=function(a,b){this.R={};this.d=[];var c=arguments.length;if(1<c){c%2&&g(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Ic?(c=a.eb(),d=a.Fa()):(c=Ia(a),d=Ha(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};p=Ic.prototype;p.k=0;p.kb=0;p.Fa=function(){Jc(this);for(var a=[],b=0;b<this.d.length;b++)a.push(this.R[this.d[b]]);return a};p.eb=function(){Jc(this);return this.d.concat()};p.Ha=function(){return 0==this.k};
  var Jc=function(a){if(a.k!=a.d.length){for(var b=0,c=0;b<a.d.length;){var d=a.d[b];Object.prototype.hasOwnProperty.call(a.R,d)&&(a.d[c++]=d);b++}a.d.length=c}if(a.k!=a.d.length){for(var e={},c=b=0;b<a.d.length;)d=a.d[b],Object.prototype.hasOwnProperty.call(e,d)||(a.d[c++]=d,e[d]=1),b++;a.d.length=c}};Ic.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.R,a)?this.R[a]:b};
  Ic.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.R,a)||(this.k++,this.d.push(a),this.kb++);this.R[a]=b};Ic.prototype.yb=function(a){Jc(this);var b=0,c=this.d,d=this.R,e=this.kb,f=this,h=new Fc;h.next=function(){for(;;){e!=f.kb&&g(Error("The map has changed since the iterator was created"));b>=c.length&&g(Ec);var h=c[b++];return a?h:d[h]}};return h};var Kc=function(a){this.a=a;a=E?"focusout":"blur";this.tc=R(this.a,E?"focusin":"focus",this,!E);this.uc=R(this.a,a,this,!E)};y(Kc,uc);Kc.prototype.handleEvent=function(a){var b=new dc(a.u);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};Kc.prototype.g=function(){Kc.c.g.call(this);nc(this.tc);nc(this.uc);delete this.a};var Lc=q.window;var Mc=function(){};Mc.bc=function(){return Mc.cc?Mc.cc:Mc.cc=new Mc};Mc.prototype.Sc=0;Mc.bc();var Oc=function(a){this.oa=a||K();this.Qa=Nc};y(Oc,uc);Oc.prototype.Rc=Mc.bc();var Nc=l;p=Oc.prototype;p.Ra=l;p.v=n;p.a=l;p.Qa=l;p.X=l;p.Aa=l;p.za=l;p.hc=n;p.Wa=function(){return this.Ra||(this.Ra=":"+(this.Rc.Sc++).toString(36))};p.b=function(){return this.a};p.L=function(){return this.aa||(this.aa=new S(this))};p.hb=function(a){this.X&&this.X!=a&&g(Error("Method not supported"));Oc.c.hb.call(this,a)};p.h=function(){return this.oa};p.i=function(){this.a=this.oa.createElement("div")};
  p.va=function(a){this.v&&g(Error("Component already rendered"));this.a||this.i();a?a.insertBefore(this.a,l):this.oa.f.body.appendChild(this.a);(!this.X||this.X.v)&&this.V()};p.V=function(){this.v=k;Pc(this,function(a){!a.v&&a.b()&&a.V()})};p.M=function(){Pc(this,function(a){a.v&&a.M()});this.aa&&this.aa.D();this.v=n};p.g=function(){Oc.c.g.call(this);this.v&&this.M();this.aa&&(this.aa.q(),delete this.aa);Pc(this,function(a){a.q()});!this.hc&&this.a&&wb(this.a);this.X=this.a=this.za=this.Aa=l};
  p.Jb=function(){return this.a};var Pc=function(a,b){a.Aa&&xa(a.Aa,b,j)};Oc.prototype.removeChild=function(a,b){if(a){var c=t(a)?a:a.Wa(),d;this.za&&c?(d=this.za,d=(c in d?d[c]:j)||l):d=l;a=d;c&&a&&(d=this.za,c in d&&delete d[c],Ba(this.Aa,a),b&&(a.M(),a.a&&wb(a.a)),c=a,c==l&&g(Error("Unable to set parent component")),c.X=l,Oc.c.hb.call(c,l))}a||g(Error("Child is not in parent component"));return a};var U=function(a,b){Oc.call(this,b);this.fc=!!a};y(U,Oc);p=U.prototype;p.$a=l;p.W=n;p.n=l;p.j=l;p.z=l;p.Ba=function(){return"goog-modalpopup"};p.ua=function(){return this.n};
  p.i=function(){U.c.i.call(this);var a=this.b();lb(a,this.Ba());a.tabIndex=0;M(a,n);this.fc&&!this.j&&(this.j=this.h().i("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'}),this.j.className=this.Ba()+"-bg",M(this.j,n),Ob(this.j,0));this.n||(this.n=this.h().i("div",this.Ba()+"-bg"),M(this.n,n));this.z||(this.z=this.h().createElement("span"),M(this.z,n),this.z.tabIndex=0,this.z.style.position="absolute")};
  p.V=function(){z(!!this.n,"Background element must not be null.");if(this.j){var a=this.b();a.parentNode&&a.parentNode.insertBefore(this.j,a)}a=this.b();a.parentNode&&a.parentNode.insertBefore(this.n,a);U.c.V.call(this);a=this.b();a.parentNode&&a.parentNode.insertBefore(this.z,a.nextSibling);this.$a=new Kc(yb(this.h()));T(this.L(),this.$a,"focusin",this.gc)};p.M=function(){this.W&&this.B(n);N(this.$a);U.c.M.call(this);wb(this.j);wb(this.n);wb(this.z)};
  p.B=function(a){z(this.v,"ModalPopup must be rendered first.");if(a!=this.W)if(this.$&&this.$.stop(),this.na&&this.na.stop(),this.Z&&this.Z.stop(),this.ma&&this.ma.stop(),a){if(this.dispatchEvent("beforeshow")){this.cb();Qc(this);a=this.L();var b=this.h();T(a,rb(b.f),"resize",this.cb);Rc(this,k);this.focus();this.W=k;this.$&&this.na?(kc(this.$,"end",this.Ca,n,this),this.na.play(),this.$.play()):this.Ca()}}else if(this.dispatchEvent("beforehide")){a=tc;var b=this.L(),c=this.h();a(b,rb(c.f),"resize",
  this.cb);this.W=n;this.Z&&this.ma?(kc(this.Z,"end",this.ya,n,this),this.ma.play(),this.Z.play()):this.ya()}};var Rc=function(a,b){a.j&&M(a.j,b);a.n&&M(a.n,b);M(a.b(),b);M(a.z,b)};U.prototype.Ca=function(){this.dispatchEvent("show")};U.prototype.ya=function(){Rc(this,n);this.dispatchEvent("hide")};U.prototype.focus=function(){this.Yb()};
  U.prototype.cb=function(){this.j&&M(this.j,n);this.n&&M(this.n,n);var a=yb(this.h()),b=qb((a?rb(a):window)||window||window),c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth)),a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.j&&(M(this.j,k),Lb(this.j,c,a));this.n&&(M(this.n,k),Lb(this.n,c,a))};
  var Qc=function(a){var b=yb(a.h()),c=(b?rb(b):window)||window;if("fixed"==Fb(a.b()))var d=b=0;else d=Ab(a.h()),b=d.x,d=d.y;var e=Nb(a.b()),c=qb(c||window),b=Math.max(b+c.width/2-e.width/2,0),d=Math.max(d+c.height/2-e.height/2,0);Hb(a.b(),b,d);Hb(a.z,b,d)};U.prototype.gc=function(a){a.target==this.z&&(a=this.Yb,da(a)?this&&(a=u(a,this)):a&&"function"==typeof a.handleEvent?a=u(a.handleEvent,a):g(Error("Invalid listener argument")),Lc.setTimeout(a,0))};
  U.prototype.Yb=function(){try{E&&yb(this.h()).body.focus(),this.b().focus()}catch(a){}};U.prototype.g=function(){N(this.$);this.$=l;N(this.Z);this.Z=l;N(this.na);this.na=l;N(this.ma);this.ma=l;U.c.g.call(this)};var X=function(a,b,c){U.call(this,b,c);this.w=a||"modal-dialog";this.C=V(V(new W,Sc,k),Tc,n,k)};y(X,U);p=X.prototype;p.rc=k;p.Ab=k;p.Xa=k;p.nc=k;p.Ya=0.5;p.ec="";p.Bb="";p.H=l;p.Db=n;p.J=l;p.Va=l;p.Cb=l;p.la=l;p.Za=l;p.K=l;p.zb="dialog";p.Ba=function(){return this.w};var Uc=function(a){a.b()||a.va()};X.prototype.Jb=function(){Uc(this);return this.Za};X.prototype.ua=function(){Uc(this);return X.c.ua.call(this)};
  var Vc=function(a){a.Xa=n;if(a.v){var b=a.h(),c=a.ua();b.removeNode(a.j);b.removeNode(c)}},Wc=function(a,b){if(a.b()){var c=a.J,d=a.w+"-title-draggable";b?lb(c,d):mb(c,d)}b&&!a.H?(a.H=new vc(a.b(),a.J),lb(a.J,a.w+"-title-draggable"),R(a.H,"start",a.vc,n,a)):!b&&a.H&&(a.H.q(),a.H=l)};p=X.prototype;
  p.i=function(){X.c.i.call(this);var a=this.b();z(a,"getElement() returns null");var b=this.h();this.J=b.i("div",{className:this.w+"-title",id:this.Wa()},this.Va=b.i("span",this.w+"-title-text",this.ec),this.la=b.i("span",this.w+"-title-close"));vb(a,this.J,this.Za=b.i("div",this.w+"-content"),this.K=b.i("div",this.w+"-buttons"));this.Cb=this.J.id;a.setAttribute("role",this.zb);a.setAttribute("aria-labelledby",this.Cb||"");this.Bb&&(this.Za.innerHTML=this.Bb);M(this.la,this.Ab);this.C&&(a=this.C,a.a=
  this.K,a.va());M(this.K,!!this.C);this.Ya=this.Ya;this.b()&&(a=this.ua())&&Ob(a,this.Ya)};p.V=function(){X.c.V.call(this);T(T(this.L(),this.b(),"keydown",this.Kb),this.b(),"keypress",this.Kb);T(this.L(),this.K,"click",this.oc);Wc(this,this.nc);T(this.L(),this.la,"click",this.pc);this.b().setAttribute("role",this.zb);""!==this.Va.id&&this.b().setAttribute("aria-labelledby",this.Va.id);this.Xa||Vc(this)};p.M=function(){this.W&&this.B(n);Wc(this,n);X.c.M.call(this)};
  p.B=function(a){a!=this.W&&(this.v||this.va(),X.c.B.call(this,a))};p.Ca=function(){X.c.Ca.call(this);this.dispatchEvent("aftershow")};p.ya=function(){X.c.ya.call(this);this.dispatchEvent("afterhide");this.Db&&this.q()};
  p.focus=function(){X.c.focus.call(this);if(this.C){var a=this.C.wa;if(a)for(var b=yb(this.h()),c=this.K.getElementsByTagName("button"),d=0,e;e=c[d];d++)if(e.name==a){try{if(G||Va){var f=b.createElement("input");f.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.b().appendChild(f);f.focus();this.b().removeChild(f)}e.focus()}catch(h){}break}}};
  p.vc=function(){var a=yb(this.h()),b=qb((a?rb(a):window)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Nb(this.b());"fixed"==Fb(this.b())?(b=new Cb(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)),this.H.Ga=b||new Cb(NaN,NaN,NaN,NaN)):this.H.Ga=new Cb(0,0,c-d.width,a-d.height)||new Cb(NaN,NaN,NaN,NaN)};p.pc=function(){if(this.Ab){var a=this.C,b=a&&a.fb;b?(a=a.get(b),this.dispatchEvent(new Xc(b,a))&&this.B(n)):this.B(n)}};
  p.g=function(){this.K=this.la=l;X.c.g.call(this)};p.oc=function(a){a:{for(a=a.target;a!=l&&a!=this.K;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=l}if(a&&!a.disabled){a=a.name;var b=this.C.get(a);this.dispatchEvent(new Xc(a,b))&&this.B(n)}};
  p.Kb=function(a){var b=n,c=n,d=this.C,e=a.target;if("keydown"==a.type)if(this.rc&&27==a.keyCode){var f=d&&d.fb,e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=k,b=d.get(f),b=this.dispatchEvent(new Xc(f,b))):e||(b=k)}else 9==a.keyCode&&(a.shiftKey&&e==this.b())&&(c=k);else if(13==a.keyCode){if("BUTTON"==e.tagName)f=e.name;else if(d){var h=d.wa,m;if(m=h)a:{m=d.a.getElementsByTagName("BUTTON");for(var r=0,v;v=m[r];r++)if(v.name==h||v.id==h){m=v;break a}m=l}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName||
  "A"==e.tagName)&&!e.disabled;m&&(!m.disabled&&!e)&&(f=h)}f&&d&&(c=k,b=this.dispatchEvent(new Xc(f,String(d.get(f)))))}if(b||c)a.stopPropagation(),a.preventDefault();b&&this.B(n)};var Xc=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};y(Xc,O);var W=function(a){this.oa=a||K();Ic.call(this)};y(W,Ic);p=W.prototype;p.w="goog-buttonset";p.wa=l;p.a=l;p.fb=l;p.set=function(a,b,c,d){Ic.prototype.set.call(this,a,b);c&&(this.wa=a);d&&(this.fb=a);return this};
  var V=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};
  W.prototype.va=function(){if(this.a){this.a.innerHTML="";var a=K(this.a),b=function(b,c){var d=a.i("button",{name:c},b);c==this.wa&&(d.className=this.w+"-default");this.a.appendChild(d)};if("function"==typeof this.forEach)this.forEach(b,this);else if(ca(this)||t(this))xa(this,b,this);else{var c;if("function"==typeof this.eb)c=this.eb();else if("function"!=typeof this.Fa)if(ca(this)||t(this)){c=[];for(var d=this.length,e=0;e<d;e++)c.push(e)}else c=Ia(this);else c=j;for(var d=Hc(this),e=d.length,f=
  0;f<e;f++)b.call(this,d[f],c&&c[f])}}};W.prototype.b=function(){return this.a};W.prototype.h=function(){return this.oa};var Sc={key:"ok",caption:"OK"},Tc={key:"cancel",caption:"Cancel"},Yc={key:"yes",caption:"Yes"},Zc={key:"no",caption:"No"},$c={key:"save",caption:"Save"},ad={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(V(new W,Sc,k,k),V(V(new W,Sc,k),Tc,n,k),V(V(new W,Yc,k),Zc,n,k),V(V(V(new W,Yc),Zc,k),Tc,n,k),V(V(V(new W,ad),$c),Tc,k,k));var bd=function(){};bd.prototype.Wb=function(){};var cd=function(){var a=new X("bidichecker-dialog");n!=a.Xa&&Vc(a);a.B(k);var b=a.b();b.style.zIndex=1E4;Uc(a);a.la.innerHTML="&times;";a.Db=k;var c;c=document.createElement("iframe");var d=a.Jb();d.appendChild(c);this.xa=c.contentWindow;c=K(d);var e=l;if(E)e=c.f.createStyleSheet(),Pb(e);else{var f=zb(c,"head")[0];f||(e=zb(c,"body")[0],f=c.i("head"),e.parentNode.insertBefore(f,e));e=c.i("style");Pb(e);c.appendChild(f,e)}this.ic=e;f=J(b);if(e=c=E&&b.currentStyle)f=K(f),e=pb(f.f)&&"auto"!=c.width&&
  "auto"!=c.height&&!c.boxSizing;if(e)f=Rb(b,c.width,"width","pixelWidth"),b=Rb(b,c.height,"height","pixelHeight"),b=new D(f,b);else{c=new D(b.offsetWidth,b.offsetHeight);if(E)var f=Sb(b,"paddingLeft"),e=Sb(b,"paddingRight"),h=Sb(b,"paddingTop"),m=Sb(b,"paddingBottom"),f=new Bb(h,e,m,f);else f=L(b,"paddingLeft"),e=L(b,"paddingRight"),h=L(b,"paddingTop"),m=L(b,"paddingBottom"),f=new Bb(parseFloat(h),parseFloat(e),parseFloat(m),parseFloat(f));b=Vb(b);b=new D(c.width-b.left-f.left-f.right-b.right,c.height-
  b.top-f.top-f.bottom-b.bottom)}b=b.height;Uc(a);d.style.height=Gb(b-a.J.offsetHeight,k);Qc(a);this.Eb=a};y(cd,bd);cd.prototype.q=function(){this.Eb.q();var a=this.ic;wb(a.ownerNode||a.owningElement||a)};cd.prototype.Wb=function(a){var b=this.Eb.b(),c=new Fa(b.offsetLeft,b.offsetTop);Hb(b,c.x,c.y+a)};var dd=function(a){a||(a=window.open("about:blank","_blank","width=800,height=600,menubar=no,toolbar=no,location=no"))||g(Error("can't create window"));var b=a;setTimeout(function(){b.resizeTo(800,600)},1);this.xa=a};y(dd,bd);dd.prototype.q=function(){try{this.xa.close()}catch(a){}};var ed=function(a){try{return new dd(a)}catch(b){return new cd}};var fd=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}g(Error("Invalid JSON string: "+a))},id=function(a){var b=[];gd(new hd,a,b);return b.join("")},hd=function(){this.Ta=j},gd=function(a,b,c){switch(typeof b){case "string":jd(b,c);break;case "number":c.push(isFinite(b)&&
  !isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==l){c.push("null");break}if(s(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],gd(a,a.Ta?a.Ta.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),jd(f,c),c.push(":"),gd(a,a.Ta?a.Ta.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:g(Error("Unknown type: "+
  typeof b))}},kd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ld=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,jd=function(a,b){b.push('"',a.replace(ld,function(a){if(a in kd)return kd[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return kd[a]=e+b.toString(16)}),'"')};var md=function(a,b){this.Qc=a;this.Vb=b;this.Pc=R(window,"message",this.Oc,n,this)};md.prototype.send=function(a,b){this.Qc.postMessage(id({type:a,data:b}),"*")};md.prototype.q=function(){nc(this.Pc)};md.prototype.Oc=function(a){var b=fd(a.u.data);a=String(b.type);b=b.data;this.Vb.hasOwnProperty(a)||g("Unknown message type received by CommChannel: "+a);(0,this.Vb[a])(a,b)};var nd=function(a,b){a!=l&&this.append.apply(this,arguments)};nd.prototype.ka="";nd.prototype.set=function(a){this.ka=""+a};nd.prototype.append=function(a,b,c){this.ka+=a;if(b!=l)for(var d=1;d<arguments.length;d++)this.ka+=arguments[d];return this};nd.prototype.toString=function(){return this.ka};var pd=function(a,b,c,d,e){this.o=!!b;a&&od(this,a,d);this.depth=e!=j?e:this.p||0;this.o&&(this.depth*=-1);this.xc=!c};y(pd,Fc);pd.prototype.r=l;pd.prototype.p=0;pd.prototype.Rb=n;var od=function(a,b,c){if(a.r=b)a.p="number"==typeof c?c:1!=a.r.nodeType?0:a.o?-1:1};
  pd.prototype.next=function(){var a;if(this.Rb){(!this.r||this.xc&&0==this.depth)&&g(Ec);a=this.r;var b=this.o?-1:1;if(this.p==b){var c=this.o?a.lastChild:a.firstChild;c?od(this,c):od(this,a,-1*b)}else(c=this.o?a.previousSibling:a.nextSibling)?od(this,c):od(this,a.parentNode,-1*b);this.depth+=this.p*(this.o?-1:1)}else this.Rb=k;(a=this.r)||g(Ec);return a};
  pd.prototype.splice=function(a){var b=this.r,c=this.o?1:-1;this.p==c&&(this.p=-1*c,this.depth+=this.p*(this.o?-1:1));this.o=!this.o;pd.prototype.next.call(this);this.o=!this.o;for(var c=ca(arguments[0])?arguments[0]:arguments,d=c.length-1;0<=d;d--)b.parentNode&&b.parentNode.insertBefore(c[d],b.nextSibling);wb(b)};var qd=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc](?:[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff\u202a-\u202e]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc])?","g"),rd=RegExp("(?:[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc](?:[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff\u202a-\u202e]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc])?)|(?:\u202e[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff](?:[^\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc\u202a-\u202e]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff])?\u202c[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*)+",
  "g"),sd=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff](?:[^\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc\u202a-\u202e]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff])?","g"),td=RegExp("^[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff]"),
  ud=RegExp("[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff][\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*$"),vd=RegExp("[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*$"),
  wd=RegExp("[\x00-\u001f\u007f\u0085\u00a0\u1680\u180e\u2000-\u200f\u2028-\u202f\u205f\u3000]"),xd=RegExp("^[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\u200e]+$"),yd=RegExp("^[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\u200f]+$"),
  zd=RegExp("^[\x00-\b\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff\t-\r \u0085\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000]*\\d"),Ad=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Bd=function(a,b){this.text=a;this.index=b},Cd=function(a){for(var b=[],c;c=rd.exec(a);){var d=
  c[0],e=vd.exec(c[0]);e&&(d=d.substr(0,d.length-e[0].length));b.push(new Bd(d,c.index))}return b},Dd=function(a){for(var b=[],c;c=sd.exec(a);)"\u202e"==a.charAt(c.index-1)&&"\u202c"==a.charAt(c.index+c[0].length)||b.push(new Bd(c[0],c.index));return b},Ed=function(a,b){var c=td.exec(a.substr(b));return c?new Bd(c[0],b):l},Fd=function(a,b){var c=ud.exec(a.substr(0,b));return c?new Bd(c[0],b-c[0].length):l},Gd={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",'"':'\\"',"'":"\\'","\\":"\\\\"},Hd=
  function(a){for(var b=[],c=0;c<a.length;c++){var d=b,e=c,f;f=a.charAt(c);if(f in Gd)f=Gd[f];else{var h=f;if(wd.test(f)){var m=f.charCodeAt(0),h="\\u";4096>m&&(h+="0",256>m&&(h+="0",16>m&&(h+="0")));h+=m.toString(16)}f=Gd[f]=h}d[e]=f}return b.join("")},Id=function(a){var b=a.nodeValue;"class"!=a.nodeName&&"id"!=a.nodeName&&(b=20<b.length?b.substr(0,20)+"\u2026":b);"style"==a.nodeName&&(b=b.toLowerCase());return a.nodeName+"="+("'"+Hd(b)+"'")},Jd=function(a){var b=[];if(a.attributes)for(var c=0;c<a.attributes.length;++c){var d=
  a.attributes[c];d.nodeValue&&(d.specified===j||d.specified)&&b.push(d)}a=[a.nodeName.toLowerCase()];b=za(b,Id);b.sort();a=a.concat(b);return"<"+a.join(" ")+">"},Kd=function(a){for(var b=[];a&&!(b.push(Jd(a)),"BODY"==a.parentNode.nodeName||"FRAMESET"==a.parentNode.nodeName);a=a.parentNode);b.reverse();return b.join("")},Ld=La("ADDRESS","BLOCKQUOTE","BODY","CAPTION","CENTER","COL","COLGROUP","DIR","DIV","DL","DD","DT","FIELDSET","FORM","H1","H2","H3","H4","H5","H6","HR","ISINDEX","OL","LI","MAP","MENU",
  "OPTGROUP","OPTION","P","PRE","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","TL","UL"),Md=La("inline","inline-block","inline-table"),Nd={element:l,style:l},Od=function(a){if(Nd.element==a)return Nd.style;var b=Db(a,"display")||L(a,"display");Nd={element:a,style:b};return b},Pd=function(a){var b=Od(a);return b?!Md[b]:!!Ld[a.tagName]},Qd=function(a){if(1==a.nodeType){if("SCRIPT"==a.nodeName||("STYLE"==a.nodeName||"NOSCRIPT"==a.nodeName)||"none"==Od(a))return n;a=Db(a,"visibility")||L(a,"visibility");
  return"hidden"!=a&&"collapse"!=a}return k},Rd=function(a){var b={color:a.style.color||"",backgroundColor:a.style.backgroundColor||"",outline:a.style.outline||""};a.style.color="red";a.style.backgroundColor="yellow";a.style.outline="medium solid red";return b};var Y=function(a,b,c,d){if("object"==typeof a){b="id type severity atText locationDescription precededByText followedByText".split(" ");c=["id","type","severity"];for(d=0;d<b.length;++d){var e=b[d];this[e]=e in a?a[e]:l;this[e]==l&&0<=wa(c,e)&&g("Required field '"+e+"' not found in bidichecker.Error.")}}else b==j&&g("Required parameter 'opt_severity' not found in bidichecker.Error."),this.id=Sd++,this.type=a,this.severity=b,Td[this.id]=c||l,this.atText=d||l};Y.prototype.precededByText=l;
  Y.prototype.followedByText=l;Y.prototype.locationDescription=l;Y.prototype.asString=l;var Sd=0,Td=[];Y.prototype.Wa=function(){return this.id};Y.prototype.ia=function(){return Td[this.id]||l};
  Y.prototype.toString=function(){var a=new nd("[",this.severity.toString(),"] ",this.type),b;if(b=this.atText)b=20<b.length?b.substr(0,20)+"\u2026":b,a.append(": ","'"+Hd(b)+"'");(b=this.precededByText)&&a.append(" preceded by ","'"+Hd(b)+"'");(b=this.followedByText)&&a.append(" followed by ","'"+Hd(b)+"'");(b=this.locationDescription)&&a.append(" in ",b);return a.toString()};var Ud=function(a){for(var b=0;b<a.length;++b){var c=a[b];c.asString=c.toString()}return id(a)};var Vd=function(a,b,c,d,e){var f={},h;for(h in b)f[h]=b[h];b=f;h={dir:"ltr",severity:4};for(var m in h)m in b||(b[m]=h[m]);this.Bc=a;this.ob=b;this.Ja=c;this.Ma=d;this.pb=e||l},Wd;p=Vd.prototype;p.sa=l;p.start=function(){var a=this.Ja.xa;this.sa=new md(a,{checkPage:u(this.Cc,this),highlightError:u(this.Fc,this),unhighlightError:u(this.Hc,this),getOptions:u(this.Ec,this),setOptions:u(this.Gc,this)});a.location=this.Ma};p.q=function(){N(this.sa);delete this.sa;N(this.Ja);delete this.Ja};
  p.Ec=function(){this.sa.send("options",this.ob)};p.Gc=function(a,b){this.ob=Object(b)};p.Cc=function(){var a;if(this.pb)a=this.pb,this.pb=l;else{a=this.ob;var b=[];-1!=a.severity&&b.push(Xd(a.severity));a=this.Bc.Oa("rtl"==a.dir,l,b)}a=fd(Ud(a));this.sa.send("errorList",a)};p.Fc=function(a,b){var c=(new Y(Object(b))).ia();if(c){var c=c.Xb(),d=window.scrollY;window.scrollTo(0,c.y-100);this.Ja.Wb(window.scrollY-d)}};p.Hc=function(a,b){var c=(new Y(Object(b))).ia();c&&c.$b()};var Yd=function(a){this.fa=new pd(a);this.qc=a;this.A=[Qb(a)];this.Y=[];this.N=[a];this.ea=[]};y(Yd,uc);Yd.prototype.t=l;Yd.prototype.go=function(){try{for(;;Zd(this));}catch(a){a!==Ec&&g(a),this.dispatchEvent("EndOfDom")}};
  var Zd=function(a){for(var b=a.fa.next();1==a.fa.p&&!Qd(b);){var b=a.fa,c=b.o?-1:1;b.p==c&&(b.p=-1*c,b.depth+=b.p*(b.o?-1:1));b=a.fa.next()}a.t=b;if(1==a.fa.p){var b=a.t,c=Qb(b),d;if(!(d=A(a.Y)))a:if(!b.dir&&!b.style.direction&&c==A(a.A)||b==a.qc)d=n;else{for(d=b.firstChild;d;d=d.nextSibling)if(1==d.nodeType&&Pd(d)){d=n;break a}d=k}a.Y.push(d);a.A.push(c);"IFRAME"==b.nodeName||"FRAME"==b.nodeName?a.ea.push(b):Pd(b)&&a.N.push(b);a.dispatchEvent("StartTag")}else-1==a.fa.p?(a.dispatchEvent("EndTag"),
  a.A.pop(),a.Y.pop(),a.t==A(a.N)&&a.N.pop()):3==a.t.nodeType&&"TEXTAREA"!=a.t.parentNode.nodeName&&a.dispatchEvent("TextNode")};Yd.prototype.gb=function(){return this.ea};var $d=function(){this.ea=[]};y($d,uc);p=$d.prototype;p.start=function(){this.dispatchEvent("StartFrames")};p.end=function(){this.dispatchEvent("EndFrames")};p.push=function(a){this.ea.push(a);this.dispatchEvent("EnterFrame")};p.pop=function(){this.dispatchEvent("ExitFrame");this.ea.pop()};p.gb=function(){return this.ea};var ae=function(a,b){this.zc=a;this.yc=b||[];this.S=[]};ae.prototype.Ac=n;ae.prototype.tb=function(){return this.S};var be=function(a,b,c){var d=a.zc.gb().slice(0);c&&d.push(c);if(Aa(a.yc,function(a){return!a.e(b,d)})){var e=[];c=function(a){e.push(Kd(a))};for(var f=t(d)?d.split(""):d,h=d.length-1;0<=h;--h)h in f&&c.call(j,f[h]);c=e.join(" in ");""!=c&&(b.locationDescription=c);a.S.push(b);a.Ac&&g(b.toString()+"\n")}};var ce=function(a){this.a=a};ce.prototype.ta=l;ce.prototype.Xb=function(){this.ta=Rd(this.a);return Kb(this.a)};ce.prototype.$b=function(){this.ta&&(this.a.style.color=this.ta.color,this.a.style.backgroundColor=this.ta.backgroundColor,this.a.style.outline=this.ta.outline)};var de=function(a,b,c){this.U=a;this.Lc=b;this.Kc=c;this.T=[]};de.prototype.Xb=function(){if(0==this.T.length)for(var a=0;a<this.U.length;++a){var b=this.U[a],c=(0==a?this.Lc:0)||0,d=(a==this.U.length-1?this.Kc:this.U[a].length)||b.data.length,e=[];0<c&&e.push(b.data.substring(0,c));c=tb("span",{},b.data.substring(c,d));Rd(c);e.push(c);d<b.data.length&&e.push(b.data.substring(d));d=tb("span",l,e);xb(d,b);this.T.push(d)}else for(a=0;a<this.T.length;++a)xb(this.T[a],this.U[a]);return Kb(this.T[0])};
  de.prototype.$b=function(){if(0!=this.T.length)for(var a=0;a<this.U.length;++a)xb(this.U[a],this.T[a])};var ee=function(a,b){this.xb=a;this.r=b},fe=function(a){this.ja=[new ee(0,a)];this.Zb=a};fe.prototype.append=function(a,b){this.Zb!=b&&(this.ja.push(new ee(a,b)),this.Zb=b)};var ge=function(a,b){var c;c=a.ja;for(var d=function(a,b){return a-b.xb}||Ea,e=0,f=c.length,h;e<f;){var m=e+f>>1,r;r=d(b,c[m]);0<r?e=m+1:(f=m,h=!r)}c=h?e:~e;return 0<=c?c:-c-2};fe.prototype.wb=function(a){a=ge(this,a);return this.ja[a].r};
  fe.prototype.ia=function(a,b){for(var c=ge(this,a),d=ge(this,a+b-1),e=[],f=c;f<=d;++f)e.push(this.ja[f].r);return new de(e,a-this.ja[c].xb,a+b-this.ja[d].xb)};var he=function(a,b,c,d,e){this.Nb=b;this.Lb=e;this.sc=d;this.ub=[a];this.vb=a.length;this.mb=new fe(c)};he.prototype.Pa=l;he.prototype.Ha=function(){return Aa(this.ub,function(a){return 0==a.length})};he.prototype.append=function(a,b){this.mb.append(this.vb,b);this.vb+=a.length;this.ub.push(a);this.Pa=l};
  var ie=function(a){a.Pa===l&&(a.Pa=a.ub.join(""));return a.Pa};he.prototype.wb=function(a){return this.mb.wb(a)};he.prototype.ia=function(a,b){return this.mb.ia(a,b)};var je=new he("",n,l,l,n);var ke=function(a){this.F=je;this.m=new S(this);T(this.m,a,"TextNode",this.ib);sc(this.m,a,"EndOfDom",this.Ic)};y(ke,uc);ke.prototype.ib=function(a){a=a.target;var b=a.t;A(a.A)==this.F.Nb&&A(a.N)==this.F.sc&&A(a.Y)==this.F.Lb?this.F.append(b.data,b):(this.F.Ha()||this.dispatchEvent("DirChunk"),this.F=new he(b.data,A(a.A),b,A(a.N),A(a.Y)))};ke.prototype.Ic=function(){this.F.Ha()||this.dispatchEvent("DirChunk");this.dispatchEvent("EndOfChunks");this.m.D()};var le=function(a){this.Ua=a};le.prototype.matches=function(a){var b;b=a.ownerDocument;var c=b._bidicheckerXpathMatcherCache_[this.Ua];if(!c)try{b.evaluate||g("XPath not supported by this browser"),c=b.evaluate(this.Ua,b,l,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,l),b._bidicheckerXpathMatcherCache_[this.Ua]=c}catch(d){g("Error evaluating XPath expression "+this.Ua+": "+d)}b=c;for(c=0;c<b.snapshotLength;++c)if(b.snapshotItem(c)==a)return k;return n};var Z=function(){};x("bidichecker.FilterFactory.ComposableFilter",Z);Z.prototype.Tc=function(a){return me(this,a)};Z.prototype.and=Z.prototype.Tc;Z.prototype.bd=function(){return ne(this)};Z.prototype.not=Z.prototype.bd;Z.prototype.cd=function(a){return oe(this,a)};Z.prototype.or=Z.prototype.cd;
  var Fe=function(a){var b=a.opcode;switch(b){case "AND":return new pe(a);case "AT_TEXT":return new qe(a);case "AT_TEXT_REGEXP":return new re(a);case "FOLLOWED_BY_TEXT":return new se(a);case "FOLLOWED_BY_TEXT_REGEXP":return new te(a);case "LOCATION_CLASS":return new ue(a);case "LOCATION_CLASS_REGEXP":return new ve(a);case "LOCATION_ID":return new we(a);case "LOCATION_ID_REGEXP":return new xe(a);case "LOCATION_XPATH":return new ye(a);case "NOT":return new ze(a);case "OR":return new Ae(a);case "PRECEDED_BY_TEXT":return new Be(a);
  case "PRECEDED_BY_TEXT_REGEXP":return new Ce(a);case "SEVERITY":return new De(a);case "TYPE":return new Ee(a);default:g("Unknown filter opcode: '"+b+"'")}},me=function(a,b){return new pe({filter1:a,filter2:b})};x("bidichecker.FilterFactory.and",me);x("bidichecker.FilterFactory.atText",function(a){return new qe({atText:a||""})});x("bidichecker.FilterFactory.atTextRegexp",function(a){return new re({atTextRegexp:a||""})});
  x("bidichecker.FilterFactory.followedByText",function(a){return new se({followedByText:a||""})});x("bidichecker.FilterFactory.followedByTextRegexp",function(a){return new te({followedByTextRegexp:a||""})});x("bidichecker.FilterFactory.locationClass",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClass");return new ue({className:a})});
  x("bidichecker.FilterFactory.locationClassRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClassRegexp");return new ve({classRegexp:a})});x("bidichecker.FilterFactory.locationId",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationId");return new we({id:a})});x("bidichecker.FilterFactory.locationIdRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationIdRegexp");return new xe({idRegexp:a})});
  x("bidichecker.FilterFactory.locationXpath",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationXpath");return new ye({xpath:a})});var ne=function(a){return new ze({filter:a})};x("bidichecker.FilterFactory.not",ne);var oe=function(a,b){return new Ae({filter1:a,filter2:b})};x("bidichecker.FilterFactory.or",oe);x("bidichecker.FilterFactory.precededByText",function(a){return new Be({precededByText:a||""})});
  x("bidichecker.FilterFactory.precededByTextRegexp",function(a){return new Ce({precededByTextRegexp:a||""})});var Xd=function(a){return new De({severityThreshold:a})};x("bidichecker.FilterFactory.severityFrom",Xd);x("bidichecker.FilterFactory.type",function(a){return new Ee({type:a})});
  var Ge=function(a,b){b in a||g("No '"+b+"' parameter found for '"+a.opcode+"' filter")},He=function(a,b,c){Ge(a,b);typeof a[b]!=c&&g("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected "+c)},Ie=function(a,b){He(a,b,"string");return a[b]},Je=function(a,b){Ge(a,b);var c=a[b],d;"string"==typeof c?d=c:c instanceof RegExp?d=c.source:g("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected string or RegExp");return RegExp("^("+d+")$")},Ke=function(a,b){He(a,b,"object");var c=
  a[b];if(c instanceof Z)return c;if("string"==typeof c.opcode)return Fe(c);g("Can't make a filter out of the '"+b+"' parameter of '"+a.opcode+"' filter")},pe=function(a){this.qb=Ke(a,"filter1");this.rb=Ke(a,"filter2")};y(pe,Z);pe.prototype.e=function(a,b){return this.qb.e(a,b)&&this.rb.e(a,b)};var qe=function(a){this.Vc=Ie(a,"atText")};y(qe,Z);qe.prototype.e=function(a){return this.Vc==(a.atText||"")};var re=function(a){this.Uc=Je(a,"atTextRegexp")};y(re,Z);
  re.prototype.e=function(a){return this.Uc.test(a.atText||"")};var se=function(a){this.$c=Ie(a,"followedByText")};y(se,Z);se.prototype.e=function(a){return this.$c==(a.followedByText||"")};var te=function(a){this.Zc=Je(a,"followedByTextRegexp")};y(te,Z);te.prototype.e=function(a){return this.Zc.test(a.followedByText||"")};var ue=function(a){this.Xc=Ie(a,"className")};y(ue,Z);
  ue.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.className)for(var e=d.className.split(/\s/),f=0;f<e.length;++f)if(this.Xc==e[f])return k;return n};var ve=function(a){this.Yc=Je(a,"classRegexp")};y(ve,Z);ve.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.className)for(var e=d.className.split(/\s/),f=0;f<e.length;++f)if(this.Yc.test(e[f]))return k;return n};var we=function(a){this.Ra=Ie(a,"id")};y(we,Z);
  we.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.Ra==d.id)return k;return n};var xe=function(a){this.ad=Je(a,"idRegexp")};y(xe,Z);xe.prototype.e=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.ad.test(d.id))return k;return n};var ye=function(a){a=Ie(a,"xpath");this.jd=new le(a)};y(ye,Z);ye.prototype.e=function(a,b){for(var c=0;c<b.length;++c)if(this.jd.matches(b[c]))return k;return n};
  var ze=function(a){this.Mc=Ke(a,"filter")};y(ze,Z);ze.prototype.e=function(a,b){return!this.Mc.e(a,b)};var Ae=function(a){this.qb=Ke(a,"filter1");this.rb=Ke(a,"filter2")};y(Ae,Z);Ae.prototype.e=function(a,b){return this.qb.e(a,b)||this.rb.e(a,b)};var Be=function(a){this.ed=Ie(a,"precededByText")};y(Be,Z);Be.prototype.e=function(a){return this.ed==(a.precededByText||"")};var Ce=function(a){this.dd=Je(a,"precededByTextRegexp")};y(Ce,Z);
  Ce.prototype.e=function(a){return this.dd.test(a.precededByText||"")};var De=function(a){He(a,"severityThreshold","number");this.gd=a.severityThreshold};y(De,Z);De.prototype.e=function(a){return this.gd<=a.severity};var Ee=function(a){this.hd=Ie(a,"type")};y(Ee,Z);Ee.prototype.e=function(a){return this.hd==a.type};var Le=function(a,b){this.wc=!!b;this.ra=new $d;this.Qb=new ae(this.ra,a)};Le.prototype.l=l;Le.prototype.ha=l;Le.prototype.tb=function(){return this.Qb.tb()};
  var Qe=function(a,b,c){b.ownerDocument._bidicheckerXpathMatcherCache_={};var d;a:{var e=a.Qb,f=a.pa,h=[];0!=c&&h.push(new Me(-1==c,e));h.push(new Ne(f,e));2<=f&&h.push(new Oe(e));h.push(new Pe(e));a.l=new Yd(b);a.ha=a.wc?new ke(a.l):l;for(b=0;b<h.length;++b)h[b].Ka(a);try{a.l.go();d=a.l.gb();break a}finally{N(a.l),a.l=l,N(a.ha),a.ha=l}d=j}for(h=0;h<d.length;++h){b=d[h];a.ra.push(b);try{var m=(b.contentDocument||b.contentWindow.document).body;"IFRAME"==b.tagName&&(c=0);Qe(a,m,c)}catch(r){}a.ra.pop()}};var Me=function(a,b){this.Tb=a;this.G=b};Me.prototype.Ka=function(a){kc(a.l,"StartTag",this)};Me.prototype.handleEvent=function(a){a=a.target;this.Tb!=A(a.A)&&(a=new Y("Overall directionality not "+(this.Tb?"RTL":"LTR"),1,new ce(a.t)),be(this.G,a))};var Pe=function(a){this.G=a;this.qa=[]};p=Pe.prototype;p.I=l;p.Ka=function(a){var b=new S(this);T(b,a.l,"StartTag",this.nb);T(b,a.l,"EndTag",this.Dc);T(b,a.l,"TextNode",this.ib);sc(b,a.l,"EndOfDom",b.D,n,b);Xb(a.l,b)};p.nb=function(a){a=a.target;var b=a.t;if(b.dir||b==A(a.N))this.I=l};p.Dc=function(a){a=a.target;var b=a.t;b==A(a.N)?this.I=l:b.dir&&(A(a.A)==a.A[a.A.length-2]?this.I=l:(this.I=b,this.qa=[]))};
  p.ib=function(a){var b=a.target,c=b.t;if(this.I){this.qa.push(c);var d;if(d=(a=zd.exec(c.data))?new Bd(a[0],0):l){var e=za(this.qa,function(a){return a.data}).join("");a=A(this.qa).parentNode;var f=this.G,b=new Y("Declared "+(A(b.A)?"LTR":"RTL")+" spillover to number",A(b.Y)?4:2,new de(this.qa,0,d.text.length),e.substr(0,e.length-(c.data.length-d.text.length))),h=[],m=new pd(this.I),c=m;d=function(){3==m.r.nodeType&&h.push(m.r.data)};if(ca(c))try{xa(c,d,j)}catch(r){r!==Ec&&g(r)}else{c=Gc(c);try{for(;;)d.call(j,
  c.next())}catch(v){v!==Ec&&g(v)}}b.precededByText=h.join("");be(f,b,a);this.I=l}else Ad.test(c.data)&&(this.I=l)}};var Oe=function(a){this.G=a};Oe.prototype.Ka=function(a){var b=new S(this);T(b,a.l,"StartTag",this.nb);sc(b,a.l,"EndOfDom",b.D,n,b);Xb(a.l,b)};
  Oe.prototype.nb=function(a){a=a.target.t;a.title&&Re(this,a,a.title,"title text");var b=a.nodeName;"INPUT"==b?a.type.match(/^(text|search)$/)?Re(this,a,a.value,"input value"):"image"==a.type?Re(this,a,a.alt,"alt text"):a.type.match(/^(button|reset|submit)$/)?Re(this,a,a.value,"button label"):"file"==a.type&&Qb(a)&&(b=new Y("File input not LTR",2,new ce(a)),be(this.G,b,a)):"IMG"==b?Re(this,a,a.alt,"alt text"):"TEXTAREA"==b&&Re(this,a,a.value,"textarea value")};
  var Re=function(a,b,c,d){var e=Qb(b),f=!!Dd(c).length,h=!!Cd(c).length;f!=h&&e!=h&&(e="Undeclared "+(e?"LTR":"RTL")+" "+d,d="input value"==d||"textarea value"==d?1:b.dir||b.style.direction||Qb(b)!=Qb(b.parentNode)?4:Ed(c,0)||Fd(c,c.length)?2:3,c=new Y(e,d,new ce(b),c),be(a.G,c,b))};var Ne=function(a,b){this.pa=a;this.G=b};Ne.prototype.Ka=function(a){var b=new S(this);T(b,a.ha,"DirChunk",this.Nc);sc(b,a.ha,"EndOfChunks",b.D,n,b);Xb(a.ha,b)};Ne.prototype.Nc=function(a){var b=this,c=a.target.F;if(c.Nb)a=Dd(ie(c)),xa(a,function(a){xd.exec(a.text)||Se(b,c,a,"Undeclared LTR text")});else{if(2<=this.pa)a=Cd(ie(c));else{a=ie(c);for(var d=[],e;e=qd.exec(a);)d.push(new Bd(e[0],e.index));a=d}xa(a,function(a){yd.exec(a.text)||Se(b,c,a,"Undeclared RTL text")})}};
  var Se=function(a,b,c,d){var e=b.Lb?4:3,f=b.ia(c.index,c.text.length);d=new Y(d,e,f,c.text);e=ie(b);if(f=Fd(e,c.index))3==d.severity&&(d.severity=2),d.precededByText=f.text;if(e=Ed(e,c.index+c.text.length))3==d.severity&&(d.severity=2),d.followedByText=e.text;b=b.wb(c.index).parentNode;be(a.G,d,b)};var Te=function(a,b){Le.call(this,b,k);this.pa=a};y(Te,Le);var Ue=function(a){this.Jc=a};x("bidichecker.REVISION_1",new Ue(1));var Ve=new Ue(2);x("bidichecker.REVISION_2",Ve);x("bidichecker.LATEST",Ve);var $=function(a){this.pa=a;this.S=[]};x("bidichecker.BidiChecker",$);x("bidichecker.instance",l);$.prototype.Ma="https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html";$.prototype.Oa=function(a,b,c){a=a?-1:1;b=b||top.document.body;c=c||[];Td=[];Sd=0;c=new Te(this.pa.Jc,c);c.ra.start();Qe(c,b,a);c.ra.end();this.S=c.tb();return Ca(this.S)};
  $.prototype.checkPage=$.prototype.Oa;$.prototype.Wc=function(a,b,c){c?(c=fd(c),c=za(c,function(a){return Fe(a)})):c=l;c=c||[];a=this.Oa(a,b,c);return Ud(a)};$.prototype.checkPageToJson=$.prototype.Wc;$.prototype.dc=function(a){this.Ma=a};$.prototype.setGuiAppUrl=$.prototype.dc;$.prototype.fd=function(a){0!=this.S.length&&We(this,this.S,a)};$.prototype.runGui=$.prototype.fd;
  var We=function(a,b,c){if(E)if(H("8"))c=k;else{c=new cd;c.xa.document.write("Sorry, bidichecker GUI is not supported in Internet Explorer before version 8.");return}c=c?new cd:ed(l);a=new Vd(a,{},c,a.Ma,b);N(Wd);Wd=a;a.start()};x("bidichecker.runBookmarkletGui",function(a,b,c){var d=new $(Ve);E?(b&&b.close(),b=new cd):b=ed(b);a=new Vd(d,a,b,c||"https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html");N(Wd);Wd=a;a.start()});
  x("bidichecker.generateBookmarklet",function(a,b,c){b=b||"https://bidichecker.googlecode.com/svn/trunk/lib/bidichecker_packaged.js";c=c||"https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html";a=id(a).replace(/\$/g,"$$$$");return'javascript:(function() {function run() {bidichecker.runBookmarkletGui(%OPTIONS%, g_bidicheckerBookmarkletGuiWnd, "%APPURL%");}if (typeof g_bidicheckerBookmarkletGuiWnd == "undefined") {g_bidicheckerBookmarkletGuiWnd = null;}if (g_bidicheckerBookmarkletGuiWnd &&!g_bidicheckerBookmarkletGuiWnd.closed) {g_bidicheckerBookmarkletGuiWnd.focus();} else {g_bidicheckerBookmarkletGuiWnd = window.open("about:blank", "_blank", "width=1,height=1,resizable=yes,scrollbars=yes");var scriptElemId = "_bidichecker_bookmarklet";if (document.getElementById(scriptElemId)) {if (window.bidichecker) {run();}} else {var elem = document.createElement("script");elem.src = "%SCRIPTURL%";elem.onload = run;elem.id = scriptElemId;document.getElementsByTagName("head")[0].appendChild(elem);}}})()'.replace("%SCRIPTURL%",
  b).replace("%APPURL%",c).replace("%OPTIONS%",a)});x("bidichecker.checkPage",function(a,b,c){return(new $(Ve)).Oa(a,b,c)});x("bidichecker.runGui",function(a,b,c){var d=new $(Ve);c&&d.dc(c);We(d,a,b)}); })()
  