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 o,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 r(a){return a!==i}function ca(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(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 t(a,b){function c(){}c.prototype=b.prototype;a.Ya=b.prototype;a.prototype=new c};var v=window;var ia={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"};function ja(a){Error.captureStackTrace?Error.captureStackTrace(this,ja):this.stack=Error().stack||"";a&&(this.message=String(a))}t(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]||"",p=RegExp("(\\d*)(\\D*)","g"),V=RegExp("(\\d*)(\\D*)","g");do{var P=p.exec(m)||["","",""],Z=V.exec(u)||["","",""];if(0==P[0].length&&0==Z[0].length)break;c=((0==P[1].length?0:parseInt(P[1],10))<(0==Z[1].length?0:parseInt(Z[1],10))?-1:(0==P[1].length?0:parseInt(P[1],10))>(0==Z[1].length?
0:parseInt(Z[1],10))?1:0)||((0==P[2].length)<(0==Z[2].length)?-1:(0==P[2].length)>(0==Z[2].length)?1:0)||(P[2]<Z[2]?-1:P[2]>Z[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.Ua=a}t(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 w(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)}function ra(a,b){for(var c=a.length,d=[],e=0,f=s(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=s(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;w(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function ua(a,b){for(var c=a.length,d=s(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(s(a))c=!s(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="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),za=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Aa(a){Ba.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(za,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Ba=/^#(?:[0-9a-f]{3}){1,2}$/i,Ca=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Da(a){var b=a.match(Ca);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 Ea=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Fa(a){var b=a.match(Ea);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 Ga(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c}function Ha(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function x(a,b){this.code=a;this.message=b||"";this.name=Ia[a]||Ia[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}t(x,Error);
var Ia={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"};
x.prototype.toString=function(){return this.name+": "+this.message};var Ja,Ka,La,Ma,Na,Oa;function Pa(){return q.navigator?q.navigator.userAgent:k}Ma=La=Ka=Ja=l;var Qa;if(Qa=Pa()){var Ra=q.navigator;Ja=0==Qa.indexOf("Opera");Ka=!Ja&&-1!=Qa.indexOf("MSIE");La=!Ja&&-1!=Qa.indexOf("WebKit");Ma=!Ja&&!La&&"Gecko"==Ra.product}var y=Ja,z=Ka,A=Ma,B=La,Sa,Ta=q.navigator;Sa=Ta&&Ta.platform||"";Na=-1!=Sa.indexOf("Mac");Oa=-1!=Sa.indexOf("Win");var Ua=-1!=Sa.indexOf("Linux"),Va;
a:{var Wa="",Xa;if(y&&q.opera)var Ya=q.opera.version,Wa="function"==typeof Ya?Ya():Ya;else if(A?Xa=/rv\:([^\);]+)(\)|;)/:z?Xa=/MSIE\s+([^\);]+)(\)|;)/:B&&(Xa=/WebKit\/(\S+)/),Xa)var Za=Xa.exec(Pa()),Wa=Za?Za[1]:"";if(z){var $a,ab=q.document;$a=ab?ab.documentMode:i;if($a>parseFloat(Wa)){Va=String($a);break a}}Va=Wa}var bb={};function cb(a){return bb[a]||(bb[a]=0<=la(Va,a))}var db={};function eb(a){return db[a]||(db[a]=z&&!!document.documentMode&&document.documentMode>=a)};var fb,gb,hb,ib,jb,kb,lb;lb=kb=jb=ib=hb=gb=fb=l;var C=Pa();C&&(-1!=C.indexOf("Firefox")?fb=j:-1!=C.indexOf("Camino")?gb=j:-1!=C.indexOf("iPhone")||-1!=C.indexOf("iPod")?hb=j:-1!=C.indexOf("iPad")?ib=j:-1!=C.indexOf("Android")?jb=j:-1!=C.indexOf("Chrome")?kb=j:-1!=C.indexOf("Safari")&&(lb=j));var mb=y,nb=z,ob=fb,pb=gb,qb=hb,rb=ib,sb=jb,tb=kb,ub=lb;function vb(a){return(a=a.exec(Pa()))?a[1]:""}var wb=function(){if(ob)return vb(/Firefox\/([0-9.]+)/);if(nb||mb)return Va;if(tb)return vb(/Chrome\/([0-9.]+)/);if(ub)return vb(/Version\/([0-9.]+)/);if(qb||rb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Pa());if(a)return a[1]+"."+a[2]}else{if(sb)return(a=vb(/Android\s+([0-9.]+)/))?a:vb(/Version\/([0-9.]+)/);if(pb)return vb(/Camino\/([0-9.]+)/)}return""}();var xb,yb;function zb(a){return Ab?xb(a):z?0<=la(document.documentMode,a):cb(a)}function Bb(a){return Ab?yb(a):sb?0<=la(Cb,a):0<=la(wb,a)}
var Ab=function(){if(!A)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;xb=function(a){return 0<=d.Ca(e,""+a)};yb=function(a){return 0<=d.Ca(f,""+a)};return j}(),Db=rb||qb,Eb;if(sb){var Fb=/Android\s+([0-9\.]+)/.exec(Pa());Eb=Fb?Fb[1]:"0"}else Eb="0";
var Cb=Eb,Gb=z&&9<=document.documentMode,Hb=z&&!Gb;var Ib;!z||eb(9);!A&&!z||z&&eb(9)||A&&cb("1.9.1");z&&cb("9");var Jb="BODY";function D(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0}D.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function Kb(a,b){this.width=a;this.height=b}o=Kb.prototype;o.toString=function(){return"("+this.width+" x "+this.height+")"};o.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};o.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};o.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};o.scale=function(a){this.width*=a;this.height*=a;return this};var Lb=3;function Mb(a){return a?new Nb(E(a)):Ib||(Ib=new Nb)}function Ob(a){var b=!B&&"CSS1Compat"==a.compatMode?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new D(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function F(a){return a?a.parentWindow||a.defaultView:window}
function Pb(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 Qb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if((9==a.nodeType||9==b.nodeType)&&z&&!cb(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?Rb(a,b):!c&&Pb(e,b)?-1*Sb(a,b):!d&&Pb(f,a)?Sb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=
E(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 Sb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Rb(d,a)}function Rb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function E(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Tb(a,b,c,d){if(a!=k)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Tb(a,b,c,d))return j;a=a.nextSibling}return l}var Ub={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Vb={IMG:" ",BR:"\n"};function Wb(a,b,c){if(!(a.nodeName in Ub))if(a.nodeType==Lb)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Vb)b.push(Vb[a.nodeName]);else for(a=a.firstChild;a;)Wb(a,b,c),a=a.nextSibling}
function Xb(a,b){for(var a=a.parentNode,c=0;a;){if(b(a))return a;a=a.parentNode;c++}return k}function Nb(a){this.O=a||q.document||document}Nb.prototype.B=function(a){return s(a)?this.O.getElementById(a):a};Nb.prototype.contains=Pb;function Yb(a,b,c){this.g=a;this.La=b||1;this.r=c||1};var Zb=z&&!eb(9),$b=z&&!eb(8);function ac(a,b,c,d,e){this.g=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.Wa=e;this.parentNode=b}function bc(a,b,c){var d=$b&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new ac(b,a,b.nodeName,d,c)};function cc(a){this.ha=a;this.Q=0}var dc=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),ec=/^\s/;function G(a,b){return a.ha[a.Q+(b||0)]}cc.prototype.next=function(){return this.ha[this.Q++]};cc.prototype.back=function(){this.Q--};cc.prototype.empty=function(){return this.ha.length<=this.Q};function H(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(Zb&&"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),Zb&&"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 fc(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return l}catch(d){return l}$b&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function gc(a,b,c,d,e){return(Zb?hc:ic).call(k,a,b,s(c)?c:k,s(d)?d:k,e||new I)}
function hc(a,b,c,d,e){if(a instanceof jc||8==a.d||c&&a.d===k){var f=b.all;if(!f)return e;a=kc(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],m=0;b=f[m++];)fc(b,c,d)&&g.push(b);f=g}for(m=0;b=f[m++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}lc(a,b,c,d,e);return e}
function ic(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!z?(b=b.getElementsByName(d),w(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),w(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof J?lc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){fc(a,c,d)&&e.add(a)}));return e}
function mc(a,b,c,d,e){var f;if((a instanceof jc||8==a.d||c&&a.d===k)&&(f=b.childNodes)){var g=kc(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 fc(a,c,d)}));w(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return nc(a,b,c,d,e)}function nc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)fc(b,c,d)&&a.matches(b)&&e.add(b);return e}
function lc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)fc(b,c,d)&&a.matches(b)&&e.add(b),lc(a,b,c,d,e)}function kc(a){if(a instanceof J){if(8==a.d)return"!";if(a.d===k)return"*"}return a.getName()};function I(){this.r=this.m=k;this.L=0}function oc(a){this.u=a;this.next=this.C=k}function pc(a,b){if(a.m){if(!b.m)return a}else return b;for(var c=a.m,d=b.m,e=k,f=k,g=0;c&&d;)c.u==d.u||c.u instanceof ac&&d.u instanceof ac&&c.u.g==d.u.g?(f=c,c=c.next,d=d.next):0<Qb(c.u,d.u)?(f=d,d=d.next):(f=c,c=c.next),(f.C=e)?e.next=f:a.m=f,e=f,g++;for(f=c||d;f;)f.C=e,e=e.next=f,g++,f=f.next;a.r=e;a.L=g;return a}
I.prototype.unshift=function(a){a=new oc(a);a.next=this.m;this.r?this.m.C=a:this.m=this.r=a;this.m=a;this.L++};I.prototype.add=function(a){a=new oc(a);a.C=this.r;this.m?this.r.next=a:this.m=this.r=a;this.r=a;this.L++};function qc(a){return(a=a.m)?a.u:k}I.prototype.v=n("L");function rc(a){return(a=qc(a))?H(a):""}function sc(a,b){return new tc(a,!!b)}function tc(a,b){this.Ia=a;this.ia=(this.G=b)?a.r:a.m;this.ca=k}
tc.prototype.next=function(){var a=this.ia;if(a==k)return k;var b=this.ca=a;this.ia=this.G?a.C:a.next;return b.u};tc.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.C,b=b.next;c?c.next=b:a.m=b;b?b.C=c:a.r=c;a.L--;this.ca=k};function K(a){this.l=a;this.k=this.t=l;this.M=k}K.prototype.h=n("t");K.prototype.A=n("M");function L(a,b){var c=a.evaluate(b);return c instanceof I?+rc(c):+c}function M(a,b){var c=a.evaluate(b);return c instanceof I?rc(c):""+c}function uc(a,b){var c=a.evaluate(b);return c instanceof I?!!c.v():!!c};function vc(a,b,c){K.call(this,a.l);this.fa=a;this.na=b;this.ua=c;this.t=b.h()||c.h();this.k=b.k||c.k;this.fa==wc&&(!c.k&&!c.h()&&4!=c.l&&0!=c.l&&b.A()?this.M={name:b.A().name,H:c}:!b.k&&(!b.h()&&4!=b.l&&0!=b.l&&c.A())&&(this.M={name:c.A().name,H:b}))}t(vc,K);
function xc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof I&&c instanceof I){f=sc(b);for(b=f.next();b;b=f.next()){e=sc(c);for(d=e.next();d;d=e.next())if(a(H(b),H(d)))return j}return l}if(b instanceof I||c instanceof I){b instanceof I?e=b:(e=c,c=b);e=sc(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+H(d);break;case "boolean":f=!!H(d);break;case "string":f=H(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)}vc.prototype.evaluate=function(a){return this.fa.s(this.na,this.ua,a)};vc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.fa+"\n",a=a+"  ",b=b+(this.na.toString(a)+"\n");return b+=this.ua.toString(a)};function yc(a,b,c,d){this.Ka=a;this.ra=b;this.l=c;this.s=d}yc.prototype.toString=n("Ka");var zc={};
function N(a,b,c,d){a in zc&&h(Error("Binary operator already created: "+a));a=new yc(a,b,c,d);return zc[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 xc(function(a,b){return a<b},a,b,c)});
N(">",4,2,function(a,b,c){return xc(function(a,b){return a>b},a,b,c)});N("<=",4,2,function(a,b,c){return xc(function(a,b){return a<=b},a,b,c)});N(">=",4,2,function(a,b,c){return xc(function(a,b){return a>=b},a,b,c)});var wc=N("=",3,2,function(a,b,c){return xc(function(a,b){return a==b},a,b,c,j)});N("!=",3,2,function(a,b,c){return xc(function(a,b){return a!=b},a,b,c,j)});N("and",2,2,function(a,b,c){return uc(a,c)&&uc(b,c)});N("or",1,2,function(a,b,c){return uc(a,c)||uc(b,c)});function Ac(a,b){b.v()&&4!=a.l&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));K.call(this,a.l);this.ta=a;this.f=b;this.t=a.h();this.k=a.k}t(Ac,K);Ac.prototype.evaluate=function(a){a=this.ta.evaluate(a);return Bc(this.f,a)};Ac.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 Cc(a,b){b.length<a.pa&&h(Error("Function "+a.o+" expects at least"+a.pa+" arguments, "+b.length+" given"));a.da!==k&&b.length>a.da&&h(Error("Function "+a.o+" expects at most "+a.da+" arguments, "+b.length+" given"));a.Ja&&w(b,function(b,d){4!=b.l&&h(Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+b))});K.call(this,a.l);this.P=a;this.X=b;this.t=a.t||ua(b,function(a){return a.h()});this.k=a.Ha&&!b.length||a.Ga&&!!b.length||ua(b,function(a){return a.k})}t(Cc,K);
Cc.prototype.evaluate=function(a){return this.P.s.apply(k,wa(a,this.X))};Cc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.P+"\n",b=b+"  ";this.X.length&&(a+=b+"Arguments:",b+="  ",a=ta(this.X,function(a,d){return a+"\n"+d.toString(b)},a));return a};function Dc(a,b,c,d,e,f,g,m,u){this.o=a;this.l=b;this.t=c;this.Ha=d;this.Ga=e;this.s=f;this.pa=g;this.da=r(m)?m:g;this.Ja=!!u}Dc.prototype.toString=n("o");var Ec={};
function O(a,b,c,d,e,f,g,m){a in Ec&&h(Error("Function already created: "+a+"."));Ec[a]=new Dc(a,b,c,d,l,e,f,g,m)}O("boolean",2,l,l,function(a,b){return uc(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).v()},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(Zb){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=s(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:s(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=[];w(d,function(a){(a=c(a))&&!va(f,a)&&f.push(a)});f.sort(Qb);var g=new I;w(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.r},0);O("local-name",3,l,j,function(a,b){var c=b?qc(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,j);O("name",3,l,j,function(a,b){var c=b?qc(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):H(a.g)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
O("not",2,l,l,function(a,b){return!uc(b,a)},1);O("number",1,l,j,function(a,b){return b?L(b,a):+H(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):H(a.g)},0,1);O("string-length",1,l,j,function(a,b){return(b?M(b,a):H(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=sc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+H(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 J(a,b){this.xa=a;this.oa=r(b)?b:k;this.d=k;switch(a){case "comment":this.d=8;break;case "text":this.d=Lb;break;case "processing-instruction":this.d=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function Fc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}J.prototype.matches=function(a){return this.d===k||this.d==a.nodeType};J.prototype.getName=n("xa");
J.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.xa;this.oa===k||(b+="\n"+this.oa.toString(a+"  "));return b};function Gc(a){K.call(this,3);this.va=a.substring(1,a.length-1)}t(Gc,K);Gc.prototype.evaluate=n("va");Gc.prototype.toString=function(a){return(a||"")+"literal: "+this.va};function jc(a){this.o=a.toLowerCase()}jc.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.o||this.o==a.nodeName.toLowerCase()?j:this.o==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};jc.prototype.getName=n("o");jc.prototype.toString=function(a){return(a||"")+"nametest: "+this.o};function Hc(a){K.call(this,1);this.ya=a}t(Hc,K);Hc.prototype.evaluate=n("ya");Hc.prototype.toString=function(a){return(a||"")+"number: "+this.ya};function Ic(a,b){K.call(this,a.l);this.ka=a;this.N=b;this.t=a.h();this.k=a.k;if(1==this.N.length){var c=this.N[0];!c.$&&c.z==Jc&&(c=c.T,"*"!=c.getName()&&(this.M={name:c.getName(),H:k}))}}t(Ic,K);function Kc(){K.call(this,4)}t(Kc,K);Kc.prototype.evaluate=function(a){var b=new I,a=a.g;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Kc.prototype.toString=function(a){return a+"RootHelperExpr"};function Lc(){K.call(this,4)}t(Lc,K);Lc.prototype.evaluate=function(a){var b=new I;b.add(a.g);return b};
Lc.prototype.toString=function(a){return a+"ContextHelperExpr"};
Ic.prototype.evaluate=function(a){var b=this.ka.evaluate(a);b instanceof I||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.N,c=0,d=a.length;c<d&&b.v();c++){var e=a[c],f=sc(b,e.z.G),g;if(!e.h()&&e.z==Mc){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new Yb(g))}else if(!e.h()&&e.z==Nc)g=f.next(),b=e.evaluate(new Yb(g));else{g=f.next();for(b=e.evaluate(new Yb(g));(g=f.next())!=k;)g=e.evaluate(new Yb(g)),b=pc(b,g)}}return b};
Ic.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.ka.toString(b);this.N.length&&(c+=b+"Steps:\n",b+="  ",w(this.N,function(a){c+=a.toString(b)}));return c};function Oc(a,b){this.f=a;this.G=!!b}function Bc(a,b,c){for(c=c||0;c<a.f.length;c++)for(var d=a.f[c],e=sc(b),f=b.v(),g,m=0;g=e.next();m++){var u=a.G?f-m:m+1;g=d.evaluate(new Yb(g,u,f));var p;"number"==typeof g?p=u==g:"string"==typeof g||"boolean"==typeof g?p=!!g:g instanceof I?p=0<g.v():h(Error("Predicate.evaluate returned an unexpected type."));p||e.remove()}return b}Oc.prototype.A=function(){return 0<this.f.length?this.f[0].A():k};
Oc.prototype.h=function(){for(var a=0;a<this.f.length;a++){var b=this.f[a];if(b.h()||1==b.l||0==b.l)return j}return l};Oc.prototype.v=function(){return this.f.length};Oc.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 Pc(a,b,c,d){K.call(this,4);this.z=a;this.T=b;this.f=c||new Oc([]);this.$=!!d;b=this.f.A();a.Na&&b&&(a=b.name,a=Zb?a.toLowerCase():a,this.M={name:a,H:b.H});this.t=this.f.h()}t(Pc,K);
Pc.prototype.evaluate=function(a){var b=a.g,c=k,c=this.A(),d=k,e=k,f=0;c&&(d=c.name,e=c.H?M(c.H,a):k,f=1);if(this.$)if(!this.h()&&this.z==Qc)c=gc(this.T,b,d,e),c=Bc(this.f,c,f);else if(a=sc((new Pc(Rc,new J("node"))).evaluate(a)),b=a.next())for(c=this.s(b,d,e,f);(b=a.next())!=k;)c=pc(c,this.s(b,d,e,f));else c=new I;else c=this.s(a.g,d,e,f);return c};Pc.prototype.s=function(a,b,c,d){a=this.z.P(this.T,a,b,c);return a=Bc(this.f,a,d)};
Pc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.$?"//":"/")+"\n");this.z.o&&(b+=a+"Axis: "+this.z+"\n");b+=this.T.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 Sc(a,b,c,d){this.o=a;this.P=b;this.G=c;this.Na=d}Sc.prototype.toString=n("o");var Tc={};
function Q(a,b,c,d){a in Tc&&h(Error("Axis already created: "+a));b=new Sc(a,b,c,!!d);return Tc[a]=b}Q("ancestor",function(a,b){for(var c=new I,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},j);Q("ancestor-or-self",function(a,b){var c=new I,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},j);
var Jc=Q("attribute",function(a,b){var c=new I,d=a.getName();if("style"==d&&b.style&&Zb)return c.add(new ac(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof J&&a.d===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)Zb?g.nodeValue&&c.add(bc(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(Zb?g.nodeValue&&c.add(bc(b,g,b.sourceIndex)):c.add(g));return c},l),Qc=Q("child",function(a,b,c,d,e){return(Zb?mc:nc).call(k,a,b,s(c)?c:k,s(d)?d:k,e||new I)},l,j);
Q("descendant",gc,l,j);var Rc=Q("descendant-or-self",function(a,b,c,d){var e=new I;fc(b,c,d)&&a.matches(b)&&e.add(b);return gc(a,b,c,d,e)},l,j),Mc=Q("following",function(a,b,c,d){var e=new I;do for(var f=b;f=f.nextSibling;)fc(f,c,d)&&a.matches(f)&&e.add(f),e=gc(a,f,c,d,e);while(b=b.parentNode);return e},l,j);Q("following-sibling",function(a,b){for(var c=new I,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},l);Q("namespace",function(){return new I},l);
var Uc=Q("parent",function(a,b){var c=new I;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),Nc=Q("preceding",function(a,b,c,d){var e=new I,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 p=0,V=u.length;p<V;p++)b=u[p],fc(b,c,d)&&a.matches(b)&&e.add(b),e=gc(a,b,c,d,e)}return e},j,j);
Q("preceding-sibling",function(a,b){for(var c=new I,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},j);var Vc=Q("self",function(a,b){var c=new I;a.matches(b)&&c.add(b);return c},l);function Wc(a){K.call(this,1);this.ja=a;this.t=a.h();this.k=a.k}t(Wc,K);Wc.prototype.evaluate=function(a){return-L(this.ja,a)};Wc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.ja.toString(a+"  ")};function Xc(a){K.call(this,4);this.R=a;this.t=ua(this.R,function(a){return a.h()});this.k=ua(this.R,function(a){return a.k})}t(Xc,K);Xc.prototype.evaluate=function(a){var b=new I;w(this.R,function(c){c=c.evaluate(a);c instanceof I||h(Error("PathExpr must evaluate to NodeSet."));b=pc(b,c)});return b};Xc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";w(this.R,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Yc(a){this.a=a}function Zc(a){for(var b,c=[];;){R(a,"Missing right hand side of binary expression.");b=$c(a);var d=a.a.next();if(!d)break;var e=(d=zc[d]||k)&&d.ra;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].ra;)b=new vc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new vc(c.pop(),c.pop(),b);return b}function R(a,b){a.a.empty()&&h(Error(b))}function ad(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function bd(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function cd(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new Gc(a)}function dd(a){return"*"!=G(a.a)&&":"==G(a.a,1)&&"*"==G(a.a,2)?new jc(a.a.next()+a.a.next()+a.a.next()):new jc(a.a.next())}
function ed(a){var b,c=[],d;if("/"==G(a.a)||"//"==G(a.a)){b=a.a.next();d=G(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Kc;d=new Kc;R(a,"Missing next location step.");b=fd(a,b);c.push(b)}else{a:{b=G(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=Zc(a);R(a,'unclosed "("');ad(a,")");break;case '"':case "'":b=cd(a);break;default:if(isNaN(+b))if(!Fc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==G(a.a,1)){b=a.a.next();b=Ec[b]||k;a.a.next();for(d=[];")"!=G(a.a);){R(a,"Missing function argument list.");d.push(Zc(a));if(","!=G(a.a))break;a.a.next()}R(a,"Unclosed function argument list.");bd(a);b=new Cc(b,d)}else{b=k;break a}else b=new Hc(+a.a.next())}"["==G(a.a)&&(d=new Oc(gd(a)),b=new Ac(b,d))}if(b)if("/"==G(a.a)||"//"==G(a.a))d=b;else return b;else b=fd(a,"/"),d=new Lc,c.push(b)}for(;"/"==G(a.a)||"//"==G(a.a);)b=a.a.next(),R(a,"Missing next location step."),b=fd(a,b),c.push(b);return new Ic(d,
c)}
function fd(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==G(a.a))return d=new Pc(Vc,new J("node")),a.a.next(),d;if(".."==G(a.a))return d=new Pc(Uc,new J("node")),a.a.next(),d;var f;"@"==G(a.a)?(f=Jc,a.a.next(),R(a,"Missing attribute name")):"::"==G(a.a,1)?(/(?![0-9])[\w]/.test(G(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=Tc[e]||k)||h(Error("No axis with name: "+e)),a.a.next(),R(a,"Missing node name")):f=Qc;e=G(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==G(a.a,
1)){Fc(e)||h(Error("Invalid node type: "+e));c=a.a.next();Fc(c)||h(Error("Invalid type name: "+c));ad(a,"(");R(a,"Bad nodetype");e=G(a.a).charAt(0);var g=k;if('"'==e||"'"==e)g=cd(a);R(a,"Bad nodetype");bd(a);c=new J(c,g)}else c=dd(a);else"*"==e?c=dd(a):h(Error("Bad token: "+a.a.next()));e=new Oc(gd(a),f.G);return d||new Pc(f,c,e,"//"==b)}
function gd(a){for(var b=[];"["==G(a.a);){a.a.next();R(a,"Missing predicate expression.");var c=Zc(a);b.push(c);R(a,"Unclosed predicate expression.");ad(a,"]")}return b}function $c(a){if("-"==G(a.a))return a.a.next(),new Wc($c(a));var b=ed(a);if("|"!=G(a.a))a=b;else{for(b=[b];"|"==a.a.next();)R(a,"Missing next union location path."),b.push(ed(a));a.a.back();a=new Xc(b)}return a};function hd(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(dc),b=0;b<a.length;b++)ec.test(a[b])&&a.splice(b,1);a=new cc(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Zc(new Yc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Yb(a));return new S(f,b)}}
function S(a,b){0==b&&(a instanceof I?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 I))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof I?rc(a):""+a;break;case 1:this.numberValue=a instanceof I?+rc(a):+a;break;case 3:this.booleanValue=a instanceof I?0<a.v():!!a;break;case 4:case 5:case 6:case 7:var d=sc(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof ac?e.g:e);this.snapshotLength=a.v();this.invalidIteratorState=l;break;case 8:case 9:d=qc(a);this.singleNodeValue=d instanceof ac?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={},id={Za:"http://www.w3.org/2000/svg"};T.Aa=function(a){return id[a]||k};
T.s=function(a,b,c){var d=E(a);if(z){var e=F(d)||q,f=e.document;f.evaluate||(e.XPathResult=S,f.evaluate=function(a,b,c,d){return(new hd(a)).evaluate(b,d)},f.createExpression=function(a){return new hd(a)})}else try{if(!d.implementation||!d.implementation.hasFeature("XPath","3.0"))return k}catch(g){return k}try{var m;if(sb&&!Bb(2.3))try{m=F(d).top.document}catch(u){return k}else m=d;var p=d.createNSResolver?d.createNSResolver(d.documentElement):T.Aa;return z&&!cb(7)?m.evaluate.apply(k,[b,a,p,c,k]):
m.evaluate(b,a,p,c,k)}catch(V){A&&"NS_ERROR_ILLEGAL_VALUE"==V.name||h(new x(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+V))}};T.Y=function(a,b){(!a||1!=a.nodeType)&&h(new x(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};
T.Ma=function(a,b){var c=function(){var c=T.s(b,a,9);return c?(c=c.singleNodeValue,y?c:c||k):b.selectSingleNode?(c=E(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):k}();c===k||T.Y(c,a);return c};
T.Ta=function(a,b){var c=function(){var c=T.s(b,a,7);if(c){var e=c.snapshotLength;y&&!r(e)&&T.Y(k,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=E(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();w(c,function(b){T.Y(b,a)});return c};!y&&(!B||zb("533"));function jd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}jd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};jd.prototype.contains=function(a){return!this||!a?l:a instanceof jd?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 kd(a,b){var c=E(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function ld(a,b){return kd(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function md(a){var b=a.getBoundingClientRect();z&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function nd(a){if(z&&!eb(8))return a.offsetParent;for(var b=E(a),c=ld(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=ld(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 od(a){var b,c=E(a),d=ld(a,"position");pa(a,"Parameter is required");var e=A&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new D(0,0),g;b=c?E(c):document;if(g=z)if(g=!eb(9))g="CSS1Compat"!=Mb(b).O.compatMode;g=g?b.body:b.documentElement;if(a==g)return f;if(a.getBoundingClientRect)b=md(a),a=Mb(c),a=Ob(a.O),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(B&&"fixed"==ld(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(y||B&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=nd(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!y||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function pd(a){var b=new D;if(1==a.nodeType){if(a.getBoundingClientRect){var c=md(a);b.x=c.left;b.y=c.top}else{var c=Mb(a),c=Ob(c.O),d=od(a);b.x=d.x-c.x;b.y=d.y-c.y}if(A&&!cb(12)){var e;z?e="-ms-transform":B?e="-webkit-transform":y?e="-o-transform":A&&(e="-moz-transform");var f;e&&(f=ld(a,e));f||(f=ld(a,"transform"));f?(a=f.match(qd),a=!a?new D(0,0):new D(parseFloat(a[1]),parseFloat(a[2]))):a=new D(0,0);b=new D(b.x+a.x,b.y+a.y)}}else e=da(a.la),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.la().targetTouches&&
(f=a.la().targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function rd(a){if("none"!=ld(a,"display"))return sd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=sd(a);b.display=c;b.position=e;b.visibility=d;return a}function sd(a){var b=a.offsetWidth,c=a.offsetHeight,d=B&&!b&&!c;return(!r(b)||d)&&a.getBoundingClientRect?(a=md(a),new Kb(a.right-a.left,a.bottom-a.top)):new Kb(b,c)}var td={thin:2,medium:4,thick:6};
function ud(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 td)d=td[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 qd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function U(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function vd(a){return wd(a,j)&&xd(a)&&(z||y||Ab&&Bb(3.6)||"none"!=yd(a,"pointer-events"))}function zd(a){return U(a,"OPTION")?j:U(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):l}var Ad={"class":"className",readonly:"readOnly"},Bd=["checked","disabled","draggable","hidden"];
function Cd(a,b){var c=Ad[b]||b,d=a[c];if(!r(d)&&va(Bd,c))return l;if(c="value"==b)if(c=U(a,"OPTION")){var e;c=b.toLowerCase();if(a.hasAttribute)e=a.hasAttribute(c);else try{e=a.attributes[c].specified}catch(f){e=l}c=!e}c&&(d=[],Wb(a,d,l),d=d.join(""));return d}
var Dd="async autofocus autoplay checked compact complete controls declare defaultchecked defaultselected defer disabled draggable ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref noresize noshade novalidate nowrap open paused pubdate readonly required reversed scoped seamless seeking selected spellcheck truespeed willvalidate".split(" "),Ed=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/,Fd="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
function xd(a){var b=a.tagName.toUpperCase();return!va(Fd,b)?j:Cd(a,"disabled")?l:a.parentNode&&1==a.parentNode.nodeType&&"OPTGROUP"==b||"OPTION"==b?xd(a.parentNode):j}var Gd="text search tel url email password number".split(" ");function Hd(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return U(a)?a:k}
function yd(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=Hb?"styleFloat":"cssFloat";c=kd(a,c)||Id(a,c);if(c===k)c=k;else if(va(ya,b)&&(Ba.test("#"==c.charAt(0)?c:"#"+c)||Fa(c).length||ia&&ia[c.toLowerCase()]||Da(c).length)){var d=Da(c);if(!d.length){a:if(d=Fa(c),!d.length){d=ia[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Ba.test(d)&&(d=Aa(d),d=Aa(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 Id(a,b){var c=a.currentStyle||a.style,d=c[b];!r(d)&&da(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?r(d)?d:k:(c=Hd(a))?Id(c,b):k}
function Jd(a){if(da(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(U(a,Jb)){b=F(E(a))||i;"hidden"!=yd(a,"overflow")?a=j:(a=Hd(a),!a||!U(a,"HTML")?a=j:(a=yd(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var a=(b||v).document,b=a.documentElement,d=a.body;d||h(new x(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 Kb(b,a)}else b=(b||window).document,b="CSS1Compat"==b.compatMode?b.documentElement:b.body,b=new Kb(b.clientWidth,b.clientHeight);return b}return rd(a)}
function wd(a,b){function c(a){if("none"==yd(a,"display"))return l;a=Hd(a);return!a||c(a)}function d(a){var b=Jd(a);return 0<b.height&&0<b.width?j:ua(a.childNodes,function(a){return a.nodeType==Lb||U(a)&&d(a)})}function e(a){var b=nd(a),c=A||z||y?Hd(a):b;if((A||z||y)&&U(c,Jb))b=c;if(b&&"hidden"==yd(b,"overflow")){var c=Jd(b),d=pd(b),a=pd(a);return d.x+c.width<a.x||d.y+c.height<a.y?l:e(b)}return j}U(a)||h(Error("Argument to isShown must be of type Element"));if(U(a,"OPTION")||U(a,"OPTGROUP")){var f=
Xb(a,function(a){return U(a,"SELECT")});return!!f&&wd(f,j)}if(U(a,"MAP")){if(!a.name)return l;f=E(a);if(f.evaluate)f=T.Ma('/descendant::*[@usemap = "#'+a.name+'"]',f);else var g=[],f=Tb(f,function(b){var c;if(c=U(b)){if(8==b.nodeType)b=k;else if(c="usemap","style"==c){var d=[];w(b.style.cssText.split(Ed),function(a){var b=a.indexOf(":");0<b&&(a=[a.slice(0,b),a.slice(b+1)],2==a.length&&d.push(a[0].toLowerCase(),":",a[1],";"))});d=d.join("");d=";"==d.charAt(d.length-1)?d:d+";";b=y?d.replace(/\w+:;/g,
""):d}else{var e=b.getAttributeNode(c);z&&!e&&(cb(8)&&va(Dd,c))&&(e=b[c]);b=!e?k:va(Dd,c)?Hb&&"false"==e.value?k:"true":e.specified?e.value:k}c=b=="#"+a.name}return c},g,j)?g[0]:i;return!!f&&wd(f,b)}if(U(a,"AREA"))return f=Xb(a,function(a){return U(a,"MAP")}),!!f&&wd(f,b);if(!(f=U(a,"INPUT")&&"hidden"==a.type.toLowerCase()||U(a,"NOSCRIPT")||"hidden"==yd(a,"visibility")||!c(a)))if(f=!b)z?"relative"==yd(a,"position")?f=1:(f=yd(a,"filter"),f=(f=f.match(/^alpha\(opacity=(\d*)\)/)||f.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?
Number(f[1])/100:1):f=Kd(a),f=0==f;return f||!d(a)?l:e(a)}function Kd(a){var b=1,c=yd(a,"opacity");c&&(b=Number(c));(a=Hd(a))&&(b*=Kd(a));return b};function Ld(a){this.e=v.document.documentElement;this.p=k;var b=E(this.e).activeElement;b&&Md(this,b);this.w=a||new Nd}Ld.prototype.B=n("e");function Md(a,b){a.e=b;a.p=U(b,"OPTION")?Xb(b,function(a){return U(a,"SELECT")}):k}
function Od(a,b,c,d,e,f){if(!vd(a.e))return l;e&&!(Pd==b||Qd==b)&&h(new x(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:a.w.i(4),ctrlKey:a.w.i(2),shiftKey:a.w.i(1),metaKey:a.w.i(8),wheelDelta:f||0,relatedTarget:e||k};return(a=a.p?Rd(a,b):a.e)?Sd(a,b,c):j}
function Rd(a,b){if(z)switch(b){case Pd:return k;case Td:case Ud:return a.p.multiple?a.p:k;default:return a.p}if(y)switch(b){case Td:case Pd:return a.p.multiple?a.e:k;default:return a.e}if(B)switch(b){case Vd:case Wd:return a.p.multiple?a.e:a.p;default:return a.p.multiple?a.e:k}return a.e}var Xd=B||y||Ab&&Bb(3.6);
function Yd(a){if(Xd||!a.href)return l;if(!Ab)return j;if(a.target||0==a.href.toLowerCase().indexOf("javascript"))return l;var b=F(E(a)),c=b.location.href,a=Zd(b.location,a.href);return c.split("#")[0]!==a.split("#")[0]}var $d=/^([^:/?#.]+:)?(?:\/\/([^/]*))?([^?#]+)?(\?[^#]*)?(#.*)?$/;
function Zd(a,b){var c=b.match($d);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 Nd(){this.ga=0}Nd.prototype.i=function(a){return 0!=(this.ga&a)};var ae=!(z&&!zb(10))&&!y,be=sb?!Bb(4):!Db;function W(a,b,c){this.d=a;this.D=b;this.F=c}W.prototype.create=function(a){a=E(a);Hb?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.d,this.D,this.F));return a};W.prototype.toString=n("d");function X(a,b,c){W.call(this,a,b,c)}t(X,W);
X.prototype.create=function(a,b){!A&&this==ce&&h(new x(9,"Browser does not support a mouse pixel scroll event."));var c=E(a),d;if(Hb){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==Qd||this==Pd)if(Object.defineProperty){var f=this==Qd;e("fromElement",f?a:b.relatedTarget);e("toElement",f?b.relatedTarget:
a)}else d.relatedTarget=b.relatedTarget;this==de&&(Object.defineProperty?e("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=F(c);d=c.createEvent("MouseEvents");f=1;if(this==de&&(A||(d.wheelDelta=b.wheelDelta),A||y))f=b.wheelDelta/-40;A&&this==ce&&(f=b.wheelDelta);d.initMouseEvent(this.d,this.D,this.F,e,f,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(z&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var c=v.document.documentElement,g=v.document.body;
Object.defineProperty(d,"pageX",{get:function(){return b.clientX+(c&&c.scrollLeft||g&&g.scrollLeft||0)-(c&&c.clientLeft||g&&g.clientLeft||0)}});Object.defineProperty(d,"pageY",{get:function(){return b.clientY+(c&&c.scrollTop||g&&g.scrollTop||0)-(c&&c.clientTop||g&&g.clientTop||0)}})}}return d};function ee(a,b,c){W.call(this,a,b,c)}t(ee,W);
ee.prototype.create=function(a,b){var c=E(a);if(A){var d=F(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.d,this.D,this.F,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.d==fe&&b.preventDefault&&c.preventDefault()}else if(Hb?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.d,this.D,this.F)),c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.keyCode=b.charCode||b.keyCode,B)c.charCode=this==fe?c.keyCode:
0;return c};function ge(a,b,c){W.call(this,a,b,c)}t(ge,W);
ge.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}ae||h(new x(9,"Browser does not support firing touch events."));var e=E(a),f=F(e),g=be?d(b.changedTouches):
c(b.changedTouches),m=b.touches==b.changedTouches?g:be?d(b.touches):c(b.touches),u=b.targetTouches==b.changedTouches?g:be?d(b.targetTouches):c(b.targetTouches),p;be?(p=e.createEvent("MouseEvents"),p.initMouseEvent(this.d,this.D,this.F,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),p.touches=m,p.targetTouches=u,p.changedTouches=g,p.scale=b.scale,p.rotation=b.rotation):(p=e.createEvent("TouchEvent"),sb?p.initTouchEvent(m,u,g,this.d,f,0,0,b.clientX,b.clientY,b.ctrlKey,
b.altKey,b.shiftKey,b.metaKey):p.initTouchEvent(this.d,this.D,this.F,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,m,u,g,b.scale,b.rotation),p.relatedTarget=b.relatedTarget);return p};
var he=new W("change",j,l),ie=new W("focus",l,l),Vd=new X("click",j,j),Td=new X("contextmenu",j,j),je=new X("dblclick",j,j),ke=new X("mousedown",j,j),Ud=new X("mousemove",j,l),Qd=new X("mouseout",j,j),Pd=new X("mouseover",j,j),Wd=new X("mouseup",j,j),de=new X(A?"DOMMouseScroll":"mousewheel",j,j),ce=new X("MozMousePixelScroll",j,j),fe=new ee("keypress",j,j),le=new ge("touchend",j,j),me=new ge("touchmove",j,j),ne=new ge("touchstart",j,j);
function Sd(a,b,c){c=b.create(a,c);"isTrusted"in c||(c.isTrusted=l);return Hb?a.fireEvent("on"+b.d,c):a.dispatchEvent(c)};function oe(a){if("function"==typeof a.K)return a.K();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 Ha(a)};function pe(a,b){this.n={};this.j=[];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.W(a)}o=pe.prototype;o.J=0;o.za=0;o.K=function(){qe(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.n[this.j[b]]);return a};function re(a){qe(a);return a.j.concat()}o.remove=function(a){return se(this.n,a)?(delete this.n[a],this.J--,this.za++,this.j.length>2*this.J&&qe(this),j):l};
function qe(a){if(a.J!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];se(a.n,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.J!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],se(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}o.get=function(a,b){return se(this.n,a)?this.n[a]:b};o.set=function(a,b){se(this.n,a)||(this.J++,this.j.push(a),this.za++);this.n[a]=b};
o.W=function(a){var b;if(a instanceof pe)b=re(a),a=a.K();else{b=[];var c=0,d;for(d in a)b[c++]=d;a=Ha(a)}for(c=0;c<b.length;c++)this.set(b[c],a[c])};function se(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function te(a){this.n=new pe;a&&this.W(a)}function ue(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[fa]||(a[fa]=++ga)):b.substr(0,1)+a}o=te.prototype;o.add=function(a){this.n.set(ue(a),a)};o.W=function(a){for(var a=oe(a),b=a.length,c=0;c<b;c++)this.add(a[c])};o.remove=function(a){return this.n.remove(ue(a))};o.contains=function(a){a=ue(a);return se(this.n.n,a)};o.K=function(){return this.n.K()};function ve(a){Ld.call(this);var b;if(U(this.B(),"TEXTAREA"))b=j;else if(U(this.B(),"INPUT"))b=va(Gd,this.B().type.toLowerCase());else{b=this.B();var c=function(a){return"inherit"==a.contentEditable?(a=Hd(a))?c(a):l:"true"==a.contentEditable};b=(!r(b.contentEditable)?0:!z&&r(b.isContentEditable)?b.isContentEditable:c(b))?j:l}this.Qa=b&&!Cd(this.B(),"readOnly");this.Da=0;this.sa=new te;a&&(w(a.pressed,function(a){if(va(we,a)){var b=xe.get(a.code),c=this.w;c.ga|=b}this.sa.add(a)},this),this.Da=a.currentPos)}
t(ve,Ld);var ye={};function Y(a,b,c){ea(a)&&(a=A?a.b:y?a.opera:a.c);a=new ze(a,b,c);if(b&&(!(b in ye)||c))ye[b]={key:a,shift:l},c&&(ye[c]={key:a,shift:j});return a}function ze(a,b,c){this.code=a;this.Ba=b||k;this.Xa=c||this.Ba}Y(8);Y(9);Y(13);var Ae=Y(16),Be=Y(17),Ce=Y(18);Y(19);Y(20);Y(27);Y(32," ");Y(33);Y(34);Y(35);Y(36);Y(37);Y(38);Y(39);Y(40);Y(44);Y(45);Y(46);Y(48,"0",")");Y(49,"1","!");Y(50,"2","@");Y(51,"3","#");Y(52,"4","$");Y(53,"5","%");Y(54,"6","^");Y(55,"7","&");Y(56,"8","*");
Y(57,"9","(");Y(65,"a","A");Y(66,"b","B");Y(67,"c","C");Y(68,"d","D");Y(69,"e","E");Y(70,"f","F");Y(71,"g","G");Y(72,"h","H");Y(73,"i","I");Y(74,"j","J");Y(75,"k","K");Y(76,"l","L");Y(77,"m","M");Y(78,"n","N");Y(79,"o","O");Y(80,"p","P");Y(81,"q","Q");Y(82,"r","R");Y(83,"s","S");Y(84,"t","T");Y(85,"u","U");Y(86,"v","V");Y(87,"w","W");Y(88,"x","X");Y(89,"y","Y");Y(90,"z","Z");var De=Y(Oa?{b:91,c:91,opera:219}:Na?{b:224,c:91,opera:17}:{b:0,c:91,opera:k});
Y(Oa?{b:92,c:92,opera:220}:Na?{b:224,c:93,opera:17}:{b:0,c:92,opera:k});Y(Oa?{b:93,c:93,opera:0}:Na?{b:0,c:0,opera:16}:{b:93,c:k,opera:0});Y({b:96,c:96,opera:48},"0");Y({b:97,c:97,opera:49},"1");Y({b:98,c:98,opera:50},"2");Y({b:99,c:99,opera:51},"3");Y({b:100,c:100,opera:52},"4");Y({b:101,c:101,opera:53},"5");Y({b:102,c:102,opera:54},"6");Y({b:103,c:103,opera:55},"7");Y({b:104,c:104,opera:56},"8");Y({b:105,c:105,opera:57},"9");Y({b:106,c:106,opera:Ua?56:42},"*");Y({b:107,c:107,opera:Ua?61:43},"+");
Y({b:109,c:109,opera:Ua?109:45},"-");Y({b:110,c:110,opera:Ua?190:78},".");Y({b:111,c:111,opera:Ua?191:47},"/");Y(Ua&&y?k:144);Y(112);Y(113);Y(114);Y(115);Y(116);Y(117);Y(118);Y(119);Y(120);Y(121);Y(122);Y(123);Y({b:107,c:187,opera:61},"=","+");Y({b:109,c:189,opera:109},"-","_");Y(188,",","<");Y(188,",");Y(190,".",">");Y(191,"/","?");Y(192,"`","~");Y(219,"[","{");Y(220,"\\","|");Y(221,"]","}");Y({b:59,c:186,opera:59},";",":");Y(222,"'",'"');var we=[Ce,Be,De,Ae],Ee=new pe;Ee.set(1,Ae);Ee.set(2,Be);
Ee.set(4,Ce);Ee.set(8,De);var xe,Fe=new pe;w(re(Ee),function(a){Fe.set(Ee.get(a).code,a)});xe=Fe;ve.prototype.i=function(a){return this.sa.contains(a)};A&&zb(12);function Ge(a,b){Ld.call(this,b);this.Fa=this.I=k;this.q=new D(0,0);this.aa=this.qa=l;if(a){this.I=a.Oa;try{U(a.Ea)&&(this.Fa=a.Ea)}catch(c){this.I=k}this.q=a.Pa;this.qa=a.Va;this.aa=a.Sa;try{U(a.element)&&Md(this,a.element)}catch(d){this.I=k}}}t(Ge,Ld);var $={};
Hb?($[Vd]=[0,0,0,k],$[Td]=[k,k,0,k],$[Wd]=[1,4,2,k],$[Qd]=[0,0,0,0],$[Ud]=[1,4,2,0]):B||Gb?($[Vd]=[0,1,2,k],$[Td]=[k,k,2,k],$[Wd]=[0,1,2,k],$[Qd]=[0,1,2,0],$[Ud]=[0,1,2,0]):($[Vd]=[0,1,2,k],$[Td]=[k,k,2,k],$[Wd]=[0,1,2,k],$[Qd]=[0,0,0,0],$[Ud]=[0,0,0,0]);$[je]=$[Vd];$[ke]=$[Wd];$[Pd]=$[Qd];
Ge.prototype.move=function(a,b){var c=pd(a);this.q.x=b.x+c.x;this.q.y=b.y+c.y;c=this.B();if(a!=c){try{F(E(c)).closed&&(c=k)}catch(d){c=k}if(c){var e=c===v.document.documentElement||c===v.document.body,c=!this.aa&&e?k:c;He(this,Qd,a)}Md(this,a);z||He(this,Pd,c)}He(this,Ud);z&&a!=c&&He(this,Pd,c);this.qa=l};function He(a,b,c){a.aa=j;var d=a.q,e;if(b in $){e=$[b][a.I===k?3:a.I];e===k&&h(new x(13,"Event does not permit the specified mouse button."))}else e=0;Od(a,b,d,e,c,i)};function Ie(){Ld.call(this);this.q=new D(0,0);this.Z=new D(0,0)}t(Ie,Ld);o=Ie.prototype;o.ba=l;o.V=0;o.U=0;o.wa=1;o.move=function(a,b,c){this.i()||Md(this,a);a=pd(a);this.q.x=b.x+a.x;this.q.y=b.y+a.y;r(c)&&(this.Z.x=c.x+a.x,this.Z.y=c.y+a.y);this.i()&&(this.ba=j,Je(this,me))};o.i=function(){return!!this.V};
function Je(a,b){function c(a,c){var d={identifier:a,screenX:c.x,screenY:c.y,clientX:c.x,clientY:c.y,pageX:c.x,pageY:c.y};m.changedTouches.push(d);if(b==ne||b==me)m.touches.push(d),m.targetTouches.push(d)}a.i()||h(new x(13,"Should never fire event when touchscreen is not pressed."));var d,e;a.U&&(d=a.U,e=a.Z);var f=a.V,g=a.q,m={touches:[],targetTouches:[],changedTouches:[],altKey:a.w.i(4),ctrlKey:a.w.i(2),shiftKey:a.w.i(1),metaKey:a.w.i(8),relatedTarget:k,scale:0,rotation:0};c(f,g);r(d)&&c(d,e);Sd(a.e,
b,m)};function Ke(a,b){this.x=a;this.y=b}t(Ke,D);Ke.prototype.scale=function(a){this.x*=a;this.y*=a;return this};Ke.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Le(a,b){a.x-=b.x;a.y-=b.y;return a}Ke.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function Me(a,b){return new Ke(a.x+b.x,a.y+b.y)}function Ne(a,b){return new Ke(a.x-b.x,a.y-b.y)};function Oe(a,b,c,d){0==b&&h(new x(13,"Cannot rotate by an angle of zero."));b=Math.PI*(b/180)/2;wd(a,j)||h(new x(11,"Element is not currently visible and may not be manipulated"));var e=E(a),e=B?e.body:e.documentElement,f;f=od(a);var g=od(e),m;if(z){var u=ud(e,"borderLeft");m=ud(e,"borderRight");var p=ud(e,"borderTop"),V=ud(e,"borderBottom");m=new jd(p,m,V,u)}else u=kd(e,"borderLeftWidth"),m=kd(e,"borderRightWidth"),p=kd(e,"borderTopWidth"),V=kd(e,"borderBottomWidth"),m=new jd(parseFloat(p),parseFloat(m),
parseFloat(V),parseFloat(u));u=f.x-g.x-m.left;f=f.y-g.y-m.top;g=e.clientHeight-a.offsetHeight;m=e.scrollLeft;p=e.scrollTop;m+=Math.min(u,Math.max(u-(e.clientWidth-a.offsetWidth),0));p+=Math.min(f,Math.max(f-g,0));f=new D(m,p);e.scrollLeft=f.x;e.scrollTop=f.y;c?c=new Ke(c.x,c.y):(c=Pe(a),c=new Ke(c.width/2,c.height/2));e=Pe(a);e=new Ke(Math.min(c.x,e.width-c.x),Math.min(c.y,e.height-c.y));d=d||new Ie;e.scale(0.5);d.move(a,Me(c,e),Ne(c,e));d.i()&&h(new x(13,"Cannot press touchscreen when already pressed."));
d.ba=l;d.V=d.wa++;d.U=d.wa++;Je(d,ne);f=pd(a);e.rotate(b);d.move(a,Me(c,e),Ne(c,e));f=Ne(pd(a),f);e.rotate(b);b=Le(Me(c,e),f);c=Le(Ne(c,e),f);d.move(a,b,c);d.i()||h(new x(13,"Cannot release touchscreen when not already pressed."));Je(d,le);if(!d.ba){Od(d,Ud,d.q,0);if(Od(d,ke,d.q,0)&&(a=d.p||d.e,b=E(a).activeElement,a!=b)){if(b&&(da(b.blur)||z&&ea(b.blur))){try{b.blur()}catch(P){z&&"Unspecified error."==P.message||h(P)}z&&!zb(8)&&F(E(a)).focus()}if(da(a.focus)||z&&ea(a.focus))y&&zb(11)&&!wd(a)?Sd(a,
ie):a.focus()}Od(d,Wd,d.q,0);a=d.q;if(vd(d.e)){c=b=k;if(!Xd)for(e=d.e;e;e=e.parentNode)if(U(e,"A")){b=e;break}else{a:{if(U(e,"INPUT")&&(f=e.type.toLowerCase(),"submit"==f||"image"==f)){f=j;break a}if(U(e,"BUTTON")&&(f=e.type.toLowerCase(),"submit"==f)){f=j;break a}f=l}if(f){c=e;break}}if(f=e=zd(d.e)){f=d.e;zd(f)||h(new x(15,"Element is not selectable"));g="selected";u=f.type&&f.type.toLowerCase();if("checkbox"==u||"radio"==u)g="checked";f=!!Cd(f,g)}if(d.p&&(g=d.p,!f||g.multiple))d.e.selected=!f,(!B||
!g.multiple||sb&&Bb(4))&&Sd(g,he);z&&c?c.click():Od(d,Vd,a,0)&&(b&&Yd(b)?(a=b,b=a.href,c=F(E(a)),z&&!zb(8)&&(b=Zd(c.location,b)),a.target?c.open(b,a.target):c.location.href=b):e&&!d.p&&(!A&&!B&&!(f&&"radio"==d.e.type.toLowerCase()))&&(d.e.checked=!f,y&&!zb(11)&&Sd(d.e,he)))}}d.V=0;d.U=0}function Pe(a){var b=rd(a);return 0<b.width&&0<b.height||!a.offsetParent?b:Pe(a.offsetParent)}function Qe(){Ld.call(this)}t(Qe,Ld);Qe.Ra=function(){return Qe.ma?Qe.ma:Qe.ma=new Qe};function Re(){this.S=i}
function Se(a,b,c){switch(typeof b){case "string":Te(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],Se(a,a.S?a.S.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),Te(f,
c),c.push(":"),Se(a,a.S?a.S.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var Ue={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Ve=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Te(a,b){b.push('"',a.replace(Ve,function(a){if(a in Ue)return Ue[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Ue[a]=e+b.toString(16)}),'"')};B||y||A&&zb(3.5)||z&&zb(8);function We(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return sa(a,We);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Xe(a);return b}if("document"in a)return b={},b.WINDOW=Xe(a),b;if(ca(a))return sa(a,We);var b=function(a,b){return"number"==typeof b||s(b)},c={},d;for(d in a)b.call(i,0,d)&&(c[d]=a[d]);return Ga(c,We);default:return k}}
function Ye(a,b){return"array"==ba(a)?sa(a,function(a){return Ye(a,b)}):ea(a)?"function"==typeof a?a:"ELEMENT"in a?Ze(a.ELEMENT,b):"WINDOW"in a?Ze(a.WINDOW,b):Ga(a,function(a){return Ye(a,b)}):a}function $e(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.ea=ha());b.ea||(b.ea=ha());return b}function Xe(a){var b=$e(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 Ze(a,b){var a=decodeURIComponent(a),c=b||document,d=$e(c);a in d||h(new x(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new x(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 x(10,"Element is no longer attached to the DOM"))};function af(a,b,c){var a=[a,b,c],b=Oe,d;try{var b=s(b)?new v.Function(b):v==window?b:new v.Function("return ("+b+").apply(null,arguments);"),e=Ye(a,v.document),f=b.apply(k,e);d={status:0,value:We(f)}}catch(g){d={status:"code"in g?g.code:13,value:{message:g.message}}}e=[];Se(new Re,d,e);return e.join("")}var bf=["_"],cf=q;!(bf[0]in cf)&&cf.execScript&&cf.execScript("var "+bf[0]);for(var df;bf.length&&(df=bf.shift());)!bf.length&&r(af)?cf[df]=af:cf=cf[df]?cf[df]:cf[df]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null}, arguments);}
