summaryrefslogtreecommitdiff
path: root/chromium/third_party/bidichecker/bidichecker_packaged.js
blob: 7535ac16d63417e4e0454aef549af7d41d4c1fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
(function (){ function h(a){throw a;}
var i=true,j=null,k=false,m,n=this,aa=function(){},ba=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!=
"undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},p=function(a){return ba(a)=="array"},ca=function(a){var b=ba(a);return b=="array"||b=="object"&&typeof a.length=="number"},s=function(a){return typeof a=="string"},da=function(a){return ba(a)=="function"},ea=function(a){a=ba(a);return a=="object"||a=="array"||a=="function"},ha=function(a){return a[fa]||(a[fa]=++ga)},fa="closure_uid_"+Math.floor(Math.random()*
2147483648).toString(36),ga=0,ia=function(a){return a.call.apply(a.bind,arguments)},ja=function(a,b){var c=b||n;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}},ka=function(){ka=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ia:ja;return ka.apply(j,arguments)},ma=function(a){var b=
Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},na=Date.now||function(){return+new Date},t=function(a,b){var c=a.split("."),d=n;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)if(!c.length&&b!==undefined)d[e]=b;else d=d[e]?d[e]:d[e]={}},v=function(a,b){function c(){}c.prototype=b.prototype;a.k=b.prototype;a.prototype=new c};
Function.prototype.bind=Function.prototype.bind||function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return ka.apply(j,b)}else return ka(this,a)};var oa=function(a){this.stack=Error().stack||"";if(a)this.message=String(a)};v(oa,Error);oa.prototype.name="CustomError";var pa=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a},va=function(a){if(!qa.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(ra,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(sa,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(ta,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(ua,"&quot;");return a},ra=/&/g,sa=/</g,ta=/>/g,ua=/\"/g,qa=/[&<>\"]/,xa=function(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),
e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),g=0;c==0&&g<f;g++){var l=d[g]||"",o=e[g]||"",q=RegExp("(\\d*)(\\D*)","g"),la=RegExp("(\\d*)(\\D*)","g");do{var u=q.exec(l)||["","",""],r=la.exec(o)||["","",""];if(u[0].length==0&&r[0].length==0)break;c=wa(u[1].length==0?0:parseInt(u[1],10),r[1].length==0?0:parseInt(r[1],10))||wa(u[2].length==0,r[2].length==0)||wa(u[2],r[2])}while(c==0)}return c},wa=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0},
ya={},za=function(a){return ya[a]||(ya[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};var Aa=function(a,b){b.unshift(a);oa.call(this,pa.apply(j,b));b.shift();this.Pc=a};v(Aa,oa);Aa.prototype.name="AssertionError";var Ba=function(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var e=c}h(new Aa(""+d,e||[]))}};var w=function(a){return a[a.length-1]},x=Array.prototype,Ca=x.indexOf?function(a,b,c){Ba(a.length!=j);return x.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:c<0?Math.max(0,a.length+c):c;if(s(a)){if(!s(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Da=x.forEach?function(a,b,c){Ba(a.length!=j);x.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)},Ea=function(a,b){for(var c=s(a)?
a.split(""):a,d=a.length-1;d>=0;--d)d in c&&b.call(void 0,c[d],d,a)},Fa=x.map?function(a,b,c){Ba(a.length!=j);return x.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=s(a)?a.split(""):a,g=0;g<d;g++)if(g in f)e[g]=b.call(c,f[g],g,a);return e},Ga=x.every?function(a,b,c){Ba(a.length!=j);return x.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 k;return i},Ha=function(){return x.concat.apply(x,arguments)},Ia=
function(a){if(p(a))return Ha(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},Ja=function(a,b,c){Ba(a.length!=j);return arguments.length<=2?x.slice.call(a,b):x.slice.call(a,b,c)},Ka=function(a,b,c){for(var d=0,e=a.length,f;d<e;){var g=d+e>>1,l;l=b(c,a[g]);if(l>0)d=g+1;else{e=g;f=!l}}return f?d:~d},La=function(a,b){return a>b?1:a<b?-1:0};var y="StopIteration"in n?n.StopIteration:Error("StopIteration"),Ma=function(){};Ma.prototype.next=function(){h(y)};Ma.prototype.Na=function(){return this};
var Na=function(a){if(a instanceof Ma)return a;if(typeof a.Na=="function")return a.Na(k);if(ca(a)){var b=0,c=new Ma;c.next=function(){for(;;){b>=a.length&&h(y);if(b in a)return a[b++];else b++}};return c}h(Error("Not implemented"))},Oa=function(a,b){if(ca(a))try{Da(a,b,void 0)}catch(c){c!==y&&h(c)}else{a=Na(a);try{for(;;)b.call(void 0,a.next(),undefined,a)}catch(d){d!==y&&h(d)}}};var Pa=function(a,b){this.x=a!==undefined?a:0;this.y=b!==undefined?b:0};Pa.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var z=function(a,b){this.width=a;this.height=b};z.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};z.prototype.Ea=function(){return!(this.width*this.height)};z.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};z.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Qa=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},Ra=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Sa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Ta=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ua=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<Ta.length;e++){b=Ta[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},Va=function(){var a=
arguments.length;if(a==1&&p(arguments[0]))return Va.apply(j,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=i;return b};var Wa,Xa,Ya,Za,$a,ab,bb=function(){return n.navigator?n.navigator.userAgent:j},cb=function(){return n.navigator};$a=Za=Ya=Xa=Wa=k;var db;if(db=bb()){var eb=cb();Wa=db.indexOf("Opera")==0;Xa=!Wa&&db.indexOf("MSIE")!=-1;Za=(Ya=!Wa&&db.indexOf("WebKit")!=-1)&&db.indexOf("Mobile")!=-1;$a=!Wa&&!Ya&&eb.product=="Gecko"}var fb=Wa,A=Xa,gb=$a,B=Ya,hb=Za,ib=cb();ab=(ib&&ib.platform||"").indexOf("Mac")!=-1;var jb=!!cb()&&(cb().appVersion||"").indexOf("X11")!=-1,kb;
a:{var lb="",mb;if(fb&&n.opera){var nb=n.opera.version;lb=typeof nb=="function"?nb():nb}else{if(gb)mb=/rv\:([^\);]+)(\)|;)/;else if(A)mb=/MSIE\s+([^\);]+)(\)|;)/;else if(B)mb=/WebKit\/(\S+)/;if(mb){var ob=mb.exec(bb());lb=ob?ob[1]:""}}if(A){var pb,qb=n.document;pb=qb?qb.documentMode:undefined;if(pb>parseFloat(lb)){kb=String(pb);break a}}kb=lb}var rb=kb,sb={},C=function(a){return sb[a]||(sb[a]=xa(rb,a)>=0)};var tb,ub=!A||C("9");A&&C("9");var vb=function(a){var b;b=(b=a.className)&&typeof b.split=="function"?b.split(/\s+/):[];var c;c=Ja(arguments,1);for(var d=0,e=0;e<c.length;e++)if(!(Ca(b,c[e])>=0)){b.push(c[e]);d++}c=d==c.length;a.className=b.join(" ");return c};var G=function(a){return a?new E(F(a)):tb||(tb=new E)},xb=function(a,b,c,d){a=d||a;b=b&&b!="*"?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(!B||wb(document)||C("528"))&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,g;g=a[f];f++)if(b==g.nodeName)d[e++]=g;d.length=e;return d}else return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++){b=g.className;if(typeof b.split=="function"&&
Ca(b.split(/\s+/),c)>=0)d[e++]=g}d.length=e;return d}else return a},zb=function(a,b){Qa(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in yb)a.setAttribute(yb[d],c);else a[d]=c})},yb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"},Ab=function(a){var b=a.document;if(B&&
!C("500")&&!hb){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new z(a.innerWidth,b)}a=wb(b);if(fb&&!C("9.50"))a=k;a=a?b.documentElement:b.body;return new z(a.clientWidth,a.clientHeight)},Bb=function(a){return a?a.parentWindow||a.defaultView:window},Db=function(){return Cb(document,arguments)},Cb=function(a,b){var c=b[0],d=b[1];if(!ub&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',va(d.name),'"');
if(d.type){c.push(' type="',va(d.type),'"');var e={};Ua(e,d);d=e;delete d.type}c.push(">");c=c.join("")}c=a.createElement(c);if(d)if(s(d))c.className=d;else p(d)?vb.apply(j,[c].concat(d)):zb(c,d);b.length>2&&Eb(a,c,b,2);return c},Eb=function(a,b,c,d){function e(g){if(g)b.appendChild(s(g)?a.createTextNode(g):g)}for(;d<c.length;d++){var f=c[d];ca(f)&&!(ea(f)&&f.nodeType>0)?Da(Fb(f)?Ia(f):f,e):e(f)}},wb=function(a){return a.compatMode=="CSS1Compat"},Gb=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},
Hb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},F=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Ib=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){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(F(a).createTextNode(b))}},Fb=function(a){if(a&&typeof a.length=="number")if(ea(a))return typeof a.item=="function"||typeof a.item=="string";
else if(da(a))return typeof a.item=="function";return k},E=function(a){this.h=a||n.document||document};E.prototype.m=G;var Jb=function(a){return a.h};E.prototype.c=function(a){return s(a)?this.h.getElementById(a):a};E.prototype.j=function(){return Cb(this.h,arguments)};E.prototype.createElement=function(a){return this.h.createElement(a)};E.prototype.createTextNode=function(a){return this.h.createTextNode(a)};
var Kb=function(a){a=!B&&wb(a.h)?a.h.documentElement:a.h.body;return new Pa(a.scrollLeft,a.scrollTop)};E.prototype.appendChild=function(a,b){a.appendChild(b)};E.prototype.append=function(a){Eb(F(a),a,arguments,1)};var H=function(a,b,c,d,e){this.n=!!b;a&&Lb(this,a,d);this.la=e!=undefined?e:this.o||0;if(this.n)this.la*=-1;this.Xb=!c};v(H,Ma);H.prototype.q=j;H.prototype.o=0;H.prototype.Kb=k;var Lb=function(a,b,c){if(a.q=b)a.o=typeof c=="number"?c:a.q.nodeType!=1?0:a.n?-1:1};
H.prototype.next=function(){var a;if(this.Kb){if(!this.q||this.Xb&&this.la==0)h(y);a=this.q;var b=this.n?-1:1;if(this.o==b){var c=this.n?a.lastChild:a.firstChild;c?Lb(this,c):Lb(this,a,b*-1)}else(c=this.n?a.previousSibling:a.nextSibling)?Lb(this,c):Lb(this,a.parentNode,b*-1);this.la+=this.o*(this.n?-1:1)}else this.Kb=i;(a=this.q)||h(y);return a};
H.prototype.splice=function(){var a=this.q,b=this.n?1:-1;if(this.o==b){this.o=b*-1;this.la+=this.o*(this.n?-1:1)}this.n=!this.n;H.prototype.next.call(this);this.n=!this.n;b=ca(arguments[0])?arguments[0]:arguments;for(var c=b.length-1;c>=0;c--)a.parentNode&&a.parentNode.insertBefore(b[c],a.nextSibling);Gb(a)};var Mb=new Function("a","return a");var Nb,Ob=!A||C("9"),Pb=A&&!C("8");var Qb=function(){};Qb.prototype.mb=k;Qb.prototype.t=function(){if(!this.mb){this.mb=i;this.g()}};Qb.prototype.g=function(){};var I=function(a,b){this.type=a;this.currentTarget=this.target=b};v(I,Qb);m=I.prototype;m.g=function(){delete this.type;delete this.target;delete this.currentTarget};m.U=k;m.ra=i;m.stopPropagation=function(){this.U=i};m.preventDefault=function(){this.ra=k};var Rb=function(a){a.preventDefault()};var J=function(a,b){a&&this.aa(a,b)};v(J,I);var Sb=[1,4,2];m=J.prototype;m.target=j;m.relatedTarget=j;m.offsetX=0;m.offsetY=0;m.clientX=0;m.clientY=0;m.screenX=0;m.screenY=0;m.button=0;m.keyCode=0;m.charCode=0;m.ctrlKey=k;m.altKey=k;m.shiftKey=k;m.metaKey=k;m.Ac=k;m.u=j;
m.aa=function(a,b){var c=this.type=a.type;I.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(gb)try{Mb(d.nodeName)}catch(e){d=j}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?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||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Ac=ab?a.metaKey:a.ctrlKey;this.state=a.state;this.u=a;delete this.ra;delete this.U};m.stopPropagation=function(){J.k.stopPropagation.call(this);if(this.u.stopPropagation)this.u.stopPropagation();else this.u.cancelBubble=i};
m.preventDefault=function(){J.k.preventDefault.call(this);var a=this.u;if(a.preventDefault)a.preventDefault();else{a.returnValue=k;if(Pb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};m.g=function(){J.k.g.call(this);this.relatedTarget=this.currentTarget=this.target=this.u=j};var K=function(a,b){this.Ab=b;this.R=[];a>this.Ab&&h(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.R.push(this.C?this.C():{})};v(K,Qb);K.prototype.C=j;K.prototype.lb=j;K.prototype.getObject=function(){if(this.R.length)return this.R.pop();return this.C?this.C():{}};var Ub=function(a,b){a.R.length<a.Ab?a.R.push(b):Tb(a,b)},Tb=function(a,b){if(a.lb)a.lb(b);else if(ea(b))if(da(b.t))b.t();else for(var c in b)delete b[c]};
K.prototype.g=function(){K.k.g.call(this);for(var a=this.R;a.length;)Tb(this,a.pop());delete this.R};var Vb;var Wb=(Vb="ScriptEngine"in n&&n.ScriptEngine()=="JScript")?n.ScriptEngineMajorVersion()+"."+n.ScriptEngineMinorVersion()+"."+n.ScriptEngineBuildVersion():"0";var Xb=function(){},Yb=0;m=Xb.prototype;m.key=0;m.ha=k;m.Pa=k;m.aa=function(a,b,c,d,e,f){if(da(a))this.xb=i;else if(a&&a.handleEvent&&da(a.handleEvent))this.xb=k;else h(Error("Invalid listener argument"));this.ca=a;this.Fb=b;this.src=c;this.type=d;this.capture=!!e;this.Da=f;this.Pa=k;this.key=++Yb;this.ha=k};m.handleEvent=function(a){if(this.xb)return this.ca.call(this.Da||this.src,a);return this.ca.handleEvent.call(this.ca,a)};var Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic;
(function(){function a(){return{i:0,v:0}}function b(){return[]}function c(){var r=function(D){return g.call(r.src,r.key,D)};return r}function d(){return new Xb}function e(){return new J}var f=Vb&&!(xa(Wb,"5.7")>=0),g;dc=function(r){g=r};if(f){Zb=function(){return l.getObject()};$b=function(r){Ub(l,r)};ac=function(){return o.getObject()};bc=function(r){Ub(o,r)};cc=function(){return q.getObject()};ec=function(){Ub(q,c())};fc=function(){return la.getObject()};gc=function(r){Ub(la,r)};hc=function(){return u.getObject()};
ic=function(r){Ub(u,r)};var l=new K(0,600);l.C=a;var o=new K(0,600);o.C=b;var q=new K(0,600);q.C=c;var la=new K(0,600);la.C=d;var u=new K(0,600);u.C=e}else{Zb=a;$b=aa;ac=b;bc=aa;cc=c;ec=aa;fc=d;gc=aa;hc=e;ic=aa}})();var jc={},L={},M={},kc={},N=function(a,b,c,d,e){if(b)if(p(b)){for(var f=0;f<b.length;f++)N(a,b[f],c,d,e);return j}else{d=!!d;var g=L;b in g||(g[b]=Zb());g=g[b];if(!(d in g)){g[d]=Zb();g.i++}g=g[d];var l=ha(a),o;g.v++;if(g[l]){o=g[l];for(f=0;f<o.length;f++){g=o[f];if(g.ca==c&&g.Da==e){if(g.ha)break;return o[f].key}}}else{o=g[l]=ac();g.i++}f=cc();f.src=a;g=fc();g.aa(c,f,a,b,d,e);c=g.key;f.key=c;o.push(g);jc[c]=g;M[l]||(M[l]=ac());M[l].push(g);if(a.addEventListener){if(a==n||!a.kb)a.addEventListener(b,
f,d)}else a.attachEvent(lc(b),f);return c}else h(Error("Invalid event type"))},mc=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)mc(a,b[f],c,d,e);return j}a=N(a,b,c,d,e);jc[a].Pa=i;return a},nc=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)nc(a,b[f],c,d,e);else{d=!!d;if(a=oc(a,b,d))for(f=0;f<a.length;f++)if(a[f].ca==c&&a[f].capture==d&&a[f].Da==e){O(a[f].key);break}}},O=function(a){if(jc[a]){var b=jc[a];if(!b.ha){var c=b.src,d=b.type,e=b.Fb,f=b.capture;if(c.removeEventListener){if(c==
n||!c.kb)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(lc(d),e);c=ha(c);e=L[d][f][c];if(M[c]){var g=M[c],l=Ca(g,b);if(l>=0){Ba(g.length!=j);x.splice.call(g,l,1)}g.length==0&&delete M[c]}b.ha=i;e.Bb=i;pc(d,f,c,e);delete jc[a]}}},pc=function(a,b,c,d){if(!d.Fa)if(d.Bb){for(var e=0,f=0;e<d.length;e++)if(d[e].ha){var g=d[e].Fb;g.src=j;ec(g);gc(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Bb=k;if(f==0){bc(d);delete L[a][b][c];L[a][b].i--;if(L[a][b].i==0){$b(L[a][b]);delete L[a][b];L[a].i--}if(L[a].i==
0){$b(L[a]);delete L[a]}}}},qc=function(a){var b,c=0,d=b==j;b=!!b;if(a==j)Qa(M,function(g){for(var l=g.length-1;l>=0;l--){var o=g[l];if(d||b==o.capture){O(o.key);c++}}});else{a=ha(a);if(M[a]){a=M[a];for(var e=a.length-1;e>=0;e--){var f=a[e];if(d||b==f.capture){O(f.key);c++}}}}},oc=function(a,b,c){var d=L;if(b in d){d=d[b];if(c in d){d=d[c];a=ha(a);if(d[a])return d[a]}}return j},lc=function(a){if(a in kc)return kc[a];return kc[a]="on"+a},sc=function(a,b,c,d,e){var f=1;b=ha(b);if(a[b]){a.v--;a=a[b];
if(a.Fa)a.Fa++;else a.Fa=1;try{for(var g=a.length,l=0;l<g;l++){var o=a[l];if(o&&!o.ha)f&=rc(o,e)!==k}}finally{a.Fa--;pc(c,d,b,a)}}return Boolean(f)},rc=function(a,b){var c=a.handleEvent(b);a.Pa&&O(a.key);return c};
dc(function(a,b){if(!jc[a])return i;var c=jc[a],d=c.type,e=L;if(!(d in e))return i;e=e[d];var f,g;if(Nb===undefined)Nb=A&&!n.addEventListener;if(Nb){var l;if(!(l=b))a:{l="window.event".split(".");for(var o=n;f=l.shift();)if(o[f]!=j)o=o[f];else{l=j;break a}l=o}f=l;l=i in e;o=k in e;if(l){if(f.keyCode<0||f.returnValue!=undefined)return i;a:{var q=k;if(f.keyCode==0)try{f.keyCode=-1;break a}catch(la){q=i}if(q||f.returnValue==undefined)f.returnValue=i}}q=hc();q.aa(f,this);f=i;try{if(l){for(var u=ac(),
r=q.currentTarget;r;r=r.parentNode)u.push(r);g=e[i];g.v=g.i;for(var D=u.length-1;!q.U&&D>=0&&g.v;D--){q.currentTarget=u[D];f&=sc(g,u[D],d,i,q)}if(o){g=e[k];g.v=g.i;for(D=0;!q.U&&D<u.length&&g.v;D++){q.currentTarget=u[D];f&=sc(g,u[D],d,k,q)}}}else f=rc(c,q)}finally{if(u){u.length=0;bc(u)}q.t();ic(q)}return f}d=new J(b,this);try{f=rc(c,d)}finally{d.t()}return f});var P=function(a){this.ab=a};v(P,Qb);
var tc=new K(0,100),uc=[],Q=function(a,b,c,d,e){if(!p(c)){uc[0]=c;c=uc}for(var f=0;f<c.length;f++)vc(a,N(b,c[f],d||a,e||k,a.ab||a));return a},wc=function(a,b,c,d,e,f){if(p(c))for(var g=0;g<c.length;g++)wc(a,b,c[g],d,e,f);else vc(a,mc(b,c,d||a,e||k,f||a.ab||a))},vc=function(a,b){if(a.a)a.a[b]=i;else if(a.L){a.a=tc.getObject();a.a[a.L]=i;a.L=j;a.a[b]=i}else a.L=b},xc=function(a,b,c,d,e,f){if(a.L||a.a)if(p(c))for(var g=0;g<c.length;g++)xc(a,b,c[g],d,e,f);else{a:{d=d||a;f=f||a.ab||a;e=!!e;if(b=oc(b,c,
e))for(c=0;c<b.length;c++)if(b[c].ca==d&&b[c].capture==e&&b[c].Da==f){b=b[c];break a}b=j}if(b){b=b.key;O(b);if(a.a){c=a.a;b in c&&delete c[b]}else if(a.L==b)a.L=j}}return a};P.prototype.ga=function(){if(this.a){for(var a in this.a){O(a);delete this.a[a]}Ub(tc,this.a);this.a=j}else this.L&&O(this.L)};P.prototype.g=function(){P.k.g.call(this);this.ga()};P.prototype.handleEvent=function(){h(Error("EventHandler.handleEvent not implemented"))};var R=function(){};v(R,Qb);m=R.prototype;m.kb=i;m.Ha=j;m.fb=function(a){this.Ha=a};m.addEventListener=function(a,b,c,d){N(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){nc(this,a,b,c,d)};
m.dispatchEvent=function(a){var b=a.type||a,c=L;if(b in c){if(s(a))a=new I(a,this);else if(a instanceof I)a.target=a.target||this;else{var d=a;a=new I(b,this);Ua(a,d)}d=1;var e;c=c[b];b=i in c;var f;if(b){e=[];for(f=this;f;f=f.Ha)e.push(f);f=c[i];f.v=f.i;for(var g=e.length-1;!a.U&&g>=0&&f.v;g--){a.currentTarget=e[g];d&=sc(f,e[g],a.type,i,a)&&a.ra!=k}}if(k in c){f=c[k];f.v=f.i;if(b)for(g=0;!a.U&&g<e.length&&f.v;g++){a.currentTarget=e[g];d&=sc(f,e[g],a.type,k,a)&&a.ra!=k}else for(e=this;!a.U&&e&&f.v;e=
e.Ha){a.currentTarget=e;d&=sc(f,e,a.type,k,a)&&a.ra!=k}}a=Boolean(d)}else a=i;return a};m.g=function(){R.k.g.call(this);qc(this);this.Ha=j};var yc=function(a){a=String(a);var b;b=/^\s*$/.test(a)?k:/^[\],:{}\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,""));if(b)try{return eval("("+a+")")}catch(c){}h(Error("Invalid JSON string: "+a))},zc=function(){},Bc=function(a,b,c){switch(typeof b){case "string":Ac(a,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==j){c.push("null");break}if(p(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++){c.push(e);Bc(a,b[f],c);e=","}c.push("]");break}c.push("{");d="";for(e in b)if(Object.prototype.hasOwnProperty.call(b,e)){f=b[e];if(typeof f!="function"){c.push(d);Ac(a,e,c);c.push(":");Bc(a,f,c);d=","}}c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}},Cc={'"':'\\"',"\\":"\\\\","/":"\\/",
"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Dc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Ac=function(a,b,c){c.push('"',b.replace(Dc,function(d){if(d in Cc)return Cc[d];var e=d.charCodeAt(0),f="\\u";if(e<16)f+="000";else if(e<256)f+="00";else if(e<4096)f+="0";return Cc[d]=f+e.toString(16)}),'"')};var Ec=function(a){this.w=Vb?[]:"";a!=j&&this.append.apply(this,arguments)};Ec.prototype.N=function(a){this.clear();this.append(a)};if(Vb){Ec.prototype.Oa=0;Ec.prototype.append=function(a,b){if(b==j)this.w[this.Oa++]=a;else{this.w.push.apply(this.w,arguments);this.Oa=this.w.length}return this}}else Ec.prototype.append=function(a,b){this.w+=a;if(b!=j)for(var c=1;c<arguments.length;c++)this.w+=arguments[c];return this};Ec.prototype.clear=function(){if(Vb)this.Oa=this.w.length=0;else this.w=""};
Ec.prototype.toString=function(){if(Vb){var a=this.w.join("");this.clear();a&&this.append(a);return a}else return this.w};var Fc=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};Fc.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};var Hc=function(a,b){s("background-color")?Gc(a,b,"background-color"):Qa("background-color",ma(Gc,a))},Gc=function(a,b,c){a.style[za(c)]=b},Ic=function(a,b){var c=F(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,j))return c[b]||c.getPropertyValue(b);return""},S=function(a,b){return Ic(a,b)||(a.currentStyle?a.currentStyle[b]:j)||a.style[b]},Kc=function(a,b,c){var d,e=gb&&(ab||jb)&&C("1.9");if(b instanceof Pa){d=b.x;b=b.y}else{d=b;b=c}a.style.left=Jc(d,e);
a.style.top=Jc(b,e)},Lc=function(a){if(A)return a.offsetParent;var b=F(a),c=S(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=S(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return j},Mc=function(a){var b,c=F(a),d=S(a,"position"),e=gb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<
0),f=new Pa(0,0),g;b=c?c.nodeType==9?c:F(c):document;if(g=A){g=G(b);g=!wb(g.h)}g=g?b.body:b.documentElement;if(a==g)return f;if(a.getBoundingClientRect){d=a.getBoundingClientRect();if(A){a=a.ownerDocument;d.left-=a.documentElement.clientLeft+a.body.clientLeft;d.top-=a.documentElement.clientTop+a.body.clientTop}b=d;c=Kb(G(c));f.x=b.left+c.x;f.y=b.top+c.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);c=c.getBoxObjectFor(g);f.x=b.screenX-c.screenX;f.y=b.screenY-c.screenY}else{e=a;do{f.x+=e.offsetLeft;
f.y+=e.offsetTop;if(e!=a){f.x+=e.clientLeft||0;f.y+=e.clientTop||0}if(B&&S(e,"position")=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(fb||B&&d=="absolute")f.y-=c.body.offsetTop;for(e=a;(e=Lc(e))&&e!=c.body&&e!=g;){f.x-=e.scrollLeft;if(!fb||e.tagName!="TR")f.y-=e.scrollTop}}return f},Nc=function(a,b,c){if(b instanceof z){c=b.height;b=b.width}else c==undefined&&h(Error("missing height argument"));a.style.width=Jc(b,i);a.style.height=Jc(c,i)},Jc=function(a,
b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a},Oc=function(a){var b=fb&&!C("10");if(S(a,"display")!="none")return b?new z(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new z(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=e;return new z(b,
a)},Pc=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="+b*100+")"},T=function(a,b){a.style.display=b?"":"none"},Qc=function(a,b){if(A)a.cssText=b;else a[B?"innerText":"innerHTML"]=b};var Rc=function(a){a.setAttribute("role","dialog");a.Qc="dialog"};var Sc=function(a){this.b=a;a=A?"focusout":"blur";this.qc=N(this.b,A?"focusin":"focus",this,!A);this.rc=N(this.b,a,this,!A)};v(Sc,R);Sc.prototype.handleEvent=function(a){var b=new J(a.u);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.t()}};Sc.prototype.g=function(){Sc.k.g.call(this);O(this.qc);O(this.rc);delete this.b};var Tc=function(a,b,c){this.target=a;this.handle=b||a;this.bb=c||new Fc(NaN,NaN,NaN,NaN);this.h=F(a);this.l=new P(this);N(this.handle,["touchstart","mousedown"],this.Hb,k,this)};v(Tc,R);var Uc=A||gb&&C("1.9.3");m=Tc.prototype;m.clientX=0;m.clientY=0;m.screenX=0;m.screenY=0;m.Ib=0;m.Jb=0;m.ja=0;m.ka=0;m.ob=i;m.K=k;m.ub=0;m.tc=0;m.oc=k;m.X=function(){return this.l};
m.g=function(){Tc.k.g.call(this);nc(this.handle,["touchstart","mousedown"],this.Hb,k,this);this.l.t();delete this.target;delete this.handle;delete this.l};
m.Hb=function(a){var b=a.type=="mousedown";if(this.ob&&!this.K&&(!b||(Ob?a.u.button==0:a.type=="click"||a.u.button&Sb[0])&&!(B&&ab&&a.ctrlKey))){Vc(this,a);if(this.ub==0){Wc(this,a);if(this.K)a.preventDefault();else return}else a.preventDefault();b=this.h;var c=b.documentElement,d=!Uc;Q(this.l,b,["touchmove","mousemove"],this.lc,d);Q(this.l,b,["touchend","mouseup"],this.za,d);if(Uc){c.setCapture(k);Q(this.l,c,"losecapture",this.za)}else Q(this.l,Bb(b),"blur",this.za);A&&this.oc&&Q(this.l,b,"dragstart",
Rb);this.Fc&&Q(this.l,this.Fc,"scroll",this.xc,d);this.clientX=this.Ib=a.clientX;this.clientY=this.Jb=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.ja=this.target.offsetLeft;this.ka=this.target.offsetTop;this.qa=Kb(G(this.h));this.tc=na()}};var Wc=function(a,b){if(a.dispatchEvent(new Xc("start",a,b.clientX,b.clientY,b))!==k)a.K=i};
Tc.prototype.za=function(a,b){this.l.ga();Uc&&this.h.releaseCapture();if(this.K){Vc(this,a);this.K=k;this.dispatchEvent(new Xc("end",this,a.clientX,a.clientY,a,Yc(this,this.ja),Zc(this,this.ka),b||a.type=="touchcancel"))}if(a.type=="touchend"||a.type=="touchcancel")a.preventDefault()};var Vc=function(a,b){var c=b.type;if(c=="touchstart"||c=="touchmove")b.aa(b.u.targetTouches[0],b.currentTarget);else if(c=="touchend"||c=="touchcancel")b.aa(b.u.changedTouches[0],b.currentTarget)};
Tc.prototype.lc=function(a){if(this.ob){Vc(this,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.K){var d=this.Ib-this.clientX,e=this.Jb-this.clientY;if(d*d+e*e>this.ub){Wc(this,a);if(!this.K){this.za(a);return}}}c=$c(this,b,c);b=c.x;c=c.y;if(this.K)if(this.dispatchEvent(new Xc("beforedrag",this,a.clientX,a.clientY,a,b,c))!==k){ad(this,a,b,c,k);a.preventDefault()}}};
var $c=function(a,b,c){var d=Kb(G(a.h));b+=d.x-a.qa.x;c+=d.y-a.qa.y;a.qa=d;a.ja+=b;a.ka+=c;return new Pa(Yc(a,a.ja),Zc(a,a.ka))};Tc.prototype.xc=function(a){var b=$c(this,0,0);a.clientX=this.qa.x-this.clientX;a.clientY=this.qa.y-this.clientY;ad(this,a,b.x,b.y,i)};
var ad=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new Xc("drag",a,b.clientX,b.clientY,b,c,d))},Yc=function(a,b){var c=a.bb,d=!isNaN(c.left)?c.left:j;c=!isNaN(c.width)?c.width:0;return Math.min(d!=j?d+c:Infinity,Math.max(d!=j?d:-Infinity,b))},Zc=function(a,b){var c=a.bb,d=!isNaN(c.top)?c.top:j;c=!isNaN(c.height)?c.height:0;return Math.min(d!=j?d+c:Infinity,Math.max(d!=j?d:-Infinity,b))},Xc=function(a,b,c,d,e,f,g,l){I.call(this,a);this.clientX=c;this.clientY=
d;this.Mc=e;this.left=f!==undefined?f:b.ja;this.top=g!==undefined?g:b.ka;this.Oc=b;this.Nc=!!l};v(Xc,I);var bd=function(a){if(typeof a.Ca=="function")return a.Ca();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 Ra(a)},cd=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ca(a)||s(a))Da(a,b,c);else{var d;if(typeof a.Za=="function")d=a.Za();else if(typeof a.Ca!="function")if(ca(a)||s(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Sa(a);else d=void 0;e=bd(a);f=e.length;for(var g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};var U=function(a){this.M={};this.a=[];var b=arguments.length;if(b>1){b%2&&h(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.N(arguments[c],arguments[c+1])}else if(a){if(a instanceof U){b=a.Za();c=a.Ca()}else{b=Sa(a);c=Ra(a)}for(var d=0;d<b.length;d++)this.N(b[d],c[d])}};m=U.prototype;m.i=0;m.La=0;m.Ca=function(){dd(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.M[this.a[b]]);return a};m.Za=function(){dd(this);return this.a.concat()};m.Ea=function(){return this.i==0};
m.clear=function(){this.M={};this.La=this.i=this.a.length=0};var dd=function(a){if(a.i!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];if(Object.prototype.hasOwnProperty.call(a.M,d))a.a[c++]=d;b++}a.a.length=c}if(a.i!=a.a.length){var e={};for(c=b=0;b<a.a.length;){d=a.a[b];if(!Object.prototype.hasOwnProperty.call(e,d)){a.a[c++]=d;e[d]=1}b++}a.a.length=c}};U.prototype.get=function(a,b){if(Object.prototype.hasOwnProperty.call(this.M,a))return this.M[a];return b};
U.prototype.N=function(a,b){if(!Object.prototype.hasOwnProperty.call(this.M,a)){this.i++;this.a.push(a);this.La++}this.M[a]=b};U.prototype.Na=function(a){dd(this);var b=0,c=this.a,d=this.M,e=this.La,f=this,g=new Ma;g.next=function(){for(;;){e!=f.La&&h(Error("The map has changed since the iterator was created"));b>=c.length&&h(y);var l=c[b++];return a?l:d[l]}};return g};var ed=n.window;var fd=function(){};(function(a){a.rb=function(){return a.pc||(a.pc=new a)}})(fd);fd.prototype.Cb=0;fd.rb();var V=function(a){this.ya=a||G();this.Dc=gd};v(V,R);V.prototype.vb=fd.rb();var gd=j;m=V.prototype;m.$=j;m.G=k;m.b=j;m.Dc=j;m.sc=j;m.fa=j;m.va=j;m.ua=j;m.Kc=k;m.c=function(){return this.b};m.X=function(){return this.Z||(this.Z=new P(this))};m.fb=function(a){this.fa&&this.fa!=a&&h(Error("Method not supported"));V.k.fb.call(this,a)};m.m=function(){return this.ya};m.j=function(){this.b=this.ya.createElement("div")};
m.ia=function(a){this.G&&h(Error("Component already rendered"));this.b||this.j();a?a.insertBefore(this.b,j):this.ya.h.body.appendChild(this.b);if(!this.fa||this.fa.G)this.Aa()};m.Aa=function(){this.G=i;hd(this,function(a){!a.G&&a.c()&&a.Aa()})};m.na=function(){hd(this,function(a){a.G&&a.na()});this.Z&&this.Z.ga();this.G=k};
m.g=function(){V.k.g.call(this);this.G&&this.na();if(this.Z){this.Z.t();delete this.Z}hd(this,function(a){a.t()});!this.Kc&&this.b&&Gb(this.b);this.fa=this.sc=this.b=this.ua=this.va=j};var hd=function(a,b){a.va&&Da(a.va,b,void 0)};
V.prototype.removeChild=function(a,b){if(a){var c=s(a)?a:a.$||(a.$=":"+(a.vb.Cb++).toString(36)),d;if(this.ua&&c){d=this.ua;d=c in d?d[c]:void 0;d=d||j}else d=j;a=d;if(c&&a){d=this.ua;c in d&&delete d[c];c=this.va;d=Ca(c,a);if(d>=0){Ba(c.length!=j);x.splice.call(c,d,1)}if(b){a.na();a.b&&Gb(a.b)}c=a;c==j&&h(Error("Unable to set parent component"));c.fa=j;V.k.fb.call(c,j)}}a||h(Error("Child is not in parent component"));return a};var W=function(a,b,c){V.call(this,c);this.s=a||"modal-dialog";this.ib=!!b;this.r=id()};v(W,V);m=W.prototype;m.Ba=j;m.$b=i;m.sb=i;m.ib=k;m.pa=i;m.nb=i;m.Tb=0.5;m.Ob="";m.Sa="";m.r=j;m.V=j;m.jb=k;m.Yb=k;m.f=j;m.e=j;m.Ka=j;m.ta=j;m.Nb=j;m.Ja=j;m.wa=j;m.z=j;
m.j=function(){jd(this);var a=this.m();this.b=a.j("div",{className:this.s,tabIndex:0},this.Ka=a.j("div",{className:this.s+"-title",id:this.$||(this.$=":"+(this.vb.Cb++).toString(36))},this.ta=a.j("span",this.s+"-title-text",this.Ob),this.Ja=a.j("span",this.s+"-title-close")),this.wa=a.j("div",this.s+"-content"),this.z=a.j("div",this.s+"-buttons"),this.Lb=a.j("span",{tabIndex:0}));this.Nb=this.Ka.id;Rc(this.c());this.c().setAttribute("aria-labelledby",this.Nb||"");if(this.Sa)this.wa.innerHTML=this.Sa;
T(this.Ja,this.sb);T(this.c(),k);if(this.r){a=this.r;a.b=this.z;a.ia()}};var jd=function(a){if(a.ib&&a.pa&&!a.e){var b;b=a.m().j("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});a.e=b;a.e.className=a.s+"-bg";T(a.e,k);Pc(a.e,0)}else if((!a.ib||!a.pa)&&a.e){Gb(a.e);a.e=j}if(a.pa&&!a.f){a.f=a.m().j("div",a.s+"-bg");Pc(a.f,a.Tb);T(a.f,k)}else if(!a.pa&&a.f){Gb(a.f);a.f=j}};
W.prototype.ia=function(a){this.G&&h(Error("Component already rendered"));this.c()||this.j();a=a||Jb(this.m()).body;this.e&&a.appendChild(this.e);this.f&&a.appendChild(this.f);W.k.ia.call(this,a)};
W.prototype.Aa=function(){W.k.Aa.call(this);this.Ba=new Sc(Jb(this.m()));if(this.nb&&!this.V){var a=new Tc(this.c(),this.Ka);vb(this.Ka,this.s+"-title-draggable");this.V=a}Q(Q(this.X(),this.Ja,"click",this.yc),this.Ba,"focusin",this.wc);Rc(this.c());this.ta.id!==""&&this.c().setAttribute("aria-labelledby",this.ta.id)};W.prototype.na=function(){this.jb&&kd(this,k);this.Ba.t();this.Ba=j;if(this.V){this.V.t();this.V=j}W.k.na.call(this)};
var kd=function(a,b){if(b!=a.jb){var c=Jb(a.m()),d=Bb(c)||window;a.G||a.ia(c.body);if(b){ld(a);md(a);Q(Q(Q(a.X(),a.c(),"keydown",a.Ga),a.c(),"keypress",a.Ga),d,"resize",a.Eb)}else xc(xc(xc(a.X(),a.c(),"keydown",a.Ga),a.c(),"keypress",a.Ga),d,"resize",a.Eb);a.e&&T(a.e,b);a.f&&T(a.f,b);T(a.c(),b);b&&a.focus();if(a.jb=b)Q(a.X(),a.z,"click",a.Db);else{xc(a.X(),a.z,"click",a.Db);a.dispatchEvent("afterhide");a.Yb&&a.t()}}};
W.prototype.focus=function(){try{this.c().focus()}catch(a){}if(this.r){var b=this.r.xa;if(b)for(var c=Jb(this.m()),d=this.z.getElementsByTagName("button"),e=0,f;f=d[e];e++)if(f.name==b){try{if(B||fb){var g=c.createElement("input");g.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.c().appendChild(g);g.focus();this.c().removeChild(g)}f.focus()}catch(l){}break}}};
var ld=function(a){a.e&&T(a.e,k);a.f&&T(a.f,k);var b=Jb(a.m()),c=Ab(Bb(b)||window||window),d=Math.max(b.body.scrollWidth,c.width);b=Math.max(b.body.scrollHeight,c.height);if(a.e){T(a.e,i);Nc(a.e,d,b)}if(a.f){T(a.f,i);Nc(a.f,d,b)}if(a.nb){c=Oc(a.c());a.V.bb=new Fc(0,0,d-c.width,b-c.height)}},md=function(a){var b=Jb(a.m()),c=Bb(b)||window;if(S(a.c(),"position")=="fixed")var d=b=0;else{d=Kb(a.m());b=d.x;d=d.y}var e=Oc(a.c());c=Ab(c||window);Kc(a.c(),Math.max(b+c.width/2-e.width/2,0),Math.max(d+c.height/
2-e.height/2,0))};m=W.prototype;m.yc=function(){if(this.sb){var a=this.r,b=a&&a.Qa;if(b){a=a.get(b);this.dispatchEvent(new nd(b,a))&&kd(this,k)}else kd(this,k)}};m.g=function(){W.k.g.call(this);if(this.f){Gb(this.f);this.f=j}if(this.e){Gb(this.e);this.e=j}this.Lb=this.z=this.Ja=j};m.Db=function(a){a:{for(a=a.target;a!=j&&a!=this.z;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=j}if(a&&!a.disabled){a=a.name;var b=this.r.get(a);this.dispatchEvent(new nd(a,b))&&kd(this,k)}};
m.Ga=function(a){var b=k,c=k,d=this.r,e=a.target;if(a.type=="keydown")if(this.$b&&a.keyCode==27){var f=d&&d.Qa;e=e.tagName=="SELECT"&&!e.disabled;if(f&&!e){c=i;b=d.get(f);b=this.dispatchEvent(new nd(f,b))}else e||(b=i)}else{if(a.keyCode==9&&a.shiftKey&&e==this.c())c=i}else if(a.keyCode==13){if(e.tagName=="BUTTON")f=e.name;else if(d){var g=d.xa,l;if(l=g)a:{l=d.b.getElementsByTagName("BUTTON");for(var o=0,q;q=l[o];o++)if(q.name==g||q.id==g){l=q;break a}l=j}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT")&&
!e.disabled;if(l&&!l.disabled&&!e)f=g}if(f){c=i;b=this.dispatchEvent(new nd(f,String(d.get(f))))}}if(b||c){a.stopPropagation();a.preventDefault()}b&&kd(this,k)};m.Eb=function(){ld(this)};m.wc=function(a){if(this.Lb==a.target){a=this.cc;if(da(a)){if(this)a=ka(a,this)}else if(a&&typeof a.handleEvent=="function")a=ka(a.handleEvent,a);else h(Error("Invalid listener argument"));ed.setTimeout(a,0)}};m.cc=function(){A&&Jb(this.m()).body.focus();this.c().focus()};
var nd=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};v(nd,I);var X=function(a){this.ya=a||G();U.call(this)};v(X,U);m=X.prototype;m.s="goog-buttonset";m.xa=j;m.b=j;m.Qa=j;m.N=function(a,b,c,d){U.prototype.N.call(this,a,b);if(c)this.xa=a;if(d)this.Qa=a;return this};var Y=function(a,b,c,d){return a.N(b.key,b.caption,c,d)};
X.prototype.ia=function(){if(this.b){this.b.innerHTML="";var a=G(this.b);cd(this,function(b,c){var d=a.j("button",{name:c},b);if(c==this.xa)d.className=this.s+"-default";this.b.appendChild(d)},this)}};var od={key:"ok",caption:"OK"},pd={key:"cancel",caption:"Cancel"},qd={key:"yes",caption:"Yes"},rd={key:"no",caption:"No"},id=function(){return Y(Y(new X,od,i),pd,k,i)};Y(new X,od,i,i);id();Y(Y(new X,qd,i),rd,k,i);Y(Y(Y(new X,qd),rd,i),pd,k,i);
Y(Y(Y(new X,{key:"continue",caption:"Continue"}),{key:"save",caption:"Save"}),pd,i,i);var sd=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"),td=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"),ud=RegExp("^[\u0000-\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]*[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff]"),vd=RegExp("[\u0000-\u0008\u000e-\u001f!-@[-`{-\u0084\u0086-\u009f\u00a1-\u00bf\u00d7\u00f7\u02b9-\u02ff\u200b-\u200d\u2010-\u2027\u2030-\u205e\u2060-\u2bff][\u0000-\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]*$"),
wd=RegExp("[\u0000-\u001f\u0085\u00a0\u1680\u180e\u2000-\u200f\u2028\u2029\u202f\u205f\u3000]"),xd=RegExp("^[\u0000-\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]+$"),yd=RegExp("^[\u0000-\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]+$"),
zd=RegExp("^[\u0000-\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"),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=sd.exec(a);)b.push(new Bd(c[0],
c.index));return b},Dd=function(a){for(var b=[],c;c=td.exec(a);)a.charAt(c.index-1)=="\u202e"&&a.charAt(c.index+c[0].length)=="\u202c"||b.push(new Bd(c[0],c.index));return b},Ed=function(a){if(a=zd.exec(a))return new Bd(a[0],0);return j},Fd={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t",'"':'\\"',"'":"\\'","\\":"\\\\"},Gd=function(a){for(var b=[],c=0;c<a.length;c++){var d=b,e=c,f;f=a.charAt(c);if(f in Fd)f=Fd[f];else{var g=f;if(wd.test(f)){var l=f.charCodeAt(0);g="\\u";if(l<4096){g+=
"0";if(l<256){g+="0";if(l<16)g+="0"}}g+=l.toString(16)}f=Fd[f]=g}d[e]=f}return b.join("")},Hd=function(a){return a.nodeName+"="+("'"+Gd(a.nodeValue)+"'")},Id=function(a){var b=[];if(a.attributes)for(var c=0;c<a.attributes.length;++c){var d=a.attributes[c];if(d.specified===undefined||d.specified)b.push(d)}a=[a.nodeName.toLowerCase()];b=Fa(b,Hd);b.sort();a=a.concat(b);return"<"+a.join(" ")+">"},Jd=function(a){for(var b=[];a;a=a.parentNode){b.push(Id(a));if(a.id||a.nodeName=="BODY")break}b.reverse();
return b.join("")},Kd=function(a){var b=[],c=new H(a);Oa(c,function(){c.q.nodeType==3&&b.push(c.q.data)});return b.join("")},Ld=Va("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=Va("inline","inline-block","inline-table"),Nd={element:j,style:j},Od=function(a){if(Nd.element==a)return Nd.style;
var b=(a.currentStyle?a.currentStyle.display:j)||Ic(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(a.nodeType==1){if(a.nodeName=="SCRIPT"||a.nodeName=="STYLE"||a.nodeName=="NOSCRIPT")return k;return Od(a)!="none"}return i};var Rd=function(a,b,c){this.T=a;this.Hc=b;this.Zb=c;this.S=[]};Rd.prototype.tb=function(){if(this.S.length==0)for(var a=0;a<this.T.length;++a)this.S.push(Sd(this.T[a],a==0?this.Hc:0,a==this.T.length-1?this.Zb:this.T[a].length));else for(a=0;a<this.S.length;++a)Hb(this.S[a],this.T[a]);return Mc(this.S[0])};Rd.prototype.Pb=function(){if(this.S.length!=0)for(var a=0;a<this.T.length;++a)Hb(this.T[a],this.S[a])};
var Sd=function(a,b,c){b=b||0;c=c||a.data.length;var d=[];b>0&&d.push(a.data.substring(0,b));d.push(Db("span",{style:"color:red; background-color:yellow"},a.data.substring(b,c)));c<a.data.length&&d.push(a.data.substring(c));b=Db("span",j,d);Hb(b,a);return b};var Td=function(a){this.b=a};Td.prototype.eb=j;Td.prototype.tb=function(){this.eb=S(this.b,"backgroundColor");Hc(this.b,"yellow");return Mc(this.b)};Td.prototype.Pb=function(){this.eb!=j&&Hc(this.b,this.eb)};var Z=function(a,b,c,d){if(typeof a=="object"){b=["id","type","severity","atText","locationDescription","precededByText","followedByText"];c=["id","type","severity"];for(d=0;d<b.length;++d){var e=b[d];this[e]=e in a?a[e]:j;this[e]==j&&Ca(c,e)>=0&&h("Required field '"+e+"' not found in bidichecker.Error.")}}else{b==undefined&&h("Required parameter 'opt_severity' not found in bidichecker.Error.");this.id=Ud++;this.type=a;this.severity=b;Vd[this.id]=c||j;this.atText=d||j}};
Z.prototype.precededByText=j;Z.prototype.followedByText=j;Z.prototype.locationDescription=j;Z.prototype.asString=j;var Ud=0,Vd=[];Z.prototype.Y=function(){return Vd[this.id]||j};Z.prototype.toString=function(){var a=new Ec("[",this.severity.toString(),"] ",this.type),b;if(b=this.atText)a.append(": ","'"+Gd(b)+"'");if(b=this.precededByText)a.append(" preceded by ","'"+Gd(b)+"'");if(b=this.followedByText)a.append(" followed by ","'"+Gd(b)+"'");if(b=this.locationDescription)a.append(" in ",b);return a.toString()};var Wd=function(a){this.A=a;this.p=0;this.qb=this.Q=this.P=j};Wd.prototype.kc=function(){var a;if(/[^0-9]/.test(this.Q.value))a=-1;else{a=this.Q.value;var b=Number(a);a=b==0&&/^[\s\xa0]*$/.test(a)?NaN:b;a-=1}if(a>=0&&a<this.A.length&&a!=this.p){Xd(this);this.p=a;this.Q.value=this.p+1;Yd(this)}else this.Q.value=this.p+1};Wd.prototype.gc=function(a){a=a.key=="next"?this.p==this.A.length-1?0:this.p+1:this.p==0?this.A.length-1:this.p-1;Xd(this);this.p=a;this.Q.value=this.p+1;Yd(this);return k};
var Yd=function(a){var b=a.A[a.p],c=b.Y();if(c){var d=c.tb();c=window.scrollY;window.scrollTo(0,d.y-100);d=new Pa(a.P.offsetLeft,a.P.offsetTop);Kc(a.P,d.x,d.y+(window.scrollY-c))}Ib(a.qb,b.toString())},Xd=function(a){(a=a.A[a.p].Y())&&a.Pb()};var Zd=function(a,b){this.Ra=a;this.q=b},$d=function(a){this.ea=[new Zd(0,a)];this.zb=a};$d.prototype.append=function(a,b){if(this.zb!=b){this.ea.push(new Zd(a,b));this.zb=b}};var ae=function(a,b){var c=Ka(a.ea,function(d,e){return d-e.Ra}||La,b);return c>=0?c:-c-2};$d.prototype.Wa=function(a){return this.ea[ae(this,a)].q};$d.prototype.Y=function(a,b){for(var c=ae(this,a),d=ae(this,a+b-1),e=[],f=c;f<=d;++f)e.push(this.ea[f].q);return new Rd(e,a-this.ea[c].Ra,a+b-this.ea[d].Ra)};
var be=function(a,b,c,d,e){this.yb=b;this.wb=e;this.Ub=d;this.hb=[a];this.Mb=a.length;this.cb=new $d(c)};be.prototype.Ia=j;be.prototype.Ea=function(){return Ga(this.hb,function(a){return a.length==0})};be.prototype.append=function(a,b){this.cb.append(this.Mb,b);this.Mb+=a.length;this.hb.push(a);this.Ia=j};var ce=function(a){if(a.Ia===j)a.Ia=a.hb.join("");return a.Ia};be.prototype.Wa=function(a){return this.cb.Wa(a)};be.prototype.Y=function(a,b){return this.cb.Y(a,b)};var de=new be("",k,j,j,k);var ee=function(a){this.da=new H(a);this.Ec=a;this.B=["rtl"==S(a,"direction")];this.ba=[];this.O=[a];this.W=[]};v(ee,R);ee.prototype.H=j;ee.prototype.go=function(){try{for(;;fe(this));}catch(a){a!==y?h(a):this.dispatchEvent("EndOfDom")}};
var fe=function(a){for(var b=a.da.next();a.da.o==1&&!Qd(b);){b=a.da;var c=b.n?-1:1;if(b.o==c){b.o=c*-1;b.la+=b.o*(b.n?-1:1)}b=a.da.next()}a.H=b;if(a.da.o==1){b=a.H;c="rtl"==S(b,"direction");a.ba.push(w(a.ba)||c!=w(a.B)||ge(a,b));a.B.push(c);if(b.nodeName=="IFRAME"||b.nodeName=="FRAME")a.W.push(b);else Pd(b)&&a.O.push(b);a.dispatchEvent("StartTag")}else if(a.da.o==-1){a.dispatchEvent("EndTag");a.B.pop();a.ba.pop();a.H==w(a.O)&&a.O.pop()}else a.H.nodeType==3&&a.dispatchEvent("TextNode")};
ee.prototype.Ya=function(){return this.W};var ge=function(a,b){if(!b.dir||b==a.Ec)return k;for(var c=b.firstChild;c;c=c.nextSibling)if(c.nodeType==1&&Pd(c))return k;return i};var he=function(a){this.J=de;this.l=new P(this);Q(this.l,a,"TextNode",this.$a);wc(this.l,a,"EndOfDom",this.ic)};v(he,R);he.prototype.$a=function(a){a=a.target;var b=a.H;if(w(a.B)==this.J.yb&&w(a.O)==this.J.Ub&&w(a.ba)==this.J.wb)this.J.append(b.data,b);else{this.J.Ea()||this.dispatchEvent("DirChunk");this.J=new be(b.data,w(a.B),b,w(a.O),w(a.ba))}};he.prototype.ic=function(){this.J.Ea()||this.dispatchEvent("DirChunk");this.dispatchEvent("EndOfChunks");this.l.ga()};var ie=function(a){this.Ma=a};var $=function(){};t("bidichecker.FilterFactory.ComposableFilter",$);$.prototype.Qb=function(a){return je(this,a)};$.prototype.and=$.prototype.Qb;$.prototype.vc=function(){return ke(this)};$.prototype.not=$.prototype.vc;$.prototype.zc=function(a){return le(this,a)};$.prototype.or=$.prototype.zc;
var Ce=function(a){var b=a.opcode;switch(b){case "AND":return new me(a);case "AT_TEXT":return new ne(a);case "AT_TEXT_REGEXP":return new oe(a);case "FOLLOWED_BY_TEXT":return new pe(a);case "FOLLOWED_BY_TEXT_REGEXP":return new qe(a);case "LOCATION_CLASS":return new re(a);case "LOCATION_CLASS_REGEXP":return new se(a);case "LOCATION_ID":return new te(a);case "LOCATION_ID_REGEXP":return new ue(a);case "LOCATION_XPATH":return new ve(a);case "NOT":return new we(a);case "OR":return new xe(a);case "PRECEDED_BY_TEXT":return new ye(a);
case "PRECEDED_BY_TEXT_REGEXP":return new ze(a);case "SEVERITY":return new Ae(a);case "TYPE":return new Be(a);default:h("Unknown filter opcode: '"+b+"'")}},De=function(a){if(!a)return j;a=yc(a);return Fa(a,function(b){return Ce(b)})},je=function(a,b){return new me({filter1:a,filter2:b})};t("bidichecker.FilterFactory.and",je);t("bidichecker.FilterFactory.atText",function(a){return new ne({atText:a||""})});t("bidichecker.FilterFactory.atTextRegexp",function(a){return new oe({atTextRegexp:a||""})});
t("bidichecker.FilterFactory.followedByText",function(a){return new pe({followedByText:a||""})});t("bidichecker.FilterFactory.followedByTextRegexp",function(a){return new qe({followedByTextRegexp:a||""})});t("bidichecker.FilterFactory.locationClass",function(a){a||h("Empty or null argument to bidichecker.FilterFactory.locationClass");return new re({className:a})});
t("bidichecker.FilterFactory.locationClassRegexp",function(a){a||h("Empty or null argument to bidichecker.FilterFactory.locationClassRegexp");return new se({classRegexp:a})});t("bidichecker.FilterFactory.locationId",function(a){a||h("Empty or null argument to bidichecker.FilterFactory.locationId");return new te({id:a})});t("bidichecker.FilterFactory.locationIdRegexp",function(a){a||h("Empty or null argument to bidichecker.FilterFactory.locationIdRegexp");return new ue({idRegexp:a})});
t("bidichecker.FilterFactory.locationXpath",function(a){a||h("Empty or null argument to bidichecker.FilterFactory.locationXpath");return new ve({xpath:a})});var ke=function(a){return new we({filter:a})};t("bidichecker.FilterFactory.not",ke);var le=function(a,b){return new xe({filter1:a,filter2:b})};t("bidichecker.FilterFactory.or",le);t("bidichecker.FilterFactory.precededByText",function(a){return new ye({precededByText:a||""})});
t("bidichecker.FilterFactory.precededByTextRegexp",function(a){return new ze({precededByTextRegexp:a||""})});t("bidichecker.FilterFactory.severityFrom",function(a){return new Ae({severityThreshold:a})});t("bidichecker.FilterFactory.type",function(a){return new Be({type:a})});
var Ee=function(a,b){b in a||h("No '"+b+"' parameter found for '"+a.opcode+"' filter")},Fe=function(a,b,c){Ee(a,b);typeof a[b]!=c&&h("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected "+c)},Ge=function(a,b){Fe(a,b,"string");return a[b]},He=function(a,b){Ee(a,b);var c=a[b],d;if(typeof c=="string")d=c;else if(c instanceof RegExp)d=c.source;else h("Wrong type for '"+b+"' parameter of '"+a.opcode+"' filter; expected string or RegExp");return RegExp("^("+d+")$")},Ie=function(a,b){Fe(a,
b,"object");var c=a[b];if(c instanceof $)return c;else if(typeof c.opcode=="string")return Ce(c);else h("Can't make a filter out of the '"+b+"' parameter of '"+a.opcode+"' filter")},me=function(a){this.Ua=Ie(a,"filter1");this.Va=Ie(a,"filter2")};v(me,$);me.prototype.d=function(a,b){return this.Ua.d(a,b)&&this.Va.d(a,b)};var ne=function(a){this.Sb=Ge(a,"atText")};v(ne,$);ne.prototype.d=function(a){return this.Sb==(a.atText||"")};var oe=function(a){this.Rb=He(a,"atTextRegexp")};v(oe,$);
oe.prototype.d=function(a){return this.Rb.test(a.atText||"")};var pe=function(a){this.ec=Ge(a,"followedByText")};v(pe,$);pe.prototype.d=function(a){return this.ec==(a.followedByText||"")};var qe=function(a){this.dc=He(a,"followedByTextRegexp")};v(qe,$);qe.prototype.d=function(a){return this.dc.test(a.followedByText||"")};var re=function(a){this.Vb=Ge(a,"className")};v(re,$);
re.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.Vb==e[f])return i;return k};var se=function(a){this.Wb=He(a,"classRegexp")};v(se,$);se.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.Wb.test(e[f]))return i;return k};var te=function(a){this.$=Ge(a,"id")};v(te,$);
te.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.$==d.id)return i;return k};var ue=function(a){this.nc=He(a,"idRegexp")};v(ue,$);ue.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.nc.test(d.id))return i;return k};var ve=function(a){a=Ge(a,"xpath");this.Lc=new ie(a)};v(ve,$);
ve.prototype.d=function(a,b){for(var c=0;c<b.length;++c){var d;a:{d=b[c];var e;e=this.Lc;var f=d.ownerDocument,g=f._bidicheckerXpathMatcherCache_[e.Ma];if(!g)try{f.evaluate||h("XPath not supported by this browser");g=f.evaluate(e.Ma,f,j,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,j);f._bidicheckerXpathMatcherCache_[e.Ma]=g}catch(l){h("Error evaluating XPath expression "+e.Ma+": "+l)}e=g;for(f=0;f<e.snapshotLength;++f)if(e.snapshotItem(f)==d){d=i;break a}d=k}if(d)return i}return k};
var we=function(a){this.ac=Ie(a,"filter")};v(we,$);we.prototype.d=function(a,b){return!this.ac.d(a,b)};var xe=function(a){this.Ua=Ie(a,"filter1");this.Va=Ie(a,"filter2")};v(xe,$);xe.prototype.d=function(a,b){return this.Ua.d(a,b)||this.Va.d(a,b)};var ye=function(a){this.Cc=Ge(a,"precededByText")};v(ye,$);ye.prototype.d=function(a){return this.Cc==(a.precededByText||"")};var ze=function(a){this.Bc=He(a,"precededByTextRegexp")};v(ze,$);
ze.prototype.d=function(a){return this.Bc.test(a.precededByText||"")};var Ae=function(a){Fe(a,"severityThreshold","number");this.Gc=a.severityThreshold};v(Ae,$);Ae.prototype.d=function(a){return this.Gc<=a.severity};var Be=function(a){this.Jc=Ge(a,"type")};v(Be,$);Be.prototype.d=function(a){return this.Jc==a.type};var Je=function(){this.W=[]};v(Je,R);m=Je.prototype;m.start=function(){this.dispatchEvent("StartFrames")};m.end=function(){this.dispatchEvent("EndFrames")};m.push=function(a){this.W.push(a);this.dispatchEvent("EnterFrame")};m.pop=function(){this.dispatchEvent("ExitFrame");this.W.pop()};m.Ya=function(){return this.W};var Ke=function(a,b){this.fc=a;this.bc=b||[];this.A=[]};Ke.prototype.Ic=k;Ke.prototype.Xa=function(){return this.A};var Me=function(a,b,c){var d=a.fc.Ya().slice(0);c&&d.push(c);if(Ga(a.bc,function(e){return!e.d(b,d)})){c=Le(a,d);if(c!="")b.locationDescription=c;a.A.push(b);a.Ic&&h(b.toString()+"\n")}},Le=function(a,b){var c=[];Ea(b,function(d){c.push(Jd(d))});return c.join(" in ")};var Ne=function(a,b){this.uc=!!b;this.oa=new Je;this.pb=new Ke(this.oa,a)};Ne.prototype.F=j;Ne.prototype.Ta=j;Ne.prototype.Xa=function(){return this.pb.Xa()};
var Re=function(a,b,c){b.ownerDocument._bidicheckerXpathMatcherCache_={};var d,e=a.pb;d=[new Oe(e),new Pe(e)];c!=0&&d.unshift(new Qe(c==-1,e));a.F=new ee(b);a.Ta=a.uc?new he(a.F):j;for(b=0;b<d.length;++b)d[b].gb(a);a.F.go();d=a.F.Ya();for(b=0;b<d.length;++b){e=d[b];a.oa.push(e);try{var f=(B?e.document||e.contentWindow.document:e.contentDocument||e.contentWindow.document).body;if(e.tagName=="IFRAME")c=0;Re(a,f,c)}catch(g){}a.oa.pop()}};var Qe=function(a,b){this.Gb=a;this.ma=b};Qe.prototype.gb=function(a){mc(a.F,"StartTag",this)};Qe.prototype.handleEvent=function(a){a=a.target;if(this.Gb!=w(a.B))Me(this.ma,new Z("Overall directionality not "+(this.Gb?"RTL":"LTR"),1,new Td(a.H)))};var Pe=function(a){this.ma=a;this.sa=[]};m=Pe.prototype;m.I=j;m.gb=function(a){var b=new P(this);Q(b,a.F,"StartTag",this.mc);Q(b,a.F,"EndTag",this.jc);Q(b,a.F,"TextNode",this.$a);wc(b,a.F,"EndOfDom",b.ga,k,b)};m.mc=function(a){a=a.target;var b=a.H;if(b.dir||b==w(a.O))this.I=j};m.jc=function(a){a=a.target;var b=a.H;if(b==w(a.O))this.I=j;else if(b.dir)if(w(a.B)==a.B[a.B.length-2])this.I=j;else{this.I=b;this.sa=[]}};
m.$a=function(a){a=a.target;var b=a.H;if(this.I){this.sa.push(b);var c=Ed(b.data);if(c){var d=Fa(this.sa,function(f){return f.data}).join(""),e=w(this.sa).parentNode;Me(this.ma,Se(this,d.substr(0,d.length-(b.data.length-c.text.length)),c.text.length,w(a.B),w(a.ba)),e);this.I=j}else if(Ad.test(b.data))this.I=j}};var Se=function(a,b,c,d,e){b=new Z("Declared "+(d?"LTR":"RTL")+" spillover to number",e?4:2,new Rd(a.sa,0,c),b);a=Kd(a.I);b.precededByText=a;return b};var Oe=function(a){this.ma=a};Oe.prototype.gb=function(a){var b=new P(this);Q(b,a.Ta,"DirChunk",this.hc);wc(b,a.Ta,"EndOfChunks",b.ga,k,b)};Oe.prototype.hc=function(a){var b=this,c=a.target.J;if(c.yb){a=Dd(ce(c));Da(a,function(d){xd.exec(d.text)||Te(b,c,d,"Undeclared LTR text")})}else{a=Cd(ce(c));Da(a,function(d){yd.exec(d.text)||Te(b,c,d,"Undeclared RTL text")})}};
var Te=function(a,b,c,d){var e=b.wb?4:3,f=b.Y(c.index,c.text.length);d=new Z(d,e,f,c.text);e=ce(b);f=c.index;var g=vd.exec(e.substr(0,f));f=g?new Bd(g[0],f-g[0].length):j;if(f){if(d.severity==3)d.severity=2;d.precededByText=f.text}f=c.index+c.text.length;e=(e=ud.exec(e.substr(f)))?new Bd(e[0],f):j;if(e){if(d.severity==3)d.severity=2;d.followedByText=e.text}b=b.Wa(c.index).parentNode;Me(a.ma,d,b)};var Ue=function(a){Ne.call(this,a,i)};v(Ue,Ne);var Ve=function(a,b,c){Vd=[];Ud=0;b=b||top.document.body;a=a?-1:1;c=new Ue(c);c.oa.start();Re(c,b,a);c.oa.end();return c.Xa()};t("bidichecker.checkPage",Ve);t("bidichecker.checkPageToJson",function(a,b,c){c=De(c);a=Ve(a,b,c);for(b=0;b<a.length;++b){c=a[b];c.asString=c.toString()}b=[];Bc(new zc,a,b);return b.join("")});
var We=function(a){a=new Wd(a);if(!(a.P||a.A.length==0)){a.D=new W("bidichecker-dialog");var b=a.D;b.Ob="BidiChecker error browser";b.ta&&Ib(b.ta,"BidiChecker error browser");b=a.D;b.pa=k;jd(b);b.m();var c=new X;c.N("prev","< Prev");c.N("next","Next >");b=a.D;b.r=c;if(b.z)if(b.r){c=b.r;c.b=b.z;c.ia()}else b.z.innerHTML="";b=a.D;b.Sa='<div id="bidichecker-dialog-error-text" class="bidichecker-dialog-error-text"> </div><p>Error <input name="current" id="bidichecker-dialog-error-num" type="text" size="3" value="1" /> of <span id="bidichecker-dialog-error-count"></span></p><p style="font-size:75%">Drag this box if it conceals a part of the page you need.</p>';
if(b.wa)b.wa.innerHTML='<div id="bidichecker-dialog-error-text" class="bidichecker-dialog-error-text"> </div><p>Error <input name="current" id="bidichecker-dialog-error-num" type="text" size="3" value="1" /> of <span id="bidichecker-dialog-error-count"></span></p><p style="font-size:75%">Drag this box if it conceals a part of the page you need.</p>';kd(a.D,i);a.P=a.D.c();b=G(a.P);var d=j;if(A){d=b.h.createStyleSheet();Qc(d,".bidichecker-dialog-bg { position: absolute; top: 0; left: 0; }.bidichecker-dialog { position: absolute; padding: 5px; background-color: #fcb; border: 1px solid #000; font-family: arial, sans-serif; width: 475px; color: #000; outline: none; direction: ltr }.bidichecker-dialog a, .bidichecker-dialog a:link,.bidichecker-dialog a:visited  { color: #0066cc; cursor: pointer; }.bidichecker-dialog-title { position: relative; background-color: #f9efeb; color: #000000; padding: 10px 15px; font-size: 16px; font-weight: bold; vertical-align: middle; cursor: pointer; cursor: hand }.bidichecker-dialog-content { padding: 15px; font-size: 90%; background-color: #fff }.bidichecker-dialog-buttons { padding: 0 15px 15px; background-color: #fff }.bidichecker-dialog-error-text { font-weight: bold; font-size: 125%; color: #f00; height: 80px; overflow: auto; border: 1px dotted #f00 }")}else{c=
xb(b.h,"head",void 0,void 0)[0];if(!c){d=xb(b.h,"body",void 0,void 0)[0];c=b.j("head");d.parentNode.insertBefore(c,d)}d=b.j("style");Qc(d,".bidichecker-dialog-bg { position: absolute; top: 0; left: 0; }.bidichecker-dialog { position: absolute; padding: 5px; background-color: #fcb; border: 1px solid #000; font-family: arial, sans-serif; width: 475px; color: #000; outline: none; direction: ltr }.bidichecker-dialog a, .bidichecker-dialog a:link,.bidichecker-dialog a:visited  { color: #0066cc; cursor: pointer; }.bidichecker-dialog-title { position: relative; background-color: #f9efeb; color: #000000; padding: 10px 15px; font-size: 16px; font-weight: bold; vertical-align: middle; cursor: pointer; cursor: hand }.bidichecker-dialog-content { padding: 15px; font-size: 90%; background-color: #fff }.bidichecker-dialog-buttons { padding: 0 15px 15px; background-color: #fff }.bidichecker-dialog-error-text { font-weight: bold; font-size: 125%; color: #f00; height: 80px; overflow: auto; border: 1px dotted #f00 }");
b.appendChild(c,d)}a.P.style.zIndex=1E4;b=a.D.m();Ib(b.c("bidichecker-dialog-error-count"),a.A.length+"");a.Q=b.c("bidichecker-dialog-error-num");a.qb=b.c("bidichecker-dialog-error-text");md(a.D);Yd(a);N(a.D,"dialogselect",a.gc,k,a);a.Q.onchange=ka(a.kc,a)}};t("bidichecker.runGui",We);t("bidichecker.runGuiFromJson",function(a){a=yc(a);a=Fa(a,function(b){return new Z(b)});We(a)}); })()