UNPKG

webdriverio-automation

Version:

WebdriverIO-Automation android ios project

93 lines (87 loc) 38.8 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 l(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 m=f[h];b.call(void 0,m,h,a)&&(d[e++]=m)}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||""}l(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 y;var Pa=g.document; y=Pa&&w?Ja()||("CSS1Compat"==Pa.compatMode?parseInt(Ka,10):5):void 0;var Qa=u("Firefox"),Ra=Aa()||u("iPod"),Sa=u("iPad"),Ta=u("Android")&&!(za()||u("Firefox")||u("Opera")||u("Silk")),Ua=za(),Va=u("Safari")&&!(za()||u("Coast")||u("Opera")||u("Edge")||u("Silk")||u("Android"))&&!(Aa()||u("iPad")||u("iPod"));function z(a){return(a=a.exec(t))?a[1]:""}(function(){if(Qa)return z(/Firefox\/([0-9.]+)/);if(w||Ea||Da)return Ka;if(Ua)return Aa()||u("iPad")||u("iPod")?z(/CriOS\/([0-9.]+)/):z(/Chrome\/([0-9.]+)/);if(Va&&!(Aa()||u("iPad")||u("iPod")))return z(/Version\/([0-9.]+)/);if(Ra||Sa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(t);if(a)return a[1]+"."+a[2]}else if(Ta)return(a=z(/Android\s+([0-9.]+)/))?a:z(/Version\/([0-9.]+)/);return""})();var Wa,A;function Xa(a){return B?Wa(a):w?0<=la(y,a):Oa(a)}var B=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;Wa=function(a){return 0<=c.compare(d,""+a)};A=function(a){c.compare(e,""+a)};return!0}(),Ya=w&&!(8<=Number(y)),Za=w&&!(9<=Number(y)); Ta&&B&&A(2.3);Ta&&B&&A(4);Va&&B&&A(6);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(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?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}var db={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},eb={IMG:" ",BR:"\n"}; function fb(a,b,c){if(!(a.nodeName in db))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in eb)b.push(eb[a.nodeName]);else for(a=a.firstChild;a;)fb(a,b,c),a=a.nextSibling};function gb(a){var b="value";return"style"==b?hb(a.style.cssText):Ya&&"value"==b&&ib(a,"INPUT")?a.value:Za&&!0===a[b]?String(a.getAttribute(b)):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var jb=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/; function hb(a){var b=[];n(a.split(jb),function(a){var c=a.indexOf(":");0<c&&(a=[a.slice(0,c),a.slice(c+1)],2==a.length&&b.push(a[0].toLowerCase(),":",a[1],";"))});b=b.join("");return b=";"==b.charAt(b.length-1)?b:b+";"}function ib(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)} function kb(a){if(ib(a,"OPTION"))var b=!0;else ib(a,"INPUT")?(b=a.type.toLowerCase(),b="checkbox"==b||"radio"==b):b=!1;if(!b)throw new q(15,"Element is not selectable");b="selected";var c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";Ya&&"value"==b&&ib(a,"OPTION")&&null===gb(a)?(b=[],fb(a,b,!1),a=!b.join("")):a=!a[b];return!a};/* 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 D=w&&!(9<=Number(y)),lb=w&&!(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 mb(a,b){var c=lb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new F(b,a,b.nodeName,c)};function nb(a){this.b=a;this.a=0}function ob(a){a=a.match(pb);for(var b=0;b<a.length;b++)qb.test(a[b])&&a.splice(b,1);return new nb(a)}var pb=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,qb=/^\s/;function G(a,b){return a.b[a.a+(b||0)]}nb.prototype.next=function(){return this.b[this.a++]};function rb(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(D&&"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),D&&"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}lb&&"class"==b&&(b="className");return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function sb(a,b,c,d,e){return(D?tb:ub).call(null,a,b,k(c)?c:null,k(d)?d:null,e||new J)} function tb(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=vb(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}wb(a,b,c,d,e);return e} function ub(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?wb(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 xb(a,b,c,d,e){var f;if((a instanceof K||8==a.b||c&&null===a.b)&&(f=b.childNodes)){var h=vb(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 yb(a,b,c,d,e)}function yb(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 wb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.a(b)&&L(e,b),wb(a,b,c,d,e)}function vb(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 zb(a){this.node=a;this.next=this.a=null}function Ab(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 Bb(a,b){b=new zb(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 zb(b);b.a=a.b;a.a?a.b.next=b:a.a=a.b=b;a.b=b;a.s++}function Cb(a){return(a=a.a)?a.node:null}function Db(a){return(a=Cb(a))?H(a):""}J.prototype.iterator=function(a){return new Eb(this,!!a)};function Eb(a,b){this.h=a;this.b=(this.A=b)?a.b:a.a;this.a=null}Eb.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 Fb(a,b){a.i=b}function Gb(a,b){a.b=b}function P(a,b){a=a.a(b);return a instanceof J?+Db(a):+a}function Q(a,b){a=a.a(b);return a instanceof J?Db(a):""+a}function R(a,b){a=a.a(b);return a instanceof J?!!a.s:!!a};function Hb(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==Ib&&(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(Hb,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,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)}Hb.prototype.a=function(a){return this.c.u(this.j,this.v,a)};Hb.prototype.toString=function(){var a="Binary Expression: "+this.c,a=a+O(this.j);return a+=O(this.v)};function Jb(a,b,c,d){this.M=a;this.I=b;this.l=c;this.u=d}Jb.prototype.toString=function(){return this.M};var Kb={}; function T(a,b,c,d){if(Kb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Jb(a,b,c,d);return Kb[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 Ib=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 Lb(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(Lb,N);Lb.prototype.a=function(a){a=this.c.a(a);return Mb(this.j,a)};Lb.prototype.toString=function(){var a="Filter:"+O(this.c);return a+=O(this.j)};function Nb(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;Fb(this,a.i||pa(b,function(a){return a.i}));Gb(this,a.K&&!b.length||a.J&&!!b.length||pa(b,function(a){return a.b}))} l(Nb,N);Nb.prototype.a=function(a){return this.C.u.apply(null,ra(a,this.c))};Nb.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 Ob(a,b,c,d,e,f,h,m,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!==m?m:h;this.L=!!x}Ob.prototype.toString=function(){return this.o};var Pb={}; function U(a,b,c,d,e,f,h,m){if(Pb.hasOwnProperty(a))throw Error("Function already created: "+a+".");Pb[a]=new Ob(a,b,c,d,!1,e,f,h,m)}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(D){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?Cb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);U("name",3,!1,!0,function(a,b){return(a=b?Cb(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 Qb(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 Rb(a){N.call(this,3);this.c=a.substring(1,a.length-1)}l(Rb,N);Rb.prototype.a=function(){return this.c};Rb.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 Sb(a){N.call(this,1);this.c=a}l(Sb,N);Sb.prototype.a=function(){return this.c};Sb.prototype.toString=function(){return"Number: "+this.c};function Tb(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!=Ub||(a=a.v,"*"!=a.h()&&(this.h={name:a.h(),B:null})))}l(Tb,N);function Vb(){N.call(this,4)}l(Vb,N);Vb.prototype.a=function(a){var b=new J;a=a.a;9==a.nodeType?L(b,a):L(b,a.ownerDocument);return b};Vb.prototype.toString=function(){return"Root Helper Expression"};function Wb(){N.call(this,4)}l(Wb,N);Wb.prototype.a=function(a){var b=new J;L(b,a.a);return b};Wb.prototype.toString=function(){return"Context Helper Expression"}; function Xb(a){return"/"==a||"//"==a}Tb.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!=Yb)if(e.i||e.c!=Zb){var h=f.next();for(b=e.a(new C(h));h=f.next();)h=e.a(new C(h)),b=Ab(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}; Tb.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 $b(a,b){this.a=a;this.A=!!b} function Mb(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 x=a.A?f-m:m+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 E=x.a;if(!E)throw Error("Next must be called at least once before remove.");var aa=E.a,E=E.next;aa?aa.next=E:h.a=E;E?E.a=aa:h.b=aa;h.s--;x.a=null}}return b} $b.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 $b([]);this.D=!!d;b=this.j;b=0<b.a.length?b.a[0].h:null;a.N&&b&&(a=b.name,a=D?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(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!=ac)if(b=(new V(bc,new M("node"))).a(a).iterator(),c=b.next())for(a=this.u(c,d,e,f);c=b.next();)a=Ab(a,this.u(c,d,e,f));else a=new J;else a=sb(this.v,b,d,e),a=Mb(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=Mb(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 cc(a,b,c,d){this.o=a;this.C=b;this.A=c;this.N=d}cc.prototype.toString=function(){return this.o};var dc={};function W(a,b,c,d){if(dc.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new cc(a,b,c,!!d);return dc[a]=b} W("ancestor",function(a,b){for(var c=new J;b=b.parentNode;)a.a(b)&&Bb(c,b);return c},!0);W("ancestor-or-self",function(a,b){var c=new J;do a.a(b)&&Bb(c,b);while(b=b.parentNode);return c},!0); var Ub=W("attribute",function(a,b){var c=new J,d=a.h();if("style"==d&&D&&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++)D?a.nodeValue&&L(c,mb(b,a)):L(c,a);else(a=e.getNamedItem(d))&&(D?a.nodeValue&&L(c,mb(b,a)):L(c,a));return c},!1),ac=W("child",function(a,b,c,d,e){return(D?xb:yb).call(null,a,b,k(c)?c:null,k(d)?d:null,e||new J)},!1,!0);W("descendant",sb,!1,!0); var bc=W("descendant-or-self",function(a,b,c,d){var e=new J;I(b,c,d)&&a.a(b)&&L(e,b);return sb(a,b,c,d,e)},!1,!0),Yb=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=sb(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 ec=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),Zb=W("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 x=[];for(b=f[h];b=b.previousSibling;)x.unshift(b);for(var E=0,aa=x.length;E<aa;E++)b=x[E],I(b,c,d)&&a.a(b)&&L(e,b),e=sb(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)&&Bb(c,b);return c},!0);var fc=W("self",function(a,b){var c=new J;a.a(b)&&L(c,b);return c},!1);function gc(a){N.call(this,1);this.c=a;this.i=a.i;this.b=a.b}l(gc,N);gc.prototype.a=function(a){return-P(this.c,a)};gc.prototype.toString=function(){return"Unary Expression: -"+O(this.c)};function hc(a){N.call(this,4);this.c=a;Fb(this,pa(this.c,function(a){return a.i}));Gb(this,pa(this.c,function(a){return a.b}))}l(hc,N);hc.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=Ab(b,c)});return b};hc.prototype.toString=function(){return p(this.c,function(a,b){return a+O(b)},"Union Expression:")};function ic(a,b){this.a=a;this.b=b}function jc(a){for(var b,c=[];;){X(a,"Missing right hand side of binary expression.");b=kc(a);var d=a.a.next();if(!d)break;var e=(d=Kb[d]||null)&&d.I;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].I;)b=new Hb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new Hb(c.pop(),c.pop(),b);return b}function X(a,b){if(rb(a.a))throw Error(b);}function lc(a,b){a=a.a.next();if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);} function mc(a){a=a.a.next();if(")"!=a)throw Error("Bad token: "+a);}function nc(a){a=a.a.next();if(2>a.length)throw Error("Unclosed literal string");return new Rb(a)} function oc(a){var b=[];if(Xb(G(a.a))){var c=a.a.next();var d=G(a.a);if("/"==c&&(rb(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Vb;d=new Vb;X(a,"Missing next location step.");c=pc(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=jc(a);X(a,'unclosed "("');lc(a,")");break;case '"':case "'":c=nc(a);break;default:if(isNaN(+c))if(!Qb(c)&&/(?![0-9])[\w]/.test(d)&&"("==G(a.a, 1)){c=a.a.next();c=Pb[c]||null;a.a.next();for(d=[];")"!=G(a.a);){X(a,"Missing function argument list.");d.push(jc(a));if(","!=G(a.a))break;a.a.next()}X(a,"Unclosed function argument list.");mc(a);c=new Nb(c,d)}else{c=null;break a}else c=new Sb(+a.a.next())}"["==G(a.a)&&(d=new $b(qc(a)),c=new Lb(c,d))}if(c)if(Xb(G(a.a)))d=c;else return c;else c=pc(a,"/"),d=new Wb,b.push(c)}for(;Xb(G(a.a));)c=a.a.next(),X(a,"Missing next location step."),c=pc(a,c),b.push(c);return new Tb(d,b)} function pc(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==G(a.a)){var c=new V(fc,new M("node"));a.a.next();return c}if(".."==G(a.a))return c=new V(ec,new M("node")),a.a.next(),c;if("@"==G(a.a)){var d=Ub;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=dc[e]||null;if(!d)throw Error("No axis with name: "+e);a.a.next();X(a,"Missing node name")}else d=ac;e= G(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==G(a.a,1)){if(!Qb(e))throw Error("Invalid node type: "+e);e=a.a.next();if(!Qb(e))throw Error("Invalid type name: "+e);lc(a,"(");X(a,"Bad nodetype");var f=G(a.a).charAt(0),h=null;if('"'==f||"'"==f)h=nc(a);X(a,"Bad nodetype");mc(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 $b(qc(a),d.A);return c||new V(d,e,a,"//"==b)}function qc(a){for(var b=[];"["==G(a.a);){a.a.next();X(a,"Missing predicate expression.");var c=jc(a);b.push(c);X(a,"Unclosed predicate expression.");lc(a,"]")}return b}function kc(a){if("-"==G(a.a))return a.a.next(),new gc(kc(a));var b=oc(a);if("|"!=G(a.a))a=b;else{for(b=[b];"|"==a.a.next();)X(a,"Missing next union location path."),b.push(oc(a));a.a.a--;a=new hc(b)}return a};function rc(a){switch(a.nodeType){case 1:return ia(sc,a);case 9:return rc(a.documentElement);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.");a=ob(a);if(rb(a))throw Error("Invalid XPath expression.");b?"function"==ca(b)||(b=ha(b.lookupNamespaceURI,b)):b=function(){return null};var c=jc(new ic(a,b));if(!rb(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?Db(a):""+a;break;case 1:this.numberValue=a instanceof J?+Db(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=Cb(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 vc(a){this.lookupNamespaceURI=rc(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 uc(a,c)).evaluate(b,h)},c.createExpression=function(a,b){return new uc(a,b)},c.createNSResolver=function(a){return new vc(a)}});Ga||B&&B&&A(3.6);w&&Xa(10);Ta&&B&&A(4);function wc(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 wc){d=xc(a);yc(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 xc(a){yc(a);return a.m.concat()} function yc(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}}wc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.w,a)?this.w[a]:b}; wc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.w,a)||(this.a++,this.m.push(a));this.w[a]=b};var zc={};function Z(a,b,c){ea(a)&&(a=Fa?a.f:a.g);a=new Ac(a);!b||b in zc&&!c||(zc[b]={key:a,shift:!1},c&&(zc[c]={key:a,shift:!0}));return a}function Ac(a){this.code=a}Z(8);Z(9);Z(13);var Bc=Z(16),Cc=Z(17),Dc=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 Ec=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 Fc=new wc;Fc.set(1,Bc);Fc.set(2,Cc);Fc.set(4,Dc);Fc.set(8,Ec);(function(a){var b=new wc;n(xc(a),function(c){b.set(a.get(c).code,c)});return b})(Fc);Fa&&Xa(12);function Gc(){} function Hc(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),Hc(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),Ic(d,c),c.push(":"),Hc(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ic(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 Jc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Kc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g; function Ic(a,b){b.push('"',a.replace(Kc,function(a){var b=Jc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),Jc[a]=b);return b}),'"')};Ga||Fa&&Xa(3.5)||w&&Xa(8);function Lc(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=Mc(a);return c}if(v(a,"document"))return c={},c.WINDOW=Mc(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 Nc(a,b){return"array"==ca(a)?oa(a,function(a){return Nc(a,b)}):ea(a)?"function"==typeof a?a:v(a,"ELEMENT")?Oc(a.ELEMENT,b):v(a,"WINDOW")?Oc(a.WINDOW,b):xa(a,function(a){return Nc(a,b)}):a}function Pc(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.G=ja());b.G||(b.G=ja());return b}function Mc(a){var b=Pc(a.ownerDocument),c=ya(b,function(b){return b==a});c||(c=":wdc:"+b.G++,b[c]=a);return c} function Oc(a,b){a=decodeURIComponent(a);b=b||document;var c=Pc(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];try{var c;b?c=Oc(b.WINDOW):c=window;var d=Nc(a,c.document),e=kb.apply(null,d);var f={status:0,value:Lc(e)}}catch(h){f={status:v(h,"code")?h.code:13,value:{message:h.message}}}b=[];Hc(new Gc,f,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);}