UNPKG

webdriverio-automation

Version:

WebdriverIO-Automation android ios project

90 lines (84 loc) 38.2 kB
function(){return function(){var g=this;function k(a){return"string"==typeof a}function ba(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 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 da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function fa(a,b,c){return a.call.apply(a.bind,arguments)} function ga(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 ha(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha=fa:ha=ga;return ha.apply(null,arguments)} function ia(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 ja=Date.now||function(){return+new Date};function m(a,b){function c(){}c.prototype=b.prototype;a.P=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.O=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 ka=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}; function la(a,b){var c=0;a=ka(String(a)).split(".");b=ka(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=ma(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||ma(0==f[2].length,0==h[2].length)||ma(f[2],h[2]);f=f[3];h=h[3]}while(!c)}return c}function ma(a,b){return a<b?-1:a>b?1:0};function n(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 na(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 l=f[h];b.call(void 0,l,h,a)&&(d[e++]=l)}return d}function oa(a,b){for(var c=a.length,d=Array(c),e=k(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 p(a,b,c){var d=c;n(a,function(c,f){d=b.call(void 0,d,c,f,a)});return d} function pa(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 qa(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 ra(a){return Array.prototype.concat.apply([],arguments)}function sa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function q(a,b){this.code=a;this.a=r[a]||ta;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}m(q,Error);var ta="unknown error",r={15:"element not selectable",11:"element not visible"};r[31]=ta;r[30]=ta;r[24]="invalid cookie domain";r[29]="invalid element coordinates";r[12]="invalid element state"; r[32]="invalid selector";r[51]="invalid selector";r[52]="invalid selector";r[17]="javascript error";r[405]="unsupported operation";r[34]="move target out of bounds";r[27]="no such alert";r[7]="no such element";r[8]="no such frame";r[23]="no such window";r[28]="script timeout";r[33]="session not created";r[10]="stale element reference";r[21]="timeout";r[25]="unable to set cookie";r[26]="unexpected alert open";r[13]=ta;r[9]="unknown command";q.prototype.toString=function(){return this.name+": "+this.message};var t;a:{var ua=g.navigator;if(ua){var va=ua.userAgent;if(va){t=va;break a}}t=""}function u(a){return-1!=t.indexOf(a)};function wa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function xa(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function v(a,b){return null!==a&&b in a}function ya(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function za(){return(u("Chrome")||u("CriOS"))&&!u("Edge")};function Aa(){return u("iPhone")&&!u("iPod")&&!u("iPad")};function Ba(a,b){var c=Ca;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Da=u("Opera"),w=u("Trident")||u("MSIE"),Ea=u("Edge"),Fa=u("Gecko")&&!(-1!=t.toLowerCase().indexOf("webkit")&&!u("Edge"))&&!(u("Trident")||u("MSIE"))&&!u("Edge"),Ga=-1!=t.toLowerCase().indexOf("webkit")&&!u("Edge"),Ha=u("Macintosh"),Ia=u("Windows");function Ja(){var a=g.document;return a?a.documentMode:void 0}var Ka; a:{var La="",Ma=function(){var a=t;if(Fa)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Ea)return/Edge\/([\d\.]+)/.exec(a);if(w)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ga)return/WebKit\/(\S+)/.exec(a);if(Da)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ma&&(La=Ma?Ma[1]:"");if(w){var Na=Ja();if(null!=Na&&Na>parseFloat(La)){Ka=String(Na);break a}}Ka=La}var Ca={};function Oa(a){return Ba(a,function(){return 0<=la(Ka,a)})}var Pa;var Qa=g.document; Pa=Qa&&w?Ja()||("CSS1Compat"==Qa.compatMode?parseInt(Ka,10):5):void 0;var Ra=u("Firefox"),Sa=Aa()||u("iPod"),Ta=u("iPad"),Ua=u("Android")&&!(za()||u("Firefox")||u("Opera")||u("Silk")),Va=za(),Wa=u("Safari")&&!(za()||u("Coast")||u("Opera")||u("Edge")||u("Silk")||u("Android"))&&!(Aa()||u("iPad")||u("iPod"));function y(a){return(a=a.exec(t))?a[1]:""}(function(){if(Ra)return y(/Firefox\/([0-9.]+)/);if(w||Ea||Da)return Ka;if(Va)return Aa()||u("iPad")||u("iPod")?y(/CriOS\/([0-9.]+)/):y(/Chrome\/([0-9.]+)/);if(Wa&&!(Aa()||u("iPad")||u("iPod")))return y(/Version\/([0-9.]+)/);if(Sa||Ta){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(t);if(a)return a[1]+"."+a[2]}else if(Ua)return(a=y(/Android\s+([0-9.]+)/))?a:y(/Version\/([0-9.]+)/);return""})();var Xa,z;function Ya(a){return A?Xa(a):w?0<=la(Pa,a):Oa(a)}var A=function(){if(!Fa)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;Xa=function(a){return 0<=c.compare(d,""+a)};z=function(a){c.compare(e,""+a)};return!0}();Ua&&A&&z(2.3);Ua&&A&&z(4); Wa&&A&&z(6);function Za(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function $a(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 ab(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(w&&!(9<=Number(Pa))){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?bb(a,b):!c&&$a(e,b)?-1*cb(a,b):!d&&$a(f,a)?cb(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 cb(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return bb(b,a)}function bb(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function db(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};function B(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};/* 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 C(a,b,c){this.a=a;this.b=b||1;this.h=c||1};var E=w&&!(9<=Number(Pa)),eb=w&&!(8<=Number(Pa));function F(a,b,c,d){this.a=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.parentNode=this.ownerElement=b}function fb(a,b){var c=eb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new F(b,a,b.nodeName,c)};function gb(a){this.b=a;this.a=0}function hb(a){a=a.match(ib);for(var b=0;b<a.length;b++)jb.test(a[b])&&a.splice(b,1);return new gb(a)}var ib=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,jb=/^\s/;function G(a,b){return a.b[a.a+(b||0)]}gb.prototype.next=function(){return this.b[this.a++]};function kb(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}eb&&"class"==b&&(b="className");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function lb(a,b,c,d,e){return(E?mb:nb).call(null,a,b,k(c)?c:null,k(d)?d:null,e||new J)} function mb(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=ob(a);if("*"!=h&&(f=b.getElementsByTagName(h),!f))return e;if(c){var l=[];for(a=0;b=f[a++];)I(b,c,d)&&l.push(b);f=l}for(a=0;b=f[a++];)"*"==h&&"!"==b.tagName||L(e,b);return e}pb(a,b,c,d,e);return e} function nb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!w?(b=b.getElementsByName(d),n(b,function(b){a.a(b)&&L(e,b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),n(b,function(b){b.className==d&&a.a(b)&&L(e,b)})):a instanceof M?pb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.h()),n(b,function(a){I(a,c,d)&&L(e,a)}));return e} function qb(a,b,c,d,e){var f;if((a instanceof K||8==a.b||c&&null===a.b)&&(f=b.childNodes)){var h=ob(a);if("*"!=h&&(f=na(f,function(a){return a.tagName&&a.tagName.toLowerCase()==h}),!f))return e;c&&(f=na(f,function(a){return I(a,c,d)}));n(f,function(a){"*"==h&&("!"==a.tagName||"*"==h&&1!=a.nodeType)||L(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)I(b,c,d)&&a.a(b)&&L(e,b);return e} function pb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.a(b)&&L(e,b),pb(a,b,c,d,e)}function ob(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 sb(a){this.node=a;this.next=this.a=null}function tb(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<ab(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 ub(a,b){b=new sb(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 sb(b);b.a=a.b;a.a?a.b.next=b:a.a=a.b=b;a.b=b;a.s++}function vb(a){return(a=a.a)?a.node:null}function wb(a){return(a=vb(a))?H(a):""}J.prototype.iterator=function(a){return new xb(this,!!a)};function xb(a,b){this.h=a;this.b=(this.A=b)?a.b:a.a;this.a=null}xb.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 O(a){return"\n "+a.toString().split("\n").join("\n ")}function yb(a,b){a.i=b}function zb(a,b){a.b=b}function P(a,b){a=a.a(b);return a instanceof J?+wb(a):+a}function Q(a,b){a=a.a(b);return a instanceof J?wb(a):""+a}function R(a,b){a=a.a(b);return a instanceof J?!!a.s:!!a};function Ab(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==Bb&&(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})}m(Ab,N); function S(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,l=f.next();l;l=f.next()){switch(h){case "number":l=+H(l);break;case "boolean":l=!!H(l);break;case "string":l=H(l);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(l, d)||e==c&&a(d,l))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)}Ab.prototype.a=function(a){return this.c.u(this.j,this.v,a)};Ab.prototype.toString=function(){var a="Binary Expression: "+this.c,a=a+O(this.j);return a+=O(this.v)};function Cb(a,b,c,d){this.M=a;this.I=b;this.l=c;this.u=d}Cb.prototype.toString=function(){return this.M};var Db={}; function T(a,b,c,d){if(Db.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Cb(a,b,c,d);return Db[a.toString()]=a}T("div",6,1,function(a,b,c){return P(a,c)/P(b,c)});T("mod",6,1,function(a,b,c){return P(a,c)%P(b,c)});T("*",6,1,function(a,b,c){return P(a,c)*P(b,c)});T("+",5,1,function(a,b,c){return P(a,c)+P(b,c)});T("-",5,1,function(a,b,c){return P(a,c)-P(b,c)});T("<",4,2,function(a,b,c){return S(function(a,b){return a<b},a,b,c)}); T(">",4,2,function(a,b,c){return S(function(a,b){return a>b},a,b,c)});T("<=",4,2,function(a,b,c){return S(function(a,b){return a<=b},a,b,c)});T(">=",4,2,function(a,b,c){return S(function(a,b){return a>=b},a,b,c)});var Bb=T("=",3,2,function(a,b,c){return S(function(a,b){return a==b},a,b,c,!0)});T("!=",3,2,function(a,b,c){return S(function(a,b){return a!=b},a,b,c,!0)});T("and",2,2,function(a,b,c){return R(a,c)&&R(b,c)});T("or",1,2,function(a,b,c){return R(a,c)||R(b,c)});function Eb(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}m(Eb,N);Eb.prototype.a=function(a){a=this.c.a(a);return Fb(this.j,a)};Eb.prototype.toString=function(){var a="Filter:"+O(this.c);return a+=O(this.j)};function Gb(a,b){if(b.length<a.H)throw Error("Function "+a.o+" expects at least"+a.H+" 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.L&&n(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;yb(this,a.i||pa(b,function(a){return a.i}));zb(this,a.K&&!b.length||a.J&&!!b.length||pa(b,function(a){return a.b}))} m(Gb,N);Gb.prototype.a=function(a){return this.C.u.apply(null,ra(a,this.c))};Gb.prototype.toString=function(){var a="Function: "+this.C;if(this.c.length)var b=p(this.c,function(a,b){return a+O(b)},"Arguments:"),a=a+O(b);return a};function Hb(a,b,c,d,e,f,h,l,x){this.o=a;this.l=b;this.i=c;this.K=d;this.J=e;this.u=f;this.H=h;this.F=void 0!==l?l:h;this.L=!!x}Hb.prototype.toString=function(){return this.o};var Ib={}; function U(a,b,c,d,e,f,h,l){if(Ib.hasOwnProperty(a))throw Error("Function already created: "+a+".");Ib[a]=new Hb(a,b,c,d,!1,e,f,h,l)}U("boolean",2,!1,!1,function(a,b){return R(b,a)},1);U("ceiling",1,!1,!1,function(a,b){return Math.ceil(P(b,a))},1);U("concat",3,!1,!1,function(a,b){return p(sa(arguments,1),function(b,d){return b+Q(d,a)},"")},2,null);U("contains",2,!1,!1,function(a,b,c){b=Q(b,a);a=Q(c,a);return-1!=b.indexOf(a)},2);U("count",1,!1,!1,function(a,b){return b.a(a).s},1,1,!0); U("false",2,!1,!1,function(){return!1},0);U("floor",1,!1,!1,function(a,b){return Math.floor(P(b,a))},1); U("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 qa(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=Q(b,a).split(/\s+/);var f=[];n(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(ab);var h=new J;n(f,function(a){L(h,a)});return h},1); U("lang",2,!1,!1,function(){return!1},1);U("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.h},0);U("local-name",3,!1,!0,function(a,b){return(a=b?vb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);U("name",3,!1,!0,function(a,b){return(a=b?vb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);U("namespace-uri",3,!0,!1,function(){return""},0,1,!0); U("normalize-space",3,!1,!0,function(a,b){return(b?Q(b,a):H(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);U("not",2,!1,!1,function(a,b){return!R(b,a)},1);U("number",1,!1,!0,function(a,b){return b?P(b,a):+H(a.a)},0,1);U("position",1,!0,!1,function(a){return a.b},0);U("round",1,!1,!1,function(a,b){return Math.round(P(b,a))},1);U("starts-with",2,!1,!1,function(a,b,c){b=Q(b,a);a=Q(c,a);return!b.lastIndexOf(a,0)},2);U("string",3,!1,!0,function(a,b){return b?Q(b,a):H(a.a)},0,1); U("string-length",1,!1,!0,function(a,b){return(b?Q(b,a):H(a.a)).length},0,1);U("substring",3,!1,!1,function(a,b,c,d){c=P(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?P(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=Q(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);U("substring-after",3,!1,!1,function(a,b,c){b=Q(b,a);a=Q(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2); U("substring-before",3,!1,!1,function(a,b,c){b=Q(b,a);a=Q(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);U("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);U("translate",3,!1,!1,function(a,b,c,d){b=Q(b,a);c=Q(c,a);var e=Q(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);U("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 Jb(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+=O(this.c));return a};function Kb(a){N.call(this,3);this.c=a.substring(1,a.length-1)}m(Kb,N);Kb.prototype.a=function(){return this.c};Kb.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 Lb(a){N.call(this,1);this.c=a}m(Lb,N);Lb.prototype.a=function(){return this.c};Lb.prototype.toString=function(){return"Number: "+this.c};function Mb(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!=Nb||(a=a.v,"*"!=a.h()&&(this.h={name:a.h(),B:null})))}m(Mb,N);function Ob(){N.call(this,4)}m(Ob,N);Ob.prototype.a=function(a){var b=new J;a=a.a;9==a.nodeType?L(b,a):L(b,a.ownerDocument);return b};Ob.prototype.toString=function(){return"Root Helper Expression"};function Pb(){N.call(this,4)}m(Pb,N);Pb.prototype.a=function(a){var b=new J;L(b,a.a);return b};Pb.prototype.toString=function(){return"Context Helper Expression"}; function Qb(a){return"/"==a||"//"==a}Mb.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!=Rb)if(e.i||e.c!=Sb){var h=f.next();for(b=e.a(new C(h));h=f.next();)h=e.a(new C(h)),b=tb(b,h)}else h=f.next(),b=e.a(new C(h));else{for(h=f.next();(b=f.next())&&(!h.contains||h.contains(b))&&b.compareDocumentPosition(h)&8;h=b);b=e.a(new C(h))}}return b}; Mb.prototype.toString=function(){var a="Path Expression:"+O(this.j);if(this.c.length){var b=p(this.c,function(a,b){return a+O(b)},"Steps:");a+=O(b)}return a};function Tb(a,b){this.a=a;this.A=!!b} function Fb(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,l=0;h=e.next();l++){var x=a.A?f-l:l+1;h=d.a(new C(h,x,f));if("number"==typeof h)x=x==h;else if("string"==typeof h||"boolean"==typeof h)x=!!h;else if(h instanceof J)x=0<h.s;else throw Error("Predicate.evaluate returned an unexpected type.");if(!x){x=e;h=x.h;var D=x.a;if(!D)throw Error("Next must be called at least once before remove.");var aa=D.a,D=D.next;aa?aa.next=D:h.a=D;D?D.a=aa:h.b=aa;h.s--;x.a=null}}return b} Tb.prototype.toString=function(){return p(this.a,function(a,b){return a+O(b)},"Predicates:")};function V(a,b,c,d){N.call(this,4);this.c=a;this.v=b;this.j=c||new Tb([]);this.D=!!d;b=this.j;b=0<b.a.length?b.a[0].h:null;a.N&&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}m(V,N); V.prototype.a=function(a){var b=a.a,c=this.h,d=null,e=null,f=0;c&&(d=c.name,e=c.B?Q(c.B,a):null,f=1);if(this.D)if(this.i||this.c!=Ub)if(b=(new V(Vb,new M("node"))).a(a).iterator(),c=b.next())for(a=this.u(c,d,e,f);c=b.next();)a=tb(a,this.u(c,d,e,f));else a=new J;else a=lb(this.v,b,d,e),a=Fb(this.j,a,f);else a=this.u(a.a,d,e,f);return a};V.prototype.u=function(a,b,c,d){a=this.c.C(this.v,a,b,c);return a=Fb(this.j,a,d)}; V.prototype.toString=function(){var a="Step:"+O("Operator: "+(this.D?"//":"/"));this.c.o&&(a+=O("Axis: "+this.c));a+=O(this.v);if(this.j.a.length){var b=p(this.j.a,function(a,b){return a+O(b)},"Predicates:");a+=O(b)}return a};function Wb(a,b,c,d){this.o=a;this.C=b;this.A=c;this.N=d}Wb.prototype.toString=function(){return this.o};var Xb={};function W(a,b,c,d){if(Xb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new Wb(a,b,c,!!d);return Xb[a]=b} W("ancestor",function(a,b){for(var c=new J;b=b.parentNode;)a.a(b)&&ub(c,b);return c},!0);W("ancestor-or-self",function(a,b){var c=new J;do a.a(b)&&ub(c,b);while(b=b.parentNode);return c},!0); var Nb=W("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,fb(b,a)):L(c,a);else(a=e.getNamedItem(d))&&(E?a.nodeValue&&L(c,fb(b,a)):L(c,a));return c},!1),Ub=W("child",function(a,b,c,d,e){return(E?qb:rb).call(null,a,b,k(c)?c:null,k(d)?d:null,e||new J)},!1,!0);W("descendant",lb,!1,!0); var Vb=W("descendant-or-self",function(a,b,c,d){var e=new J;I(b,c,d)&&a.a(b)&&L(e,b);return lb(a,b,c,d,e)},!1,!0),Rb=W("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=lb(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);W("following-sibling",function(a,b){for(var c=new J;b=b.nextSibling;)a.a(b)&&L(c,b);return c},!1);W("namespace",function(){return new J},!1); var Yb=W("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),Sb=W("preceding",function(a,b,c,d){var e=new J,f=[];do f.unshift(b);while(b=b.parentNode);for(var h=1,l=f.length;h<l;h++){var x=[];for(b=f[h];b=b.previousSibling;)x.unshift(b);for(var D=0,aa=x.length;D<aa;D++)b=x[D],I(b,c,d)&&a.a(b)&&L(e,b),e=lb(a,b,c,d,e)}return e},!0,!0); W("preceding-sibling",function(a,b){for(var c=new J;b=b.previousSibling;)a.a(b)&&ub(c,b);return c},!0);var Zb=W("self",function(a,b){var c=new J;a.a(b)&&L(c,b);return c},!1);function $b(a){N.call(this,1);this.c=a;this.i=a.i;this.b=a.b}m($b,N);$b.prototype.a=function(a){return-P(this.c,a)};$b.prototype.toString=function(){return"Unary Expression: -"+O(this.c)};function ac(a){N.call(this,4);this.c=a;yb(this,pa(this.c,function(a){return a.i}));zb(this,pa(this.c,function(a){return a.b}))}m(ac,N);ac.prototype.a=function(a){var b=new J;n(this.c,function(c){c=c.a(a);if(!(c instanceof J))throw Error("Path expression must evaluate to NodeSet.");b=tb(b,c)});return b};ac.prototype.toString=function(){return p(this.c,function(a,b){return a+O(b)},"Union Expression:")};function bc(a,b){this.a=a;this.b=b}function cc(a){for(var b,c=[];;){X(a,"Missing right hand side of binary expression.");b=dc(a);var d=a.a.next();if(!d)break;var e=(d=Db[d]||null)&&d.I;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].I;)b=new Ab(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new Ab(c.pop(),c.pop(),b);return b}function X(a,b){if(kb(a.a))throw Error(b);}function ec(a,b){a=a.a.next();if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);} function fc(a){a=a.a.next();if(")"!=a)throw Error("Bad token: "+a);}function gc(a){a=a.a.next();if(2>a.length)throw Error("Unclosed literal string");return new Kb(a)} function hc(a){var b=[];if(Qb(G(a.a))){var c=a.a.next();var d=G(a.a);if("/"==c&&(kb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Ob;d=new Ob;X(a,"Missing next location step.");c=ic(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=cc(a);X(a,'unclosed "("');ec(a,")");break;case '"':case "'":c=gc(a);break;default:if(isNaN(+c))if(!Jb(c)&&/(?![0-9])[\w]/.test(d)&&"("==G(a.a, 1)){c=a.a.next();c=Ib[c]||null;a.a.next();for(d=[];")"!=G(a.a);){X(a,"Missing function argument list.");d.push(cc(a));if(","!=G(a.a))break;a.a.next()}X(a,"Unclosed function argument list.");fc(a);c=new Gb(c,d)}else{c=null;break a}else c=new Lb(+a.a.next())}"["==G(a.a)&&(d=new Tb(jc(a)),c=new Eb(c,d))}if(c)if(Qb(G(a.a)))d=c;else return c;else c=ic(a,"/"),d=new Pb,b.push(c)}for(;Qb(G(a.a));)c=a.a.next(),X(a,"Missing next location step."),c=ic(a,c),b.push(c);return new Mb(d,b)} function ic(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==G(a.a)){var c=new V(Zb,new M("node"));a.a.next();return c}if(".."==G(a.a))return c=new V(Yb,new M("node")),a.a.next(),c;if("@"==G(a.a)){var d=Nb;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=Xb[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();X(a,"Missing node name")}else d=Ub;e= G(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==G(a.a,1)){if(!Jb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Jb(e))throw Error("Invalid type name: "+e);ec(a,"(");X(a,"Bad nodetype");var f=G(a.a).charAt(0),h=null;if('"'==f||"'"==f)h=gc(a);X(a,"Bad nodetype");fc(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 l="*";else if(l=a.b(h),!l)throw Error("Namespace prefix not declared: "+h);e=e.substr(f+1);e=new K(e,l)}else throw Error("Bad token: "+ a.a.next());a=new Tb(jc(a),d.A);return c||new V(d,e,a,"//"==b)}function jc(a){for(var b=[];"["==G(a.a);){a.a.next();X(a,"Missing predicate expression.");var c=cc(a);b.push(c);X(a,"Unclosed predicate expression.");ec(a,"]")}return b}function dc(a){if("-"==G(a.a))return a.a.next(),new $b(dc(a));var b=hc(a);if("|"!=G(a.a))a=b;else{for(b=[b];"|"==a.a.next();)X(a,"Missing next union location path."),b.push(hc(a));a.a.a--;a=new ac(b)}return a};function kc(a){switch(a.nodeType){case 1:return ia(lc,a);case 9:return kc(a.documentElement);case 11:case 10:case 6:case 12:return mc;default:return a.parentNode?kc(a.parentNode):mc}}function mc(){return null}function lc(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?lc(a.parentNode,b):null};function nc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=hb(a);if(kb(a))throw Error("Invalid XPath expression.");b?"function"==ca(b)||(b=ha(b.lookupNamespaceURI,b)):b=function(){return null};var c=cc(new bc(a,b));if(!kb(a))throw Error("Bad token: "+a.next());this.evaluate=function(a,b){a=c.a(new C(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?wb(a):""+a;break;case 1:this.numberValue=a instanceof J?+wb(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=vb(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 oc(a){this.lookupNamespaceURI=kc(a)} ba("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 nc(a,c)).evaluate(b,h)},c.createExpression=function(a,b){return new nc(a,b)},c.createNSResolver=function(a){return new oc(a)}});var pc="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");function qc(a){return pa(pc,function(b){return B(a,b)})?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&B(a,"OPTGROUP")||B(a,"OPTION")?qc(a.parentNode):!db(a,function(a){var b=a.parentNode;if(b&&B(b,"FIELDSET")&&b.disabled){if(!B(a,"LEGEND"))return!0;for(;a=void 0!==a.previousElementSibling?a.previousElementSibling:Za(a.previousSibling);)if(B(a,"LEGEND"))return!0}return!1}):!0};Ga||A&&A&&z(3.6);w&&Ya(10);Ua&&A&&z(4);function rc(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 rc){d=sc(a);tc(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 sc(a){tc(a);return a.m.concat()} function tc(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}}rc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.w,a)?this.w[a]:b}; rc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.w,a)||(this.a++,this.m.push(a));this.w[a]=b};var uc={};function Z(a,b,c){ea(a)&&(a=Fa?a.f:a.g);a=new vc(a);!b||b in uc&&!c||(uc[b]={key:a,shift:!1},c&&(uc[c]={key:a,shift:!0}));return a}function vc(a){this.code=a}Z(8);Z(9);Z(13);var wc=Z(16),xc=Z(17),yc=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 zc=Z(Ia?{f:91,g:91}:Ha?{f:224,g:91}:{f:0,g:91});Z(Ia?{f:92,g:92}:Ha?{f:224,g:93}:{f:0,g:92});Z(Ia?{f:93,g:93}:Ha?{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 Ac=new rc;Ac.set(1,wc);Ac.set(2,xc);Ac.set(4,yc);Ac.set(8,zc);(function(a){var b=new rc;n(sc(a),function(c){b.set(a.get(c).code,c)});return b})(Ac);Fa&&Ya(12);function Bc(){} function Cc(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==ca(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Cc(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Dc(d,c),c.push(":"),Cc(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Dc(b,c);break;case "number":c.push(isFinite(b)&& !isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}var Ec={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Fc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g; function Dc(a,b){b.push('"',a.replace(Fc,function(a){var b=Ec[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Ec[a]=b);return b}),'"')};Ga||Fa&&Ya(3.5)||w&&Ya(8);function Gc(a){function b(a,d){switch(ca(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return oa(a,function(a){return b(a,d)});case "object":if(0<=d.indexOf(a))throw new q(17,"Recursive object cannot be transferred");if(v(a,"nodeType")&&(1==a.nodeType||9==a.nodeType)){var c={};c.ELEMENT=Hc(a);return c}if(v(a,"document"))return c={},c.WINDOW=Hc(a),c;d.push(a);if(da(a))return oa(a,function(a){return b(a,d)});a=wa(a,function(a,b){return"number"== typeof b||k(b)});return xa(a,function(a){return b(a,d)});default:return null}}return b(a,[])}function Ic(a,b){return"array"==ca(a)?oa(a,function(a){return Ic(a,b)}):ea(a)?"function"==typeof a?a:v(a,"ELEMENT")?Jc(a.ELEMENT,b):v(a,"WINDOW")?Jc(a.WINDOW,b):xa(a,function(a){return Ic(a,b)}):a}function Kc(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.G=ja());b.G||(b.G=ja());return b}function Hc(a){var b=Kc(a.ownerDocument),c=ya(b,function(b){return b==a});c||(c=":wdc:"+b.G++,b[c]=a);return c} function Jc(a,b){a=decodeURIComponent(a);b=b||document;var c=Kc(b);if(!v(c,a))throw new q(10,"Element does not exist in cache");var d=c[a];if(v(d,"setInterval")){if(d.closed)throw delete c[a],new q(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e=e.parentNode}delete c[a];throw new q(10,"Element is no longer attached to the DOM");};ba("_",function(a,b){a=[a];var c=qc;try{var d;b?d=Jc(b.WINDOW):d=window;var e=Ic(a,d.document),f=c.apply(null,e);var h={status:0,value:Gc(f)}}catch(l){h={status:v(l,"code")?l.code:13,value:{message:l.message}}}b=[];Cc(new Bc,h,b);return b.join("")});; return this._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?window.navigator:null,document:typeof window!='undefined'?window.document:null}, arguments);}