Bugfix to bookmarklet.html: Always use https: URLs in the bookmarklet so that
it works on https: pages.


git-svn-id: http://bidichecker.googlecode.com/svn/trunk@22 b0874413-a7f4-6be4-17d0-addd11b1e57e
diff --git a/docs/jsdoc/_01.html b/docs/jsdoc/_01.html
index 4cd1247..ada042e 100644
--- a/docs/jsdoc/_01.html
+++ b/docs/jsdoc/_01.html
@@ -948,7 +948,7 @@
 		</div>
 	</div>
 	<div class="finePrint">
-	Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 1.3.3 on Thu, 05 Jan 2012 12:29:15 GMT.
+	Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 1.3.3 on Thu, 29 Nov 2012 15:38:53 GMT.
 	</div>
 </body>
 </html>
diff --git a/docs/jsdoc/_02.html b/docs/jsdoc/_02.html
index 600343d..52d548c 100644
--- a/docs/jsdoc/_02.html
+++ b/docs/jsdoc/_02.html
@@ -94,7 +94,7 @@
 		</div>
 	</div>
 	<div class="finePrint">
-	Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 1.3.3 on Thu, 05 Jan 2012 12:29:15 GMT.
+	Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 1.3.3 on Thu, 29 Nov 2012 15:38:53 GMT.
 	</div>
 </body>
 </html>
diff --git a/docs/jsdoc/_03.html b/docs/jsdoc/_03.html
index 5268c9a..7cc113c 100644
--- a/docs/jsdoc/_03.html
+++ b/docs/jsdoc/_03.html
@@ -2289,7 +2289,7 @@
 		</div>
 	</div>
 	<div class="finePrint">
-	Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 1.3.3 on Thu, 05 Jan 2012 12:29:16 GMT.
+	Generated by <a href="http://jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 1.3.3 on Thu, 29 Nov 2012 15:38:53 GMT.
 	</div>
 </body>
 </html>
diff --git a/docs/jsdoc/src_01.html b/docs/jsdoc/src_01.html
index 94d829e..993099f 100644
--- a/docs/jsdoc/src_01.html
+++ b/docs/jsdoc/src_01.html
@@ -174,7 +174,7 @@
 <span class='linenumber'>167</span>   </span><span class="COMM">// {@top.document.body} always finds the top level of the current page, even</span><span class="WHIT">
 <span class='linenumber'>168</span>   </span><span class="COMM">// if we started within a frame.</span><span class="WHIT">
 <span class='linenumber'>169</span>   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">nonNullElement</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">
-<span class='linenumber'>170</span>       </span><span class="PUNC">(</span><span class="COMM">/** @type {!Element} */</span><span class="WHIT"> </span><span class="NAME">opt_element</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">top.document.body</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='linenumber'>170</span>       </span><span class="COMM">/** @type {!Element} */</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">opt_element</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">top.document.body</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>171</span>   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">filters</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">opt_filters</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>172</span> 
 <span class='linenumber'>173</span>   </span><span class="NAME">bidichecker.Error.clearHighlightableAreas</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
diff --git a/docs/jsdoc/src_03.html b/docs/jsdoc/src_03.html
index 954cebc..66d1a3d 100644
--- a/docs/jsdoc/src_03.html
+++ b/docs/jsdoc/src_03.html
@@ -168,7 +168,7 @@
 <span class='linenumber'>161</span>   </span><span class="PUNC">}</span><span class="WHIT">
 <span class='linenumber'>162</span> 
 <span class='linenumber'>163</span>   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">bareFilters</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">
-<span class='linenumber'>164</span>       </span><span class="PUNC">(</span><span class="COMM">/** @type {Array.&lt;!Object>} */</span><span class="WHIT"> </span><span class="NAME">goog.json.parse</span><span class="PUNC">(</span><span class="NAME">opt_filtersJson</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='linenumber'>164</span>       </span><span class="COMM">/** @type {Array.&lt;!Object>} */</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">goog.json.parse</span><span class="PUNC">(</span><span class="NAME">opt_filtersJson</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>165</span>   </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">goog.array.map</span><span class="PUNC">(</span><span class="NAME">bareFilters</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">bareFilter</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
 <span class='linenumber'>166</span>     </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">bidichecker.FilterFactory.constructFilter_</span><span class="PUNC">(</span><span class="NAME">bareFilter</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>167</span>   </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
@@ -458,7 +458,7 @@
 <span class='linenumber'>451</span>  */</span><span class="WHIT">
 <span class='linenumber'>452</span> </span><span class="NAME">bidichecker.FilterFactory.getStringParam_</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">bareObject</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">field</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
 <span class='linenumber'>453</span>   </span><span class="NAME">bidichecker.FilterFactory.checkParam_</span><span class="PUNC">(</span><span class="NAME">bareObject</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">field</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'string'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
-<span class='linenumber'>454</span>   </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="COMM">/** @type {string} */</span><span class="WHIT"> </span><span class="NAME">bareObject</span><span class="PUNC">[</span><span class="NAME">field</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='linenumber'>454</span>   </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="COMM">/** @type {string} */</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">bareObject</span><span class="PUNC">[</span><span class="NAME">field</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>455</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>456</span> 
 <span class='linenumber'>457</span> 
@@ -471,7 +471,7 @@
 <span class='linenumber'>464</span>  */</span><span class="WHIT">
 <span class='linenumber'>465</span> </span><span class="NAME">bidichecker.FilterFactory.getNumberParam_</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">bareObject</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">field</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
 <span class='linenumber'>466</span>   </span><span class="NAME">bidichecker.FilterFactory.checkParam_</span><span class="PUNC">(</span><span class="NAME">bareObject</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">field</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">'number'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
-<span class='linenumber'>467</span>   </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="COMM">/** @type {number} */</span><span class="WHIT"> </span><span class="NAME">bareObject</span><span class="PUNC">[</span><span class="NAME">field</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='linenumber'>467</span>   </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="COMM">/** @type {number} */</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">bareObject</span><span class="PUNC">[</span><span class="NAME">field</span><span class="PUNC">]</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>468</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>469</span> 
 <span class='linenumber'>470</span> 
@@ -488,7 +488,7 @@
 <span class='linenumber'>481</span>   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">field</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">bareObject</span><span class="PUNC">[</span><span class="NAME">fieldName</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>482</span>   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">pattern</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>483</span>   </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">typeof</span><span class="WHIT"> </span><span class="NAME">field</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'string'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
-<span class='linenumber'>484</span>     </span><span class="NAME">pattern</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="COMM">/** @type {string} */</span><span class="WHIT"> </span><span class="NAME">field</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
+<span class='linenumber'>484</span>     </span><span class="NAME">pattern</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="COMM">/** @type {string} */</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">field</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>485</span>   </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">field</span><span class="WHIT"> </span><span class="KEYW">instanceof</span><span class="WHIT"> </span><span class="NAME">RegExp</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
 <span class='linenumber'>486</span>     </span><span class="NAME">pattern</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">field.source</span><span class="PUNC">;</span><span class="WHIT">
 <span class='linenumber'>487</span>   </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
diff --git a/lib/bidichecker_packaged.js b/lib/bidichecker_packaged.js
index c5255aa..e497223 100755
--- a/lib/bidichecker_packaged.js
+++ b/lib/bidichecker_packaged.js
@@ -1,113 +1,113 @@
 (function (){ function g(a){throw a;}
-var i=void 0,j=!0,k=null,m=!1,n,o=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},p=function(a){return"array"==aa(a)},ba=function(a){var b=aa(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"string"==typeof a},ca=function(a){return"function"==aa(a)},da=function(a){a=aa(a);return"object"==a||"array"==a||"function"==a},ga=function(a){return a[ea]||(a[ea]=++fa)},ea="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),
-fa=0,ha=function(a,b,c){return a.call.apply(a.bind,arguments)},ia=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)}},r=function(a,b,c){r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha:ia;return r.apply(k,arguments)},ja=Date.now||function(){return+new Date},
-u=function(a,b){var c=a.split("."),d=o;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==i?d[e]=b:d=d[e]?d[e]:d[e]={}},w=function(a,b){function c(){}c.prototype=b.prototype;a.e=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 r.apply(k,c)}return r(this,a)};var ka=function(a){this.stack=Error().stack||"";if(a)this.message=""+a};w(ka,Error);ka.prototype.name="CustomError";var la=function(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a},ra=function(a){if(!ma.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(na,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(oa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(pa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(qa,"&quot;"));return a},na=/&/g,oa=/</g,pa=/>/g,qa=/\"/g,ma=/[&<>\"]/;var sa=function(a,b){b.unshift(a);ka.call(this,la.apply(k,b));b.shift();this.od=a};w(sa,ka);sa.prototype.name="AssertionError";var x=function(a,b,c){if(!a){var d=Array.prototype.slice.call(arguments,2),e="Assertion failed";if(b)var e=e+(": "+b),f=d;g(new sa(""+e,f||[]))}};var y=function(a){return a[a.length-1]},z=Array.prototype,ta=z.indexOf?function(a,b,c){x(a.length!=k);return z.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(q(a))return!q(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},ua=z.forEach?function(a,b,c){x(a.length!=k);z.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},va=function(a,b){for(var c=q(a)?a.split(""):
-a,d=a.length-1;0<=d;--d)d in c&&b.call(i,c[d],d,a)},wa=z.map?function(a,b,c){x(a.length!=k);return z.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=q(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},xa=z.every?function(a,b,c){x(a.length!=k);return z.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return m;return j},ya=function(a,b){var c=ta(a,b);0<=c&&(x(a.length!=k),z.splice.call(a,c,1))},
-za=function(a){return z.concat.apply(z,arguments)},Aa=function(a){if(p(a))return za(a);for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b},Ca=function(a,b,c,d){x(a.length!=k);z.splice.apply(a,Ba(arguments,1))},Ba=function(a,b,c){x(a.length!=k);return 2>=arguments.length?z.slice.call(a,b):z.slice.call(a,b,c)},Da=function(a,b,c){for(var d=0,e=a.length,f;d<e;){var h=d+e>>1,l;l=b(c,a[h]);0<l?d=h+1:(e=h,f=!l)}return f?d:~d},Ea=function(a,b){return a>b?1:a<b?-1:0};var Fa=function(a,b){this.x=a!==i?a:0;this.y=b!==i?b:0};Fa.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var A=function(a,b){this.width=a;this.height=b};A.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};A.prototype.za=function(){return!(this.width*this.height)};A.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};A.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(i,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&&p(arguments[0]))return La.apply(k,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=j;return c};var Ma,Na,Oa,Pa,Qa,Ra,Sa=function(){return o.navigator?o.navigator.userAgent:k},Ta=function(){return o.navigator};Qa=Pa=Oa=Na=Ma=m;var Ua;if(Ua=Sa()){var Va=Ta();Ma=0==Ua.indexOf("Opera");Na=!Ma&&-1!=Ua.indexOf("MSIE");Pa=(Oa=!Ma&&-1!=Ua.indexOf("WebKit"))&&-1!=Ua.indexOf("Mobile");Qa=!Ma&&!Oa&&"Gecko"==Va.product}var Wa=Ma,B=Na,C=Qa,D=Oa,Xa=Pa,Ya=Ta();Ra=-1!=(Ya&&Ya.platform||"").indexOf("Mac");var Za=!!Ta()&&-1!=(Ta().appVersion||"").indexOf("X11"),$a;
-a:{var ab="",bb;if(Wa&&o.opera)var cb=o.opera.version,ab="function"==typeof cb?cb():cb;else if(C?bb=/rv\:([^\);]+)(\)|;)/:B?bb=/MSIE\s+([^\);]+)(\)|;)/:D&&(bb=/WebKit\/(\S+)/),bb)var db=bb.exec(Sa()),ab=db?db[1]:"";if(B){var eb,fb=o.document;eb=fb?fb.documentMode:i;if(eb>parseFloat(ab)){$a=""+eb;break a}}$a=ab}
-var gb=$a,hb={},E=function(a){var b;if(!(b=hb[a])){b=0;for(var c=(""+gb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=(""+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]||"",l=d[f]||"",s=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");do{var O=s.exec(h)||["","",""],v=t.exec(l)||["","",""];if(0==O[0].length&&0==v[0].length)break;b=((0==O[1].length?0:parseInt(O[1],10))<(0==v[1].length?0:parseInt(v[1],10))?-1:(0==O[1].length?
-0:parseInt(O[1],10))>(0==v[1].length?0:parseInt(v[1],10))?1:0)||((0==O[2].length)<(0==v[2].length)?-1:(0==O[2].length)>(0==v[2].length)?1:0)||(O[2]<v[2]?-1:O[2]>v[2]?1:0)}while(0==b)}b=hb[a]=0<=b}return b},ib={},jb=function(a){return ib[a]||(ib[a]=B&&document.documentMode&&document.documentMode>=a)};var kb,mb=!B||jb(9);!C&&!B||B&&jb(9)||C&&E("1.9.1");B&&E("9");var nb=function(a){return(a=a.className)&&"function"==typeof a.split?a.split(/\s+/):[]},ob=function(a,b){var c=nb(a),d=Ba(arguments,1),e;e=c;for(var f=0,h=0;h<d.length;h++)0<=ta(e,d[h])||(e.push(d[h]),f++);e=f==d.length;a.className=c.join(" ");return e},pb=function(a,b){for(var c=nb(a),d=Ba(arguments,1),e=c,f=0,h=0;h<e.length;h++)0<=ta(d,e[h])&&(Ca(e,h--,1),f++);a.className=c.join(" ")};var G=function(a){return a?new F(qb(a)):kb||(kb=new F)},sb=function(a,b){var c=b&&"*"!=b?b.toUpperCase():"";return a.querySelectorAll&&a.querySelector&&(!D||rb(document)||E("528"))&&c?a.querySelectorAll(c+""):a.getElementsByTagName(c||"*")},ub=function(a,b){Ga(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in tb?a.setAttribute(tb[d],b):0==d.lastIndexOf("aria-",0)?a.setAttribute(d,b):a[d]=b})},tb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",
-rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"},vb=function(a){var b=a.document;if(D&&!E("500")&&!Xa){"undefined"==typeof a.innerHeight&&(a=window);var b=a.innerHeight,c=a.document.documentElement.scrollHeight;a==a.top&&c<b&&(b-=15);return new A(a.innerWidth,b)}a=rb(b)?b.documentElement:b.body;return new A(a.clientWidth,a.clientHeight)},wb=function(a){return a.parentWindow||a.defaultView},yb=function(a,b,
-c){return xb(document,arguments)},xb=function(a,b){var c=b[0],d=b[1];if(!mb&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ra(d.name),'"');if(d.type){c.push(' type="',ra(d.type),'"');var e={};Ka(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)q(d)?c.className=d:p(d)?ob.apply(k,[c].concat(d)):ub(c,d);2<b.length&&zb(a,c,b,2);return c},zb=function(a,b,c,d){function e(c){c&&b.appendChild(q(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];ba(f)&&!(da(f)&&0<
-f.nodeType)?ua(Ab(f)?Aa(f):f,e):e(f)}},rb=function(a){return"CSS1Compat"==a.compatMode},Bb=function(a,b){zb(qb(a),a,arguments,1)},Cb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):k},Db=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},qb=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},Ab=function(a){if(a&&"number"==typeof a.length){if(da(a))return"function"==typeof a.item||"string"==typeof a.item;if(ca(a))return"function"==typeof a.item}return m},F=function(a){this.f=
-a||o.document||document};F.prototype.h=G;var Eb=function(a){return a.f};F.prototype.a=function(a){return q(a)?this.f.getElementById(a):a};F.prototype.i=function(a,b,c){return xb(this.f,arguments)};F.prototype.createElement=function(a){return this.f.createElement(a)};F.prototype.createTextNode=function(a){return this.f.createTextNode(a)};var Fb=function(a){var b=a.f,a=!D&&rb(b)?b.documentElement:b.body,b=wb(b);return new Fa(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};
-F.prototype.appendChild=function(a,b){a.appendChild(b)};F.prototype.append=Bb;F.prototype.removeNode=Cb;var Gb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Gb.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};var Hb=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Hb.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var H=function(a,b){var c=qb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b):""},Ib=function(a,b){return a.currentStyle?a.currentStyle[b]:k},Jb=function(a,b){return H(a,b)||Ib(a,b)||a.style&&a.style[b]},Lb=function(a,b,c){var d,e=C&&(Ra||Za)&&E("1.9");b instanceof Fa?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Kb(d,e);a.style.top=Kb(b,e)},Mb=function(a){var b=a.getBoundingClientRect();if(B)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+
-a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b},Nb=function(a){if(B&&!jb(8))return a.offsetParent;for(var b=qb(a),c=Jb(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Jb(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 k},Ob=function(a){var b,c=qb(a),d=Jb(a,"position"),e=C&&c.getBoxObjectFor&&
-!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Fa(0,0),h;b=c?9==c.nodeType?c:qb(c):document;if(h=B)if(h=!jb(9))h=G(b),h=!rb(h.f);h=h?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=Mb(a),a=Fb(G(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(D&&"fixed"==Jb(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(Wa||D&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Nb(e))&&e!=c.body&&e!=h;)if(f.x-=e.scrollLeft,!Wa||"TR"!=e.tagName)f.y-=e.scrollTop}return f},Pb=function(a,b,c){b instanceof A?(c=b.height,b=b.width):c==i&&g(Error("missing height argument"));a.style.width=Kb(b,j);a.style.height=Kb(c,j)},Kb=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},
-Rb=function(a){if("none"!=Jb(a,"display"))return Qb(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Qb(a);b.display=c;b.position=e;b.visibility=d;return a},Qb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=D&&!b&&!c;return(b===i||d)&&a.getBoundingClientRect?(a=Mb(a),new A(a.right-a.left,a.bottom-a.top)):new A(b,c)},Sb=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in
-c)c.filter=""===b?"":"alpha(opacity="+100*b+")"},I=function(a,b){a.style.display=b?"":"none"},Tb=function(a){B?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[D?"innerText":"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 }"},
-Ub=function(a){return"rtl"==Jb(a,"direction")},Vb=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},Wb=function(a,b){return Vb(a,Ib(a,b),"left","pixelLeft")},Xb={thin:2,medium:4,thick:6},Yb=function(a,b){if("none"==Ib(a,b+"Style"))return 0;var c=Ib(a,b+"Width");return c in Xb?Xb[c]:Vb(a,c,"left","pixelLeft")};var Zb=function(){};Zb.prototype.Pb=m;Zb.prototype.l=function(){if(!this.Pb)this.Pb=j,this.k()};Zb.prototype.k=function(){this.ad&&$b.apply(k,this.ad)};var ac=function(a){a&&"function"==typeof a.l&&a.l()},$b=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ba(d)?$b.apply(k,d):ac(d)}};var bc=function(a){a.setAttribute("role","dialog");a.pd="dialog"};var J=function(a,b){this.type=a;this.currentTarget=this.target=b};w(J,Zb);n=J.prototype;n.k=function(){delete this.type;delete this.target;delete this.currentTarget};n.S=m;n.ma=j;n.stopPropagation=function(){this.S=j};n.preventDefault=function(){this.ma=m};var cc=function(a){a.preventDefault()};var dc=function(a){dc[" "](a);return a};dc[" "]=function(){};var ec=!B||jb(9),fc=!B||jb(9),gc=B&&!E("8");!D||E("528");C&&E("1.9b")||B&&E("8")||Wa&&E("9.5")||D&&E("528");!C||E("8");var hc=function(a,b){a&&this.ca(a,b)};w(hc,J);var ic=[1,4,2];n=hc.prototype;n.target=k;n.relatedTarget=k;n.offsetX=0;n.offsetY=0;n.clientX=0;n.clientY=0;n.screenX=0;n.screenY=0;n.button=0;n.keyCode=0;n.charCode=0;n.ctrlKey=m;n.altKey=m;n.shiftKey=m;n.metaKey=m;n.Ec=m;n.q=k;
-n.ca=function(a,b){var c=this.type=a.type;J.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(C){var e;a:{try{dc(d.nodeName);e=j;break a}catch(f){}e=m}e||(d=k)}}else if("mouseover"==c)d=a.fromElement;else if("mouseout"==c)d=a.toElement;this.relatedTarget=d;this.offsetX=D||a.offsetX!==i?a.offsetX:a.layerX;this.offsetY=D||a.offsetY!==i?a.offsetY:a.layerY;this.clientX=a.clientX!==i?a.clientX:a.pageX;this.clientY=a.clientY!==i?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.Ec=Ra?a.metaKey:a.ctrlKey;this.state=a.state;this.q=a;delete this.ma;delete this.S};n.stopPropagation=function(){hc.e.stopPropagation.call(this);this.q.stopPropagation?this.q.stopPropagation():this.q.cancelBubble=j};
-n.preventDefault=function(){hc.e.preventDefault.call(this);var a=this.q;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,gc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};n.k=function(){hc.e.k.call(this);this.relatedTarget=this.currentTarget=this.target=this.q=k};var jc=function(){},kc=0;n=jc.prototype;n.key=0;n.Q=m;n.kb=m;n.ca=function(a,b,c,d,e,f){ca(a)?this.Nb=j:a&&a.handleEvent&&ca(a.handleEvent)?this.Nb=m:g(Error("Invalid listener argument"));this.ba=a;this.Ib=b;this.src=c;this.type=d;this.capture=!!e;this.ya=f;this.kb=m;this.key=++kc;this.Q=m};n.handleEvent=function(a){return this.Nb?this.ba.call(this.ya||this.src,a):this.ba.handleEvent.call(this.ba,a)};var lc={},K={},L={},mc={},M=function(a,b,c,d,e){if(b){if(p(b)){for(var f=0;f<b.length;f++)M(a,b[f],c,d,e);return k}var d=!!d,h=K;b in h||(h[b]={g:0,r:0});h=h[b];d in h||(h[d]={g:0,r:0},h.g++);var h=h[d],l=ga(a),s;h.r++;if(h[l]){s=h[l];for(f=0;f<s.length;f++)if(h=s[f],h.ba==c&&h.ya==e){if(h.Q)break;return s[f].key}}else s=h[l]=[],h.g++;f=nc();f.src=a;h=new jc;h.ca(c,f,a,b,d,e);c=h.key;f.key=c;s.push(h);lc[c]=h;L[l]||(L[l]=[]);L[l].push(h);a.addEventListener?(a==o||!a.Hb)&&a.addEventListener(b,f,d):
-a.attachEvent(b in mc?mc[b]:mc[b]="on"+b,f);return c}g(Error("Invalid event type"))},nc=function(){var a=oc,b=fc?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b},pc=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)pc(a,b[f],c,d,e);return k}a=M(a,b,c,d,e);lc[a].kb=j;return a},qc=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)qc(a,b[f],c,d,e);else if(d=!!d,a=rc(a,b,d))for(f=0;f<a.length;f++)if(a[f].ba==c&&a[f].capture==d&&a[f].ya==
-e){N(a[f].key);break}},N=function(a){if(!lc[a])return m;var b=lc[a];if(b.Q)return m;var c=b.src,d=b.type,e=b.Ib,f=b.capture;c.removeEventListener?(c==o||!c.Hb)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in mc?mc[d]:mc[d]="on"+d,e);c=ga(c);e=K[d][f][c];if(L[c]){var h=L[c];ya(h,b);0==h.length&&delete L[c]}b.Q=j;e.Lb=j;sc(d,f,c,e);delete lc[a];return j},sc=function(a,b,c,d){if(!d.Fa&&d.Lb){for(var e=0,f=0;e<d.length;e++)d[e].Q?d[e].Ib.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Lb=m;
-0==f&&(delete K[a][b][c],K[a][b].g--,0==K[a][b].g&&(delete K[a][b],K[a].g--),0==K[a].g&&delete K[a])}},tc=function(a){var b,c=0,d=b==k;b=!!b;if(a==k)Ga(L,function(a){for(var e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)N(f.key),c++}});else if(a=ga(a),L[a])for(var a=L[a],e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)N(f.key),c++}},rc=function(a,b,c){var d=K;return b in d&&(d=d[b],c in d&&(d=d[c],a=ga(a),d[a]))?d[a]:k},vc=function(a,b,c,d,e){var f=1,b=ga(b);if(a[b]){a.r--;a=a[b];a.Fa?
-a.Fa++:a.Fa=1;try{for(var h=a.length,l=0;l<h;l++){var s=a[l];s&&!s.Q&&(f&=uc(s,e)!==m)}}finally{a.Fa--,sc(c,d,b,a)}}return Boolean(f)},uc=function(a,b){var c=a.handleEvent(b);a.kb&&N(a.key);return c},oc=function(a,b){if(!lc[a])return j;var c=lc[a],d=c.type,e=K;if(!(d in e))return j;var e=e[d],f,h;if(!fc){var l;if(!(l=b))a:{l="window.event".split(".");for(var s=o;f=l.shift();)if(s[f]!=k)s=s[f];else{l=k;break a}l=s}f=l;l=j in e;s=m in e;if(l){if(0>f.keyCode||f.returnValue!=i)return j;a:{var t=m;if(0==
-f.keyCode)try{f.keyCode=-1;break a}catch(O){t=j}if(t||f.returnValue==i)f.returnValue=j}}t=new hc;t.ca(f,this);f=j;try{if(l){for(var v=[],lb=t.currentTarget;lb;lb=lb.parentNode)v.push(lb);h=e[j];h.r=h.g;for(var X=v.length-1;!t.S&&0<=X&&h.r;X--)t.currentTarget=v[X],f&=vc(h,v[X],d,j,t);if(s){h=e[m];h.r=h.g;for(X=0;!t.S&&X<v.length&&h.r;X++)t.currentTarget=v[X],f&=vc(h,v[X],d,m,t)}}else f=uc(c,t)}finally{if(v)v.length=0;t.l()}return f}d=new hc(b,this);try{f=uc(c,d)}finally{d.l()}return f};var P=function(a){this.bb=a;this.c=[]};w(P,Zb);
-var wc=[],Q=function(a,b,c,d,e){p(c)||(wc[0]=c,c=wc);for(var f=0;f<c.length;f++)a.c.push(M(b,c[f],d||a,e||m,a.bb||a));return a},xc=function(a,b,c,d,e,f){if(p(c))for(var h=0;h<c.length;h++)xc(a,b,c[h],d,e,f);else a.c.push(pc(b,c,d||a,e,f||a.bb||a))},yc=function(a,b,c,d,e,f){if(p(c))for(var h=0;h<c.length;h++)yc(a,b,c[h],d,e,f);else{a:{d=d||a;f=f||a.bb||a;e=!!e;if(b=rc(b,c,e))for(c=0;c<b.length;c++)if(!b[c].Q&&b[c].ba==d&&b[c].capture==e&&b[c].ya==f){b=b[c];break a}b=k}if(b)b=b.key,N(b),ya(a.c,b)}return a};
-P.prototype.O=function(){ua(this.c,N);this.c.length=0};P.prototype.k=function(){P.e.k.call(this);this.O()};P.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};var R=function(){};w(R,Zb);n=R.prototype;n.Hb=j;n.Aa=k;n.Xa=function(a){this.Aa=a};n.addEventListener=function(a,b,c,d){M(this,a,b,c,d)};n.removeEventListener=function(a,b,c,d){qc(this,a,b,c,d)};
-n.dispatchEvent=function(a){var b=a.type||a,c=K;if(b in c){if(q(a))a=new J(a,this);else if(a instanceof J)a.target=a.target||this;else{var d=a,a=new J(b,this);Ka(a,d)}var d=1,e,c=c[b],b=j in c,f;if(b){e=[];for(f=this;f;f=f.Aa)e.push(f);f=c[j];f.r=f.g;for(var h=e.length-1;!a.S&&0<=h&&f.r;h--)a.currentTarget=e[h],d&=vc(f,e[h],a.type,j,a)&&a.ma!=m}if(m in c)if(f=c[m],f.r=f.g,b)for(h=0;!a.S&&h<e.length&&f.r;h++)a.currentTarget=e[h],d&=vc(f,e[h],a.type,m,a)&&a.ma!=m;else for(e=this;!a.S&&e&&f.r;e=e.Aa)a.currentTarget=
-e,d&=vc(f,e,a.type,m,a)&&a.ma!=m;a=Boolean(d)}else a=j;return a};n.k=function(){R.e.k.call(this);tc(this);this.Aa=k};var zc=function(a,b,c){this.target=a;this.handle=b||a;this.Wa=c||new Hb(NaN,NaN,NaN,NaN);this.f=qb(a);this.m=new P(this);M(this.handle,["touchstart","mousedown"],this.Eb,m,this)};w(zc,R);var Ac=B||C&&E("1.9.3");n=zc.prototype;n.clientX=0;n.clientY=0;n.screenX=0;n.screenY=0;n.Bb=0;n.Cb=0;n.$=0;n.aa=0;n.zb=j;n.H=m;n.Ab=0;n.fc=0;n.ec=m;n.D=function(){return this.m};
-n.k=function(){zc.e.k.call(this);qc(this.handle,["touchstart","mousedown"],this.Eb,m,this);this.m.l();delete this.target;delete this.handle;delete this.m};
-n.Eb=function(a){var b="mousedown"==a.type;if(this.zb&&!this.H&&(!b||(ec?0==a.q.button:"click"==a.type||a.q.button&ic[0])&&(!D||!Ra||!a.ctrlKey))){Bc(a);if(0==this.Ab)if(Cc(this,a),this.H)a.preventDefault();else return;else a.preventDefault();var b=this.f,c=b.documentElement,d=!Ac;Q(this.m,b,["touchmove","mousemove"],this.dc,d);Q(this.m,b,["touchend","mouseup"],this.xa,d);Ac?(c.setCapture(m),Q(this.m,c,"losecapture",this.xa)):Q(this.m,b?wb(b):window,"blur",this.xa);B&&this.ec&&Q(this.m,b,"dragstart",
-cc);this.hc&&Q(this.m,this.hc,"scroll",this.gc,d);this.clientX=this.Bb=a.clientX;this.clientY=this.Cb=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.$=this.target.offsetLeft;this.aa=this.target.offsetTop;this.Ua=Fb(G(this.f));this.fc=ja()}else this.dispatchEvent("earlycancel")};var Cc=function(a,b){if(a.dispatchEvent(new Dc("start",a,b.clientX,b.clientY,b))!==m)a.H=j};
-zc.prototype.xa=function(a,b){this.m.O();Ac&&this.f.releaseCapture();var c=Ec(this,this.$),d=Fc(this,this.aa);this.H?(Bc(a),this.H=m,this.dispatchEvent(new Dc("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))):this.dispatchEvent("earlycancel");("touchend"==a.type||"touchcancel"==a.type)&&a.preventDefault()};var Bc=function(a){var b=a.type;"touchstart"==b||"touchmove"==b?a.ca(a.q.targetTouches[0],a.currentTarget):("touchend"==b||"touchcancel"==b)&&a.ca(a.q.changedTouches[0],a.currentTarget)};
-zc.prototype.dc=function(a){if(this.zb){Bc(a);var b=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.H){var d=this.Bb-this.clientX,e=this.Cb-this.clientY;if(d*d+e*e>this.Ab&&(Cc(this,a),!this.H)){this.xa(a);return}}c=Gc(this,b,c);b=c.x;c=c.y;this.H&&this.dispatchEvent(new Dc("beforedrag",this,a.clientX,a.clientY,a,b,c))!==m&&(Hc(this,a,b,c),a.preventDefault())}};
-var Gc=function(a,b,c){var d=Fb(G(a.f)),b=b+(d.x-a.Ua.x),c=c+(d.y-a.Ua.y);a.Ua=d;a.$+=b;a.aa+=c;b=Ec(a,a.$);a=Fc(a,a.aa);return new Fa(b,a)};zc.prototype.gc=function(a){var b=Gc(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Hc(this,a,b.x,b.y)};
-var Hc=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new Dc("drag",a,b.clientX,b.clientY,b,c,d))},Ec=function(a,b){var c=a.Wa,d=!isNaN(c.left)?c.left:k,c=!isNaN(c.width)?c.width:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))},Fc=function(a,b){var c=a.Wa,d=!isNaN(c.top)?c.top:k,c=!isNaN(c.height)?c.height:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))},Dc=function(a,b,c,d,e,f,h,l){J.call(this,a);this.clientX=c;this.clientY=
-d;this.ld=e;this.left=f!==i?f:b.$;this.top=h!==i?h:b.aa;this.nd=b;this.md=!!l};w(Dc,J);var Ic="StopIteration"in o?o.StopIteration:Error("StopIteration"),Jc=function(){};Jc.prototype.next=function(){g(Ic)};Jc.prototype.rb=function(){return this};
-var Kc=function(a){if(a instanceof Jc)return a;if("function"==typeof a.rb)return a.rb(m);if(ba(a)){var b=0,c=new Jc;c.next=function(){for(;;){b>=a.length&&g(Ic);if(b in a)return a[b++];b++}};return c}g(Error("Not implemented"))},Lc=function(a,b){if(ba(a))try{ua(a,b,i)}catch(c){c!==Ic&&g(c)}else{a=Kc(a);try{for(;;)b.call(i,a.next(),i,a)}catch(d){d!==Ic&&g(d)}}};var Mc=function(a){if("function"==typeof a.Ia)return a.Ia();if(q(a))return a.split("");if(ba(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ha(a)},Nc=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ba(a)||q(a))ua(a,b,c);else{var d;if("function"==typeof a.eb)d=a.eb();else if("function"!=typeof a.Ia)if(ba(a)||q(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Ia(a);else d=i;for(var e=Mc(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};var Oc=function(a,b){this.K={};this.c=[];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 Oc?(c=a.eb(),d=a.Ia()):(c=Ia(a),d=Ha(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};n=Oc.prototype;n.g=0;n.Ea=0;n.Ia=function(){Pc(this);for(var a=[],b=0;b<this.c.length;b++)a.push(this.K[this.c[b]]);return a};n.eb=function(){Pc(this);return this.c.concat()};n.za=function(){return 0==this.g};
-n.clear=function(){this.K={};this.Ea=this.g=this.c.length=0};var Pc=function(a){if(a.g!=a.c.length){for(var b=0,c=0;b<a.c.length;){var d=a.c[b];Object.prototype.hasOwnProperty.call(a.K,d)&&(a.c[c++]=d);b++}a.c.length=c}if(a.g!=a.c.length){for(var e={},c=b=0;b<a.c.length;)d=a.c[b],Object.prototype.hasOwnProperty.call(e,d)||(a.c[c++]=d,e[d]=1),b++;a.c.length=c}};Oc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.K,a)?this.K[a]:b};
-Oc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.K,a)||(this.g++,this.c.push(a),this.Ea++);this.K[a]=b};Oc.prototype.rb=function(a){Pc(this);var b=0,c=this.c,d=this.K,e=this.Ea,f=this,h=new Jc;h.next=function(){for(;;){e!=f.Ea&&g(Error("The map has changed since the iterator was created"));b>=c.length&&g(Ic);var h=c[b++];return a?h:d[h]}};return h};var Qc=function(a){this.b=a;a=B?"focusout":"blur";this.oc=M(this.b,B?"focusin":"focus",this,!B);this.pc=M(this.b,a,this,!B)};w(Qc,R);Qc.prototype.handleEvent=function(a){var b=new hc(a.q);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.l()}};Qc.prototype.k=function(){Qc.e.k.call(this);N(this.oc);N(this.pc);delete this.b};var Rc=o.window;var Sc=function(){};(function(a){a.Vb=function(){return a.Tc||(a.Tc=new a)}})(Sc);Sc.prototype.Qc=0;Sc.Vb();var S=function(a){this.ja=a||G();this.Rc=Tc};w(S,R);S.prototype.Pc=Sc.Vb();var Tc=k;n=S.prototype;n.La=k;n.w=m;n.b=k;n.Rc=k;n.bc=k;n.X=k;n.va=k;n.ia=k;n.cc=m;n.Oa=function(){return this.La||(this.La=":"+(this.Pc.Qc++).toString(36))};n.a=function(){return this.b};n.D=function(){return this.Y||(this.Y=new P(this))};n.Xa=function(a){this.X&&this.X!=a&&g(Error("Method not supported"));S.e.Xa.call(this,a)};n.h=function(){return this.ja};n.i=function(){this.b=this.ja.createElement("div")};
-n.ra=function(a){this.w&&g(Error("Component already rendered"));this.b||this.i();a?a.insertBefore(this.b,k):this.ja.f.body.appendChild(this.b);(!this.X||this.X.w)&&this.W()};n.W=function(){this.w=j;Uc(this,function(a){!a.w&&a.a()&&a.W()})};n.N=function(){Uc(this,function(a){a.w&&a.N()});this.Y&&this.Y.O();this.w=m};n.k=function(){S.e.k.call(this);this.w&&this.N();this.Y&&(this.Y.l(),delete this.Y);Uc(this,function(a){a.l()});!this.cc&&this.b&&Cb(this.b);this.X=this.bc=this.b=this.ia=this.va=k};
-n.yb=function(){return this.b};var Uc=function(a,b){a.va&&ua(a.va,b,i)};S.prototype.removeChild=function(a,b){if(a){var c=q(a)?a:a.Oa(),a=this.ia&&c?(c in this.ia?this.ia[c]:i)||k:k;if(c&&a){var d=this.ia;c in d&&delete d[c];ya(this.va,a);b&&(a.N(),a.b&&Cb(a.b));c=a;c==k&&g(Error("Unable to set parent component"));c.X=k;S.e.Xa.call(c,k)}}a||g(Error("Child is not in parent component"));return a};var Vc=function(a,b){S.call(this,b);this.ac=!!a};w(Vc,S);n=Vc.prototype;n.Ta=k;n.Ca=m;n.n=k;n.j=k;n.A=k;n.wa=function(){return"goog-modalpopup"};n.qa=function(){return this.n};
-n.i=function(){Vc.e.i.call(this);var a=this.a();ob(a,this.wa());a.tabIndex=0;I(a,m);if(this.ac&&!this.j)this.j=this.h().i("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'}),this.j.className=this.wa()+"-bg",I(this.j,m),Sb(this.j,0);if(!this.n)this.n=this.h().i("div",this.wa()+"-bg"),I(this.n,m);if(!this.A)this.A=this.h().createElement("span"),I(this.A,m),this.A.tabIndex=0,this.A.style.position="absolute"};
-n.W=function(){x(!!this.n,"Background element must not be null.");if(this.j){var a=this.a();a.parentNode&&a.parentNode.insertBefore(this.j,a)}a=this.a();a.parentNode&&a.parentNode.insertBefore(this.n,a);Vc.e.W.call(this);a=this.a();a.parentNode&&a.parentNode.insertBefore(this.A,a.nextSibling);this.Ta=new Qc(Eb(this.h()));Q(this.D(),this.Ta,"focusin",this.$b)};n.N=function(){this.sa()&&this.C(m);ac(this.Ta);Vc.e.N.call(this);Cb(this.j);Cb(this.n);Cb(this.A)};
-n.C=function(a){x(this.w,"ModalPopup must be rendered first.");a!=this.Ca&&(a?this.Kc():this.Jc())};n.Kc=function(){if(this.dispatchEvent("beforeshow")){this.Za();this.wb();var a=this.D(),b=this.h();Q(a,wb(b.f),"resize",this.Za);Wc(this,j);this.focus();this.Ca=j;this.dispatchEvent("show")}};n.Jc=function(){if(this.dispatchEvent("beforehide")){var a=yc,b=this.D(),c=this.h();a(b,wb(c.f),"resize",this.Za);Wc(this,m);this.Ca=m;this.dispatchEvent("hide")}};
-var Wc=function(a,b){a.j&&I(a.j,b);a.n&&I(a.n,b);I(a.a(),b);I(a.A,b)};n=Vc.prototype;n.sa=function(){return this.Ca};n.focus=function(){this.Sb()};n.Za=function(){this.j&&I(this.j,m);this.n&&I(this.n,m);var a=Eb(this.h()),b=vb((a?wb(a):window)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);this.j&&(I(this.j,j),Pb(this.j,c,a));this.n&&(I(this.n,j),Pb(this.n,c,a))};
-n.wb=function(){var a=Eb(this.h()),b=(a?wb(a):window)||window;if("fixed"==Jb(this.a(),"position"))var c=a=0;else c=Fb(this.h()),a=c.x,c=c.y;var d=Rb(this.a()),b=vb(b||window),a=Math.max(a+b.width/2-d.width/2,0),c=Math.max(c+b.height/2-d.height/2,0);Lb(this.a(),a,c);Lb(this.A,a,c)};n.$b=function(a){if(a.target==this.A)a=this.Sb,ca(a)?this&&(a=r(a,this)):a&&"function"==typeof a.handleEvent?a=r(a.handleEvent,a):g(Error("Invalid listener argument")),Rc.setTimeout(a,0)};
-n.Sb=function(){try{B&&Eb(this.h()).body.focus(),this.a().focus()}catch(a){}};var T=function(a,b,c){Vc.call(this,b,c);this.z=a||"modal-dialog";this.G=Xc()};w(T,Vc);n=T.prototype;n.lc=j;n.sb=j;n.Qa=j;n.ic=j;n.Ra=0.5;n.Yb="";n.tb="";n.R=k;n.vb=m;n.M=k;n.Pa=k;n.ub=k;n.ha=k;n.Sa=k;n.F=k;n.wa=function(){return this.z};var Yc=function(a){a.a()||a.ra()};T.prototype.yb=function(){Yc(this);return this.Sa};T.prototype.qa=function(){Yc(this);return T.e.qa.call(this)};
-var Zc=function(a){a.Qa=m;if(a.w){var b=a.h(),c=a.qa();b.removeNode(a.j);b.removeNode(c)}},$c=function(a,b){if(a.a()){var c=a.M,d=a.z+"-title-draggable";b?ob(c,d):pb(c,d)}if(b&&!a.R)a.R=new zc(a.a(),a.M),ob(a.M,a.z+"-title-draggable"),M(a.R,"start",a.nc,m,a);else if(!b&&a.R)a.R.l(),a.R=k};n=T.prototype;
-n.i=function(){T.e.i.call(this);var a=this.a();x(a,"getElement() returns null");var b=this.h();this.M=b.i("div",{className:this.z+"-title",id:this.Oa()},this.Pa=b.i("span",this.z+"-title-text",this.Yb),this.ha=b.i("span",this.z+"-title-close"));Bb(a,this.M,this.Sa=b.i("div",this.z+"-content"),this.F=b.i("div",this.z+"-buttons"));this.ub=this.M.id;bc(a);a.setAttribute("aria-labelledby",this.ub||"");if(this.tb)this.Sa.innerHTML=this.tb;I(this.ha,this.sb);if(this.G)a=this.G,a.b=this.F,a.ra();I(this.F,
-!!this.G);this.Ra=this.Ra;this.a()&&(a=this.qa())&&Sb(a,this.Ra)};n.W=function(){T.e.W.call(this);Q(this.D(),this,["show","hide"],this.kc);$c(this,this.ic);Q(this.D(),this.ha,"click",this.jc);bc(this.a());""!==this.Pa.id&&this.a().setAttribute("aria-labelledby",this.Pa.id);this.Qa||Zc(this)};n.N=function(){this.sa()&&this.C(m);$c(this,m);T.e.N.call(this)};n.C=function(a){a!=this.sa()&&(this.w||this.ra(),T.e.C.call(this,a))};
-n.kc=function(a){a.target==this&&(this.sa()?(Q(Q(this.D(),this.a(),"keydown",this.Ba),this.a(),"keypress",this.Ba),this.dispatchEvent("aftershow"),Q(this.D(),this.F,"click",this.Gb)):(yc(yc(yc(this.D(),this.a(),"keydown",this.Ba),this.a(),"keypress",this.Ba),this.F,"click",this.Gb),this.dispatchEvent("afterhide"),this.vb&&this.l()))};
-n.focus=function(){T.e.focus.call(this);if(this.G){var a=this.G.ta;if(a)for(var b=Eb(this.h()),c=this.F.getElementsByTagName("button"),d=0,e;e=c[d];d++)if(e.name==a){try{if(D||Wa){var f=b.createElement("input");f.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.a().appendChild(f);f.focus();this.a().removeChild(f)}e.focus()}catch(h){}break}}};
-n.nc=function(){var a=Eb(this.h()),b=vb((a?wb(a):window)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Rb(this.a());this.R.Wa="fixed"==Jb(this.a(),"position")?new Hb(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height))||new Hb(NaN,NaN,NaN,NaN):new Hb(0,0,c-d.width,a-d.height)||new Hb(NaN,NaN,NaN,NaN)};n.jc=function(){if(this.sb){var a=this.G,b=a&&a.Va;b?(a=a.get(b),this.dispatchEvent(new ad(b,a))&&this.C(m)):this.C(m)}};
-n.k=function(){this.F=this.ha=k;T.e.k.call(this)};n.Gb=function(a){a:{for(a=a.target;a!=k&&a!=this.F;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=k}if(a&&!a.disabled){var a=a.name,b=this.G.get(a);this.dispatchEvent(new ad(a,b))&&this.C(m)}};
-n.Ba=function(a){var b=m,c=m,d=this.G,e=a.target;if("keydown"==a.type)if(this.lc&&27==a.keyCode){var f=d&&d.Va,e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=j,b=d.get(f),b=this.dispatchEvent(new ad(f,b))):e||(b=j)}else 9==a.keyCode&&a.shiftKey&&e==this.a()&&(c=j);else if(13==a.keyCode){if("BUTTON"==e.tagName)f=e.name;else if(d){var h=d.ta,l;if(l=h)a:{l=d.b.getElementsByTagName("BUTTON");for(var s=0,t;t=l[s];s++)if(t.name==h||t.id==h){l=t;break a}l=k}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName)&&!e.disabled;
-l&&!l.disabled&&!e&&(f=h)}f&&d&&(c=j,b=this.dispatchEvent(new ad(f,""+d.get(f))))}if(b||c)a.stopPropagation(),a.preventDefault();b&&this.C(m)};var ad=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};w(ad,J);var U=function(a){this.ja=a||G();Oc.call(this)};w(U,Oc);n=U.prototype;n.z="goog-buttonset";n.ta=k;n.b=k;n.Va=k;n.set=function(a,b,c,d){Oc.prototype.set.call(this,a,b);if(c)this.ta=a;if(d)this.Va=a;return this};var V=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};
-U.prototype.ra=function(){if(this.b){this.b.innerHTML="";var a=G(this.b);Nc(this,function(b,c){var d=a.i("button",{name:c},b);if(c==this.ta)d.className=this.z+"-default";this.b.appendChild(d)},this)}};U.prototype.a=function(){return this.b};U.prototype.h=function(){return this.ja};
-var bd={key:"ok",caption:"OK"},cd={key:"cancel",caption:"Cancel"},dd={key:"yes",caption:"Yes"},ed={key:"no",caption:"No"},fd={key:"save",caption:"Save"},gd={key:"continue",caption:"Continue"},Xc=function(){return V(V(new U,bd,j),cd,m,j)};"undefined"!=typeof document&&(V(new U,bd,j,j),Xc(),V(V(new U,dd,j),ed,m,j),V(V(V(new U,dd),ed,j),cd,m,j),V(V(V(new U,gd),fd),cd,j,j));var hd=function(){};hd.prototype.Qb=function(){};var id=function(){var a=new T("bidichecker-dialog");m!=a.Qa&&Zc(a);a.C(j);var b=a.a();b.style.zIndex=1E4;Yc(a);a.ha.innerHTML="&times;";a.vb=j;var c=document.createElement("iframe"),d=a.yb();d.appendChild(c);this.ua=c.contentWindow;var c=G(d),e=k;if(B)e=c.f.createStyleSheet(),Tb(e);else{var f=sb(c.f,"head")[0];f||(e=sb(c.f,"body")[0],f=c.i("head"),e.parentNode.insertBefore(f,e));e=c.i("style");Tb(e);c.appendChild(f,e)}this.Zb=e;f=qb(b);if(e=c=B&&b.currentStyle)f=G(f),e=rb(f.f)&&"auto"!=c.width&&"auto"!=
-c.height&&!c.boxSizing;if(e)f=Vb(b,c.width,"width","pixelWidth"),b=Vb(b,c.height,"height","pixelHeight"),b=new A(f,b);else{c=new A(b.offsetWidth,b.offsetHeight);if(B)var f=Wb(b,"paddingLeft"),e=Wb(b,"paddingRight"),h=Wb(b,"paddingTop"),l=Wb(b,"paddingBottom"),f=new Gb(h,e,l,f);else f=H(b,"paddingLeft"),e=H(b,"paddingRight"),h=H(b,"paddingTop"),l=H(b,"paddingBottom"),f=new Gb(parseFloat(h),parseFloat(e),parseFloat(l),parseFloat(f));B?(e=Yb(b,"borderLeft"),h=Yb(b,"borderRight"),l=Yb(b,"borderTop"),
-b=Yb(b,"borderBottom"),b=new Gb(l,h,b,e)):(e=H(b,"borderLeftWidth"),h=H(b,"borderRightWidth"),l=H(b,"borderTopWidth"),b=H(b,"borderBottomWidth"),b=new Gb(parseFloat(l),parseFloat(h),parseFloat(b),parseFloat(e)));b=new A(c.width-b.left-f.left-f.right-b.right,c.height-b.top-f.top-f.bottom-b.bottom)}b=b.height;Yc(a);d.style.height=Kb(b-a.M.offsetHeight,j);a.wb();this.xb=a};w(id,hd);id.prototype.l=function(){this.xb.l();var a=this.Zb;Cb(a.ownerNode||a.owningElement||a)};
-id.prototype.Qb=function(a){var b=this.xb.a(),c=new Fa(b.offsetLeft,b.offsetTop);Lb(b,c.x,c.y+a)};var kd=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"));jd(a);this.ua=a};w(kd,hd);var jd=function(a){setTimeout(function(){a.resizeTo(800,600)},1)};kd.prototype.l=function(){try{this.ua.close()}catch(a){}};var ld=function(a){try{return new kd(a)}catch(b){return new id}};var md=function(a){a=""+a;if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|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))},nd=function(){this.Na=i},pd=function(a){var b=[];od(new nd,a,b);return b.join("")},od=function(a,b,c){switch(typeof b){case "string":qd(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==k){c.push("null");break}if(p(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],od(a,a.Na?a.Na.call(b,""+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),qd(f,c),c.push(":"),od(a,a.Na?a.Na.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;
-default:g(Error("Unknown type: "+typeof b))}},rd={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},sd=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,qd=function(a,b){b.push('"',a.replace(sd,function(a){if(a in rd)return rd[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return rd[a]=e+b.toString(16)}),'"')};var td=function(a,b){this.Oc=a;this.Ob=b;this.Nc=M(window,"message",this.Mc,m,this)};td.prototype.send=function(a,b){this.Oc.postMessage(pd({type:a,data:b}),"*")};td.prototype.l=function(){N(this.Nc)};td.prototype.Mc=function(a){var b=md(a.q.data),a=""+b.type,b=b.data;this.Ob.hasOwnProperty(a)||g("Unknown message type received by CommChannel: "+a);(0,this.Ob[a])(a,b)};var ud;(ud="ScriptEngine"in o&&"JScript"==o.ScriptEngine())&&(o.ScriptEngineMajorVersion(),o.ScriptEngineMinorVersion(),o.ScriptEngineBuildVersion());var vd=function(a,b){this.t=ud?[]:"";a!=k&&this.append.apply(this,arguments)};vd.prototype.set=function(a){this.clear();this.append(a)};ud?(vd.prototype.qb=0,vd.prototype.append=function(a,b,c){b==k?this.t[this.qb++]=a:(this.t.push.apply(this.t,arguments),this.qb=this.t.length);return this}):vd.prototype.append=function(a,b,c){this.t+=a;if(b!=k)for(var d=1;d<arguments.length;d++)this.t+=arguments[d];return this};vd.prototype.clear=function(){ud?this.qb=this.t.length=0:this.t=""};
-vd.prototype.toString=function(){if(ud){var a=this.t.join("");this.clear();a&&this.append(a);return a}return this.t};var W=function(a,b,c,d,e){this.o=!!b;a&&wd(this,a,d);this.depth=e!=i?e:this.p||0;this.o&&(this.depth*=-1);this.qc=!c};w(W,Jc);W.prototype.s=k;W.prototype.p=0;W.prototype.Kb=m;var wd=function(a,b,c){if(a.s=b)a.p="number"==typeof c?c:1!=a.s.nodeType?0:a.o?-1:1};
-W.prototype.next=function(){var a;if(this.Kb){(!this.s||this.qc&&0==this.depth)&&g(Ic);a=this.s;var b=this.o?-1:1;if(this.p==b){var c=this.o?a.lastChild:a.firstChild;c?wd(this,c):wd(this,a,-1*b)}else(c=this.o?a.previousSibling:a.nextSibling)?wd(this,c):wd(this,a.parentNode,-1*b);this.depth+=this.p*(this.o?-1:1)}else this.Kb=j;(a=this.s)||g(Ic);return a};
-W.prototype.splice=function(a){var b=this.s,c=this.o?1:-1;if(this.p==c)this.p=-1*c,this.depth+=this.p*(this.o?-1:1);this.o=!this.o;W.prototype.next.call(this);this.o=!this.o;for(var c=ba(arguments[0])?arguments[0]:arguments,d=c.length-1;0<=d;d--)b.parentNode&&b.parentNode.insertBefore(c[d],b.nextSibling);Cb(b)};var xd=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"),yd=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-\u0008\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"),zd=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"),Ad=RegExp("^[\x00-\u0008\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-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff]"),
-Bd=RegExp("[\x00-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff][\x00-\u0008\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]*$"),Cd=RegExp("[\x00-\u0008\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]*$"),
-Dd=RegExp("[\x00-\u001f\u007f\u0085\u00a0\u1680\u180e\u2000-\u200f\u2028-\u202f\u205f\u3000]"),Ed=RegExp("^[\x00-\u0008\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]+$"),Fd=RegExp("^[\x00-\u0008\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]+$"),
-Gd=RegExp("^[\x00-\u0008\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"),Hd=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]"),Id=function(a,b){this.text=a;this.index=b},Jd=function(a){for(var b=[],c;c=xd.exec(a);)b.push(new Id(c[0],
-c.index));return b},Kd=function(a){for(var b=[],c;c=yd.exec(a);){var d=c[0],e=Cd.exec(c[0]);e&&(d=d.substr(0,d.length-e[0].length));b.push(new Id(d,c.index))}return b},Ld=function(a){for(var b=[],c;c=zd.exec(a);)"\u202e"==a.charAt(c.index-1)&&"\u202c"==a.charAt(c.index+c[0].length)||b.push(new Id(c[0],c.index));return b},Md=function(a,b){var c=Ad.exec(a.substr(b));return c?new Id(c[0],b):k},Nd=function(a,b){var c=Bd.exec(a.substr(0,b));return c?new Id(c[0],b-c[0].length):k},Od=function(a){return(a=
-Gd.exec(a))?new Id(a[0],0):k},Pd={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",'"':'\\"',"'":"\\'","\\":"\\\\"},Qd=function(a){for(var b=[],c=0;c<a.length;c++){var d=b,e=c,f;f=a.charAt(c);if(f in Pd)f=Pd[f];else{var h=f;if(Dd.test(f)){var l=f.charCodeAt(0),h="\\u";4096>l&&(h+="0",256>l&&(h+="0",16>l&&(h+="0")));h+=l.toString(16)}f=Pd[f]=h}d[e]=f}return b.join("")},Rd=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+"="+("'"+Qd(b)+"'")},Sd=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===i||d.specified)&&b.push(d)}a=[a.nodeName.toLowerCase()];b=wa(b,Rd);b.sort();a=a.concat(b);return"<"+a.join(" ")+">"},Td=function(a){for(var b=[];a&&!(b.push(Sd(a)),"BODY"==a.parentNode.nodeName||"FRAMESET"==a.parentNode.nodeName);a=a.parentNode);b.reverse();return b.join("")},Ud=function(a){var b=[],
-c=new W(a);Lc(c,function(){3==c.s.nodeType&&b.push(c.s.data)});return b.join("")},Vd=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"),Wd=La("inline","inline-block","inline-table"),Xd={element:k,style:k},Yd=function(a){if(Xd.element==a)return Xd.style;var b=Ib(a,"display")||H(a,"display");
-Xd={element:a,style:b};return b},Zd=function(a){var b=Yd(a);return b?!Wd[b]:!!Vd[a.tagName]},$d=function(a){if(1==a.nodeType){if("SCRIPT"==a.nodeName||"STYLE"==a.nodeName||"NOSCRIPT"==a.nodeName)return m;if("none"==Yd(a))return m;a=Ib(a,"visibility")||H(a,"visibility");return"hidden"!=a&&"collapse"!=a}return j},ae=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]:k;this[e]==k&&0<=ta(c,e)&&g("Required field '"+e+"' not found in bidichecker.Error.")}}else b==i&&g("Required parameter 'opt_severity' not found in bidichecker.Error."),this.id=be++,this.type=a,this.severity=b,ce[this.id]=c||k,this.atText=d||k};Y.prototype.precededByText=k;
-Y.prototype.followedByText=k;Y.prototype.locationDescription=k;Y.prototype.asString=k;var be=0,ce=[];Y.prototype.Oa=function(){return this.id};Y.prototype.Wb=function(){return this.type};Y.prototype.fa=function(){return ce[this.id]||k};
-Y.prototype.toString=function(){var a=new vd("[",this.severity.toString(),"] ",this.Wb()),b;if(b=this.atText)b=20<b.length?b.substr(0,20)+"\u2026":b,a.append(": ","'"+Qd(b)+"'");(b=this.precededByText)&&a.append(" preceded by ","'"+Qd(b)+"'");(b=this.followedByText)&&a.append(" followed by ","'"+Qd(b)+"'");(b=this.locationDescription)&&a.append(" in ",b);return a.toString()};var de=function(a){for(var b=0;b<a.length;++b){var c=a[b];c.asString=c.toString()}return pd(a)};var ee=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 l in h)l in b||(b[l]=h[l]);this.wc=a;this.fb=b;this.Da=c;this.Ga=d;this.gb=e||k},fe;n=ee.prototype;n.oa=k;n.start=function(){var a=this.Da.ua;this.oa=new td(a,{checkPage:r(this.xc,this),highlightError:r(this.zc,this),unhighlightError:r(this.Bc,this),getOptions:r(this.yc,this),setOptions:r(this.Ac,this)});a.location=this.Ga};n.l=function(){ac(this.oa);delete this.oa;ac(this.Da);delete this.Da};
-n.yc=function(){this.oa.send("options",this.fb)};n.Ac=function(a,b){this.fb=Object(b)};n.xc=function(){var a;if(this.gb)a=this.gb,this.gb=k;else{a=this.fb;var b=[];-1!=a.severity&&b.push(ge(a.severity));a=this.wc.Ja("rtl"==a.dir,k,b)}this.oa.send("errorList",md(de(a)))};n.zc=function(a,b){var c=(new Y(Object(b))).fa();if(c){var c=c.Rb(),d=window.scrollY;window.scrollTo(0,c.y-100);this.Da.Qb(window.scrollY-d)}};n.Bc=function(a,b){var c=(new Y(Object(b))).fa();c&&c.Ub()};var he=function(a,b,c){this.V=a;this.Hc=b;this.Gc=c;this.U=[]};he.prototype.Rb=function(){if(0==this.U.length)for(var a=0;a<this.V.length;++a)this.U.push(ie(this.V[a],0==a?this.Hc:0,a==this.V.length-1?this.Gc:this.V[a].length));else for(a=0;a<this.U.length;++a)Db(this.U[a],this.V[a]);return Ob(this.U[0])};he.prototype.Ub=function(){if(0!=this.U.length)for(var a=0;a<this.V.length;++a)Db(this.V[a],this.U[a])};
-var ie=function(a,b,c){var b=b||0,c=c||a.data.length,d=[];0<b&&d.push(a.data.substring(0,b));b=yb("span",{},a.data.substring(b,c));ae(b);d.push(b);c<a.data.length&&d.push(a.data.substring(c));b=yb("span",k,d);Db(b,a);return b};var je=function(a){this.b=a};je.prototype.pa=k;je.prototype.Rb=function(){this.pa=ae(this.b);return Ob(this.b)};je.prototype.Ub=function(){if(this.pa)this.b.style.color=this.pa.color,this.b.style.backgroundColor=this.pa.backgroundColor,this.b.style.outline=this.pa.outline};var ke=function(a,b){this.pb=a;this.s=b},le=function(a){this.ga=[new ke(0,a)];this.Tb=a};le.prototype.append=function(a,b){if(this.Tb!=b)this.ga.push(new ke(a,b)),this.Tb=b};var me=function(a,b){var c=Da(a.ga,function(a,b){return a-b.pb}||Ea,b);return 0<=c?c:-c-2};le.prototype.ob=function(a){return this.ga[me(this,a)].s};le.prototype.fa=function(a,b){for(var c=me(this,a),d=me(this,a+b-1),e=[],f=c;f<=d;++f)e.push(this.ga[f].s);return new he(e,a-this.ga[c].pb,a+b-this.ga[d].pb)};
-var ne=function(a,b,c,d,e){this.Fb=b;this.Db=e;this.mc=d;this.mb=[a];this.nb=a.length;this.cb=new le(c)};ne.prototype.Ka=k;ne.prototype.za=function(){return xa(this.mb,function(a){return 0==a.length})};ne.prototype.append=function(a,b){this.cb.append(this.nb,b);this.nb+=a.length;this.mb.push(a);this.Ka=k};var oe=function(a){if(a.Ka===k)a.Ka=a.mb.join("");return a.Ka};ne.prototype.ob=function(a){return this.cb.ob(a)};ne.prototype.fa=function(a,b){return this.cb.fa(a,b)};var pe=new ne("",m,k,k,m);var qe=function(a){this.ea=new W(a);this.sc=a;this.B=[Ub(a)];this.Z=[];this.P=[a];this.da=[]};w(qe,R);qe.prototype.u=k;qe.prototype.go=function(){try{for(;;re(this));}catch(a){a!==Ic&&g(a),this.dispatchEvent("EndOfDom")}};
-var re=function(a){for(var b=a.ea.next();1==a.ea.p&&!$d(b);){var b=a.ea,c=b.o?-1:1;if(b.p==c)b.p=-1*c,b.depth+=b.p*(b.o?-1:1);b=a.ea.next()}a.u=b;1==a.ea.p?(b=a.u,c=Ub(b),a.Z.push(y(a.Z)||se(a,b,c)),a.B.push(c),"IFRAME"==b.nodeName||"FRAME"==b.nodeName?a.da.push(b):Zd(b)&&a.P.push(b),a.dispatchEvent("StartTag")):-1==a.ea.p?(a.dispatchEvent("EndTag"),a.B.pop(),a.Z.pop(),a.u==y(a.P)&&a.P.pop()):3==a.u.nodeType&&"TEXTAREA"!=a.u.parentNode.nodeName&&a.dispatchEvent("TextNode")};qe.prototype.Ya=function(){return this.da};
-var se=function(a,b,c){if(!b.dir&&!b.style.direction&&c==y(a.B)||b==a.sc)return m;for(a=b.firstChild;a;a=a.nextSibling)if(1==a.nodeType&&Zd(a))return m;return j};var te=function(a){this.I=pe;this.m=new P(this);Q(this.m,a,"TextNode",this.$a);xc(this.m,a,"EndOfDom",this.Dc)};w(te,R);te.prototype.$a=function(a){var a=a.target,b=a.u;y(a.B)==this.I.Fb&&y(a.P)==this.I.mc&&y(a.Z)==this.I.Db?this.I.append(b.data,b):(this.I.za()||this.dispatchEvent("DirChunk"),this.I=new ne(b.data,y(a.B),b,y(a.P),y(a.Z)))};te.prototype.Dc=function(){this.I.za()||this.dispatchEvent("DirChunk");this.dispatchEvent("EndOfChunks");this.m.O()};var ue=function(a){this.Ma=a};var Z=function(){};u("bidichecker.FilterFactory.ComposableFilter",Z);Z.prototype.Vc=function(a){return ve(this,a)};Z.prototype.and=Z.prototype.Vc;Z.prototype.ed=function(){return we(this)};Z.prototype.not=Z.prototype.ed;Z.prototype.fd=function(a){return xe(this,a)};Z.prototype.or=Z.prototype.fd;
-var Oe=function(a){var b=a.opcode;switch(b){case "AND":return new ye(a);case "AT_TEXT":return new ze(a);case "AT_TEXT_REGEXP":return new Ae(a);case "FOLLOWED_BY_TEXT":return new Be(a);case "FOLLOWED_BY_TEXT_REGEXP":return new Ce(a);case "LOCATION_CLASS":return new De(a);case "LOCATION_CLASS_REGEXP":return new Ee(a);case "LOCATION_ID":return new Fe(a);case "LOCATION_ID_REGEXP":return new Ge(a);case "LOCATION_XPATH":return new He(a);case "NOT":return new Ie(a);case "OR":return new Je(a);case "PRECEDED_BY_TEXT":return new Ke(a);
-case "PRECEDED_BY_TEXT_REGEXP":return new Le(a);case "SEVERITY":return new Me(a);case "TYPE":return new Ne(a);default:g("Unknown filter opcode: '"+b+"'")}},Pe=function(a){if(!a)return k;a=md(a);return wa(a,function(a){return Oe(a)})},ve=function(a,b){return new ye({filter1:a,filter2:b})};u("bidichecker.FilterFactory.and",ve);u("bidichecker.FilterFactory.atText",function(a){return new ze({atText:a||""})});u("bidichecker.FilterFactory.atTextRegexp",function(a){return new Ae({atTextRegexp:a||""})});
-u("bidichecker.FilterFactory.followedByText",function(a){return new Be({followedByText:a||""})});u("bidichecker.FilterFactory.followedByTextRegexp",function(a){return new Ce({followedByTextRegexp:a||""})});u("bidichecker.FilterFactory.locationClass",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClass");return new De({className:a})});
-u("bidichecker.FilterFactory.locationClassRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClassRegexp");return new Ee({classRegexp:a})});u("bidichecker.FilterFactory.locationId",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationId");return new Fe({id:a})});u("bidichecker.FilterFactory.locationIdRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationIdRegexp");return new Ge({idRegexp:a})});
-u("bidichecker.FilterFactory.locationXpath",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationXpath");return new He({xpath:a})});var we=function(a){return new Ie({filter:a})};u("bidichecker.FilterFactory.not",we);var xe=function(a,b){return new Je({filter1:a,filter2:b})};u("bidichecker.FilterFactory.or",xe);u("bidichecker.FilterFactory.precededByText",function(a){return new Ke({precededByText:a||""})});
-u("bidichecker.FilterFactory.precededByTextRegexp",function(a){return new Le({precededByTextRegexp:a||""})});var ge=function(a){return new Me({severityThreshold:a})};u("bidichecker.FilterFactory.severityFrom",ge);u("bidichecker.FilterFactory.type",function(a){return new Ne({type:a})});
-var Qe=function(a,b){b in a||g("No '"+b+"' parameter found for '"+a.opcode+"' filter")},Re=function(a,b,c){Qe(a,b);typeof a[b]!=c&&g("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected "+c)},Se=function(a,b){Re(a,b,"string");return a[b]},Te=function(a,b){Qe(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+")$")},Ue=function(a,b){Re(a,b,"object");var c=
-a[b];if(c instanceof Z)return c;if("string"==typeof c.opcode)return Oe(c);g("Can't make a filter out of the '"+b+"' parameter of '"+a.opcode+"' filter")},ye=function(a){this.hb=Ue(a,"filter1");this.ib=Ue(a,"filter2")};w(ye,Z);ye.prototype.d=function(a,b){return this.hb.d(a,b)&&this.ib.d(a,b)};var ze=function(a){this.Xc=Se(a,"atText")};w(ze,Z);ze.prototype.d=function(a){return this.Xc==(a.atText||"")};var Ae=function(a){this.Wc=Te(a,"atTextRegexp")};w(Ae,Z);
-Ae.prototype.d=function(a){return this.Wc.test(a.atText||"")};var Be=function(a){this.cd=Se(a,"followedByText")};w(Be,Z);Be.prototype.d=function(a){return this.cd==(a.followedByText||"")};var Ce=function(a){this.bd=Te(a,"followedByTextRegexp")};w(Ce,Z);Ce.prototype.d=function(a){return this.bd.test(a.followedByText||"")};var De=function(a){this.Zc=Se(a,"className")};w(De,Z);
-De.prototype.d=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.Zc==e[f])return j;return m};var Ee=function(a){this.$c=Te(a,"classRegexp")};w(Ee,Z);Ee.prototype.d=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.$c.test(e[f]))return j;return m};var Fe=function(a){this.La=Se(a,"id")};w(Fe,Z);
-Fe.prototype.d=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.La==d.id)return j;return m};var Ge=function(a){this.dd=Te(a,"idRegexp")};w(Ge,Z);Ge.prototype.d=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.dd.test(d.id))return j;return m};var He=function(a){a=Se(a,"xpath");this.Sc=new ue(a)};w(He,Z);
-He.prototype.d=function(a,b){for(var c=0;c<b.length;++c){var d;a:{d=b[c];var e;e=this.Sc;var f=d.ownerDocument,h=f._bidicheckerXpathMatcherCache_[e.Ma];if(!h)try{f.evaluate||g("XPath not supported by this browser"),h=f.evaluate(e.Ma,f,k,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,k),f._bidicheckerXpathMatcherCache_[e.Ma]=h}catch(l){g("Error evaluating XPath expression "+e.Ma+": "+l)}e=h;for(f=0;f<e.snapshotLength;++f)if(e.snapshotItem(f)==d){d=j;break a}d=m}if(d)return j}return m};
-var Ie=function(a){this.Ic=Ue(a,"filter")};w(Ie,Z);Ie.prototype.d=function(a,b){return!this.Ic.d(a,b)};var Je=function(a){this.hb=Ue(a,"filter1");this.ib=Ue(a,"filter2")};w(Je,Z);Je.prototype.d=function(a,b){return this.hb.d(a,b)||this.ib.d(a,b)};var Ke=function(a){this.hd=Se(a,"precededByText")};w(Ke,Z);Ke.prototype.d=function(a){return this.hd==(a.precededByText||"")};var Le=function(a){this.gd=Te(a,"precededByTextRegexp")};w(Le,Z);
-Le.prototype.d=function(a){return this.gd.test(a.precededByText||"")};var Me=function(a){Re(a,"severityThreshold","number");this.kd=a.severityThreshold};w(Me,Z);Me.prototype.d=function(a){return this.kd<=a.severity};var Ne=function(a){this.Uc=Se(a,"type")};w(Ne,Z);Ne.prototype.d=function(a){return this.Uc==a.Wb()};var Ve=function(){this.da=[]};w(Ve,R);n=Ve.prototype;n.start=function(){this.dispatchEvent("StartFrames")};n.end=function(){this.dispatchEvent("EndFrames")};n.push=function(a){this.da.push(a);this.dispatchEvent("EnterFrame")};n.pop=function(){this.dispatchEvent("ExitFrame");this.da.pop()};n.Ya=function(){return this.da};var We=function(a,b){this.uc=a;this.tc=b||[];this.T=[]};We.prototype.vc=m;We.prototype.lb=function(){return this.T};var Ye=function(a,b,c){var d=a.uc.Ya().slice(0);c&&d.push(c);if(xa(a.tc,function(a){return!a.d(b,d)}))c=Xe(d),""!=c&&(b.locationDescription=c),a.T.push(b),a.vc&&g(b.toString()+"\n")},Xe=function(a){var b=[];va(a,function(a){b.push(Td(a))});return b.join(" in ")};var Ze=function(a,b){this.rc=!!b;this.na=new Ve;this.Jb=new We(this.na,a)};Ze.prototype.v=k;Ze.prototype.ab=k;Ze.prototype.lb=function(){return this.Jb.lb()};
-var df=function(a,b,c){b.ownerDocument._bidicheckerXpathMatcherCache_={};var d,e=a.Jb,f=a.ka;d=[];0!=c&&d.push(new $e(-1==c,e));d.push(new af(f,e));2<=f&&d.push(new bf(e));d.push(new cf(e));a.v=new qe(b);a.ab=a.rc?new te(a.v):k;for(b=0;b<d.length;++b)d[b].Ha(a);a.v.go();d=a.v.Ya();for(b=0;b<d.length;++b){e=d[b];a.na.push(e);try{var h=(e.contentDocument||e.contentWindow.document).body;"IFRAME"==e.tagName&&(c=0);df(a,h,c)}catch(l){}a.na.pop()}};var $e=function(a,b){this.Mb=a;this.J=b};$e.prototype.Ha=function(a){pc(a.v,"StartTag",this)};$e.prototype.handleEvent=function(a){a=a.target;this.Mb!=y(a.B)&&Ye(this.J,new Y("Overall directionality not "+(this.Mb?"RTL":"LTR"),1,new je(a.u)))};var cf=function(a){this.J=a;this.la=[]};n=cf.prototype;n.L=k;n.Ha=function(a){var b=new P(this);Q(b,a.v,"StartTag",this.jb);Q(b,a.v,"EndTag",this.Cc);Q(b,a.v,"TextNode",this.$a);xc(b,a.v,"EndOfDom",b.O,m,b)};n.jb=function(a){var a=a.target,b=a.u;if(b.dir||b==y(a.P))this.L=k};n.Cc=function(a){var a=a.target,b=a.u;if(b==y(a.P))this.L=k;else if(b.dir)y(a.B)==a.B[a.B.length-2]?this.L=k:(this.L=b,this.la=[])};
-n.$a=function(a){var a=a.target,b=a.u;if(this.L){this.la.push(b);var c=Od(b.data);if(c){var d=wa(this.la,function(a){return a.data}).join(""),e=y(this.la).parentNode;Ye(this.J,ef(this,d.substr(0,d.length-(b.data.length-c.text.length)),c.text.length,y(a.B),y(a.Z)),e);this.L=k}else if(Hd.test(b.data))this.L=k}};var ef=function(a,b,c,d,e){b=new Y("Declared "+(d?"LTR":"RTL")+" spillover to number",e?4:2,new he(a.la,0,c),b);a=Ud(a.L);b.precededByText=a;return b};var bf=function(a){this.J=a};bf.prototype.Ha=function(a){var b=new P(this);Q(b,a.v,"StartTag",this.jb);xc(b,a.v,"EndOfDom",b.O,m,b)};
-bf.prototype.jb=function(a){a=a.target.u;a.title&&ff(this,a,a.title,"title text");var b=a.nodeName;"INPUT"==b?a.type.match(/^(text|search)$/)?ff(this,a,a.value,"input value"):"image"==a.type?ff(this,a,a.alt,"alt text"):a.type.match(/^(button|reset|submit)$/)?ff(this,a,a.value,"button label"):"file"==a.type&&Ub(a)&&Ye(this.J,new Y("File input not LTR",2,new je(a)),a):"IMG"==b?ff(this,a,a.alt,"alt text"):"TEXTAREA"==b&&ff(this,a,a.value,"textarea value")};
-var ff=function(a,b,c,d){var e=Ub(b),f=!!Ld(c).length,h=!!Kd(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||Ub(b)!=Ub(b.parentNode)?4:Md(c,0)||Nd(c,c.length)?2:3,Ye(a.J,new Y(e,d,new je(b),c),b))};var af=function(a,b){this.ka=a;this.J=b};af.prototype.Ha=function(a){var b=new P(this);Q(b,a.ab,"DirChunk",this.Lc);xc(b,a.ab,"EndOfChunks",b.O,m,b)};af.prototype.Lc=function(a){var b=this,c=a.target.I;c.Fb?(a=Ld(oe(c)),ua(a,function(a){Ed.exec(a.text)||gf(b,c,a,"Undeclared LTR text")})):(a=2<=this.ka?Kd(oe(c)):Jd(oe(c)),ua(a,function(a){Fd.exec(a.text)||gf(b,c,a,"Undeclared RTL text")}))};
-var gf=function(a,b,c,d){var e=b.Db?4:3,f=b.fa(c.index,c.text.length),d=new Y(d,e,f,c.text),e=oe(b);if(f=Nd(e,c.index))3==d.severity&&(d.severity=2),d.precededByText=f.text;if(e=Md(e,c.index+c.text.length))3==d.severity&&(d.severity=2),d.followedByText=e.text;b=b.ob(c.index).parentNode;Ye(a.J,d,b)};var hf=function(a,b){Ze.call(this,b,j);this.ka=a};w(hf,Ze);var jf=function(a){this.Fc=a};u("bidichecker.REVISION_1",new jf(1));var kf=new jf(2);u("bidichecker.REVISION_2",kf);u("bidichecker.LATEST",kf);var $=function(a){this.ka=a;this.T=[]};u("bidichecker.BidiChecker",$);u("bidichecker.instance",k);$.prototype.Ga="https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html";$.prototype.Ja=function(a,b,c){a=a?-1:1;b=b||top.document.body;c=c||[];ce=[];be=0;c=new hf(this.ka.Fc,c);c.na.start();df(c,b,a);c.na.end();this.T=c.lb();return Aa(this.T)};
-$.prototype.checkPage=$.prototype.Ja;$.prototype.Yc=function(a,b,c){c=(c=Pe(c))||[];a=this.Ja(a,b,c);return de(a)};$.prototype.checkPageToJson=$.prototype.Yc;$.prototype.Xb=function(a){this.Ga=a};$.prototype.setGuiAppUrl=$.prototype.Xb;$.prototype.jd=function(a){0!=this.T.length&&lf(this,this.T,a)};$.prototype.runGui=$.prototype.jd;
-var lf=function(a,b,c){if(B)if(E("8"))c=j;else{c=new id;c.ua.document.write("Sorry, bidichecker GUI is not supported in Internet Explorer before version 8.");return}c=c?new id:ld(k);a=new ee(a,{},c,a.Ga,b);ac(fe);fe=a;a.start()};u("bidichecker.runBookmarkletGui",function(a,b,c){var d=new $(kf);B?(b&&b.close(),b=new id):b=ld(b);a=new ee(d,a,b,c||"https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html");ac(fe);fe=a;a.start()});
-u("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=pd(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)});u("bidichecker.checkPage",function(a,b,c){return(new $(kf)).Ja(a,b,c)});u("bidichecker.runGui",function(a,b,c){var d=new $(kf);c&&d.Xb(c);lf(d,a,b)}); })()
+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)}); })()
diff --git a/lib/bookmarklet.html b/lib/bookmarklet.html
index 6c03b14..bf26c0b 100644
--- a/lib/bookmarklet.html
+++ b/lib/bookmarklet.html
@@ -52,6 +52,9 @@
         var locationUrl = window.location.toString();
         var lastSlash = locationUrl.lastIndexOf('/');
         var baseUrl = locationUrl.substr(0, lastSlash);
+        // Force the bookmarklet to use https: URLs for the scripts so that it
+        // works on https: pages.
+        baseUrl = baseUrl.replace(/^http:/, 'https:');
         var scriptUrl = baseUrl + '/bidichecker_packaged.js';
         var guiAppUrl = baseUrl + '/gui-app/errorpage.html';
         document.getElementById('ltr-bookmarklet').href =
diff --git a/lib/gui-app/gui_compiled.js b/lib/gui-app/gui_compiled.js
index ffa7f3b..a194c38 100755
--- a/lib/gui-app/gui_compiled.js
+++ b/lib/gui-app/gui_compiled.js
@@ -1,145 +1,146 @@
 function g(a){throw a;}
-var i=void 0,j=!0,k=null,m=!1,n,p=this,aa=function(a){for(var a=a.split("."),b=p,c;c=a.shift();)if(b[c]!=k)b=b[c];else return k;return b},ba=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},q=function(a){return"array"==ba(a)},ca=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length},s=function(a){return"string"==typeof a},da=function(a){return"function"==ba(a)},ea=function(a){a=ba(a);return"object"==a||"array"==a||"function"==a},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)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
-ia:ja;return t.apply(k,arguments)},ka=Date.now||function(){return+new Date},u=function(a,b){var c=a.split("."),d=p;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==i?d[e]=b:d=d[e]?d[e]:d[e]={}},x=function(a,b){function c(){}c.prototype=b.prototype;a.g=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 t.apply(k,c)}return t(this,a)};var la=function(a){this.stack=Error().stack||"";if(a)this.message=""+a};x(la,Error);la.prototype.name="CustomError";var ma=function(a,b){for(var c=1;c<arguments.length;c++)var d=(""+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=/[&<>\"]/,ta=function(a){var b=Number(a);return 0==b&&/^[\s\xa0]*$/.test(a)?NaN:b};var ua=function(a,b){b.unshift(a);la.call(this,ma.apply(k,b));b.shift();this.ne=a};x(ua,la);ua.prototype.name="AssertionError";var y=function(a,b,c){if(!a){var d=Array.prototype.slice.call(arguments,2),e="Assertion failed";if(b)var e=e+(": "+b),f=d;g(new ua(""+e,f||[]))}},va=function(a,b){g(new ua("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};var z=function(a){return a[a.length-1]},A=Array.prototype,wa=A.indexOf?function(a,b,c){y(a.length!=k);return A.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(s(a))return!s(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=A.forEach?function(a,b,c){y(a.length!=k);A.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ya=function(a,b){for(var c=s(a)?a.split(""):
-a,d=a.length-1;0<=d;--d)d in c&&b.call(i,c[d],d,a)},za=A.map?function(a,b,c){y(a.length!=k);return A.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=s(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Aa=A.some?function(a,b,c){y(a.length!=k);return A.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return j;return m},Ba=A.every?function(a,b,c){y(a.length!=k);return A.every.call(a,b,c)}:function(a,
-b,c){for(var d=a.length,e=s(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return m;return j},Ca=function(a,b){var c=wa(a,b);0<=c&&(y(a.length!=k),A.splice.call(a,c,1))},Da=function(a){return A.concat.apply(A,arguments)},Ea=function(a){if(q(a))return Da(a);for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b},Ga=function(a,b,c,d){y(a.length!=k);A.splice.apply(a,Fa(arguments,1))},Fa=function(a,b,c){y(a.length!=k);return 2>=arguments.length?A.slice.call(a,b):A.slice.call(a,b,c)},Ha=function(a,
-b,c){for(var d=0,e=a.length,f;d<e;){var h=d+e>>1,l;l=b(c,a[h]);0<l?d=h+1:(e=h,f=!l)}return f?d:~d},Ia=function(a,b){return a>b?1:a<b?-1:0};var Ja=function(a,b){for(var c in a)b.call(i,a[c],c,a)},Ka=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},La=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Ma="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Na=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<Ma.length;f++)c=Ma[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Oa=function(a){var b=arguments.length;
-if(1==b&&q(arguments[0]))return Oa.apply(k,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=j;return c};var Pa,Qa,Ra,Sa,Ta,Ua,Wa=function(){return p.navigator?p.navigator.userAgent:k},Xa=function(){return p.navigator};Ta=Sa=Ra=Qa=Pa=m;var Ya;if(Ya=Wa()){var Za=Xa();Pa=0==Ya.indexOf("Opera");Qa=!Pa&&-1!=Ya.indexOf("MSIE");Sa=(Ra=!Pa&&-1!=Ya.indexOf("WebKit"))&&-1!=Ya.indexOf("Mobile");Ta=!Pa&&!Ra&&"Gecko"==Za.product}var $a=Pa,B=Qa,C=Ta,D=Ra,ab=Sa,bb=Xa();Ua=-1!=(bb&&bb.platform||"").indexOf("Mac");var cb=!!Xa()&&-1!=(Xa().appVersion||"").indexOf("X11"),db;
-a:{var eb="",fb;if($a&&p.opera)var gb=p.opera.version,eb="function"==typeof gb?gb():gb;else if(C?fb=/rv\:([^\);]+)(\)|;)/:B?fb=/MSIE\s+([^\);]+)(\)|;)/:D&&(fb=/WebKit\/(\S+)/),fb)var hb=fb.exec(Wa()),eb=hb?hb[1]:"";if(B){var ib,jb=p.document;ib=jb?jb.documentMode:i;if(ib>parseFloat(eb)){db=""+ib;break a}}db=eb}
-var kb=db,lb={},E=function(a){var b;if(!(b=lb[a])){b=0;for(var c=(""+kb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=(""+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]||"",l=d[f]||"",o=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var v=o.exec(h)||["","",""],w=r.exec(l)||["","",""];if(0==v[0].length&&0==w[0].length)break;b=((0==v[1].length?0:parseInt(v[1],10))<(0==w[1].length?0:parseInt(w[1],10))?-1:(0==v[1].length?
-0:parseInt(v[1],10))>(0==w[1].length?0:parseInt(w[1],10))?1:0)||((0==v[2].length)<(0==w[2].length)?-1:(0==v[2].length)>(0==w[2].length)?1:0)||(v[2]<w[2]?-1:v[2]>w[2]?1:0)}while(0==b)}b=lb[a]=0<=b}return b},mb={},nb=function(a){return mb[a]||(mb[a]=B&&document.documentMode&&document.documentMode>=a)};var ob=function(a){ob[" "](a);return a};ob[" "]=function(){};var pb=!B||nb(9),qb=!B||nb(9),rb=B&&!E("8");!D||E("528");C&&E("1.9b")||B&&E("8")||$a&&E("9.5")||D&&E("528");!C||E("8");var sb=function(){};sb.prototype.vc=m;sb.prototype.t=function(){if(!this.vc)this.vc=j,this.r()};sb.prototype.r=function(){this.Wd&&tb.apply(k,this.Wd)};var ub=function(a){a&&"function"==typeof a.t&&a.t()},tb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ca(d)?tb.apply(k,d):ub(d)}};var F=function(a,b){this.type=a;this.currentTarget=this.target=b};x(F,sb);n=F.prototype;n.r=function(){delete this.type;delete this.target;delete this.currentTarget};n.ka=m;n.Ha=j;n.stopPropagation=function(){this.ka=j};n.preventDefault=function(){this.Ha=m};var vb=function(a){a.preventDefault()};var wb=function(a,b){a&&this.ta(a,b)};x(wb,F);var xb=[1,4,2];n=wb.prototype;n.target=k;n.relatedTarget=k;n.offsetX=0;n.offsetY=0;n.clientX=0;n.clientY=0;n.screenX=0;n.screenY=0;n.button=0;n.keyCode=0;n.charCode=0;n.ctrlKey=m;n.altKey=m;n.shiftKey=m;n.metaKey=m;n.wd=m;n.I=k;
-n.ta=function(a,b){var c=this.type=a.type;F.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(C){var e;a:{try{ob(d.nodeName);e=j;break a}catch(f){}e=m}e||(d=k)}}else if("mouseover"==c)d=a.fromElement;else if("mouseout"==c)d=a.toElement;this.relatedTarget=d;this.offsetX=D||a.offsetX!==i?a.offsetX:a.layerX;this.offsetY=D||a.offsetY!==i?a.offsetY:a.layerY;this.clientX=a.clientX!==i?a.clientX:a.pageX;this.clientY=a.clientY!==i?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.wd=Ua?a.metaKey:a.ctrlKey;this.state=a.state;this.I=a;delete this.Ha;delete this.ka};n.stopPropagation=function(){wb.g.stopPropagation.call(this);this.I.stopPropagation?this.I.stopPropagation():this.I.cancelBubble=j};
-n.preventDefault=function(){wb.g.preventDefault.call(this);var a=this.I;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,rb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};n.r=function(){wb.g.r.call(this);this.relatedTarget=this.currentTarget=this.target=this.I=k};var yb=function(){},zb=0;n=yb.prototype;n.key=0;n.ia=m;n.Ob=m;n.ta=function(a,b,c,d,e,f){da(a)?this.qc=j:a&&a.handleEvent&&da(a.handleEvent)?this.qc=m:g(Error("Invalid listener argument"));this.sa=a;this.kc=b;this.src=c;this.type=d;this.capture=!!e;this.Ua=f;this.Ob=m;this.key=++zb;this.ia=m};n.handleEvent=function(a){return this.qc?this.sa.call(this.Ua||this.src,a):this.sa.handleEvent.call(this.sa,a)};var Ab={},G={},Bb={},Cb={},H=function(a,b,c,d,e){if(b){if(q(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,h=G;b in h||(h[b]={n:0,L:0});h=h[b];d in h||(h[d]={n:0,L:0},h.n++);var h=h[d],l=ha(a),o;h.L++;if(h[l]){o=h[l];for(f=0;f<o.length;f++)if(h=o[f],h.sa==c&&h.Ua==e){if(h.ia)break;return o[f].key}}else o=h[l]=[],h.n++;f=Db();f.src=a;h=new yb;h.ta(c,f,a,b,d,e);c=h.key;f.key=c;o.push(h);Ab[c]=h;Bb[l]||(Bb[l]=[]);Bb[l].push(h);a.addEventListener?(a==p||!a.jc)&&a.addEventListener(b,
-f,d):a.attachEvent(b in Cb?Cb[b]:Cb[b]="on"+b,f);return c}g(Error("Invalid event type"))},Db=function(){var a=Eb,b=qb?function(c){return a.call(b.src,b.key,c)}:function(c){c=a.call(b.src,b.key,c);if(!c)return c};return b},Fb=function(a,b,c,d,e){if(q(b)){for(var f=0;f<b.length;f++)Fb(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);Ab[a].Ob=j;return a},Gb=function(a,b,c,d,e){if(q(b))for(var f=0;f<b.length;f++)Gb(a,b[f],c,d,e);else if(d=!!d,a=Hb(a,b,d))for(f=0;f<a.length;f++)if(a[f].sa==c&&a[f].capture==d&&a[f].Ua==
-e){Ib(a[f].key);break}},Ib=function(a){if(!Ab[a])return m;var b=Ab[a];if(b.ia)return m;var c=b.src,d=b.type,e=b.kc,f=b.capture;c.removeEventListener?(c==p||!c.jc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in Cb?Cb[d]:Cb[d]="on"+d,e);c=ha(c);e=G[d][f][c];if(Bb[c]){var h=Bb[c];Ca(h,b);0==h.length&&delete Bb[c]}b.ia=j;e.mc=j;Jb(d,f,c,e);delete Ab[a];return j},Jb=function(a,b,c,d){if(!d.cb&&d.mc){for(var e=0,f=0;e<d.length;e++)d[e].ia?d[e].kc.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=
-f;d.mc=m;0==f&&(delete G[a][b][c],G[a][b].n--,0==G[a][b].n&&(delete G[a][b],G[a].n--),0==G[a].n&&delete G[a])}},Kb=function(a){var b,c=0,d=b==k;b=!!b;if(a==k)Ja(Bb,function(a){for(var e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)Ib(f.key),c++}});else if(a=ha(a),Bb[a])for(var a=Bb[a],e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)Ib(f.key),c++}},Hb=function(a,b,c){var d=G;return b in d&&(d=d[b],c in d&&(d=d[c],a=ha(a),d[a]))?d[a]:k},Mb=function(a,b,c,d,e){var f=1,b=ha(b);if(a[b]){a.L--;
-a=a[b];a.cb?a.cb++:a.cb=1;try{for(var h=a.length,l=0;l<h;l++){var o=a[l];o&&!o.ia&&(f&=Lb(o,e)!==m)}}finally{a.cb--,Jb(c,d,b,a)}}return Boolean(f)},Lb=function(a,b){var c=a.handleEvent(b);a.Ob&&Ib(a.key);return c},Eb=function(a,b){if(!Ab[a])return j;var c=Ab[a],d=c.type,e=G;if(!(d in e))return j;var e=e[d],f,h;if(!qb){f=b||aa("window.event");var l=j in e,o=m in e;if(l){if(0>f.keyCode||f.returnValue!=i)return j;a:{var r=m;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(v){r=j}if(r||f.returnValue==i)f.returnValue=
-j}}r=new wb;r.ta(f,this);f=j;try{if(l){for(var w=[],Va=r.currentTarget;Va;Va=Va.parentNode)w.push(Va);h=e[j];h.L=h.n;for(var R=w.length-1;!r.ka&&0<=R&&h.L;R--)r.currentTarget=w[R],f&=Mb(h,w[R],d,j,r);if(o){h=e[m];h.L=h.n;for(R=0;!r.ka&&R<w.length&&h.L;R++)r.currentTarget=w[R],f&=Mb(h,w[R],d,m,r)}}else f=Lb(c,r)}finally{if(w)w.length=0;r.t()}return f}d=new wb(b,this);try{f=Lb(c,d)}finally{d.t()}return f};var Nb=function(a){a=""+a;if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|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))},Ob=function(){this.mb=i},Qb=function(a){var b=[];Pb(new Ob,a,b);return b.join("")},Pb=function(a,b,c){switch(typeof b){case "string":Rb(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==k){c.push("null");break}if(q(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],Pb(a,a.mb?a.mb.call(b,""+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),Rb(f,c),c.push(":"),Pb(a,a.mb?a.mb.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;
-default:g(Error("Unknown type: "+typeof b))}},Sb={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Tb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Rb=function(a,b){b.push('"',a.replace(Tb,function(a){if(a in Sb)return Sb[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Sb[a]=e+b.toString(16)}),'"')};var I="StopIteration"in p?p.StopIteration:Error("StopIteration"),Ub=function(){};Ub.prototype.next=function(){g(I)};Ub.prototype.La=function(){return this};
-var Vb=function(a){if(a instanceof Ub)return a;if("function"==typeof a.La)return a.La(m);if(ca(a)){var b=0,c=new Ub;c.next=function(){for(;;){b>=a.length&&g(I);if(b in a)return a[b++];b++}};return c}g(Error("Not implemented"))},Wb=function(a,b){if(ca(a))try{xa(a,b,i)}catch(c){c!==I&&g(c)}else{a=Vb(a);try{for(;;)b.call(i,a.next(),i,a)}catch(d){d!==I&&g(d)}}};var Xb=function(a){if("function"==typeof a.fb)return a.fb();if(s(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 Ka(a)},Yb=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ca(a)||s(a))xa(a,b,c);else{var d;if("function"==typeof a.Ib)d=a.Ib();else if("function"!=typeof a.fb)if(ca(a)||s(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=La(a);else d=i;for(var e=Xb(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};var Zb=function(a,b){this.ba={};this.i=[];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 Zb?(c=a.Ib(),d=a.fb()):(c=La(a),d=Ka(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};n=Zb.prototype;n.n=0;n.ab=0;n.fb=function(){$b(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.ba[this.i[b]]);return a};n.Ib=function(){$b(this);return this.i.concat()};n.Ya=function(){return 0==this.n};
-n.clear=function(){this.ba={};this.ab=this.n=this.i.length=0};var $b=function(a){if(a.n!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Object.prototype.hasOwnProperty.call(a.ba,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.n!=a.i.length){for(var e={},c=b=0;b<a.i.length;)d=a.i[b],Object.prototype.hasOwnProperty.call(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};Zb.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.ba,a)?this.ba[a]:b};
-Zb.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.ba,a)||(this.n++,this.i.push(a),this.ab++);this.ba[a]=b};Zb.prototype.La=function(a){$b(this);var b=0,c=this.i,d=this.ba,e=this.ab,f=this,h=new Ub;h.next=function(){for(;;){e!=f.ab&&g(Error("The map has changed since the iterator was created"));b>=c.length&&g(I);var h=c[b++];return a?h:d[h]}};return h};var ac=function(a,b){this.Hd=a;this.uc=b;this.Fd=H(window,"message",this.Ed,m,this)};ac.prototype.send=function(a,b){this.Hd.postMessage(Qb({type:a,data:b}),"*")};ac.prototype.t=function(){Ib(this.Fd)};ac.prototype.Ed=function(a){var b=Nb(a.I.data),a=""+b.type,b=b.data;this.uc.hasOwnProperty(a)||g("Unknown message type received by CommChannel: "+a);(0,this.uc[a])(a,b)};var bc;(bc="ScriptEngine"in p&&"JScript"==p.ScriptEngine())&&(p.ScriptEngineMajorVersion(),p.ScriptEngineMinorVersion(),p.ScriptEngineBuildVersion());var cc=function(a,b){this.M=bc?[]:"";a!=k&&this.append.apply(this,arguments)};cc.prototype.set=function(a){this.clear();this.append(a)};bc?(cc.prototype.Tb=0,cc.prototype.append=function(a,b,c){b==k?this.M[this.Tb++]=a:(this.M.push.apply(this.M,arguments),this.Tb=this.M.length);return this}):cc.prototype.append=function(a,b,c){this.M+=a;if(b!=k)for(var d=1;d<arguments.length;d++)this.M+=arguments[d];return this};cc.prototype.clear=function(){bc?this.Tb=this.M.length=0:this.M=""};
-cc.prototype.toString=function(){if(bc){var a=this.M.join("");this.clear();a&&this.append(a);return a}return this.M};var dc=function(a,b){this.x=a!==i?a:0;this.y=b!==i?b:0};dc.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var J=function(a,b){this.width=a;this.height=b};J.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};J.prototype.Ya=function(){return!(this.width*this.height)};J.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};J.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var ec,fc=!B||nb(9);!C&&!B||B&&nb(9)||C&&E("1.9.1");B&&E("9");var gc=function(a){return(a=a.className)&&"function"==typeof a.split?a.split(/\s+/):[]},hc=function(a,b){var c=gc(a),d=Fa(arguments,1),e;e=c;for(var f=0,h=0;h<d.length;h++)0<=wa(e,d[h])||(e.push(d[h]),f++);e=f==d.length;a.className=c.join(" ");return e},ic=function(a,b){for(var c=gc(a),d=Fa(arguments,1),e=c,f=0,h=0;h<e.length;h++)0<=wa(d,e[h])&&(Ga(e,h--,1),f++);a.className=c.join(" ")};var L=function(a){return a?new jc(K(a)):ec||(ec=new jc)},M=function(a){return s(a)?document.getElementById(a):a},lc=function(a,b){var c=b&&"*"!=b?b.toUpperCase():"";return a.querySelectorAll&&a.querySelector&&(!D||kc(document)||E("528"))&&c?a.querySelectorAll(c+""):a.getElementsByTagName(c||"*")},nc=function(a,b){Ja(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in mc?a.setAttribute(mc[d],b):0==d.lastIndexOf("aria-",0)?a.setAttribute(d,b):a[d]=b})},mc=
-{cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"},oc=function(a){var b=a.document;if(D&&!E("500")&&!ab){"undefined"==typeof a.innerHeight&&(a=window);var b=a.innerHeight,c=a.document.documentElement.scrollHeight;a==a.top&&c<b&&(b-=15);return new J(a.innerWidth,b)}a=kc(b)?b.documentElement:b.body;return new J(a.clientWidth,a.clientHeight)},
-pc=function(a){return a?a.parentWindow||a.defaultView:window},rc=function(a,b,c){return qc(document,arguments)},qc=function(a,b){var c=b[0],d=b[1];if(!fc&&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={};Na(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)s(d)?c.className=d:q(d)?hc.apply(k,[c].concat(d)):nc(c,d);2<b.length&&sc(a,c,b,2);return c},sc=function(a,b,c,d){function e(c){c&&b.appendChild(s(c)?
-a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];ca(f)&&!(ea(f)&&0<f.nodeType)?xa(tc(f)?Ea(f):f,e):e(f)}},kc=function(a){return"CSS1Compat"==a.compatMode},uc=function(a,b){sc(K(a),a,arguments,1)},vc=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):k},wc=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},xc=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&
-16);for(;b&&a!=b;)b=b.parentNode;return b==a},K=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},yc=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{for(var c;c=a.firstChild;)a.removeChild(c);a.appendChild(K(a).createTextNode(b))}},tc=function(a){if(a&&"number"==typeof a.length){if(ea(a))return"function"==typeof a.item||"string"==typeof a.item;if(da(a))return"function"==
-typeof a.item}return m},jc=function(a){this.l=a||p.document||document};n=jc.prototype;n.p=L;n.F=function(){return this.l};n.b=function(a){return s(a)?this.l.getElementById(a):a};n.o=function(a,b,c){return qc(this.l,arguments)};n.createElement=function(a){return this.l.createElement(a)};n.createTextNode=function(a){return this.l.createTextNode(a)};n.Db=function(){return this.l.parentWindow||this.l.defaultView};
-var zc=function(a){var b=a.l,a=!D&&kc(b)?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new dc(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};jc.prototype.appendChild=function(a,b){a.appendChild(b)};jc.prototype.append=uc;jc.prototype.removeNode=vc;jc.prototype.contains=xc;var N=function(a,b,c,d,e){this.C=!!b;a&&Ac(this,a,d);this.depth=e!=i?e:this.A||0;this.C&&(this.depth*=-1);this.Yc=!c};x(N,Ub);N.prototype.B=k;N.prototype.A=0;N.prototype.wb=m;var Ac=function(a,b,c){if(a.B=b)a.A="number"==typeof c?c:1!=a.B.nodeType?0:a.C?-1:1};N.prototype.tb=function(){var a=this.C?-1:1;if(this.A==a)this.A=-1*a,this.depth+=this.A*(this.C?-1:1)};
-N.prototype.next=function(){var a;if(this.wb){(!this.B||this.Yc&&0==this.depth)&&g(I);a=this.B;var b=this.C?-1:1;if(this.A==b){var c=this.C?a.lastChild:a.firstChild;c?Ac(this,c):Ac(this,a,-1*b)}else(c=this.C?a.previousSibling:a.nextSibling)?Ac(this,c):Ac(this,a.parentNode,-1*b);this.depth+=this.A*(this.C?-1:1)}else this.wb=j;(a=this.B)||g(I);return a};
-N.prototype.splice=function(a){var b=this.B,c=this.C?1:-1;if(this.A==c)this.A=-1*c,this.depth+=this.A*(this.C?-1:1);this.C=!this.C;N.prototype.next.call(this);this.C=!this.C;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);vc(b)};var Bc=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Bc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};Bc.prototype.contains=function(a){return!this||!a?m:a instanceof Bc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};var Cc=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Cc.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};Cc.prototype.contains=function(a){return a instanceof Cc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};var O=function(a,b){var c=K(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b):""},Dc=function(a,b){return a.currentStyle?a.currentStyle[b]:k},Ec=function(a,b){return O(a,b)||Dc(a,b)||a.style&&a.style[b]},Gc=function(a,b,c){var d,e=C&&(Ua||cb)&&E("1.9");b instanceof dc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Fc(d,e);a.style.top=Fc(b,e)},Hc=function(a){var b=a.getBoundingClientRect();if(B)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+
-a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b},Ic=function(a){if(B&&!nb(8))return a.offsetParent;for(var b=K(a),c=Ec(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ec(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 k},Jc=function(a){var b,c=K(a),d=Ec(a,"position"),e=C&&c.getBoxObjectFor&&!a.getBoundingClientRect&&
-"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new dc(0,0),h;b=c?9==c.nodeType?c:K(c):document;if(h=B)if(h=!nb(9))h=L(b),h=!kc(h.l);h=h?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=Hc(a),a=zc(L(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(D&&
-"fixed"==Ec(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if($a||D&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Ic(e))&&e!=c.body&&e!=h;)if(f.x-=e.scrollLeft,!$a||"TR"!=e.tagName)f.y-=e.scrollTop}return f},Kc=function(a,b,c){b instanceof J?(c=b.height,b=b.width):c==i&&g(Error("missing height argument"));a.style.width=Fc(b,j);a.style.height=Fc(c,j)},Fc=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Mc=function(a){if("none"!=
-Ec(a,"display"))return Lc(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Lc(a);b.display=c;b.position=e;b.visibility=d;return a},Lc=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=D&&!b&&!c;return(b===i||d)&&a.getBoundingClientRect?(a=Hc(a),new J(a.right-a.left,a.bottom-a.top)):new J(b,c)},Nc=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=""===
-b?"":"alpha(opacity="+100*b+")"},P=function(a,b){a.style.display=b?"":"none"},Oc=function(a){B?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[D?"innerText":"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 }"},
-Pc=function(a){return"rtl"==Ec(a,"direction")},Qc=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},Rc=function(a,b){return Qc(a,Dc(a,b),"left","pixelLeft")},Sc={thin:2,medium:4,thick:6},Tc=function(a,b){if("none"==Dc(a,b+"Style"))return 0;var c=Dc(a,b+"Width");return c in Sc?Sc[c]:Qc(a,c,"left","pixelLeft")};var Uc=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"),Vc=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-\u0008\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"),Wc=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"),Xc=RegExp("^[\x00-\u0008\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-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff]"),
-Yc=RegExp("[\x00-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff][\x00-\u0008\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]*$"),Zc=RegExp("[\x00-\u0008\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]*$"),
-$c=RegExp("[\x00-\u001f\u007f\u0085\u00a0\u1680\u180e\u2000-\u200f\u2028-\u202f\u205f\u3000]"),ad=RegExp("^[\x00-\u0008\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]+$"),bd=RegExp("^[\x00-\u0008\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]+$"),
-cd=RegExp("^[\x00-\u0008\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"),dd=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]"),ed=function(a,b){this.text=a;this.index=b},fd=function(a){for(var b=[],c;c=Uc.exec(a);)b.push(new ed(c[0],
-c.index));return b},gd=function(a){for(var b=[],c;c=Vc.exec(a);){var d=c[0],e=Zc.exec(c[0]);e&&(d=d.substr(0,d.length-e[0].length));b.push(new ed(d,c.index))}return b},hd=function(a){for(var b=[],c;c=Wc.exec(a);)"\u202e"==a.charAt(c.index-1)&&"\u202c"==a.charAt(c.index+c[0].length)||b.push(new ed(c[0],c.index));return b},id=function(a,b){var c=Xc.exec(a.substr(b));return c?new ed(c[0],b):k},jd=function(a,b){var c=Yc.exec(a.substr(0,b));return c?new ed(c[0],b-c[0].length):k},kd=function(a){return(a=
-cd.exec(a))?new ed(a[0],0):k},ld={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",'"':'\\"',"'":"\\'","\\":"\\\\"},md=function(a){for(var b=[],c=0;c<a.length;c++){var d=b,e=c,f;f=a.charAt(c);if(f in ld)f=ld[f];else{var h=f;if($c.test(f)){var l=f.charCodeAt(0),h="\\u";4096>l&&(h+="0",256>l&&(h+="0",16>l&&(h+="0")));h+=l.toString(16)}f=ld[f]=h}d[e]=f}return b.join("")},nd=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+"="+("'"+md(b)+"'")},od=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===i||d.specified)&&b.push(d)}a=[a.nodeName.toLowerCase()];b=za(b,nd);b.sort();a=a.concat(b);return"<"+a.join(" ")+">"},pd=function(a){for(var b=[];a&&!(b.push(od(a)),"BODY"==a.parentNode.nodeName||"FRAMESET"==a.parentNode.nodeName);a=a.parentNode);b.reverse();return b.join("")},qd=function(a){var b=[],
-c=new N(a);Wb(c,function(){3==c.B.nodeType&&b.push(c.B.data)});return b.join("")},rd=Oa("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"),sd=Oa("inline","inline-block","inline-table"),td={element:k,style:k},ud=function(a){if(td.element==a)return td.style;var b=Dc(a,"display")||O(a,"display");
-td={element:a,style:b};return b},vd=function(a){var b=ud(a);return b?!sd[b]:!!rd[a.tagName]},wd=function(a){if(1==a.nodeType){if("SCRIPT"==a.nodeName||"STYLE"==a.nodeName||"NOSCRIPT"==a.nodeName)return m;if("none"==ud(a))return m;a=Dc(a,"visibility")||O(a,"visibility");return"hidden"!=a&&"collapse"!=a}return j},xd=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 Q=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]:k;this[e]==k&&0<=wa(c,e)&&g("Required field '"+e+"' not found in bidichecker.Error.")}}else b==i&&g("Required parameter 'opt_severity' not found in bidichecker.Error."),this.id=yd++,this.type=a,this.severity=b,zd[this.id]=c||k,this.atText=d||k};Q.prototype.precededByText=k;
-Q.prototype.followedByText=k;Q.prototype.locationDescription=k;Q.prototype.asString=k;var yd=0,zd=[];Q.prototype.nb=function(){return this.id};Q.prototype.Ia=function(){return this.type};var Ad=function(a){return a.severity};Q.prototype.xa=function(){return zd[this.id]||k};
-Q.prototype.toString=function(){var a=new cc("[",Ad(this).toString(),"] ",this.Ia()),b;if(b=this.atText)b=20<b.length?b.substr(0,20)+"\u2026":b,a.append(": ","'"+md(b)+"'");(b=this.precededByText)&&a.append(" preceded by ","'"+md(b)+"'");(b=this.followedByText)&&a.append(" followed by ","'"+md(b)+"'");(b=this.locationDescription)&&a.append(" in ",b);return a.toString()};var Bd=function(a){for(var b=0;b<a.length;++b){var c=a[b];c.asString=c.toString()}return Qb(a)};var Dd=function(a){return Cd(a||arguments.callee.caller,[])},Cd=function(a,b){var c=[];if(0<=wa(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Ed(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=""+f;break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Ed(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);
-c.push(")\n");try{c.push(Cd(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},Ed=function(a){if(Fd[a])return Fd[a];a=""+a;if(!Fd[a]){var b=/function ([^\(]+)/.exec(a);Fd[a]=b?b[1]:"[Anonymous]"}return Fd[a]},Fd={};var Gd=function(a,b,c,d,e){this.reset(a,b,c,d,e)};Gd.prototype.Bd=0;Gd.prototype.sc=k;Gd.prototype.rc=k;var Hd=0;Gd.prototype.reset=function(a,b,c,d,e){this.Bd="number"==typeof e?e:Hd++;this.ie=d||ka();this.Ja=a;this.Ad=b;this.he=c;delete this.sc;delete this.rc};Gd.prototype.tc=function(a){this.Ja=a};Gd.prototype.getMessage=function(){return this.Ad};var S=function(a){this.Gd=a};S.prototype.G=k;S.prototype.Ja=k;S.prototype.Y=k;S.prototype.Dc=k;var Id=function(a,b){this.name=a;this.value=b};Id.prototype.toString=function(){return this.name};var Jd=new Id("SEVERE",1E3),Kd=new Id("CONFIG",700);S.prototype.getParent=function(){return this.G};S.prototype.tc=function(a){this.Ja=a};var Ld=function(a){if(a.Ja)return a.Ja;if(a.G)return Ld(a.G);va("Root logger has no level set.");return k};
-S.prototype.log=function(a,b,c){if(a.value>=Ld(this).value){a=this.Od(a,b,c);b="log:"+a.getMessage();p.console&&(p.console.timeStamp?p.console.timeStamp(b):p.console.markTimeline&&p.console.markTimeline(b));p.msWriteProfilerMark&&p.msWriteProfilerMark(b);for(b=this;b;){var c=b,d=a;if(c.Dc)for(var e=0,f=i;f=c.Dc[e];e++)f(d);b=b.getParent()}}};
-S.prototype.Od=function(a,b,c){var d=new Gd(a,""+b,this.Gd);if(c){d.sc=c;var e;var f=arguments.callee.caller;try{var h;var l=aa("window.location.href");if(s(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};else{var o,r,v=m;try{o=c.lineNumber||c.me||"Not available"}catch(w){o="Not available",v=j}try{r=c.fileName||c.filename||c.sourceURL||l}catch(Va){r="Not available",v=j}h=v||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:o,
-fileName:r,stack:c.stack||"Not available"}:c}e="Message: "+sa(h.message)+'\nUrl: <a href="view-source:'+h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+sa(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+sa(Dd(f)+"-> ")}catch(R){e="Exception trying to expose exception! You win, we lose. "+R}d.rc=e}return d};
-var Md={},Nd=k,Od=function(a){Nd||(Nd=new S(""),Md[""]=Nd,Nd.tc(Kd));var b;if(!(b=Md[a])){b=new S(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Od(a.substr(0,c));if(!c.Y)c.Y={};c.Y[d]=b;b.G=c;Md[a]=b}return b};Od("goog.dom.SavedRange");var Pd=function(){};Pd.prototype.fc=function(){return m};Pd.prototype.F=function(){return K(B?this.getContainer():this.m())};Pd.prototype.Db=function(){return pc(this.F())};Pd.prototype.containsNode=function(a,b){return this.ua(Qd(Rd(a)),b)};var Sd=function(a,b){N.call(this,a,b,j)};x(Sd,N);var Td=function(a,b,c,d,e){var f;if(a){this.k=a;this.e=b;this.h=c;this.d=d;if(1==a.nodeType&&"BR"!=a.tagName)if(a=a.childNodes,b=a[b])this.k=b,this.e=0;else{if(a.length)this.k=z(a);f=j}if(1==c.nodeType)(this.h=c.childNodes[d])?this.d=0:this.h=c}Sd.call(this,e?this.h:this.k,e);if(f)try{this.next()}catch(h){h!=I&&g(h)}};x(Td,Sd);n=Td.prototype;n.k=k;n.h=k;n.e=0;n.d=0;n.m=function(){return this.k};n.w=function(){return this.h};n.xd=function(){return this.wb&&this.B==this.h&&(!this.d||1!=this.A)};
-n.next=function(){this.xd()&&g(I);return Td.g.next.call(this)};n.tb=function(){Td.g.tb.apply(this);xc(this.B,this.h)&&g(I)};var Ud=function(){};Ud.prototype.ua=function(a,b){var c=b&&!a.isCollapsed(),d=a.Ra();try{return c?0<=this.J(d,0,1)&&0>=this.J(d,1,0):0<=this.J(d,0,0)&&0>=this.J(d,1,1)}catch(e){return B||g(e),m}};Ud.prototype.containsNode=function(a,b){return this.ua(Rd(a),b)};Ud.prototype.La=function(){return new Td(this.m(),this.D(),this.w(),this.H())};var Vd=function(a){this.a=a};x(Vd,Ud);var Wd=function(a){var b=K(a).createRange();if(3==a.nodeType)b.setStart(a,0),b.setEnd(a,a.length);else if(T(a)){for(var c,d=a;(c=d.firstChild)&&T(c);)d=c;b.setStart(d,0);for(d=a;(c=d.lastChild)&&T(c);)d=c;b.setEnd(d,1==d.nodeType?d.childNodes.length:d.length)}else c=a.parentNode,a=wa(c.childNodes,a),b.setStart(c,a),b.setEnd(c,a+1);return b},Xd=function(a,b,c,d){var e=K(a).createRange();e.setStart(a,b);e.setEnd(c,d);return e};n=Vd.prototype;n.Ra=function(){return this.a};
-n.getContainer=function(){return this.a.commonAncestorContainer};n.m=function(){return this.a.startContainer};n.D=function(){return this.a.startOffset};n.w=function(){return this.a.endContainer};n.H=function(){return this.a.endOffset};n.J=function(a,b,c){return this.a.compareBoundaryPoints(1==c?1==b?p.Range.START_TO_START:p.Range.START_TO_END:1==b?p.Range.END_TO_START:p.Range.END_TO_END,a)};n.isCollapsed=function(){return this.a.collapsed};n.da=function(){return this.a.toString()};
-n.select=function(a){this.ib(pc(K(this.m())).getSelection(),a)};n.ib=function(a){a.removeAllRanges();a.addRange(this.a)};n.collapse=function(a){this.a.collapse(a)};var Yd=function(a){this.a=a};x(Yd,Vd);Yd.prototype.ib=function(a,b){var c=b?this.w():this.m(),d=b?this.H():this.D(),e=b?this.m():this.w(),f=b?this.D():this.H();a.collapse(c,d);(c!=e||d!=f)&&a.extend(e,f)};var Zd=function(a,b){this.a=a;this.ge=b};x(Zd,Ud);var $d=Od("goog.dom.browserrange.IeRange"),ae=function(a){var b=K(a).body.createTextRange();if(1==a.nodeType)b.moveToElementText(a),T(a)&&!a.childNodes.length&&b.collapse(m);else{for(var c=0,d=a;d=d.previousSibling;){var e=d.nodeType;if(3==e)c+=d.length;else if(1==e){b.moveToElementText(d);break}}d||b.moveToElementText(a.parentNode);b.collapse(!d);c&&b.move("character",c);b.moveEnd("character",a.length)}return b};n=Zd.prototype;n.ga=k;n.k=k;n.h=k;
-n.e=-1;n.d=-1;n.Ra=function(){return this.a};
-n.getContainer=function(){if(!this.ga){var a=this.a.text,b=this.a.duplicate(),c=a.replace(/ +$/,"");(c=a.length-c.length)&&b.moveEnd("character",-c);c=b.parentElement();b=b.htmlText.replace(/(\r\n|\r|\n)+/g," ").length;if(this.isCollapsed()&&0<b)return this.ga=c;for(;b>c.outerHTML.replace(/(\r\n|\r|\n)+/g," ").length;)c=c.parentNode;for(;1==c.childNodes.length&&c.innerText==(3==c.firstChild.nodeType?c.firstChild.nodeValue:c.firstChild.innerText)&&T(c.firstChild);)c=c.firstChild;0==a.length&&(c=be(this,
-c));this.ga=c}return this.ga};var be=function(a,b){for(var c=b.childNodes,d=0,e=c.length;d<e;d++){var f=c[d];if(T(f)){var h=ae(f),l=h.htmlText!=f.outerHTML;if(a.isCollapsed()&&l?0<=a.J(h,1,1)&&0>=a.J(h,1,0):a.a.inRange(h))return be(a,f)}}return b};n=Zd.prototype;n.m=function(){if(!this.k&&(this.k=ce(this,1),this.isCollapsed()))this.h=this.k;return this.k};n.D=function(){if(0>this.e&&(this.e=de(this,1),this.isCollapsed()))this.d=this.e;return this.e};
-n.w=function(){if(this.isCollapsed())return this.m();if(!this.h)this.h=ce(this,0);return this.h};n.H=function(){if(this.isCollapsed())return this.D();if(0>this.d&&(this.d=de(this,0),this.isCollapsed()))this.e=this.d;return this.d};n.J=function(a,b,c){return this.a.compareEndPoints((1==b?"Start":"End")+"To"+(1==c?"Start":"End"),a)};
-var ce=function(a,b,c){c=c||a.getContainer();if(!c||!c.firstChild)return c;for(var d=1==b,e=0,f=c.childNodes.length;e<f;e++){var h=d?e:f-e-1,l=c.childNodes[h],o;try{o=Rd(l)}catch(r){continue}var v=o.Ra();if(a.isCollapsed())if(T(l)){if(o.ua(a))return ce(a,b,l)}else{if(0==a.J(v,1,1)){a.e=a.d=h;break}}else{if(a.ua(o)){if(!T(l)){d?a.e=h:a.d=h+1;break}return ce(a,b,l)}if(0>a.J(v,1,0)&&0<a.J(v,0,1))return ce(a,b,l)}}return c},de=function(a,b){var c=1==b,d=c?a.m():a.w();if(1==d.nodeType){for(var d=d.childNodes,
-e=d.length,f=c?1:-1,h=c?0:e-1;0<=h&&h<e;h+=f){var l=d[h];if(!T(l)&&0==a.a.compareEndPoints((1==b?"Start":"End")+"To"+(1==b?"Start":"End"),Rd(l).Ra()))return c?h:h+1}return-1==h?0:h}e=a.a.duplicate();f=ae(d);e.setEndPoint(c?"EndToEnd":"StartToStart",f);e=e.text.length;return c?d.length-e:e};Zd.prototype.isCollapsed=function(){return 0==this.a.compareEndPoints("StartToEnd",this.a)};Zd.prototype.da=function(){return this.a.text};Zd.prototype.select=function(){this.a.select()};
-Zd.prototype.collapse=function(a){this.a.collapse(a);a?(this.h=this.k,this.d=this.e):(this.k=this.h,this.e=this.d)};var ee=function(a){this.a=a};x(ee,Vd);ee.prototype.ib=function(a){a.collapse(this.m(),this.D());(this.w()!=this.m()||this.H()!=this.D())&&a.extend(this.w(),this.H());0==a.rangeCount&&a.addRange(this.a)};var fe=function(a){this.a=a};x(fe,Vd);fe.prototype.J=function(a,b,c){return E("528")?fe.g.J.call(this,a,b,c):this.a.compareBoundaryPoints(1==c?1==b?p.Range.START_TO_START:p.Range.END_TO_START:1==b?p.Range.START_TO_END:p.Range.END_TO_END,a)};fe.prototype.ib=function(a,b){a.removeAllRanges();b?a.setBaseAndExtent(this.w(),this.H(),this.m(),this.D()):a.setBaseAndExtent(this.m(),this.D(),this.w(),this.H())};var Rd=function(a){if(B&&!nb(9)){var b=new Zd(ae(a),K(a));if(T(a)){for(var c,d=a;(c=d.firstChild)&&T(c);)d=c;b.k=d;b.e=0;for(d=a;(c=d.lastChild)&&T(c);)d=c;b.h=d;b.d=1==d.nodeType?d.childNodes.length:d.length;b.ga=a}else b.k=b.h=b.ga=a.parentNode,b.e=wa(b.ga.childNodes,a),b.d=b.e+1;a=b}else a=D?new fe(Wd(a)):C?new Yd(Wd(a)):$a?new ee(Wd(a)):new Vd(Wd(a));return a},T=function(a){var b;a:if(1!=a.nodeType)b=m;else{switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "STYLE":b=
-m;break a}b=j}return b||3==a.nodeType};var ge=function(){};x(ge,Pd);var Qd=function(a){var b=new ge;b.Ba=a;b.Va=m;return b};n=ge.prototype;n.Ba=k;n.k=k;n.e=k;n.h=k;n.d=k;n.Va=m;n.Ia=function(){return"text"};
-var U=function(a){var w;var b;if(!(b=a.Ba)){b=a.m();var c=a.D(),d=a.w(),e=a.H();if(B&&!nb(9)){var f=b,h=c,l=d,o=e,r=m;1==f.nodeType&&(h>f.childNodes.length&&$d.log(Jd,"Cannot have startOffset > startNode child count",i),h=f.childNodes[h],r=!h,f=h||f.lastChild||f,h=0);var v=ae(f);h&&v.move("character",h);f==l&&h==o?v.collapse(j):(r&&v.collapse(m),r=m,1==l.nodeType&&(o>l.childNodes.length&&$d.log(Jd,"Cannot have endOffset > endNode child count",i),w=(h=l.childNodes[o])||l.lastChild||l,l=w,o=0,r=!h),
-f=ae(l),f.collapse(!r),o&&f.moveEnd("character",o),v.setEndPoint("EndToEnd",f));o=new Zd(v,K(b));o.k=b;o.e=c;o.h=d;o.d=e;b=o}else b=D?new fe(Xd(b,c,d,e)):C?new Yd(Xd(b,c,d,e)):$a?new ee(Xd(b,c,d,e)):new Vd(Xd(b,c,d,e));b=a.Ba=b}return b};n=ge.prototype;n.getContainer=function(){return U(this).getContainer()};n.m=function(){return this.k||(this.k=U(this).m())};n.D=function(){return this.e!=k?this.e:this.e=U(this).D()};n.w=function(){return this.h||(this.h=U(this).w())};
-n.H=function(){return this.d!=k?this.d:this.d=U(this).H()};n.fc=function(){return this.Va};n.ua=function(a,b){var c=a.Ia();if("text"==c)return U(this).ua(U(a),b);return"control"==c?(c=he(a),(b?Aa:Ba)(c,function(a){return this.containsNode(a,b)},this)):m};n.isCollapsed=function(){return U(this).isCollapsed()};n.da=function(){return U(this).da()};n.La=function(){return new Td(this.m(),this.D(),this.w(),this.H())};n.select=function(){U(this).select(this.Va)};
-n.collapse=function(a){a=this.fc()?!a:a;this.Ba&&this.Ba.collapse(a);a?(this.h=this.k,this.d=this.e):(this.k=this.h,this.e=this.d);this.Va=m};var he=function(a){if(!a.Lb&&(a.Lb=[],a.a))for(var b=0;b<a.a.length;b++)a.Lb.push(a.a.item(b));return a.Lb};Od("goog.dom.MultiRange");var ie=function(){this.s=[];this.fe=M("error-text");H(window,"unload",this.sd,m,this);this.K=new ac(window.opener||window.parent,{errorList:t(this.td,this)});this.K.send("checkPage")};u("bidichecker.gui.app.ErrorPage",ie);ie.prototype.za=k;ie.prototype.sd=function(){0<this.s.length&&je(this)};ie.prototype.qd=function(a){Qd(Rd(this.oc)).select();a.preventDefault()};ie.prototype.td=function(a,b){b instanceof Array||g("Invalid data type in errorList message; expected Array.");ke(this,b.map(function(a){return new Q(a)}))};
-var le=function(a,b){if(!a)return k;var c='<span class="table-cell-ellipsize" style="'+(b?"width: "+b:"")+'">'+sa(a)+"</span>";return{v:a.toLowerCase(),f:c}},ke=function(a,b){a.s=b;for(var c=0<a.s.length,d=document.getElementsByClassName("show-on-errors"),e=0;e<d.length;e++)P(d[e],c);P(M("no-errors-container"),!c);if(c){c=new google.visualization.DataTable;c.addColumn("number","#");c.addColumn("string","Type");c.addColumn("number","Sev");c.addColumn("string","Location");c.addColumn("string","Text");
-for(d=0;d<a.s.length;d++)e=a.s[d],c.addRow([d+1,le(e.Ia()),Ad(e),le(e.locationDescription,"280px"),le(e.atText,"150px")]);a.oc=M("table-container");a.gb=new google.visualization.Table(a.oc);a.gb.draw(c,{height:"300px",allowHtml:j});google.visualization.events.addListener(a.gb,"select",t(a.rd,a));yc(M("error-count"),a.s.length+"");a.gb.setSelection([{row:0,column:k}]);me(a,a.s[0]);H(M("select-table"),"click",a.qd,m,a)}},me=function(a,b){je(a);a.za=b;a.za&&(a.K.send("highlightError",a.za),yc(M("error-text"),
-a.za.toString()))};ie.prototype.rd=function(){var a=this.gb.getSelection();0<a.length&&me(this,this.s[a[0].row])};var je=function(a){a.za&&a.K.send("unhighlightError",a.za)};var ne=function(a){a.setAttribute("role","dialog");a.oe="dialog"};var V=function(a){this.Bb=a;this.i=[]};x(V,sb);
-var oe=[],W=function(a,b,c,d,e){q(c)||(oe[0]=c,c=oe);for(var f=0;f<c.length;f++)a.i.push(H(b,c[f],d||a,e||m,a.Bb||a));return a},pe=function(a,b,c,d,e,f){if(q(c))for(var h=0;h<c.length;h++)pe(a,b,c[h],d,e,f);else a.i.push(Fb(b,c,d||a,e,f||a.Bb||a))},qe=function(a,b,c,d,e,f){if(q(c))for(var h=0;h<c.length;h++)qe(a,b,c[h],d,e,f);else{a:{d=d||a;f=f||a.Bb||a;e=!!e;if(b=Hb(b,c,e))for(c=0;c<b.length;c++)if(!b[c].ia&&b[c].sa==d&&b[c].capture==e&&b[c].Ua==f){b=b[c];break a}b=k}if(b)b=b.key,Ib(b),Ca(a.i,b)}return a};
-V.prototype.removeAll=function(){xa(this.i,Ib);this.i.length=0};V.prototype.r=function(){V.g.r.call(this);this.removeAll()};V.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};var re=function(){};x(re,sb);n=re.prototype;n.jc=j;n.Wa=k;n.xb=function(a){this.Wa=a};n.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};n.removeEventListener=function(a,b,c,d){Gb(this,a,b,c,d)};
-n.dispatchEvent=function(a){var b=a.type||a,c=G;if(b in c){if(s(a))a=new F(a,this);else if(a instanceof F)a.target=a.target||this;else{var d=a,a=new F(b,this);Na(a,d)}var d=1,e,c=c[b],b=j in c,f;if(b){e=[];for(f=this;f;f=f.Wa)e.push(f);f=c[j];f.L=f.n;for(var h=e.length-1;!a.ka&&0<=h&&f.L;h--)a.currentTarget=e[h],d&=Mb(f,e[h],a.type,j,a)&&a.Ha!=m}if(m in c)if(f=c[m],f.L=f.n,b)for(h=0;!a.ka&&h<e.length&&f.L;h++)a.currentTarget=e[h],d&=Mb(f,e[h],a.type,m,a)&&a.Ha!=m;else for(e=this;!a.ka&&e&&f.L;e=e.Wa)a.currentTarget=
-e,d&=Mb(f,e,a.type,m,a)&&a.Ha!=m;a=Boolean(d)}else a=j;return a};n.r=function(){re.g.r.call(this);Kb(this);this.Wa=k};var se=function(a,b,c){this.target=a;this.handle=b||a;this.vb=c||new Cc(NaN,NaN,NaN,NaN);this.l=K(a);this.z=new V(this);H(this.handle,["touchstart","mousedown"],this.gc,m,this)};x(se,re);var te=B||C&&E("1.9.3");n=se.prototype;n.clientX=0;n.clientY=0;n.screenX=0;n.screenY=0;n.cc=0;n.dc=0;n.qa=0;n.ra=0;n.ac=j;n.Z=m;n.bc=0;n.Nc=0;n.Mc=m;n.U=function(){return this.z};
-n.r=function(){se.g.r.call(this);Gb(this.handle,["touchstart","mousedown"],this.gc,m,this);this.z.t();delete this.target;delete this.handle;delete this.z};
-n.gc=function(a){var b="mousedown"==a.type;if(this.ac&&!this.Z&&(!b||(pb?0==a.I.button:"click"==a.type||a.I.button&xb[0])&&(!D||!Ua||!a.ctrlKey))){ue(a);if(0==this.bc)if(ve(this,a),this.Z)a.preventDefault();else return;else a.preventDefault();var b=this.l,c=b.documentElement,d=!te;W(this.z,b,["touchmove","mousemove"],this.Lc,d);W(this.z,b,["touchend","mouseup"],this.Ta,d);te?(c.setCapture(m),W(this.z,c,"losecapture",this.Ta)):W(this.z,pc(b),"blur",this.Ta);B&&this.Mc&&W(this.z,b,"dragstart",vb);this.Pc&&
-W(this.z,this.Pc,"scroll",this.Oc,d);this.clientX=this.cc=a.clientX;this.clientY=this.dc=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.qa=this.target.offsetLeft;this.ra=this.target.offsetTop;this.ub=zc(L(this.l));this.Nc=ka()}else this.dispatchEvent("earlycancel")};var ve=function(a,b){if(a.dispatchEvent(new we("start",a,b.clientX,b.clientY,b))!==m)a.Z=j};
-se.prototype.Ta=function(a,b){this.z.removeAll();te&&this.l.releaseCapture();var c=xe(this,this.qa),d=ye(this,this.ra);this.Z?(ue(a),this.Z=m,this.dispatchEvent(new we("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))):this.dispatchEvent("earlycancel");("touchend"==a.type||"touchcancel"==a.type)&&a.preventDefault()};
-var ue=function(a){var b=a.type;"touchstart"==b||"touchmove"==b?a.ta(a.I.targetTouches[0],a.currentTarget):("touchend"==b||"touchcancel"==b)&&a.ta(a.I.changedTouches[0],a.currentTarget)};
-se.prototype.Lc=function(a){if(this.ac){ue(a);var b=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.Z){var d=this.cc-this.clientX,e=this.dc-this.clientY;if(d*d+e*e>this.bc&&(ve(this,a),!this.Z)){this.Ta(a);return}}c=ze(this,b,c);b=c.x;c=c.y;this.Z&&this.dispatchEvent(new we("beforedrag",this,a.clientX,a.clientY,a,b,c))!==m&&(Ae(this,a,b,c),a.preventDefault())}};
-var ze=function(a,b,c){var d=zc(L(a.l)),b=b+(d.x-a.ub.x),c=c+(d.y-a.ub.y);a.ub=d;a.qa+=b;a.ra+=c;b=xe(a,a.qa);a=ye(a,a.ra);return new dc(b,a)};se.prototype.Oc=function(a){var b=ze(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Ae(this,a,b.x,b.y)};
-var Ae=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new we("drag",a,b.clientX,b.clientY,b,c,d))},xe=function(a,b){var c=a.vb,d=!isNaN(c.left)?c.left:k,c=!isNaN(c.width)?c.width:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))},ye=function(a,b){var c=a.vb,d=!isNaN(c.top)?c.top:k,c=!isNaN(c.height)?c.height:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))},we=function(a,b,c,d,e,f,h,l){F.call(this,a);this.clientX=c;this.clientY=
-d;this.je=e;this.left=f!==i?f:b.qa;this.top=h!==i?h:b.ra;this.le=b;this.ke=!!l};x(we,F);var Be=function(a){this.c=a;a=B?"focusout":"blur";this.Vc=H(this.c,B?"focusin":"focus",this,!B);this.Wc=H(this.c,a,this,!B)};x(Be,re);Be.prototype.handleEvent=function(a){var b=new wb(a.I);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.t()}};Be.prototype.r=function(){Be.g.r.call(this);Ib(this.Vc);Ib(this.Wc);delete this.c};var Ce=p.window;var De=function(){};(function(a){a.Cc=function(){return a.Pd||(a.Pd=new a)}})(De);De.prototype.Jd=0;De.Cc();var Fe=function(a){this.Ea=a||L();this.Kd=Ee};x(Fe,re);Fe.prototype.Id=De.Cc();var Ee=k;n=Fe.prototype;n.kb=k;n.P=m;n.c=k;n.Kd=k;n.Ic=k;n.G=k;n.Y=k;n.Ca=k;n.Jc=m;n.nb=function(){return this.kb||(this.kb=":"+(this.Id.Jd++).toString(36))};n.b=function(){return this.c};n.U=function(){return this.oa||(this.oa=new V(this))};n.getParent=function(){return this.G};n.xb=function(a){this.G&&this.G!=a&&g(Error("Method not supported"));Fe.g.xb.call(this,a)};n.p=function(){return this.Ea};
-n.o=function(){this.c=this.Ea.createElement("div")};n.Na=function(a){this.P&&g(Error("Component already rendered"));this.c||this.o();a?a.insertBefore(this.c,k):this.Ea.F().body.appendChild(this.c);(!this.G||this.G.P)&&this.na()};n.na=function(){this.P=j;Ge(this,function(a){!a.P&&a.b()&&a.na()})};n.fa=function(){Ge(this,function(a){a.P&&a.fa()});this.oa&&this.oa.removeAll();this.P=m};
-n.r=function(){Fe.g.r.call(this);this.P&&this.fa();this.oa&&(this.oa.t(),delete this.oa);Ge(this,function(a){a.t()});!this.Jc&&this.c&&vc(this.c);this.G=this.Ic=this.c=this.Ca=this.Y=k};n.$b=function(){return this.c};var Ge=function(a,b){a.Y&&xa(a.Y,b,i)};
-Fe.prototype.removeChild=function(a,b){if(a){var c=s(a)?a:a.nb(),a=this.Ca&&c?(c in this.Ca?this.Ca[c]:i)||k:k;if(c&&a){var d=this.Ca;c in d&&delete d[c];Ca(this.Y,a);b&&(a.fa(),a.c&&vc(a.c));c=a;c==k&&g(Error("Unable to set parent component"));c.G=k;Fe.g.xb.call(c,k)}}a||g(Error("Child is not in parent component"));return a};var He=function(a,b){Fe.call(this,b);this.Kc=!!a};x(He,Fe);n=He.prototype;n.sb=k;n.$a=m;n.u=k;n.q=k;n.R=k;n.Sa=function(){return"goog-modalpopup"};n.Ma=function(){return this.u};
-n.o=function(){He.g.o.call(this);var a=this.b();hc(a,this.Sa());a.tabIndex=0;P(a,m);if(this.Kc&&!this.q)this.q=this.p().o("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'}),this.q.className=this.Sa()+"-bg",P(this.q,m),Nc(this.q,0);if(!this.u)this.u=this.p().o("div",this.Sa()+"-bg"),P(this.u,m);if(!this.R)this.R=this.p().createElement("span"),P(this.R,m),this.R.tabIndex=0,this.R.style.position="absolute"};
-n.na=function(){y(!!this.u,"Background element must not be null.");if(this.q){var a=this.b();a.parentNode&&a.parentNode.insertBefore(this.q,a)}a=this.b();a.parentNode&&a.parentNode.insertBefore(this.u,a);He.g.na.call(this);a=this.b();a.parentNode&&a.parentNode.insertBefore(this.R,a.nextSibling);this.sb=new Be(this.p().F());W(this.U(),this.sb,"focusin",this.Gc)};n.fa=function(){this.Oa()&&this.T(m);ub(this.sb);He.g.fa.call(this);vc(this.q);vc(this.u);vc(this.R)};
-n.T=function(a){y(this.P,"ModalPopup must be rendered first.");a!=this.$a&&(a?this.Dd():this.Cd())};n.Dd=function(){if(this.dispatchEvent("beforeshow"))this.Eb(),this.Yb(),W(this.U(),this.p().Db(),"resize",this.Eb),Ie(this,j),this.focus(),this.$a=j,this.dispatchEvent("show")};n.Cd=function(){if(this.dispatchEvent("beforehide"))qe(this.U(),this.p().Db(),"resize",this.Eb),Ie(this,m),this.$a=m,this.dispatchEvent("hide")};var Ie=function(a,b){a.q&&P(a.q,b);a.u&&P(a.u,b);P(a.b(),b);P(a.R,b)};n=He.prototype;
-n.Oa=function(){return this.$a};n.focus=function(){this.yc()};n.Eb=function(){this.q&&P(this.q,m);this.u&&P(this.u,m);var a=this.p().F(),b=oc(pc(a)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);this.q&&(P(this.q,j),Kc(this.q,c,a));this.u&&(P(this.u,j),Kc(this.u,c,a))};
-n.Yb=function(){var a=this.p().F(),b=pc(a)||window;if("fixed"==Ec(this.b(),"position"))var c=a=0;else c=zc(this.p()),a=c.x,c=c.y;var d=Mc(this.b()),b=oc(b||window),a=Math.max(a+b.width/2-d.width/2,0),c=Math.max(c+b.height/2-d.height/2,0);Gc(this.b(),a,c);Gc(this.R,a,c)};n.Gc=function(a){if(a.target==this.R)a=this.yc,da(a)?this&&(a=t(a,this)):a&&"function"==typeof a.handleEvent?a=t(a.handleEvent,a):g(Error("Invalid listener argument")),Ce.setTimeout(a,0)};
-n.yc=function(){try{B&&this.p().F().body.focus(),this.b().focus()}catch(a){}};var X=function(a,b,c){He.call(this,b,c);this.Q=a||"modal-dialog";this.X=Je()};x(X,He);n=X.prototype;n.Tc=j;n.Ub=j;n.pb=j;n.Qc=j;n.qb=0.5;n.Fc="";n.Vb="";n.ja=k;n.Xb=m;n.ea=k;n.ob=k;n.Wb=k;n.Aa=k;n.rb=k;n.W=k;n.Sa=function(){return this.Q};var Ke=function(a){a.b()||a.Na()};X.prototype.$b=function(){Ke(this);return this.rb};X.prototype.Ma=function(){Ke(this);return X.g.Ma.call(this)};
-var Le=function(a){a.pb=m;if(a.P){var b=a.p(),c=a.Ma();b.removeNode(a.q);b.removeNode(c)}},Me=function(a,b){if(a.b()){var c=a.ea,d=a.Q+"-title-draggable";b?hc(c,d):ic(c,d)}if(b&&!a.ja)a.ja=new se(a.b(),a.ea),hc(a.ea,a.Q+"-title-draggable"),H(a.ja,"start",a.Xc,m,a);else if(!b&&a.ja)a.ja.t(),a.ja=k};n=X.prototype;
-n.o=function(){X.g.o.call(this);var a=this.b();y(a,"getElement() returns null");var b=this.p();this.ea=b.o("div",{className:this.Q+"-title",id:this.nb()},this.ob=b.o("span",this.Q+"-title-text",this.Fc),this.Aa=b.o("span",this.Q+"-title-close"));uc(a,this.ea,this.rb=b.o("div",this.Q+"-content"),this.W=b.o("div",this.Q+"-buttons"));this.Wb=this.ea.id;ne(a);a.setAttribute("aria-labelledby",this.Wb||"");if(this.Vb)this.rb.innerHTML=this.Vb;P(this.Aa,this.Ub);if(this.X)a=this.X,a.c=this.W,a.Na();P(this.W,
-!!this.X);this.qb=this.qb;this.b()&&(a=this.Ma())&&Nc(a,this.qb)};n.na=function(){X.g.na.call(this);W(this.U(),this,["show","hide"],this.Sc);Me(this,this.Qc);W(this.U(),this.Aa,"click",this.Rc);ne(this.b());""!==this.ob.id&&this.b().setAttribute("aria-labelledby",this.ob.id);this.pb||Le(this)};n.fa=function(){this.Oa()&&this.T(m);Me(this,m);X.g.fa.call(this)};n.T=function(a){a!=this.Oa()&&(this.P||this.Na(),X.g.T.call(this,a))};
-n.Sc=function(a){a.target==this&&(this.Oa()?(W(W(this.U(),this.b(),"keydown",this.Xa),this.b(),"keypress",this.Xa),this.dispatchEvent("aftershow"),W(this.U(),this.W,"click",this.ic)):(qe(qe(qe(this.U(),this.b(),"keydown",this.Xa),this.b(),"keypress",this.Xa),this.W,"click",this.ic),this.dispatchEvent("afterhide"),this.Xb&&this.t()))};
-n.focus=function(){X.g.focus.call(this);if(this.X){var a=this.X.Pa;if(a)for(var b=this.p().F(),c=this.W.getElementsByTagName("button"),d=0,e;e=c[d];d++)if(e.name==a){try{if(D||$a){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}}};
-n.Xc=function(){var a=this.p().F(),b=oc(pc(a)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Mc(this.b());this.ja.vb="fixed"==Ec(this.b(),"position")?new Cc(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height))||new Cc(NaN,NaN,NaN,NaN):new Cc(0,0,c-d.width,a-d.height)||new Cc(NaN,NaN,NaN,NaN)};n.Rc=function(){if(this.Ub){var a=this.X,b=a&&a.yb;b?(a=a.get(b),this.dispatchEvent(new Ne(b,a))&&this.T(m)):this.T(m)}};
-n.r=function(){this.W=this.Aa=k;X.g.r.call(this)};n.ic=function(a){a:{for(a=a.target;a!=k&&a!=this.W;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=k}if(a&&!a.disabled){var a=a.name,b=this.X.get(a);this.dispatchEvent(new Ne(a,b))&&this.T(m)}};
-n.Xa=function(a){var b=m,c=m,d=this.X,e=a.target;if("keydown"==a.type)if(this.Tc&&27==a.keyCode){var f=d&&d.yb,e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=j,b=d.get(f),b=this.dispatchEvent(new Ne(f,b))):e||(b=j)}else 9==a.keyCode&&a.shiftKey&&e==this.b()&&(c=j);else if(13==a.keyCode){if("BUTTON"==e.tagName)f=e.name;else if(d){var h=d.Pa,l;if(l=h)a:{l=d.c.getElementsByTagName("BUTTON");for(var o=0,r;r=l[o];o++)if(r.name==h||r.id==h){l=r;break a}l=k}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName)&&!e.disabled;
-l&&!l.disabled&&!e&&(f=h)}f&&d&&(c=j,b=this.dispatchEvent(new Ne(f,""+d.get(f))))}if(b||c)a.stopPropagation(),a.preventDefault();b&&this.T(m)};var Ne=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};x(Ne,F);var Oe=function(a){this.Ea=a||L();Zb.call(this)};x(Oe,Zb);n=Oe.prototype;n.Q="goog-buttonset";n.Pa=k;n.c=k;n.yb=k;n.set=function(a,b,c,d){Zb.prototype.set.call(this,a,b);if(c)this.Pa=a;if(d)this.yb=a;return this};var Y=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};
-Oe.prototype.Na=function(){if(this.c){this.c.innerHTML="";var a=L(this.c);Yb(this,function(b,c){var d=a.o("button",{name:c},b);if(c==this.Pa)d.className=this.Q+"-default";this.c.appendChild(d)},this)}};Oe.prototype.b=function(){return this.c};Oe.prototype.p=function(){return this.Ea};
-var Pe={key:"ok",caption:"OK"},Qe={key:"cancel",caption:"Cancel"},Re={key:"yes",caption:"Yes"},Se={key:"no",caption:"No"},Te={key:"save",caption:"Save"},Ue={key:"continue",caption:"Continue"},Je=function(){return Y(Y(new Oe,Pe,j),Qe,m,j)};"undefined"!=typeof document&&(Y(new Oe,Pe,j,j),Je(),Y(Y(new Oe,Re,j),Se,m,j),Y(Y(Y(new Oe,Re),Se,j),Qe,m,j),Y(Y(Y(new Oe,Ue),Te),Qe,j,j));var Ve=function(){};Ve.prototype.wc=function(){};var We=function(){var a=new X("bidichecker-dialog");m!=a.pb&&Le(a);a.T(j);var b=a.b();b.style.zIndex=1E4;Ke(a);a.Aa.innerHTML="&times;";a.Xb=j;var c=document.createElement("iframe"),d=a.$b();d.appendChild(c);this.Qa=c.contentWindow;var c=L(d),e=k;if(B)e=c.F().createStyleSheet(),Oc(e);else{var f=lc(c.l,"head")[0];f||(e=lc(c.l,"body")[0],f=c.o("head"),e.parentNode.insertBefore(f,e));e=c.o("style");Oc(e);c.appendChild(f,e)}this.Hc=e;f=K(b);if(e=c=B&&b.currentStyle)f=L(f),e=kc(f.l)&&"auto"!=c.width&&
-"auto"!=c.height&&!c.boxSizing;if(e)f=Qc(b,c.width,"width","pixelWidth"),b=Qc(b,c.height,"height","pixelHeight"),b=new J(f,b);else{c=new J(b.offsetWidth,b.offsetHeight);if(B)var f=Rc(b,"paddingLeft"),e=Rc(b,"paddingRight"),h=Rc(b,"paddingTop"),l=Rc(b,"paddingBottom"),f=new Bc(h,e,l,f);else f=O(b,"paddingLeft"),e=O(b,"paddingRight"),h=O(b,"paddingTop"),l=O(b,"paddingBottom"),f=new Bc(parseFloat(h),parseFloat(e),parseFloat(l),parseFloat(f));B?(e=Tc(b,"borderLeft"),h=Tc(b,"borderRight"),l=Tc(b,"borderTop"),
-b=Tc(b,"borderBottom"),b=new Bc(l,h,b,e)):(e=O(b,"borderLeftWidth"),h=O(b,"borderRightWidth"),l=O(b,"borderTopWidth"),b=O(b,"borderBottomWidth"),b=new Bc(parseFloat(l),parseFloat(h),parseFloat(b),parseFloat(e)));b=new J(c.width-b.left-f.left-f.right-b.right,c.height-b.top-f.top-f.bottom-b.bottom)}b=b.height;Ke(a);d.style.height=Fc(b-a.ea.offsetHeight,j);a.Yb();this.Zb=a};x(We,Ve);We.prototype.t=function(){this.Zb.t();var a=this.Hc;vc(a.ownerNode||a.owningElement||a)};
-We.prototype.wc=function(a){var b=this.Zb.b(),c=new dc(b.offsetLeft,b.offsetTop);Gc(b,c.x,c.y+a)};var Ye=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"));Xe(a);this.Qa=a};x(Ye,Ve);var Xe=function(a){setTimeout(function(){a.resizeTo(800,600)},1)};Ye.prototype.t=function(){try{this.Qa.close()}catch(a){}};var Ze=function(a){try{return new Ye(a)}catch(b){return new We}};var $e=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 l in h)l in b||(b[l]=h[l]);this.dd=a;this.Fb=b;this.Za=c;this.bb=d;this.Gb=e||k},af;n=$e.prototype;n.K=k;n.start=function(){var a=this.Za.Qa;this.K=new ac(a,{checkPage:t(this.gd,this),highlightError:t(this.kd,this),unhighlightError:t(this.pd,this),getOptions:t(this.jd,this),setOptions:t(this.md,this)});a.location=this.bb};n.t=function(){ub(this.K);delete this.K;ub(this.Za);delete this.Za};
-n.jd=function(){this.K.send("options",this.Fb)};n.md=function(a,b){this.Fb=Object(b)};n.gd=function(){var a;if(this.Gb)a=this.Gb,this.Gb=k;else{a=this.Fb;var b=[];-1!=a.severity&&b.push(bf(a.severity));a=this.dd.hb("rtl"==a.dir,k,b)}this.K.send("errorList",Nb(Bd(a)))};n.kd=function(a,b){var c=(new Q(Object(b))).xa();if(c){var c=c.xc(),d=window.scrollY;window.scrollTo(0,c.y-100);this.Za.wc(window.scrollY-d)}};n.pd=function(a,b){var c=(new Q(Object(b))).xa();c&&c.Bc()};var cf=function(a){this.lb=a};var Z=function(){};u("bidichecker.FilterFactory.ComposableFilter",Z);Z.prototype.Qd=function(a){return df(this,a)};Z.prototype.and=Z.prototype.Qd;Z.prototype.$d=function(){return ef(this)};Z.prototype.not=Z.prototype.$d;Z.prototype.ae=function(a){return ff(this,a)};Z.prototype.or=Z.prototype.ae;
-var xf=function(a){var b=a.opcode;switch(b){case "AND":return new gf(a);case "AT_TEXT":return new hf(a);case "AT_TEXT_REGEXP":return new jf(a);case "FOLLOWED_BY_TEXT":return new kf(a);case "FOLLOWED_BY_TEXT_REGEXP":return new lf(a);case "LOCATION_CLASS":return new mf(a);case "LOCATION_CLASS_REGEXP":return new nf(a);case "LOCATION_ID":return new of(a);case "LOCATION_ID_REGEXP":return new pf(a);case "LOCATION_XPATH":return new qf(a);case "NOT":return new rf(a);case "OR":return new sf(a);case "PRECEDED_BY_TEXT":return new tf(a);
-case "PRECEDED_BY_TEXT_REGEXP":return new uf(a);case "SEVERITY":return new vf(a);case "TYPE":return new wf(a);default:g("Unknown filter opcode: '"+b+"'")}},yf=function(a){if(!a)return k;a=Nb(a);return za(a,function(a){return xf(a)})},df=function(a,b){return new gf({filter1:a,filter2:b})};u("bidichecker.FilterFactory.and",df);u("bidichecker.FilterFactory.atText",function(a){return new hf({atText:a||""})});u("bidichecker.FilterFactory.atTextRegexp",function(a){return new jf({atTextRegexp:a||""})});
-u("bidichecker.FilterFactory.followedByText",function(a){return new kf({followedByText:a||""})});u("bidichecker.FilterFactory.followedByTextRegexp",function(a){return new lf({followedByTextRegexp:a||""})});u("bidichecker.FilterFactory.locationClass",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClass");return new mf({className:a})});
-u("bidichecker.FilterFactory.locationClassRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClassRegexp");return new nf({classRegexp:a})});u("bidichecker.FilterFactory.locationId",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationId");return new of({id:a})});u("bidichecker.FilterFactory.locationIdRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationIdRegexp");return new pf({idRegexp:a})});
-u("bidichecker.FilterFactory.locationXpath",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationXpath");return new qf({xpath:a})});var ef=function(a){return new rf({filter:a})};u("bidichecker.FilterFactory.not",ef);var ff=function(a,b){return new sf({filter1:a,filter2:b})};u("bidichecker.FilterFactory.or",ff);u("bidichecker.FilterFactory.precededByText",function(a){return new tf({precededByText:a||""})});
-u("bidichecker.FilterFactory.precededByTextRegexp",function(a){return new uf({precededByTextRegexp:a||""})});var bf=function(a){return new vf({severityThreshold:a})};u("bidichecker.FilterFactory.severityFrom",bf);u("bidichecker.FilterFactory.type",function(a){return new wf({type:a})});
-var zf=function(a,b){b in a||g("No '"+b+"' parameter found for '"+a.opcode+"' filter")},Af=function(a,b,c){zf(a,b);typeof a[b]!=c&&g("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected "+c)},Bf=function(a,b){Af(a,b,"string");return a[b]},Cf=function(a,b){zf(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+")$")},Df=function(a,b){Af(a,b,"object");var c=
-a[b];if(c instanceof Z)return c;if("string"==typeof c.opcode)return xf(c);g("Can't make a filter out of the '"+b+"' parameter of '"+a.opcode+"' filter")},gf=function(a){this.Mb=Df(a,"filter1");this.Nb=Df(a,"filter2")};x(gf,Z);gf.prototype.j=function(a,b){return this.Mb.j(a,b)&&this.Nb.j(a,b)};var hf=function(a){this.Sd=Bf(a,"atText")};x(hf,Z);hf.prototype.j=function(a){return this.Sd==(a.atText||"")};var jf=function(a){this.Rd=Cf(a,"atTextRegexp")};x(jf,Z);
-jf.prototype.j=function(a){return this.Rd.test(a.atText||"")};var kf=function(a){this.Yd=Bf(a,"followedByText")};x(kf,Z);kf.prototype.j=function(a){return this.Yd==(a.followedByText||"")};var lf=function(a){this.Xd=Cf(a,"followedByTextRegexp")};x(lf,Z);lf.prototype.j=function(a){return this.Xd.test(a.followedByText||"")};var mf=function(a){this.Ud=Bf(a,"className")};x(mf,Z);
-mf.prototype.j=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.Ud==e[f])return j;return m};var nf=function(a){this.Vd=Cf(a,"classRegexp")};x(nf,Z);nf.prototype.j=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.Vd.test(e[f]))return j;return m};var of=function(a){this.kb=Bf(a,"id")};x(of,Z);
-of.prototype.j=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.kb==d.id)return j;return m};var pf=function(a){this.Zd=Cf(a,"idRegexp")};x(pf,Z);pf.prototype.j=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.Zd.test(d.id))return j;return m};var qf=function(a){a=Bf(a,"xpath");this.Md=new cf(a)};x(qf,Z);
-qf.prototype.j=function(a,b){for(var c=0;c<b.length;++c){var d;a:{d=b[c];var e;e=this.Md;var f=d.ownerDocument,h=f._bidicheckerXpathMatcherCache_[e.lb];if(!h)try{f.evaluate||g("XPath not supported by this browser"),h=f.evaluate(e.lb,f,k,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,k),f._bidicheckerXpathMatcherCache_[e.lb]=h}catch(l){g("Error evaluating XPath expression "+e.lb+": "+l)}e=h;for(f=0;f<e.snapshotLength;++f)if(e.snapshotItem(f)==d){d=j;break a}d=m}if(d)return j}return m};
-var rf=function(a){this.yd=Df(a,"filter")};x(rf,Z);rf.prototype.j=function(a,b){return!this.yd.j(a,b)};var sf=function(a){this.Mb=Df(a,"filter1");this.Nb=Df(a,"filter2")};x(sf,Z);sf.prototype.j=function(a,b){return this.Mb.j(a,b)||this.Nb.j(a,b)};var tf=function(a){this.ce=Bf(a,"precededByText")};x(tf,Z);tf.prototype.j=function(a){return this.ce==(a.precededByText||"")};var uf=function(a){this.be=Cf(a,"precededByTextRegexp")};x(uf,Z);
-uf.prototype.j=function(a){return this.be.test(a.precededByText||"")};var vf=function(a){Af(a,"severityThreshold","number");this.ee=a.severityThreshold};x(vf,Z);vf.prototype.j=function(a){return this.ee<=Ad(a)};var wf=function(a){this.Ld=Bf(a,"type")};x(wf,Z);wf.prototype.j=function(a){return this.Ld==a.Ia()};var Ef=function(){this.va=[]};x(Ef,re);n=Ef.prototype;n.start=function(){this.dispatchEvent("StartFrames")};n.end=function(){this.dispatchEvent("EndFrames")};n.push=function(a){this.va.push(a);this.dispatchEvent("EnterFrame")};n.pop=function(){this.dispatchEvent("ExitFrame");this.va.pop()};n.zb=function(){return this.va};var Ff=function(a,b){this.$c=a;this.Zc=b||[];this.s=[]};Ff.prototype.ad=m;Ff.prototype.Jb=function(){return this.s};Ff.prototype.addError=function(a,b){var c=this.$c.zb().slice(0);b&&c.push(b);if(Ba(this.Zc,function(b){return!b.j(a,c)})){var d=Gf(c);""!=d&&(a.locationDescription=d);this.s.push(a);this.ad&&g(a.toString()+"\n")}};var Gf=function(a){var b=[];ya(a,function(a){b.push(pd(a))});return b.join(" in ")};var Hf=function(a){this.wa=new N(a);this.cd=a;this.S=[Pc(a)];this.pa=[];this.ha=[a];this.va=[]};x(Hf,re);Hf.prototype.N=k;Hf.prototype.go=function(){try{for(;;If(this));}catch(a){a!==I&&g(a),this.dispatchEvent("EndOfDom")}};
-var If=function(a){for(var b=a.wa.next();1==a.wa.A&&!wd(b);)a.wa.tb(),b=a.wa.next();a.N=b;if(1==a.wa.A){var b=a.N,c=Pc(b);a.pa.push(z(a.pa)||Jf(a,b,c));a.S.push(c);"IFRAME"==b.nodeName||"FRAME"==b.nodeName?a.va.push(b):vd(b)&&a.ha.push(b);a.dispatchEvent("StartTag")}else-1==a.wa.A?(a.dispatchEvent("EndTag"),a.S.pop(),a.pa.pop(),a.N==z(a.ha)&&a.ha.pop()):3==a.N.nodeType&&"TEXTAREA"!=a.N.parentNode.nodeName&&a.dispatchEvent("TextNode")};Hf.prototype.zb=function(){return this.va};
-var Jf=function(a,b,c){if(!b.dir&&!b.style.direction&&c==z(a.S)||b==a.cd)return m;for(a=b.firstChild;a;a=a.nextSibling)if(1==a.nodeType&&vd(a))return m;return j};var Kf=function(a){this.c=a};Kf.prototype.Ka=k;Kf.prototype.xc=function(){this.Ka=xd(this.c);return Jc(this.c)};Kf.prototype.Bc=function(){if(this.Ka)this.c.style.color=this.Ka.color,this.c.style.backgroundColor=this.Ka.backgroundColor,this.c.style.outline=this.Ka.outline};var Lf=function(a,b,c){this.ma=a;this.e=b;this.d=c;this.la=[]};Lf.prototype.xc=function(){if(0==this.la.length)for(var a=0;a<this.ma.length;++a)this.la.push(Mf(this.ma[a],0==a?this.e:0,a==this.ma.length-1?this.d:this.ma[a].length));else for(a=0;a<this.la.length;++a)wc(this.la[a],this.ma[a]);return Jc(this.la[0])};Lf.prototype.Bc=function(){if(0!=this.la.length)for(var a=0;a<this.ma.length;++a)wc(this.ma[a],this.la[a])};
-var Mf=function(a,b,c){var b=b||0,c=c||a.data.length,d=[];0<b&&d.push(a.data.substring(0,b));b=rc("span",{},a.data.substring(b,c));xd(b);d.push(b);c<a.data.length&&d.push(a.data.substring(c));b=rc("span",k,d);wc(b,a);return b};var Nf=function(a,b){this.Rb=a;this.B=b},Of=function(a){this.ya=[new Nf(0,a)];this.Ac=a};Of.prototype.append=function(a,b){if(this.Ac!=b)this.ya.push(new Nf(a,b)),this.Ac=b};var Pf=function(a,b){var c=Ha(a.ya,function(a,b){return a-b.Rb}||Ia,b);return 0<=c?c:-c-2};Of.prototype.Kb=function(a){return this.ya[Pf(this,a)].B};Of.prototype.xa=function(a,b){for(var c=Pf(this,a),d=Pf(this,a+b-1),e=[],f=c;f<=d;++f)e.push(this.ya[f].B);return new Lf(e,a-this.ya[c].Rb,a+b-this.ya[d].Rb)};
-var Qf=function(a,b,c,d,e){this.hc=b;this.ec=e;this.Uc=d;this.Pb=[a];this.Qb=a.length;this.Hb=new Of(c)};n=Qf.prototype;n.jb=k;n.Ya=function(){return Ba(this.Pb,function(a){return 0==a.length})};n.append=function(a,b){this.Hb.append(this.Qb,b);this.Qb+=a.length;this.Pb.push(a);this.jb=k};n.da=function(){if(this.jb===k)this.jb=this.Pb.join("");return this.jb};n.Kb=function(a){return this.Hb.Kb(a)};n.xa=function(a,b){return this.Hb.xa(a,b)};var Rf=new Qf("",m,k,k,m);var Sf=function(a){this.$=Rf;this.z=new V(this);W(this.z,a,"TextNode",this.Ab);pe(this.z,a,"EndOfDom",this.vd)};x(Sf,re);Sf.prototype.Ab=function(a){var a=a.target,b=a.N;z(a.S)==this.$.hc&&z(a.ha)==this.$.Uc&&z(a.pa)==this.$.ec?this.$.append(b.data,b):(this.$.Ya()||this.dispatchEvent("DirChunk"),this.$=new Qf(b.data,z(a.S),b,z(a.ha),z(a.pa)))};Sf.prototype.vd=function(){this.$.Ya()||this.dispatchEvent("DirChunk");this.dispatchEvent("EndOfChunks");this.z.removeAll()};var Tf=function(a,b){this.bd=!!b;this.Fa=new Ef;this.lc=new Ff(this.Fa,a)};Tf.prototype.O=k;Tf.prototype.Cb=k;Tf.prototype.Jb=function(){return this.lc.Jb()};
-var Yf=function(a,b,c){b.ownerDocument._bidicheckerXpathMatcherCache_={};var d,e=a.lc,f=a.Da;d=[];0!=c&&d.push(new Uf(-1==c,e));d.push(new Vf(f,e));2<=f&&d.push(new Wf(e));d.push(new Xf(e));a.O=new Hf(b);a.Cb=a.bd?new Sf(a.O):k;for(b=0;b<d.length;++b)d[b].eb(a);a.O.go();d=a.O.zb();for(b=0;b<d.length;++b){e=d[b];a.Fa.push(e);try{var h=(e.contentDocument||e.contentWindow.document).body;"IFRAME"==e.tagName&&(c=0);Yf(a,h,c)}catch(l){}a.Fa.pop()}};var Uf=function(a,b){this.pc=a;this.aa=b};Uf.prototype.eb=function(a){Fb(a.O,"StartTag",this)};Uf.prototype.handleEvent=function(a){a=a.target;this.pc!=z(a.S)&&this.aa.addError(new Q("Overall directionality not "+(this.pc?"RTL":"LTR"),1,new Kf(a.N)))};var Xf=function(a){this.aa=a;this.Ga=[]};n=Xf.prototype;n.ca=k;n.eb=function(a){var b=new V(this);W(b,a.O,"StartTag",this.Sb);W(b,a.O,"EndTag",this.zd);W(b,a.O,"TextNode",this.Ab);pe(b,a.O,"EndOfDom",b.removeAll,m,b)};n.Sb=function(a){var a=a.target,b=a.N;if(b.dir||b==z(a.ha))this.ca=k};n.zd=function(a){var a=a.target,b=a.N;if(b==z(a.ha))this.ca=k;else if(b.dir)z(a.S)==a.S[a.S.length-2]?this.ca=k:(this.ca=b,this.Ga=[])};
-n.Ab=function(a){var a=a.target,b=a.N;if(this.ca){this.Ga.push(b);var c=kd(b.data);if(c){var d=za(this.Ga,function(a){return a.data}).join(""),e=z(this.Ga).parentNode;this.aa.addError(Zf(this,d.substr(0,d.length-(b.data.length-c.text.length)),c.text.length,z(a.S),z(a.pa)),e);this.ca=k}else if(dd.test(b.data))this.ca=k}};var Zf=function(a,b,c,d,e){b=new Q("Declared "+(d?"LTR":"RTL")+" spillover to number",e?4:2,new Lf(a.Ga,0,c),b);a=qd(a.ca);b.precededByText=a;return b};var Wf=function(a){this.aa=a};Wf.prototype.eb=function(a){var b=new V(this);W(b,a.O,"StartTag",this.Sb);pe(b,a.O,"EndOfDom",b.removeAll,m,b)};
-Wf.prototype.Sb=function(a){a=a.target.N;a.title&&$f(this,a,a.title,"title text");var b=a.nodeName;"INPUT"==b?a.type.match(/^(text|search)$/)?$f(this,a,a.value,"input value"):"image"==a.type?$f(this,a,a.alt,"alt text"):a.type.match(/^(button|reset|submit)$/)?$f(this,a,a.value,"button label"):"file"==a.type&&Pc(a)&&this.aa.addError(new Q("File input not LTR",2,new Kf(a)),a):"IMG"==b?$f(this,a,a.alt,"alt text"):"TEXTAREA"==b&&$f(this,a,a.value,"textarea value")};
-var $f=function(a,b,c,d){var e=Pc(b),f=!!hd(c).length,h=!!gd(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||Pc(b)!=Pc(b.parentNode)?4:id(c,0)||jd(c,c.length)?2:3,a.aa.addError(new Q(e,d,new Kf(b),c),b))};var Vf=function(a,b){this.Da=a;this.aa=b};Vf.prototype.eb=function(a){var b=new V(this);W(b,a.Cb,"DirChunk",this.Nd);pe(b,a.Cb,"EndOfChunks",b.removeAll,m,b)};Vf.prototype.Nd=function(a){var b=this,c=a.target.$;c.hc?(a=hd(c.da()),xa(a,function(a){ad.exec(a.text)||ag(b,c,a,"Undeclared LTR text")})):(a=2<=this.Da?gd(c.da()):fd(c.da()),xa(a,function(a){bd.exec(a.text)||ag(b,c,a,"Undeclared RTL text")}))};
-var ag=function(a,b,c,d){var e=b.ec?4:3,f=b.xa(c.index,c.text.length),d=new Q(d,e,f,c.text),e=b.da();if(f=jd(e,c.index))3==Ad(d)&&(d.severity=2),d.precededByText=f.text;if(e=id(e,c.index+c.text.length))3==Ad(d)&&(d.severity=2),d.followedByText=e.text;b=b.Kb(c.index).parentNode;a.aa.addError(d,b)};var bg=function(a,b){Tf.call(this,b,j);this.Da=a};x(bg,Tf);var cg=function(a){this.ud=a};u("bidichecker.REVISION_1",new cg(1));var dg=new cg(2);u("bidichecker.REVISION_2",dg);u("bidichecker.LATEST",dg);var $=function(a){this.Da=a;this.s=[]};u("bidichecker.BidiChecker",$);u("bidichecker.instance",k);$.prototype.bb="https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html";$.prototype.hb=function(a,b,c){a=a?-1:1;b=b||top.document.body;c=c||[];zd=[];yd=0;c=new bg(this.Da.ud,c);c.Fa.start();Yf(c,b,a);c.Fa.end();this.s=c.Jb();return Ea(this.s)};
-$.prototype.checkPage=$.prototype.hb;$.prototype.Td=function(a,b,c){c=(c=yf(c))||[];a=this.hb(a,b,c);return Bd(a)};$.prototype.checkPageToJson=$.prototype.Td;$.prototype.Ec=function(a){this.bb=a};$.prototype.setGuiAppUrl=$.prototype.Ec;$.prototype.de=function(a){0!=this.s.length&&eg(this,this.s,a)};$.prototype.runGui=$.prototype.de;
-var eg=function(a,b,c){if(B)if(E("8"))c=j;else{c=new We;c.Qa.document.write("Sorry, bidichecker GUI is not supported in Internet Explorer before version 8.");return}c=c?new We:Ze(k);a=new $e(a,{},c,a.bb,b);ub(af);af=a;a.start()};u("bidichecker.runBookmarkletGui",function(a,b,c){var d=new $(dg);B?(b&&b.close(),b=new We):b=Ze(b);a=new $e(d,a,b,c||"https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html");ub(af);af=a;a.start()});
-var fg=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=Qb(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)};u("bidichecker.generateBookmarklet",fg);u("bidichecker.checkPage",function(a,b,c){return(new $(dg)).hb(a,b,c)});u("bidichecker.runGui",function(a,b,c){var d=new $(dg);c&&d.Ec(c);eg(d,a,b)});var gg=function(){this.V=M("severity");H(this.V,"change",this.nd,m,this);H(document,"change",this.hd,m,this);H(M("show-bookmarklet-help"),"click",this.od,m,this);this.nc=M("bookmarklet");H(this.nc,"click",this.ed,m,this);H(M("run"),"click",this.fd,m,this);this.K=new ac(window.opener||window.parent,{options:t(this.ld,this)});this.K.send("getOptions")};u("bidichecker.gui.app.OptionsPage",gg);
-var hg=function(a){for(var a=L().F().getElementsByName(a),b=0;b<a.length;b++){var c=a[b];if(c.checked)return c.value}return k},ig=function(a,b,c){for(var a=a.F().getElementsByName(b),d=m,e=0;e<a.length;e++){var f=a[e];if(f.value==c){d=f.checked=j;break}}d||g("No radio button with name "+b+" and value "+c)};n=gg.prototype;n.fd=function(){this.K.send("setOptions",jg(this));window.location="errorpage.html"};
-n.ld=function(a,b){var c=Object(b),d=c.severity;this.V.value=-1!=d?d:4;this.V.zc=this.V.value;ig(L(),"severity-filtering",-1!=d?"on":"off");ig(L(),"dir",c.dir);kg(this)};n.nd=function(a){var b=ta(this.V.value);1<=b&&4>=b?(this.V.zc=b,kg(this)):this.V.value=this.V.zc;a.stopPropagation()};n.hd=function(){kg(this)};
-n.od=function(a){alert('You can add a button (a "bookmarklet") to your browser to run BidiChecker on any web page, using the current BidiChecker settings. To do this, just drag the link labeled BidiChecker to your browser\'s bookmarks toolbar. In Google Chrome, press Ctrl-Shift-B to show the bookmarks toolbar.');a.preventDefault()};n.ed=function(a){a.preventDefault()};
-var kg=function(a){var b="on"==hg("severity-filtering");M("severity").disabled=!b;a.nc.href=fg(jg(a))},jg=function(a){var b={},c="on"==hg("severity-filtering");b.severity=c?ta(a.V.value):-1;b.dir=hg("dir");return b};
+var j=void 0,k=!0,m=null,p=!1,q,r=this,aa=function(a){a=a.split(".");for(var b=r,c;c=a.shift();)if(b[c]!=m)b=b[c];else return m;return b},ba=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},ca=function(a){return"array"==ba(a)},da=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length},t=function(a){return"string"==typeof a},ea=function(a){return"function"==ba(a)},fa=function(a){var b=typeof a;return"object"==b&&a!=m||"function"==b},ia=function(a){return a[ga]||
+(a[ga]=++ha)},ga="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ha=0,ja=function(a,b,c){return a.call.apply(a.bind,arguments)},ka=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")?
+ja:ka;return u.apply(m,arguments)},la=Date.now||function(){return+new Date},w=function(a,b){var c=a.split("."),d=r;!(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]={}},x=function(a,b){function c(){}c.prototype=b.prototype;a.d=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(m,c)}return u(this,a)};var ma=function(a){Error.captureStackTrace?Error.captureStackTrace(this,ma):this.stack=Error().stack||"";a&&(this.message=String(a))};x(ma,Error);ma.prototype.name="CustomError";var na=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},ta=function(a){if(!oa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(pa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(qa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ra,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(sa,"&quot;"));return a},pa=/&/g,qa=/</g,ra=/>/g,sa=/\"/g,oa=/[&<>\"]/,ua=function(a){var b=Number(a);return 0==b&&/^[\s\xa0]*$/.test(a)?NaN:b};var va=function(a,b){b.unshift(a);ma.call(this,na.apply(m,b));b.shift()};x(va,ma);va.prototype.name="AssertionError";
+var wa=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 va(""+e,f||[]))},z=function(a,b,c){a||wa("",m,b,Array.prototype.slice.call(arguments,2))},xa=function(a,b){g(new va("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))},ya=function(a,b,c){fa(a)||wa("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var A=function(a){return a[a.length-1]},B=Array.prototype,za=B.indexOf?function(a,b,c){z(a.length!=m);return B.indexOf.call(a,b,c)}:function(a,b,c){c=c==m?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},Aa=B.forEach?function(a,b,c){z(a.length!=m);B.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)},Ba=B.filter?function(a,b,c){z(a.length!=m);
+return B.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=t(a)?a.split(""):a,l=0;l<d;l++)if(l in h){var n=h[l];b.call(c,n,l,a)&&(e[f++]=n)}return e},Ca=B.map?function(a,b,c){z(a.length!=m);return B.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},Da=B.some?function(a,b,c){z(a.length!=m);return B.some.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 k;return p},Ea=B.every?function(a,b,c){z(a.length!=m);return B.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 p;return k},Fa=function(a,b){var c=za(a,b);0<=c&&(z(a.length!=m),B.splice.call(a,c,1))},Ga=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[]},Ha=function(a,b,c){z(a.length!=m);return 2>=arguments.length?B.slice.call(a,b):B.slice.call(a,b,c)},Ia=
+function(a,b){return a>b?1:a<b?-1:0};var Ja=function(a,b){for(var c in a)b.call(j,a[c],c,a)},Ka=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},La=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Ma="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Na=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<Ma.length;f++)c=Ma[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Oa=function(a){var b=arguments.length;
+if(1==b&&ca(arguments[0]))return Oa.apply(m,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=k;return c};var Pa,Qa,Ra,Sa,Ta,Ua=function(){return r.navigator?r.navigator.userAgent:m},Va=function(){return r.navigator};Sa=Ra=Qa=Pa=p;var Wa;if(Wa=Ua()){var Xa=Va();Pa=0==Wa.indexOf("Opera");Qa=!Pa&&-1!=Wa.indexOf("MSIE");Ra=!Pa&&-1!=Wa.indexOf("WebKit");Sa=!Pa&&!Ra&&"Gecko"==Xa.product}var Ya=Pa,C=Qa,D=Sa,E=Ra,$a=Va();Ta=-1!=($a&&$a.platform||"").indexOf("Mac");var ab=!!Va()&&-1!=(Va().appVersion||"").indexOf("X11"),bb=function(){var a=r.document;return a?a.documentMode:j},cb;
+a:{var db="",eb;if(Ya&&r.opera)var fb=r.opera.version,db="function"==typeof fb?fb():fb;else if(D?eb=/rv\:([^\);]+)(\)|;)/:C?eb=/MSIE\s+([^\);]+)(\)|;)/:E&&(eb=/WebKit\/(\S+)/),eb)var gb=eb.exec(Ua()),db=gb?gb[1]:"";if(C){var hb=bb();if(hb>parseFloat(db)){cb=String(hb);break a}}cb=db}
+var ib=cb,jb={},F=function(a){var b;if(!(b=jb[a])){b=0;for(var c=String(ib).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]||"",l=d[f]||"",n=RegExp("(\\d*)(\\D*)","g"),s=RegExp("(\\d*)(\\D*)","g");do{var v=n.exec(h)||["","",""],y=s.exec(l)||["","",""];if(0==v[0].length&&0==y[0].length)break;b=((0==v[1].length?0:parseInt(v[1],10))<(0==y[1].length?0:parseInt(y[1],10))?-1:(0==v[1].length?
+0:parseInt(v[1],10))>(0==y[1].length?0:parseInt(y[1],10))?1:0)||((0==v[2].length)<(0==y[2].length)?-1:(0==v[2].length)>(0==y[2].length)?1:0)||(v[2]<y[2]?-1:v[2]>y[2]?1:0)}while(0==b)}b=jb[a]=0<=b}return b},lb=function(a){return C&&kb>=a},mb=r.document,kb=!mb||!C?j:bb()||("CSS1Compat"==mb.compatMode?parseInt(ib,10):5);var nb=function(a){nb[" "](a);return a};nb[" "]=function(){};var ob=!C||lb(9),pb=!C||lb(9),qb=C&&!F("9");!E||F("528");D&&F("1.9b")||C&&F("8")||Ya&&F("9.5")||E&&F("528");D&&!F("8")||C&&F("9");var rb=function(){};rb.prototype.Kb=p;rb.prototype.G=function(){this.Kb||(this.Kb=k,this.m())};var sb=function(a,b){a.rb||(a.rb=[]);a.rb.push(b)};rb.prototype.m=function(){this.rb&&tb.apply(m,this.rb);if(this.Jc)for(;this.Jc.length;)this.Jc.shift()()};var G=function(a){a&&"function"==typeof a.G&&a.G()},tb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?tb.apply(m,d):G(d)}};var ub=function(a,b){this.type=a;this.currentTarget=this.target=b};q=ub.prototype;q.m=function(){};q.G=function(){};q.ia=p;q.defaultPrevented=p;q.lb=k;q.stopPropagation=function(){this.ia=k};q.preventDefault=function(){this.defaultPrevented=k;this.lb=p};var vb=function(a){a.preventDefault()};var wb=function(a,b){a&&this.xa(a,b)};x(wb,ub);var xb=[1,4,2];q=wb.prototype;q.target=m;q.relatedTarget=m;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=p;q.altKey=p;q.shiftKey=p;q.metaKey=p;q.M=m;
+q.xa=function(a,b){var c=this.type=a.type;ub.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(D){var e;a:{try{nb(d.nodeName);e=k;break a}catch(f){}e=p}e||(d=m)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=E||a.offsetX!==j?a.offsetX:a.layerX;this.offsetY=E||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.M=a;a.defaultPrevented&&this.preventDefault();delete this.ia};q.stopPropagation=function(){wb.d.stopPropagation.call(this);this.M.stopPropagation?this.M.stopPropagation():this.M.cancelBubble=k};
+q.preventDefault=function(){wb.d.preventDefault.call(this);var a=this.M;if(a.preventDefault)a.preventDefault();else if(a.returnValue=p,qb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};q.m=function(){};var yb=function(){},zb=0;q=yb.prototype;q.key=0;q.ha=p;q.Wb=p;q.xa=function(a,b,c,d,e,f){ea(a)?this.xc=k:a&&a.handleEvent&&ea(a.handleEvent)?this.xc=p:g(Error("Invalid listener argument"));this.wa=a;this.rc=b;this.src=c;this.type=d;this.capture=!!e;this.cb=f;this.Wb=p;this.key=++zb;this.ha=p};q.handleEvent=function(a){return this.xc?this.wa.call(this.cb||this.src,a):this.wa.handleEvent.call(this.wa,a)};var Ab={},H={},Bb={},Cb={},I=function(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;f<b.length;f++)I(a,b[f],c,d,e);return m}d=!!d;var h=H;b in h||(h[b]={r:0,K:0});h=h[b];d in h||(h[d]={r:0,K:0},h.r++);var h=h[d],l=ia(a),n;h.K++;if(h[l]){n=h[l];for(f=0;f<n.length;f++)if(h=n[f],h.wa==c&&h.cb==e){if(h.ha)break;return n[f].key}}else n=h[l]=[],h.r++;var s=Db,v=pb?function(a){return s.call(v.src,v.key,a)}:function(a){a=s.call(v.src,v.key,a);if(!a)return a},f=v;f.src=a;h=new yb;h.xa(c,f,a,b,d,e);c=h.key;f.key=
+c;n.push(h);Ab[c]=h;Bb[l]||(Bb[l]=[]);Bb[l].push(h);a.addEventListener?(a==r||!a.qc)&&a.addEventListener(b,f,d):a.attachEvent(b in Cb?Cb[b]:Cb[b]="on"+b,f);return c}g(Error("Invalid event type"))},Eb=function(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)Eb(a,b[f],c,d,e);return m}a=I(a,b,c,d,e);Ab[a].Wb=k;return a},Fb=function(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)Fb(a,b[f],c,d,e);else if(d=!!d,a=Gb(a,b,d))for(f=0;f<a.length;f++)if(a[f].wa==c&&a[f].capture==d&&a[f].cb==e){Hb(a[f].key);
+break}},Hb=function(a){if(!Ab[a])return p;var b=Ab[a];if(b.ha)return p;var c=b.src,d=b.type,e=b.rc,f=b.capture;c.removeEventListener?(c==r||!c.qc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in Cb?Cb[d]:Cb[d]="on"+d,e);c=ia(c);Bb[c]&&(e=Bb[c],Fa(e,b),0==e.length&&delete Bb[c]);b.ha=k;if(b=H[d][f][c])b.vc=k,Ib(d,f,c,b);delete Ab[a];return k},Ib=function(a,b,c,d){if(!d.kb&&d.vc){for(var e=0,f=0;e<d.length;e++)d[e].ha?d[e].rc.src=m:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.vc=p;0==f&&(delete H[a][b][c],
+H[a][b].r--,0==H[a][b].r&&(delete H[a][b],H[a].r--),0==H[a].r&&delete H[a])}},Gb=function(a,b,c){var d=H;return b in d&&(d=d[b],c in d&&(d=d[c],a=ia(a),d[a]))?d[a]:m},Kb=function(a,b,c,d,e){var f=1;b=ia(b);if(a[b]){a.K--;a=a[b];a.kb?a.kb++:a.kb=1;try{for(var h=a.length,l=0;l<h;l++){var n=a[l];n&&!n.ha&&(f&=Jb(n,e)!==p)}}finally{a.kb--,Ib(c,d,b,a)}}return Boolean(f)},Jb=function(a,b){a.Wb&&Hb(a.key);return a.handleEvent(b)},Db=function(a,b){if(!Ab[a])return k;var c=Ab[a],d=c.type,e=H;if(!(d in e))return k;
+var e=e[d],f,h;if(!pb){f=b||aa("window.event");var l=k in e,n=p in e;if(l){if(0>f.keyCode||f.returnValue!=j)return k;a:{var s=p;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(v){s=k}if(s||f.returnValue==j)f.returnValue=k}}s=new wb;s.xa(f,this);f=k;try{if(l){for(var y=[],Za=s.currentTarget;Za;Za=Za.parentNode)y.push(Za);h=e[k];h.K=h.r;for(var V=y.length-1;!s.ia&&0<=V&&h.K;V--)s.currentTarget=y[V],f&=Kb(h,y[V],d,k,s);if(n){h=e[p];h.K=h.r;for(V=0;!s.ia&&V<y.length&&h.K;V++)s.currentTarget=y[V],f&=Kb(h,
+y[V],d,p,s)}}else f=Jb(c,s)}finally{y&&(y.length=0)}return f}d=new wb(b,this);return f=Jb(c,d)};var Lb=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))},Ob=function(a){var b=[];Mb(new Nb,a,b);return b.join("")},Nb=function(){this.sb=j},Mb=function(a,b,c){switch(typeof b){case "string":Pb(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==m){c.push("null");break}if(ca(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],Mb(a,a.sb?a.sb.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),Pb(f,c),c.push(":"),Mb(a,a.sb?a.sb.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:g(Error("Unknown type: "+
+typeof b))}},Qb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Rb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Pb=function(a,b){b.push('"',a.replace(Rb,function(a){if(a in Qb)return Qb[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Qb[a]=e+b.toString(16)}),'"')};var J="StopIteration"in r?r.StopIteration:Error("StopIteration"),Sb=function(){};Sb.prototype.next=function(){g(J)};Sb.prototype.Qa=function(){return this};var Tb=function(a){if(a instanceof Sb)return a;if("function"==typeof a.Qa)return a.Qa(p);if(da(a)){var b=0,c=new Sb;c.next=function(){for(;;){b>=a.length&&g(J);if(b in a)return a[b++];b++}};return c}g(Error("Not implemented"))};var Ub=function(a){if("function"==typeof a.eb)return a.eb();if(t(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ka(a)};var Vb=function(a,b){this.la={};this.i=[];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 Vb?(c=a.Db(),d=a.eb()):(c=La(a),d=Ka(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};q=Vb.prototype;q.r=0;q.Mb=0;q.eb=function(){Wb(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.la[this.i[b]]);return a};q.Db=function(){Wb(this);return this.i.concat()};q.gb=function(){return 0==this.r};
+var Wb=function(a){if(a.r!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Object.prototype.hasOwnProperty.call(a.la,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.r!=a.i.length){for(var e={},c=b=0;b<a.i.length;)d=a.i[b],Object.prototype.hasOwnProperty.call(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};Vb.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.la,a)?this.la[a]:b};
+Vb.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.la,a)||(this.r++,this.i.push(a),this.Mb++);this.la[a]=b};Vb.prototype.Qa=function(a){Wb(this);var b=0,c=this.i,d=this.la,e=this.Mb,f=this,h=new Sb;h.next=function(){for(;;){e!=f.Mb&&g(Error("The map has changed since the iterator was created"));b>=c.length&&g(J);var h=c[b++];return a?h:d[h]}};return h};var Xb=function(a,b){this.Kd=a;this.yc=b;this.Id=I(window,"message",this.Hd,p,this)};Xb.prototype.send=function(a,b){this.Kd.postMessage(Ob({type:a,data:b}),"*")};Xb.prototype.G=function(){Hb(this.Id)};Xb.prototype.Hd=function(a){var b=Lb(a.M.data);a=String(b.type);b=b.data;this.yc.hasOwnProperty(a)||g("Unknown message type received by CommChannel: "+a);(0,this.yc[a])(a,b)};var Yb=function(a,b){a!=m&&this.append.apply(this,arguments)};Yb.prototype.Da="";Yb.prototype.set=function(a){this.Da=""+a};Yb.prototype.append=function(a,b,c){this.Da+=a;if(b!=m)for(var d=1;d<arguments.length;d++)this.Da+=arguments[d];return this};Yb.prototype.toString=function(){return this.Da};var Zb=function(a,b){this.x=a!==j?a:0;this.y=b!==j?b:0};Zb.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var K=function(a,b){this.width=a;this.height=b};K.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};K.prototype.gb=function(){return!(this.width*this.height)};K.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};K.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var $b,ac=!C||lb(9),bc=!D&&!C||C&&lb(9)||D&&F("1.9.1");C&&F("9");var cc=function(a){a=a.className;return t(a)&&a.match(/\S+/g)||[]},dc=function(a,b){for(var c=cc(a),d=Ha(arguments,1),e=c.length+d.length,f=c,h=0;h<d.length;h++)0<=za(f,d[h])||f.push(d[h]);a.className=c.join(" ");return c.length==e},ec=function(a,b){var c=cc(a),d=Ha(arguments,1),c=Ba(c,function(a){return!(0<=za(d,a))});a.className=c.join(" ")};var M=function(a){return a?new fc(L(a)):$b||($b=new fc)},gc=function(a){return t(a)?document.getElementById(a):a},hc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},jc=function(a){a=a.document;a=ic(a)?a.documentElement:a.body;return new K(a.clientWidth,a.clientHeight)},kc=function(a){return a?a.parentWindow||a.defaultView:window},
+mc=function(a,b,c){return lc(document,arguments)},lc=function(a,b){var c=b[0],d=b[1];if(!ac&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ta(d.name),'"');if(d.type){c.push(' type="',ta(d.type),'"');var e={};Na(e,d);delete e.type;d=e}c.push(">");c=c.join("")}var f=a.createElement(c);d&&(t(d)?f.className=d:ca(d)?dc.apply(m,[f].concat(d)):Ja(d,function(a,b){"style"==b?f.style.cssText=a:"class"==b?f.className=a:"for"==b?f.htmlFor=a:b in hc?f.setAttribute(hc[b],a):0==b.lastIndexOf("aria-",0)||
+0==b.lastIndexOf("data-",0)?f.setAttribute(b,a):f[b]=a}));2<b.length&&nc(a,f,b,2);return f},nc=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(da(f)&&!(fa(f)&&0<f.nodeType)){var h=Aa,l;a:{if((l=f)&&"number"==typeof l.length){if(fa(l)){l="function"==typeof l.item||"string"==typeof l.item;break a}if(ea(l)){l="function"==typeof l.item;break a}}l=p}h(l?Ga(f):f,e)}else e(f)}},ic=function(a){return"CSS1Compat"==a.compatMode},oc=function(a,
+b){nc(L(a),a,arguments,1)},pc=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):m},qc=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},rc=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},L=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},sc=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&
+3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{for(var c;c=a.firstChild;)a.removeChild(c);a.appendChild(L(a).createTextNode(b))}},fc=function(a){this.l=a||r.document||document};fc.prototype.n=M;fc.prototype.D=function(){return this.l};fc.prototype.c=function(a){return t(a)?this.l.getElementById(a):a};
+var tc=function(a,b){var c;c=a.l;var d=b&&"*"!=b?b.toUpperCase():"";c=c.querySelectorAll&&c.querySelector&&d?c.querySelectorAll(d+""):c.getElementsByTagName(d||"*");return c};fc.prototype.o=function(a,b,c){return lc(this.l,arguments)};fc.prototype.createElement=function(a){return this.l.createElement(a)};fc.prototype.createTextNode=function(a){return this.l.createTextNode(a)};fc.prototype.Ib=function(){return this.l.parentWindow||this.l.defaultView};
+var uc=function(a){var b=a.l;a=!E&&ic(b)?b.documentElement:b.body;b=b.parentWindow||b.defaultView;return new Zb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};q=fc.prototype;q.appendChild=function(a,b){a.appendChild(b)};q.append=oc;q.removeNode=pc;q.Bc=function(a){return bc&&a.children!=j?a.children:Ba(a.childNodes,function(a){return 1==a.nodeType})};q.contains=rc;var N=function(a,b,c,d,e){this.B=!!b;a&&vc(this,a,d);this.depth=e!=j?e:this.z||0;this.B&&(this.depth*=-1);this.gd=!c};x(N,Sb);N.prototype.A=m;N.prototype.z=0;N.prototype.Fb=p;var vc=function(a,b,c){if(a.A=b)a.z="number"==typeof c?c:1!=a.A.nodeType?0:a.B?-1:1};N.prototype.Ab=function(){var a=this.B?-1:1;this.z==a&&(this.z=-1*a,this.depth+=this.z*(this.B?-1:1))};
+N.prototype.next=function(){var a;if(this.Fb){(!this.A||this.gd&&0==this.depth)&&g(J);a=this.A;var b=this.B?-1:1;if(this.z==b){var c=this.B?a.lastChild:a.firstChild;c?vc(this,c):vc(this,a,-1*b)}else(c=this.B?a.previousSibling:a.nextSibling)?vc(this,c):vc(this,a.parentNode,-1*b);this.depth+=this.z*(this.B?-1:1)}else this.Fb=k;(a=this.A)||g(J);return a};
+N.prototype.splice=function(a){var b=this.A,c=this.B?1:-1;this.z==c&&(this.z=-1*c,this.depth+=this.z*(this.B?-1:1));this.B=!this.B;N.prototype.next.call(this);this.B=!this.B;for(var c=da(arguments[0])?arguments[0]:arguments,d=c.length-1;0<=d;d--)b.parentNode&&b.parentNode.insertBefore(c[d],b.nextSibling);pc(b)};var wc=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};wc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};wc.prototype.contains=function(a){return!this||!a?p:a instanceof wc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};var xc=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};xc.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};xc.prototype.contains=function(a){return a instanceof xc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};var O=function(a,b){var c=L(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,m))?c[b]||c.getPropertyValue(b)||"":""},yc=function(a,b){return a.currentStyle?a.currentStyle[b]:m},zc=function(a,b){return O(a,b)||yc(a,b)||a.style&&a.style[b]},Ac=function(a){return zc(a,"position")},Cc=function(a,b,c){var d,e=D&&(Ta||ab)&&F("1.9");b instanceof Zb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Bc(d,e);a.style.top=Bc(b,e)},Dc=function(a){var b=a.getBoundingClientRect();
+C&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Ec=function(a){if(C&&!lb(8))return a.offsetParent;var b=L(a),c=zc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=zc(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 m},Fc=function(a){var b,
+c=L(a),d=zc(a,"position");ya(a,"Parameter is required");var e=D&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Zb(0,0),h;b=c?L(c):document;if(h=C)if(h=!lb(9))h=M(b),h=!ic(h.l);h=h?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=Dc(a),a=uc(M(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(E&&"fixed"==Ac(e)){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(Ya||E&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Ec(e))&&e!=c.body&&e!=h;)if(f.x-=e.scrollLeft,!Ya||"TR"!=e.tagName)f.y-=e.scrollTop}return f},Gc=function(a,b,c){b instanceof K?(c=b.height,b=b.width):c==j&&g(Error("missing height argument"));a.style.width=Bc(b,k);a.style.height=Bc(c,k)},Bc=function(a,
+b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Ic=function(a){if("none"!=zc(a,"display"))return Hc(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Hc(a);b.display=c;b.position=e;b.visibility=d;return a},Hc=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=E&&!b&&!c;return(b===j||d)&&a.getBoundingClientRect?(a=Dc(a),new K(a.right-a.left,a.bottom-a.top)):new K(b,c)},Jc=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+")")},P=function(a,b){a.style.display=b?"":"none"},Kc=function(a){C?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 }"},
+Lc=function(a){return"rtl"==zc(a,"direction")},Mc=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},Nc=function(a,b){return Mc(a,yc(a,b),"left","pixelLeft")},Oc={thin:2,medium:4,thick:6},Pc=function(a,b){if("none"==yc(a,b+"Style"))return 0;var c=yc(a,b+"Width");return c in Oc?Oc[c]:Mc(a,c,"left","pixelLeft")},Qc=function(a){if(C){var b=Pc(a,"borderLeft"),
+c=Pc(a,"borderRight"),d=Pc(a,"borderTop");a=Pc(a,"borderBottom");return new wc(d,c,a,b)}b=O(a,"borderLeftWidth");c=O(a,"borderRightWidth");d=O(a,"borderTopWidth");a=O(a,"borderBottomWidth");return new wc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Rc=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"),Sc=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"),Tc=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"),Uc=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]"),
+Vc=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]*$"),Wc=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]*$"),
+Xc=RegExp("[\x00-\u001f\u007f\u0085\u00a0\u1680\u180e\u2000-\u200f\u2028-\u202f\u205f\u3000]"),Yc=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]+$"),Zc=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]+$"),
+$c=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=Sc.exec(a);){var d=
+c[0],e=Wc.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=Tc.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=Uc.exec(a.substr(b));return c?new bd(c[0],b):m},fd=function(a,b){var c=Vc.exec(a.substr(0,b));return c?new bd(c[0],b-c[0].length):m},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(Xc.test(f)){var l=f.charCodeAt(0),h="\\u";4096>l&&(h+="0",256>l&&(h+="0",16>l&&(h+="0")));h+=l.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=Ca(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=Oa("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=Oa("inline","inline-block","inline-table"),nd={element:m,style:m},od=function(a){if(nd.element==a)return nd.style;var b=yc(a,"display")||O(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 p;a=yc(a,"visibility")||O(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 Q=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]:m;this[e]==m&&0<=za(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||m,this.atText=d||m};Q.prototype.precededByText=m;
+Q.prototype.followedByText=m;Q.prototype.locationDescription=m;Q.prototype.asString=m;var sd=0,td=[];Q.prototype.ub=function(){return this.id};Q.prototype.Ka=function(){return this.type};var ud=function(a){return a.severity};Q.prototype.Ba=function(){return td[this.id]||m};
+Q.prototype.toString=function(){var a=new Yb("[",ud(this).toString(),"] ",this.Ka()),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 vd=function(a){for(var b=0;b<a.length;++b){var c=a[b];c.asString=c.toString()}return Ob(a)};var xd=function(a){return wd(a||arguments.callee.caller,[])},wd=function(a,b){var c=[];if(0<=za(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(yd(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=yd(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");
+c.push(f)}b.push(a);c.push(")\n");try{c.push(wd(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},yd=function(a){if(zd[a])return zd[a];a=String(a);if(!zd[a]){var b=/function ([^\(]+)/.exec(a);zd[a]=b?b[1]:"[Anonymous]"}return zd[a]},zd={};var Ad=function(a,b,c,d,e){this.reset(a,b,c,d,e)};Ad.prototype.Ac=m;Ad.prototype.zc=m;var Bd=0;Ad.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Bd++;d||la();this.Pa=a;this.Gd=b;delete this.Ac;delete this.zc};Ad.prototype.Ec=function(a){this.Pa=a};Ad.prototype.getMessage=function(){return this.Gd};var R=function(a){this.Jd=a};R.prototype.H=m;R.prototype.Pa=m;R.prototype.V=m;R.prototype.Kc=m;var Cd=function(a,b){this.name=a;this.value=b};Cd.prototype.toString=function(){return this.name};var Dd=new Cd("SEVERE",1E3),Ed=new Cd("CONFIG",700);R.prototype.getParent=function(){return this.H};R.prototype.Bc=function(){this.V||(this.V={});return this.V};R.prototype.Ec=function(a){this.Pa=a};var Fd=function(a){if(a.Pa)return a.Pa;if(a.H)return Fd(a.H);xa("Root logger has no level set.");return m};
+R.prototype.log=function(a,b,c){if(a.value>=Fd(this).value){a=this.Pd(a,b,c);b="log:"+a.getMessage();r.console&&(r.console.timeStamp?r.console.timeStamp(b):r.console.markTimeline&&r.console.markTimeline(b));r.msWriteProfilerMark&&r.msWriteProfilerMark(b);for(b=this;b;){c=b;var d=a;if(c.Kc)for(var e=0,f=j;f=c.Kc[e];e++)f(d);b=b.getParent()}}};
+R.prototype.Pd=function(a,b,c){var d=new Ad(a,String(b),this.Jd);if(c){d.Ac=c;var e;var f=arguments.callee.caller;try{var h;var l=aa("window.location.href");if(t(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};else{var n,s,v=p;try{n=c.lineNumber||c.fe||"Not available"}catch(y){n="Not available",v=k}try{s=c.fileName||c.filename||c.sourceURL||l}catch(Za){s="Not available",v=k}h=v||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:n,
+fileName:s,stack:c.stack||"Not available"}:c}e="Message: "+ta(h.message)+'\nUrl: <a href="view-source:'+h.fileName+'" target="_new">'+h.fileName+"</a>\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+ta(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+ta(xd(f)+"-> ")}catch(V){e="Exception trying to expose exception! You win, we lose. "+V}d.zc=e}return d};
+var Gd={},Hd=m,Id=function(a){Hd||(Hd=new R(""),Gd[""]=Hd,Hd.Ec(Ed));var b;if(!(b=Gd[a])){b=new R(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Id(a.substr(0,c));c.Bc()[d]=b;b.H=c;Gd[a]=b}return b};Id("goog.dom.SavedRange");var Jd=function(){};Jd.prototype.nc=function(){return p};Jd.prototype.D=function(){return L(C?this.getContainer():this.p())};Jd.prototype.Ib=function(){return kc(this.D())};Jd.prototype.containsNode=function(a,b){return this.ta(Kd(Ld(a)),b)};var Md=function(a,b){N.call(this,a,b,k)};x(Md,N);var Nd=function(a,b,c,d,e){var f;a&&(this.k=a,this.g=b,this.h=c,this.e=d,1==a.nodeType&&"BR"!=a.tagName&&(a=a.childNodes,(b=a[b])?(this.k=b,this.g=0):(a.length&&(this.k=A(a)),f=k)),1==c.nodeType&&((this.h=c.childNodes[d])?this.e=0:this.h=c));N.call(this,e?this.h:this.k,e,k);if(f)try{this.next()}catch(h){h!=J&&g(h)}};x(Nd,Md);q=Nd.prototype;q.k=m;q.h=m;q.g=0;q.e=0;q.p=function(){return this.k};q.C=function(){return this.h};q.Dd=function(){return this.Fb&&this.A==this.h&&(!this.e||1!=this.z)};
+q.next=function(){this.Dd()&&g(J);return Nd.d.next.call(this)};q.Ab=function(){Nd.d.Ab.apply(this);rc(this.A,this.h)&&g(J)};var Od=function(){};Od.prototype.ta=function(a,b){var c=b&&!a.isCollapsed(),d=a.Xa();try{return c?0<=this.I(d,0,1)&&0>=this.I(d,1,0):0<=this.I(d,0,0)&&0>=this.I(d,1,1)}catch(e){return C||g(e),p}};Od.prototype.containsNode=function(a,b){return this.ta(Ld(a),b)};Od.prototype.Qa=function(){return new Nd(this.p(),this.F(),this.C(),this.L())};var Pd=function(a){this.a=a};x(Pd,Od);var Qd=function(a){var b=L(a).createRange();if(3==a.nodeType)b.setStart(a,0),b.setEnd(a,a.length);else if(S(a)){for(var c,d=a;(c=d.firstChild)&&S(c);)d=c;b.setStart(d,0);for(d=a;(c=d.lastChild)&&S(c);)d=c;b.setEnd(d,1==d.nodeType?d.childNodes.length:d.length)}else c=a.parentNode,a=za(c.childNodes,a),b.setStart(c,a),b.setEnd(c,a+1);return b},Rd=function(a,b,c,d){var e=L(a).createRange();e.setStart(a,b);e.setEnd(c,d);return e};q=Pd.prototype;q.Xa=function(){return this.a};
+q.getContainer=function(){return this.a.commonAncestorContainer};q.p=function(){return this.a.startContainer};q.F=function(){return this.a.startOffset};q.C=function(){return this.a.endContainer};q.L=function(){return this.a.endOffset};q.I=function(a,b,c){return this.a.compareBoundaryPoints(1==c?1==b?r.Range.START_TO_START:r.Range.START_TO_END:1==b?r.Range.END_TO_START:r.Range.END_TO_END,a)};q.isCollapsed=function(){return this.a.collapsed};q.$=function(){return this.a.toString()};
+q.select=function(a){var b=kc(L(this.p()));this.La(b.getSelection(),a)};q.La=function(a){a.removeAllRanges();a.addRange(this.a)};q.collapse=function(a){this.a.collapse(a)};var Sd=function(a){this.a=a};x(Sd,Pd);Sd.prototype.La=function(a,b){!b||this.isCollapsed()?Sd.d.La.call(this,a,b):(a.collapse(this.C(),this.L()),a.extend(this.p(),this.F()))};var Td=function(a){this.a=a};x(Td,Od);var Ud=Id("goog.dom.browserrange.IeRange"),Vd=function(a){var b=L(a).body.createTextRange();if(1==a.nodeType)b.moveToElementText(a),S(a)&&!a.childNodes.length&&b.collapse(p);else{for(var c=0,d=a;d=d.previousSibling;){var e=d.nodeType;if(3==e)c+=d.length;else if(1==e){b.moveToElementText(d);break}}d||b.moveToElementText(a.parentNode);b.collapse(!d);c&&b.move("character",c);b.moveEnd("character",a.length)}return b};q=Td.prototype;q.ea=m;q.k=m;q.h=m;q.g=-1;q.e=-1;
+q.Xa=function(){return this.a};
+q.getContainer=function(){if(!this.ea){var a=this.a.text,b=this.a.duplicate(),c=a.replace(/ +$/,"");(c=a.length-c.length)&&b.moveEnd("character",-c);c=b.parentElement();b=b.htmlText.replace(/(\r\n|\r|\n)+/g," ").length;if(this.isCollapsed()&&0<b)return this.ea=c;for(;b>c.outerHTML.replace(/(\r\n|\r|\n)+/g," ").length;)c=c.parentNode;for(;1==c.childNodes.length&&c.innerText==(3==c.firstChild.nodeType?c.firstChild.nodeValue:c.firstChild.innerText)&&S(c.firstChild);)c=c.firstChild;0==a.length&&(c=Wd(this,
+c));this.ea=c}return this.ea};var Wd=function(a,b){for(var c=b.childNodes,d=0,e=c.length;d<e;d++){var f=c[d];if(S(f)){var h=Vd(f),l=h.htmlText!=f.outerHTML;if(a.isCollapsed()&&l?0<=a.I(h,1,1)&&0>=a.I(h,1,0):a.a.inRange(h))return Wd(a,f)}}return b};q=Td.prototype;q.p=function(){this.k||(this.k=Xd(this,1),this.isCollapsed()&&(this.h=this.k));return this.k};q.F=function(){0>this.g&&(this.g=Yd(this,1),this.isCollapsed()&&(this.e=this.g));return this.g};
+q.C=function(){if(this.isCollapsed())return this.p();this.h||(this.h=Xd(this,0));return this.h};q.L=function(){if(this.isCollapsed())return this.F();0>this.e&&(this.e=Yd(this,0),this.isCollapsed()&&(this.g=this.e));return this.e};q.I=function(a,b,c){return this.a.compareEndPoints((1==b?"Start":"End")+"To"+(1==c?"Start":"End"),a)};
+var Xd=function(a,b,c){c=c||a.getContainer();if(!c||!c.firstChild)return c;for(var d=1==b,e=0,f=c.childNodes.length;e<f;e++){var h=d?e:f-e-1,l=c.childNodes[h],n;try{n=Ld(l)}catch(s){continue}var v=n.Xa();if(a.isCollapsed())if(S(l)){if(n.ta(a))return Xd(a,b,l)}else{if(0==a.I(v,1,1)){a.g=a.e=h;break}}else{if(a.ta(n)){if(!S(l)){d?a.g=h:a.e=h+1;break}return Xd(a,b,l)}if(0>a.I(v,1,0)&&0<a.I(v,0,1))return Xd(a,b,l)}}return c},Yd=function(a,b){var c=1==b,d=c?a.p():a.C();if(1==d.nodeType){for(var d=d.childNodes,
+e=d.length,f=c?1:-1,h=c?0:e-1;0<=h&&h<e;h+=f){var l=d[h];if(!S(l)&&0==a.a.compareEndPoints((1==b?"Start":"End")+"To"+(1==b?"Start":"End"),Ld(l).Xa()))return c?h:h+1}return-1==h?0:h}e=a.a.duplicate();f=Vd(d);e.setEndPoint(c?"EndToEnd":"StartToStart",f);e=e.text.length;return c?d.length-e:e};Td.prototype.isCollapsed=function(){return 0==this.a.compareEndPoints("StartToEnd",this.a)};Td.prototype.$=function(){return this.a.text};Td.prototype.select=function(){this.a.select()};
+Td.prototype.collapse=function(a){this.a.collapse(a);a?(this.h=this.k,this.e=this.g):(this.k=this.h,this.g=this.e)};var Zd=function(a){this.a=a};x(Zd,Pd);Zd.prototype.La=function(a){a.collapse(this.p(),this.F());(this.C()!=this.p()||this.L()!=this.F())&&a.extend(this.C(),this.L());0==a.rangeCount&&a.addRange(this.a)};var $d=function(a){this.a=a};x($d,Pd);$d.prototype.I=function(a,b,c){return F("528")?$d.d.I.call(this,a,b,c):this.a.compareBoundaryPoints(1==c?1==b?r.Range.START_TO_START:r.Range.END_TO_START:1==b?r.Range.START_TO_END:r.Range.END_TO_END,a)};$d.prototype.La=function(a,b){a.removeAllRanges();b?a.setBaseAndExtent(this.C(),this.L(),this.p(),this.F()):a.setBaseAndExtent(this.p(),this.F(),this.C(),this.L())};var Ld=function(a){if(C&&!lb(9)){var b=new Td(Vd(a));if(S(a)){for(var c,d=a;(c=d.firstChild)&&S(c);)d=c;b.k=d;b.g=0;for(d=a;(c=d.lastChild)&&S(c);)d=c;b.h=d;b.e=1==d.nodeType?d.childNodes.length:d.length;b.ea=a}else b.k=b.h=b.ea=a.parentNode,b.g=za(b.ea.childNodes,a),b.e=b.g+1;a=b}else a=E?new $d(Qd(a)):D?new Sd(Qd(a)):Ya?new Zd(Qd(a)):new Pd(Qd(a));return a},S=function(a){var b;a:if(1!=a.nodeType)b=p;else{switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":b=
+p;break a}b=k}return b||3==a.nodeType};var ae=function(){};x(ae,Jd);var Kd=function(a){var b=new ae;b.Fa=a;b.ab=p;return b};q=ae.prototype;q.Fa=m;q.k=m;q.g=m;q.h=m;q.e=m;q.ab=p;q.Ka=function(){return"text"};
+var be=function(a){var b;if(!(b=a.Fa)){b=a.p();var c=a.F(),d=a.C(),e=a.L();if(C&&!lb(9)){var f=b,h=c,l=d,n=e,s=p;1==f.nodeType&&(h>f.childNodes.length&&Ud.log(Dd,"Cannot have startOffset > startNode child count",j),h=f.childNodes[h],s=!h,f=h||f.lastChild||f,h=0);var v=Vd(f);h&&v.move("character",h);f==l&&h==n?v.collapse(k):(s&&v.collapse(p),s=p,1==l.nodeType&&(n>l.childNodes.length&&Ud.log(Dd,"Cannot have endOffset > endNode child count",j),l=(h=l.childNodes[n])||l.lastChild||l,n=0,s=!h),f=Vd(l),
+f.collapse(!s),n&&f.moveEnd("character",n),v.setEndPoint("EndToEnd",f));n=new Td(v);n.k=b;n.g=c;n.h=d;n.e=e;b=n}else b=E?new $d(Rd(b,c,d,e)):D?new Sd(Rd(b,c,d,e)):Ya?new Zd(Rd(b,c,d,e)):new Pd(Rd(b,c,d,e));b=a.Fa=b}return b};q=ae.prototype;q.getContainer=function(){return be(this).getContainer()};q.p=function(){return this.k||(this.k=be(this).p())};q.F=function(){return this.g!=m?this.g:this.g=be(this).F()};q.C=function(){return this.h||(this.h=be(this).C())};
+q.L=function(){return this.e!=m?this.e:this.e=be(this).L()};q.nc=function(){return this.ab};q.ta=function(a,b){var c=a.Ka();if("text"==c)return be(this).ta(be(a),b);if("control"==c){if(!a.Nb&&(a.Nb=[],a.a))for(c=0;c<a.a.length;c++)a.Nb.push(a.a.item(c));return(b?Da:Ea)(a.Nb,function(a){return this.containsNode(a,b)},this)}return p};q.isCollapsed=function(){return be(this).isCollapsed()};q.$=function(){return be(this).$()};q.Qa=function(){return new Nd(this.p(),this.F(),this.C(),this.L())};
+q.select=function(){be(this).select(this.ab)};q.collapse=function(a){a=this.nc()?!a:a;this.Fa&&this.Fa.collapse(a);a?(this.h=this.k,this.e=this.g):(this.k=this.h,this.g=this.e);this.ab=p};Id("goog.dom.MultiRange");var ce=function(){this.s=[];I(window,"unload",this.Ad,p,this);this.J=new Xb(window.opener||window.parent,{errorList:u(this.Bd,this)});this.J.send("checkPage")};w("bidichecker.gui.app.ErrorPage",ce);ce.prototype.ma=m;ce.prototype.Ad=function(){0<this.s.length&&de(this)};ce.prototype.ld=function(a){Kd(Ld(this.tc)).select();a.preventDefault()};
+ce.prototype.Bd=function(a,b){b instanceof Array||g("Invalid data type in errorList message; expected Array.");this.s=b.map(function(a){return new Q(a)});for(var c=0<this.s.length,d=document.getElementsByClassName("show-on-errors"),e=0;e<d.length;e++)P(d[e],c);P(gc("no-errors-container"),!c);if(c){c=new google.visualization.DataTable;c.addColumn("number","#");c.addColumn("string","Type");c.addColumn("number","Sev");c.addColumn("string","Location");c.addColumn("string","Text");for(d=0;d<this.s.length;d++)e=
+this.s[d],c.addRow([d+1,ee(e.Ka()),ud(e),ee(e.locationDescription,"280px"),ee(e.atText,"150px")]);this.tc=gc("table-container");this.mb=new google.visualization.Table(this.tc);this.mb.draw(c,{height:"300px",allowHtml:k});google.visualization.events.addListener(this.mb,"select",u(this.md,this));sc(gc("error-count"),this.s.length+"");this.mb.setSelection([{row:0,column:m}]);c=this.s[0];de(this);this.ma=c;fe(this);I(gc("select-table"),"click",this.ld,p,this)}};
+var ee=function(a,b){if(!a)return m;var c='<span class="table-cell-ellipsize" style="'+(b?"width: "+b:"")+'">'+ta(a)+"</span>";return{v:a.toLowerCase(),f:c}};ce.prototype.md=function(){var a=this.mb.getSelection();0<a.length&&(a=this.s[a[0].row],de(this),this.ma=a,fe(this))};var fe=function(a){a.ma&&(a.J.send("highlightError",a.ma),sc(gc("error-text"),a.ma.toString()))},de=function(a){a.ma&&a.J.send("unhighlightError",a.ma)};var T=function(a){this.Ob=a;this.i=[]};x(T,rb);
+var ge=[],U=function(a,b,c,d,e){ca(c)||(ge[0]=c,c=ge);for(var f=0;f<c.length;f++){var h=I(b,c[f],d||a,e||p,a.Ob||a);a.i.push(h)}return a},he=function(a,b,c,d,e,f){if(ca(c))for(var h=0;h<c.length;h++)he(a,b,c[h],d,e,f);else b=Eb(b,c,d||a,e,f||a.Ob||a),a.i.push(b)},ie=function(a,b,c,d,e,f){if(ca(c))for(var h=0;h<c.length;h++)ie(a,b,c[h],d,e,f);else{a:{d=d||a;f=f||a.Ob||a;e=!!e;if(b=Gb(b,c,e))for(c=0;c<b.length;c++)if(!b[c].ha&&b[c].wa==d&&b[c].capture==e&&b[c].cb==f){b=b[c];break a}b=m}b&&(b=b.key,
+Hb(b),Fa(a.i,b))}};T.prototype.removeAll=function(){Aa(this.i,Hb);this.i.length=0};T.prototype.m=function(){T.d.m.call(this);this.removeAll()};T.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};var je=function(){};x(je,rb);q=je.prototype;q.qc=k;q.fb=m;q.Eb=function(a){this.fb=a};q.addEventListener=function(a,b,c,d){I(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){Fb(this,a,b,c,d)};
+q.dispatchEvent=function(a){var b=a.type||a,c=H;if(b in c){if(t(a))a=new ub(a,this);else if(a instanceof ub)a.target=a.target||this;else{var d=a;a=new ub(b,this);Na(a,d)}var d=1,e,c=c[b],b=k in c,f;if(b){e=[];for(f=this;f;f=f.fb)e.push(f);f=c[k];f.K=f.r;for(var h=e.length-1;!a.ia&&0<=h&&f.K;h--)a.currentTarget=e[h],d&=Kb(f,e[h],a.type,k,a)&&a.lb!=p}if(p in c)if(f=c[p],f.K=f.r,b)for(h=0;!a.ia&&h<e.length&&f.K;h++)a.currentTarget=e[h],d&=Kb(f,e[h],a.type,p,a)&&a.lb!=p;else for(e=this;!a.ia&&e&&f.K;e=
+e.fb)a.currentTarget=e,d&=Kb(f,e,a.type,p,a)&&a.lb!=p;a=Boolean(d)}else a=k;return a};q.m=function(){je.d.m.call(this);var a,b=0,c=a==m;a=!!a;if(this==m)Ja(Bb,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)Hb(f.key),b++}});else{var d=ia(this);if(Bb[d])for(var d=Bb[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)Hb(f.key),b++}}this.fb=m};var ke=function(a,b,c){this.target=a;this.handle=b||a;this.bb=c||new xc(NaN,NaN,NaN,NaN);this.l=L(a);this.w=new T(this);I(this.handle,["touchstart","mousedown"],this.pc,p,this)};x(ke,je);var le=C||D&&F("1.9.3");q=ke.prototype;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.jc=0;q.kc=0;q.ua=0;q.va=0;q.hc=k;q.ga=p;q.ic=0;q.Xc=p;q.Bb=p;q.ca=function(){return this.w};
+q.m=function(){ke.d.m.call(this);Fb(this.handle,["touchstart","mousedown"],this.pc,p,this);this.w.removeAll();le&&this.l.releaseCapture();this.w=this.handle=this.target=m};var me=function(a){a.pb===j&&(a.pb=Lc(a.target));return a.pb};
+ke.prototype.pc=function(a){var b="mousedown"==a.type;if(this.hc&&!this.ga&&(!b||(ob?0==a.M.button:"click"==a.type||a.M.button&xb[0])&&(!E||!Ta||!a.ctrlKey))){ne(a);if(0==this.ic)if(this.dispatchEvent(new oe("start",this,a.clientX,a.clientY)))this.ga=k,a.preventDefault();else return;else a.preventDefault();var b=this.l,c=b.documentElement,d=!le;U(this.w,b,["touchmove","mousemove"],this.Wc,d);U(this.w,b,["touchend","mouseup"],this.Za,d);le?(c.setCapture(p),U(this.w,c,"losecapture",this.Za)):U(this.w,
+kc(b),"blur",this.Za);C&&this.Xc&&U(this.w,b,"dragstart",vb);this.Zc&&U(this.w,this.Zc,"scroll",this.Yc,d);this.clientX=this.jc=a.clientX;this.clientY=this.kc=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Bb?(a=this.target,b=a.offsetLeft,c=a.offsetParent,!c&&"fixed"==Ac(a)&&(c=L(a).documentElement),c?(D?(d=Qc(c),b+=d.left):lb(8)&&(d=Qc(c),b-=d.left),a=Lc(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.ua=a;this.va=this.target.offsetTop;this.Cb=uc(M(this.l));
+la()}else this.dispatchEvent("earlycancel")};ke.prototype.Za=function(a){this.w.removeAll();le&&this.l.releaseCapture();if(this.ga){ne(a);this.ga=p;var b=pe(this,this.ua),c=qe(this,this.va);this.dispatchEvent(new oe("end",this,a.clientX,a.clientY,0,b,c))}else this.dispatchEvent("earlycancel");("touchend"==a.type||"touchcancel"==a.type)&&a.preventDefault()};
+var ne=function(a){var b=a.type;"touchstart"==b||"touchmove"==b?a.xa(a.M.targetTouches[0],a.currentTarget):("touchend"==b||"touchcancel"==b)&&a.xa(a.M.changedTouches[0],a.currentTarget)};
+ke.prototype.Wc=function(a){if(this.hc){ne(a);var b=(this.Bb&&me(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.ga){var d=this.jc-this.clientX,e=this.kc-this.clientY;if(d*d+e*e>this.ic)if(this.dispatchEvent(new oe("start",this,a.clientX,a.clientY)))this.ga=k;else{this.Kb||this.Za(a);return}}c=re(this,b,c);b=c.x;c=c.y;this.ga&&this.dispatchEvent(new oe("beforedrag",this,a.clientX,a.clientY,
+0,b,c))&&(se(this,a,b,c),a.preventDefault())}};var re=function(a,b,c){var d=uc(M(a.l));b+=d.x-a.Cb.x;c+=d.y-a.Cb.y;a.Cb=d;a.ua+=b;a.va+=c;b=pe(a,a.ua);a=qe(a,a.va);return new Zb(b,a)};ke.prototype.Yc=function(a){var b=re(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;se(this,a,b.x,b.y)};
+var se=function(a,b,c,d){a.Bb&&me(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new oe("drag",a,b.clientX,b.clientY,0,c,d))},pe=function(a,b){var c=a.bb,d=!isNaN(c.left)?c.left:m,c=!isNaN(c.width)?c.width:0;return Math.min(d!=m?d+c:Infinity,Math.max(d!=m?d:-Infinity,b))},qe=function(a,b){var c=a.bb,d=!isNaN(c.top)?c.top:m,c=!isNaN(c.height)?c.height:0;return Math.min(d!=m?d+c:Infinity,Math.max(d!=m?d:-Infinity,b))},oe=function(a,b,c,d,e,f,h){ub.call(this,
+a);this.clientX=c;this.clientY=d;this.left=f!==j?f:b.ua;this.top=h!==j?h:b.va};x(oe,ub);var te=function(a){this.b=a;a=C?"focusout":"blur";this.cd=I(this.b,C?"focusin":"focus",this,!C);this.dd=I(this.b,a,this,!C)};x(te,je);te.prototype.handleEvent=function(a){var b=new wb(a.M);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};te.prototype.m=function(){te.d.m.call(this);Hb(this.cd);Hb(this.dd);delete this.b};var ue=r.window;var ve=function(){};ve.Lc=function(){return ve.Mc?ve.Mc:ve.Mc=new ve};ve.prototype.Md=0;ve.Lc();var xe=function(a){this.Ja=a||M();this.pb=we};x(xe,je);xe.prototype.Ld=ve.Lc();var we=m;q=xe.prototype;q.qb=m;q.O=p;q.b=m;q.pb=m;q.H=m;q.V=m;q.Va=m;q.Qc=p;q.ub=function(){return this.qb||(this.qb=":"+(this.Ld.Md++).toString(36))};q.c=function(){return this.b};q.ca=function(){return this.pa||(this.pa=new T(this))};q.getParent=function(){return this.H};q.Eb=function(a){this.H&&this.H!=a&&g(Error("Method not supported"));xe.d.Eb.call(this,a)};q.n=function(){return this.Ja};q.o=function(){this.b=this.Ja.createElement("div")};
+q.Sa=function(a){this.O&&g(Error("Component already rendered"));this.b||this.o();a?a.insertBefore(this.b,m):this.Ja.D().body.appendChild(this.b);(!this.H||this.H.O)&&this.na()};q.na=function(){this.O=k;ye(this,function(a){!a.O&&a.c()&&a.na()})};q.da=function(){ye(this,function(a){a.O&&a.da()});this.pa&&this.pa.removeAll();this.O=p};
+q.m=function(){xe.d.m.call(this);this.O&&this.da();this.pa&&(this.pa.G(),delete this.pa);ye(this,function(a){a.G()});!this.Qc&&this.b&&pc(this.b);this.H=this.b=this.Va=this.V=m};q.gc=function(){return this.b};var ye=function(a,b){a.V&&Aa(a.V,b,j)};
+xe.prototype.removeChild=function(a,b){if(a){var c=t(a)?a:a.ub(),d;this.Va&&c?(d=this.Va,d=(c in d?d[c]:j)||m):d=m;a=d;c&&a&&(d=this.Va,c in d&&delete d[c],Fa(this.V,a),b&&(a.da(),a.b&&pc(a.b)),c=a,c==m&&g(Error("Unable to set parent component")),c.H=m,xe.d.Eb.call(c,m))}a||g(Error("Child is not in parent component"));return a};var W=function(a,b){xe.call(this,b);this.Sc=!!a};x(W,xe);q=W.prototype;q.zb=m;q.oa=p;q.u=m;q.q=m;q.Q=m;q.Wa=function(){return"goog-modalpopup"};q.Ra=function(){return this.u};
+q.o=function(){W.d.o.call(this);var a=this.c();dc(a,this.Wa());a.tabIndex=0;P(a,p);this.Sc&&!this.q&&(this.q=this.n().o("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'}),this.q.className=this.Wa()+"-bg",P(this.q,p),Jc(this.q,0));this.u||(this.u=this.n().o("div",this.Wa()+"-bg"),P(this.u,p));this.Q||(this.Q=this.n().createElement("span"),P(this.Q,p),this.Q.tabIndex=0,this.Q.style.position="absolute")};
+q.na=function(){z(!!this.u,"Background element must not be null.");if(this.q){var a=this.c();a.parentNode&&a.parentNode.insertBefore(this.q,a)}a=this.c();a.parentNode&&a.parentNode.insertBefore(this.u,a);W.d.na.call(this);a=this.c();a.parentNode&&a.parentNode.insertBefore(this.Q,a.nextSibling);this.zb=new te(this.n().D());U(this.ca(),this.zb,"focusin",this.Pc)};q.da=function(){this.oa&&this.S(p);G(this.zb);W.d.da.call(this);pc(this.q);pc(this.u);pc(this.Q)};
+q.S=function(a){z(this.O,"ModalPopup must be rendered first.");a!=this.oa&&(this.ra&&this.ra.stop(),this.Ha&&this.Ha.stop(),this.qa&&this.qa.stop(),this.Ga&&this.Ga.stop(),a?this.dispatchEvent("beforeshow")&&(this.Jb(),ze(this),U(this.ca(),this.n().Ib(),"resize",this.Jb),Ae(this,k),this.focus(),this.oa=k,this.ra&&this.Ha?(Eb(this.ra,"end",this.$a,p,this),this.Ha.play(),this.ra.play()):this.$a()):this.dispatchEvent("beforehide")&&(ie(this.ca(),this.n().Ib(),"resize",this.Jb),this.oa=p,this.qa&&this.Ga?
+(Eb(this.qa,"end",this.Ya,p,this),this.Ga.play(),this.qa.play()):this.Ya()))};var Ae=function(a,b){a.q&&P(a.q,b);a.u&&P(a.u,b);P(a.c(),b);P(a.Q,b)};W.prototype.$a=function(){this.dispatchEvent("show")};W.prototype.Ya=function(){Ae(this,p);this.dispatchEvent("hide")};W.prototype.focus=function(){this.Fc()};
+W.prototype.Jb=function(){this.q&&P(this.q,p);this.u&&P(this.u,p);var a=this.n().D(),b=jc(kc(a)||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.q&&(P(this.q,k),Gc(this.q,c,a));this.u&&(P(this.u,k),Gc(this.u,c,a))};
+var ze=function(a){var b=a.n().D(),c=kc(b)||window;if("fixed"==Ac(a.c()))var d=b=0;else d=uc(a.n()),b=d.x,d=d.y;var e=Ic(a.c()),c=jc(c||window),b=Math.max(b+c.width/2-e.width/2,0),d=Math.max(d+c.height/2-e.height/2,0);Cc(a.c(),b,d);Cc(a.Q,b,d)};W.prototype.Pc=function(a){a.target==this.Q&&(a=this.Fc,ea(a)?this&&(a=u(a,this)):a&&"function"==typeof a.handleEvent?a=u(a.handleEvent,a):g(Error("Invalid listener argument")),ue.setTimeout(a,0))};
+W.prototype.Fc=function(){try{C&&this.n().D().body.focus(),this.c().focus()}catch(a){}};W.prototype.m=function(){G(this.ra);this.ra=m;G(this.qa);this.qa=m;G(this.Ha);this.Ha=m;G(this.Ga);this.Ga=m;W.d.m.call(this)};var Y=function(a,b,c){W.call(this,b,c);this.P=a||"modal-dialog";this.U=X(X(new Be,Ce,k),De,p,k)};x(Y,W);q=Y.prototype;q.$c=k;q.bc=k;q.vb=k;q.Tc=k;q.xb=0.5;q.Oc="";q.cc="";q.W=m;q.ec=p;q.aa=m;q.wb=m;q.dc=m;q.Ea=m;q.yb=m;q.ba=m;q.ac="dialog";q.Wa=function(){return this.P};var Ee=function(a){a.c()||a.Sa()};Y.prototype.gc=function(){Ee(this);return this.yb};Y.prototype.Ra=function(){Ee(this);return Y.d.Ra.call(this)};
+var Fe=function(a){a.vb=p;if(a.O){var b=a.n(),c=a.Ra();b.removeNode(a.q);b.removeNode(c)}},Ge=function(a,b){if(a.c()){var c=a.aa,d=a.P+"-title-draggable";b?dc(c,d):ec(c,d)}b&&!a.W?(a.W=new ke(a.c(),a.aa),dc(a.aa,a.P+"-title-draggable"),I(a.W,"start",a.ed,p,a)):!b&&a.W&&(a.W.G(),a.W=m)};q=Y.prototype;
+q.o=function(){Y.d.o.call(this);var a=this.c();z(a,"getElement() returns null");var b=this.n();this.aa=b.o("div",{className:this.P+"-title",id:this.ub()},this.wb=b.o("span",this.P+"-title-text",this.Oc),this.Ea=b.o("span",this.P+"-title-close"));oc(a,this.aa,this.yb=b.o("div",this.P+"-content"),this.ba=b.o("div",this.P+"-buttons"));this.dc=this.aa.id;a.setAttribute("role",this.ac);a.setAttribute("aria-labelledby",this.dc||"");this.cc&&(this.yb.innerHTML=this.cc);P(this.Ea,this.bc);this.U&&(a=this.U,
+a.b=this.ba,a.Sa());P(this.ba,!!this.U);this.xb=this.xb;this.c()&&(a=this.Ra())&&Jc(a,this.xb)};q.na=function(){Y.d.na.call(this);U(U(this.ca(),this.c(),"keydown",this.mc),this.c(),"keypress",this.mc);U(this.ca(),this.ba,"click",this.Uc);Ge(this,this.Tc);U(this.ca(),this.Ea,"click",this.Vc);this.c().setAttribute("role",this.ac);""!==this.wb.id&&this.c().setAttribute("aria-labelledby",this.wb.id);this.vb||Fe(this)};q.da=function(){this.oa&&this.S(p);Ge(this,p);Y.d.da.call(this)};
+q.S=function(a){a!=this.oa&&(this.O||this.Sa(),Y.d.S.call(this,a))};q.$a=function(){Y.d.$a.call(this);this.dispatchEvent("aftershow")};q.Ya=function(){Y.d.Ya.call(this);this.dispatchEvent("afterhide");this.ec&&this.G()};
+q.focus=function(){Y.d.focus.call(this);if(this.U){var a=this.U.Ta;if(a)for(var b=this.n().D(),c=this.ba.getElementsByTagName("button"),d=0,e;e=c[d];d++)if(e.name==a){try{if(E||Ya){var f=b.createElement("input");f.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.c().appendChild(f);f.focus();this.c().removeChild(f)}e.focus()}catch(h){}break}}};
+q.ed=function(){var a=this.n().D(),b=jc(kc(a)||window||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height),d=Ic(this.c());"fixed"==Ac(this.c())?(b=new xc(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)),this.W.bb=b||new xc(NaN,NaN,NaN,NaN)):this.W.bb=new xc(0,0,c-d.width,a-d.height)||new xc(NaN,NaN,NaN,NaN)};q.Vc=function(){if(this.bc){var a=this.U,b=a&&a.Hb;b?(a=a.get(b),this.dispatchEvent(new He(b,a))&&this.S(p)):this.S(p)}};
+q.m=function(){this.ba=this.Ea=m;Y.d.m.call(this)};q.Uc=function(a){a:{for(a=a.target;a!=m&&a!=this.ba;){if("BUTTON"==a.tagName)break a;a=a.parentNode}a=m}if(a&&!a.disabled){a=a.name;var b=this.U.get(a);this.dispatchEvent(new He(a,b))&&this.S(p)}};
+q.mc=function(a){var b=p,c=p,d=this.U,e=a.target;if("keydown"==a.type)if(this.$c&&27==a.keyCode){var f=d&&d.Hb,e="SELECT"==e.tagName&&!e.disabled;f&&!e?(c=k,b=d.get(f),b=this.dispatchEvent(new He(f,b))):e||(b=k)}else 9==a.keyCode&&(a.shiftKey&&e==this.c())&&(c=k);else if(13==a.keyCode){if("BUTTON"==e.tagName)f=e.name;else if(d){var h=d.Ta,l;if(l=h)a:{l=d.b.getElementsByTagName("BUTTON");for(var n=0,s;s=l[n];n++)if(s.name==h||s.id==h){l=s;break a}l=m}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName||
+"A"==e.tagName)&&!e.disabled;l&&(!l.disabled&&!e)&&(f=h)}f&&d&&(c=k,b=this.dispatchEvent(new He(f,String(d.get(f)))))}if(b||c)a.stopPropagation(),a.preventDefault();b&&this.S(p)};var He=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};x(He,ub);var Be=function(a){this.Ja=a||M();Vb.call(this)};x(Be,Vb);q=Be.prototype;q.P="goog-buttonset";q.Ta=m;q.b=m;q.Hb=m;q.set=function(a,b,c,d){Vb.prototype.set.call(this,a,b);c&&(this.Ta=a);d&&(this.Hb=a);return this};
+var X=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};
+Be.prototype.Sa=function(){if(this.b){this.b.innerHTML="";var a=M(this.b),b=function(b,c){var d=a.o("button",{name:c},b);c==this.Ta&&(d.className=this.P+"-default");this.b.appendChild(d)};if("function"==typeof this.forEach)this.forEach(b,this);else if(da(this)||t(this))Aa(this,b,this);else{var c;if("function"==typeof this.Db)c=this.Db();else if("function"!=typeof this.eb)if(da(this)||t(this)){c=[];for(var d=this.length,e=0;e<d;e++)c.push(e)}else c=La(this);else c=j;for(var d=Ub(this),e=d.length,f=
+0;f<e;f++)b.call(this,d[f],c&&c[f])}}};Be.prototype.c=function(){return this.b};Be.prototype.n=function(){return this.Ja};var Ce={key:"ok",caption:"OK"},De={key:"cancel",caption:"Cancel"},Ie={key:"yes",caption:"Yes"},Je={key:"no",caption:"No"},Ke={key:"save",caption:"Save"},Le={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(X(new Be,Ce,k,k),X(X(new Be,Ce,k),De,p,k),X(X(new Be,Ie,k),Je,p,k),X(X(X(new Be,Ie),Je,k),De,p,k),X(X(X(new Be,Le),Ke),De,k,k));var Me=function(){};Me.prototype.Cc=function(){};var Ne=function(){var a=new Y("bidichecker-dialog");p!=a.vb&&Fe(a);a.S(k);var b=a.c();b.style.zIndex=1E4;Ee(a);a.Ea.innerHTML="&times;";a.ec=k;var c;c=document.createElement("iframe");var d=a.gc();d.appendChild(c);this.Ua=c.contentWindow;c=M(d);var e=m;if(C)e=c.D().createStyleSheet(),Kc(e);else{var f=tc(c,"head")[0];f||(e=tc(c,"body")[0],f=c.o("head"),e.parentNode.insertBefore(f,e));e=c.o("style");Kc(e);c.appendChild(f,e)}this.Rc=e;f=L(b);if(e=c=C&&b.currentStyle)f=M(f),e=ic(f.l)&&"auto"!=c.width&&
+"auto"!=c.height&&!c.boxSizing;if(e)f=Mc(b,c.width,"width","pixelWidth"),b=Mc(b,c.height,"height","pixelHeight"),b=new K(f,b);else{c=new K(b.offsetWidth,b.offsetHeight);if(C)var f=Nc(b,"paddingLeft"),e=Nc(b,"paddingRight"),h=Nc(b,"paddingTop"),l=Nc(b,"paddingBottom"),f=new wc(h,e,l,f);else f=O(b,"paddingLeft"),e=O(b,"paddingRight"),h=O(b,"paddingTop"),l=O(b,"paddingBottom"),f=new wc(parseFloat(h),parseFloat(e),parseFloat(l),parseFloat(f));b=Qc(b);b=new K(c.width-b.left-f.left-f.right-b.right,c.height-
+b.top-f.top-f.bottom-b.bottom)}b=b.height;Ee(a);d.style.height=Bc(b-a.aa.offsetHeight,k);ze(a);this.fc=a};x(Ne,Me);Ne.prototype.G=function(){this.fc.G();var a=this.Rc;pc(a.ownerNode||a.owningElement||a)};Ne.prototype.Cc=function(a){var b=this.fc.c(),c=new Zb(b.offsetLeft,b.offsetTop);Cc(b,c.x,c.y+a)};var Oe=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.Ua=a};x(Oe,Me);Oe.prototype.G=function(){try{this.Ua.close()}catch(a){}};var Pe=function(a){try{return new Oe(a)}catch(b){return new Ne}};var Qe=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 l in h)l in b||(b[l]=h[l]);this.nd=a;this.Pb=b;this.hb=c;this.ib=d;this.Qb=e||m},Re;q=Qe.prototype;q.J=m;q.start=function(){var a=this.hb.Ua;this.J=new Xb(a,{checkPage:u(this.qd,this),highlightError:u(this.td,this),unhighlightError:u(this.yd,this),getOptions:u(this.sd,this),setOptions:u(this.vd,this)});a.location=this.ib};q.G=function(){G(this.J);delete this.J;G(this.hb);delete this.hb};
+q.sd=function(){this.J.send("options",this.Pb)};q.vd=function(a,b){this.Pb=Object(b)};q.qd=function(){var a;if(this.Qb)a=this.Qb,this.Qb=m;else{a=this.Pb;var b=[];-1!=a.severity&&b.push(Se(a.severity));a=this.nd.nb("rtl"==a.dir,m,b)}a=Lb(vd(a));this.J.send("errorList",a)};q.td=function(a,b){var c=(new Q(Object(b))).Ba();if(c){var c=c.Dc(),d=window.scrollY;window.scrollTo(0,c.y-100);this.hb.Cc(window.scrollY-d)}};q.yd=function(a,b){var c=(new Q(Object(b))).Ba();c&&c.Ic()};var Te=function(a){this.tb=a};Te.prototype.matches=function(a){var b;b=a.ownerDocument;var c=b._bidicheckerXpathMatcherCache_[this.tb];if(!c)try{b.evaluate||g("XPath not supported by this browser"),c=b.evaluate(this.tb,b,m,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,m),b._bidicheckerXpathMatcherCache_[this.tb]=c}catch(d){g("Error evaluating XPath expression "+this.tb+": "+d)}b=c;for(c=0;c<b.snapshotLength;++c)if(b.snapshotItem(c)==a)return k;return p};var Z=function(){};w("bidichecker.FilterFactory.ComposableFilter",Z);Z.prototype.Qd=function(a){return Ue(this,a)};Z.prototype.and=Z.prototype.Qd;Z.prototype.Zd=function(){return Ve(this)};Z.prototype.not=Z.prototype.Zd;Z.prototype.$d=function(a){return We(this,a)};Z.prototype.or=Z.prototype.$d;
+var nf=function(a){var b=a.opcode;switch(b){case "AND":return new Xe(a);case "AT_TEXT":return new Ye(a);case "AT_TEXT_REGEXP":return new Ze(a);case "FOLLOWED_BY_TEXT":return new $e(a);case "FOLLOWED_BY_TEXT_REGEXP":return new af(a);case "LOCATION_CLASS":return new bf(a);case "LOCATION_CLASS_REGEXP":return new cf(a);case "LOCATION_ID":return new df(a);case "LOCATION_ID_REGEXP":return new ef(a);case "LOCATION_XPATH":return new ff(a);case "NOT":return new gf(a);case "OR":return new hf(a);case "PRECEDED_BY_TEXT":return new jf(a);
+case "PRECEDED_BY_TEXT_REGEXP":return new kf(a);case "SEVERITY":return new lf(a);case "TYPE":return new mf(a);default:g("Unknown filter opcode: '"+b+"'")}},Ue=function(a,b){return new Xe({filter1:a,filter2:b})};w("bidichecker.FilterFactory.and",Ue);w("bidichecker.FilterFactory.atText",function(a){return new Ye({atText:a||""})});w("bidichecker.FilterFactory.atTextRegexp",function(a){return new Ze({atTextRegexp:a||""})});
+w("bidichecker.FilterFactory.followedByText",function(a){return new $e({followedByText:a||""})});w("bidichecker.FilterFactory.followedByTextRegexp",function(a){return new af({followedByTextRegexp:a||""})});w("bidichecker.FilterFactory.locationClass",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClass");return new bf({className:a})});
+w("bidichecker.FilterFactory.locationClassRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationClassRegexp");return new cf({classRegexp:a})});w("bidichecker.FilterFactory.locationId",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationId");return new df({id:a})});w("bidichecker.FilterFactory.locationIdRegexp",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationIdRegexp");return new ef({idRegexp:a})});
+w("bidichecker.FilterFactory.locationXpath",function(a){a||g("Empty or null argument to bidichecker.FilterFactory.locationXpath");return new ff({xpath:a})});var Ve=function(a){return new gf({filter:a})};w("bidichecker.FilterFactory.not",Ve);var We=function(a,b){return new hf({filter1:a,filter2:b})};w("bidichecker.FilterFactory.or",We);w("bidichecker.FilterFactory.precededByText",function(a){return new jf({precededByText:a||""})});
+w("bidichecker.FilterFactory.precededByTextRegexp",function(a){return new kf({precededByTextRegexp:a||""})});var Se=function(a){return new lf({severityThreshold:a})};w("bidichecker.FilterFactory.severityFrom",Se);w("bidichecker.FilterFactory.type",function(a){return new mf({type:a})});
+var of=function(a,b){b in a||g("No '"+b+"' parameter found for '"+a.opcode+"' filter")},pf=function(a,b,c){of(a,b);typeof a[b]!=c&&g("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected "+c)},qf=function(a,b){pf(a,b,"string");return a[b]},rf=function(a,b){of(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+")$")},sf=function(a,b){pf(a,b,"object");var c=
+a[b];if(c instanceof Z)return c;if("string"==typeof c.opcode)return nf(c);g("Can't make a filter out of the '"+b+"' parameter of '"+a.opcode+"' filter")},Xe=function(a){this.Ub=sf(a,"filter1");this.Vb=sf(a,"filter2")};x(Xe,Z);Xe.prototype.j=function(a,b){return this.Ub.j(a,b)&&this.Vb.j(a,b)};var Ye=function(a){this.Sd=qf(a,"atText")};x(Ye,Z);Ye.prototype.j=function(a){return this.Sd==(a.atText||"")};var Ze=function(a){this.Rd=rf(a,"atTextRegexp")};x(Ze,Z);
+Ze.prototype.j=function(a){return this.Rd.test(a.atText||"")};var $e=function(a){this.Xd=qf(a,"followedByText")};x($e,Z);$e.prototype.j=function(a){return this.Xd==(a.followedByText||"")};var af=function(a){this.Wd=rf(a,"followedByTextRegexp")};x(af,Z);af.prototype.j=function(a){return this.Wd.test(a.followedByText||"")};var bf=function(a){this.Ud=qf(a,"className")};x(bf,Z);
+bf.prototype.j=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.Ud==e[f])return k;return p};var cf=function(a){this.Vd=rf(a,"classRegexp")};x(cf,Z);cf.prototype.j=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.Vd.test(e[f]))return k;return p};var df=function(a){this.qb=qf(a,"id")};x(df,Z);
+df.prototype.j=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.qb==d.id)return k;return p};var ef=function(a){this.Yd=rf(a,"idRegexp")};x(ef,Z);ef.prototype.j=function(a,b){for(var c=0;c<b.length;++c)for(var d=b[c];d;d=d.parentNode)if(d.id&&this.Yd.test(d.id))return k;return p};var ff=function(a){a=qf(a,"xpath");this.ee=new Te(a)};x(ff,Z);ff.prototype.j=function(a,b){for(var c=0;c<b.length;++c)if(this.ee.matches(b[c]))return k;return p};
+var gf=function(a){this.Fd=sf(a,"filter")};x(gf,Z);gf.prototype.j=function(a,b){return!this.Fd.j(a,b)};var hf=function(a){this.Ub=sf(a,"filter1");this.Vb=sf(a,"filter2")};x(hf,Z);hf.prototype.j=function(a,b){return this.Ub.j(a,b)||this.Vb.j(a,b)};var jf=function(a){this.be=qf(a,"precededByText")};x(jf,Z);jf.prototype.j=function(a){return this.be==(a.precededByText||"")};var kf=function(a){this.ae=rf(a,"precededByTextRegexp")};x(kf,Z);
+kf.prototype.j=function(a){return this.ae.test(a.precededByText||"")};var lf=function(a){pf(a,"severityThreshold","number");this.de=a.severityThreshold};x(lf,Z);lf.prototype.j=function(a){return this.de<=ud(a)};var mf=function(a){this.Od=qf(a,"type")};x(mf,Z);mf.prototype.j=function(a){return this.Od==a.Ka()};var tf=function(){this.ya=[]};x(tf,je);q=tf.prototype;q.start=function(){this.dispatchEvent("StartFrames")};q.end=function(){this.dispatchEvent("EndFrames")};q.push=function(a){this.ya.push(a);this.dispatchEvent("EnterFrame")};q.pop=function(){this.dispatchEvent("ExitFrame");this.ya.pop()};q.Gb=function(){return this.ya};var uf=function(a,b){this.jd=a;this.hd=b||[];this.s=[]};uf.prototype.kd=p;uf.prototype.Sb=function(){return this.s};uf.prototype.addError=function(a,b){var c=this.jd.Gb().slice(0);b&&c.push(b);if(Ea(this.hd,function(b){return!b.j(a,c)})){var d,e=[];d=function(a){e.push(kd(a))};for(var f=t(c)?c.split(""):c,h=c.length-1;0<=h;--h)h in f&&d.call(j,f[h]);d=e.join(" in ");""!=d&&(a.locationDescription=d);this.s.push(a);this.kd&&g(a.toString()+"\n")}};var vf=function(a){this.za=new N(a);this.ad=a;this.R=[Lc(a)];this.sa=[];this.fa=[a];this.ya=[]};x(vf,je);vf.prototype.N=m;vf.prototype.go=function(){try{for(;;wf(this));}catch(a){a!==J&&g(a),this.dispatchEvent("EndOfDom")}};
+var wf=function(a){for(var b=a.za.next();1==a.za.z&&!qd(b);)a.za.Ab(),b=a.za.next();a.N=b;if(1==a.za.z){var b=a.N,c=Lc(b),d;if(!(d=A(a.sa)))a:if(!b.dir&&!b.style.direction&&c==A(a.R)||b==a.ad)d=p;else{for(d=b.firstChild;d;d=d.nextSibling)if(1==d.nodeType&&pd(d)){d=p;break a}d=k}a.sa.push(d);a.R.push(c);"IFRAME"==b.nodeName||"FRAME"==b.nodeName?a.ya.push(b):pd(b)&&a.fa.push(b);a.dispatchEvent("StartTag")}else-1==a.za.z?(a.dispatchEvent("EndTag"),a.R.pop(),a.sa.pop(),a.N==A(a.fa)&&a.fa.pop()):3==a.N.nodeType&&
+"TEXTAREA"!=a.N.parentNode.nodeName&&a.dispatchEvent("TextNode")};vf.prototype.Gb=function(){return this.ya};var xf=function(a){this.b=a};xf.prototype.Oa=m;xf.prototype.Dc=function(){this.Oa=rd(this.b);return Fc(this.b)};xf.prototype.Ic=function(){this.Oa&&(this.b.style.color=this.Oa.color,this.b.style.backgroundColor=this.Oa.backgroundColor,this.b.style.outline=this.Oa.outline)};var yf=function(a,b,c){this.ka=a;this.g=b;this.e=c;this.ja=[]};yf.prototype.Dc=function(){if(0==this.ja.length)for(var a=0;a<this.ka.length;++a){var b=this.ka[a],c=(0==a?this.g:0)||0,d=(a==this.ka.length-1?this.e:this.ka[a].length)||b.data.length,e=[];0<c&&e.push(b.data.substring(0,c));c=mc("span",{},b.data.substring(c,d));rd(c);e.push(c);d<b.data.length&&e.push(b.data.substring(d));d=mc("span",m,e);qc(d,b);this.ja.push(d)}else for(a=0;a<this.ja.length;++a)qc(this.ja[a],this.ka[a]);return Fc(this.ja[0])};
+yf.prototype.Ic=function(){if(0!=this.ja.length)for(var a=0;a<this.ka.length;++a)qc(this.ka[a],this.ja[a])};var zf=function(a,b){this.Zb=a;this.A=b},Af=function(a){this.Ca=[new zf(0,a)];this.Hc=a};Af.prototype.append=function(a,b){this.Hc!=b&&(this.Ca.push(new zf(a,b)),this.Hc=b)};var Bf=function(a,b){var c;c=a.Ca;for(var d=function(a,b){return a-b.Zb}||Ia,e=0,f=c.length,h;e<f;){var l=e+f>>1,n;n=d(b,c[l]);0<n?e=l+1:(f=l,h=!n)}c=h?e:~e;return 0<=c?c:-c-2};Af.prototype.Tb=function(a){a=Bf(this,a);return this.Ca[a].A};
+Af.prototype.Ba=function(a,b){for(var c=Bf(this,a),d=Bf(this,a+b-1),e=[],f=c;f<=d;++f)e.push(this.Ca[f].A);return new yf(e,a-this.Ca[c].Zb,a+b-this.Ca[d].Zb)};var Cf=function(a,b,c,d,e){this.oc=b;this.lc=e;this.bd=d;this.Xb=[a];this.Yb=a.length;this.Rb=new Af(c)};q=Cf.prototype;q.ob=m;q.gb=function(){return Ea(this.Xb,function(a){return 0==a.length})};q.append=function(a,b){this.Rb.append(this.Yb,b);this.Yb+=a.length;this.Xb.push(a);this.ob=m};
+q.$=function(){this.ob===m&&(this.ob=this.Xb.join(""));return this.ob};q.Tb=function(a){return this.Rb.Tb(a)};q.Ba=function(a,b){return this.Rb.Ba(a,b)};var Df=new Cf("",p,m,m,p);var Ef=function(a){this.X=Df;this.w=new T(this);U(this.w,a,"TextNode",this.Lb);he(this.w,a,"EndOfDom",this.Cd)};x(Ef,je);Ef.prototype.Lb=function(a){a=a.target;var b=a.N;A(a.R)==this.X.oc&&A(a.fa)==this.X.bd&&A(a.sa)==this.X.lc?this.X.append(b.data,b):(this.X.gb()||this.dispatchEvent("DirChunk"),this.X=new Cf(b.data,A(a.R),b,A(a.fa),A(a.sa)))};Ef.prototype.Cd=function(){this.X.gb()||this.dispatchEvent("DirChunk");this.dispatchEvent("EndOfChunks");this.w.removeAll()};var Ff=function(a,b){this.fd=!!b;this.Na=new tf;this.sc=new uf(this.Na,a)};Ff.prototype.t=m;Ff.prototype.Aa=m;Ff.prototype.Sb=function(){return this.sc.Sb()};
+var Kf=function(a,b,c){b.ownerDocument._bidicheckerXpathMatcherCache_={};var d;a:{var e=a.sc,f=a.Ia,h=[];0!=c&&h.push(new Gf(-1==c,e));h.push(new Hf(f,e));2<=f&&h.push(new If(e));h.push(new Jf(e));a.t=new vf(b);a.Aa=a.fd?new Ef(a.t):m;for(b=0;b<h.length;++b)h[b].jb(a);try{a.t.go();d=a.t.Gb();break a}finally{G(a.t),a.t=m,G(a.Aa),a.Aa=m}d=j}for(h=0;h<d.length;++h){b=d[h];a.Na.push(b);try{var l=(b.contentDocument||b.contentWindow.document).body;"IFRAME"==b.tagName&&(c=0);Kf(a,l,c)}catch(n){}a.Na.pop()}};var Gf=function(a,b){this.wc=a;this.Y=b};Gf.prototype.jb=function(a){Eb(a.t,"StartTag",this)};Gf.prototype.handleEvent=function(a){a=a.target;this.wc!=A(a.R)&&(a=new Q("Overall directionality not "+(this.wc?"RTL":"LTR"),1,new xf(a.N)),this.Y.addError(a))};var Jf=function(a){this.Y=a;this.Ma=[]};q=Jf.prototype;q.Z=m;q.jb=function(a){var b=new T(this);U(b,a.t,"StartTag",this.$b);U(b,a.t,"EndTag",this.Ed);U(b,a.t,"TextNode",this.Lb);he(b,a.t,"EndOfDom",b.removeAll,p,b);sb(a.t,b)};q.$b=function(a){a=a.target;var b=a.N;if(b.dir||b==A(a.fa))this.Z=m};q.Ed=function(a){a=a.target;var b=a.N;b==A(a.fa)?this.Z=m:b.dir&&(A(a.R)==a.R[a.R.length-2]?this.Z=m:(this.Z=b,this.Ma=[]))};
+q.Lb=function(a){a=a.target;var b=a.N;if(this.Z){this.Ma.push(b);var c;if(c=(c=$c.exec(b.data))?new bd(c[0],0):m){var d=Ca(this.Ma,function(a){return a.data}).join(""),e=A(this.Ma).parentNode;this.Y.addError(Lf(this,d.substr(0,d.length-(b.data.length-c.text.length)),c.text.length,A(a.R),A(a.sa)),e);this.Z=m}else ad.test(b.data)&&(this.Z=m)}};
+var Lf=function(a,b,c,d,e){b=new Q("Declared "+(d?"LTR":"RTL")+" spillover to number",e?4:2,new yf(a.Ma,0,c),b);var f=[],h=new N(a.Z);a=h;c=function(){3==h.A.nodeType&&f.push(h.A.data)};if(da(a))try{Aa(a,c,j)}catch(l){l!==J&&g(l)}else{a=Tb(a);try{for(;;)c.call(j,a.next())}catch(n){n!==J&&g(n)}}a=f.join("");b.precededByText=a;return b};var If=function(a){this.Y=a};If.prototype.jb=function(a){var b=new T(this);U(b,a.t,"StartTag",this.$b);he(b,a.t,"EndOfDom",b.removeAll,p,b);sb(a.t,b)};
+If.prototype.$b=function(a){a=a.target.N;a.title&&Mf(this,a,a.title,"title text");var b=a.nodeName;"INPUT"==b?a.type.match(/^(text|search)$/)?Mf(this,a,a.value,"input value"):"image"==a.type?Mf(this,a,a.alt,"alt text"):a.type.match(/^(button|reset|submit)$/)?Mf(this,a,a.value,"button label"):"file"==a.type&&Lc(a)&&(b=new Q("File input not LTR",2,new xf(a)),this.Y.addError(b,a)):"IMG"==b?Mf(this,a,a.alt,"alt text"):"TEXTAREA"==b&&Mf(this,a,a.value,"textarea value")};
+var Mf=function(a,b,c,d){var e=Lc(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||Lc(b)!=Lc(b.parentNode)?4:ed(c,0)||fd(c,c.length)?2:3,c=new Q(e,d,new xf(b),c),a.Y.addError(c,b))};var Hf=function(a,b){this.Ia=a;this.Y=b};Hf.prototype.jb=function(a){var b=new T(this);U(b,a.Aa,"DirChunk",this.Nd);he(b,a.Aa,"EndOfChunks",b.removeAll,p,b);sb(a.Aa,b)};Hf.prototype.Nd=function(a){var b=this,c=a.target.X;if(c.oc)a=dd(c.$()),Aa(a,function(a){Yc.exec(a.text)||Nf(b,c,a,"Undeclared LTR text")});else{if(2<=this.Ia)a=cd(c.$());else{a=c.$();for(var d=[],e;e=Rc.exec(a);)d.push(new bd(e[0],e.index));a=d}Aa(a,function(a){Zc.exec(a.text)||Nf(b,c,a,"Undeclared RTL text")})}};
+var Nf=function(a,b,c,d){var e=b.lc?4:3,f=b.Ba(c.index,c.text.length);d=new Q(d,e,f,c.text);e=b.$();if(f=fd(e,c.index))3==ud(d)&&(d.severity=2),d.precededByText=f.text;if(e=ed(e,c.index+c.text.length))3==ud(d)&&(d.severity=2),d.followedByText=e.text;b=b.Tb(c.index).parentNode;a.Y.addError(d,b)};var Of=function(a,b){Ff.call(this,b,k);this.Ia=a};x(Of,Ff);var Pf=function(a){this.zd=a};w("bidichecker.REVISION_1",new Pf(1));var Qf=new Pf(2);w("bidichecker.REVISION_2",Qf);w("bidichecker.LATEST",Qf);var $=function(a){this.Ia=a;this.s=[]};w("bidichecker.BidiChecker",$);w("bidichecker.instance",m);$.prototype.ib="https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html";$.prototype.nb=function(a,b,c){a=a?-1:1;b=b||top.document.body;c=c||[];td=[];sd=0;c=new Of(this.Ia.zd,c);c.Na.start();Kf(c,b,a);c.Na.end();this.s=c.Sb();return Ga(this.s)};
+$.prototype.checkPage=$.prototype.nb;$.prototype.Td=function(a,b,c){c?(c=Lb(c),c=Ca(c,function(a){return nf(a)})):c=m;c=c||[];a=this.nb(a,b,c);return vd(a)};$.prototype.checkPageToJson=$.prototype.Td;$.prototype.Nc=function(a){this.ib=a};$.prototype.setGuiAppUrl=$.prototype.Nc;$.prototype.ce=function(a){0!=this.s.length&&Rf(this,this.s,a)};$.prototype.runGui=$.prototype.ce;
+var Rf=function(a,b,c){if(C)if(F("8"))c=k;else{c=new Ne;c.Ua.document.write("Sorry, bidichecker GUI is not supported in Internet Explorer before version 8.");return}c=c?new Ne:Pe(m);a=new Qe(a,{},c,a.ib,b);G(Re);Re=a;a.start()};w("bidichecker.runBookmarkletGui",function(a,b,c){var d=new $(Qf);C?(b&&b.close(),b=new Ne):b=Pe(b);a=new Qe(d,a,b,c||"https://bidichecker.googlecode.com/svn/trunk/lib/gui-app/errorpage.html");G(Re);Re=a;a.start()});
+var Sf=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=Ob(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)};w("bidichecker.generateBookmarklet",Sf);w("bidichecker.checkPage",function(a,b,c){return(new $(Qf)).nb(a,b,c)});w("bidichecker.runGui",function(a,b,c){var d=new $(Qf);c&&d.Nc(c);Rf(d,a,b)});var Tf=function(){this.T=gc("severity");I(this.T,"change",this.wd,p,this);I(document,"change",this.rd,p,this);I(gc("show-bookmarklet-help"),"click",this.xd,p,this);this.uc=gc("bookmarklet");I(this.uc,"click",this.od,p,this);I(gc("run"),"click",this.pd,p,this);this.J=new Xb(window.opener||window.parent,{options:u(this.ud,this)});this.J.send("getOptions")};w("bidichecker.gui.app.OptionsPage",Tf);
+var Uf=function(a){a=M().D().getElementsByName(a);for(var b=0;b<a.length;b++){var c=a[b];if(c.checked)return c.value}return m},Vf=function(a,b,c){a=a.D().getElementsByName(b);for(var d=p,e=0;e<a.length;e++){var f=a[e];if(f.value==c){d=f.checked=k;break}}d||g("No radio button with name "+b+" and value "+c)};q=Tf.prototype;q.pd=function(){this.J.send("setOptions",Wf(this));window.location="errorpage.html"};
+q.ud=function(a,b){var c=Object(b),d=c.severity;this.T.value=-1!=d?d:4;this.T.Gc=this.T.value;Vf(M(),"severity-filtering",-1!=d?"on":"off");Vf(M(),"dir",c.dir);Xf(this)};q.wd=function(a){var b=ua(this.T.value);1<=b&&4>=b?(this.T.Gc=b,Xf(this)):this.T.value=this.T.Gc;a.stopPropagation()};q.rd=function(){Xf(this)};
+q.xd=function(a){alert('You can add a button (a "bookmarklet") to your browser to run BidiChecker on any web page, using the current BidiChecker settings. To do this, just drag the link labeled BidiChecker to your browser\'s bookmarks toolbar. In Google Chrome, press Ctrl-Shift-B to show the bookmarks toolbar.');a.preventDefault()};q.od=function(a){a.preventDefault()};
+var Xf=function(a){var b="on"==Uf("severity-filtering");gc("severity").disabled=!b;b=Sf(Wf(a));a.uc.href=b},Wf=function(a){var b={},c="on"==Uf("severity-filtering");b.severity=c?ua(a.T.value):-1;b.dir=Uf("dir");return b};
diff --git a/src/bidichecker.js b/src/bidichecker.js
index 1bed360..9d1dbf2 100644
--- a/src/bidichecker.js
+++ b/src/bidichecker.js
@@ -167,7 +167,7 @@
   // {@top.document.body} always finds the top level of the current page, even
   // if we started within a frame.
   var nonNullElement =
-      (/** @type {!Element} */ opt_element || top.document.body);
+      /** @type {!Element} */ (opt_element || top.document.body);
   var filters = opt_filters || [];
 
   bidichecker.Error.clearHighlightableAreas();
diff --git a/src/domwalker.js b/src/domwalker.js
index 056ccba..90207e4 100644
--- a/src/domwalker.js
+++ b/src/domwalker.js
@@ -239,7 +239,7 @@
  *     position.
  */
 bidichecker.DomWalker.prototype.getCurrentBlock = function() {
-  return (/** @type {Element} */ goog.array.peek(this.blockStack_));
+  return /** @type {Element} */ (goog.array.peek(this.blockStack_));
 };
 
 
diff --git a/src/errorcollector_test.html b/src/errorcollector_test.html
index b992598..67d09bc 100644
--- a/src/errorcollector_test.html
+++ b/src/errorcollector_test.html
@@ -59,7 +59,7 @@
 
   var collector = new bidichecker.ErrorCollector(new bidichecker.FrameStack());
   var error = new bidichecker.Error('abc', 2);
-  var locationElement = (/** @type {Element} */ testDiv.firstChild);
+  var locationElement = /** @type {Element} */ (testDiv.firstChild);
   collector.addError(error, locationElement);
   assertArrayEquals([error], collector.getErrors());
 
@@ -125,10 +125,10 @@
 
   var frameStack = new bidichecker.FrameStack;
   var collector = new bidichecker.ErrorCollector(frameStack);
-  var frameElement1 = (/** @type {Element} */ testDiv.firstChild);
-  var frameElement2 = (/** @type {Element} */ testDiv.firstChild.firstChild);
+  var frameElement1 = /** @type {Element} */ (testDiv.firstChild);
+  var frameElement2 = /** @type {Element} */ (testDiv.firstChild.firstChild);
   var locationElement =
-      (/** @type {Element} */ testDiv.firstChild.firstChild.firstChild);
+      /** @type {Element} */ (testDiv.firstChild.firstChild.firstChild);
 
   frameStack.push(frameElement1);
   var error1 = new bidichecker.Error('abc', 2);
diff --git a/src/filterfactory.js b/src/filterfactory.js
index 02d7789..5ca1f97 100644
--- a/src/filterfactory.js
+++ b/src/filterfactory.js
@@ -161,7 +161,7 @@
   }
 
   var bareFilters =
-      (/** @type {Array.<!Object>} */ goog.json.parse(opt_filtersJson));
+      /** @type {Array.<!Object>} */ (goog.json.parse(opt_filtersJson));
   return goog.array.map(bareFilters, function(bareFilter) {
     return bidichecker.FilterFactory.constructFilter_(bareFilter);
   });
@@ -451,7 +451,7 @@
  */
 bidichecker.FilterFactory.getStringParam_ = function(bareObject, field) {
   bidichecker.FilterFactory.checkParam_(bareObject, field, 'string');
-  return (/** @type {string} */ bareObject[field]);
+  return /** @type {string} */ (bareObject[field]);
 };
 
 
@@ -464,7 +464,7 @@
  */
 bidichecker.FilterFactory.getNumberParam_ = function(bareObject, field) {
   bidichecker.FilterFactory.checkParam_(bareObject, field, 'number');
-  return (/** @type {number} */ bareObject[field]);
+  return /** @type {number} */ (bareObject[field]);
 };
 
 
@@ -481,7 +481,7 @@
   var field = bareObject[fieldName];
   var pattern;
   if (typeof field == 'string') {
-    pattern = (/** @type {string} */ field);
+    pattern = /** @type {string} */ (field);
   } else if (field instanceof RegExp) {
     pattern = field.source;
   } else {
diff --git a/src/gui/app/options.js b/src/gui/app/options.js
index 17e7e6f..0e146b2 100644
--- a/src/gui/app/options.js
+++ b/src/gui/app/options.js
@@ -289,8 +289,8 @@
       -1;
 
   options.dir = /** @type {string} */
-      bidichecker.gui.app.getRadioButtonGroupValue_(goog.dom.getDomHelper(),
-          'dir');
+      (bidichecker.gui.app.getRadioButtonGroupValue_(goog.dom.getDomHelper(),
+          'dir'));
 
   return options;
 };
diff --git a/src/scanner.js b/src/scanner.js
index 702fee5..cd08554 100644
--- a/src/scanner.js
+++ b/src/scanner.js
@@ -127,7 +127,7 @@
     try {
       // Accessing the body will fail for security reasons if the frame is
       // hosted on a different domain; hence, the try-catch block.
-      var frameBody = (/** @type {!Element} */
+      var frameBody = /** @type {!Element} */ (
           goog.dom.getFrameContentDocument(frame).body);
 
       // We assume we don't know the expected overall directionality of iframes.
@@ -161,9 +161,15 @@
   for (var i = 0; i < detectors.length; ++i) {
     detectors[i].startListening(this);
   }
-
-  this.domWalker_.go();
-  return this.domWalker_.getFrames();
+  try {
+    this.domWalker_.go();
+    return this.domWalker_.getFrames();
+  } finally {
+    goog.dispose(this.domWalker_);
+    this.domWalker_ = null;
+    goog.dispose(this.dirChunkWalker_);
+    this.dirChunkWalker_ = null;
+  }
 };
 
 
diff --git a/src/spilloverdetector.js b/src/spilloverdetector.js
index b4ee3be..52a4753 100644
--- a/src/spilloverdetector.js
+++ b/src/spilloverdetector.js
@@ -101,6 +101,11 @@
   eventHandler.listenOnce(scanner.getDomWalker(),
                           bidichecker.DomWalker.EventTypes.END_OF_DOM,
                           eventHandler.removeAll, false, eventHandler);
+
+  // Temp assignment to convince static analysis we will dispose eventHandler.
+  var eventTarget = /** @type {!goog.events.EventTarget}*/ (
+      scanner.getDomWalker());
+  eventTarget.registerDisposable(eventHandler);
 };
 
 
diff --git a/src/texterrorscanner.js b/src/texterrorscanner.js
index 63bf450..cedde1c 100644
--- a/src/texterrorscanner.js
+++ b/src/texterrorscanner.js
@@ -55,7 +55,7 @@
  *     usually the body.
  * @param {goog.i18n.bidi.Dir} expectedDir Expected overall directionality, or
  *     {@code UNKNOWN} if not applicable.
- * @return {Array.<!bidichecker.Detector>} List of detectors to run.
+ * @return {!Array.<!bidichecker.Detector>} List of detectors to run.
  */
 bidichecker.TextErrorScanner.prototype.buildDetectors = function(
     element, expectedDir) {
@@ -73,7 +73,7 @@
  *     {@code UNKNOWN} if not applicable.
  * @param {!bidichecker.ErrorCollector} errorCollector The error collector.
  * @param {number} revision Revision of checks to run.
- * @return {Array.<!bidichecker.Detector>} List of detectors to run.
+ * @return {!Array.<!bidichecker.Detector>} List of detectors to run.
  */
 bidichecker.TextErrorScanner.buildDetectors = function(element,
                                                        expectedDir,
diff --git a/src/undeclaredfielddetector.js b/src/undeclaredfielddetector.js
index 879bfbb..0a27f0b 100644
--- a/src/undeclaredfielddetector.js
+++ b/src/undeclaredfielddetector.js
@@ -82,6 +82,11 @@
   eventHandler.listenOnce(scanner.getDomWalker(),
                           bidichecker.DomWalker.EventTypes.END_OF_DOM,
                           eventHandler.removeAll, false, eventHandler);
+
+  // Temp assignment to convince static analysis we will dispose eventHandler.
+  var eventTarget = /** @type {!goog.events.EventTarget}*/ (
+      scanner.getDomWalker());
+  eventTarget.registerDisposable(eventHandler);
 };
 
 
diff --git a/src/undeclaredtextdetector.js b/src/undeclaredtextdetector.js
index 796fcf1..7b414f9 100644
--- a/src/undeclaredtextdetector.js
+++ b/src/undeclaredtextdetector.js
@@ -77,6 +77,11 @@
   eventHandler.listenOnce(scanner.getDirChunkWalker(),
                           bidichecker.DirChunkWalker.EventTypes.END_OF_CHUNKS,
                           eventHandler.removeAll, false, eventHandler);
+
+  // Temp assignment to convince static analysis we will dispose eventHandler.
+  var eventTarget = /** @type {!goog.events.EventTarget}*/ (
+      scanner.getDirChunkWalker());
+  eventTarget.registerDisposable(eventHandler);
 };
 
 
@@ -132,7 +137,7 @@
       new bidichecker.Error(message, severity, highlightableArea, match.text);
   this.addAdjacentNeutrals_(chunk.getText(), match, error);
   var locationElement =
-      (/** @type {Element} */ chunk.findNodeAtPosition(match.index).parentNode);
+      /** @type {Element} */ (chunk.findNodeAtPosition(match.index).parentNode);
   this.errorCollector_.addError(error, locationElement);
 };