function(){return function(){var n,p=this;function aa(a){return void 0!==a}function ba(a,b){var c=a.split("."),d=p;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&aa(b)?d[e]=b:d[e]?d=d[e]:d=d[e]={}}
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 q(a){return"string"==typeof a}function da(a){return"number"==typeof a}function ea(a){return"function"==ca(a)}function fa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ga(a,b,c){return a.call.apply(a.bind,arguments)}
function ha(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function ia(a,b,c){ia=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ga:ha;return ia.apply(null,arguments)}
function ja(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}var ka=Date.now||function(){return+new Date};function r(a,b){function c(){}c.prototype=b.prototype;a.Ka=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.za=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};var la=window;function na(a){if(Error.captureStackTrace)Error.captureStackTrace(this,na);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}r(na,Error);na.prototype.name="CustomError";var oa;function pa(a,b){return 0==a.lastIndexOf(b,0)}function qa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var ra=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
function sa(a,b){for(var c=0,d=ra(String(a)).split("."),e=ra(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"",m=RegExp("(\\d*)(\\D*)","g"),l=RegExp("(\\d*)(\\D*)","g");do{var B=m.exec(h)||["","",""],K=l.exec(k)||["","",""];if(0==B[0].length&&0==K[0].length)break;c=ta(0==B[1].length?0:parseInt(B[1],10),0==K[1].length?0:parseInt(K[1],10))||ta(0==B[2].length,0==K[2].length)||ta(B[2],K[2])}while(0==c)}return c}function ta(a,b){return a<b?-1:a>b?1:0}
function ua(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};function va(a,b){if(q(a))return q(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1}function t(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function wa(a,b){for(var c=a.length,d=[],e=0,f=q(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d}
function xa(a,b){for(var c=a.length,d=Array(c),e=q(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d}function ya(a,b,c){var d=c;t(a,function(c,f){d=b.call(void 0,d,c,f,a)});return d}function za(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1}function Aa(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&!b.call(void 0,d[e],e,a))return!1;return!0}
function Ba(a,b){var c;a:{c=a.length;for(var d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:q(a)?a.charAt(c):a[c]}function Ca(a){return Array.prototype.concat.apply(Array.prototype,arguments)}function Da(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Ea={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:"#9370db",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:"#db7093",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 Fa="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Ga=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Ha=/^#(?:[0-9a-f]{3}){1,2}$/i,Ia=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Ja=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function u(a,b){this.code=a;this.a=v[a]||Ka;this.message=b||"";var c=this.a.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")}),d=c.length-5;if(0>d||c.indexOf("Error",d)!=d)c+="Error";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||""}r(u,Error);var Ka="unknown error",v={15:"element not selectable",11:"element not visible"};v[31]=Ka;v[30]=Ka;v[24]="invalid cookie domain";v[29]="invalid element coordinates";v[12]="invalid element state";
v[32]="invalid selector";v[51]="invalid selector";v[52]="invalid selector";v[17]="javascript error";v[405]="unsupported operation";v[34]="move target out of bounds";v[27]="no such alert";v[7]="no such element";v[8]="no such frame";v[23]="no such window";v[28]="script timeout";v[33]="session not created";v[10]="stale element reference";v[21]="timeout";v[25]="unable to set cookie";v[26]="unexpected alert open";v[13]=Ka;v[9]="unknown command";u.prototype.toString=function(){return this.name+": "+this.message};var La;a:{var Ma=p.navigator;if(Ma){var Oa=Ma.userAgent;if(Oa){La=Oa;break a}}La=""}function w(a){return-1!=La.indexOf(a)};function Pa(){return w("Opera")||w("OPR")}function Qa(){return(w("Chrome")||w("CriOS"))&&!Pa()&&!w("Edge")};function Ra(){return w("iPhone")&&!w("iPod")&&!w("iPad")};var Sa=Pa(),x=w("Trident")||w("MSIE"),Ta=w("Edge"),y=w("Gecko")&&!(-1!=La.toLowerCase().indexOf("webkit")&&!w("Edge"))&&!(w("Trident")||w("MSIE"))&&!w("Edge"),Ua=-1!=La.toLowerCase().indexOf("webkit")&&!w("Edge");function Va(){var a=La;if(y)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Ta)return/Edge\/([\d\.]+)/.exec(a);if(x)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ua)return/WebKit\/(\S+)/.exec(a)}function Wa(){var a=p.document;return a?a.documentMode:void 0}
var Xa=function(){if(Sa&&p.opera){var a;var b=p.opera.version;try{a=b()}catch(c){a=b}return a}a="";(b=Va())&&(a=b?b[1]:"");return x&&(b=Wa(),null!=b&&b>parseFloat(a))?String(b):a}(),Ya={};function Za(a){return Ya[a]||(Ya[a]=0<=sa(Xa,a))}var $a=p.document,ab=$a&&x?Wa()||("CSS1Compat"==$a.compatMode?parseInt(Xa,10):5):void 0;!y&&!x||x&&9<=Number(ab)||y&&Za("1.9.1");x&&Za("9");function bb(a,b){this.x=aa(a)?a:0;this.y=aa(b)?b:0}n=bb.prototype;n.clone=function(){return new bb(this.x,this.y)};n.toString=function(){return"("+this.x+", "+this.y+")"};n.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};n.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};n.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};n.scale=function(a,b){var c=da(b)?b:a;this.x*=a;this.y*=c;return this};function cb(a,b){this.width=a;this.height=b}n=cb.prototype;n.clone=function(){return new cb(this.width,this.height)};n.toString=function(){return"("+this.width+" x "+this.height+")"};n.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};n.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};n.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
n.scale=function(a,b){var c=da(b)?b:a;this.width*=a;this.height*=c;return this};function z(a){return a?new db(A(a)):oa||(oa=new db)}
function eb(a,b,c,d){a=d||a;var e=b&&"*"!=b?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(e||c))return a.querySelectorAll(e+(c?"."+c:""));if(c&&a.getElementsByClassName){b=a.getElementsByClassName(c);if(e){a={};for(var f=d=0,g;g=b[f];f++)e==g.nodeName&&(a[d++]=g);a.length=d;return a}return b}b=a.getElementsByTagName(e||"*");if(c){a={};for(f=d=0;g=b[f];f++){var e=g.className,h;if(h="function"==typeof e.split)h=0<=va(e.split(/\s+/),c);h&&(a[d++]=g)}a.length=d;return a}return b}
function fb(a){var b=gb(a);a=a.parentWindow||a.defaultView;return x&&Za("10")&&a.pageYOffset!=b.scrollTop?new bb(b.scrollLeft,b.scrollTop):new bb(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function gb(a){return a.scrollingElement?a.scrollingElement:Ua||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function hb(a){return a?a.parentWindow||a.defaultView:window}function ib(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}
function jb(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function kb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(x&&!(9<=Number(ab))){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?lb(a,b):!c&&jb(e,b)?-1*mb(a,b):!d&&jb(f,a)?mb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=A(a);c=d.createRange();
c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);d.collapse(!0);return c.compareBoundaryPoints(p.Range.START_TO_END,d)}function mb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return lb(d,a)}function lb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function A(a){return 9==a.nodeType?a:a.ownerDocument||a.document}var nb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ob={IMG:" ",BR:"\n"};
function pb(a,b,c){if(!(a.nodeName in nb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ob)b.push(ob[a.nodeName]);else for(a=a.firstChild;a;)pb(a,b,c),a=a.nextSibling}function qb(a,b){a=a.parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function db(a){this.a=a||p.document||document}function rb(a,b,c,d){return eb(a.a,b,c,d)}function sb(a){return gb(a.a)};var tb=w("Firefox"),ub=Ra()||w("iPod"),vb=w("iPad"),wb=w("Android")&&!(Qa()||w("Firefox")||Pa()||w("Silk")),xb=Qa(),yb=w("Safari")&&!(Qa()||w("Coast")||Pa()||w("Edge")||w("Silk")||w("Android"))&&!(Ra()||w("iPad")||w("iPod"));/*

 The MIT License

 Copyright (c) 2007 Cybozu Labs, Inc.
 Copyright (c) 2012 Google Inc.

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to
 deal in the Software without restriction, including without limitation the
 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 sell copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 IN THE SOFTWARE.
*/
function zb(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var Ab=x&&!(9<=Number(ab)),Bb=x&&!(8<=Number(ab));function Cb(a,b,c,d){this.a=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.parentNode=this.ownerElement=b}function Db(a,b){var c=Bb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Cb(b,a,b.nodeName,c)};function Eb(a){this.b=a;this.a=0}function Fb(a){a=a.match(Gb);for(var b=0;b<a.length;b++)Hb.test(a[b])&&a.splice(b,1);return new Eb(a)}var Gb=RegExp("\\$?(?:(?![0-9-\\.])(?:\\*|[\\w-\\.]+):)?(?![0-9-\\.])(?:\\*|[\\w-\\.]+)|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),Hb=/^\s/;function C(a,b){return a.b[a.a+(b||0)]}function D(a){return a.b[a.a++]}function Ib(a){return a.b.length<=a.a};function E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(Ab&&"title"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),Ab&&"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 Jb(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Bb&&"class"==b&&(b="className");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Kb(a,b,c,d,e){return(Ab?Lb:Mb).call(null,a,b,q(c)?c:null,q(d)?d:null,e||new F)}
function Lb(a,b,c,d,e){if(a instanceof Nb||8==a.a||c&&null===a.a){var f=b.all;if(!f)return e;a=Ob(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],h=0;b=f[h++];)Jb(b,c,d)&&g.push(b);f=g}for(h=0;b=f[h++];)"*"==a&&"!"==b.tagName||G(e,b);return e}Pb(a,b,c,d,e);return e}
function Mb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!x?(b=b.getElementsByName(d),t(b,function(b){a.b(b)&&G(e,b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),t(b,function(b){b.className==d&&a.b(b)&&G(e,b)})):a instanceof H?Pb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),t(b,function(a){Jb(a,c,d)&&G(e,a)}));return e}
function Qb(a,b,c,d,e){var f;if((a instanceof Nb||8==a.a||c&&null===a.a)&&(f=b.childNodes)){var g=Ob(a);if("*"!=g&&(f=wa(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=wa(f,function(a){return Jb(a,c,d)}));t(f,function(a){"*"==g&&("!"==a.tagName||"*"==g&&1!=a.nodeType)||G(e,a)});return e}return Rb(a,b,c,d,e)}function Rb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Jb(b,c,d)&&a.b(b)&&G(e,b);return e}
function Pb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Jb(b,c,d)&&a.b(b)&&G(e,b),Pb(a,b,c,d,e)}function Ob(a){if(a instanceof H){if(8==a.a)return"!";if(null===a.a)return"*"}return a.f()};function F(){this.b=this.a=null;this.l=0}function Sb(a){this.node=a;this.a=this.b=null}function Tb(a,b){if(!a.a)return b;if(!b.a)return a;for(var c=a.a,d=b.a,e=null,f=null,g=0;c&&d;){var f=c.node,h=d.node;f==h||f instanceof Cb&&h instanceof Cb&&f.a==h.a?(f=c,c=c.a,d=d.a):0<kb(c.node,d.node)?(f=d,d=d.a):(f=c,c=c.a);(f.b=e)?e.a=f:a.a=f;e=f;g++}for(f=c||d;f;)f.b=e,e=e.a=f,g++,f=f.a;a.b=e;a.l=g;return a}
F.prototype.unshift=function(a){a=new Sb(a);a.a=this.a;this.b?this.a.b=a:this.a=this.b=a;this.a=a;this.l++};function G(a,b){var c=new Sb(b);c.b=a.b;a.a?a.b.a=c:a.a=a.b=c;a.b=c;a.l++}function Ub(a){return(a=a.a)?a.node:null}F.prototype.f=function(){var a=Ub(this);return a?E(a):""};function Vb(a,b){return new Wb(a,!!b)}function Wb(a,b){this.f=a;this.b=(this.c=b)?a.b:a.a;this.a=null}function I(a){var b=a.b;if(null==b)return null;var c=a.a=b;a.b=a.c?b.b:b.a;return c.node};function J(a){this.j=a;this.b=this.h=!1;this.f=null}function L(a){return"\n  "+a.toString().split("\n").join("\n  ")}function Xb(a,b){a.h=b}function Yb(a,b){a.b=b}function M(a,b){var c=a.a(b);return c instanceof F?+c.f():+c}function N(a,b){var c=a.a(b);return c instanceof F?c.f():""+c}function Zb(a,b){var c=a.a(b);return c instanceof F?!!c.l:!!c};function $b(a,b,c){J.call(this,a.j);this.c=a;this.g=b;this.u=c;this.h=b.h||c.h;this.b=b.b||c.b;this.c==ac&&(c.b||c.h||4==c.j||0==c.j||!b.f?b.b||b.h||4==b.j||0==b.j||!c.f||(this.f={name:c.f.name,v:b}):this.f={name:b.f.name,v:c})}r($b,J);
function bc(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof F&&c instanceof F){b=Vb(b);for(d=I(b);d;d=I(b))for(e=Vb(c),f=I(e);f;f=I(e))if(a(E(d),E(f)))return!0;return!1}if(b instanceof F||c instanceof F){b instanceof F?(e=b,d=c):(e=c,d=b);f=Vb(e);for(var g=typeof d,h=I(f);h;h=I(f)){switch(g){case "number":h=+E(h);break;case "boolean":h=!!E(h);break;case "string":h=E(h);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(h,d)||e==c&&a(d,h))return!0}return!1}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)}$b.prototype.a=function(a){return this.c.m(this.g,this.u,a)};$b.prototype.toString=function(){var a="Binary Expression: "+this.c,a=a+L(this.g);return a+=L(this.u)};function cc(a,b,c,d){this.a=a;this.L=b;this.j=c;this.m=d}cc.prototype.toString=function(){return this.a};var dc={};
function O(a,b,c,d){if(dc.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new cc(a,b,c,d);return dc[a.toString()]=a}O("div",6,1,function(a,b,c){return M(a,c)/M(b,c)});O("mod",6,1,function(a,b,c){return M(a,c)%M(b,c)});O("*",6,1,function(a,b,c){return M(a,c)*M(b,c)});O("+",5,1,function(a,b,c){return M(a,c)+M(b,c)});O("-",5,1,function(a,b,c){return M(a,c)-M(b,c)});O("<",4,2,function(a,b,c){return bc(function(a,b){return a<b},a,b,c)});
O(">",4,2,function(a,b,c){return bc(function(a,b){return a>b},a,b,c)});O("<=",4,2,function(a,b,c){return bc(function(a,b){return a<=b},a,b,c)});O(">=",4,2,function(a,b,c){return bc(function(a,b){return a>=b},a,b,c)});var ac=O("=",3,2,function(a,b,c){return bc(function(a,b){return a==b},a,b,c,!0)});O("!=",3,2,function(a,b,c){return bc(function(a,b){return a!=b},a,b,c,!0)});O("and",2,2,function(a,b,c){return Zb(a,c)&&Zb(b,c)});O("or",1,2,function(a,b,c){return Zb(a,c)||Zb(b,c)});function ec(a,b){if(b.a.length&&4!=a.j)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");J.call(this,a.j);this.c=a;this.g=b;this.h=a.h;this.b=a.b}r(ec,J);ec.prototype.a=function(a){a=this.c.a(a);return fc(this.g,a)};ec.prototype.toString=function(){var a;a="Filter:"+L(this.c);return a+=L(this.g)};function gc(a,b){if(b.length<a.K)throw Error("Function "+a.i+" expects at least"+a.K+" arguments, "+b.length+" given");if(null!==a.B&&b.length>a.B)throw Error("Function "+a.i+" expects at most "+a.B+" arguments, "+b.length+" given");a.X&&t(b,function(b,d){if(4!=b.j)throw Error("Argument "+d+" to function "+a.i+" is not of type Nodeset: "+b);});J.call(this,a.j);this.g=a;this.c=b;Xb(this,a.h||za(b,function(a){return a.h}));Yb(this,a.W&&!b.length||a.U&&!!b.length||za(b,function(a){return a.b}))}
r(gc,J);gc.prototype.a=function(a){return this.g.m.apply(null,Ca(a,this.c))};gc.prototype.toString=function(){var a="Function: "+this.g;if(this.c.length)var b=ya(this.c,function(a,b){return a+L(b)},"Arguments:"),a=a+L(b);return a};function hc(a,b,c,d,e,f,g,h,k){this.i=a;this.j=b;this.h=c;this.W=d;this.U=e;this.m=f;this.K=g;this.B=aa(h)?h:g;this.X=!!k}hc.prototype.toString=function(){return this.i};var ic={};
function P(a,b,c,d,e,f,g,h){if(ic.hasOwnProperty(a))throw Error("Function already created: "+a+".");ic[a]=new hc(a,b,c,d,!1,e,f,g,h)}P("boolean",2,!1,!1,function(a,b){return Zb(b,a)},1);P("ceiling",1,!1,!1,function(a,b){return Math.ceil(M(b,a))},1);P("concat",3,!1,!1,function(a,b){return ya(Da(arguments,1),function(b,d){return b+N(d,a)},"")},2,null);P("contains",2,!1,!1,function(a,b,c){b=N(b,a);a=N(c,a);return-1!=b.indexOf(a)},2);P("count",1,!1,!1,function(a,b){return b.a(a).l},1,1,!0);
P("false",2,!1,!1,function(){return!1},0);P("floor",1,!1,!1,function(a,b){return Math.floor(M(b,a))},1);P("id",4,!1,!1,function(a,b){function c(a){if(Ab){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return Ba(b,function(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.a,e=9==d.nodeType?d:d.ownerDocument,d=N(b,a).split(/\s+/),f=[];t(d,function(a){a=c(a);!a||0<=va(f,a)||f.push(a)});f.sort(kb);var g=new F;t(f,function(a){G(g,a)});return g},1);
P("lang",2,!1,!1,function(){return!1},1);P("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);P("local-name",3,!1,!0,function(a,b){var c=b?Ub(b.a(a)):a.a;return c?c.localName||c.nodeName.toLowerCase():""},0,1,!0);P("name",3,!1,!0,function(a,b){var c=b?Ub(b.a(a)):a.a;return c?c.nodeName.toLowerCase():""},0,1,!0);P("namespace-uri",3,!0,!1,function(){return""},0,1,!0);
P("normalize-space",3,!1,!0,function(a,b){return(b?N(b,a):E(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);P("not",2,!1,!1,function(a,b){return!Zb(b,a)},1);P("number",1,!1,!0,function(a,b){return b?M(b,a):+E(a.a)},0,1);P("position",1,!0,!1,function(a){return a.b},0);P("round",1,!1,!1,function(a,b){return Math.round(M(b,a))},1);P("starts-with",2,!1,!1,function(a,b,c){return pa(N(b,a),N(c,a))},2);P("string",3,!1,!0,function(a,b){return b?N(b,a):E(a.a)},0,1);
P("string-length",1,!1,!0,function(a,b){return(b?N(b,a):E(a.a)).length},0,1);P("substring",3,!1,!1,function(a,b,c,d){c=M(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?M(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=N(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);P("substring-after",3,!1,!1,function(a,b,c){b=N(b,a);a=N(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
P("substring-before",3,!1,!1,function(a,b,c){b=N(b,a);a=N(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);P("sum",1,!1,!1,function(a,b){for(var c=Vb(b.a(a)),d=0,e=I(c);e;e=I(c))d+=+E(e);return d},1,1,!0);P("translate",3,!1,!1,function(a,b,c,d){b=N(b,a);c=N(c,a);var e=N(d,a);a={};for(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,!1,!1,function(){return!0},0);function H(a,b){this.g=a;this.c=aa(b)?b:null;this.a=null;switch(a){case "comment":this.a=8;break;case "text":this.a=3;break;case "processing-instruction":this.a=7;break;case "node":break;default:throw Error("Unexpected argument");}}function jc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}H.prototype.b=function(a){return null===this.a||this.a==a.nodeType};H.prototype.f=function(){return this.g};
H.prototype.toString=function(){var a="Kind Test: "+this.g;null===this.c||(a+=L(this.c));return a};function kc(a){J.call(this,3);this.c=a.substring(1,a.length-1)}r(kc,J);kc.prototype.a=function(){return this.c};kc.prototype.toString=function(){return"Literal: "+this.c};function Nb(a,b){this.i=a.toLowerCase();var c;c="*"==this.i?"*":"http://www.w3.org/1999/xhtml";this.c=b?b.toLowerCase():c}Nb.prototype.b=function(a){var b=a.nodeType;return 1!=b&&2!=b?!1:"*"!=this.i&&this.i!=a.localName.toLowerCase()?!1:"*"==this.c?!0:this.c==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};Nb.prototype.f=function(){return this.i};Nb.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.c?"":this.c+":")+this.i};function lc(a){J.call(this,1);this.c=a}r(lc,J);lc.prototype.a=function(){return this.c};lc.prototype.toString=function(){return"Number: "+this.c};function mc(a,b){J.call(this,a.j);this.g=a;this.c=b;this.h=a.h;this.b=a.b;if(1==this.c.length){var c=this.c[0];c.A||c.c!=nc||(c=c.u,"*"!=c.f()&&(this.f={name:c.f(),v:null}))}}r(mc,J);function oc(){J.call(this,4)}r(oc,J);oc.prototype.a=function(a){var b=new F;a=a.a;9==a.nodeType?G(b,a):G(b,a.ownerDocument);return b};oc.prototype.toString=function(){return"Root Helper Expression"};function pc(){J.call(this,4)}r(pc,J);pc.prototype.a=function(a){var b=new F;G(b,a.a);return b};pc.prototype.toString=function(){return"Context Helper Expression"};
function qc(a){return"/"==a||"//"==a}mc.prototype.a=function(a){var b=this.g.a(a);if(!(b instanceof F))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.l;c++){var e=a[c],f=Vb(b,e.c.a),g;if(e.h||e.c!=rc)if(e.h||e.c!=sc)for(g=I(f),b=e.a(new zb(g));null!=(g=I(f));)g=e.a(new zb(g)),b=Tb(b,g);else g=I(f),b=e.a(new zb(g));else{for(g=I(f);(b=I(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new zb(g))}}return b};
mc.prototype.toString=function(){var a;a="Path Expression:"+L(this.g);if(this.c.length){var b=ya(this.c,function(a,b){return a+L(b)},"Steps:");a+=L(b)}return a};function tc(a,b){this.a=a;this.b=!!b}
function fc(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=Vb(b),f=b.l,g,h=0;g=I(e);h++){var k=a.b?f-h:h+1;g=d.a(new zb(g,k,f));if("number"==typeof g)k=k==g;else if("string"==typeof g||"boolean"==typeof g)k=!!g;else if(g instanceof F)k=0<g.l;else throw Error("Predicate.evaluate returned an unexpected type.");if(!k){k=e;g=k.f;var m=k.a;if(!m)throw Error("Next must be called at least once before remove.");var l=m.b,m=m.a;l?l.a=m:g.a=m;m?m.b=l:g.b=l;g.l--;k.a=null}}return b}
tc.prototype.toString=function(){return ya(this.a,function(a,b){return a+L(b)},"Predicates:")};function uc(a,b,c,d){J.call(this,4);this.c=a;this.u=b;this.g=c||new tc([]);this.A=!!d;b=this.g;b=0<b.a.length?b.a[0].f:null;a.b&&b&&(a=b.name,a=Ab?a.toLowerCase():a,this.f={name:a,v:b.v});a:{a=this.g;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.h||1==c.j||0==c.j){a=!0;break a}a=!1}this.h=a}r(uc,J);
uc.prototype.a=function(a){var b=a.a,c=null,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.v?N(c.v,a):null,f=1);if(this.A)if(this.h||this.c!=vc)if(a=Vb((new uc(wc,new H("node"))).a(a)),b=I(a))for(c=this.m(b,d,e,f);null!=(b=I(a));)c=Tb(c,this.m(b,d,e,f));else c=new F;else c=Kb(this.u,b,d,e),c=fc(this.g,c,f);else c=this.m(a.a,d,e,f);return c};uc.prototype.m=function(a,b,c,d){a=this.c.f(this.u,a,b,c);return a=fc(this.g,a,d)};
uc.prototype.toString=function(){var a;a="Step:"+L("Operator: "+(this.A?"//":"/"));this.c.i&&(a+=L("Axis: "+this.c));a+=L(this.u);if(this.g.a.length){var b=ya(this.g.a,function(a,b){return a+L(b)},"Predicates:");a+=L(b)}return a};function xc(a,b,c,d){this.i=a;this.f=b;this.a=c;this.b=d}xc.prototype.toString=function(){return this.i};var yc={};function Q(a,b,c,d){if(yc.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new xc(a,b,c,!!d);return yc[a]=b}
Q("ancestor",function(a,b){for(var c=new F,d=b;d=d.parentNode;)a.b(d)&&c.unshift(d);return c},!0);Q("ancestor-or-self",function(a,b){var c=new F,d=b;do a.b(d)&&c.unshift(d);while(d=d.parentNode);return c},!0);
var nc=Q("attribute",function(a,b){var c=new F,d=a.f();if("style"==d&&b.style&&Ab)return G(c,new Cb(b.style,b,"style",b.style.cssText)),c;var e=b.attributes;if(e)if(a instanceof H&&null===a.a||"*"==d)for(var d=0,f;f=e[d];d++)Ab?f.nodeValue&&G(c,Db(b,f)):G(c,f);else(f=e.getNamedItem(d))&&(Ab?f.nodeValue&&G(c,Db(b,f)):G(c,f));return c},!1),vc=Q("child",function(a,b,c,d,e){return(Ab?Qb:Rb).call(null,a,b,q(c)?c:null,q(d)?d:null,e||new F)},!1,!0);Q("descendant",Kb,!1,!0);
var wc=Q("descendant-or-self",function(a,b,c,d){var e=new F;Jb(b,c,d)&&a.b(b)&&G(e,b);return Kb(a,b,c,d,e)},!1,!0),rc=Q("following",function(a,b,c,d){var e=new F;do for(var f=b;f=f.nextSibling;)Jb(f,c,d)&&a.b(f)&&G(e,f),e=Kb(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);Q("following-sibling",function(a,b){for(var c=new F,d=b;d=d.nextSibling;)a.b(d)&&G(c,d);return c},!1);Q("namespace",function(){return new F},!1);
var zc=Q("parent",function(a,b){var c=new F;if(9==b.nodeType)return c;if(2==b.nodeType)return G(c,b.ownerElement),c;var d=b.parentNode;a.b(d)&&G(c,d);return c},!1),sc=Q("preceding",function(a,b,c,d){var e=new F,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,h=f.length;g<h;g++){var k=[];for(b=f[g];b=b.previousSibling;)k.unshift(b);for(var m=0,l=k.length;m<l;m++)b=k[m],Jb(b,c,d)&&a.b(b)&&G(e,b),e=Kb(a,b,c,d,e)}return e},!0,!0);
Q("preceding-sibling",function(a,b){for(var c=new F,d=b;d=d.previousSibling;)a.b(d)&&c.unshift(d);return c},!0);var Ac=Q("self",function(a,b){var c=new F;a.b(b)&&G(c,b);return c},!1);function Bc(a){J.call(this,1);this.c=a;this.h=a.h;this.b=a.b}r(Bc,J);Bc.prototype.a=function(a){return-M(this.c,a)};Bc.prototype.toString=function(){return"Unary Expression: -"+L(this.c)};function Cc(a){J.call(this,4);this.c=a;Xb(this,za(this.c,function(a){return a.h}));Yb(this,za(this.c,function(a){return a.b}))}r(Cc,J);Cc.prototype.a=function(a){var b=new F;t(this.c,function(c){c=c.a(a);if(!(c instanceof F))throw Error("Path expression must evaluate to NodeSet.");b=Tb(b,c)});return b};Cc.prototype.toString=function(){return ya(this.c,function(a,b){return a+L(b)},"Union Expression:")};function Dc(a,b){this.a=a;this.b=b}function Ec(a){for(var b,c=[];;){R(a,"Missing right hand side of binary expression.");b=Fc(a);var d=D(a.a);if(!d)break;var e=(d=dc[d]||null)&&d.L;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].L;)b=new $b(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new $b(c.pop(),c.pop(),b);return b}function R(a,b){if(Ib(a.a))throw Error(b);}function Gc(a,b){var c=D(a.a);if(c!=b)throw Error("Bad token, expected: "+b+" got: "+c);}
function Hc(a){a=D(a.a);if(")"!=a)throw Error("Bad token: "+a);}function Ic(a){a=D(a.a);if(2>a.length)throw Error("Unclosed literal string");return new kc(a)}
function Jc(a){var b,c=[],d;if(qc(C(a.a))){b=D(a.a);d=C(a.a);if("/"==b&&(Ib(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new oc;d=new oc;R(a,"Missing next location step.");b=Kc(a,b);c.push(b)}else{a:{b=C(a.a);d=b.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":D(a.a);b=Ec(a);R(a,'unclosed "("');Gc(a,")");break;case '"':case "'":b=Ic(a);break;default:if(isNaN(+b))if(!jc(b)&&/(?![0-9])[\w]/.test(d)&&"("==C(a.a,1)){b=D(a.a);
b=ic[b]||null;D(a.a);for(d=[];")"!=C(a.a);){R(a,"Missing function argument list.");d.push(Ec(a));if(","!=C(a.a))break;D(a.a)}R(a,"Unclosed function argument list.");Hc(a);b=new gc(b,d)}else{b=null;break a}else b=new lc(+D(a.a))}"["==C(a.a)&&(d=new tc(Lc(a)),b=new ec(b,d))}if(b)if(qc(C(a.a)))d=b;else return b;else b=Kc(a,"/"),d=new pc,c.push(b)}for(;qc(C(a.a));)b=D(a.a),R(a,"Missing next location step."),b=Kc(a,b),c.push(b);return new mc(d,c)}
function Kc(a,b){var c,d,e;if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==C(a.a))return d=new uc(Ac,new H("node")),D(a.a),d;if(".."==C(a.a))return d=new uc(zc,new H("node")),D(a.a),d;var f;if("@"==C(a.a))f=nc,D(a.a),R(a,"Missing attribute name");else if("::"==C(a.a,1)){if(!/(?![0-9])[\w]/.test(C(a.a).charAt(0)))throw Error("Bad token: "+D(a.a));c=D(a.a);f=yc[c]||null;if(!f)throw Error("No axis with name: "+c);D(a.a);R(a,"Missing node name")}else f=vc;c=C(a.a);if(/(?![0-9])[\w\*]/.test(c.charAt(0)))if("("==
C(a.a,1)){if(!jc(c))throw Error("Invalid node type: "+c);c=D(a.a);if(!jc(c))throw Error("Invalid type name: "+c);Gc(a,"(");R(a,"Bad nodetype");e=C(a.a).charAt(0);var g=null;if('"'==e||"'"==e)g=Ic(a);R(a,"Bad nodetype");Hc(a);c=new H(c,g)}else if(c=D(a.a),e=c.indexOf(":"),-1==e)c=new Nb(c);else{var g=c.substring(0,e),h;if("*"==g)h="*";else if(h=a.b(g),!h)throw Error("Namespace prefix not declared: "+g);c=c.substr(e+1);c=new Nb(c,h)}else throw Error("Bad token: "+D(a.a));e=new tc(Lc(a),f.a);return d||
new uc(f,c,e,"//"==b)}function Lc(a){for(var b=[];"["==C(a.a);){D(a.a);R(a,"Missing predicate expression.");var c=Ec(a);b.push(c);R(a,"Unclosed predicate expression.");Gc(a,"]")}return b}function Fc(a){if("-"==C(a.a))return D(a.a),new Bc(Fc(a));var b=Jc(a);if("|"!=C(a.a))a=b;else{for(b=[b];"|"==D(a.a);)R(a,"Missing next union location path."),b.push(Jc(a));a.a.a--;a=new Cc(b)}return a};function Mc(a){switch(a.nodeType){case 1:return ja(Nc,a);case 9:return Mc(a.documentElement);case 11:case 10:case 6:case 12:return Oc;default:return a.parentNode?Mc(a.parentNode):Oc}}function Oc(){return null}function Nc(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?Nc(a.parentNode,b):null};function Pc(a,b){if(!a.length)throw Error("Empty XPath expression.");var c=Fb(a);if(Ib(c))throw Error("Invalid XPath expression.");b?ea(b)||(b=ia(b.lookupNamespaceURI,b)):b=function(){return null};var d=Ec(new Dc(c,b));if(!Ib(c))throw Error("Bad token: "+D(c));this.evaluate=function(a,b){var c=d.a(new zb(a));return new S(c,b)}}
function S(a,b){if(0==b)if(a instanceof F)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof F))throw Error("value could not be converted to the specified type");this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof F?a.f():""+a;break;case 1:this.numberValue=a instanceof F?+a.f():+a;break;case 3:this.booleanValue=a instanceof F?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var d=
Vb(a);c=[];for(var e=I(d);e;e=I(d))c.push(e instanceof Cb?e.a:e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:d=Ub(a);this.singleNodeValue=d instanceof Cb?d.a:d;break;default:throw Error("Unknown XPathResult type.");}var f=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return f>=c.length?null:c[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return a>=c.length||
0>a?null: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;function Qc(a){this.lookupNamespaceURI=Mc(a)}
function Rc(a,b){var c=a||p,d=c.document;if(!d.evaluate||b)c.XPathResult=S,d.evaluate=function(a,b,c,d){return(new Pc(a,c)).evaluate(b,d)},d.createExpression=function(a,b){return new Pc(a,b)},d.createNSResolver=function(a){return new Qc(a)}}ba("wgxpath.install",Rc);var T={};T.C=function(){var a={La:"http://www.w3.org/2000/svg"};return function(b){return a[b]||null}}();
T.m=function(a,b,c){var d=A(a);if(!d.documentElement)return null;(x||wb)&&Rc(hb(d));try{var e=d.createNSResolver?d.createNSResolver(d.documentElement):T.C;if(x&&!Za(7))return d.evaluate.call(d,b,a,e,c,null);if(!x||9<=Number(ab)){for(var f={},g=d.getElementsByTagName("*"),h=0;h<g.length;++h){var k=g[h],m=k.namespaceURI;if(m&&!f[m]){var l=k.lookupPrefix(m);if(!l)var B=m.match(".*/(\\w+)/?$"),l=B?B[1]:"xhtml";f[m]=l}}var K={},ma;for(ma in f)K[f[ma]]=ma;e=function(a){return K[a]||null}}try{return d.evaluate(b,
a,e,c,null)}catch(Na){if("TypeError"===Na.name)return e=d.createNSResolver?d.createNSResolver(d.documentElement):T.C,d.evaluate(b,a,e,c,null);throw Na;}}catch(Na){if(!y||"NS_ERROR_ILLEGAL_VALUE"!=Na.name)throw new u(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+Na);}};T.D=function(a,b){if(!a||1!=a.nodeType)throw new u(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");};
T.o=function(a,b){var c=function(){var c=T.m(b,a,9);return c?c.singleNodeValue||null:b.selectSingleNode?(c=A(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();null===c||T.D(c,a);return c};
T.s=function(a,b){var c=function(){var c=T.m(b,a,7);if(c){for(var e=c.snapshotLength,f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=A(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();t(c,function(b){T.D(b,a)});return c};function Sc(a){return(a=a.exec(La))?a[1]:""}var Tc=function(){if(tb)return Sc(/Firefox\/([0-9.]+)/);if(x||Ta||Sa)return Xa;if(xb)return Sc(/Chrome\/([0-9.]+)/);if(yb&&!(Ra()||w("iPad")||w("iPod")))return Sc(/Version\/([0-9.]+)/);if(ub||vb){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(La))return a[1]+"."+a[2]}else if(wb)return(a=Sc(/Android\s+([0-9.]+)/))?a:Sc(/Version\/([0-9.]+)/);return""}();var Uc={},Vc,Wc;function Xc(a){return Yc?Vc(a):x?0<=sa(ab,a):Za(a)}function Zc(a){return Yc?Wc(a):wb?0<=sa($c,a):0<=sa(Tc,a)}
var Yc=function(){if(!y)return!1;var a=p.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(f){return!1}var b=a.classes,a=a.interfaces,c=b["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),b=b["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),d=b.platformVersion,e=b.version;Vc=function(a){return 0<=c.compare(d,""+a)};Wc=function(a){return 0<=c.compare(e,""+a)};return!0}(),ad=vb||ub,bd;
if(wb){var cd=/Android\s+([0-9\.]+)/.exec(La);bd=cd?cd[1]:"0"}else bd="0";var $c=bd,dd=x&&!(8<=Number(ab)),ed=x&&!(9<=Number(ab));wb&&Zc(2.3);wb&&Zc(4);yb&&Zc(6);function fd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}n=fd.prototype;n.clone=function(){return new fd(this.top,this.right,this.bottom,this.left)};n.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};n.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
n.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};n.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};n.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function U(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}n=U.prototype;n.clone=function(){return new U(this.left,this.top,this.width,this.height)};n.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};n.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
n.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};n.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};n.scale=function(a,b){var c=da(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function gd(a,b){var c=A(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function hd(a){a=a?A(a):document;var b;(b=!x||9<=Number(ab))||(b="CSS1Compat"==z(a).a.compatMode);return b?a.documentElement:a.body}
function id(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}x&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}function jd(a){var b=a.offsetWidth,c=a.offsetHeight,d=Ua&&!b&&!c;return aa(b)&&!d||!a.getBoundingClientRect?new cb(b,c):(a=id(a),new cb(a.right-a.left,a.bottom-a.top))};function V(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function kd(a,b){var c;if(c=dd&&"value"==b&&V(a,"OPTION"))c=null===ld(a,"value");c?(c=[],pb(a,c,!1),c=c.join("")):c=a[b];return c}var md=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function nd(a){var b=[];t(a.split(md),function(a){var d=a.indexOf(":");0<d&&(a=[a.slice(0,d),a.slice(d+1)],2==a.length&&b.push(a[0].toLowerCase(),":",a[1],";"))});b=b.join("");return b=";"==b.charAt(b.length-1)?b:b+";"}function ld(a,b){b=b.toLowerCase();if("style"==b)return nd(a.style.cssText);if(dd&&"value"==b&&V(a,"INPUT"))return a.value;if(ed&&!0===a[b])return String(a.getAttribute(b));var c=a.getAttributeNode(b);return c&&c.specified?c.value:null}
function od(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return V(a)?a:null}
function W(a,b){var c=ua(b);if("float"==c||"cssFloat"==c||"styleFloat"==c)c=ed?"styleFloat":"cssFloat";var d=gd(a,c)||pd(a,c);if(null===d)d=null;else if(0<=va(Fa,c)){b:{var e=d.match(Ia);if(e){var c=Number(e[1]),f=Number(e[2]),g=Number(e[3]),e=Number(e[4]);if(0<=c&&255>=c&&0<=f&&255>=f&&0<=g&&255>=g&&0<=e&&1>=e){c=[c,f,g,e];break b}}c=null}if(!c)b:{if(g=d.match(Ja))if(c=Number(g[1]),f=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=f&&255>=f&&0<=g&&255>=g){c=[c,f,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();
f=Ea[c.toLowerCase()];if(!f&&(f="#"==c.charAt(0)?c:"#"+c,4==f.length&&(f=f.replace(Ga,"#$1$1$2$2$3$3")),!Ha.test(f))){c=null;break b}c=[parseInt(f.substr(1,2),16),parseInt(f.substr(3,2),16),parseInt(f.substr(5,2),16),1]}d=c?"rgba("+c.join(", ")+")":d}return d}function pd(a,b){var c=a.currentStyle||a.style,d=c[b];!aa(d)&&ea(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?aa(d)?d:null:(c=od(a))?pd(c,b):null}
function qd(a,b,c){function d(a){var b=rd(a);return 0<b.height&&0<b.width?!0:V(a,"PATH")&&(0<b.height||0<b.width)?(a=W(a,"stroke-width"),!!a&&0<parseInt(a,10)):"hidden"!=W(a,"overflow")&&za(a.childNodes,function(a){return 3==a.nodeType||V(a)&&d(a)})}function e(a){return sd(a)==td&&Aa(a.childNodes,function(a){return!V(a)||e(a)||!d(a)})}if(!V(a))throw Error("Argument to isShown must be of type Element");if(V(a,"BODY"))return!0;if(V(a,"OPTION")||V(a,"OPTGROUP"))return a=qb(a,function(a){return V(a,"SELECT")}),
!!a&&qd(a,!0,c);var f=ud(a);if(f)return!!f.H&&0<f.rect.width&&0<f.rect.height&&qd(f.H,b,c);if(V(a,"INPUT")&&"hidden"==a.type.toLowerCase()||V(a,"NOSCRIPT"))return!1;f=W(a,"visibility");return"collapse"!=f&&"hidden"!=f&&c(a)&&(b||0!=vd(a))&&d(a)?!e(a):!1}function wd(a){function b(a){if("none"==W(a,"display"))return!1;a=od(a);return!a||b(a)}return qd(a,!1,b)}var td="hidden";
function sd(a){function b(a){function b(a){if(a==g)return!0;var d=W(a,"display");return pa(d,"inline")||"absolute"==c&&"static"==W(a,"position")?!1:!0}var c=W(a,"position");if("fixed"==c)return m=!0,a==g?null:g;for(a=od(a);a&&!b(a);)a=od(a);return a}function c(a){var b=a;if("visible"==k)if(a==g&&h)b=h;else if(a==h)return{x:"visible",y:"visible"};b={x:W(b,"overflow-x"),y:W(b,"overflow-y")};a==g&&(b.x="visible"==b.x?"auto":b.x,b.y="visible"==b.y?"auto":b.y);return b}function d(a){return a==g?fb((new db(f)).a):
new bb(a.scrollLeft,a.scrollTop)}var e=xd(a),f=A(a),g=f.documentElement,h=f.body,k=W(g,"overflow"),m;for(a=b(a);a;a=b(a)){var l=c(a);if("visible"!=l.x||"visible"!=l.y){var B=rd(a);if(0==B.width||0==B.height)return td;var K=e.right<B.left,ma=e.bottom<B.top;if(K&&"hidden"==l.x||ma&&"hidden"==l.y)return td;if(K&&"visible"!=l.x||ma&&"visible"!=l.y){K=d(a);ma=e.bottom<B.top-K.y;if(e.right<B.left-K.x&&"visible"!=l.x||ma&&"visible"!=l.x)return td;e=sd(a);return e==td?td:"scroll"}K=e.left>=B.left+B.width;
B=e.top>=B.top+B.height;if(K&&"hidden"==l.x||B&&"hidden"==l.y)return td;if(K&&"visible"!=l.x||B&&"visible"!=l.y){if(m&&(l=d(a),e.left>=g.scrollWidth-l.x||e.right>=g.scrollHeight-l.y))return td;e=sd(a);return e==td?td:"scroll"}}}return"none"}
function rd(a){var b=ud(a);if(b)return b.rect;if(V(a,"HTML"))return a=A(a),a=(hb(a)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new cb(a.clientWidth,a.clientHeight),new U(0,0,a.width,a.height);var c;try{c=a.getBoundingClientRect()}catch(d){return new U(0,0,0,0)}b=new U(c.left,c.top,c.right-c.left,c.bottom-c.top);x&&a.ownerDocument.body&&(a=A(a),b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function ud(a){var b=V(a,"MAP");if(!b&&!V(a,"AREA"))return null;var c=b?a:V(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=T.o('/descendant::*[@usemap = "#'+c.name+'"]',A(c)))&&(e=rd(d),b||"default"==a.shape.toLowerCase()||(a=yd(a),b=Math.min(Math.max(a.left,0),e.width),c=Math.min(Math.max(a.top,0),e.height),e=new U(b+e.left,c+e.top,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{H:d,rect:e||new U(0,0,0,0)}}
function yd(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){var b=a[0],c=a[1];return new U(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new U(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2<a.length){for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return new U(b,c,d-b,e-c)}return new U(0,0,0,0)}function xd(a){a=rd(a);return new fd(a.top,a.left+a.width,a.top+a.height,a.left)}
function zd(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function Ad(a){var b=[];Bd(a,b);a=xa(b,zd);return zd(a.join("\n")).replace(/\xa0/g," ")}
function Cd(a,b,c){if(V(a,"BR"))b.push("");else{var d=V(a,"TD"),e=W(a,"display"),f=!d&&!(0<=va(Dd,e)),g=aa(a.previousElementSibling)?a.previousElementSibling:ib(a.previousSibling),g=g?W(g,"display"):"",h=W(a,"float")||W(a,"cssFloat")||W(a,"styleFloat");!f||"run-in"==g&&"none"==h||/^[\s\xa0]*$/.test(b[b.length-1]||"")||b.push("");var k=wd(a),m=null,l=null;k&&(m=W(a,"white-space"),l=W(a,"text-transform"));t(a.childNodes,function(a){c(a,b,k,m,l)});a=b[b.length-1]||"";!d&&"table-cell"!=e||!a||qa(a," ")||
(b[b.length-1]+=" ");f&&"run-in"!=e&&!/^[\s\xa0]*$/.test(a)&&b.push("")}}function Bd(a,b){Cd(a,b,function(a,b,e,f,g){3==a.nodeType&&e?Ed(a,b,f,g):V(a)&&Bd(a,b)})}var Dd="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");
function Ed(a,b,c,d){a=a.nodeValue.replace(/[\u200b\u200e\u200f]/g,"");a=a.replace(/(\r\n|\r|\n)/g,"\n");if("normal"==c||"nowrap"==c)a=a.replace(/\n/g," ");a="pre"==c||"pre-wrap"==c?a.replace(/[ \f\t\v\u2028\u2029]/g,"\u00a0"):a.replace(/[\ \f\t\v\u2028\u2029]+/g," ");"capitalize"==d?a=a.replace(/(^|\s)(\S)/g,function(a,b,c){return b+c.toUpperCase()}):"uppercase"==d?a=a.toUpperCase():"lowercase"==d&&(a=a.toLowerCase());c=b.pop()||"";qa(c," ")&&pa(a," ")&&(a=a.substr(1));b.push(c+a)}
function vd(a){if(ed){if("relative"==W(a,"position"))return 1;a=W(a,"filter");return(a=a.match(/^alpha\(opacity=(\d*)\)/)||a.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(a[1])/100:1}return Fd(a)}function Fd(a){var b=1,c=W(a,"opacity");c&&(b=Number(c));(a=od(a))&&(b*=Fd(a));return b};var Gd=!(x&&!Xc(10)),Hd=wb?!Zc(4):!ad,Id=x&&la.navigator.msPointerEnabled;function X(a,b,c){this.a=a;this.b=b;this.f=c}X.prototype.create=function(a){a=A(a);ed&&a.createEventObject?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.a,this.b,this.f));return a};X.prototype.toString=function(){return this.a};function Y(a,b,c){X.call(this,a,b,c)}r(Y,X);
Y.prototype.create=function(a,b){if(!y&&this==Jd)throw new u(9,"Browser does not support a mouse pixel scroll event.");var c=A(a),d;if(ed){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;c=function(a,b){Object.defineProperty(d,a,{get:function(){return b}})};if(this==Kd||this==Ld)if(Object.defineProperty){var e=this==Kd;c("fromElement",e?a:b.relatedTarget);c("toElement",e?b.relatedTarget:
a)}else d.relatedTarget=b.relatedTarget;this==Md&&(Object.defineProperty?c("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=hb(c);d=c.createEvent("MouseEvents");var f=1;this==Md&&(y||(d.wheelDelta=b.wheelDelta),y&&(f=b.wheelDelta/-40));y&&this==Jd&&(f=b.wheelDelta);d.initMouseEvent(this.a,this.b,this.f,e,f,b.clientX,b.clientY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(x&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var e=sb(z(a)),c=hd(c),g=
b.clientX+e.scrollLeft-c.clientLeft,h=b.clientY+e.scrollTop-c.clientTop;Object.defineProperty(d,"pageX",{get:function(){return g}});Object.defineProperty(d,"pageY",{get:function(){return h}})}}return d};function Nd(a,b,c){X.call(this,a,b,c)}r(Nd,X);
Nd.prototype.create=function(a,b){var c=A(a);if(y){var d=hb(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.a,this.b,this.f,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.a==Od&&b.preventDefault&&c.preventDefault()}else if(ed?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.a,this.b,this.f)),c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.keyCode=b.charCode||b.keyCode,Ua||Ta)c.charCode=this==Od?c.keyCode:
0;return c};function Pd(a,b,c){X.call(this,a,b,c)}r(Pd,X);
Pd.prototype.create=function(a,b){function c(b){b=xa(b,function(b){return f.createTouch(g,a,b.identifier,b.pageX,b.pageY,b.screenX,b.screenY)});return f.createTouchList.apply(f,b)}function d(b){var c=xa(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}function e(a){return Hd?d(a):c(a)}if(!Gd)throw new u(9,"Browser does not support firing touch events.");
var f=A(a),g=hb(f),h=e(b.changedTouches),k=b.touches==b.changedTouches?h:e(b.touches),m=b.targetTouches==b.changedTouches?h:e(b.targetTouches),l;Hd?(l=f.createEvent("MouseEvents"),l.initMouseEvent(this.a,this.b,this.f,g,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),l.touches=k,l.targetTouches=m,l.changedTouches=h,l.scale=b.scale,l.rotation=b.rotation):(l=f.createEvent("TouchEvent"),0==l.initTouchEvent.length?l.initTouchEvent(k,m,h,this.a,g,0,0,b.clientX,b.clientY,
b.ctrlKey,b.altKey,b.shiftKey,b.metaKey):l.initTouchEvent(this.a,this.b,this.f,g,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,k,m,h,b.scale,b.rotation),l.relatedTarget=b.relatedTarget);return l};function Qd(a,b,c){X.call(this,a,b,c)}r(Qd,X);
Qd.prototype.create=function(a,b){if(!Id)throw new u(9,"Browser does not support MSGesture events.");var c=A(a),d=hb(c),c=c.createEvent("MSGestureEvent");c.initGestureEvent(this.a,this.b,this.f,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 Rd(a,b,c){X.call(this,a,b,c)}r(Rd,X);
Rd.prototype.create=function(a,b){if(!Id)throw new u(9,"Browser does not support MSPointer events.");var c=A(a),d=hb(c),c=c.createEvent("MSPointerEvent");c.initPointerEvent(this.a,this.b,this.f,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.pressure,b.rotation,b.tiltX,b.tiltY,b.pointerId,b.pointerType,0,b.isPrimary);return c};
var Kd=new Y("mouseout",!0,!0),Ld=new Y("mouseover",!0,!0),Md=new Y(y?"DOMMouseScroll":"mousewheel",!0,!0),Jd=new Y("MozMousePixelScroll",!0,!0),Od=new Nd("keypress",!0,!0),Sd={c:new X("blur",!1,!1),g:new X("change",!0,!1),Z:new X("focus",!1,!1),$:new X("focusin",!0,!1),aa:new X("focusout",!0,!1),ba:new X("input",!0,!1),Ba:new X("orientationchange",!1,!1),Ca:new X("propertychange",!1,!1),Da:new X("select",!0,!1),Ea:new X("submit",!0,!0),Fa:new X("textInput",!0,!0),u:new Y("click",!0,!0),A:new Y("contextmenu",
!0,!0),Ma:new Y("dblclick",!0,!0),fa:new Y("mousedown",!0,!0),ha:new Y("mousemove",!0,!1),ia:Kd,ja:Ld,la:new Y("mouseup",!0,!0),ma:Md,ka:Jd,ca:new Nd("keydown",!0,!0),da:Od,ea:new Nd("keyup",!0,!0),Ga:new Pd("touchend",!0,!0),Ha:new Pd("touchmove",!0,!0),Ia:new Pd("touchstart",!0,!0),na:new Qd("MSGestureChange",!0,!0),oa:new Qd("MSGestureEnd",!0,!0),pa:new Qd("MSGestureHold",!0,!0),qa:new Qd("MSGestureStart",!0,!0),ra:new Qd("MSGestureTap",!0,!0),ta:new Qd("MSInertiaStart",!0,!0),sa:new Rd("MSGotPointerCapture",
!0,!1),ua:new Rd("MSLostPointerCapture",!0,!1),va:new Rd("MSPointerCancel",!0,!0),wa:new Rd("MSPointerDown",!0,!0),Y:new Rd("MSPointerMove",!0,!0),ya:new Rd("MSPointerOver",!0,!0),xa:new Rd("MSPointerOut",!0,!0),Aa:new Rd("MSPointerUp",!0,!0)};function Td(a){na.call(this,a)}r(Td,na);Ua||y&&Xc(3.5)||x&&Xc(8);var Ud={w:function(a){return!(!a.querySelectorAll||!a.querySelector)},o:function(a,b){if(!a)throw new u(32,"No class name specified");a=ra(a);if(-1!==a.indexOf(" "))throw new u(32,"Compound class names not permitted");if(Ud.w(b))try{return b.querySelector("."+a.replace(/\./g,"\\."))||null}catch(d){throw new u(32,"An invalid or illegal class name was specified");}var c=rb(z(b),"*",a,b);return c.length?c[0]:null},s:function(a,b){if(!a)throw new u(32,"No class name specified");a=ra(a);if(-1!==a.indexOf(" "))throw new u(32,
"Compound class names not permitted");if(Ud.w(b))try{return b.querySelectorAll("."+a.replace(/\./g,"\\."))}catch(c){throw new u(32,"An invalid or illegal class name was specified");}return rb(z(b),"*",a,b)}};var Vd={o:function(a,b){if(!ea(b.querySelector)&&x&&Xc(8)&&!fa(b.querySelector))throw Error("CSS selection is not supported");if(!a)throw new u(32,"No selector specified");a=ra(a);var c;try{c=b.querySelector(a)}catch(d){throw new u(32,"An invalid or illegal selector was specified");}return c&&1==c.nodeType?c:null},s:function(a,b){if(!ea(b.querySelectorAll)&&x&&Xc(8)&&!fa(b.querySelector))throw Error("CSS selection is not supported");if(!a)throw new u(32,"No selector specified");a=ra(a);try{return b.querySelectorAll(a)}catch(c){throw new u(32,
"An invalid or illegal selector was specified");}}};var Wd={w:function(a,b){return!(!a.querySelectorAll||!a.querySelector)&&!/^\d.*/.test(b)},o:function(a,b){var c=z(b),d=q(a)?c.a.getElementById(a):a;if(!d)return null;if(ld(d,"id")==a&&jb(b,d))return d;c=rb(c,"*");return Ba(c,function(c){return ld(c,"id")==a&&jb(b,c)})},s:function(a,b){if(!a)return[];if(Wd.w(b,a))try{return b.querySelectorAll("#"+Wd.R(a))}catch(d){return[]}var c=rb(z(b),"*",null,b);return wa(c,function(b){return ld(b,"id")==a})},R:function(a){return a.replace(/(['"\\#.:;,!?+<>=~*^$|%&@`{}\-\/\[\]\(\)])/g,
"\\$1")}};var Xd={},Yd={};Xd.M=function(a,b,c){var d;try{d=Vd.s("a",b)}catch(e){d=rb(z(b),"A",null,b)}return Ba(d,function(b){b=Ad(b);return c&&-1!=b.indexOf(a)||b==a})};Xd.I=function(a,b,c){var d;try{d=Vd.s("a",b)}catch(e){d=rb(z(b),"A",null,b)}return wa(d,function(b){b=Ad(b);return c&&-1!=b.indexOf(a)||b==a})};Xd.o=function(a,b){return Xd.M(a,b,!1)};Xd.s=function(a,b){return Xd.I(a,b,!1)};Yd.o=function(a,b){return Xd.M(a,b,!0)};Yd.s=function(a,b){return Xd.I(a,b,!0)};var Zd={o:function(a,b){if(""===a)throw new u(32,'Unable to locate an element with the tagName ""');return b.getElementsByTagName(a)[0]||null},s:function(a,b){if(""===a)throw new u(32,'Unable to locate an element with the tagName ""');return b.getElementsByTagName(a)}};var $d={className:Ud,"class name":Ud,css:Vd,"css selector":Vd,id:Wd,linkText:Xd,"link text":Xd,name:{o:function(a,b){var c=rb(z(b),"*",null,b);return Ba(c,function(b){return ld(b,"name")==a})},s:function(a,b){var c=rb(z(b),"*",null,b);return wa(c,function(b){return ld(b,"name")==a})}},partialLinkText:Yd,"partial link text":Yd,tagName:Zd,"tag name":Zd,xpath:T};
function ae(a,b){var c;a:{for(c in a)if(a.hasOwnProperty(c))break a;c=null}if(c){var d=$d[c];if(d&&ea(d.o))return d.o(a[c],b||la.document)}throw Error("Unsupported locator strategy: "+c);};var be={index:function(a,b){var c=Number(a);if(isNaN(c)||0>c)throw new Td("Illegal Index: "+a);if(b.length<=c)throw new Td("Index out of range: "+a);return[b[c]]},name:function(a,b){return wa(b,function(b){return kd(b,"name")==a})},value:function(a,b){return wa(b,function(b){return kd(b,"value")===a})}};function ce(a,b){return(new RegExp(a)).test(b)}function de(a,b){return(new RegExp(a,"i")).test(b)}function ee(a){a=a.replace(/([.^$+(){}\[\]\\|])/g,"\\$1");a=a.replace(/\?/g,"(.|[\r\n])");return a=a.replace(/\*/g,"(.|[\r\n])*")}var fe={exact:function(a,b){return-1!=b.indexOf(a)},glob:function(a,b){return(new RegExp("^"+ee(a)+"$")).test(b)},globcontains:function(a,b){return(new RegExp(ee(a))).test(b)},regex:ce,regexi:de,regexpi:de,regexp:ce};function ge(a,b){if(a.style&&("hidden"==a.style.visibility||"none"==a.style.display))return"";var c;if(3==a.nodeType)return c=a.data,b||(c=c.replace(/\n|\r|\t/g," ")),c.replace(/&nbsp/," ");if(1==a.nodeType&&"SCRIPT"!=a.nodeName){var d=b||"PRE"==a.tagName;c="";for(var e=0;e<a.childNodes.length;e++){var f=a.childNodes.item(e);f&&(c+=ge(f,d))}if("P"==a.tagName||"BR"==a.tagName||"HR"==a.tagName||"DIV"==a.tagName)c+="\n";c=c.replace(/&nbsp/," ");Uc.ga&&Zc(9)&&(c=c.replace(/&#100;/," "));return c}return""}
;var Z={T:function(a,b){return pa(a,"//")?Z.N(a,b):pa(a,"document.")?Z.F(a,b):Z.G(a,b)},O:function(a,b){return he(b||A(la),function(b){return b.alt==a})},P:function(a,b){return he(b||A(la),function(b){return b.className==a})},F:function(a){var b=null;try{b=eval(a)}catch(c){return null}return b?b:null},S:function(a,b){return ae({id:a},b)},G:function(a,b){return Z.id(a,b)||Z.name(a,b)},i:function(a,b){var c=b||A(la);z(c);var d;d=eb(document,"*",null,c);c=a.split(" ");for(c[0]="name="+c[0];c.length;){var e=
c.shift(),f=d;d="value";var g=e.match(/^([A-Za-z]+)=(.+)/);g&&(d=g[1].toLowerCase(),e=g[2]);g=be[d];if(!g)throw new Td("Unrecognised element-filter type: '"+d+"'");d=g(e,f)}return 0<d.length?d[0]:null},V:function(a,b){try{var c;a:{var d=a,d=decodeURIComponent(d),e=b||document,f,g=e||document,h=g.$wdc_;h||(h=g.$wdc_={},h.J=ka());h.J||(h.J=ka());f=h;if(!(null!==f&&d in f))throw new u(10,"Element does not exist in cache");var k=f[d];if(null!==k&&"setInterval"in k){if(k.closed)throw delete f[d],new u(23,
"Window has been closed.");c=k}else{for(g=k;g;){if(g==e.documentElement){c=k;break a}g=g.parentNode}delete f[d];throw new u(10,"Element is no longer attached to the DOM");}}return c}catch(m){return null}},N:function(a,b){var c=qa(a,"/"),d={xpath:a};try{var e=ae(d,b);if(e||!c)return e}catch(f){if(!c)throw f;}d={xpath:a.substring(0,a.length-1)};return ae(d,b)}};Z.alt=Z.O;Z["class"]=Z.P;Z.dom=Z.F;Z.id=Z.S;Z.identifier=Z.G;Z.implicit=Z.T;
Z.link=function(a,b){for(var c=(b||A(la)).getElementsByTagName("a"),d=0;d<c.length;d++){var e=c[d],f=e,g="";y&&"1.8"<=Xa||Ua||x?g=ge(f,!1):f.textContent?g=f.textContent:f.innerText&&(g=f.innerText);f=g=g.replace(/\r\n|\r/g,"\n");f=f.replace(/\ +/g," ");g=new RegExp(String.fromCharCode(160),"g");if(Ua)for(g=String.fromCharCode(160);-1!=f.indexOf(g);)f=f.replace(g," ");else f=f.replace(g," ");var g=f,f=ra(g),h=a,g="glob",k=/^([a-zA-Z-]+):(.*)/.exec(h);if(k){var m=k[1],k=k[2];fe[m.toLowerCase()]&&(g=
m.toLowerCase(),h=k)}m=fe[g];if(!m)throw new Td("Cannot find pattern matching strategy: "+g);"glob"==g?(0==h.indexOf("glob:")&&(h=h.substring(5)),m=fe.glob):"exact"==g&&0==h.indexOf("exact:")&&(h=h.substring(6));h=ja(m,h);h.Ja=g;if(h(f))return e}return null};Z.name=Z.i;Z.stored=Z.V;Z.xpath=Z.N;function ie(a,b,c,d){var e=Z[a];if(!e)throw new Td("Unrecognised locator type: '"+a+"'");c=e.call(null,b,c);if(null!=c)return c;if(!d)return null;for(e=0;e<d.frames.length;e++){var f;try{f=d.frames[e].document}catch(g){}if(f&&(c=ie(a,b,f,d.frames[e]),null!=c))return c}return null}function he(a,b){for(var c=a.childNodes.length,d=0;d<c;d++){var e=a.childNodes[d];if(1==e.nodeType&&(b(e)||(e=he(e,b))))return e}return null};function je(a){var b="";a&&(b=a.toUpperCase());return(b=Sd[b])?b:{create:function(b){b=A(b);ed&&b.createEventObject?b=b.createEventObject():(b=b.createEvent("HTMLEvents"),b.initEvent(a,!0,!0));return b},a:a}};ba("_",function(a,b,c){var d;if(q(a)){(d=a.match(/^([A-Za-z]+)=.+/))?(d=d[1].toLowerCase(),d={type:d,string:a.substring(d.length+1)}):(d={string:"",type:""},d.string=a,d.type=pa(a,"//")?"xpath":pa(a,"document.")?"dom":"identifier");var e=la||la;d=ie(d.type,d.string,e.document,e);if(null==d)throw new Td("Element "+a+" not found");a=d}c=c||"0,0";q(c)?(d=c.split(/,/),c=parseInt(d[0],0),d=parseInt(d[1],0)):d=c=0;if(x||xb||tb&&0<=sa(Tc,27)){var f=a;var g=A(f),e=new bb(0,0),h=hd(g);f!=h&&(h=id(f),g=z(g),
g=fb(g.a),e.x=h.left+g.x,e.y=h.top+g.y);if("none"!=(gd(f,"display")||(f.currentStyle?f.currentStyle.display:null)||f.style&&f.style.display))f=jd(f);else{var h=f.style,g=h.display,k=h.visibility,m=h.position;h.visibility="hidden";h.position="absolute";h.display="inline";f=jd(f);h.display=g;h.position=m;h.visibility=k}e=new U(e.x,e.y,f.width,f.height);c+=e.left;d+=e.top}b=je(b);c=b.create(a,{clientX:c,clientY:d,button:0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1,relatedTarget:null});"isTrusted"in
c||(c.isTrusted=!1);ed&&a.fireEvent?a.fireEvent("on"+b.a,c):a.dispatchEvent(c)});; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
