webdriverio-automation
Version:
WebdriverIO-Automation android ios project
83 lines (77 loc) • 33.2 kB
JavaScript
function(){return function(){var g=this;function k(a){return"string"==typeof a}function aa(a,b){a=a.split(".");var c=g;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(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 ea(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ea=ca:ea=da;return ea.apply(null,arguments)}function fa(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)}}
function l(a){var b=n;function c(){}c.prototype=b.prototype;a.O=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.N=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var ga=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
function ha(a,b){var c=0;a=ga(String(a)).split(".");b=ga(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;!c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=ia(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||ia(0==f[2].length,0==h[2].length)||ia(f[2],h[2]);f=f[3];h=h[3]}while(!c)}return c}function ia(a,b){return a<b?-1:a>b?1:0};function p(a,b){for(var c=a.length,d=k(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function ja(a,b){for(var c=a.length,d=[],e=0,f=k(a)?a.split(""):a,h=0;h<c;h++)if(h in f){var m=f[h];b.call(void 0,m,h,a)&&(d[e++]=m)}return d}function q(a,b,c){var d=c;p(a,function(c,f){d=b.call(void 0,d,c,f,a)});return d}function ka(a,b){for(var c=a.length,d=k(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 la(a,b){a:{for(var c=a.length,d=k(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:k(a)?a.charAt(b):a[b]}function ma(a){return Array.prototype.concat.apply([],arguments)}function na(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var r;a:{var oa=g.navigator;if(oa){var pa=oa.userAgent;if(pa){r=pa;break a}}r=""}function t(a){return-1!=r.indexOf(a)};function qa(){return(t("Chrome")||t("CriOS"))&&!t("Edge")};function ra(){return t("iPhone")&&!t("iPod")&&!t("iPad")};function sa(a,b){var c=ta;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ua=t("Opera"),u=t("Trident")||t("MSIE"),va=t("Edge"),w=t("Gecko")&&!(-1!=r.toLowerCase().indexOf("webkit")&&!t("Edge"))&&!(t("Trident")||t("MSIE"))&&!t("Edge"),wa=-1!=r.toLowerCase().indexOf("webkit")&&!t("Edge"),xa=t("Macintosh"),ya=t("Windows");function za(){var a=g.document;return a?a.documentMode:void 0}var x;
a:{var Aa="",Ba=function(){var a=r;if(w)return/rv\:([^\);]+)(\)|;)/.exec(a);if(va)return/Edge\/([\d\.]+)/.exec(a);if(u)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(wa)return/WebKit\/(\S+)/.exec(a);if(ua)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ba&&(Aa=Ba?Ba[1]:"");if(u){var Ca=za();if(null!=Ca&&Ca>parseFloat(Aa)){x=String(Ca);break a}}x=Aa}var ta={};function Da(a){return sa(a,function(){return 0<=ha(x,a)})}var y;var Ea=g.document;
y=Ea&&u?za()||("CSS1Compat"==Ea.compatMode?parseInt(x,10):5):void 0;var Fa=t("Firefox"),Ga=ra()||t("iPod"),Ha=t("iPad"),Ia=t("Android")&&!(qa()||t("Firefox")||t("Opera")||t("Silk")),Ja=qa(),Ka=t("Safari")&&!(qa()||t("Coast")||t("Opera")||t("Edge")||t("Silk")||t("Android"))&&!(ra()||t("iPad")||t("iPod"));function z(a){return(a=a.exec(r))?a[1]:""}(function(){if(Fa)return z(/Firefox\/([0-9.]+)/);if(u||va||ua)return x;if(Ja)return ra()||t("iPad")||t("iPod")?z(/CriOS\/([0-9.]+)/):z(/Chrome\/([0-9.]+)/);if(Ka&&!(ra()||t("iPad")||t("iPod")))return z(/Version\/([0-9.]+)/);if(Ga||Ha){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(r);if(a)return a[1]+"."+a[2]}else if(Ia)return(a=z(/Android\s+([0-9.]+)/))?a:z(/Version\/([0-9.]+)/);return""})();var La,B;function Ma(a){return C?La(a):u?0<=ha(y,a):Da(a)}var C=function(){if(!w)return!1;var a=g.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;La=function(a){return 0<=c.compare(d,""+a)};B=function(a){c.compare(e,""+a)};return!0}();Ia&&C&&B(2.3);Ia&&C&&B(4);Ka&&C&&B(6);function Na(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 Oa(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(u&&!(9<=Number(y))){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?Pa(a,b):!c&&Na(e,b)?-1*Qa(a,b):!d&&Na(f,a)?Qa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=9==a.nodeType?
a:a.ownerDocument||a.document;c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(g.Range.START_TO_END,a)}function Qa(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Pa(b,a)}function Pa(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};/*
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 D(a,b,c){this.a=a;this.b=b||1;this.h=c||1};var E=u&&!(9<=Number(y)),Ra=u&&!(8<=Number(y));function F(a,b,c,d){this.a=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.parentNode=this.ownerElement=b}function Sa(a,b){var c=Ra&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new F(b,a,b.nodeName,c)};function Ta(a){this.b=a;this.a=0}function Ua(a){a=a.match(Va);for(var b=0;b<a.length;b++)Wa.test(a[b])&&a.splice(b,1);return new Ta(a)}var Va=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,Wa=/^\s/;function G(a,b){return a.b[a.a+(b||0)]}Ta.prototype.next=function(){return this.b[this.a++]};function Xa(a){return a.b.length<=a.a};function H(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(E&&"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),E&&"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 I(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}Ra&&"class"==b&&(b="className");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Ya(a,b,c,d,e){return(E?Za:$a).call(null,a,b,k(c)?c:null,k(d)?d:null,e||new J)}
function Za(a,b,c,d,e){if(a instanceof K||8==a.b||c&&null===a.b){var f=b.all;if(!f)return e;var h=ab(a);if("*"!=h&&(f=b.getElementsByTagName(h),!f))return e;if(c){var m=[];for(a=0;b=f[a++];)I(b,c,d)&&m.push(b);f=m}for(a=0;b=f[a++];)"*"==h&&"!"==b.tagName||L(e,b);return e}bb(a,b,c,d,e);return e}
function $a(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!u?(b=b.getElementsByName(d),p(b,function(b){a.a(b)&&L(e,b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),p(b,function(b){b.className==d&&a.a(b)&&L(e,b)})):a instanceof M?bb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.h()),p(b,function(a){I(a,c,d)&&L(e,a)}));return e}
function cb(a,b,c,d,e){var f;if((a instanceof K||8==a.b||c&&null===a.b)&&(f=b.childNodes)){var h=ab(a);if("*"!=h&&(f=ja(f,function(a){return a.tagName&&a.tagName.toLowerCase()==h}),!f))return e;c&&(f=ja(f,function(a){return I(a,c,d)}));p(f,function(a){"*"==h&&("!"==a.tagName||"*"==h&&1!=a.nodeType)||L(e,a)});return e}return db(a,b,c,d,e)}function db(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.a(b)&&L(e,b);return e}
function bb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.a(b)&&L(e,b),bb(a,b,c,d,e)}function ab(a){if(a instanceof M){if(8==a.b)return"!";if(null===a.b)return"*"}return a.h()};function J(){this.b=this.a=null;this.s=0}function eb(a){this.node=a;this.next=this.a=null}function fb(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;){e=c.node;var h=b.node;e==h||e instanceof F&&h instanceof F&&e.a==h.a?(e=c,c=c.next,b=b.next):0<Oa(c.node,b.node)?(e=b,b=b.next):(e=c,c=c.next);(e.a=d)?d.next=e:a.a=e;d=e;f++}for(e=c||b;e;)e.a=d,d=d.next=e,f++,e=e.next;a.b=d;a.s=f;return a}function gb(a,b){b=new eb(b);b.next=a.a;a.b?a.a.a=b:a.a=a.b=b;a.a=b;a.s++}
function L(a,b){b=new eb(b);b.a=a.b;a.a?a.b.next=b:a.a=a.b=b;a.b=b;a.s++}function hb(a){return(a=a.a)?a.node:null}function ib(a){return(a=hb(a))?H(a):""}J.prototype.iterator=function(a){return new jb(this,!!a)};function jb(a,b){this.h=a;this.b=(this.A=b)?a.b:a.a;this.a=null}jb.prototype.next=function(){var a=this.b;if(a){var b=this.a=a;this.b=this.A?a.a:a.next;return b.node}return null};function n(a){this.l=a;this.b=this.i=!1;this.h=null}function N(a){return"\n "+a.toString().split("\n").join("\n ")}function kb(a,b){a.i=b}function lb(a,b){a.b=b}function O(a,b){a=a.a(b);return a instanceof J?+ib(a):+a}function P(a,b){a=a.a(b);return a instanceof J?ib(a):""+a}function Q(a,b){a=a.a(b);return a instanceof J?!!a.s:!!a};function mb(a,b,c){n.call(this,a.l);this.c=a;this.j=b;this.v=c;this.i=b.i||c.i;this.b=b.b||c.b;this.c==nb&&(c.b||c.i||4==c.l||0==c.l||!b.h?b.b||b.i||4==b.l||0==b.l||!c.h||(this.h={name:c.h.name,B:b}):this.h={name:b.h.name,B:c})}l(mb);
function R(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof J&&c instanceof J){b=b.iterator();for(d=b.next();d;d=b.next())for(e=c.iterator(),f=e.next();f;f=e.next())if(a(H(d),H(f)))return!0;return!1}if(b instanceof J||c instanceof J){b instanceof J?(e=b,d=c):(e=c,d=b);f=e.iterator();for(var h=typeof d,m=f.next();m;m=f.next()){switch(h){case "number":m=+H(m);break;case "boolean":m=!!H(m);break;case "string":m=H(m);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(m,
d)||e==c&&a(d,m))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)}mb.prototype.a=function(a){return this.c.u(this.j,this.v,a)};mb.prototype.toString=function(){var a="Binary Expression: "+this.c,a=a+N(this.j);return a+=N(this.v)};function ob(a,b,c,d){this.L=a;this.H=b;this.l=c;this.u=d}ob.prototype.toString=function(){return this.L};var pb={};
function S(a,b,c,d){if(pb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new ob(a,b,c,d);return pb[a.toString()]=a}S("div",6,1,function(a,b,c){return O(a,c)/O(b,c)});S("mod",6,1,function(a,b,c){return O(a,c)%O(b,c)});S("*",6,1,function(a,b,c){return O(a,c)*O(b,c)});S("+",5,1,function(a,b,c){return O(a,c)+O(b,c)});S("-",5,1,function(a,b,c){return O(a,c)-O(b,c)});S("<",4,2,function(a,b,c){return R(function(a,b){return a<b},a,b,c)});
S(">",4,2,function(a,b,c){return R(function(a,b){return a>b},a,b,c)});S("<=",4,2,function(a,b,c){return R(function(a,b){return a<=b},a,b,c)});S(">=",4,2,function(a,b,c){return R(function(a,b){return a>=b},a,b,c)});var nb=S("=",3,2,function(a,b,c){return R(function(a,b){return a==b},a,b,c,!0)});S("!=",3,2,function(a,b,c){return R(function(a,b){return a!=b},a,b,c,!0)});S("and",2,2,function(a,b,c){return Q(a,c)&&Q(b,c)});S("or",1,2,function(a,b,c){return Q(a,c)||Q(b,c)});function qb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");n.call(this,a.l);this.c=a;this.j=b;this.i=a.i;this.b=a.b}l(qb);qb.prototype.a=function(a){a=this.c.a(a);return rb(this.j,a)};qb.prototype.toString=function(){var a="Filter:"+N(this.c);return a+=N(this.j)};function sb(a,b){if(b.length<a.G)throw Error("Function "+a.o+" expects at least"+a.G+" arguments, "+b.length+" given");if(null!==a.F&&b.length>a.F)throw Error("Function "+a.o+" expects at most "+a.F+" arguments, "+b.length+" given");a.K&&p(b,function(b,d){if(4!=b.l)throw Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+b);});n.call(this,a.l);this.C=a;this.c=b;kb(this,a.i||ka(b,function(a){return a.i}));lb(this,a.J&&!b.length||a.I&&!!b.length||ka(b,function(a){return a.b}))}l(sb);
sb.prototype.a=function(a){return this.C.u.apply(null,ma(a,this.c))};sb.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length)var b=q(this.c,function(a,b){return a+N(b)},"Arguments:"),a=a+N(b);return a};function tb(a,b,c,d,e,f,h,m,v){this.o=a;this.l=b;this.i=c;this.J=d;this.I=e;this.u=f;this.G=h;this.F=void 0!==m?m:h;this.K=!!v}tb.prototype.toString=function(){return this.o};var ub={};
function T(a,b,c,d,e,f,h,m){if(ub.hasOwnProperty(a))throw Error("Function already created: "+a+".");ub[a]=new tb(a,b,c,d,!1,e,f,h,m)}T("boolean",2,!1,!1,function(a,b){return Q(b,a)},1);T("ceiling",1,!1,!1,function(a,b){return Math.ceil(O(b,a))},1);T("concat",3,!1,!1,function(a,b){return q(na(arguments,1),function(b,d){return b+P(d,a)},"")},2,null);T("contains",2,!1,!1,function(a,b,c){b=P(b,a);a=P(c,a);return-1!=b.indexOf(a)},2);T("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0);
T("false",2,!1,!1,function(){return!1},0);T("floor",1,!1,!1,function(a,b){return Math.floor(O(b,a))},1);
T("id",4,!1,!1,function(a,b){function c(a){if(E){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return la(b,function(b){return a==b.id})}return null}return e.getElementById(a)}var d=a.a,e=9==d.nodeType?d:d.ownerDocument;a=P(b,a).split(/\s+/);var f=[];p(a,function(a){a=c(a);var b;if(!(b=!a)){a:if(k(f))b=k(a)&&1==a.length?f.indexOf(a,0):-1;else{for(b=0;b<f.length;b++)if(b in f&&f[b]===a)break a;b=-1}b=0<=b}b||f.push(a)});f.sort(Oa);var h=new J;p(f,function(a){L(h,a)});return h},1);
T("lang",2,!1,!1,function(){return!1},1);T("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.h},0);T("local-name",3,!1,!0,function(a,b){return(a=b?hb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);T("name",3,!1,!0,function(a,b){return(a=b?hb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);T("namespace-uri",3,!0,!1,function(){return""},0,1,!0);
T("normalize-space",3,!1,!0,function(a,b){return(b?P(b,a):H(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);T("not",2,!1,!1,function(a,b){return!Q(b,a)},1);T("number",1,!1,!0,function(a,b){return b?O(b,a):+H(a.a)},0,1);T("position",1,!0,!1,function(a){return a.b},0);T("round",1,!1,!1,function(a,b){return Math.round(O(b,a))},1);T("starts-with",2,!1,!1,function(a,b,c){b=P(b,a);a=P(c,a);return!b.lastIndexOf(a,0)},2);T("string",3,!1,!0,function(a,b){return b?P(b,a):H(a.a)},0,1);
T("string-length",1,!1,!0,function(a,b){return(b?P(b,a):H(a.a)).length},0,1);T("substring",3,!1,!1,function(a,b,c,d){c=O(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?O(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=P(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);T("substring-after",3,!1,!1,function(a,b,c){b=P(b,a);a=P(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
T("substring-before",3,!1,!1,function(a,b,c){b=P(b,a);a=P(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);T("sum",1,!1,!1,function(a,b){a=b.a(a).iterator();b=0;for(var c=a.next();c;c=a.next())b+=+H(c);return b},1,1,!0);T("translate",3,!1,!1,function(a,b,c,d){b=P(b,a);c=P(c,a);var e=P(d,a);d={};for(var f=0;f<c.length;f++)a=c.charAt(f),a in d||(d[a]=e.charAt(f));c="";for(f=0;f<b.length;f++)a=b.charAt(f),c+=a in d?d[a]:a;return c},3);T("true",2,!1,!1,function(){return!0},0);function M(a,b){this.j=a;this.c=void 0!==b?b:null;this.b=null;switch(a){case "comment":this.b=8;break;case "text":this.b=3;break;case "processing-instruction":this.b=7;break;case "node":break;default:throw Error("Unexpected argument");}}function vb(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}M.prototype.a=function(a){return null===this.b||this.b==a.nodeType};M.prototype.h=function(){return this.j};
M.prototype.toString=function(){var a="Kind Test: "+this.j;null===this.c||(a+=N(this.c));return a};function wb(a){n.call(this,3);this.c=a.substring(1,a.length-1)}l(wb);wb.prototype.a=function(){return this.c};wb.prototype.toString=function(){return"Literal: "+this.c};function K(a,b){this.o=a.toLowerCase();a="*"==this.o?"*":"http://www.w3.org/1999/xhtml";this.c=b?b.toLowerCase():a}K.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=void 0!==a.localName?a.localName:a.nodeName;return"*"!=this.o&&this.o!=b.toLowerCase()?!1:"*"==this.c?!0:this.c==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};K.prototype.h=function(){return this.o};
K.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.c?"":this.c+":")+this.o};function xb(a){n.call(this,1);this.c=a}l(xb);xb.prototype.a=function(){return this.c};xb.prototype.toString=function(){return"Number: "+this.c};function yb(a,b){n.call(this,a.l);this.j=a;this.c=b;this.i=a.i;this.b=a.b;1==this.c.length&&(a=this.c[0],a.D||a.c!=zb||(a=a.v,"*"!=a.h()&&(this.h={name:a.h(),B:null})))}l(yb);function Ab(){n.call(this,4)}l(Ab);Ab.prototype.a=function(a){var b=new J;a=a.a;9==a.nodeType?L(b,a):L(b,a.ownerDocument);return b};Ab.prototype.toString=function(){return"Root Helper Expression"};function Bb(){n.call(this,4)}l(Bb);Bb.prototype.a=function(a){var b=new J;L(b,a.a);return b};Bb.prototype.toString=function(){return"Context Helper Expression"};
function Cb(a){return"/"==a||"//"==a}yb.prototype.a=function(a){var b=this.j.a(a);if(!(b instanceof J))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.s;c++){var e=a[c],f=b.iterator(e.c.A);if(e.i||e.c!=Db)if(e.i||e.c!=Eb){var h=f.next();for(b=e.a(new D(h));h=f.next();)h=e.a(new D(h)),b=fb(b,h)}else h=f.next(),b=e.a(new D(h));else{for(h=f.next();(b=f.next())&&(!h.contains||h.contains(b))&&b.compareDocumentPosition(h)&8;h=b);b=e.a(new D(h))}}return b};
yb.prototype.toString=function(){var a="Path Expression:"+N(this.j);if(this.c.length){var b=q(this.c,function(a,b){return a+N(b)},"Steps:");a+=N(b)}return a};function Fb(a,b){this.a=a;this.A=!!b}
function rb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=b.iterator(),f=b.s,h,m=0;h=e.next();m++){var v=a.A?f-m:m+1;h=d.a(new D(h,v,f));if("number"==typeof h)v=v==h;else if("string"==typeof h||"boolean"==typeof h)v=!!h;else if(h instanceof J)v=0<h.s;else throw Error("Predicate.evaluate returned an unexpected type.");if(!v){v=e;h=v.h;var A=v.a;if(!A)throw Error("Next must be called at least once before remove.");var W=A.a,A=A.next;W?W.next=A:h.a=A;A?A.a=W:h.b=W;h.s--;v.a=null}}return b}
Fb.prototype.toString=function(){return q(this.a,function(a,b){return a+N(b)},"Predicates:")};function U(a,b,c,d){n.call(this,4);this.c=a;this.v=b;this.j=c||new Fb([]);this.D=!!d;b=this.j;b=0<b.a.length?b.a[0].h:null;a.M&&b&&(a=b.name,a=E?a.toLowerCase():a,this.h={name:a,B:b.B});a:{a=this.j;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.i||1==c.l||0==c.l){a=!0;break a}a=!1}this.i=a}l(U);
U.prototype.a=function(a){var b=a.a,c=this.h,d=null,e=null,f=0;c&&(d=c.name,e=c.B?P(c.B,a):null,f=1);if(this.D)if(this.i||this.c!=Gb)if(b=(new U(Hb,new M("node"))).a(a).iterator(),c=b.next())for(a=this.u(c,d,e,f);c=b.next();)a=fb(a,this.u(c,d,e,f));else a=new J;else a=Ya(this.v,b,d,e),a=rb(this.j,a,f);else a=this.u(a.a,d,e,f);return a};U.prototype.u=function(a,b,c,d){a=this.c.C(this.v,a,b,c);return a=rb(this.j,a,d)};
U.prototype.toString=function(){var a="Step:"+N("Operator: "+(this.D?"//":"/"));this.c.o&&(a+=N("Axis: "+this.c));a+=N(this.v);if(this.j.a.length){var b=q(this.j.a,function(a,b){return a+N(b)},"Predicates:");a+=N(b)}return a};function Ib(a,b,c,d){this.o=a;this.C=b;this.A=c;this.M=d}Ib.prototype.toString=function(){return this.o};var Jb={};function V(a,b,c,d){if(Jb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new Ib(a,b,c,!!d);return Jb[a]=b}
V("ancestor",function(a,b){for(var c=new J;b=b.parentNode;)a.a(b)&&gb(c,b);return c},!0);V("ancestor-or-self",function(a,b){var c=new J;do a.a(b)&&gb(c,b);while(b=b.parentNode);return c},!0);
var zb=V("attribute",function(a,b){var c=new J,d=a.h();if("style"==d&&E&&b.style)return L(c,new F(b.style,b,"style",b.style.cssText)),c;var e=b.attributes;if(e)if(a instanceof M&&null===a.b||"*"==d)for(d=0;a=e[d];d++)E?a.nodeValue&&L(c,Sa(b,a)):L(c,a);else(a=e.getNamedItem(d))&&(E?a.nodeValue&&L(c,Sa(b,a)):L(c,a));return c},!1),Gb=V("child",function(a,b,c,d,e){return(E?cb:db).call(null,a,b,k(c)?c:null,k(d)?d:null,e||new J)},!1,!0);V("descendant",Ya,!1,!0);
var Hb=V("descendant-or-self",function(a,b,c,d){var e=new J;I(b,c,d)&&a.a(b)&&L(e,b);return Ya(a,b,c,d,e)},!1,!0),Db=V("following",function(a,b,c,d){var e=new J;do for(var f=b;f=f.nextSibling;)I(f,c,d)&&a.a(f)&&L(e,f),e=Ya(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);V("following-sibling",function(a,b){for(var c=new J;b=b.nextSibling;)a.a(b)&&L(c,b);return c},!1);V("namespace",function(){return new J},!1);
var Kb=V("parent",function(a,b){var c=new J;if(9==b.nodeType)return c;if(2==b.nodeType)return L(c,b.ownerElement),c;b=b.parentNode;a.a(b)&&L(c,b);return c},!1),Eb=V("preceding",function(a,b,c,d){var e=new J,f=[];do f.unshift(b);while(b=b.parentNode);for(var h=1,m=f.length;h<m;h++){var v=[];for(b=f[h];b=b.previousSibling;)v.unshift(b);for(var A=0,W=v.length;A<W;A++)b=v[A],I(b,c,d)&&a.a(b)&&L(e,b),e=Ya(a,b,c,d,e)}return e},!0,!0);
V("preceding-sibling",function(a,b){for(var c=new J;b=b.previousSibling;)a.a(b)&&gb(c,b);return c},!0);var Lb=V("self",function(a,b){var c=new J;a.a(b)&&L(c,b);return c},!1);function Mb(a){n.call(this,1);this.c=a;this.i=a.i;this.b=a.b}l(Mb);Mb.prototype.a=function(a){return-O(this.c,a)};Mb.prototype.toString=function(){return"Unary Expression: -"+N(this.c)};function Nb(a){n.call(this,4);this.c=a;kb(this,ka(this.c,function(a){return a.i}));lb(this,ka(this.c,function(a){return a.b}))}l(Nb);Nb.prototype.a=function(a){var b=new J;p(this.c,function(c){c=c.a(a);if(!(c instanceof J))throw Error("Path expression must evaluate to NodeSet.");b=fb(b,c)});return b};Nb.prototype.toString=function(){return q(this.c,function(a,b){return a+N(b)},"Union Expression:")};function Ob(a,b){this.a=a;this.b=b}function Pb(a){for(var b,c=[];;){X(a,"Missing right hand side of binary expression.");b=Qb(a);var d=a.a.next();if(!d)break;var e=(d=pb[d]||null)&&d.H;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].H;)b=new mb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new mb(c.pop(),c.pop(),b);return b}function X(a,b){if(Xa(a.a))throw Error(b);}function Rb(a,b){a=a.a.next();if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
function Sb(a){a=a.a.next();if(")"!=a)throw Error("Bad token: "+a);}function Tb(a){a=a.a.next();if(2>a.length)throw Error("Unclosed literal string");return new wb(a)}
function Ub(a){var b=[];if(Cb(G(a.a))){var c=a.a.next();var d=G(a.a);if("/"==c&&(Xa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Ab;d=new Ab;X(a,"Missing next location step.");c=Vb(a,c);b.push(c)}else{a:{c=G(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":a.a.next();c=Pb(a);X(a,'unclosed "("');Rb(a,")");break;case '"':case "'":c=Tb(a);break;default:if(isNaN(+c))if(!vb(c)&&/(?![0-9])[\w]/.test(d)&&"("==G(a.a,
1)){c=a.a.next();c=ub[c]||null;a.a.next();for(d=[];")"!=G(a.a);){X(a,"Missing function argument list.");d.push(Pb(a));if(","!=G(a.a))break;a.a.next()}X(a,"Unclosed function argument list.");Sb(a);c=new sb(c,d)}else{c=null;break a}else c=new xb(+a.a.next())}"["==G(a.a)&&(d=new Fb(Wb(a)),c=new qb(c,d))}if(c)if(Cb(G(a.a)))d=c;else return c;else c=Vb(a,"/"),d=new Bb,b.push(c)}for(;Cb(G(a.a));)c=a.a.next(),X(a,"Missing next location step."),c=Vb(a,c),b.push(c);return new yb(d,b)}
function Vb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==G(a.a)){var c=new U(Lb,new M("node"));a.a.next();return c}if(".."==G(a.a))return c=new U(Kb,new M("node")),a.a.next(),c;if("@"==G(a.a)){var d=zb;a.a.next();X(a,"Missing attribute name")}else if("::"==G(a.a,1)){if(!/(?![0-9])[\w]/.test(G(a.a).charAt(0)))throw Error("Bad token: "+a.a.next());var e=a.a.next();d=Jb[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();X(a,"Missing node name")}else d=Gb;e=
G(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==G(a.a,1)){if(!vb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!vb(e))throw Error("Invalid type name: "+e);Rb(a,"(");X(a,"Bad nodetype");var f=G(a.a).charAt(0),h=null;if('"'==f||"'"==f)h=Tb(a);X(a,"Bad nodetype");Sb(a);e=new M(e,h)}else if(e=a.a.next(),f=e.indexOf(":"),-1==f)e=new K(e);else{var h=e.substring(0,f);if("*"==h)var m="*";else if(m=a.b(h),!m)throw Error("Namespace prefix not declared: "+h);e=e.substr(f+1);e=new K(e,m)}else throw Error("Bad token: "+
a.a.next());a=new Fb(Wb(a),d.A);return c||new U(d,e,a,"//"==b)}function Wb(a){for(var b=[];"["==G(a.a);){a.a.next();X(a,"Missing predicate expression.");var c=Pb(a);b.push(c);X(a,"Unclosed predicate expression.");Rb(a,"]")}return b}function Qb(a){if("-"==G(a.a))return a.a.next(),new Mb(Qb(a));var b=Ub(a);if("|"!=G(a.a))a=b;else{for(b=[b];"|"==a.a.next();)X(a,"Missing next union location path."),b.push(Ub(a));a.a.a--;a=new Nb(b)}return a};function Xb(a){switch(a.nodeType){case 1:return fa(Yb,a);case 9:return Xb(a.documentElement);case 11:case 10:case 6:case 12:return Zb;default:return a.parentNode?Xb(a.parentNode):Zb}}function Zb(){return null}function Yb(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?Yb(a.parentNode,b):null};function $b(a,b){if(!a.length)throw Error("Empty XPath expression.");a=Ua(a);if(Xa(a))throw Error("Invalid XPath expression.");b?"function"==ba(b)||(b=ea(b.lookupNamespaceURI,b)):b=function(){return null};var c=Pb(new Ob(a,b));if(!Xa(a))throw Error("Bad token: "+a.next());this.evaluate=function(a,b){a=c.a(new D(a));return new Y(a,b)}}
function Y(a,b){if(!b)if(a instanceof J)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 J))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof J?ib(a):""+a;break;case 1:this.numberValue=a instanceof J?+ib(a):+a;break;case 3:this.booleanValue=a instanceof J?0<a.s:!!a;break;case 4:case 5:case 6:case 7:var c=
a.iterator();var d=[];for(var e=c.next();e;e=c.next())d.push(e instanceof F?e.a:e);this.snapshotLength=a.s;this.invalidIteratorState=!1;break;case 8:case 9:a=hb(a);this.singleNodeValue=a instanceof F?a.a:a;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>=d.length?null:d[f++]};this.snapshotItem=function(a){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");
return a>=d.length||0>a?null:d[a]}}Y.ANY_TYPE=0;Y.NUMBER_TYPE=1;Y.STRING_TYPE=2;Y.BOOLEAN_TYPE=3;Y.UNORDERED_NODE_ITERATOR_TYPE=4;Y.ORDERED_NODE_ITERATOR_TYPE=5;Y.UNORDERED_NODE_SNAPSHOT_TYPE=6;Y.ORDERED_NODE_SNAPSHOT_TYPE=7;Y.ANY_UNORDERED_NODE_TYPE=8;Y.FIRST_ORDERED_NODE_TYPE=9;function ac(a){this.lookupNamespaceURI=Xb(a)}
aa("wgxpath.install",function(a,b){a=a||g;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=Y,c.evaluate=function(a,b,c,h){return(new $b(a,c)).evaluate(b,h)},c.createExpression=function(a,b){return new $b(a,b)},c.createNSResolver=function(a){return new ac(a)}});wa||C&&C&&B(3.6);u&&Ma(10);Ia&&C&&B(4);function bc(a,b){this.w={};this.m=[];this.a=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){if(a instanceof bc){d=cc(a);dc(a);var e=[];for(c=0;c<a.m.length;c++)e.push(a.w[a.m[c]])}else{var c=[],f=0;for(d in a)c[f++]=d;d=c;c=[];f=0;for(e in a)c[f++]=a[e];e=c}for(c=0;c<d.length;c++)this.set(d[c],e[c])}}function cc(a){dc(a);return a.m.concat()}
function dc(a){var b,c;if(a.a!=a.m.length){for(b=c=0;c<a.m.length;){var d=a.m[c];Object.prototype.hasOwnProperty.call(a.w,d)&&(a.m[b++]=d);c++}a.m.length=b}if(a.a!=a.m.length){var e={};for(b=c=0;c<a.m.length;)d=a.m[c],Object.prototype.hasOwnProperty.call(e,d)||(a.m[b++]=d,e[d]=1),c++;a.m.length=b}}bc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.w,a)?this.w[a]:b};
bc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.w,a)||(this.a++,this.m.push(a));this.w[a]=b};var ec={};function Z(a,b,c){var d=typeof a;("object"==d&&null!=a||"function"==d)&&(a=w?a.f:a.g);a=new fc(a);!b||b in ec&&!c||(ec[b]={key:a,shift:!1},c&&(ec[c]={key:a,shift:!0}));return a}function fc(a){this.code=a}Z(8);Z(9);Z(13);var gc=Z(16),hc=Z(17),ic=Z(18);Z(19);Z(20);Z(27);Z(32," ");Z(33);Z(34);Z(35);Z(36);Z(37);Z(38);Z(39);Z(40);Z(44);Z(45);Z(46);Z(48,"0",")");Z(49,"1","!");Z(50,"2","@");Z(51,"3","#");Z(52,"4","$");Z(53,"5","%");Z(54,"6","^");Z(55,"7","&");Z(56,"8","*");Z(57,"9","(");
Z(65,"a","A");Z(66,"b","B");Z(67,"c","C");Z(68,"d","D");Z(69,"e","E");Z(70,"f","F");Z(71,"g","G");Z(72,"h","H");Z(73,"i","I");Z(74,"j","J");Z(75,"k","K");Z(76,"l","L");Z(77,"m","M");Z(78,"n","N");Z(79,"o","O");Z(80,"p","P");Z(81,"q","Q");Z(82,"r","R");Z(83,"s","S");Z(84,"t","T");Z(85,"u","U");Z(86,"v","V");Z(87,"w","W");Z(88,"x","X");Z(89,"y","Y");Z(90,"z","Z");var jc=Z(ya?{f:91,g:91}:xa?{f:224,g:91}:{f:0,g:91});Z(ya?{f:92,g:92}:xa?{f:224,g:93}:{f:0,g:92});Z(ya?{f:93,g:93}:xa?{f:0,g:0}:{f:93,g:null});
Z({f:96,g:96},"0");Z({f:97,g:97},"1");Z({f:98,g:98},"2");Z({f:99,g:99},"3");Z({f:100,g:100},"4");Z({f:101,g:101},"5");Z({f:102,g:102},"6");Z({f:103,g:103},"7");Z({f:104,g:104},"8");Z({f:105,g:105},"9");Z({f:106,g:106},"*");Z({f:107,g:107},"+");Z({f:109,g:109},"-");Z({f:110,g:110},".");Z({f:111,g:111},"/");Z(144);Z(112);Z(113);Z(114);Z(115);Z(116);Z(117);Z(118);Z(119);Z(120);Z(121);Z(122);Z(123);Z({f:107,g:187},"=","+");Z(108,",");Z({f:109,g:189},"-","_");Z(188,",","<");Z(190,".",">");Z(191,"/","?");
Z(192,"`","~");Z(219,"[","{");Z(220,"\\","|");Z(221,"]","}");Z({f:59,g:186},";",":");Z(222,"'",'"');var kc=new bc;kc.set(1,gc);kc.set(2,hc);kc.set(4,ic);kc.set(8,jc);(function(a){var b=new bc;p(cc(a),function(c){b.set(a.get(c).code,c)});return b})(kc);w&&Ma(12);wa||w&&Ma(3.5)||u&&Ma(8);aa("_",function(){return JSON.stringify({status:0,value:window.location.reload()})});; return this._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);}