function(){return function(){function h(a){throw a;}var i=void 0,j=!0,k=null,l=!1;function n(a){return function(){return this[a]}}function aa(a){return function(){return a}}var p,q=this;
function ba(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}function s(a){return a!==i}function ca(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function da(a){return"function"==ba(a)}function ea(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var fa="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ga=0,ha=Date.now||function(){return+new Date};
function w(a,b){function c(){}c.prototype=b.prototype;a.hb=b.prototype;a.prototype=new c};var ia=window;function ja(a){Error.captureStackTrace?Error.captureStackTrace(this,ja):this.stack=Error().stack||"";a&&(this.message=String(a))}w(ja,Error);ja.prototype.name="CustomError";function ka(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}
function la(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;0==c&&g<f;g++){var m=d[g]||"",u=e[g]||"",t=RegExp("(\\d*)(\\D*)","g"),X=RegExp("(\\d*)(\\D*)","g");do{var P=t.exec(m)||["","",""],r=X.exec(u)||["","",""];if(0==P[0].length&&0==r[0].length)break;c=((0==P[1].length?0:parseInt(P[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==P[1].length?0:parseInt(P[1],10))>(0==r[1].length?
0:parseInt(r[1],10))?1:0)||((0==P[2].length)<(0==r[2].length)?-1:(0==P[2].length)>(0==r[2].length)?1:0)||(P[2]<r[2]?-1:P[2]>r[2]?1:0)}while(0==c)}return c};function ma(a,b){b.unshift(a);ja.call(this,ka.apply(k,b));b.shift();this.Ya=a}w(ma,ja);ma.prototype.name="AssertionError";function na(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new ma(""+e,f||[]))}function oa(a,b,c){a||na("",k,b,Array.prototype.slice.call(arguments,2))}function pa(a,b,c){ea(a)||na("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var qa=Array.prototype;function x(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}function ra(a,b){for(var c=a.length,d=[],e=0,f=v(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var m=f[g];b.call(i,m,g,a)&&(d[e++]=m)}return d}function sa(a,b){for(var c=a.length,d=Array(c),e=v(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(i,e[f],f,a));return d}function ta(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;x(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function ua(a,b){for(var c=a.length,d=v(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a))return j;return l}function va(a,b){var c;a:if(v(a))c=!v(b)||1!=b.length?-1:a.indexOf(b,0);else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c=-1}return 0<=c}function wa(a){return qa.concat.apply(qa,arguments)}function xa(a,b,c){oa(a.length!=k);return 2>=arguments.length?qa.slice.call(a,b):qa.slice.call(a,b,c)};var ya={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var za="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Aa=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Ba(a){Ca.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Aa,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Ca=/^#(?:[0-9a-f]{3}){1,2}$/i,Da=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Ea(a){var b=a.match(Da);if(b){var a=Number(b[1]),c=Number(b[2]),d=Number(b[3]),b=Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}return[]}var Fa=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Ga(a){var b=a.match(Fa);if(b){var a=Number(b[1]),c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};function Ha(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c}function Ia(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function y(a,b){this.code=a;this.message=b||"";this.name=Ja[a]||Ja[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}w(y,Error);
var Ja={7:"NoSuchElementError",8:"NoSuchFrameError",9:"UnknownCommandError",10:"StaleElementReferenceError",11:"ElementNotVisibleError",12:"InvalidElementStateError",13:"UnknownError",15:"ElementNotSelectableError",19:"XPathLookupError",23:"NoSuchWindowError",24:"InvalidCookieDomainError",25:"UnableToSetCookieError",26:"ModalDialogOpenedError",27:"NoModalDialogOpenError",28:"ScriptTimeoutError",32:"InvalidSelectorError",35:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
y.prototype.toString=function(){return this.name+": "+this.message};var Ka,La,Ma,Na,Oa,Pa;function Qa(){return q.navigator?q.navigator.userAgent:k}Na=Ma=La=Ka=l;var Ra;if(Ra=Qa()){var Sa=q.navigator;Ka=0==Ra.indexOf("Opera");La=!Ka&&-1!=Ra.indexOf("MSIE");Ma=!Ka&&-1!=Ra.indexOf("WebKit");Na=!Ka&&!Ma&&"Gecko"==Sa.product}var z=Ka,A=La,B=Na,C=Ma,Ta,Ua=q.navigator;Ta=Ua&&Ua.platform||"";Oa=-1!=Ta.indexOf("Mac");Pa=-1!=Ta.indexOf("Win");var Va=-1!=Ta.indexOf("Linux");function Wa(){var a=q.document;return a?a.documentMode:i}var Xa;
a:{var Ya="",Za;if(z&&q.opera)var $a=q.opera.version,Ya="function"==typeof $a?$a():$a;else if(B?Za=/rv\:([^\);]+)(\)|;)/:A?Za=/MSIE\s+([^\);]+)(\)|;)/:C&&(Za=/WebKit\/(\S+)/),Za)var ab=Za.exec(Qa()),Ya=ab?ab[1]:"";if(A){var bb=Wa();if(bb>parseFloat(Ya)){Xa=String(bb);break a}}Xa=Ya}var cb={};function db(a){return cb[a]||(cb[a]=0<=la(Xa,a))}function D(a){return A&&eb>=a}var fb=q.document,eb=!fb||!A?i:Wa()||("CSS1Compat"==fb.compatMode?parseInt(Xa,10):5);var gb;!B&&!A||A&&D(9)||B&&db("1.9.1");A&&db("9");var hb="BODY";function E(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}E.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function ib(a,b){this.width=a;this.height=b}p=ib.prototype;p.toString=function(){return"("+this.width+" x "+this.height+")"};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};p.scale=function(a){this.width*=a;this.height*=a;return this};var jb=3;function kb(a){return a?new lb(F(a)):gb||(gb=new lb)}function mb(a){var b=!C&&nb(a)?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new E(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function G(a){return a?a.parentWindow||a.defaultView:window}function nb(a){return"CSS1Compat"==a.compatMode}
function ob(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}
function pb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(A&&!D(9)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?qb(a,b):!c&&ob(e,b)?-1*rb(a,b):!d&&ob(f,a)?rb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=F(a);c=d.createRange();
c.selectNode(a);c.collapse(j);d=d.createRange();d.selectNode(b);d.collapse(j);return c.compareBoundaryPoints(q.Range.START_TO_END,d)}function rb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return qb(d,a)}function qb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function F(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function sb(a,b,c,d){if(a!=k)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||sb(a,b,c,d))return j;a=a.nextSibling}return l}var tb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ub={IMG:" ",BR:"\n"};function vb(a,b,c){if(!(a.nodeName in tb))if(a.nodeType==jb)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ub)b.push(ub[a.nodeName]);else for(a=a.firstChild;a;)vb(a,b,c),a=a.nextSibling}
function wb(a,b){for(var a=a.parentNode,c=0;a;){if(b(a))return a;a=a.parentNode;c++}return k}function lb(a){this.G=a||q.document||document}lb.prototype.o=function(a){return v(a)?this.G.getElementById(a):a};lb.prototype.contains=ob;var xb,yb,zb,Ab,Bb,Cb,Db;Db=Cb=Bb=Ab=zb=yb=xb=l;var Eb=Qa();Eb&&(-1!=Eb.indexOf("Firefox")?xb=j:-1!=Eb.indexOf("Camino")?yb=j:-1!=Eb.indexOf("iPhone")||-1!=Eb.indexOf("iPod")?zb=j:-1!=Eb.indexOf("iPad")?Ab=j:-1!=Eb.indexOf("Android")?Bb=j:-1!=Eb.indexOf("Chrome")?Cb=j:-1!=Eb.indexOf("Safari")&&(Db=j));var Fb=z,Gb=A,Hb=xb,Ib=yb,Jb=zb,Kb=Ab,Lb=Bb,Mb=Cb,Nb=Db;function Ob(a,b,c){this.g=a;this.La=b||1;this.t=c||1};var Pb=A&&!D(9),Qb=A&&!D(8);function Rb(a,b,c,d,e){this.g=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.fb=e;this.parentNode=b}function Sb(a,b,c){var d=Qb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Rb(b,a,b.nodeName,d,c)};function Tb(a){this.ha=a;this.T=0}var Ub=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),Vb=/^\s/;function H(a,b){return a.ha[a.T+(b||0)]}Tb.prototype.next=function(){return this.ha[this.T++]};Tb.prototype.back=function(){this.T--};Tb.prototype.empty=function(){return this.ha.length<=this.T};function I(a){var b=k,c=a.nodeType;1==c&&(b=a.textContent,b=b==i||b==k?a.innerText:b,b=b==i||b==k?"":b);if("string"!=typeof b)if(Pb&&"title"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c)for(var a=9==c?a.documentElement:a.firstChild,c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Pb&&"title"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}else b=a.nodeValue;return""+b}
function Wb(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return l}catch(d){return l}Qb&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Xb(a,b,c,d,e){return(Pb?Yb:Zb).call(k,a,b,v(c)?c:k,v(d)?d:k,e||new J)}
function Yb(a,b,c,d,e){if(a instanceof $b||8==a.d||c&&a.d===k){var f=b.all;if(!f)return e;a=ac(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],m=0;b=f[m++];)Wb(b,c,d)&&g.push(b);f=g}for(m=0;b=f[m++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}bc(a,b,c,d,e);return e}
function Zb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!A?(b=b.getElementsByName(d),x(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),x(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof cc?bc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),x(b,function(a){Wb(a,c,d)&&e.add(a)}));return e}
function dc(a,b,c,d,e){var f;if((a instanceof $b||8==a.d||c&&a.d===k)&&(f=b.childNodes)){var g=ac(a);if("*"!=g&&(f=ra(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=ra(f,function(a){return Wb(a,c,d)}));x(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return ec(a,b,c,d,e)}function ec(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Wb(b,c,d)&&a.matches(b)&&e.add(b);return e}
function bc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Wb(b,c,d)&&a.matches(b)&&e.add(b),bc(a,b,c,d,e)}function ac(a){if(a instanceof cc){if(8==a.d)return"!";if(a.d===k)return"*"}return a.getName()};function J(){this.t=this.l=k;this.M=0}function fc(a){this.w=a;this.next=this.H=k}function gc(a,b){if(a.l){if(!b.l)return a}else return b;for(var c=a.l,d=b.l,e=k,f=k,g=0;c&&d;)c.w==d.w||c.w instanceof Rb&&d.w instanceof Rb&&c.w.g==d.w.g?(f=c,c=c.next,d=d.next):0<pb(c.w,d.w)?(f=d,d=d.next):(f=c,c=c.next),(f.H=e)?e.next=f:a.l=f,e=f,g++;for(f=c||d;f;)f.H=e,e=e.next=f,g++,f=f.next;a.t=e;a.M=g;return a}
J.prototype.unshift=function(a){a=new fc(a);a.next=this.l;this.t?this.l.H=a:this.l=this.t=a;this.l=a;this.M++};J.prototype.add=function(a){a=new fc(a);a.H=this.t;this.l?this.t.next=a:this.l=this.t=a;this.t=a;this.M++};function hc(a){return(a=a.l)?a.w:k}J.prototype.z=n("M");function ic(a){return(a=hc(a))?I(a):""}function jc(a,b){return new kc(a,!!b)}function kc(a,b){this.Ia=a;this.ja=(this.I=b)?a.t:a.l;this.ca=k}
kc.prototype.next=function(){var a=this.ja;if(a==k)return k;var b=this.ca=a;this.ja=this.I?a.H:a.next;return b.w};kc.prototype.remove=function(){var a=this.Ia,b=this.ca;b||h(Error("Next must be called at least once before remove."));var c=b.H,b=b.next;c?c.next=b:a.l=b;b?b.H=c:a.t=c;a.M--;this.ca=k};function K(a){this.k=a;this.j=this.v=l;this.O=k}K.prototype.h=n("v");K.prototype.F=n("O");function L(a,b){var c=a.evaluate(b);return c instanceof J?+ic(c):+c}function M(a,b){var c=a.evaluate(b);return c instanceof J?ic(c):""+c}function lc(a,b){var c=a.evaluate(b);return c instanceof J?!!c.z():!!c};function mc(a,b,c){K.call(this,a.k);this.fa=a;this.oa=b;this.ua=c;this.v=b.h()||c.h();this.j=b.j||c.j;this.fa==nc&&(!c.j&&!c.h()&&4!=c.k&&0!=c.k&&b.F()?this.O={name:b.F().name,J:c}:!b.j&&(!b.h()&&4!=b.k&&0!=b.k&&c.F())&&(this.O={name:c.F().name,J:b}))}w(mc,K);
function oc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof J&&c instanceof J){f=jc(b);for(b=f.next();b;b=f.next()){e=jc(c);for(d=e.next();d;d=e.next())if(a(I(b),I(d)))return j}return l}if(b instanceof J||c instanceof J){b instanceof J?e=b:(e=c,c=b);e=jc(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+I(d);break;case "boolean":f=!!I(d);break;case "string":f=I(d);break;default:h(Error("Illegal primitive type for comparison."))}if(a(f,c))return j}return l}return e?
"boolean"==typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}mc.prototype.evaluate=function(a){return this.fa.u(this.oa,this.ua,a)};mc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.fa+"\n",a=a+"  ",b=b+(this.oa.toString(a)+"\n");return b+=this.ua.toString(a)};function pc(a,b,c,d){this.Ka=a;this.ra=b;this.k=c;this.u=d}pc.prototype.toString=n("Ka");var qc={};
function N(a,b,c,d){a in qc&&h(Error("Binary operator already created: "+a));a=new pc(a,b,c,d);return qc[a.toString()]=a}N("div",6,1,function(a,b,c){return L(a,c)/L(b,c)});N("mod",6,1,function(a,b,c){return L(a,c)%L(b,c)});N("*",6,1,function(a,b,c){return L(a,c)*L(b,c)});N("+",5,1,function(a,b,c){return L(a,c)+L(b,c)});N("-",5,1,function(a,b,c){return L(a,c)-L(b,c)});N("<",4,2,function(a,b,c){return oc(function(a,b){return a<b},a,b,c)});
N(">",4,2,function(a,b,c){return oc(function(a,b){return a>b},a,b,c)});N("<=",4,2,function(a,b,c){return oc(function(a,b){return a<=b},a,b,c)});N(">=",4,2,function(a,b,c){return oc(function(a,b){return a>=b},a,b,c)});var nc=N("=",3,2,function(a,b,c){return oc(function(a,b){return a==b},a,b,c,j)});N("!=",3,2,function(a,b,c){return oc(function(a,b){return a!=b},a,b,c,j)});N("and",2,2,function(a,b,c){return lc(a,c)&&lc(b,c)});N("or",1,2,function(a,b,c){return lc(a,c)||lc(b,c)});function rc(a,b){b.z()&&4!=a.k&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));K.call(this,a.k);this.ta=a;this.f=b;this.v=a.h();this.j=a.j}w(rc,K);rc.prototype.evaluate=function(a){a=this.ta.evaluate(a);return sc(this.f,a)};rc.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.ta.toString(a);return b+=this.f.toString(a)};function tc(a,b){b.length<a.qa&&h(Error("Function "+a.q+" expects at least"+a.qa+" arguments, "+b.length+" given"));a.da!==k&&b.length>a.da&&h(Error("Function "+a.q+" expects at most "+a.da+" arguments, "+b.length+" given"));a.Ja&&x(b,function(b,d){4!=b.k&&h(Error("Argument "+d+" to function "+a.q+" is not of type Nodeset: "+b))});K.call(this,a.k);this.S=a;this.Z=b;this.v=a.v||ua(b,function(a){return a.h()});this.j=a.Ha&&!b.length||a.Ga&&!!b.length||ua(b,function(a){return a.j})}w(tc,K);
tc.prototype.evaluate=function(a){return this.S.u.apply(k,wa(a,this.Z))};tc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.S+"\n",b=b+"  ";this.Z.length&&(a+=b+"Arguments:",b+="  ",a=ta(this.Z,function(a,d){return a+"\n"+d.toString(b)},a));return a};function uc(a,b,c,d,e,f,g,m,u){this.q=a;this.k=b;this.v=c;this.Ha=d;this.Ga=e;this.u=f;this.qa=g;this.da=s(m)?m:g;this.Ja=!!u}uc.prototype.toString=n("q");var vc={};
function O(a,b,c,d,e,f,g,m){a in vc&&h(Error("Function already created: "+a+"."));vc[a]=new uc(a,b,c,d,l,e,f,g,m)}O("boolean",2,l,l,function(a,b){return lc(b,a)},1);O("ceiling",1,l,l,function(a,b){return Math.ceil(L(b,a))},1);O("concat",3,l,l,function(a,b){var c=xa(arguments,1);return ta(c,function(b,c){return b+M(c,a)},"")},2,k);O("contains",2,l,l,function(a,b,c){b=M(b,a);a=M(c,a);return-1!=b.indexOf(a)},2);O("count",1,l,l,function(a,b){return b.evaluate(a).z()},1,1,j);O("false",2,l,l,aa(l),0);
O("floor",1,l,l,function(a,b){return Math.floor(L(b,a))},1);
O("id",4,l,l,function(a,b){function c(a){if(Pb){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length){var c;a:{c=function(b){return a==b.id};for(var d=b.length,f=v(b)?b.split(""):b,g=0;g<d;g++)if(g in f&&c.call(i,f[g])){c=g;break a}c=-1}return 0>c?k:v(b)?b.charAt(c):b[c]}}return k}return e.getElementById(a)}var d=a.g,e=9==d.nodeType?d:d.ownerDocument,d=M(b,a).split(/\s+/),f=[];x(d,function(a){(a=c(a))&&!va(f,a)&&f.push(a)});f.sort(pb);var g=new J;x(f,function(a){g.add(a)});return g},1);
O("lang",2,l,l,aa(l),1);O("last",1,j,l,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.t},0);O("local-name",3,l,j,function(a,b){var c=b?hc(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,j);O("name",3,l,j,function(a,b){var c=b?hc(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,j);O("namespace-uri",3,j,l,aa(""),0,1,j);O("normalize-space",3,l,j,function(a,b){return(b?M(b,a):I(a.g)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
O("not",2,l,l,function(a,b){return!lc(b,a)},1);O("number",1,l,j,function(a,b){return b?L(b,a):+I(a.g)},0,1);O("position",1,j,l,function(a){return a.La},0);O("round",1,l,l,function(a,b){return Math.round(L(b,a))},1);O("starts-with",2,l,l,function(a,b,c){b=M(b,a);a=M(c,a);return 0==b.lastIndexOf(a,0)},2);O("string",3,l,j,function(a,b){return b?M(b,a):I(a.g)},0,1);O("string-length",1,l,j,function(a,b){return(b?M(b,a):I(a.g)).length},0,1);
O("substring",3,l,l,function(a,b,c,d){c=L(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?L(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=M(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);O("substring-after",3,l,l,function(a,b,c){b=M(b,a);a=M(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
O("substring-before",3,l,l,function(a,b,c){b=M(b,a);a=M(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);O("sum",1,l,l,function(a,b){for(var c=jc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+I(e);return d},1,1,j);O("translate",3,l,l,function(a,b,c,d){for(var b=M(b,a),c=M(c,a),e=M(d,a),a=[],d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);O("true",2,l,l,aa(j),0);function cc(a,b){this.wa=a;this.pa=s(b)?b:k;this.d=k;switch(a){case "comment":this.d=8;break;case "text":this.d=jb;break;case "processing-instruction":this.d=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function wc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}cc.prototype.matches=function(a){return this.d===k||this.d==a.nodeType};cc.prototype.getName=n("wa");
cc.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.wa;this.pa===k||(b+="\n"+this.pa.toString(a+"  "));return b};function xc(a){K.call(this,3);this.va=a.substring(1,a.length-1)}w(xc,K);xc.prototype.evaluate=n("va");xc.prototype.toString=function(a){return(a||"")+"literal: "+this.va};function $b(a){this.q=a.toLowerCase()}$b.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.q||this.q==a.nodeName.toLowerCase()?j:this.q==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};$b.prototype.getName=n("q");$b.prototype.toString=function(a){return(a||"")+"nametest: "+this.q};function yc(a){K.call(this,1);this.xa=a}w(yc,K);yc.prototype.evaluate=n("xa");yc.prototype.toString=function(a){return(a||"")+"number: "+this.xa};function zc(a,b){K.call(this,a.k);this.la=a;this.P=b;this.v=a.h();this.j=a.j;if(1==this.P.length){var c=this.P[0];!c.aa&&c.B==Ac&&(c=c.W,"*"!=c.getName()&&(this.O={name:c.getName(),J:k}))}}w(zc,K);function Bc(){K.call(this,4)}w(Bc,K);Bc.prototype.evaluate=function(a){var b=new J,a=a.g;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Bc.prototype.toString=function(a){return a+"RootHelperExpr"};function Cc(){K.call(this,4)}w(Cc,K);Cc.prototype.evaluate=function(a){var b=new J;b.add(a.g);return b};
Cc.prototype.toString=function(a){return a+"ContextHelperExpr"};
zc.prototype.evaluate=function(a){var b=this.la.evaluate(a);b instanceof J||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.P,c=0,d=a.length;c<d&&b.z();c++){var e=a[c],f=jc(b,e.B.I),g;if(!e.h()&&e.B==Dc){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new Ob(g))}else if(!e.h()&&e.B==Ec)g=f.next(),b=e.evaluate(new Ob(g));else{g=f.next();for(b=e.evaluate(new Ob(g));(g=f.next())!=k;)g=e.evaluate(new Ob(g)),b=gc(b,g)}}return b};
zc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.la.toString(b);this.P.length&&(c+=b+"Steps:\n",b+="  ",x(this.P,function(a){c+=a.toString(b)}));return c};function Fc(a,b){this.f=a;this.I=!!b}function sc(a,b,c){for(c=c||0;c<a.f.length;c++)for(var d=a.f[c],e=jc(b),f=b.z(),g,m=0;g=e.next();m++){var u=a.I?f-m:m+1;g=d.evaluate(new Ob(g,u,f));var t;"number"==typeof g?t=u==g:"string"==typeof g||"boolean"==typeof g?t=!!g:g instanceof J?t=0<g.z():h(Error("Predicate.evaluate returned an unexpected type."));t||e.remove()}return b}Fc.prototype.F=function(){return 0<this.f.length?this.f[0].F():k};
Fc.prototype.h=function(){for(var a=0;a<this.f.length;a++){var b=this.f[a];if(b.h()||1==b.k||0==b.k)return j}return l};Fc.prototype.z=function(){return this.f.length};Fc.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return ta(this.f,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Gc(a,b,c,d){K.call(this,4);this.B=a;this.W=b;this.f=c||new Fc([]);this.aa=!!d;b=this.f.F();a.Oa&&b&&(a=b.name,a=Pb?a.toLowerCase():a,this.O={name:a,J:b.J});this.v=this.f.h()}w(Gc,K);
Gc.prototype.evaluate=function(a){var b=a.g,c=k,c=this.F(),d=k,e=k,f=0;c&&(d=c.name,e=c.J?M(c.J,a):k,f=1);if(this.aa)if(!this.h()&&this.B==Hc)c=Xb(this.W,b,d,e),c=sc(this.f,c,f);else if(a=jc((new Gc(Ic,new cc("node"))).evaluate(a)),b=a.next())for(c=this.u(b,d,e,f);(b=a.next())!=k;)c=gc(c,this.u(b,d,e,f));else c=new J;else c=this.u(a.g,d,e,f);return c};Gc.prototype.u=function(a,b,c,d){a=this.B.S(this.W,a,b,c);return a=sc(this.f,a,d)};
Gc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.aa?"//":"/")+"\n");this.B.q&&(b+=a+"Axis: "+this.B+"\n");b+=this.W.toString(a);if(this.f.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.f.length;c++)var d=c<this.f.length-1?", ":"",b=b+(this.f[c].toString(a)+d);return b};function Jc(a,b,c,d){this.q=a;this.S=b;this.I=c;this.Oa=d}Jc.prototype.toString=n("q");var Kc={};
function Q(a,b,c,d){a in Kc&&h(Error("Axis already created: "+a));b=new Jc(a,b,c,!!d);return Kc[a]=b}Q("ancestor",function(a,b){for(var c=new J,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},j);Q("ancestor-or-self",function(a,b){var c=new J,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},j);
var Ac=Q("attribute",function(a,b){var c=new J,d=a.getName();if("style"==d&&b.style&&Pb)return c.add(new Rb(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof cc&&a.d===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)Pb?g.nodeValue&&c.add(Sb(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(Pb?g.nodeValue&&c.add(Sb(b,g,b.sourceIndex)):c.add(g));return c},l),Hc=Q("child",function(a,b,c,d,e){return(Pb?dc:ec).call(k,a,b,v(c)?c:k,v(d)?d:k,e||new J)},l,j);
Q("descendant",Xb,l,j);var Ic=Q("descendant-or-self",function(a,b,c,d){var e=new J;Wb(b,c,d)&&a.matches(b)&&e.add(b);return Xb(a,b,c,d,e)},l,j),Dc=Q("following",function(a,b,c,d){var e=new J;do for(var f=b;f=f.nextSibling;)Wb(f,c,d)&&a.matches(f)&&e.add(f),e=Xb(a,f,c,d,e);while(b=b.parentNode);return e},l,j);Q("following-sibling",function(a,b){for(var c=new J,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},l);Q("namespace",function(){return new J},l);
var Lc=Q("parent",function(a,b){var c=new J;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},l),Ec=Q("preceding",function(a,b,c,d){var e=new J,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,m=f.length;g<m;g++){for(var u=[],b=f[g];b=b.previousSibling;)u.unshift(b);for(var t=0,X=u.length;t<X;t++)b=u[t],Wb(b,c,d)&&a.matches(b)&&e.add(b),e=Xb(a,b,c,d,e)}return e},j,j);
Q("preceding-sibling",function(a,b){for(var c=new J,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},j);var Mc=Q("self",function(a,b){var c=new J;a.matches(b)&&c.add(b);return c},l);function Nc(a){K.call(this,1);this.ka=a;this.v=a.h();this.j=a.j}w(Nc,K);Nc.prototype.evaluate=function(a){return-L(this.ka,a)};Nc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.ka.toString(a+"  ")};function Oc(a){K.call(this,4);this.U=a;this.v=ua(this.U,function(a){return a.h()});this.j=ua(this.U,function(a){return a.j})}w(Oc,K);Oc.prototype.evaluate=function(a){var b=new J;x(this.U,function(c){c=c.evaluate(a);c instanceof J||h(Error("PathExpr must evaluate to NodeSet."));b=gc(b,c)});return b};Oc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";x(this.U,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Pc(a){this.a=a}function Qc(a){for(var b,c=[];;){R(a,"Missing right hand side of binary expression.");b=Rc(a);var d=a.a.next();if(!d)break;var e=(d=qc[d]||k)&&d.ra;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].ra;)b=new mc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new mc(c.pop(),c.pop(),b);return b}function R(a,b){a.a.empty()&&h(Error(b))}function Sc(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function Tc(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function Uc(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new xc(a)}function Vc(a){return"*"!=H(a.a)&&":"==H(a.a,1)&&"*"==H(a.a,2)?new $b(a.a.next()+a.a.next()+a.a.next()):new $b(a.a.next())}
function Wc(a){var b,c=[],d;if("/"==H(a.a)||"//"==H(a.a)){b=a.a.next();d=H(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Bc;d=new Bc;R(a,"Missing next location step.");b=Xc(a,b);c.push(b)}else{a:{b=H(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=Qc(a);R(a,'unclosed "("');Sc(a,")");break;case '"':case "'":b=Uc(a);break;default:if(isNaN(+b))if(!wc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==H(a.a,1)){b=a.a.next();b=vc[b]||k;a.a.next();for(d=[];")"!=H(a.a);){R(a,"Missing function argument list.");d.push(Qc(a));if(","!=H(a.a))break;a.a.next()}R(a,"Unclosed function argument list.");Tc(a);b=new tc(b,d)}else{b=k;break a}else b=new yc(+a.a.next())}"["==H(a.a)&&(d=new Fc(Yc(a)),b=new rc(b,d))}if(b)if("/"==H(a.a)||"//"==H(a.a))d=b;else return b;else b=Xc(a,"/"),d=new Cc,c.push(b)}for(;"/"==H(a.a)||"//"==H(a.a);)b=a.a.next(),R(a,"Missing next location step."),b=Xc(a,b),c.push(b);return new zc(d,
c)}
function Xc(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==H(a.a))return d=new Gc(Mc,new cc("node")),a.a.next(),d;if(".."==H(a.a))return d=new Gc(Lc,new cc("node")),a.a.next(),d;var f;"@"==H(a.a)?(f=Ac,a.a.next(),R(a,"Missing attribute name")):"::"==H(a.a,1)?(/(?![0-9])[\w]/.test(H(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=Kc[e]||k)||h(Error("No axis with name: "+e)),a.a.next(),R(a,"Missing node name")):f=Hc;e=H(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==H(a.a,
1)){wc(e)||h(Error("Invalid node type: "+e));c=a.a.next();wc(c)||h(Error("Invalid type name: "+c));Sc(a,"(");R(a,"Bad nodetype");e=H(a.a).charAt(0);var g=k;if('"'==e||"'"==e)g=Uc(a);R(a,"Bad nodetype");Tc(a);c=new cc(c,g)}else c=Vc(a);else"*"==e?c=Vc(a):h(Error("Bad token: "+a.a.next()));e=new Fc(Yc(a),f.I);return d||new Gc(f,c,e,"//"==b)}
function Yc(a){for(var b=[];"["==H(a.a);){a.a.next();R(a,"Missing predicate expression.");var c=Qc(a);b.push(c);R(a,"Unclosed predicate expression.");Sc(a,"]")}return b}function Rc(a){if("-"==H(a.a))return a.a.next(),new Nc(Rc(a));var b=Wc(a);if("|"!=H(a.a))a=b;else{for(b=[b];"|"==a.a.next();)R(a,"Missing next union location path."),b.push(Wc(a));a.a.back();a=new Oc(b)}return a};function Zc(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(Ub),b=0;b<a.length;b++)Vb.test(a[b])&&a.splice(b,1);a=new Tb(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Qc(new Pc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Ob(a));return new S(f,b)}}
function S(a,b){0==b&&(a instanceof J?b=4:"string"==typeof a?b=2:"number"==typeof a?b=1:"boolean"==typeof a?b=3:h(Error("Unexpected evaluation result.")));2!=b&&(1!=b&&3!=b&&!(a instanceof J))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof J?ic(a):""+a;break;case 1:this.numberValue=a instanceof J?+ic(a):+a;break;case 3:this.booleanValue=a instanceof J?0<a.z():!!a;break;case 4:case 5:case 6:case 7:var d=jc(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof Rb?e.g:e);this.snapshotLength=a.z();this.invalidIteratorState=l;break;case 8:case 9:d=hc(a);this.singleNodeValue=d instanceof Rb?d.g:d;break;default:h(Error("Unknown XPathResult type."))}var f=0;this.iterateNext=function(){4!=b&&5!=b&&h(Error("iterateNext called with wrong result type."));return f>=c.length?k:c[f++]};this.snapshotItem=function(a){6!=b&&7!=b&&h(Error("snapshotItem called with wrong result type."));return a>=c.length||0>a?k:c[a]}}
S.ANY_TYPE=0;S.NUMBER_TYPE=1;S.STRING_TYPE=2;S.BOOLEAN_TYPE=3;S.UNORDERED_NODE_ITERATOR_TYPE=4;S.ORDERED_NODE_ITERATOR_TYPE=5;S.UNORDERED_NODE_SNAPSHOT_TYPE=6;S.ORDERED_NODE_SNAPSHOT_TYPE=7;S.ANY_UNORDERED_NODE_TYPE=8;S.FIRST_ORDERED_NODE_TYPE=9;var T={},$c={ib:"http://www.w3.org/2000/svg"};T.za=function(a){return $c[a]||k};
T.u=function(a,b,c){var d=F(a);if(A||Lb){var e=G(d)||q,f=e.document;f.evaluate||(e.XPathResult=S,f.evaluate=function(a,b,c,d){return(new Zc(a)).evaluate(b,d)},f.createExpression=function(a){return new Zc(a)})}try{var g=d.createNSResolver?d.createNSResolver(d.documentElement):T.za;return A&&!db(7)?d.evaluate.call(d,b,a,g,c,k):d.evaluate(b,a,g,c,k)}catch(m){B&&"NS_ERROR_ILLEGAL_VALUE"==m.name||h(new y(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+
m))}};T.$=function(a,b){(!a||1!=a.nodeType)&&h(new y(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};T.Na=function(a,b){var c=function(){var c=T.u(b,a,9);return c?(c=c.singleNodeValue,z?c:c||k):b.selectSingleNode?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):k}();c===k||T.$(c,a);return c};
T.Xa=function(a,b){var c=function(){var c=T.u(b,a,7);if(c){var e=c.snapshotLength;z&&!s(e)&&T.$(k,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();x(c,function(b){T.$(b,a)});return c};function ad(a){return(a=a.exec(Qa()))?a[1]:""}var bd=function(){if(Hb)return ad(/Firefox\/([0-9.]+)/);if(Gb||Fb)return Xa;if(Mb)return ad(/Chrome\/([0-9.]+)/);if(Nb)return ad(/Version\/([0-9.]+)/);if(Jb||Kb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Qa());if(a)return a[1]+"."+a[2]}else{if(Lb)return(a=ad(/Android\s+([0-9.]+)/))?a:ad(/Version\/([0-9.]+)/);if(Ib)return ad(/Camino\/([0-9.]+)/)}return""}();var cd,dd;function ed(a){return fd?cd(a):A?0<=la(eb,a):db(a)}function gd(a){return fd?dd(a):Lb?0<=la(hd,a):0<=la(bd,a)}
var fd=function(){if(!B)return l;var a=q.Components;if(!a)return l;try{if(!a.classes)return l}catch(b){return l}var c=a.classes,a=a.interfaces,d=c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),c=c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),e=c.platformVersion,f=c.version;cd=function(a){return 0<=d.Ba(e,""+a)};dd=function(a){return 0<=d.Ba(f,""+a)};return j}(),id=Kb||Jb,jd;if(Lb){var kd=/Android\s+([0-9\.]+)/.exec(Qa());jd=kd?kd[1]:"0"}else jd="0";
var hd=jd,ld=A&&!D(8),md=D(9),nd=A&&!D(9),od=D(10),qd=A&&!D(10);Lb&&gd(2.3);!z&&(!C||ed("533"));function rd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}rd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};rd.prototype.contains=function(a){return!this||!a?l:a instanceof rd?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};function sd(a,b){var c=F(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function td(a,b){return sd(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function ud(a){var a=a?F(a):document,b;if(b=A)if(b=!D(9))b=kb(a),b=!nb(b.G);return b?a.body:a.documentElement}
function vd(a){var b=a.getBoundingClientRect();A&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function wd(a){if(A&&!D(8))return a.offsetParent;for(var b=F(a),c=td(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=td(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}
function xd(a){var b,c=F(a),d=td(a,"position");pa(a,"Parameter is required");var e=B&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new E(0,0),g=ud(c);if(a==g)return f;if(a.getBoundingClientRect)b=vd(a),a=kb(c),a=mb(a.G),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=
b.clientLeft||0,f.y+=b.clientTop||0);if(C&&"fixed"==td(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(z||C&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=wd(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!z||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function yd(a){var b=new E;if(1==a.nodeType){if(a.getBoundingClientRect){var c=vd(a);b.x=c.left;b.y=c.top}else{var c=kb(a),c=mb(c.G),d=xd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(B&&!db(12)){var e;A?e="-ms-transform":C?e="-webkit-transform":z?e="-o-transform":B&&(e="-moz-transform");var f;e&&(f=td(a,e));f||(f=td(a,"transform"));f?(a=f.match(zd),a=!a?new E(0,0):new E(parseFloat(a[1]),parseFloat(a[2]))):a=new E(0,0);b=new E(b.x+a.x,b.y+a.y)}}else e=da(a.ma),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.ma().targetTouches&&
(f=a.ma().targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function Ad(a){if("none"!=td(a,"display"))return Bd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Bd(a);b.display=c;b.position=e;b.visibility=d;return a}function Bd(a){var b=a.offsetWidth,c=a.offsetHeight,d=C&&!b&&!c;return(!s(b)||d)&&a.getBoundingClientRect?(a=vd(a),new ib(a.right-a.left,a.bottom-a.top)):new ib(b,c)}var Cd={thin:2,medium:4,thick:6};
function Dd(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:k))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:k,d;if(c in Cd)d=Cd[c];else if(/^\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.left;var e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=e;d=c}return d}var zd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Ed(a){var b;a:{a=F(a);try{b=a&&a.activeElement;break a}catch(c){}b=k}return b}function U(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Fd(a){return Gd(a,j)&&Hd(a)&&!(A||z||B&&!ed("1.9.2")?0:"none"==V(a,"pointer-events"))}function Id(a){return U(a,"OPTION")?j:U(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):l}function Jd(a,b){var c;if(c=ld)if(c="value"==b)if(c=U(a,"OPTION"))c=Kd(a,"value")===k;c?(c=[],vb(a,c,l),c=c.join("")):c=a[b];return c}
var Ld=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function Kd(a,b){b=b.toLowerCase();if("style"==b){var c=[];x(a.style.cssText.split(Ld),function(a){var b=a.indexOf(":");0<b&&(a=[a.slice(0,b),a.slice(b+1)],2==a.length&&c.push(a[0].toLowerCase(),":",a[1],";"))});c=c.join("");c=";"==c.charAt(c.length-1)?c:c+";";return z?c.replace(/\w+:;/g,""):c}if(ld&&"value"==b&&U(a,"INPUT"))return a.value;if(nd&&a[b]===j)return String(a.getAttribute(b));var d=a.getAttributeNode(b);return d&&d.specified?d.value:k}var Md="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
function Hd(a){var b=a.tagName.toUpperCase();return!va(Md,b)?j:Jd(a,"disabled")?l:a.parentNode&&1==a.parentNode.nodeType&&"OPTGROUP"==b||"OPTION"==b?Hd(a.parentNode):j}var Nd="text search tel url email password number".split(" ");function Od(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return U(a)?a:k}
function V(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=nd?"styleFloat":"cssFloat";c=sd(a,c)||Pd(a,c);if(c===k)c=k;else if(va(za,b)&&(Ca.test("#"==c.charAt(0)?c:"#"+c)||Ga(c).length||ya&&ya[c.toLowerCase()]||Ea(c).length)){var d=Ea(c);if(!d.length){a:if(d=Ga(c),!d.length){d=ya[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Ca.test(d)&&(d=Ba(d),d=Ba(d),d=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,
2),16)],d.length))break a;d=[]}3==d.length&&d.push(1)}c=4!=d.length?c:"rgba("+d.join(", ")+")"}return c}function Pd(a,b){var c=a.currentStyle||a.style,d=c[b];!s(d)&&da(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?s(d)?d:k:(c=Od(a))?Pd(c,b):k}
function Qd(a){if(da(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(U(a,hb)){b=G(F(a))||i;"hidden"!=V(a,"overflow")?a=j:(a=Od(a),!a||!U(a,"HTML")?a=j:(a=V(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var a=(b||ia).document,b=a.documentElement,d=a.body;d||h(new y(13,"No BODY element present"));a=[b.clientHeight,b.scrollHeight,b.offsetHeight,d.scrollHeight,d.offsetHeight];b=Math.max.apply(k,[b.clientWidth,b.scrollWidth,b.offsetWidth,d.scrollWidth,d.offsetWidth]);a=Math.max.apply(k,a);
b=new ib(b,a)}else b=(b||window).document,b=nb(b)?b.documentElement:b.body,b=new ib(b.clientWidth,b.clientHeight);return b}return Ad(a)}
function Gd(a,b){function c(a){if("none"==V(a,"display"))return l;a=Od(a);return!a||c(a)}function d(a){var b=Qd(a);return 0<b.height&&0<b.width?j:U(a,"PATH")&&(0<b.height||0<b.width)?(b=V(a,"stroke-width"),!!b&&0<parseInt(b,10)):ua(a.childNodes,function(b){return b.nodeType==jb&&"hidden"!=V(a,"overflow")||U(b)&&d(b)})}function e(a){var b=wd(a),c=B||A||z?Od(a):b;if((B||A||z)&&U(c,hb))b=c;if(b&&"hidden"==V(b,"overflow")){var c=Qd(b),d=yd(b),a=yd(a);return d.x+c.width<a.x||d.y+c.height<a.y?l:e(b)}return j}
function f(a){var b=V(a,"-o-transform")||V(a,"-webkit-transform")||V(a,"-ms-transform")||V(a,"-moz-transform")||V(a,"transform");if(b&&"none"!==b)return b=yd(a),a=Qd(a),0<=b.x+a.width/2&&0<=b.y+a.height/2?j:l;a=Od(a);return!a||f(a)}U(a)||h(Error("Argument to isShown must be of type Element"));if(U(a,"OPTION")||U(a,"OPTGROUP")){var g=wb(a,function(a){return U(a,"SELECT")});return!!g&&Gd(g,j)}if(U(a,"MAP")){if(!a.name)return l;g=F(a);if(g.evaluate)g=T.Na('/descendant::*[@usemap = "#'+a.name+'"]',g);
else var m=[],g=sb(g,function(b){return U(b)&&Kd(b,"usemap")=="#"+a.name},m,j)?m[0]:i;return!!g&&Gd(g,b)}if(U(a,"AREA"))return g=wb(a,function(a){return U(a,"MAP")}),!!g&&Gd(g,b);if(!(g=U(a,"INPUT")&&"hidden"==a.type.toLowerCase()||U(a,"NOSCRIPT")||"hidden"==V(a,"visibility")||!c(a)))if(g=!b)qd?"relative"==V(a,"position")?g=1:(g=V(a,"filter"),g=(g=g.match(/^alpha\(opacity=(\d*)\)/)||g.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(g[1])/100:1):g=Rd(a),g=0==g;return g||
!d(a)||!e(a)?l:f(a)}function Rd(a){var b=1,c=V(a,"opacity");c&&(b=Number(c));(a=Od(a))&&(b*=Rd(a));return b};function Sd(a){this.e=ia.document.documentElement;this.n=k;var b=Ed(this.e);b&&Td(this,b);this.A=a||new Ud}Sd.prototype.o=n("e");function Td(a,b){a.e=b;a.n=U(b,"OPTION")?wb(b,function(a){return U(a,"SELECT")}):k}
function Vd(a,b,c,d,e,f,g){if(!g&&!Fd(a.e))return l;e&&!(Wd==b||Xd==b)&&h(new y(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:a.A.p(4),ctrlKey:a.A.p(2),shiftKey:a.A.p(1),metaKey:a.A.p(8),wheelDelta:f||0,relatedTarget:e||k};return(a=a.n?Yd(a,b):a.e)?Zd(a,b,c):j}
function $d(a,b,c,d,e,f,g,m,u){if(!u&&!Fd(a.e))return l;m&&!(ae==b||be==b)&&h(new y(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:l,ctrlKey:l,shiftKey:l,metaKey:l,relatedTarget:m||k,width:0,height:0,Ma:0,rotation:0,pointerId:e,Pa:0,Qa:0,pointerType:f,Fa:g};return(a=a.n?Yd(a,b):a.e)?Zd(a,b,c):j}
function Yd(a,b){if(A)switch(b){case Wd:case ae:return k;case ce:case de:case ee:return a.n.multiple?a.n:k;default:return a.n}if(z)switch(b){case ce:case Wd:return a.n.multiple?a.e:k;default:return a.e}if(C)switch(b){case fe:case ge:return a.n.multiple?a.e:a.n;default:return a.n.multiple?a.e:k}return a.e}var he=C||z||fd&&gd(3.6);
function ie(a){if(he||!a.href)return l;if(!fd)return j;if(a.target||0==a.href.toLowerCase().indexOf("javascript"))return l;var b=G(F(a)),c=b.location.href,a=je(b.location,a.href);return c.split("#")[0]!==a.split("#")[0]}var ke=/^([^:/?#.]+:)?(?:\/\/([^/]*))?([^?#]+)?(\?[^#]*)?(#.*)?$/;
function je(a,b){var c=b.match(ke);if(!c)return"";var d=c[1]||"",e=c[2]||"",f=c[3]||"",g=c[4]||"",c=c[5]||"";if(!d&&(d=a.protocol,!e))if(e=a.host,f){if("/"!=f.charAt(0)){var m=a.pathname.lastIndexOf("/");-1!=m&&(f=a.pathname.substr(0,m+1)+f)}}else f=a.pathname,g=g||a.search;return d+"//"+e+f+g+c}function Ud(){this.ga=0}Ud.prototype.p=function(a){return 0!=(this.ga&a)};var le=!(A&&!ed(10))&&!z,me=Lb?!gd(4):!id,ne=A&&ia.navigator.msPointerEnabled;function W(a,b,c){this.d=a;this.C=b;this.D=c}W.prototype.create=function(a){a=F(a);nd?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.d,this.C,this.D));return a};W.prototype.toString=n("d");function Y(a,b,c){W.call(this,a,b,c)}w(Y,W);
Y.prototype.create=function(a,b){!B&&this==oe&&h(new y(9,"Browser does not support a mouse pixel scroll event."));var c=F(a),d;if(nd){d=c.createEventObject();d.altKey=b.altKey;d.ctrlKey=b.ctrlKey;d.metaKey=b.metaKey;d.shiftKey=b.shiftKey;d.button=b.button;d.clientX=b.clientX;d.clientY=b.clientY;var e=function(a,b){Object.defineProperty(d,a,{get:function(){return b}})};if(this==Xd||this==Wd)Object.defineProperty?(c=this==Xd,e("fromElement",c?a:b.relatedTarget),e("toElement",c?b.relatedTarget:a)):d.relatedTarget=
b.relatedTarget;this==pe&&(Object.defineProperty?e("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=G(c);d=c.createEvent("MouseEvents");c=1;if(this==pe&&(B||(d.wheelDelta=b.wheelDelta),B||z))c=b.wheelDelta/-40;B&&this==oe&&(c=b.wheelDelta);d.initMouseEvent(this.d,this.C,this.D,e,c,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(A&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var e=kb(a),e=!C&&nb(e.G)?e.G.documentElement:e.G.body,c=ud(a),f=b.clientX+
e.scrollLeft-c.clientLeft,g=b.clientY+e.scrollTop-c.clientTop;Object.defineProperty(d,"pageX",{get:function(){return f}});Object.defineProperty(d,"pageY",{get:function(){return g}})}}return d};function qe(a,b,c){W.call(this,a,b,c)}w(qe,W);
qe.prototype.create=function(a,b){var c=F(a);if(B){var d=G(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.d,this.C,this.D,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.d==re&&b.preventDefault&&c.preventDefault()}else nd?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.d,this.C,this.D)),c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.keyCode=b.charCode||b.keyCode,C&&(c.charCode=this==re?c.keyCode:
0);return c};function se(a,b,c){W.call(this,a,b,c)}w(se,W);
se.prototype.create=function(a,b){function c(b){b=sa(b,function(b){return e.createTouch(f,a,b.identifier,b.pageX,b.pageY,b.screenX,b.screenY)});return e.createTouchList.apply(e,b)}function d(b){var c=sa(b,function(b){return{identifier:b.identifier,screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY,target:a}});c.item=function(a){return c[a]};return c}le||h(new y(9,"Browser does not support firing touch events."));var e=F(a),f=G(e),g=me?d(b.changedTouches):
c(b.changedTouches),m=b.touches==b.changedTouches?g:me?d(b.touches):c(b.touches),u=b.targetTouches==b.changedTouches?g:me?d(b.targetTouches):c(b.targetTouches),t;me?(t=e.createEvent("MouseEvents"),t.initMouseEvent(this.d,this.C,this.D,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),t.touches=m,t.targetTouches=u,t.changedTouches=g,t.scale=b.scale,t.rotation=b.rotation):(t=e.createEvent("TouchEvent"),Lb?t.initTouchEvent(m,u,g,this.d,f,0,0,b.clientX,b.clientY,b.ctrlKey,
b.altKey,b.shiftKey,b.metaKey):t.initTouchEvent(this.d,this.C,this.D,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,m,u,g,b.scale,b.rotation),t.relatedTarget=b.relatedTarget);return t};function te(a,b,c){W.call(this,a,b,c)}w(te,W);
te.prototype.create=function(a,b){ne||h(new y(9,"Browser does not support MSGesture events."));var c=F(a),d=G(c),c=c.createEvent("MSGestureEvent");c.initGestureEvent(this.d,this.C,this.D,d,1,0,0,b.clientX,b.clientY,0,0,b.translationX,b.translationY,b.scale,b.expansion,b.rotation,b.velocityX,b.velocityY,b.velocityExpansion,b.velocityAngular,(new Date).getTime(),b.relatedTarget);return c};function ue(a,b,c){W.call(this,a,b,c)}w(ue,W);
ue.prototype.create=function(a,b){ne||h(new y(9,"Browser does not support MSPointer events."));var c=F(a),d=G(c),c=c.createEvent("MSPointerEvent");c.Wa(this.d,this.C,this.D,d,0,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget,0,0,b.width,b.height,b.Ma,b.rotation,b.Pa,b.Qa,b.pointerId,b.pointerType,0,b.Fa);return c};
var ve=new W("change",j,l),we=new W("focus",l,l),fe=new Y("click",j,j),ce=new Y("contextmenu",j,j),xe=new Y("dblclick",j,j),ye=new Y("mousedown",j,j),de=new Y("mousemove",j,l),Xd=new Y("mouseout",j,j),Wd=new Y("mouseover",j,j),ge=new Y("mouseup",j,j),pe=new Y(B?"DOMMouseScroll":"mousewheel",j,j),oe=new Y("MozMousePixelScroll",j,j),re=new qe("keypress",j,j),ze=new se("touchmove",j,j),Ae=new se("touchstart",j,j),Be=new ue("MSPointerDown",j,j),ee=new ue("MSPointerMove",j,j),ae=new ue("MSPointerOver",
j,j),be=new ue("MSPointerOut",j,j),Ce=new ue("MSPointerUp",j,j);function Zd(a,b,c){c=b.create(a,c);"isTrusted"in c||(c.isTrusted=l);return nd?a.fireEvent("on"+b.d,c):a.dispatchEvent(c)};function De(a){if("function"==typeof a.L)return a.L();if(v(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 Ia(a)};function Ee(a,b){this.m={};this.i=[];var c=arguments.length;if(1<c){c%2&&h(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Y(a)}p=Ee.prototype;p.K=0;p.ya=0;p.L=function(){Fe(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.m[this.i[b]]);return a};function Ge(a){Fe(a);return a.i.concat()}p.remove=function(a){return He(this.m,a)?(delete this.m[a],this.K--,this.ya++,this.i.length>2*this.K&&Fe(this),j):l};
function Fe(a){if(a.K!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];He(a.m,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.K!=a.i.length){for(var e={},c=b=0;b<a.i.length;)d=a.i[b],He(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}}p.get=function(a,b){return He(this.m,a)?this.m[a]:b};p.set=function(a,b){He(this.m,a)||(this.K++,this.i.push(a),this.ya++);this.m[a]=b};
p.Y=function(a){var b;if(a instanceof Ee)b=Ge(a),a=a.L();else{b=[];var c=0,d;for(d in a)b[c++]=d;a=Ia(a)}for(c=0;c<b.length;c++)this.set(b[c],a[c])};function He(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ie(a){this.m=new Ee;a&&this.Y(a)}function Je(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[fa]||(a[fa]=++ga)):b.substr(0,1)+a}p=Ie.prototype;p.add=function(a){this.m.set(Je(a),a)};p.Y=function(a){for(var a=De(a),b=a.length,c=0;c<b;c++)this.add(a[c])};p.remove=function(a){return this.m.remove(Je(a))};p.contains=function(a){a=Je(a);return He(this.m.m,a)};p.L=function(){return this.m.L()};function Ke(a){Sd.call(this);var b;if(U(this.o(),"TEXTAREA"))b=j;else if(U(this.o(),"INPUT"))b=va(Nd,this.o().type.toLowerCase());else{b=this.o();var c=function(a){return"inherit"==a.contentEditable?(a=Od(a))?c(a):l:"true"==a.contentEditable};b=(!s(b.contentEditable)?0:!A&&s(b.isContentEditable)?b.isContentEditable:c(b))?j:l}this.Ta=b&&!Jd(this.o(),"readOnly");this.Ca=0;this.sa=new Ie;a&&(x(a.pressed,function(a){if(va(Le,a)){var b=Me.get(a.code),c=this.A;c.ga|=b}this.sa.add(a)},this),this.Ca=a.currentPos)}
w(Ke,Sd);var Ne={};function Z(a,b,c){ea(a)&&(a=B?a.b:z?a.opera:a.c);a=new Oe(a,b,c);if(b&&(!(b in Ne)||c))Ne[b]={key:a,shift:l},c&&(Ne[c]={key:a,shift:j});return a}function Oe(a,b,c){this.code=a;this.Aa=b||k;this.gb=c||this.Aa}Z(8);Z(9);Z(13);var Pe=Z(16),Qe=Z(17),Re=Z(18);Z(19);Z(20);Z(27);Z(32," ");Z(33);Z(34);Z(35);Z(36);Z(37);Z(38);Z(39);Z(40);Z(44);Z(45);Z(46);Z(48,"0",")");Z(49,"1","!");Z(50,"2","@");Z(51,"3","#");Z(52,"4","$");Z(53,"5","%");Z(54,"6","^");Z(55,"7","&");Z(56,"8","*");
Z(57,"9","(");Z(65,"a","A");Z(66,"b","B");Z(67,"c","C");Z(68,"d","D");Z(69,"e","E");Z(70,"f","F");Z(71,"g","G");Z(72,"h","H");Z(73,"i","I");Z(74,"j","J");Z(75,"k","K");Z(76,"l","L");Z(77,"m","M");Z(78,"n","N");Z(79,"o","O");Z(80,"p","P");Z(81,"q","Q");Z(82,"r","R");Z(83,"s","S");Z(84,"t","T");Z(85,"u","U");Z(86,"v","V");Z(87,"w","W");Z(88,"x","X");Z(89,"y","Y");Z(90,"z","Z");var Se=Z(Pa?{b:91,c:91,opera:219}:Oa?{b:224,c:91,opera:17}:{b:0,c:91,opera:k});
Z(Pa?{b:92,c:92,opera:220}:Oa?{b:224,c:93,opera:17}:{b:0,c:92,opera:k});Z(Pa?{b:93,c:93,opera:0}:Oa?{b:0,c:0,opera:16}:{b:93,c:k,opera:0});Z({b:96,c:96,opera:48},"0");Z({b:97,c:97,opera:49},"1");Z({b:98,c:98,opera:50},"2");Z({b:99,c:99,opera:51},"3");Z({b:100,c:100,opera:52},"4");Z({b:101,c:101,opera:53},"5");Z({b:102,c:102,opera:54},"6");Z({b:103,c:103,opera:55},"7");Z({b:104,c:104,opera:56},"8");Z({b:105,c:105,opera:57},"9");Z({b:106,c:106,opera:Va?56:42},"*");Z({b:107,c:107,opera:Va?61:43},"+");
Z({b:109,c:109,opera:Va?109:45},"-");Z({b:110,c:110,opera:Va?190:78},".");Z({b:111,c:111,opera:Va?191:47},"/");Z(Va&&z?k:144);Z(112);Z(113);Z(114);Z(115);Z(116);Z(117);Z(118);Z(119);Z(120);Z(121);Z(122);Z(123);Z({b:107,c:187,opera:61},"=","+");Z(108,",");Z({b:109,c:189,opera:109},"-","_");Z(188,",","<");Z(190,".",">");Z(191,"/","?");Z(192,"`","~");Z(219,"[","{");Z(220,"\\","|");Z(221,"]","}");Z({b:59,c:186,opera:59},";",":");Z(222,"'",'"');var Le=[Re,Qe,Se,Pe],Te=new Ee;Te.set(1,Pe);Te.set(2,Qe);
Te.set(4,Re);Te.set(8,Se);var Me,Ue=new Ee;x(Ge(Te),function(a){Ue.set(Te.get(a).code,a)});Me=Ue;Ke.prototype.p=function(a){return this.sa.contains(a)};B&&ed(12);function Ve(a,b){Sd.call(this,b);this.R=this.r=k;this.s=new E(0,0);this.ba=this.N=l;if(a){this.r=a.Ra;try{U(a.Da)&&(this.R=a.Da)}catch(c){this.r=k}this.s=a.Sa;this.N=a.eb;this.ba=a.Va;try{U(a.element)&&Td(this,a.element)}catch(d){this.r=k}}}w(Ve,Sd);var $={};
nd?($[fe]=[0,0,0,k],$[ce]=[k,k,0,k],$[ge]=[1,4,2,k],$[Xd]=[0,0,0,0],$[de]=[1,4,2,0]):C||md?($[fe]=[0,1,2,k],$[ce]=[k,k,2,k],$[ge]=[0,1,2,k],$[Xd]=[0,1,2,0],$[de]=[0,1,2,0]):($[fe]=[0,1,2,k],$[ce]=[k,k,2,k],$[ge]=[0,1,2,k],$[Xd]=[0,0,0,0],$[de]=[0,0,0,0]);od&&($[Be]=$[ge],$[Ce]=$[ge],$[ee]=[-1,-1,-1,-1],$[be]=$[ee],$[ae]=$[ee]);$[xe]=$[fe];$[ye]=$[ge];$[Wd]=$[Xd];var We={Za:Be,$a:ee,ab:be,bb:ae,cb:Ce};
Ve.prototype.move=function(a,b){var c=Fd(a),d=yd(a);this.s.x=b.x+d.x;this.s.y=b.y+d.y;d=this.o();if(a!=d){try{G(F(d)).closed&&(d=k)}catch(e){d=k}if(d){var f=d===ia.document.documentElement||d===ia.document.body,d=!this.ba&&f?k:d;Xe(this,Xd,a)}Td(this,a);A||Xe(this,Wd,d,k,c)}Xe(this,de,k,k,c);A&&a!=d&&Xe(this,Wd,d,k,c);this.N=l};function Xe(a,b,c,d,e){a.ba=j;if(od){var f=We[b];if(f&&!$d(a,f,a.s,Ye(a,f),1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,j,c,e))return l}return Vd(a,b,a.s,Ye(a,b),c,d,e)}
function Ye(a,b){if(!(b in $))return 0;var c=$[b][a.r===k?3:a.r];c===k&&h(new y(13,"Event does not permit the specified mouse button."));return c};function Ze(){Sd.call(this);this.s=new E(0,0);this.Q=new E(0,0)}w(Ze,Sd);p=Ze.prototype;p.Ea=l;p.ia=0;p.X=0;
p.move=function(a,b,c){(!this.p()||od)&&Td(this,a);a=yd(a);this.s.x=b.x+a.x;this.s.y=b.y+a.y;s(c)&&(this.Q.x=c.x+a.x,this.Q.y=c.y+a.y);if(this.p())if(this.Ea=j,od){var d=$e;d(this,this.s,this.ia,j);this.X&&d(this,this.Q,this.X,l)}else{this.p()||h(new y(13,"Should never fire event when touchscreen is not pressed."));var e;this.X&&(e=this.X,d=this.Q);var b=this.ia,c=this.s,a=function(a,b){var c={identifier:a,screenX:b.x,screenY:b.y,clientX:b.x,clientY:b.y,pageX:b.x,pageY:b.y};f.changedTouches.push(c);
if(ze==Ae||ze==ze)f.touches.push(c),f.targetTouches.push(c)},f={touches:[],targetTouches:[],changedTouches:[],altKey:this.A.p(4),ctrlKey:this.A.p(2),shiftKey:this.A.p(1),metaKey:this.A.p(8),relatedTarget:k,scale:0,rotation:0};a(b,c);s(e)&&a(e,d);Zd(this.e,ze,f)}};p.p=function(){return!!this.ia};function $e(a,b,c,d){$d(a,ee,b,-1,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);Vd(a,de,b,0)};function af(a,b){this.x=a;this.y=b}w(af,E);af.prototype.scale=function(a){this.x*=a;this.y*=a;return this};af.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function bf(a,b,c,d,e){Gd(a,j)||h(new y(11,"Element is not currently visible and may not be manipulated"));var f=F(a),f=C?f.body:f.documentElement,g;g=xd(a);var m=xd(f),u;if(A){var t=Dd(f,"borderLeft");u=Dd(f,"borderRight");var X=Dd(f,"borderTop"),P=Dd(f,"borderBottom");u=new rd(X,u,P,t)}else t=sd(f,"borderLeftWidth"),u=sd(f,"borderRightWidth"),X=sd(f,"borderTopWidth"),P=sd(f,"borderBottomWidth"),u=new rd(parseFloat(X),parseFloat(u),parseFloat(P),parseFloat(t));t=g.x-m.x-u.left;g=g.y-m.y-u.top;m=
f.clientHeight-a.offsetHeight;u=f.scrollLeft;X=f.scrollTop;u+=Math.min(t,Math.max(t-(f.clientWidth-a.offsetWidth),0));X+=Math.min(g,Math.max(g-m,0));g=new E(u,X);f.scrollLeft=g.x;f.scrollTop=g.y;d?d=new af(d.x,d.y):(d=cf(a),d=new af(d.width/2,d.height/2));e=e||new Ve;e.move(a,d);e.r!==k&&h(new y(13,"Cannot press more then one button or an already pressed button."));e.r=0;e.R=e.o();var r;f=B&&!gd(4);(C||f)&&(U(e.o(),"OPTION")||U(e.o(),"SELECT"))?r=j:((f=B||A)&&(r=Ed(e.o())),r=(g=Xe(e,ye))&&f&&r!=Ed(e.o())?
l:g);if(r&&(r=e.n||e.e,f=Ed(r),r!=f)){if(f&&(da(f.blur)||A&&ea(f.blur))){try{"body"!==f.tagName.toLowerCase()&&f.blur()}catch(pd){A&&"Unspecified error."==pd.message||h(pd)}A&&!ed(8)&&G(F(r)).focus()}if(da(r.focus)||A&&ea(r.focus))z&&ed(11)&&!Gd(r)?Zd(r,we):r.focus()}r=yd(a);e.move(a,new E(d.x+Math.floor(b/2),d.y+Math.floor(c/2)));f=yd(a);e.move(a,new E(r.x+d.x+b-f.x,r.y+d.y+c-f.y));e.r===k&&h(new y(13,"Cannot release a button when no button is pressed."));Xe(e,ge);if(0==e.r&&e.o()==e.R){a=e.s;b=
Ye(e,fe);if(Fd(e.e)){r=c=k;if(!he)for(d=e.e;d;d=d.parentNode)if(U(d,"A")){c=d;break}else{a:{if(U(d,"INPUT")&&(f=d.type.toLowerCase(),"submit"==f||"image"==f)){f=j;break a}if(U(d,"BUTTON")&&(f=d.type.toLowerCase(),"submit"==f)){f=j;break a}f=l}if(f){r=d;break}}if(f=d=Id(e.e)){f=e.e;Id(f)||h(new y(15,"Element is not selectable"));g="selected";m=f.type&&f.type.toLowerCase();if("checkbox"==m||"radio"==m)g="checked";f=!!Jd(f,g)}if(e.n&&(g=e.n,!f||g.multiple))e.e.selected=!f,(!C||!g.multiple||Lb&&gd(4))&&
Zd(g,ve);A&&r?r.click():Vd(e,fe,a,b)&&(c&&ie(c)?(a=c,b=a.href,c=G(F(a)),A&&!ed(8)&&(b=je(c.location,b)),a.target?c.open(b,a.target):c.location.href=b):d&&!e.n&&(!B&&!C&&!(f&&"radio"==e.e.type.toLowerCase()))&&(e.e.checked=!f,z&&!ed(11)&&Zd(e.e,ve)))}e.N&&Xe(e,xe);e.N=!e.N}else 2==e.r&&Xe(e,ce);e.r=k;e.R=k}function cf(a){var b=Ad(a);return 0<b.width&&0<b.height||!a.offsetParent?b:cf(a.offsetParent)}function df(){Sd.call(this)}w(df,Sd);df.Ua=function(){return df.na?df.na:df.na=new df};function ef(){this.V=i}
function ff(a,b,c){switch(typeof b){case "string":gf(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("array"==ba(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],ff(a,a.V?a.V.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),gf(f,
c),c.push(":"),ff(a,a.V?a.V.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var hf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},jf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function gf(a,b){b.push('"',a.replace(jf,function(a){if(a in hf)return hf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return hf[a]=e+b.toString(16)}),'"')};C||z||B&&ed(3.5)||A&&ed(8);function kf(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return sa(a,kf);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=lf(a);return b}if("document"in a)return b={},b.WINDOW=lf(a),b;if(ca(a))return sa(a,kf);var b=function(a,b){return"number"==typeof b||v(b)},c={},d;for(d in a)b.call(i,0,d)&&(c[d]=a[d]);return Ha(c,kf);default:return k}}
function mf(a,b){return"array"==ba(a)?sa(a,function(a){return mf(a,b)}):ea(a)?"function"==typeof a?a:"ELEMENT"in a?nf(a.ELEMENT,b):"WINDOW"in a?nf(a.WINDOW,b):Ha(a,function(a){return mf(a,b)}):a}function of(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.ea=ha());b.ea||(b.ea=ha());return b}function lf(a){var b=of(a.ownerDocument),c;a:{c=function(b){return b==a};for(var d in b)if(c.call(i,b[d])){c=d;break a}c=i}c||(c=":wdc:"+b.ea++,b[c]=a);return c}
function nf(a,b){var a=decodeURIComponent(a),c=b||document,d=of(c);a in d||h(new y(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new y(23,"Window has been closed."))),e;for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];h(new y(10,"Element is no longer attached to the DOM"))};function pf(a,b,c,d){var a=[a,b,c,d],b=bf,e;try{var b=v(b)?new ia.Function(b):ia==window?b:new ia.Function("return ("+b+").apply(null,arguments);"),f=mf(a,ia.document),g=b.apply(k,f);e={status:0,value:kf(g)}}catch(m){e={status:"code"in m?m.code:13,value:{message:m.message}}}f=[];ff(new ef,e,f);return f.join("")}var qf=["_"],rf=q;!(qf[0]in rf)&&rf.execScript&&rf.execScript("var "+qf[0]);for(var sf;qf.length&&(sf=qf.shift());)!qf.length&&s(pf)?rf[sf]=pf:rf=rf[sf]?rf[sf]:rf[sf]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
