function(){return function(){function h(a){throw a;}var i=void 0,j=!0,k=null,m=!1;function n(a){return function(){return this[a]}}function ba(a){return function(){return a}}var p,r=this;
function ca(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 da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function t(a){return"string"==typeof a}function ea(a){return"function"==ca(a)}function fa(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var ga="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ha=0,ia=Date.now||function(){return+new Date};
function u(a,b){function c(){}c.prototype=b.prototype;a.ib=b.prototype;a.prototype=new c};var ja=window;function ka(a){Error.captureStackTrace?Error.captureStackTrace(this,ka):this.stack=Error().stack||"";a&&(this.message=String(a))}u(ka,Error);ka.prototype.name="CustomError";function la(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 ma(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 l=d[g]||"",z=e[g]||"",q=RegExp("(\\d*)(\\D*)","g"),aa=RegExp("(\\d*)(\\D*)","g");do{var F=q.exec(l)||["","",""],O=aa.exec(z)||["","",""];if(0==F[0].length&&0==O[0].length)break;c=((0==F[1].length?0:parseInt(F[1],10))<(0==O[1].length?0:parseInt(O[1],10))?-1:(0==F[1].length?0:parseInt(F[1],10))>(0==O[1].length?
0:parseInt(O[1],10))?1:0)||((0==F[2].length)<(0==O[2].length)?-1:(0==F[2].length)>(0==O[2].length)?1:0)||(F[2]<O[2]?-1:F[2]>O[2]?1:0)}while(0==c)}return c};function na(a,b){b.unshift(a);ka.call(this,la.apply(k,b));b.shift();this.Za=a}u(na,ka);na.prototype.name="AssertionError";function oa(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new na(""+e,f||[]))}function pa(a,b,c){a||oa("",k,b,Array.prototype.slice.call(arguments,2))}function qa(a,b,c){fa(a)||oa("Expected object but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))};var ra=Array.prototype;function v(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}function sa(a,b){for(var c=a.length,d=[],e=0,f=t(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var l=f[g];b.call(i,l,g,a)&&(d[e++]=l)}return d}function ta(a,b){for(var c=a.length,d=Array(c),e=t(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(i,e[f],f,a));return d}function ua(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;v(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function va(a,b){for(var c=a.length,d=t(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a))return j;return m}function wa(a,b){var c;a:if(t(a))c=!t(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 xa(a){return ra.concat.apply(ra,arguments)}function ya(a,b,c){pa(a.length!=k);return 2>=arguments.length?ra.slice.call(a,b):ra.slice.call(a,b,c)};var za={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 Aa="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Ba=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Ca(a){Da.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Ba,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Da=/^#(?:[0-9a-f]{3}){1,2}$/i,Ea=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Fa(a){var b=a.match(Ea);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 Ga=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Ha(a){var b=a.match(Ga);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 Ia(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c}function Ja(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function w(a,b){this.code=a;this.message=b||"";this.name=Ka[a]||Ka[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}u(w,Error);
var Ka={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"};
w.prototype.toString=function(){return this.name+": "+this.message};var La,Ma,Na,Oa,Pa,Qa;function Ra(){return r.navigator?r.navigator.userAgent:k}Oa=Na=Ma=La=m;var Sa;if(Sa=Ra()){var Ta=r.navigator;La=0==Sa.indexOf("Opera");Ma=!La&&-1!=Sa.indexOf("MSIE");Na=!La&&-1!=Sa.indexOf("WebKit");Oa=!La&&!Na&&"Gecko"==Ta.product}var x=La,y=Ma,A=Oa,B=Na,Ua,Va=r.navigator;Ua=Va&&Va.platform||"";Pa=-1!=Ua.indexOf("Mac");Qa=-1!=Ua.indexOf("Win");var Wa=-1!=Ua.indexOf("Linux");function Xa(){var a=r.document;return a?a.documentMode:i}var Ya;
a:{var Za="",$a;if(x&&r.opera)var ab=r.opera.version,Za="function"==typeof ab?ab():ab;else if(A?$a=/rv\:([^\);]+)(\)|;)/:y?$a=/MSIE\s+([^\);]+)(\)|;)/:B&&($a=/WebKit\/(\S+)/),$a)var bb=$a.exec(Ra()),Za=bb?bb[1]:"";if(y){var cb=Xa();if(cb>parseFloat(Za)){Ya=String(cb);break a}}Ya=Za}var db={};function eb(a){return db[a]||(db[a]=0<=ma(Ya,a))}function C(a){return y&&fb>=a}var gb=r.document,fb=!gb||!y?i:Xa()||("CSS1Compat"==gb.compatMode?parseInt(Ya,10):5);var hb;!A&&!y||y&&C(9)||A&&eb("1.9.1");y&&eb("9");var ib="BODY";function D(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}D.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function jb(a,b){this.width=a;this.height=b}p=jb.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 kb=3;function lb(a){return a?new mb(E(a)):hb||(hb=new mb)}function nb(a){var b=!B&&ob(a)?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new D(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function G(a){return a?a.parentWindow||a.defaultView:window}function ob(a){return"CSS1Compat"==a.compatMode}
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(y&&!C(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(r.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 m}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==kb)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 yb(a){try{return a&&a.activeElement}catch(b){}return k}function mb(a){this.D=a||r.document||document}mb.prototype.F=function(a){return t(a)?this.D.getElementById(a):a};mb.prototype.contains=pb;var zb,Ab,Bb,Cb,Db,Eb,Fb;Fb=Eb=Db=Cb=Bb=Ab=zb=m;var Gb=Ra();Gb&&(-1!=Gb.indexOf("Firefox")?zb=j:-1!=Gb.indexOf("Camino")?Ab=j:-1!=Gb.indexOf("iPhone")||-1!=Gb.indexOf("iPod")?Bb=j:-1!=Gb.indexOf("iPad")?Cb=j:-1!=Gb.indexOf("Android")?Db=j:-1!=Gb.indexOf("Chrome")?Eb=j:-1!=Gb.indexOf("Safari")&&(Fb=j));var Hb=x,Ib=y,Jb=zb,Kb=Ab,Lb=Bb,Mb=Cb,Nb=Db,Ob=Eb,Pb=Fb;function Qb(a,b,c){this.g=a;this.Ma=b||1;this.r=c||1};var Rb=y&&!C(9),Sb=y&&!C(8);function Tb(a,b,c,d,e){this.g=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.gb=e;this.parentNode=b}function Ub(a,b,c){var d=Sb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Tb(b,a,b.nodeName,d,c)};function Vb(a){this.ha=a;this.T=0}var Wb=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),Xb=/^\s/;function H(a,b){return a.ha[a.T+(b||0)]}Vb.prototype.next=function(){return this.ha[this.T++]};Vb.prototype.back=function(){this.T--};Vb.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(Rb&&"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),Rb&&"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 Yb(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return m}catch(d){return m}Sb&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Zb(a,b,c,d,e){return(Rb?$b:ac).call(k,a,b,t(c)?c:k,t(d)?d:k,e||new J)}
function $b(a,b,c,d,e){if(a instanceof bc||8==a.d||c&&a.d===k){var f=b.all;if(!f)return e;a=cc(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],l=0;b=f[l++];)Yb(b,c,d)&&g.push(b);f=g}for(l=0;b=f[l++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}dc(a,b,c,d,e);return e}
function ac(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!y?(b=b.getElementsByName(d),v(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),v(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof ec?dc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),v(b,function(a){Yb(a,c,d)&&e.add(a)}));return e}
function fc(a,b,c,d,e){var f;if((a instanceof bc||8==a.d||c&&a.d===k)&&(f=b.childNodes)){var g=cc(a);if("*"!=g&&(f=sa(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=sa(f,function(a){return Yb(a,c,d)}));v(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return gc(a,b,c,d,e)}function gc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Yb(b,c,d)&&a.matches(b)&&e.add(b);return e}
function dc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Yb(b,c,d)&&a.matches(b)&&e.add(b),dc(a,b,c,d,e)}function cc(a){if(a instanceof ec){if(8==a.d)return"!";if(a.d===k)return"*"}return a.getName()};function J(){this.r=this.n=k;this.N=0}function hc(a){this.u=a;this.next=this.G=k}function ic(a,b){if(a.n){if(!b.n)return a}else return b;for(var c=a.n,d=b.n,e=k,f=k,g=0;c&&d;)c.u==d.u||c.u instanceof Tb&&d.u instanceof Tb&&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.G=e)?e.next=f:a.n=f,e=f,g++;for(f=c||d;f;)f.G=e,e=e.next=f,g++,f=f.next;a.r=e;a.N=g;return a}
J.prototype.unshift=function(a){a=new hc(a);a.next=this.n;this.r?this.n.G=a:this.n=this.r=a;this.n=a;this.N++};J.prototype.add=function(a){a=new hc(a);a.G=this.r;this.n?this.r.next=a:this.n=this.r=a;this.r=a;this.N++};function jc(a){return(a=a.n)?a.u:k}J.prototype.v=n("N");function kc(a){return(a=jc(a))?I(a):""}function lc(a,b){return new mc(a,!!b)}function mc(a,b){this.Ja=a;this.ia=(this.H=b)?a.r:a.n;this.ca=k}
mc.prototype.next=function(){var a=this.ia;if(a==k)return k;var b=this.ca=a;this.ia=this.H?a.G:a.next;return b.u};mc.prototype.remove=function(){var a=this.Ja,b=this.ca;b||h(Error("Next must be called at least once before remove."));var c=b.G,b=b.next;c?c.next=b:a.n=b;b?b.G=c:a.r=c;a.N--;this.ca=k};function K(a){this.m=a;this.k=this.t=m;this.O=k}K.prototype.h=n("t");K.prototype.C=n("O");function L(a,b){var c=a.evaluate(b);return c instanceof J?+kc(c):+c}function M(a,b){var c=a.evaluate(b);return c instanceof J?kc(c):""+c}function nc(a,b){var c=a.evaluate(b);return c instanceof J?!!c.v():!!c};function oc(a,b,c){K.call(this,a.m);this.fa=a;this.na=b;this.ua=c;this.t=b.h()||c.h();this.k=b.k||c.k;this.fa==pc&&(!c.k&&!c.h()&&4!=c.m&&0!=c.m&&b.C()?this.O={name:b.C().name,J:c}:!b.k&&(!b.h()&&4!=b.m&&0!=b.m&&c.C())&&(this.O={name:c.C().name,J:b}))}u(oc,K);
function qc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof J&&c instanceof J){f=lc(b);for(b=f.next();b;b=f.next()){e=lc(c);for(d=e.next();d;d=e.next())if(a(I(b),I(d)))return j}return m}if(b instanceof J||c instanceof J){b instanceof J?e=b:(e=c,c=b);e=lc(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 m}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)}oc.prototype.evaluate=function(a){return this.fa.s(this.na,this.ua,a)};oc.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 rc(a,b,c,d){this.La=a;this.ra=b;this.m=c;this.s=d}rc.prototype.toString=n("La");var sc={};
function N(a,b,c,d){a in sc&&h(Error("Binary operator already created: "+a));a=new rc(a,b,c,d);return sc[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 qc(function(a,b){return a<b},a,b,c)});
N(">",4,2,function(a,b,c){return qc(function(a,b){return a>b},a,b,c)});N("<=",4,2,function(a,b,c){return qc(function(a,b){return a<=b},a,b,c)});N(">=",4,2,function(a,b,c){return qc(function(a,b){return a>=b},a,b,c)});var pc=N("=",3,2,function(a,b,c){return qc(function(a,b){return a==b},a,b,c,j)});N("!=",3,2,function(a,b,c){return qc(function(a,b){return a!=b},a,b,c,j)});N("and",2,2,function(a,b,c){return nc(a,c)&&nc(b,c)});N("or",1,2,function(a,b,c){return nc(a,c)||nc(b,c)});function tc(a,b){b.v()&&4!=a.m&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));K.call(this,a.m);this.ta=a;this.f=b;this.t=a.h();this.k=a.k}u(tc,K);tc.prototype.evaluate=function(a){a=this.ta.evaluate(a);return uc(this.f,a)};tc.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 vc(a,b){b.length<a.pa&&h(Error("Function "+a.q+" expects at least"+a.pa+" 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.Ka&&v(b,function(b,d){4!=b.m&&h(Error("Argument "+d+" to function "+a.q+" is not of type Nodeset: "+b))});K.call(this,a.m);this.S=a;this.Y=b;this.t=a.t||va(b,function(a){return a.h()});this.k=a.Ia&&!b.length||a.Ha&&!!b.length||va(b,function(a){return a.k})}u(vc,K);
vc.prototype.evaluate=function(a){return this.S.s.apply(k,xa(a,this.Y))};vc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.S+"\n",b=b+"  ";this.Y.length&&(a+=b+"Arguments:",b+="  ",a=ua(this.Y,function(a,d){return a+"\n"+d.toString(b)},a));return a};function wc(a,b,c,d,e,f,g,l,z){this.q=a;this.m=b;this.t=c;this.Ia=d;this.Ha=e;this.s=f;this.pa=g;this.da=s(l)?l:g;this.Ka=!!z}wc.prototype.toString=n("q");var xc={};
function P(a,b,c,d,e,f,g,l){a in xc&&h(Error("Function already created: "+a+"."));xc[a]=new wc(a,b,c,d,m,e,f,g,l)}P("boolean",2,m,m,function(a,b){return nc(b,a)},1);P("ceiling",1,m,m,function(a,b){return Math.ceil(L(b,a))},1);P("concat",3,m,m,function(a,b){var c=ya(arguments,1);return ua(c,function(b,c){return b+M(c,a)},"")},2,k);P("contains",2,m,m,function(a,b,c){b=M(b,a);a=M(c,a);return-1!=b.indexOf(a)},2);P("count",1,m,m,function(a,b){return b.evaluate(a).v()},1,1,j);P("false",2,m,m,ba(m),0);
P("floor",1,m,m,function(a,b){return Math.floor(L(b,a))},1);
P("id",4,m,m,function(a,b){function c(a){if(Rb){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=t(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:t(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=[];v(d,function(a){(a=c(a))&&!wa(f,a)&&f.push(a)});f.sort(qb);var g=new J;v(f,function(a){g.add(a)});return g},1);
P("lang",2,m,m,ba(m),1);P("last",1,j,m,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.r},0);P("local-name",3,m,j,function(a,b){var c=b?jc(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,j);P("name",3,m,j,function(a,b){var c=b?jc(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,j);P("namespace-uri",3,j,m,ba(""),0,1,j);P("normalize-space",3,m,j,function(a,b){return(b?M(b,a):I(a.g)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
P("not",2,m,m,function(a,b){return!nc(b,a)},1);P("number",1,m,j,function(a,b){return b?L(b,a):+I(a.g)},0,1);P("position",1,j,m,function(a){return a.Ma},0);P("round",1,m,m,function(a,b){return Math.round(L(b,a))},1);P("starts-with",2,m,m,function(a,b,c){b=M(b,a);a=M(c,a);return 0==b.lastIndexOf(a,0)},2);P("string",3,m,j,function(a,b){return b?M(b,a):I(a.g)},0,1);P("string-length",1,m,j,function(a,b){return(b?M(b,a):I(a.g)).length},0,1);
P("substring",3,m,m,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);P("substring-after",3,m,m,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);
P("substring-before",3,m,m,function(a,b,c){b=M(b,a);a=M(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);P("sum",1,m,m,function(a,b){for(var c=lc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+I(e);return d},1,1,j);P("translate",3,m,m,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);P("true",2,m,m,ba(j),0);function ec(a,b){this.xa=a;this.oa=s(b)?b:k;this.d=k;switch(a){case "comment":this.d=8;break;case "text":this.d=kb;break;case "processing-instruction":this.d=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function yc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}ec.prototype.matches=function(a){return this.d===k||this.d==a.nodeType};ec.prototype.getName=n("xa");
ec.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.xa;this.oa===k||(b+="\n"+this.oa.toString(a+"  "));return b};function zc(a){K.call(this,3);this.va=a.substring(1,a.length-1)}u(zc,K);zc.prototype.evaluate=n("va");zc.prototype.toString=function(a){return(a||"")+"literal: "+this.va};function bc(a){this.q=a.toLowerCase()}bc.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")+":*"};bc.prototype.getName=n("q");bc.prototype.toString=function(a){return(a||"")+"nametest: "+this.q};function Ac(a){K.call(this,1);this.ya=a}u(Ac,K);Ac.prototype.evaluate=n("ya");Ac.prototype.toString=function(a){return(a||"")+"number: "+this.ya};function Bc(a,b){K.call(this,a.m);this.ka=a;this.P=b;this.t=a.h();this.k=a.k;if(1==this.P.length){var c=this.P[0];!c.$&&c.z==Cc&&(c=c.W,"*"!=c.getName()&&(this.O={name:c.getName(),J:k}))}}u(Bc,K);function Dc(){K.call(this,4)}u(Dc,K);Dc.prototype.evaluate=function(a){var b=new J,a=a.g;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Dc.prototype.toString=function(a){return a+"RootHelperExpr"};function Ec(){K.call(this,4)}u(Ec,K);Ec.prototype.evaluate=function(a){var b=new J;b.add(a.g);return b};
Ec.prototype.toString=function(a){return a+"ContextHelperExpr"};
Bc.prototype.evaluate=function(a){var b=this.ka.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.v();c++){var e=a[c],f=lc(b,e.z.H),g;if(!e.h()&&e.z==Fc){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new Qb(g))}else if(!e.h()&&e.z==Gc)g=f.next(),b=e.evaluate(new Qb(g));else{g=f.next();for(b=e.evaluate(new Qb(g));(g=f.next())!=k;)g=e.evaluate(new Qb(g)),b=ic(b,g)}}return b};
Bc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.ka.toString(b);this.P.length&&(c+=b+"Steps:\n",b+="  ",v(this.P,function(a){c+=a.toString(b)}));return c};function Hc(a,b){this.f=a;this.H=!!b}function uc(a,b,c){for(c=c||0;c<a.f.length;c++)for(var d=a.f[c],e=lc(b),f=b.v(),g,l=0;g=e.next();l++){var z=a.H?f-l:l+1;g=d.evaluate(new Qb(g,z,f));var q;"number"==typeof g?q=z==g:"string"==typeof g||"boolean"==typeof g?q=!!g:g instanceof J?q=0<g.v():h(Error("Predicate.evaluate returned an unexpected type."));q||e.remove()}return b}Hc.prototype.C=function(){return 0<this.f.length?this.f[0].C():k};
Hc.prototype.h=function(){for(var a=0;a<this.f.length;a++){var b=this.f[a];if(b.h()||1==b.m||0==b.m)return j}return m};Hc.prototype.v=function(){return this.f.length};Hc.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return ua(this.f,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Ic(a,b,c,d){K.call(this,4);this.z=a;this.W=b;this.f=c||new Hc([]);this.$=!!d;b=this.f.C();a.Pa&&b&&(a=b.name,a=Rb?a.toLowerCase():a,this.O={name:a,J:b.J});this.t=this.f.h()}u(Ic,K);
Ic.prototype.evaluate=function(a){var b=a.g,c=k,c=this.C(),d=k,e=k,f=0;c&&(d=c.name,e=c.J?M(c.J,a):k,f=1);if(this.$)if(!this.h()&&this.z==Jc)c=Zb(this.W,b,d,e),c=uc(this.f,c,f);else if(a=lc((new Ic(Kc,new ec("node"))).evaluate(a)),b=a.next())for(c=this.s(b,d,e,f);(b=a.next())!=k;)c=ic(c,this.s(b,d,e,f));else c=new J;else c=this.s(a.g,d,e,f);return c};Ic.prototype.s=function(a,b,c,d){a=this.z.S(this.W,a,b,c);return a=uc(this.f,a,d)};
Ic.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.$?"//":"/")+"\n");this.z.q&&(b+=a+"Axis: "+this.z+"\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 Lc(a,b,c,d){this.q=a;this.S=b;this.H=c;this.Pa=d}Lc.prototype.toString=n("q");var Mc={};
function Q(a,b,c,d){a in Mc&&h(Error("Axis already created: "+a));b=new Lc(a,b,c,!!d);return Mc[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 Cc=Q("attribute",function(a,b){var c=new J,d=a.getName();if("style"==d&&b.style&&Rb)return c.add(new Tb(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof ec&&a.d===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)Rb?g.nodeValue&&c.add(Ub(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(Rb?g.nodeValue&&c.add(Ub(b,g,b.sourceIndex)):c.add(g));return c},m),Jc=Q("child",function(a,b,c,d,e){return(Rb?fc:gc).call(k,a,b,t(c)?c:k,t(d)?d:k,e||new J)},m,j);
Q("descendant",Zb,m,j);var Kc=Q("descendant-or-self",function(a,b,c,d){var e=new J;Yb(b,c,d)&&a.matches(b)&&e.add(b);return Zb(a,b,c,d,e)},m,j),Fc=Q("following",function(a,b,c,d){var e=new J;do for(var f=b;f=f.nextSibling;)Yb(f,c,d)&&a.matches(f)&&e.add(f),e=Zb(a,f,c,d,e);while(b=b.parentNode);return e},m,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},m);Q("namespace",function(){return new J},m);
var Nc=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},m),Gc=Q("preceding",function(a,b,c,d){var e=new J,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,l=f.length;g<l;g++){for(var z=[],b=f[g];b=b.previousSibling;)z.unshift(b);for(var q=0,aa=z.length;q<aa;q++)b=z[q],Yb(b,c,d)&&a.matches(b)&&e.add(b),e=Zb(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 Oc=Q("self",function(a,b){var c=new J;a.matches(b)&&c.add(b);return c},m);function Pc(a){K.call(this,1);this.ja=a;this.t=a.h();this.k=a.k}u(Pc,K);Pc.prototype.evaluate=function(a){return-L(this.ja,a)};Pc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.ja.toString(a+"  ")};function Qc(a){K.call(this,4);this.U=a;this.t=va(this.U,function(a){return a.h()});this.k=va(this.U,function(a){return a.k})}u(Qc,K);Qc.prototype.evaluate=function(a){var b=new J;v(this.U,function(c){c=c.evaluate(a);c instanceof J||h(Error("PathExpr must evaluate to NodeSet."));b=ic(b,c)});return b};Qc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";v(this.U,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Rc(a){this.a=a}function Sc(a){for(var b,c=[];;){R(a,"Missing right hand side of binary expression.");b=Tc(a);var d=a.a.next();if(!d)break;var e=(d=sc[d]||k)&&d.ra;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].ra;)b=new oc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new oc(c.pop(),c.pop(),b);return b}function R(a,b){a.a.empty()&&h(Error(b))}function Uc(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function Vc(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function Wc(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new zc(a)}function Xc(a){return"*"!=H(a.a)&&":"==H(a.a,1)&&"*"==H(a.a,2)?new bc(a.a.next()+a.a.next()+a.a.next()):new bc(a.a.next())}
function Yc(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 Dc;d=new Dc;R(a,"Missing next location step.");b=Zc(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=Sc(a);R(a,'unclosed "("');Uc(a,")");break;case '"':case "'":b=Wc(a);break;default:if(isNaN(+b))if(!yc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==H(a.a,1)){b=a.a.next();b=xc[b]||k;a.a.next();for(d=[];")"!=H(a.a);){R(a,"Missing function argument list.");d.push(Sc(a));if(","!=H(a.a))break;a.a.next()}R(a,"Unclosed function argument list.");Vc(a);b=new vc(b,d)}else{b=k;break a}else b=new Ac(+a.a.next())}"["==H(a.a)&&(d=new Hc($c(a)),b=new tc(b,d))}if(b)if("/"==H(a.a)||"//"==H(a.a))d=b;else return b;else b=Zc(a,"/"),d=new Ec,c.push(b)}for(;"/"==H(a.a)||"//"==H(a.a);)b=a.a.next(),R(a,"Missing next location step."),b=Zc(a,b),c.push(b);return new Bc(d,
c)}
function Zc(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==H(a.a))return d=new Ic(Oc,new ec("node")),a.a.next(),d;if(".."==H(a.a))return d=new Ic(Nc,new ec("node")),a.a.next(),d;var f;"@"==H(a.a)?(f=Cc,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=Mc[e]||k)||h(Error("No axis with name: "+e)),a.a.next(),R(a,"Missing node name")):f=Jc;e=H(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==H(a.a,
1)){yc(e)||h(Error("Invalid node type: "+e));c=a.a.next();yc(c)||h(Error("Invalid type name: "+c));Uc(a,"(");R(a,"Bad nodetype");e=H(a.a).charAt(0);var g=k;if('"'==e||"'"==e)g=Wc(a);R(a,"Bad nodetype");Vc(a);c=new ec(c,g)}else c=Xc(a);else"*"==e?c=Xc(a):h(Error("Bad token: "+a.a.next()));e=new Hc($c(a),f.H);return d||new Ic(f,c,e,"//"==b)}
function $c(a){for(var b=[];"["==H(a.a);){a.a.next();R(a,"Missing predicate expression.");var c=Sc(a);b.push(c);R(a,"Unclosed predicate expression.");Uc(a,"]")}return b}function Tc(a){if("-"==H(a.a))return a.a.next(),new Pc(Tc(a));var b=Yc(a);if("|"!=H(a.a))a=b;else{for(b=[b];"|"==a.a.next();)R(a,"Missing next union location path."),b.push(Yc(a));a.a.back();a=new Qc(b)}return a};function ad(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(Wb),b=0;b<a.length;b++)Xb.test(a[b])&&a.splice(b,1);a=new Vb(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Sc(new Rc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Qb(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?kc(a):""+a;break;case 1:this.numberValue=a instanceof J?+kc(a):+a;break;case 3:this.booleanValue=a instanceof J?0<a.v():!!a;break;case 4:case 5:case 6:case 7:var d=lc(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof Tb?e.g:e);this.snapshotLength=a.v();this.invalidIteratorState=m;break;case 8:case 9:d=jc(a);this.singleNodeValue=d instanceof Tb?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={},bd={jb:"http://www.w3.org/2000/svg"};T.Aa=function(a){return bd[a]||k};
T.s=function(a,b,c){var d=E(a);if(y||Nb){var e=G(d)||r,f=e.document;f.evaluate||(e.XPathResult=S,f.evaluate=function(a,b,c,d){return(new ad(a)).evaluate(b,d)},f.createExpression=function(a){return new ad(a)})}try{var g=d.createNSResolver?d.createNSResolver(d.documentElement):T.Aa;return y&&!eb(7)?d.evaluate.call(d,b,a,g,c,k):d.evaluate(b,a,g,c,k)}catch(l){A&&"NS_ERROR_ILLEGAL_VALUE"==l.name||h(new w(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+
l))}};T.Z=function(a,b){(!a||1!=a.nodeType)&&h(new w(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};T.Oa=function(a,b){var c=function(){var c=T.s(b,a,9);return c?(c=c.singleNodeValue,x?c:c||k):b.selectSingleNode?(c=E(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):k}();c===k||T.Z(c,a);return c};
T.Ya=function(a,b){var c=function(){var c=T.s(b,a,7);if(c){var e=c.snapshotLength;x&&!s(e)&&T.Z(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)):[]}();v(c,function(b){T.Z(b,a)});return c};function cd(a){return(a=a.exec(Ra()))?a[1]:""}var dd=function(){if(Jb)return cd(/Firefox\/([0-9.]+)/);if(Ib||Hb)return Ya;if(Ob)return cd(/Chrome\/([0-9.]+)/);if(Pb)return cd(/Version\/([0-9.]+)/);if(Lb||Mb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ra());if(a)return a[1]+"."+a[2]}else{if(Nb)return(a=cd(/Android\s+([0-9.]+)/))?a:cd(/Version\/([0-9.]+)/);if(Kb)return cd(/Camino\/([0-9.]+)/)}return""}();var ed,fd;function gd(a){return hd?ed(a):y?0<=ma(fb,a):eb(a)}function id(a){return hd?fd(a):Nb?0<=ma(jd,a):0<=ma(dd,a)}
var hd=function(){if(!A)return m;var a=r.Components;if(!a)return m;try{if(!a.classes)return m}catch(b){return m}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;ed=function(a){return 0<=d.Ca(e,""+a)};fd=function(a){return 0<=d.Ca(f,""+a)};return j}(),kd=Mb||Lb,ld;if(Nb){var md=/Android\s+([0-9\.]+)/.exec(Ra());ld=md?md[1]:"0"}else ld="0";
var jd=ld,nd=y&&!C(8),od=C(9),pd=y&&!C(9),qd=C(10),rd=y&&!C(10);Nb&&id(2.3);!x&&(!B||gd("533"));function sd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}sd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};sd.prototype.contains=function(a){return!this||!a?m:a instanceof sd?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 td(a,b){var c=E(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function ud(a,b){return td(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function vd(a){var a=a?E(a):document,b;if(b=y)if(b=!C(9))b=lb(a),b=!ob(b.D);return b?a.body:a.documentElement}
function wd(a){var b=a.getBoundingClientRect();y&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function xd(a){if(y&&!C(8))return a.offsetParent;for(var b=E(a),c=ud(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=ud(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 yd(a){var b,c=E(a),d=ud(a,"position");qa(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=vd(c);if(a==g)return f;if(a.getBoundingClientRect)b=wd(a),a=lb(c),a=nb(a.D),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"==ud(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(x||B&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=xd(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!x||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function zd(a){var b=new D;if(1==a.nodeType){if(a.getBoundingClientRect){var c=wd(a);b.x=c.left;b.y=c.top}else{var c=lb(a),c=nb(c.D),d=yd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(A&&!eb(12)){var e;y?e="-ms-transform":B?e="-webkit-transform":x?e="-o-transform":A&&(e="-moz-transform");var f;e&&(f=ud(a,e));f||(f=ud(a,"transform"));f?(a=f.match(Ad),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=ea(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 Bd(a){if("none"!=ud(a,"display"))return Cd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Cd(a);b.display=c;b.position=e;b.visibility=d;return a}function Cd(a){var b=a.offsetWidth,c=a.offsetHeight,d=B&&!b&&!c;return(!s(b)||d)&&a.getBoundingClientRect?(a=wd(a),new jb(a.right-a.left,a.bottom-a.top)):new jb(b,c)}var Dd={thin:2,medium:4,thick:6};
function Ed(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 Dd)d=Dd[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 Ad=/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 Fd(a){return Gd(a,j)&&Hd(a)&&!(y||x||A&&!gd("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):m}function Jd(a,b){var c;if(c=nd)if(c="value"==b)if(c=U(a,"OPTION"))c=Kd(a,"value")===k;c?(c=[],wb(a,c,m),c=c.join("")):c=a[b];return c}var Ld=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function Kd(a,b){b=b.toLowerCase();if("style"==b){var c=[];v(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 x?c.replace(/\w+:;/g,""):c}if(nd&&"value"==b&&U(a,"INPUT"))return a.value;if(pd&&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!wa(Md,b)?j:Jd(a,"disabled")?m: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=pd?"styleFloat":"cssFloat";c=td(a,c)||Pd(a,c);if(c===k)c=k;else if(wa(Aa,b)&&(Da.test("#"==c.charAt(0)?c:"#"+c)||Ha(c).length||za&&za[c.toLowerCase()]||Fa(c).length)){var d=Fa(c);if(!d.length){a:if(d=Ha(c),!d.length){d=za[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Da.test(d)&&(d=Ca(d),d=Ca(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)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?s(d)?d:k:(c=Od(a))?Pd(c,b):k}
function Qd(a){if(ea(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(U(a,ib)){b=G(E(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||ja).document,b=a.documentElement,d=a.body;d||h(new w(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 jb(b,a)}else b=(b||window).document,b=ob(b)?b.documentElement:b.body,b=new jb(b.clientWidth,b.clientHeight);return b}return Bd(a)}
function Gd(a,b){function c(a){if("none"==V(a,"display"))return m;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)):va(a.childNodes,function(b){return b.nodeType==kb&&"hidden"!=V(a,"overflow")||U(b)&&d(b)})}function e(a){var b=xd(a),c=A||y||x?Od(a):b;if((A||y||x)&&U(c,ib))b=c;if(b&&"hidden"==V(b,"overflow")){var c=Qd(b),d=zd(b),a=zd(a);return d.x+c.width<a.x||d.y+c.height<a.y?m: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=zd(a),a=Qd(a),0<=b.x+a.width/2&&0<=b.y+a.height/2?j:m;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=xb(a,function(a){return U(a,"SELECT")});return!!g&&Gd(g,j)}if(U(a,"MAP")){if(!a.name)return m;g=E(a);if(g.evaluate)g=T.Oa('/descendant::*[@usemap = "#'+a.name+'"]',g);
else var l=[],g=tb(g,function(b){return U(b)&&Kd(b,"usemap")=="#"+a.name},l,j)?l[0]:i;return!!g&&Gd(g,b)}if(U(a,"AREA"))return g=xb(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)rd?"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)?m: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=ja.document.documentElement;this.p=k;var b=yb(E(this.e));b&&Td(this,b);this.w=a||new Ud}Sd.prototype.F=n("e");function Td(a,b){a.e=b;a.p=U(b,"OPTION")?xb(b,function(a){return U(a,"SELECT")}):k}
function W(a,b,c,d,e,f,g){if(!g&&!Fd(a.e))return m;e&&!(Vd==b||Wd==b)&&h(new w(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?Xd(a,b):a.e)?Yd(a,b,c):j}
function Zd(a,b,c,d,e,f,g,l,z){if(!z&&!Fd(a.e))return m;l&&!($d==b||ae==b)&&h(new w(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:m,ctrlKey:m,shiftKey:m,metaKey:m,relatedTarget:l||k,width:0,height:0,Na:0,rotation:0,pointerId:e,Qa:0,Ra:0,pointerType:f,Ga:g};return(a=a.p?Xd(a,b):a.e)?Yd(a,b,c):j}
function Xd(a,b){if(y)switch(b){case Vd:case $d:return k;case be:case ce:case de:return a.p.multiple?a.p:k;default:return a.p}if(x)switch(b){case be:case Vd:return a.p.multiple?a.e:k;default:return a.e}if(B)switch(b){case ee:case fe:return a.p.multiple?a.e:a.p;default:return a.p.multiple?a.e:k}return a.e}
function ge(a,b){if(Fd(a.e)){var c=k,d=k;if(!he)for(var e=a.e;e;e=e.parentNode)if(U(e,"A")){c=e;break}else{var f;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=m}if(f){d=e;break}}if(f=e=Id(a.e)){f=a.e;Id(f)||h(new w(15,"Element is not selectable"));var g="selected",l=f.type&&f.type.toLowerCase();if("checkbox"==l||"radio"==l)g="checked";f=!!Jd(f,g)}if(a.p&&(g=a.p,!f||g.multiple))a.e.selected=!f,
(!B||!g.multiple||Nb&&id(4))&&Yd(g,ie);y&&d?d.click():W(a,ee,b,0)&&(c&&je(c)?(d=c.href,e=G(E(c)),y&&!gd(8)&&(d=ke(e.location,d)),c.target?e.open(d,c.target):e.location.href=d):e&&!a.p&&(!A&&!B&&!(f&&"radio"==a.e.type.toLowerCase()))&&(a.e.checked=!f,x&&!gd(11)&&Yd(a.e,ie)))}}
function le(a){var a=a.p||a.e,b=yb(E(a));if(a!=b){if(b&&(ea(b.blur)||y&&fa(b.blur))){try{"body"!==b.tagName.toLowerCase()&&b.blur()}catch(c){y&&"Unspecified error."==c.message||h(c)}y&&!gd(8)&&G(E(a)).focus()}if(ea(a.focus)||y&&fa(a.focus))x&&gd(11)&&!Gd(a)?Yd(a,me):a.focus()}}var he=B||x||hd&&id(3.6);
function je(a){if(he||!a.href)return m;if(!hd)return j;if(a.target||0==a.href.toLowerCase().indexOf("javascript"))return m;var b=G(E(a)),c=b.location.href,a=ke(b.location,a.href);return c.split("#")[0]!==a.split("#")[0]}var ne=/^([^:/?#.]+:)?(?:\/\/([^/]*))?([^?#]+)?(\?[^#]*)?(#.*)?$/;
function ke(a,b){var c=b.match(ne);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 l=a.pathname.lastIndexOf("/");-1!=l&&(f=a.pathname.substr(0,l+1)+f)}}else f=a.pathname,g=g||a.search;return d+"//"+e+f+g+c}function Ud(){this.ga=0}Ud.prototype.i=function(a){return 0!=(this.ga&a)};var oe=!(y&&!gd(10))&&!x,pe=Nb?!id(4):!kd,qe=y&&ja.navigator.msPointerEnabled;function X(a,b,c){this.d=a;this.A=b;this.B=c}X.prototype.create=function(a){a=E(a);pd?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.d,this.A,this.B));return a};X.prototype.toString=n("d");function Y(a,b,c){X.call(this,a,b,c)}u(Y,X);
Y.prototype.create=function(a,b){!A&&this==re&&h(new w(9,"Browser does not support a mouse pixel scroll event."));var c=E(a),d;if(pd){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==Wd||this==Vd)Object.defineProperty?(c=this==Wd,e("fromElement",c?a:b.relatedTarget),e("toElement",c?b.relatedTarget:a)):d.relatedTarget=
b.relatedTarget;this==se&&(Object.defineProperty?e("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=G(c);d=c.createEvent("MouseEvents");c=1;if(this==se&&(A||(d.wheelDelta=b.wheelDelta),A||x))c=b.wheelDelta/-40;A&&this==re&&(c=b.wheelDelta);d.initMouseEvent(this.d,this.A,this.B,e,c,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(y&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var e=lb(a),e=!B&&ob(e.D)?e.D.documentElement:e.D.body,c=vd(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 te(a,b,c){X.call(this,a,b,c)}u(te,X);
te.prototype.create=function(a,b){var c=E(a);if(A){var d=G(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.d,this.A,this.B,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.d==ue&&b.preventDefault&&c.preventDefault()}else pd?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.d,this.A,this.B)),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==ue?c.keyCode:
0);return c};function ve(a,b,c){X.call(this,a,b,c)}u(ve,X);
ve.prototype.create=function(a,b){function c(b){b=ta(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=ta(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}oe||h(new w(9,"Browser does not support firing touch events."));var e=E(a),f=G(e),g=pe?d(b.changedTouches):
c(b.changedTouches),l=b.touches==b.changedTouches?g:pe?d(b.touches):c(b.touches),z=b.targetTouches==b.changedTouches?g:pe?d(b.targetTouches):c(b.targetTouches),q;pe?(q=e.createEvent("MouseEvents"),q.initMouseEvent(this.d,this.A,this.B,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),q.touches=l,q.targetTouches=z,q.changedTouches=g,q.scale=b.scale,q.rotation=b.rotation):(q=e.createEvent("TouchEvent"),Nb?q.initTouchEvent(l,z,g,this.d,f,0,0,b.clientX,b.clientY,b.ctrlKey,
b.altKey,b.shiftKey,b.metaKey):q.initTouchEvent(this.d,this.A,this.B,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,l,z,g,b.scale,b.rotation),q.relatedTarget=b.relatedTarget);return q};function we(a,b,c){X.call(this,a,b,c)}u(we,X);
we.prototype.create=function(a,b){qe||h(new w(9,"Browser does not support MSGesture events."));var c=E(a),d=G(c),c=c.createEvent("MSGestureEvent");c.initGestureEvent(this.d,this.A,this.B,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 xe(a,b,c){X.call(this,a,b,c)}u(xe,X);
xe.prototype.create=function(a,b){qe||h(new w(9,"Browser does not support MSPointer events."));var c=E(a),d=G(c),c=c.createEvent("MSPointerEvent");c.Xa(this.d,this.A,this.B,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.Na,b.rotation,b.Qa,b.Ra,b.pointerId,b.pointerType,0,b.Ga);return c};
var ie=new X("change",j,m),me=new X("focus",m,m),ee=new Y("click",j,j),be=new Y("contextmenu",j,j),ye=new Y("dblclick",j,j),ze=new Y("mousedown",j,j),ce=new Y("mousemove",j,m),Wd=new Y("mouseout",j,j),Vd=new Y("mouseover",j,j),fe=new Y("mouseup",j,j),se=new Y(A?"DOMMouseScroll":"mousewheel",j,j),re=new Y("MozMousePixelScroll",j,j),ue=new te("keypress",j,j),Ae=new ve("touchend",j,j),Be=new ve("touchmove",j,j),Ce=new ve("touchstart",j,j),De=new xe("MSPointerDown",j,j),de=new xe("MSPointerMove",j,j),
$d=new xe("MSPointerOver",j,j),ae=new xe("MSPointerOut",j,j),Ee=new xe("MSPointerUp",j,j);function Yd(a,b,c){c=b.create(a,c);"isTrusted"in c||(c.isTrusted=m);return pd?a.fireEvent("on"+b.d,c):a.dispatchEvent(c)};function Fe(a){if("function"==typeof a.M)return a.M();if(t(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ja(a)};function Ge(a,b){this.o={};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.X(a)}p=Ge.prototype;p.L=0;p.za=0;p.M=function(){He(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};function Ie(a){He(a);return a.j.concat()}p.remove=function(a){return Je(this.o,a)?(delete this.o[a],this.L--,this.za++,this.j.length>2*this.L&&He(this),j):m};
function He(a){if(a.L!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Je(a.o,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.L!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],Je(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}p.get=function(a,b){return Je(this.o,a)?this.o[a]:b};p.set=function(a,b){Je(this.o,a)||(this.L++,this.j.push(a),this.za++);this.o[a]=b};
p.X=function(a){var b;if(a instanceof Ge)b=Ie(a),a=a.M();else{b=[];var c=0,d;for(d in a)b[c++]=d;a=Ja(a)}for(c=0;c<b.length;c++)this.set(b[c],a[c])};function Je(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ke(a){this.o=new Ge;a&&this.X(a)}function Le(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ga]||(a[ga]=++ha)):b.substr(0,1)+a}p=Ke.prototype;p.add=function(a){this.o.set(Le(a),a)};p.X=function(a){for(var a=Fe(a),b=a.length,c=0;c<b;c++)this.add(a[c])};p.remove=function(a){return this.o.remove(Le(a))};p.contains=function(a){a=Le(a);return Je(this.o.o,a)};p.M=function(){return this.o.M()};function Me(a){Sd.call(this);var b;if(U(this.F(),"TEXTAREA"))b=j;else if(U(this.F(),"INPUT"))b=wa(Nd,this.F().type.toLowerCase());else{b=this.F();var c=function(a){return"inherit"==a.contentEditable?(a=Od(a))?c(a):m:"true"==a.contentEditable};b=(!s(b.contentEditable)?0:!y&&s(b.isContentEditable)?b.isContentEditable:c(b))?j:m}this.Ua=b&&!Jd(this.F(),"readOnly");this.Da=0;this.sa=new Ke;a&&(v(a.pressed,function(a){if(wa(Ne,a)){var b=Oe.get(a.code),c=this.w;c.ga|=b}this.sa.add(a)},this),this.Da=a.currentPos)}
u(Me,Sd);var Pe={};function Z(a,b,c){fa(a)&&(a=A?a.b:x?a.opera:a.c);a=new Qe(a,b,c);if(b&&(!(b in Pe)||c))Pe[b]={key:a,shift:m},c&&(Pe[c]={key:a,shift:j});return a}function Qe(a,b,c){this.code=a;this.Ba=b||k;this.hb=c||this.Ba}Z(8);Z(9);Z(13);var Re=Z(16),Se=Z(17),Te=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 Ue=Z(Qa?{b:91,c:91,opera:219}:Pa?{b:224,c:91,opera:17}:{b:0,c:91,opera:k});
Z(Qa?{b:92,c:92,opera:220}:Pa?{b:224,c:93,opera:17}:{b:0,c:92,opera:k});Z(Qa?{b:93,c:93,opera:0}:Pa?{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:Wa?56:42},"*");Z({b:107,c:107,opera:Wa?61:43},"+");
Z({b:109,c:109,opera:Wa?109:45},"-");Z({b:110,c:110,opera:Wa?190:78},".");Z({b:111,c:111,opera:Wa?191:47},"/");Z(Wa&&x?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 Ne=[Te,Se,Ue,Re],Ve=new Ge;Ve.set(1,Re);Ve.set(2,Se);
Ve.set(4,Te);Ve.set(8,Ue);var Oe,We=new Ge;v(Ie(Ve),function(a){We.set(Ve.get(a).code,a)});Oe=We;Me.prototype.i=function(a){return this.sa.contains(a)};A&&gd(12);function Xe(a,b){Sd.call(this,b);this.Fa=this.K=k;this.l=new D(0,0);this.aa=this.qa=m;if(a){this.K=a.Sa;try{U(a.Ea)&&(this.Fa=a.Ea)}catch(c){this.K=k}this.l=a.Ta;this.qa=a.fb;this.aa=a.Wa;try{U(a.element)&&Td(this,a.element)}catch(d){this.K=k}}}u(Xe,Sd);var $={};
pd?($[ee]=[0,0,0,k],$[be]=[k,k,0,k],$[fe]=[1,4,2,k],$[Wd]=[0,0,0,0],$[ce]=[1,4,2,0]):B||od?($[ee]=[0,1,2,k],$[be]=[k,k,2,k],$[fe]=[0,1,2,k],$[Wd]=[0,1,2,0],$[ce]=[0,1,2,0]):($[ee]=[0,1,2,k],$[be]=[k,k,2,k],$[fe]=[0,1,2,k],$[Wd]=[0,0,0,0],$[ce]=[0,0,0,0]);qd&&($[De]=$[fe],$[Ee]=$[fe],$[de]=[-1,-1,-1,-1],$[ae]=$[de],$[$d]=$[de]);$[ye]=$[ee];$[ze]=$[fe];$[Vd]=$[Wd];var Ye={$a:De,ab:de,bb:ae,cb:$d,eb:Ee};
Xe.prototype.move=function(a,b){var c=Fd(a),d=zd(a);this.l.x=b.x+d.x;this.l.y=b.y+d.y;d=this.F();if(a!=d){try{G(E(d)).closed&&(d=k)}catch(e){d=k}if(d){var f=d===ja.document.documentElement||d===ja.document.body,d=!this.aa&&f?k:d;Ze(this,Wd,a)}Td(this,a);y||Ze(this,Vd,d,k,c)}Ze(this,ce,k,k,c);y&&a!=d&&Ze(this,Vd,d,k,c);this.qa=m};function Ze(a,b,c,d,e){a.aa=j;if(qd){var f=Ye[b];if(f&&!Zd(a,f,a.l,$e(a,f),1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,j,c,e))return}W(a,b,a.l,$e(a,b),c,d,e)}
function $e(a,b){if(!(b in $))return 0;var c=$[b][a.K===k?3:a.K];c===k&&h(new w(13,"Event does not permit the specified mouse button."));return c};function af(){Sd.call(this);this.l=new D(0,0);this.R=new D(0,0)}u(af,Sd);p=af.prototype;p.ba=m;p.Q=0;p.I=0;p.wa=1;p.move=function(a,b,c){(!this.i()||qd)&&Td(this,a);a=zd(a);this.l.x=b.x+a.x;this.l.y=b.y+a.y;s(c)&&(this.R.x=c.x+a.x,this.R.y=c.y+a.y);this.i()&&(this.ba=j,qd?bf(this,cf):df(this,Be))};p.i=function(){return!!this.Q};
function df(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};l.changedTouches.push(d);if(b==Ce||b==Be)l.touches.push(d),l.targetTouches.push(d)}a.i()||h(new w(13,"Should never fire event when touchscreen is not pressed."));var d,e;a.I&&(d=a.I,e=a.R);var f=a.Q,g=a.l,l={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);s(d)&&c(d,e);Yd(a.e,
b,l)}function bf(a,b){b(a,a.l,a.Q,j);a.I&&b(a,a.R,a.I,m)}function ef(a,b,c,d){W(a,ce,b,0);Zd(a,$d,b,0,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);W(a,Vd,b,0);Zd(a,De,b,0,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);W(a,ze,b,0)&&le(a)}function ff(a,b,c,d){Zd(a,Ee,b,0,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);W(a,fe,b,0);ge(a,b);Zd(a,ae,b,-1,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);W(a,Wd,b,0)}function cf(a,b,c,d){Zd(a,de,b,-1,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);W(a,ce,b,0)};function gf(a,b){this.x=a;this.y=b}u(gf,D);gf.prototype.scale=function(a){this.x*=a;this.y*=a;return this};gf.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function hf(a,b){a.x-=b.x;a.y-=b.y;return a}function jf(a,b){return new gf(a.x+b.x,a.y+b.y)}function kf(a,b){return new gf(a.x-b.x,a.y-b.y)};function lf(a,b,c,d){function e(a){var b=Math.sqrt(a.x*a.x+a.y*a.y);a.scale(b?(b-f)/b:0)}0==b&&h(new w(13,"Cannot pinch by a distance of zero."));var f=b/2;Gd(a,j)||h(new w(11,"Element is not currently visible and may not be manipulated"));var g=E(a),g=B?g.body:g.documentElement,l;l=yd(a);var z=yd(g),q;if(y){var aa=Ed(g,"borderLeft");q=Ed(g,"borderRight");var F=Ed(g,"borderTop"),O=Ed(g,"borderBottom");q=new sd(F,q,O,aa)}else aa=td(g,"borderLeftWidth"),q=td(g,"borderRightWidth"),F=td(g,"borderTopWidth"),
O=td(g,"borderBottomWidth"),q=new sd(parseFloat(F),parseFloat(q),parseFloat(O),parseFloat(aa));aa=l.x-z.x-q.left;l=l.y-z.y-q.top;z=g.clientHeight-a.offsetHeight;q=g.scrollLeft;F=g.scrollTop;q+=Math.min(aa,Math.max(aa-(g.clientWidth-a.offsetWidth),0));F+=Math.min(l,Math.max(l-z,0));l=new D(q,F);g.scrollLeft=l.x;g.scrollTop=l.y;c?c=new gf(c.x,c.y):(c=mf(a),c=new gf(c.width/2,c.height/2));g=mf(a);g=new gf(Math.min(c.x,g.width-c.x),Math.min(c.y,g.height-c.y));d=d||new af;0>b&&(l=Math.sqrt(g.x*g.x+g.y*
g.y),g.scale(l?(l+b)/l:0));d.move(a,jf(c,g),kf(c,g));d.i()&&h(new w(13,"Cannot press touchscreen when already pressed."));d.ba=m;d.Q=d.wa++;d.I=d.wa++;qd?bf(d,ef):df(d,Ce);b=zd(a);e(g);d.move(a,jf(c,g),kf(c,g));l=kf(zd(a),b);e(g);b=hf(jf(c,g),l);c=hf(kf(c,g),l);d.move(a,b,c);d.i()||h(new w(13,"Cannot release touchscreen when not already pressed."));qd?bf(d,ff):(df(d,Ae),d.ba||(W(d,ce,d.l,0),W(d,ze,d.l,0)&&le(d),W(d,fe,d.l,0),ge(d,d.l)));d.Q=0;d.I=0}
function mf(a){var b=Bd(a);return 0<b.width&&0<b.height||!a.offsetParent?b:mf(a.offsetParent)}function nf(){Sd.call(this)}u(nf,Sd);nf.Va=function(){return nf.ma?nf.ma:nf.ma=new nf};function of(){this.V=i}
function pf(a,b,c){switch(typeof b){case "string":qf(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"==ca(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],pf(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),qf(f,
c),c.push(":"),pf(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 rf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},sf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function qf(a,b){b.push('"',a.replace(sf,function(a){if(a in rf)return rf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return rf[a]=e+b.toString(16)}),'"')};B||x||A&&gd(3.5)||y&&gd(8);function tf(a){switch(ca(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return ta(a,tf);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=uf(a);return b}if("document"in a)return b={},b.WINDOW=uf(a),b;if(da(a))return ta(a,tf);var b=function(a,b){return"number"==typeof b||t(b)},c={},d;for(d in a)b.call(i,0,d)&&(c[d]=a[d]);return Ia(c,tf);default:return k}}
function vf(a,b){return"array"==ca(a)?ta(a,function(a){return vf(a,b)}):fa(a)?"function"==typeof a?a:"ELEMENT"in a?wf(a.ELEMENT,b):"WINDOW"in a?wf(a.WINDOW,b):Ia(a,function(a){return vf(a,b)}):a}function xf(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.ea=ia());b.ea||(b.ea=ia());return b}function uf(a){var b=xf(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 wf(a,b){var a=decodeURIComponent(a),c=b||document,d=xf(c);a in d||h(new w(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new w(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 w(10,"Element is no longer attached to the DOM"))};function yf(a,b,c){var a=[a,b,c],b=lf,d;try{var b=t(b)?new ja.Function(b):ja==window?b:new ja.Function("return ("+b+").apply(null,arguments);"),e=vf(a,ja.document),f=b.apply(k,e);d={status:0,value:tf(f)}}catch(g){d={status:"code"in g?g.code:13,value:{message:g.message}}}e=[];pf(new of,d,e);return e.join("")}var zf=["_"],Af=r;!(zf[0]in Af)&&Af.execScript&&Af.execScript("var "+zf[0]);for(var Bf;zf.length&&(Bf=zf.shift());)!zf.length&&s(yf)?Af[Bf]=yf:Af=Af[Bf]?Af[Bf]:Af[Bf]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
