All Downloads are FREE. Search and download functionalities are using the official Maven repository.

drivers.js.third_party.webdriver-atoms.get_text.js Maven / Gradle / Ivy

Go to download

update:检查点bug修复,增加js执行的驱动,commandExecutor方法bug修复,驱动更新支持最新Firefox47/chrome51/IE10/IE11/IE Edge

There is a newer version: 1.5.0
Show newest version
function(){return function(){function h(a){return function(){return this[a]}}function k(a){return function(){return a}}var p=this;
function aa(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 ba(a){var b=aa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function q(a){return"string"==typeof a}function ca(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function da(a,b,c){return a.call.apply(a.bind,arguments)}
function ea(a,b,c){if(!a)throw Error();if(2(0==n[1].length?
0:parseInt(n[1],10))?1:0)||((0==m[2].length)<(0==n[2].length)?-1:(0==m[2].length)>(0==n[2].length)?1:0)||(m[2]n[2]?1:0)}while(0==c)}return c}function ka(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};var la=Array.prototype;function t(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;ec?null:q(a)?a.charAt(c):a[c]}function sa(a,b){var c;a:if(q(a))c=q(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c=arguments.length?la.slice.call(a,b):la.slice.call(a,b,c)};var va={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 wa="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),xa=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,ya=/^#(?:[0-9a-f]{3}){1,2}$/i,za=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Aa=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Ba(a,b){this.code=a;this.state=Ha[a]||Ia;this.message=b||"";var c=this.state.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||""}s(Ba,Error);
var Ia="unknown error",Ha={15:"element not selectable",11:"element not visible",31:"ime engine activation failed",30:"ime not available",24:"invalid cookie domain",29:"invalid element coordinates",12:"invalid element state",32:"invalid selector",51:"invalid selector",52:"invalid selector",17:"javascript error",405:"unsupported operation",34:"move target out of bounds",27:"no such alert",7:"no such element",8:"no such frame",23:"no such window",28:"script timeout",33:"session not created",10:"stale element reference",
0:"success",21:"timeout",25:"unable to set cookie",26:"unexpected alert open"};Ha[13]=Ia;Ha[9]="unknown command";Ba.prototype.toString=function(){return this.name+": "+this.message};var Ja,Ka,La,Ma,Na,Oa;function Pa(){return p.navigator?p.navigator.userAgent:null}Ma=La=Ka=Ja=!1;var Qa;if(Qa=Pa()){var Ra=p.navigator;Ja=0==Qa.indexOf("Opera");Ka=!Ja&&-1!=Qa.indexOf("MSIE");La=!Ja&&-1!=Qa.indexOf("WebKit");Ma=!Ja&&!La&&"Gecko"==Ra.product}var u=Ja,w=Ka,x=Ma,Sa=La,Ta,Ua=p.navigator;Ta=Ua&&Ua.platform||"";Na=-1!=Ta.indexOf("Mac");Oa=-1!=Ta.indexOf("Win");var Va=-1!=Ta.indexOf("Linux");function Wa(){var a=p.document;return a?a.documentMode:void 0}var Xa;
a:{var Ya="",Za;if(u&&p.opera)var $a=p.opera.version,Ya="function"==typeof $a?$a():$a;else if(x?Za=/rv\:([^\);]+)(\)|;)/:w?Za=/MSIE\s+([^\);]+)(\)|;)/:Sa&&(Za=/WebKit\/(\S+)/),Za)var ab=Za.exec(Pa()),Ya=ab?ab[1]:"";if(w){var bb=Wa();if(bb>parseFloat(Ya)){Xa=String(bb);break a}}Xa=Ya}var cb={};function db(a){return cb[a]||(cb[a]=0<=ja(Xa,a))}var eb=p.document,fb=eb&&w?Wa()||("CSS1Compat"==eb.compatMode?parseInt(Xa,10):5):void 0;!x&&!w||w&&w&&9<=fb||x&&db("1.9.1");w&&db("9");function gb(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}gb.prototype.toString=function(){return"("+this.x+", "+this.y+")"};gb.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};gb.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};gb.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function hb(a,b){this.width=a;this.height=b}hb.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};hb.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};hb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};hb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function ib(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function jb(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function kb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};var lb=3;function mb(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new hb(a.clientWidth,a.clientHeight)}function nb(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function ob(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function pb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(w&&!(w&&9<=fb)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?qb(a,b):!c&&ob(e,b)?-1*rb(a,b):!d&&ob(f,a)?rb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=y(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 rb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return qb(d,a)}function qb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function y(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function sb(a,b){a=a.parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}
function tb(a){this.ja=a||p.document||document}tb.prototype.contains=ob;var ub,vb,wb,xb,yb,zb,Ab;Ab=zb=yb=xb=wb=vb=ub=!1;var z=Pa();z&&(-1!=z.indexOf("Firefox")?ub=!0:-1!=z.indexOf("Camino")?vb=!0:-1!=z.indexOf("iPhone")||-1!=z.indexOf("iPod")?wb=!0:-1!=z.indexOf("iPad")?xb=!0:-1!=z.indexOf("Android")?yb=!0:-1!=z.indexOf("Chrome")?zb=!0:-1!=z.indexOf("Safari")&&(Ab=!0));var Bb=ub,Cb=vb,Db=wb,Eb=xb,Fb=yb,Gb=zb,Hb=Ab;function Ib(a,b,c){this.e=a;this.qa=b||1;this.m=c||1};var A=w&&!(w&&9<=fb),Jb=w&&!(w&&8<=fb);function Kb(a,b,c,d,e){this.e=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.ua=e;this.parentNode=b}function Lb(a,b,c){var d=Jb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Kb(b,a,b.nodeName,d,c)};function Mb(a){this.S=a;this.G=0}function Nb(a){a=a.match(Ob);for(var b=0;b]=|\\s+|.","g"),Pb=/^\s/;function B(a,b){return a.S[a.G+(b||0)]}Mb.prototype.next=function(){return this.S[this.G++]};Mb.prototype.back=function(){this.G--};Mb.prototype.empty=function(){return this.S.length<=this.G};function C(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(A&&"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),A&&"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 D(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Jb&&"class"==b&&(b="className");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Qb(a,b,c,d,e){return(A?Rb:Sb).call(null,a,b,q(c)?c:null,q(d)?d:null,e||new E)}
function Rb(a,b,c,d,e){if(a instanceof Tb||8==a.l||c&&null===a.l){var f=b.all;if(!f)return e;a=Ub(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],l=0;b=f[l++];)D(b,c,d)&&g.push(b);f=g}for(l=0;b=f[l++];)"*"==a&&"!"==b.tagName||e.add(b);return e}Vb(a,b,c,d,e);return e}
function Sb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!w?(b=b.getElementsByName(d),t(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),t(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof F?Vb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),t(b,function(a){D(a,c,d)&&e.add(a)}));return e}
function Wb(a,b,c,d,e){var f;if((a instanceof Tb||8==a.l||c&&null===a.l)&&(f=b.childNodes)){var g=Ub(a);if("*"!=g&&(f=ma(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=ma(f,function(a){return D(a,c,d)}));t(f,function(a){"*"==g&&("!"==a.tagName||"*"==g&&1!=a.nodeType)||e.add(a)});return e}return Xb(a,b,c,d,e)}function Xb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)D(b,c,d)&&a.matches(b)&&e.add(b);return e}
function Vb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)D(b,c,d)&&a.matches(b)&&e.add(b),Vb(a,b,c,d,e)}function Ub(a){if(a instanceof F){if(8==a.l)return"!";if(null===a.l)return"*"}return a.getName()};function E(){this.m=this.i=null;this.B=0}function Yb(a){this.p=a;this.next=this.u=null}function Zb(a,b){if(!a.i)return b;if(!b.i)return a;for(var c=a.i,d=b.i,e=null,f=null,g=0;c&&d;)c.p==d.p||c.p instanceof Kb&&d.p instanceof Kb&&c.p.e==d.p.e?(f=c,c=c.next,d=d.next):0",4,2,function(a,b,c){return hc(function(a,b){return a>b},a,b,c)});M("<=",4,2,function(a,b,c){return hc(function(a,b){return a<=b},a,b,c)});M(">=",4,2,function(a,b,c){return hc(function(a,b){return a>=b},a,b,c)});var gc=M("=",3,2,function(a,b,c){return hc(function(a,b){return a==b},a,b,c,!0)});M("!=",3,2,function(a,b,c){return hc(function(a,b){return a!=b},a,b,c,!0)});M("and",2,2,function(a,b,c){return ec(a,c)&&ec(b,c)});M("or",1,2,function(a,b,c){return ec(a,c)||ec(b,c)});function kc(a,b){if(b.o()&&4!=a.h)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");H.call(this,a.h);this.aa=a;this.d=b;this.q=a.f();this.j=a.j}s(kc,H);kc.prototype.evaluate=function(a){a=this.aa.evaluate(a);return lc(this.d,a)};kc.prototype.toString=function(){var a;a="Filter:"+I(this.aa);return a+=I(this.d)};function mc(a,b){if(b.lengtha.O)throw Error("Function "+a.k+" expects at most "+a.O+" arguments, "+b.length+" given");a.na&&t(b,function(b,d){if(4!=b.h)throw Error("Argument "+d+" to function "+a.k+" is not of type Nodeset: "+b);});H.call(this,a.h);this.F=a;this.K=b;cc(this,a.q||pa(b,function(a){return a.f()}));dc(this,a.la&&!b.length||a.ka&&!!b.length||pa(b,function(a){return a.j}))}
s(mc,H);mc.prototype.evaluate=function(a){return this.F.n.apply(null,ta(a,this.K))};mc.prototype.toString=function(){var a="Function: "+this.F;if(this.K.length)var b=oa(this.K,function(a,b){return a+I(b)},"Arguments:"),a=a+I(b);return a};function nc(a,b,c,d,e,f,g,l,v){this.k=a;this.h=b;this.q=c;this.la=d;this.ka=e;this.n=f;this.Z=g;this.O=void 0!==l?l:g;this.na=!!v}nc.prototype.toString=h("k");var oc={};
function N(a,b,c,d,e,f,g,l){if(oc.hasOwnProperty(a))throw Error("Function already created: "+a+".");oc[a]=new nc(a,b,c,d,!1,e,f,g,l)}N("boolean",2,!1,!1,function(a,b){return ec(b,a)},1);N("ceiling",1,!1,!1,function(a,b){return Math.ceil(J(b,a))},1);N("concat",3,!1,!1,function(a,b){var c=ua(arguments,1);return oa(c,function(b,c){return b+K(c,a)},"")},2,null);N("contains",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return-1!=b.indexOf(a)},2);
N("count",1,!1,!1,function(a,b){return b.evaluate(a).o()},1,1,!0);N("false",2,!1,!1,k(!1),0);N("floor",1,!1,!1,function(a,b){return Math.floor(J(b,a))},1);
N("id",4,!1,!1,function(a,b){function c(a){if(A){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return ra(b,function(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.e,e=9==d.nodeType?d:d.ownerDocument,d=K(b,a).split(/\s+/),f=[];t(d,function(a){(a=c(a))&&!sa(f,a)&&f.push(a)});f.sort(pb);var g=new E;t(f,function(a){g.add(a)});return g},1);N("lang",2,!1,!1,k(!1),1);
N("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.m},0);N("local-name",3,!1,!0,function(a,b){var c=b?$b(b.evaluate(a)):a.e;return c?c.nodeName.toLowerCase():""},0,1,!0);N("name",3,!1,!0,function(a,b){var c=b?$b(b.evaluate(a)):a.e;return c?c.nodeName.toLowerCase():""},0,1,!0);N("namespace-uri",3,!0,!1,k(""),0,1,!0);N("normalize-space",3,!1,!0,function(a,b){return(b?K(b,a):C(a.e)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
N("not",2,!1,!1,function(a,b){return!ec(b,a)},1);N("number",1,!1,!0,function(a,b){return b?J(b,a):+C(a.e)},0,1);N("position",1,!0,!1,function(a){return a.qa},0);N("round",1,!1,!1,function(a,b){return Math.round(J(b,a))},1);N("starts-with",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return 0==b.lastIndexOf(a,0)},2);N("string",3,!1,!0,function(a,b){return b?K(b,a):C(a.e)},0,1);N("string-length",1,!1,!0,function(a,b){return(b?K(b,a):C(a.e)).length},0,1);
N("substring",3,!1,!1,function(a,b,c,d){c=J(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?J(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=K(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);N("substring-after",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
N("substring-before",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);N("sum",1,!1,!1,function(a,b){for(var c=G(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+C(e);return d},1,1,!0);N("translate",3,!1,!1,function(a,b,c,d){b=K(b,a);c=K(c,a);var e=K(d,a);a=[];for(d=0;da.length)throw Error("Unclosed literal string");return new qc(a)}function Nc(a){var b=a.a.next(),c=b.indexOf(":");if(-1==c)return new Tb(b);var d=b.substring(0,c);a=a.oa(d);if(!a)throw Error("Namespace prefix not declared: "+d);b=b.substr(c+1);return new Tb(b,a)}
function Oc(a){var b,c=[],d;if("/"==B(a.a)||"//"==B(a.a)){b=a.a.next();d=B(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new uc;d=new uc;R(a,"Missing next location step.");b=Pc(a,b);c.push(b)}else{a:{b=B(a.a);d=b.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();b=Ic(a);R(a,'unclosed "("');Kc(a,")");break;case '"':case "'":b=Mc(a);break;default:if(isNaN(+b))if(!pc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==B(a.a,1)){b=a.a.next();b=oc[b]||null;a.a.next();for(d=[];")"!=B(a.a);){R(a,"Missing function argument list.");d.push(Ic(a));if(","!=B(a.a))break;a.a.next()}R(a,"Unclosed function argument list.");Lc(a);b=new mc(b,d)}else{b=null;break a}else b=new rc(+a.a.next())}"["==B(a.a)&&(d=new yc(Qc(a)),b=new kc(b,d))}if(b)if("/"==B(a.a)||"//"==B(a.a))d=b;else return b;else b=Pc(a,"/"),d=new vc,c.push(b)}for(;"/"==B(a.a)||"//"==B(a.a);)b=a.a.next(),R(a,"Missing next location step."),b=Pc(a,b),c.push(b);
return new sc(d,c)}
function Pc(a,b){var c,d,e;if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==B(a.a))return d=new O(Ec,new F("node")),a.a.next(),d;if(".."==B(a.a))return d=new O(Dc,new F("node")),a.a.next(),d;var f;if("@"==B(a.a))f=tc,a.a.next(),R(a,"Missing attribute name");else if("::"==B(a.a,1)){if(!/(?![0-9])[\w]/.test(B(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());c=a.a.next();f=Cc[c]||null;if(!f)throw Error("No axis with name: "+c);a.a.next();R(a,"Missing node name")}else f=zc;
c=B(a.a);if(/(?![0-9])[\w]/.test(c.charAt(0)))if("("==B(a.a,1)){if(!pc(c))throw Error("Invalid node type: "+c);c=a.a.next();if(!pc(c))throw Error("Invalid type name: "+c);Kc(a,"(");R(a,"Bad nodetype");e=B(a.a).charAt(0);var g=null;if('"'==e||"'"==e)g=Mc(a);R(a,"Bad nodetype");Lc(a);c=new F(c,g)}else c=Nc(a);else if("*"==c)c=Nc(a);else throw Error("Bad token: "+a.a.next());e=new yc(Qc(a),f.v);return d||new O(f,c,e,"//"==b)}
function Qc(a){for(var b=[];"["==B(a.a);){a.a.next();R(a,"Missing predicate expression.");var c=Ic(a);b.push(c);R(a,"Unclosed predicate expression.");Kc(a,"]")}return b}function Jc(a){if("-"==B(a.a))return a.a.next(),new Fc(Jc(a));var b=Oc(a);if("|"!=B(a.a))a=b;else{for(b=[b];"|"==a.a.next();)R(a,"Missing next union location path."),b.push(Oc(a));a.a.back();a=new Gc(b)}return a};function Rc(a){switch(a.nodeType){case 1:return ga(Sc,a);case 9:return Rc(a.documentElement);case 2:return a.ownerElement?Rc(a.ownerElement):Tc;case 11:case 10:case 6:case 12:return Tc;default:return a.parentNode?Rc(a.parentNode):Tc}}function Tc(){return null}function Sc(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?Sc(a.parentNode,b):null};function Uc(a,b){if(!a.length)throw Error("Empty XPath expression.");var c=Nb(a);if(c.empty())throw Error("Invalid XPath expression.");b?"function"==aa(b)||(b=fa(b.lookupNamespaceURI,b)):b=k(null);var d=Ic(new Hc(c,b));if(!c.empty())throw Error("Bad token: "+c.next());this.evaluate=function(a,b){var c=d.evaluate(new Ib(a));return new S(c,b)}}
function S(a,b){if(0==b)if(a instanceof E)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 E))throw Error("value could not be converted to the specified type");this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof E?ac(a):""+a;break;case 1:this.numberValue=a instanceof E?+ac(a):+a;break;case 3:this.booleanValue=a instanceof E?0=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 Vc(a){this.lookupNamespaceURI=Rc(a)}
function Wc(a){a=a||p;var b=a.document;b.evaluate||(a.XPathResult=S,b.evaluate=function(a,b,e,f){return(new Uc(a,e)).evaluate(b,f)},b.createExpression=function(a,b){return new Uc(a,b)},b.createNSResolver=function(a){return new Vc(a)})};var T={};T.ga=function(){var a={xa:"http://www.w3.org/2000/svg"};return function(b){return a[b]||null}}();T.n=function(a,b,c){var d=y(a);(w||Fb)&&Wc(d?d.parentWindow||d.defaultView:window);try{var e=d.createNSResolver?d.createNSResolver(d.documentElement):T.ga;return w&&!db(7)?d.evaluate.call(d,b,a,e,c,null):d.evaluate(b,a,e,c,null)}catch(f){if(!x||"NS_ERROR_ILLEGAL_VALUE"!=f.name)throw new Ba(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+f);}};
T.L=function(a,b){if(!a||1!=a.nodeType)throw new Ba(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element.");};T.ra=function(a,b){var c=function(){var c=T.n(b,a,9);return c?(c=c.singleNodeValue,u?c:c||null):b.selectSingleNode?(c=y(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();null===c||T.L(c,a);return c};
T.ta=function(a,b){var c=function(){var c=T.n(b,a,7);if(c){var e=c.snapshotLength;u&&void 0===e&&T.L(null,a);for(var f=[],g=0;g=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:!1};
id.prototype.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};id.prototype.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};
id.prototype.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};function U(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}U.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};U.prototype.contains=function(a){return a instanceof U?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
U.prototype.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};U.prototype.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};
U.prototype.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};function V(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function jd(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=ka(b);if("float"==c||"cssFloat"==c||"styleFloat"==c)c=gd?"styleFloat":"cssFloat";var d;a:{d=c;var e=y(a);if(e.defaultView&&e.defaultView.getComputedStyle&&(e=e.defaultView.getComputedStyle(a,null))){d=e[d]||e.getPropertyValue(d)||"";break a}d=""}d=d||kd(a,c);if(null===d)d=null;else if(sa(wa,c)){b:{var f=d.match(za);if(f){var c=Number(f[1]),e=Number(f[2]),g=Number(f[3]),f=Number(f[4]);if(0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>=g&&0<=f&&1>=f){c=[c,e,g,f];break b}}c=null}if(!c){b:{if(g=
d.match(Aa))if(c=Number(g[1]),e=Number(g[2]),g=Number(g[3]),0<=c&&255>=c&&0<=e&&255>=e&&0<=g&&255>=g){c=[c,e,g,1];break b}c=null}if(!c)b:{c=d.toLowerCase();e=va[c.toLowerCase()];if(!e&&(e="#"==c.charAt(0)?c:"#"+c,4==e.length&&(e=e.replace(xa,"#$1$1$2$2$3$3")),!ya.test(e))){c=null;break b}c=[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),1]}}d=c?"rgba("+c.join(", ")+")":d}return d}
function kd(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&"function"==aa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(c=jd(a))?kd(c,b):null}
function ld(a,b){function c(a){if("none"==W(a,"display"))return!1;a=jd(a);return!a||c(a)}function d(a){var b=md(a);return 0=m.left+m.width;m=e.top>=m.top+m.height;if(n&&"hidden"==r.x||m&&"hidden"==r.y)return X;if(n&&"visible"!=r.x||m&&"visible"!=r.y){if(L&&(r=d(a),e.left>=g.scrollWidth-r.x||e.right>=g.scrollHeight-r.y))return X;e=nd(a);return e==X?X:"scroll"}}}return"none"}var rd=RegExp("matrix\\(([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+), ([\\d\\.\\-]+)(?:px)?, ([\\d\\.\\-]+)(?:px)?\\)");
function md(a){function b(a){var c=(y(a)?y(a).parentWindow||y(a).defaultView:window).getComputedStyle(a,null).MozTransform.match(rd);if(c){var d=parseFloat(c[1]),e=parseFloat(c[2]),r=parseFloat(c[3]),m=parseFloat(c[4]),n=parseFloat(c[5]),c=parseFloat(c[6]),Q=f.left+f.width,Ca=f.top+f.height,Da=f.left*d,d=Q*d,Ea=f.left*e,e=Q*e,Fa=f.top*r,r=Ca*r,Ga=f.top*m,Q=Ca*m,Ca=Da+Fa+n,m=Ea+Ga+c,Fa=d+Fa+n,Ga=e+Ga+c,Da=Da+r+n,Ea=Ea+Q+c,n=d+r+n,c=e+Q+c;f.left=Math.min(Ca,Fa,Da,n);f.top=Math.min(m,Ga,Ea,c);n=Math.max(Ca,
Fa,Da,n);c=Math.max(m,Ga,Ea,c);f.width=n-f.left;f.height=c-f.top}(a=jd(a))&&b(a)}var c=od(a);if(c)return c.rect;if(V(a,"HTML"))return c=y(a),a=mb((c?c.parentWindow||c.defaultView:window)||window),new U(0,0,a.width,a.height);var d;try{d=a.getBoundingClientRect()}catch(e){return new U(0,0,0,0)}var f=new U(d.left,d.top,d.right-d.left,d.bottom-d.top);w&&a.ownerDocument.body&&(c=y(a),f.left-=c.documentElement.clientLeft+c.body.clientLeft,f.top-=c.documentElement.clientTop+c.body.clientTop);u&&(0==f.width&&
02*this.A&&Ad(this),!0):!1};function Ad(a){if(a.A!=a.g.length){for(var b=0,c=0;b");Z(191,"/","?");Z(192,"`","~");Z(219,"[","{");Z(220,"\\","|");Z(221,"]","}");Z({b:59,c:186,opera:59},";",":");Z(222,"'",'"');var Hd=new Y;
Hd.set(1,Dd);Hd.set(2,Ed);Hd.set(4,Fd);Hd.set(8,Gd);(function(a){var b=new Y;t(zd(a),function(c){b.set(a.get(c).code,c)});return b})(Hd);x&&ad(12);function Id(){this.I=void 0}
function Jd(a,b,c){switch(typeof b){case "string":Kd(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(null==b){c.push("null");break}if("array"==aa(b)){var d=b.length;c.push("[");for(var e="",f=0;fb?e+="000":256>b?e+="00":4096>b&&(e+="0");return Ld[a]=e+b.toString(16)}),'"')};Sa||u||x&&ad(3.5)||w&&ad(8);function Nd(a){switch(aa(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return na(a,Nd);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Od(a);return b}if("document"in a)return b={},b.WINDOW=Od(a),b;if(ba(a))return na(a,Nd);a=ib(a,function(a,b){return"number"==typeof b||q(b)});return jb(a,Nd);default:return null}}
function Pd(a,b){return"array"==aa(a)?na(a,function(a){return Pd(a,b)}):ca(a)?"function"==typeof a?a:"ELEMENT"in a?Qd(a.ELEMENT,b):"WINDOW"in a?Qd(a.WINDOW,b):jb(a,function(a){return Pd(a,b)}):a}function Rd(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.Q=ha());b.Q||(b.Q=ha());return b}function Od(a){var b=Rd(a.ownerDocument),c=kb(b,function(b){return b==a});c||(c=":wdc:"+b.Q++,b[c]=a);return c}
function Qd(a,b){a=decodeURIComponent(a);var c=b||document,d=Rd(c);if(!(a in d))throw new Ba(10,"Element does not exist in cache");var e=d[a];if("setInterval"in e){if(e.closed)throw delete d[a],new Ba(23,"Window has been closed.");return e}for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];throw new Ba(10,"Element is no longer attached to the DOM");};function Sd(a,b){var c=[a],d;try{var e=b?Qd(b.WINDOW):window,f=Pd(c,e.document),g=ud.apply(null,f);d={status:0,value:Nd(g)}}catch(l){d={status:"code"in l?l.code:13,value:{message:l.message}}}c=[];Jd(new Id,d,c);return c.join("")}var Td=["_"],$=p;Td[0]in $||!$.execScript||$.execScript("var "+Td[0]);for(var Ud;Td.length&&(Ud=Td.shift());)Td.length||void 0===Sd?$=$[Ud]?$[Ud]:$[Ud]={}:$[Ud]=Sd;; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy