appium-remote-debugger 9.1.18 → 10.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -7
- package/README.md +5 -0
- package/atoms/active_element.js +50 -59
- package/atoms/clear.js +117 -138
- package/atoms/clear_local_storage.js +74 -0
- package/atoms/clear_session_storage.js +74 -0
- package/atoms/click.js +123 -157
- package/atoms/default_content.js +74 -0
- package/atoms/execute_async_script.js +9 -15
- package/atoms/execute_script.js +7 -14
- package/atoms/execute_sql.js +2 -0
- package/atoms/find_element.js +90 -99
- package/atoms/find_element_fragment.js +116 -0
- package/atoms/find_elements.js +92 -99
- package/atoms/frame_by_id_or_name.js +92 -100
- package/atoms/frame_by_index.js +50 -59
- package/atoms/get_appcache_status.js +74 -0
- package/atoms/get_attribute.js +89 -0
- package/atoms/get_attribute_value.js +67 -69
- package/atoms/get_effective_style.js +75 -0
- package/atoms/get_element_from_cache.js +3 -6
- package/atoms/get_frame_window.js +50 -59
- package/atoms/get_local_storage_item.js +74 -0
- package/atoms/get_local_storage_key.js +70 -0
- package/atoms/get_local_storage_keys.js +74 -0
- package/atoms/get_local_storage_size.js +74 -0
- package/atoms/get_location.js +3 -0
- package/atoms/get_session_storage_item.js +74 -0
- package/atoms/get_session_storage_key.js +70 -0
- package/atoms/get_session_storage_keys.js +74 -0
- package/atoms/get_session_storage_size.js +74 -0
- package/atoms/get_size.js +74 -74
- package/atoms/get_text.js +97 -98
- package/atoms/get_top_left_coordinates.js +88 -91
- package/atoms/get_value_of_css_property.js +73 -74
- package/atoms/is_displayed.js +91 -92
- package/atoms/is_editable.js +69 -0
- package/atoms/is_enabled.js +66 -66
- package/atoms/is_focusable.js +71 -0
- package/atoms/is_interactable.js +95 -0
- package/atoms/is_selected.js +66 -69
- package/atoms/lastupdate +7 -5
- package/atoms/remove_local_storage_item.js +74 -0
- package/atoms/remove_session_storage_item.js +74 -0
- package/atoms/set_local_storage_item.js +74 -0
- package/atoms/set_session_storage_item.js +74 -0
- package/atoms/submit.js +115 -136
- package/atoms/type.js +115 -136
- package/build/lib/atoms.js +9 -3
- package/build/lib/atoms.js.map +1 -1
- package/build/lib/rpc/rpc-message-handler.js +1 -1
- package/build/lib/rpc/rpc-message-handler.js.map +1 -1
- package/lib/atoms.js +9 -2
- package/lib/rpc/rpc-message-handler.js +1 -2
- package/package.json +9 -9
- package/scripts/build-atoms.js +2 -3
- package/scripts/common.js +67 -107
- package/atoms/element_equals_element.js +0 -83
- package/atoms/fireEvent.js +0 -84
- package/atoms/get_window_size.js +0 -8
- package/atoms/move_mouse.js +0 -134
- package/atoms/refresh.js +0 -82
- package/atoms/tap.js +0 -150
- package/atoms/title.js +0 -82
- package/scripts/import-atoms.js +0 -3
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
function(){return (function(){var h=this||self;function k(a){return"string"==typeof a}function aa(a,b){a=a.split(".");var c=h;a[0]in c||"undefined"==typeof 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}
|
|
2
|
+
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";
|
|
3
|
+
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 e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
|
|
4
|
+
function l(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?l=ca:l=da;return l.apply(null,arguments)}function ea(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function m(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};/*
|
|
5
|
+
|
|
6
|
+
The MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2007 Cybozu Labs, Inc.
|
|
9
|
+
Copyright (c) 2012 Google Inc.
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to
|
|
13
|
+
deal in the Software without restriction, including without limitation the
|
|
14
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
15
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in
|
|
19
|
+
all copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
26
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
27
|
+
IN THE SOFTWARE.
|
|
28
|
+
*/
|
|
29
|
+
function p(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var fa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},q=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},r=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,
|
|
30
|
+
b,c)}:function(a,b,c){var d=c;q(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},t=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof 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 ha(a){return Array.prototype.concat.apply([],arguments)}function ia(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var u;a:{var ja=h.navigator;if(ja){var ka=ja.userAgent;if(ka){u=ka;break a}}u=""}function v(a){return-1!=u.indexOf(a)};function la(){return v("Firefox")||v("FxiOS")}function ma(){return(v("Chrome")||v("CriOS"))&&!v("Edge")};function na(){return v("iPhone")&&!v("iPod")&&!v("iPad")};function oa(a){this.b=a;this.a=0}function pa(a){a=a.match(qa);for(var b=0;b<a.length;b++)ra.test(a[b])&&a.splice(b,1);return new oa(a)}var qa=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,ra=/^\s/;function x(a,b){return a.b[a.a+(b||0)]}function y(a){return a.b[a.a++]}function sa(a){return a.b.length<=a.a};function ta(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}
|
|
31
|
+
function ua(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-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?va(a,b):!c&&ta(e,b)?-1*wa(a,b):!d&&ta(f,a)?wa(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);
|
|
32
|
+
a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(h.Range.START_TO_END,a)}function wa(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return va(b,a)}function va(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};function z(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(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
|
|
33
|
+
function B(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function C(a,b,c,d,e){return xa.call(null,a,b,k(c)?c:null,k(d)?d:null,e||new D)}
|
|
34
|
+
function xa(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),q(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),q(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof E?ya(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),q(b,function(f){B(f,c,d)&&e.add(f)}));return e}function ya(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)B(b,c,d)&&a.a(b)&&e.add(b),ya(a,b,c,d,e)};function D(){this.b=this.a=null;this.l=0}function za(a){this.f=a;this.a=this.b=null}function Aa(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;)c.f==b.f?(e=c,c=c.a,b=b.a):0<ua(c.f,b.f)?(e=b,b=b.a):(e=c,c=c.a),(e.b=d)?d.a=e:a.a=e,d=e,f++;for(e=c||b;e;)e.b=d,d=d.a=e,f++,e=e.a;a.b=d;a.l=f;return a}function Ba(a,b){b=new za(b);b.a=a.a;a.b?a.a.b=b:a.a=a.b=b;a.a=b;a.l++}D.prototype.add=function(a){a=new za(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.l++};
|
|
35
|
+
function Ca(a){return(a=a.a)?a.f:null}function Da(a){return(a=Ca(a))?z(a):""}function F(a,b){return new Ea(a,!!b)}function Ea(a,b){this.f=a;this.b=(this.s=b)?a.b:a.a;this.a=null}function G(a){var b=a.b;if(null==b)return null;var c=a.a=b;a.b=a.s?b.b:b.a;return c.f};function H(a){this.i=a;this.b=this.g=!1;this.f=null}function I(a){return"\n "+a.toString().split("\n").join("\n ")}function Fa(a,b){a.g=b}function Ga(a,b){a.b=b}function J(a,b){a=a.a(b);return a instanceof D?+Da(a):+a}function K(a,b){a=a.a(b);return a instanceof D?Da(a):""+a}function L(a,b){a=a.a(b);return a instanceof D?!!a.l:!!a};function M(a,b,c){H.call(this,a.i);this.c=a;this.h=b;this.o=c;this.g=b.g||c.g;this.b=b.b||c.b;this.c==Ha&&(c.b||c.g||4==c.i||0==c.i||!b.f?b.b||b.g||4==b.i||0==b.i||!c.f||(this.f={name:c.f.name,u:b}):this.f={name:b.f.name,u:c})}m(M,H);
|
|
36
|
+
function N(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof D&&c instanceof D){b=F(b);for(d=G(b);d;d=G(b))for(e=F(c),f=G(e);f;f=G(e))if(a(z(d),z(f)))return!0;return!1}if(b instanceof D||c instanceof D){b instanceof D?(e=b,d=c):(e=c,d=b);f=F(e);for(var g=typeof d,n=G(f);n;n=G(f)){switch(g){case "number":n=+z(n);break;case "boolean":n=!!z(n);break;case "string":n=z(n);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(n,d)||e==c&&a(d,n))return!0}return!1}return e?"boolean"==
|
|
37
|
+
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}M.prototype.a=function(a){return this.c.m(this.h,this.o,a)};M.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=I(this.h);return a+=I(this.o)};function Ia(a,b,c,d){this.I=a;this.D=b;this.i=c;this.m=d}Ia.prototype.toString=function(){return this.I};var Ja={};
|
|
38
|
+
function P(a,b,c,d){if(Ja.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Ia(a,b,c,d);return Ja[a.toString()]=a}P("div",6,1,function(a,b,c){return J(a,c)/J(b,c)});P("mod",6,1,function(a,b,c){return J(a,c)%J(b,c)});P("*",6,1,function(a,b,c){return J(a,c)*J(b,c)});P("+",5,1,function(a,b,c){return J(a,c)+J(b,c)});P("-",5,1,function(a,b,c){return J(a,c)-J(b,c)});P("<",4,2,function(a,b,c){return N(function(d,e){return d<e},a,b,c)});
|
|
39
|
+
P(">",4,2,function(a,b,c){return N(function(d,e){return d>e},a,b,c)});P("<=",4,2,function(a,b,c){return N(function(d,e){return d<=e},a,b,c)});P(">=",4,2,function(a,b,c){return N(function(d,e){return d>=e},a,b,c)});var Ha=P("=",3,2,function(a,b,c){return N(function(d,e){return d==e},a,b,c,!0)});P("!=",3,2,function(a,b,c){return N(function(d,e){return d!=e},a,b,c,!0)});P("and",2,2,function(a,b,c){return L(a,c)&&L(b,c)});P("or",1,2,function(a,b,c){return L(a,c)||L(b,c)});function Ka(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");H.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}m(Ka,H);Ka.prototype.a=function(a){a=this.c.a(a);return La(this.h,a)};Ka.prototype.toString=function(){var a="Filter:"+I(this.c);return a+=I(this.h)};function Ma(a,b){if(b.length<a.C)throw Error("Function "+a.j+" expects at least"+a.C+" arguments, "+b.length+" given");if(null!==a.B&&b.length>a.B)throw Error("Function "+a.j+" expects at most "+a.B+" arguments, "+b.length+" given");a.H&&q(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.j+" is not of type Nodeset: "+c);});H.call(this,a.i);this.v=a;this.c=b;Fa(this,a.g||t(b,function(c){return c.g}));Ga(this,a.G&&!b.length||a.F&&!!b.length||t(b,function(c){return c.b}))}m(Ma,H);
|
|
40
|
+
Ma.prototype.a=function(a){return this.v.m.apply(null,ha(a,this.c))};Ma.prototype.toString=function(){var a="Function: "+this.v;if(this.c.length){var b=r(this.c,function(c,d){return c+I(d)},"Arguments:");a+=I(b)}return a};function Na(a,b,c,d,e,f,g,n){this.j=a;this.i=b;this.g=c;this.G=d;this.F=!1;this.m=e;this.C=f;this.B=void 0!==g?g:f;this.H=!!n}Na.prototype.toString=function(){return this.j};var Oa={};
|
|
41
|
+
function Q(a,b,c,d,e,f,g,n){if(Oa.hasOwnProperty(a))throw Error("Function already created: "+a+".");Oa[a]=new Na(a,b,c,d,e,f,g,n)}Q("boolean",2,!1,!1,function(a,b){return L(b,a)},1);Q("ceiling",1,!1,!1,function(a,b){return Math.ceil(J(b,a))},1);Q("concat",3,!1,!1,function(a,b){return r(ia(arguments,1),function(c,d){return c+K(d,a)},"")},2,null);Q("contains",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return-1!=b.indexOf(a)},2);Q("count",1,!1,!1,function(a,b){return b.a(a).l},1,1,!0);
|
|
42
|
+
Q("false",2,!1,!1,function(){return!1},0);Q("floor",1,!1,!1,function(a,b){return Math.floor(J(b,a))},1);Q("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=K(b,a).split(/\s+/);var e=[];q(a,function(g){g=d.getElementById(g);!g||0<=fa(e,g)||e.push(g)});e.sort(ua);var f=new D;q(e,function(g){f.add(g)});return f},1);Q("lang",2,!1,!1,function(){return!1},1);Q("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
43
|
+
Q("local-name",3,!1,!0,function(a,b){return(a=b?Ca(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);Q("name",3,!1,!0,function(a,b){return(a=b?Ca(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);Q("namespace-uri",3,!0,!1,function(){return""},0,1,!0);Q("normalize-space",3,!1,!0,function(a,b){return(b?K(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);Q("not",2,!1,!1,function(a,b){return!L(b,a)},1);Q("number",1,!1,!0,function(a,b){return b?J(b,a):+z(a.a)},0,1);
|
|
44
|
+
Q("position",1,!0,!1,function(a){return a.b},0);Q("round",1,!1,!1,function(a,b){return Math.round(J(b,a))},1);Q("starts-with",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return 0==b.lastIndexOf(a,0)},2);Q("string",3,!1,!0,function(a,b){return b?K(b,a):z(a.a)},0,1);Q("string-length",1,!1,!0,function(a,b){return(b?K(b,a):z(a.a)).length},0,1);
|
|
45
|
+
Q("substring",3,!1,!1,function(a,b,c,d){c=J(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?J(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=K(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);Q("substring-after",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
46
|
+
Q("substring-before",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);Q("sum",1,!1,!1,function(a,b){a=F(b.a(a));b=0;for(var c=G(a);c;c=G(a))b+=+z(c);return b},1,1,!0);Q("translate",3,!1,!1,function(a,b,c,d){b=K(b,a);c=K(c,a);var e=K(d,a);a={};for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);Q("true",2,!1,!1,function(){return!0},0);function E(a,b){this.h=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 Pa(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}E.prototype.a=function(a){return null===this.b||this.b==a.nodeType};E.prototype.f=function(){return this.h};
|
|
47
|
+
E.prototype.toString=function(){var a="Kind Test: "+this.h;null===this.c||(a+=I(this.c));return a};function Qa(a){H.call(this,3);this.c=a.substring(1,a.length-1)}m(Qa,H);Qa.prototype.a=function(){return this.c};Qa.prototype.toString=function(){return"Literal: "+this.c};function R(a,b){this.j=a.toLowerCase();a="*"==this.j?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}R.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.j&&this.j!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};R.prototype.f=function(){return this.j};
|
|
48
|
+
R.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.j};function Ra(a){H.call(this,1);this.c=a}m(Ra,H);Ra.prototype.a=function(){return this.c};Ra.prototype.toString=function(){return"Number: "+this.c};function Sa(a,b){H.call(this,a.i);this.h=a;this.c=b;this.g=a.g;this.b=a.b;1==this.c.length&&(a=this.c[0],a.A||a.c!=Ta||(a=a.o,"*"!=a.f()&&(this.f={name:a.f(),u:null})))}m(Sa,H);function S(){H.call(this,4)}m(S,H);S.prototype.a=function(a){var b=new D;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};S.prototype.toString=function(){return"Root Helper Expression"};function Ua(){H.call(this,4)}m(Ua,H);Ua.prototype.a=function(a){var b=new D;b.add(a.a);return b};Ua.prototype.toString=function(){return"Context Helper Expression"};
|
|
49
|
+
function Va(a){return"/"==a||"//"==a}Sa.prototype.a=function(a){var b=this.h.a(a);if(!(b instanceof D))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.l;c++){var e=a[c],f=F(b,e.c.s);if(e.g||e.c!=Wa)if(e.g||e.c!=Xa){var g=G(f);for(b=e.a(new p(g));null!=(g=G(f));)g=e.a(new p(g)),b=Aa(b,g)}else g=G(f),b=e.a(new p(g));else{for(g=G(f);(b=G(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new p(g))}}return b};
|
|
50
|
+
Sa.prototype.toString=function(){var a="Path Expression:"+I(this.h);if(this.c.length){var b=r(this.c,function(c,d){return c+I(d)},"Steps:");a+=I(b)}return a};function Ya(a,b){this.a=a;this.s=!!b}
|
|
51
|
+
function La(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=F(b),f=b.l,g,n=0;g=G(e);n++){var w=a.s?f-n:n+1;g=d.a(new p(g,w,f));if("number"==typeof g)w=w==g;else if("string"==typeof g||"boolean"==typeof g)w=!!g;else if(g instanceof D)w=0<g.l;else throw Error("Predicate.evaluate returned an unexpected type.");if(!w){w=e;g=w.f;var A=w.a;if(!A)throw Error("Next must be called at least once before remove.");var O=A.b;A=A.a;O?O.a=A:g.a=A;A?A.b=O:g.b=O;g.l--;w.a=null}}return b}
|
|
52
|
+
Ya.prototype.toString=function(){return r(this.a,function(a,b){return a+I(b)},"Predicates:")};function T(a,b,c,d){H.call(this,4);this.c=a;this.o=b;this.h=c||new Ya([]);this.A=!!d;b=this.h;b=0<b.a.length?b.a[0].f:null;a.J&&b&&(this.f={name:b.name,u:b.u});a:{a=this.h;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.g||1==c.i||0==c.i){a=!0;break a}a=!1}this.g=a}m(T,H);
|
|
53
|
+
T.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.u?K(c.u,a):null,f=1);if(this.A)if(this.g||this.c!=Za)if(b=F((new T($a,new E("node"))).a(a)),c=G(b))for(a=this.m(c,d,e,f);null!=(c=G(b));)a=Aa(a,this.m(c,d,e,f));else a=new D;else a=C(this.o,b,d,e),a=La(this.h,a,f);else a=this.m(a.a,d,e,f);return a};T.prototype.m=function(a,b,c,d){a=this.c.v(this.o,a,b,c);return a=La(this.h,a,d)};
|
|
54
|
+
T.prototype.toString=function(){var a="Step:"+I("Operator: "+(this.A?"//":"/"));this.c.j&&(a+=I("Axis: "+this.c));a+=I(this.o);if(this.h.a.length){var b=r(this.h.a,function(c,d){return c+I(d)},"Predicates:");a+=I(b)}return a};function ab(a,b,c,d){this.j=a;this.v=b;this.s=c;this.J=d}ab.prototype.toString=function(){return this.j};var bb={};function U(a,b,c,d){if(bb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new ab(a,b,c,!!d);return bb[a]=b}
|
|
55
|
+
U("ancestor",function(a,b){for(var c=new D;b=b.parentNode;)a.a(b)&&Ba(c,b);return c},!0);U("ancestor-or-self",function(a,b){var c=new D;do a.a(b)&&Ba(c,b);while(b=b.parentNode);return c},!0);
|
|
56
|
+
var Ta=U("attribute",function(a,b){var c=new D,d=a.f();if(b=b.attributes)if(a instanceof E&&null===a.b||"*"==d)for(a=0;d=b[a];a++)c.add(d);else(d=b.getNamedItem(d))&&c.add(d);return c},!1),Za=U("child",function(a,b,c,d,e){c=k(c)?c:null;d=k(d)?d:null;e=e||new D;for(b=b.firstChild;b;b=b.nextSibling)B(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);U("descendant",C,!1,!0);
|
|
57
|
+
var $a=U("descendant-or-self",function(a,b,c,d){var e=new D;B(b,c,d)&&a.a(b)&&e.add(b);return C(a,b,c,d,e)},!1,!0),Wa=U("following",function(a,b,c,d){var e=new D;do for(var f=b;f=f.nextSibling;)B(f,c,d)&&a.a(f)&&e.add(f),e=C(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);U("following-sibling",function(a,b){for(var c=new D;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);U("namespace",function(){return new D},!1);
|
|
58
|
+
var cb=U("parent",function(a,b){var c=new D;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;b=b.parentNode;a.a(b)&&c.add(b);return c},!1),Xa=U("preceding",function(a,b,c,d){var e=new D,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,n=f.length;g<n;g++){var w=[];for(b=f[g];b=b.previousSibling;)w.unshift(b);for(var A=0,O=w.length;A<O;A++)b=w[A],B(b,c,d)&&a.a(b)&&e.add(b),e=C(a,b,c,d,e)}return e},!0,!0);
|
|
59
|
+
U("preceding-sibling",function(a,b){for(var c=new D;b=b.previousSibling;)a.a(b)&&Ba(c,b);return c},!0);var db=U("self",function(a,b){var c=new D;a.a(b)&&c.add(b);return c},!1);function eb(a){H.call(this,1);this.c=a;this.g=a.g;this.b=a.b}m(eb,H);eb.prototype.a=function(a){return-J(this.c,a)};eb.prototype.toString=function(){return"Unary Expression: -"+I(this.c)};function fb(a){H.call(this,4);this.c=a;Fa(this,t(this.c,function(b){return b.g}));Ga(this,t(this.c,function(b){return b.b}))}m(fb,H);fb.prototype.a=function(a){var b=new D;q(this.c,function(c){c=c.a(a);if(!(c instanceof D))throw Error("Path expression must evaluate to NodeSet.");b=Aa(b,c)});return b};fb.prototype.toString=function(){return r(this.c,function(a,b){return a+I(b)},"Union Expression:")};function gb(a,b){this.a=a;this.b=b}function hb(a){for(var b,c=[];;){V(a,"Missing right hand side of binary expression.");b=ib(a);var d=y(a.a);if(!d)break;var e=(d=Ja[d]||null)&&d.D;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].D;)b=new M(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new M(c.pop(),c.pop(),b);return b}function V(a,b){if(sa(a.a))throw Error(b);}function jb(a,b){a=y(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
60
|
+
function kb(a){a=y(a.a);if(")"!=a)throw Error("Bad token: "+a);}function lb(a){a=y(a.a);if(2>a.length)throw Error("Unclosed literal string");return new Qa(a)}
|
|
61
|
+
function mb(a){var b=[];if(Va(x(a.a))){var c=y(a.a);var d=x(a.a);if("/"==c&&(sa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new S;d=new S;V(a,"Missing next location step.");c=nb(a,c);b.push(c)}else{a:{c=x(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":y(a.a);c=hb(a);V(a,'unclosed "("');jb(a,")");break;case '"':case "'":c=lb(a);break;default:if(isNaN(+c))if(!Pa(c)&&/(?![0-9])[\w]/.test(d)&&"("==x(a.a,1)){c=y(a.a);
|
|
62
|
+
c=Oa[c]||null;y(a.a);for(d=[];")"!=x(a.a);){V(a,"Missing function argument list.");d.push(hb(a));if(","!=x(a.a))break;y(a.a)}V(a,"Unclosed function argument list.");kb(a);c=new Ma(c,d)}else{c=null;break a}else c=new Ra(+y(a.a))}"["==x(a.a)&&(d=new Ya(ob(a)),c=new Ka(c,d))}if(c)if(Va(x(a.a)))d=c;else return c;else c=nb(a,"/"),d=new Ua,b.push(c)}for(;Va(x(a.a));)c=y(a.a),V(a,"Missing next location step."),c=nb(a,c),b.push(c);return new Sa(d,b)}
|
|
63
|
+
function nb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==x(a.a)){var c=new T(db,new E("node"));y(a.a);return c}if(".."==x(a.a))return c=new T(cb,new E("node")),y(a.a),c;if("@"==x(a.a)){var d=Ta;y(a.a);V(a,"Missing attribute name")}else if("::"==x(a.a,1)){if(!/(?![0-9])[\w]/.test(x(a.a).charAt(0)))throw Error("Bad token: "+y(a.a));var e=y(a.a);d=bb[e]||null;if(!d)throw Error("No axis with name: "+e);y(a.a);V(a,"Missing node name")}else d=Za;e=x(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
64
|
+
x(a.a,1)){if(!Pa(e))throw Error("Invalid node type: "+e);e=y(a.a);if(!Pa(e))throw Error("Invalid type name: "+e);jb(a,"(");V(a,"Bad nodetype");var f=x(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=lb(a);V(a,"Bad nodetype");kb(a);e=new E(e,g)}else if(e=y(a.a),f=e.indexOf(":"),-1==f)e=new R(e);else{g=e.substring(0,f);if("*"==g)var n="*";else if(n=a.b(g),!n)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new R(e,n)}else throw Error("Bad token: "+y(a.a));a=new Ya(ob(a),d.s);return c||new T(d,
|
|
65
|
+
e,a,"//"==b)}function ob(a){for(var b=[];"["==x(a.a);){y(a.a);V(a,"Missing predicate expression.");var c=hb(a);b.push(c);V(a,"Unclosed predicate expression.");jb(a,"]")}return b}function ib(a){if("-"==x(a.a))return y(a.a),new eb(ib(a));var b=mb(a);if("|"!=x(a.a))a=b;else{for(b=[b];"|"==y(a.a);)V(a,"Missing next union location path."),b.push(mb(a));a.a.a--;a=new fb(b)}return a};function pb(a){switch(a.nodeType){case 1:return ea(qb,a);case 9:return pb(a.documentElement);case 11:case 10:case 6:case 12:return rb;default:return a.parentNode?pb(a.parentNode):rb}}function rb(){return null}function qb(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?qb(a.parentNode,b):null};function sb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=pa(a);if(sa(a))throw Error("Invalid XPath expression.");b?"function"==ba(b)||(b=l(b.lookupNamespaceURI,b)):b=function(){return null};var c=hb(new gb(a,b));if(!sa(a))throw Error("Bad token: "+y(a));this.evaluate=function(d,e){d=c.a(new p(d));return new W(d,e)}}
|
|
66
|
+
function W(a,b){if(0==b)if(a instanceof D)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 D))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof D?Da(a):""+a;break;case 1:this.numberValue=a instanceof D?+Da(a):+a;break;case 3:this.booleanValue=a instanceof D?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
67
|
+
F(a);var d=[];for(var e=G(c);e;e=G(c))d.push(e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=Ca(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(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}W.ANY_TYPE=0;
|
|
68
|
+
W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE=4;W.ORDERED_NODE_ITERATOR_TYPE=5;W.UNORDERED_NODE_SNAPSHOT_TYPE=6;W.ORDERED_NODE_SNAPSHOT_TYPE=7;W.ANY_UNORDERED_NODE_TYPE=8;W.FIRST_ORDERED_NODE_TYPE=9;function tb(a){this.lookupNamespaceURI=pb(a)}
|
|
69
|
+
function ub(a,b){a=a||h;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=W,c.evaluate=function(d,e,f,g){return(new sb(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new sb(d,e)},c.createNSResolver=function(d){return new tb(d)}}aa("wgxpath.install",ub);aa("wgxpath.install",ub);var vb=la(),wb=na()||v("iPod"),xb=v("iPad"),yb=v("Android")&&!(ma()||la()||v("Opera")||v("Silk")),zb=ma(),Ab=v("Safari")&&!(ma()||v("Coast")||v("Opera")||v("Edge")||v("Edg/")||v("OPR")||la()||v("Silk")||v("Android"))&&!(na()||v("iPad")||v("iPod"));function X(a){return(a=a.exec(u))?a[1]:""}(function(){if(vb)return X(/Firefox\/([0-9.]+)/);if(zb)return na()||v("iPad")||v("iPod")?X(/CriOS\/([0-9.]+)/):X(/Chrome\/([0-9.]+)/);if(Ab&&!(na()||v("iPad")||v("iPod")))return X(/Version\/([0-9.]+)/);if(wb||xb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(u);if(a)return a[1]+"."+a[2]}else if(yb)return(a=X(/Android\s+([0-9.]+)/))?a:X(/Version\/([0-9.]+)/);return""})();function Y(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var Bb="text search tel url email password number".split(" ");function Z(a,b){return Y(a,"INPUT")?a.type.toLowerCase()==b:!1}function Cb(a){function b(c){if("inherit"==c.contentEditable){for(c=c.parentNode;c&&1!=c.nodeType&&9!=c.nodeType&&11!=c.nodeType;)c=c.parentNode;return(c=Y(c)?c:null)?b(c):!1}return"true"==c.contentEditable}return void 0!==a.contentEditable?void 0!==a.isContentEditable?a.isContentEditable:b(a):!1};aa("_",function(a){var b;if(b=(Y(a,"TEXTAREA")?!0:Y(a,"INPUT")?0<=fa(Bb,a.type.toLowerCase()):Cb(a)?!0:!1)||(Y(a,"INPUT")?"file"==a.type.toLowerCase():!1)||Z(a,"range")||Z(a,"date")||Z(a,"month")||Z(a,"week")||Z(a,"time")||Z(a,"datetime-local")||Z(a,"color"))b=!a.readOnly;return b});; return this._.apply(null,arguments);}).apply(window, arguments);}
|
package/atoms/is_enabled.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
function(){return function(){var
|
|
2
|
-
function
|
|
3
|
-
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function
|
|
4
|
-
function
|
|
5
|
-
function
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
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;
|
|
9
|
-
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;
|
|
10
|
-
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);
|
|
11
|
-
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}
|
|
12
|
-
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?
|
|
13
|
-
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)};/*
|
|
1
|
+
function(){return (function(){var aa=this||self;function ba(a){return"string"==typeof a}function ca(a,b){a=a.split(".");var c=aa;a[0]in c||"undefined"==typeof 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}
|
|
2
|
+
function da(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";
|
|
3
|
+
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ea(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function fa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ha(a,b,c){return a.call.apply(a.bind,arguments)}
|
|
4
|
+
function ia(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function ja(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ja=ha:ja=ia;return ja.apply(null,arguments)}
|
|
5
|
+
function ka(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}var la=Date.now||function(){return+new Date};function g(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a}
|
|
6
|
+
function ma(a,b,c){var d=arguments.callee.caller;if("undefined"!==typeof d.I){for(var e=Array(arguments.length-1),f=1;f<arguments.length;f++)e[f-1]=arguments[f];d.I.constructor.apply(a,e)}else{if("string"!=typeof b&&"symbol"!=typeof b)throw Error("method names provided to goog.base must be a string or a symbol");e=Array(arguments.length-2);for(f=2;f<arguments.length;f++)e[f-2]=arguments[f];f=!1;for(var h=a.constructor.prototype;h;h=Object.getPrototypeOf(h))if(h[b]===d)f=!0;else if(f){h[b].apply(a,
|
|
7
|
+
e);return}if(a[b]===d)a.constructor.prototype[b].apply(a,e);else throw Error("goog.base called from a method of one name to a method of a different name");}};/*
|
|
14
8
|
|
|
15
9
|
The MIT License
|
|
16
10
|
|
|
@@ -35,56 +29,62 @@ a:a.ownerDocument||a.document;c=d.createRange();c.selectNode(a);c.collapse(!0);a
|
|
|
35
29
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
36
30
|
IN THE SOFTWARE.
|
|
37
31
|
*/
|
|
38
|
-
function
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
function
|
|
42
|
-
function
|
|
43
|
-
function
|
|
44
|
-
function
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
M
|
|
58
|
-
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
a.a
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
b)
|
|
89
|
-
|
|
90
|
-
function
|
|
32
|
+
function l(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var na=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},n=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},p=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,
|
|
33
|
+
b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e="string"===typeof a?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},q=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;n(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},oa=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,
|
|
34
|
+
d[e],e,a))return!0;return!1};function pa(a){return Array.prototype.concat.apply([],arguments)}function qa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var ra=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
|
|
35
|
+
function sa(a){var b=0;a=ra(String(a)).split(".");for(var c=ra("4").split("."),d=Math.max(a.length,c.length),e=0;0==b&&e<d;e++){var f=a[e]||"",h=c[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;b=ta(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||ta(0==f[2].length,0==h[2].length)||ta(f[2],h[2]);f=f[3];h=h[3]}while(0==b)}return b}function ta(a,b){return a<b?-1:a>b?1:0};var r;a:{var ua=aa.navigator;if(ua){var va=ua.userAgent;if(va){r=va;break a}}r=""}function t(a){return-1!=r.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 t("Firefox")||t("FxiOS")}function Aa(){return(t("Chrome")||t("CriOS"))&&!t("Edge")};function Ba(){return t("iPhone")&&!t("iPod")&&!t("iPad")};var Ca=t("Macintosh"),Da=t("Windows");function Ea(a){this.b=a;this.a=0}function Fa(a){a=a.match(Ga);for(var b=0;b<a.length;b++)Ha.test(a[b])&&a.splice(b,1);return new Ea(a)}var Ga=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,Ha=/^\s/;function x(a,b){return a.b[a.a+(b||0)]}function y(a){return a.b[a.a++]}function Ia(a){return a.b.length<=a.a};function Ka(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function La(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}
|
|
36
|
+
function Ma(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-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?Na(a,b):!c&&La(e,b)?-1*Oa(a,b):!d&&La(f,a)?Oa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=Pa(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);
|
|
37
|
+
a.collapse(!0);return c.compareBoundaryPoints(aa.Range.START_TO_END,a)}function Oa(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Na(b,a)}function Na(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function Pa(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Qa(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};function z(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(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
|
|
38
|
+
function A(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Ra(a,b,c,d,e){return Sa.call(null,a,b,ba(c)?c:null,ba(d)?d:null,e||new B)}
|
|
39
|
+
function Sa(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),n(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),n(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof C?Ta(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),n(b,function(f){A(f,c,d)&&e.add(f)}));return e}function Ta(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)A(b,c,d)&&a.a(b)&&e.add(b),Ta(a,b,c,d,e)};function B(){this.b=this.a=null;this.o=0}function Ua(a){this.f=a;this.a=this.b=null}function Va(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;)c.f==b.f?(e=c,c=c.a,b=b.a):0<Ma(c.f,b.f)?(e=b,b=b.a):(e=c,c=c.a),(e.b=d)?d.a=e:a.a=e,d=e,f++;for(e=c||b;e;)e.b=d,d=d.a=e,f++,e=e.a;a.b=d;a.o=f;return a}function Wa(a,b){b=new Ua(b);b.a=a.a;a.b?a.a.b=b:a.a=a.b=b;a.a=b;a.o++}B.prototype.add=function(a){a=new Ua(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.o++};
|
|
40
|
+
function Xa(a){return(a=a.a)?a.f:null}function Ya(a){return(a=Xa(a))?z(a):""}function D(a,b){return new Za(a,!!b)}function Za(a,b){this.f=a;this.b=(this.v=b)?a.b:a.a;this.a=null}function E(a){var b=a.b;if(null==b)return null;var c=a.a=b;a.b=a.v?b.b:b.a;return c.f};function F(a){this.l=a;this.b=this.i=!1;this.f=null}function G(a){return"\n "+a.toString().split("\n").join("\n ")}function $a(a,b){a.i=b}function ab(a,b){a.b=b}function H(a,b){a=a.a(b);return a instanceof B?+Ya(a):+a}function J(a,b){a=a.a(b);return a instanceof B?Ya(a):""+a}function K(a,b){a=a.a(b);return a instanceof B?!!a.o:!!a};function bb(a,b,c){F.call(this,a.l);this.c=a;this.j=b;this.u=c;this.i=b.i||c.i;this.b=b.b||c.b;this.c==cb&&(c.b||c.i||4==c.l||0==c.l||!b.f?b.b||b.i||4==b.l||0==b.l||!c.f||(this.f={name:c.f.name,A:b}):this.f={name:b.f.name,A:c})}g(bb,F);
|
|
41
|
+
function db(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof B&&c instanceof B){b=D(b);for(d=E(b);d;d=E(b))for(e=D(c),f=E(e);f;f=E(e))if(a(z(d),z(f)))return!0;return!1}if(b instanceof B||c instanceof B){b instanceof B?(e=b,d=c):(e=c,d=b);f=D(e);for(var h=typeof d,m=E(f);m;m=E(f)){switch(h){case "number":m=+z(m);break;case "boolean":m=!!z(m);break;case "string":m=z(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"==
|
|
42
|
+
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}bb.prototype.a=function(a){return this.c.s(this.j,this.u,a)};bb.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=G(this.j);return a+=G(this.u)};function eb(a,b,c,d){this.M=a;this.H=b;this.l=c;this.s=d}eb.prototype.toString=function(){return this.M};var fb={};
|
|
43
|
+
function L(a,b,c,d){if(fb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new eb(a,b,c,d);return fb[a.toString()]=a}L("div",6,1,function(a,b,c){return H(a,c)/H(b,c)});L("mod",6,1,function(a,b,c){return H(a,c)%H(b,c)});L("*",6,1,function(a,b,c){return H(a,c)*H(b,c)});L("+",5,1,function(a,b,c){return H(a,c)+H(b,c)});L("-",5,1,function(a,b,c){return H(a,c)-H(b,c)});L("<",4,2,function(a,b,c){return db(function(d,e){return d<e},a,b,c)});
|
|
44
|
+
L(">",4,2,function(a,b,c){return db(function(d,e){return d>e},a,b,c)});L("<=",4,2,function(a,b,c){return db(function(d,e){return d<=e},a,b,c)});L(">=",4,2,function(a,b,c){return db(function(d,e){return d>=e},a,b,c)});var cb=L("=",3,2,function(a,b,c){return db(function(d,e){return d==e},a,b,c,!0)});L("!=",3,2,function(a,b,c){return db(function(d,e){return d!=e},a,b,c,!0)});L("and",2,2,function(a,b,c){return K(a,c)&&K(b,c)});L("or",1,2,function(a,b,c){return K(a,c)||K(b,c)});function gb(a,b){if(b.a.length&&4!=a.l)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");F.call(this,a.l);this.c=a;this.j=b;this.i=a.i;this.b=a.b}g(gb,F);gb.prototype.a=function(a){a=this.c.a(a);return hb(this.j,a)};gb.prototype.toString=function(){var a="Filter:"+G(this.c);return a+=G(this.j)};function ib(a,b){if(b.length<a.G)throw Error("Function "+a.m+" expects at least"+a.G+" arguments, "+b.length+" given");if(null!==a.D&&b.length>a.D)throw Error("Function "+a.m+" expects at most "+a.D+" arguments, "+b.length+" given");a.L&&n(b,function(c,d){if(4!=c.l)throw Error("Argument "+d+" to function "+a.m+" is not of type Nodeset: "+c);});F.call(this,a.l);this.B=a;this.c=b;$a(this,a.i||oa(b,function(c){return c.i}));ab(this,a.K&&!b.length||a.J&&!!b.length||oa(b,function(c){return c.b}))}
|
|
45
|
+
g(ib,F);ib.prototype.a=function(a){return this.B.s.apply(null,pa(a,this.c))};ib.prototype.toString=function(){var a="Function: "+this.B;if(this.c.length){var b=q(this.c,function(c,d){return c+G(d)},"Arguments:");a+=G(b)}return a};function jb(a,b,c,d,e,f,h,m){this.m=a;this.l=b;this.i=c;this.K=d;this.J=!1;this.s=e;this.G=f;this.D=void 0!==h?h:f;this.L=!!m}jb.prototype.toString=function(){return this.m};var kb={};
|
|
46
|
+
function M(a,b,c,d,e,f,h,m){if(kb.hasOwnProperty(a))throw Error("Function already created: "+a+".");kb[a]=new jb(a,b,c,d,e,f,h,m)}M("boolean",2,!1,!1,function(a,b){return K(b,a)},1);M("ceiling",1,!1,!1,function(a,b){return Math.ceil(H(b,a))},1);M("concat",3,!1,!1,function(a,b){return q(qa(arguments,1),function(c,d){return c+J(d,a)},"")},2,null);M("contains",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return-1!=b.indexOf(a)},2);M("count",1,!1,!1,function(a,b){return b.a(a).o},1,1,!0);
|
|
47
|
+
M("false",2,!1,!1,function(){return!1},0);M("floor",1,!1,!1,function(a,b){return Math.floor(H(b,a))},1);M("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=J(b,a).split(/\s+/);var e=[];n(a,function(h){h=d.getElementById(h);!h||0<=na(e,h)||e.push(h)});e.sort(Ma);var f=new B;n(e,function(h){f.add(h)});return f},1);M("lang",2,!1,!1,function(){return!1},1);M("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
48
|
+
M("local-name",3,!1,!0,function(a,b){return(a=b?Xa(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);M("name",3,!1,!0,function(a,b){return(a=b?Xa(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);M("namespace-uri",3,!0,!1,function(){return""},0,1,!0);M("normalize-space",3,!1,!0,function(a,b){return(b?J(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);M("not",2,!1,!1,function(a,b){return!K(b,a)},1);M("number",1,!1,!0,function(a,b){return b?H(b,a):+z(a.a)},0,1);
|
|
49
|
+
M("position",1,!0,!1,function(a){return a.b},0);M("round",1,!1,!1,function(a,b){return Math.round(H(b,a))},1);M("starts-with",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return 0==b.lastIndexOf(a,0)},2);M("string",3,!1,!0,function(a,b){return b?J(b,a):z(a.a)},0,1);M("string-length",1,!1,!0,function(a,b){return(b?J(b,a):z(a.a)).length},0,1);
|
|
50
|
+
M("substring",3,!1,!1,function(a,b,c,d){c=H(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?H(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=J(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);M("substring-after",3,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
51
|
+
M("substring-before",3,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);M("sum",1,!1,!1,function(a,b){a=D(b.a(a));b=0;for(var c=E(a);c;c=E(a))b+=+z(c);return b},1,1,!0);M("translate",3,!1,!1,function(a,b,c,d){b=J(b,a);c=J(c,a);var e=J(d,a);a={};for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);M("true",2,!1,!1,function(){return!0},0);function C(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 lb(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}C.prototype.a=function(a){return null===this.b||this.b==a.nodeType};C.prototype.f=function(){return this.j};
|
|
52
|
+
C.prototype.toString=function(){var a="Kind Test: "+this.j;null===this.c||(a+=G(this.c));return a};function mb(a){F.call(this,3);this.c=a.substring(1,a.length-1)}g(mb,F);mb.prototype.a=function(){return this.c};mb.prototype.toString=function(){return"Literal: "+this.c};function nb(a,b){this.m=a.toLowerCase();a="*"==this.m?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}nb.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.m&&this.m!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};nb.prototype.f=function(){return this.m};
|
|
53
|
+
nb.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.m};function ob(a){F.call(this,1);this.c=a}g(ob,F);ob.prototype.a=function(){return this.c};ob.prototype.toString=function(){return"Number: "+this.c};function pb(a,b){F.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.C||a.c!=qb||(a=a.u,"*"!=a.f()&&(this.f={name:a.f(),A:null})))}g(pb,F);function rb(){F.call(this,4)}g(rb,F);rb.prototype.a=function(a){var b=new B;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};rb.prototype.toString=function(){return"Root Helper Expression"};function sb(){F.call(this,4)}g(sb,F);sb.prototype.a=function(a){var b=new B;b.add(a.a);return b};sb.prototype.toString=function(){return"Context Helper Expression"};
|
|
54
|
+
function tb(a){return"/"==a||"//"==a}pb.prototype.a=function(a){var b=this.j.a(a);if(!(b instanceof B))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.o;c++){var e=a[c],f=D(b,e.c.v);if(e.i||e.c!=ub)if(e.i||e.c!=vb){var h=E(f);for(b=e.a(new l(h));null!=(h=E(f));)h=e.a(new l(h)),b=Va(b,h)}else h=E(f),b=e.a(new l(h));else{for(h=E(f);(b=E(f))&&(!h.contains||h.contains(b))&&b.compareDocumentPosition(h)&8;h=b);b=e.a(new l(h))}}return b};
|
|
55
|
+
pb.prototype.toString=function(){var a="Path Expression:"+G(this.j);if(this.c.length){var b=q(this.c,function(c,d){return c+G(d)},"Steps:");a+=G(b)}return a};function wb(a,b){this.a=a;this.v=!!b}
|
|
56
|
+
function hb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=D(b),f=b.o,h,m=0;h=E(e);m++){var k=a.v?f-m:m+1;h=d.a(new l(h,k,f));if("number"==typeof h)k=k==h;else if("string"==typeof h||"boolean"==typeof h)k=!!h;else if(h instanceof B)k=0<h.o;else throw Error("Predicate.evaluate returned an unexpected type.");if(!k){k=e;h=k.f;var w=k.a;if(!w)throw Error("Next must be called at least once before remove.");var I=w.b;w=w.a;I?I.a=w:h.a=w;w?w.b=I:h.b=I;h.o--;k.a=null}}return b}
|
|
57
|
+
wb.prototype.toString=function(){return q(this.a,function(a,b){return a+G(b)},"Predicates:")};function P(a,b,c,d){F.call(this,4);this.c=a;this.u=b;this.j=c||new wb([]);this.C=!!d;b=this.j;b=0<b.a.length?b.a[0].f:null;a.N&&b&&(this.f={name:b.name,A:b.A});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}g(P,F);
|
|
58
|
+
P.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.A?J(c.A,a):null,f=1);if(this.C)if(this.i||this.c!=xb)if(b=D((new P(yb,new C("node"))).a(a)),c=E(b))for(a=this.s(c,d,e,f);null!=(c=E(b));)a=Va(a,this.s(c,d,e,f));else a=new B;else a=Ra(this.u,b,d,e),a=hb(this.j,a,f);else a=this.s(a.a,d,e,f);return a};P.prototype.s=function(a,b,c,d){a=this.c.B(this.u,a,b,c);return a=hb(this.j,a,d)};
|
|
59
|
+
P.prototype.toString=function(){var a="Step:"+G("Operator: "+(this.C?"//":"/"));this.c.m&&(a+=G("Axis: "+this.c));a+=G(this.u);if(this.j.a.length){var b=q(this.j.a,function(c,d){return c+G(d)},"Predicates:");a+=G(b)}return a};function zb(a,b,c,d){this.m=a;this.B=b;this.v=c;this.N=d}zb.prototype.toString=function(){return this.m};var Ab={};function Q(a,b,c,d){if(Ab.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new zb(a,b,c,!!d);return Ab[a]=b}
|
|
60
|
+
Q("ancestor",function(a,b){for(var c=new B;b=b.parentNode;)a.a(b)&&Wa(c,b);return c},!0);Q("ancestor-or-self",function(a,b){var c=new B;do a.a(b)&&Wa(c,b);while(b=b.parentNode);return c},!0);
|
|
61
|
+
var qb=Q("attribute",function(a,b){var c=new B,d=a.f();if(b=b.attributes)if(a instanceof C&&null===a.b||"*"==d)for(a=0;d=b[a];a++)c.add(d);else(d=b.getNamedItem(d))&&c.add(d);return c},!1),xb=Q("child",function(a,b,c,d,e){c=ba(c)?c:null;d=ba(d)?d:null;e=e||new B;for(b=b.firstChild;b;b=b.nextSibling)A(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);Q("descendant",Ra,!1,!0);
|
|
62
|
+
var yb=Q("descendant-or-self",function(a,b,c,d){var e=new B;A(b,c,d)&&a.a(b)&&e.add(b);return Ra(a,b,c,d,e)},!1,!0),ub=Q("following",function(a,b,c,d){var e=new B;do for(var f=b;f=f.nextSibling;)A(f,c,d)&&a.a(f)&&e.add(f),e=Ra(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);Q("following-sibling",function(a,b){for(var c=new B;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);Q("namespace",function(){return new B},!1);
|
|
63
|
+
var Bb=Q("parent",function(a,b){var c=new B;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;b=b.parentNode;a.a(b)&&c.add(b);return c},!1),vb=Q("preceding",function(a,b,c,d){var e=new B,f=[];do f.unshift(b);while(b=b.parentNode);for(var h=1,m=f.length;h<m;h++){var k=[];for(b=f[h];b=b.previousSibling;)k.unshift(b);for(var w=0,I=k.length;w<I;w++)b=k[w],A(b,c,d)&&a.a(b)&&e.add(b),e=Ra(a,b,c,d,e)}return e},!0,!0);
|
|
64
|
+
Q("preceding-sibling",function(a,b){for(var c=new B;b=b.previousSibling;)a.a(b)&&Wa(c,b);return c},!0);var Cb=Q("self",function(a,b){var c=new B;a.a(b)&&c.add(b);return c},!1);function Db(a){F.call(this,1);this.c=a;this.i=a.i;this.b=a.b}g(Db,F);Db.prototype.a=function(a){return-H(this.c,a)};Db.prototype.toString=function(){return"Unary Expression: -"+G(this.c)};function Eb(a){F.call(this,4);this.c=a;$a(this,oa(this.c,function(b){return b.i}));ab(this,oa(this.c,function(b){return b.b}))}g(Eb,F);Eb.prototype.a=function(a){var b=new B;n(this.c,function(c){c=c.a(a);if(!(c instanceof B))throw Error("Path expression must evaluate to NodeSet.");b=Va(b,c)});return b};Eb.prototype.toString=function(){return q(this.c,function(a,b){return a+G(b)},"Union Expression:")};function Fb(a,b){this.a=a;this.b=b}function Gb(a){for(var b,c=[];;){R(a,"Missing right hand side of binary expression.");b=Hb(a);var d=y(a.a);if(!d)break;var e=(d=fb[d]||null)&&d.H;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].H;)b=new bb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new bb(c.pop(),c.pop(),b);return b}function R(a,b){if(Ia(a.a))throw Error(b);}function Ib(a,b){a=y(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
65
|
+
function Jb(a){a=y(a.a);if(")"!=a)throw Error("Bad token: "+a);}function Kb(a){a=y(a.a);if(2>a.length)throw Error("Unclosed literal string");return new mb(a)}
|
|
66
|
+
function Lb(a){var b=[];if(tb(x(a.a))){var c=y(a.a);var d=x(a.a);if("/"==c&&(Ia(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new rb;d=new rb;R(a,"Missing next location step.");c=Mb(a,c);b.push(c)}else{a:{c=x(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":y(a.a);c=Gb(a);R(a,'unclosed "("');Ib(a,")");break;case '"':case "'":c=Kb(a);break;default:if(isNaN(+c))if(!lb(c)&&/(?![0-9])[\w]/.test(d)&&"("==x(a.a,1)){c=y(a.a);
|
|
67
|
+
c=kb[c]||null;y(a.a);for(d=[];")"!=x(a.a);){R(a,"Missing function argument list.");d.push(Gb(a));if(","!=x(a.a))break;y(a.a)}R(a,"Unclosed function argument list.");Jb(a);c=new ib(c,d)}else{c=null;break a}else c=new ob(+y(a.a))}"["==x(a.a)&&(d=new wb(Nb(a)),c=new gb(c,d))}if(c)if(tb(x(a.a)))d=c;else return c;else c=Mb(a,"/"),d=new sb,b.push(c)}for(;tb(x(a.a));)c=y(a.a),R(a,"Missing next location step."),c=Mb(a,c),b.push(c);return new pb(d,b)}
|
|
68
|
+
function Mb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==x(a.a)){var c=new P(Cb,new C("node"));y(a.a);return c}if(".."==x(a.a))return c=new P(Bb,new C("node")),y(a.a),c;if("@"==x(a.a)){var d=qb;y(a.a);R(a,"Missing attribute name")}else if("::"==x(a.a,1)){if(!/(?![0-9])[\w]/.test(x(a.a).charAt(0)))throw Error("Bad token: "+y(a.a));var e=y(a.a);d=Ab[e]||null;if(!d)throw Error("No axis with name: "+e);y(a.a);R(a,"Missing node name")}else d=xb;e=x(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
69
|
+
x(a.a,1)){if(!lb(e))throw Error("Invalid node type: "+e);e=y(a.a);if(!lb(e))throw Error("Invalid type name: "+e);Ib(a,"(");R(a,"Bad nodetype");var f=x(a.a).charAt(0),h=null;if('"'==f||"'"==f)h=Kb(a);R(a,"Bad nodetype");Jb(a);e=new C(e,h)}else if(e=y(a.a),f=e.indexOf(":"),-1==f)e=new nb(e);else{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 nb(e,m)}else throw Error("Bad token: "+y(a.a));a=new wb(Nb(a),d.v);return c||
|
|
70
|
+
new P(d,e,a,"//"==b)}function Nb(a){for(var b=[];"["==x(a.a);){y(a.a);R(a,"Missing predicate expression.");var c=Gb(a);b.push(c);R(a,"Unclosed predicate expression.");Ib(a,"]")}return b}function Hb(a){if("-"==x(a.a))return y(a.a),new Db(Hb(a));var b=Lb(a);if("|"!=x(a.a))a=b;else{for(b=[b];"|"==y(a.a);)R(a,"Missing next union location path."),b.push(Lb(a));a.a.a--;a=new Eb(b)}return a};function Ob(a){switch(a.nodeType){case 1:return ka(Pb,a);case 9:return Ob(a.documentElement);case 11:case 10:case 6:case 12:return Qb;default:return a.parentNode?Ob(a.parentNode):Qb}}function Qb(){return null}function Pb(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?Pb(a.parentNode,b):null};function Rb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=Fa(a);if(Ia(a))throw Error("Invalid XPath expression.");b?"function"==da(b)||(b=ja(b.lookupNamespaceURI,b)):b=function(){return null};var c=Gb(new Fb(a,b));if(!Ia(a))throw Error("Bad token: "+y(a));this.evaluate=function(d,e){d=c.a(new l(d));return new S(d,e)}}
|
|
71
|
+
function S(a,b){if(0==b)if(a instanceof B)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 B))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof B?Ya(a):""+a;break;case 1:this.numberValue=a instanceof B?+Ya(a):+a;break;case 3:this.booleanValue=a instanceof B?0<a.o:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
72
|
+
D(a);var d=[];for(var e=E(c);e;e=E(c))d.push(e);this.snapshotLength=a.o;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=Xa(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(h){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return h>=d.length||0>h?null:d[h]}}S.ANY_TYPE=0;
|
|
73
|
+
S.NUMBER_TYPE=1;S.STRING_TYPE=2;S.BOOLEAN_TYPE=3;S.UNORDERED_NODE_ITERATOR_TYPE=4;S.ORDERED_NODE_ITERATOR_TYPE=5;S.UNORDERED_NODE_SNAPSHOT_TYPE=6;S.ORDERED_NODE_SNAPSHOT_TYPE=7;S.ANY_UNORDERED_NODE_TYPE=8;S.FIRST_ORDERED_NODE_TYPE=9;function Sb(a){this.lookupNamespaceURI=Ob(a)}
|
|
74
|
+
function Tb(a,b){a=a||aa;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=S,c.evaluate=function(d,e,f,h){return(new Rb(d,f)).evaluate(e,h)},c.createExpression=function(d,e){return new Rb(d,e)},c.createNSResolver=function(d){return new Sb(d)}}ca("wgxpath.install",Tb);ca("wgxpath.install",Tb);function T(a,b){this.code=a;this.a=U[a]||Ub;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(c){return c.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||""}g(T,Error);var Ub="unknown error",U={15:"element not selectable",11:"element not visible"};U[31]=Ub;U[30]=Ub;U[24]="invalid cookie domain";U[29]="invalid element coordinates";U[12]="invalid element state";
|
|
75
|
+
U[32]="invalid selector";U[51]="invalid selector";U[52]="invalid selector";U[17]="javascript error";U[405]="unsupported operation";U[34]="move target out of bounds";U[27]="no such alert";U[7]="no such element";U[8]="no such frame";U[23]="no such window";U[28]="script timeout";U[33]="session not created";U[10]="stale element reference";U[21]="timeout";U[25]="unable to set cookie";U[26]="unexpected alert open";U[13]=Ub;U[9]="unknown command";var Vb=za(),Wb=Ba()||t("iPod"),Xb=t("iPad"),Yb=t("Android")&&!(Aa()||za()||t("Opera")||t("Silk")),Zb=Aa(),$b=t("Safari")&&!(Aa()||t("Coast")||t("Opera")||t("Edge")||t("Edg/")||t("OPR")||za()||t("Silk")||t("Android"))&&!(Ba()||t("iPad")||t("iPod"));function ac(a){return(a=a.exec(r))?a[1]:""}var bc=function(){if(Vb)return ac(/Firefox\/([0-9.]+)/);if(Zb)return Ba()||t("iPad")||t("iPod")?ac(/CriOS\/([0-9.]+)/):ac(/Chrome\/([0-9.]+)/);if($b&&!(Ba()||t("iPad")||t("iPod")))return ac(/Version\/([0-9.]+)/);if(Wb||Xb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(r);if(a)return a[1]+"."+a[2]}else if(Yb)return(a=ac(/Android\s+([0-9.]+)/))?a:ac(/Version\/([0-9.]+)/);return""}();var cc=Xb||Wb,dc;if(Yb){var ec=/Android\s+([0-9\.]+)/.exec(r);dc=ec?ec[1]:"0"}else dc="0";var fc=dc;function gc(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var hc="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");function ic(a){return oa(hc,function(b){return gc(a,b)})?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&gc(a,"OPTGROUP")||gc(a,"OPTION")?ic(a.parentNode):!Qa(a,function(b){var c=b.parentNode;if(c&&gc(c,"FIELDSET")&&c.disabled){if(!gc(b,"LEGEND"))return!0;for(;b=void 0!==b.previousElementSibling?b.previousElementSibling:Ka(b.previousSibling);)if(gc(b,"LEGEND"))return!0}return!1}):!0};var jc=aa.JSON.stringify;function kc(a){function b(c,d){switch(da(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return p(c,function(f){return b(f,d)});case "object":if(0<=d.indexOf(c))throw new T(17,"Recursive object cannot be transferred");if(v(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=lc(c);return e}if(v(c,"document"))return e={},e.WINDOW=lc(c),e;d.push(c);if(ea(c))return p(c,function(f){return b(f,d)});c=wa(c,function(f,h){return"number"==
|
|
76
|
+
typeof h||ba(h)});return xa(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function mc(a,b){return"array"==da(a)?p(a,function(c){return mc(c,b)}):fa(a)?"function"==typeof a?a:v(a,"ELEMENT")?nc(a.ELEMENT,b):v(a,"WINDOW")?nc(a.WINDOW,b):xa(a,function(c){return mc(c,b)}):a}function oc(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.F=la());b.F||(b.F=la());return b}function lc(a){var b=oc(a.ownerDocument),c=ya(b,function(d){return d==a});c||(c=":wdc:"+b.F++,b[c]=a);return c}
|
|
77
|
+
function nc(a,b){a=decodeURIComponent(a);b=b||document;var c=oc(b);if(!v(c,a))throw new T(10,"Element does not exist in cache");var d=c[a];if(v(d,"setInterval")){if(d.closed)throw delete c[a],new T(23,"Window has been closed.");return d}for(var e=d;e;){if(e==b.documentElement)return d;e.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new T(10,"Element is no longer attached to the DOM");};var pc=Yb?!(Yb?0<=sa(fc):0<=sa(bc)):!cc;function V(a,b,c){this.a=a;this.b=b;this.f=c}V.prototype.create=function(a){a=Pa(a).createEvent("HTMLEvents");a.initEvent(this.a,this.b,this.f);return a};V.prototype.toString=function(){return this.a};function W(a,b,c){ma(this,a,b,c)}g(W,V);
|
|
78
|
+
W.prototype.create=function(a,b){if(this==qc)throw new T(9,"Browser does not support a mouse pixel scroll event.");var c=Pa(a);a=c?c.parentWindow||c.defaultView:window;c=c.createEvent("MouseEvents");this==rc&&(c.wheelDelta=b.wheelDelta);c.initMouseEvent(this.a,this.b,this.f,a,1,b.clientX,b.clientY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};function sc(a,b,c){ma(this,a,b,c)}g(sc,V);
|
|
79
|
+
sc.prototype.create=function(a,b){a=Pa(a).createEvent("Events");a.initEvent(this.a,this.b,this.f);a.altKey=b.altKey;a.ctrlKey=b.ctrlKey;a.metaKey=b.metaKey;a.shiftKey=b.shiftKey;a.keyCode=b.charCode||b.keyCode;a.charCode=this==tc?a.keyCode:0;return a};function uc(a,b,c){ma(this,a,b,c)}g(uc,V);
|
|
80
|
+
uc.prototype.create=function(a,b){function c(N){N=p(N,function(u){return h.createTouch(m,a,u.identifier,u.pageX,u.pageY,u.screenX,u.screenY)});return h.createTouchList.apply(h,N)}function d(N){var u=p(N,function(O){return{identifier:O.identifier,screenX:O.screenX,screenY:O.screenY,clientX:O.clientX,clientY:O.clientY,pageX:O.pageX,pageY:O.pageY,target:a}});u.item=function(O){return u[O]};return u}function e(N){return p(N,function(u){return new Touch({identifier:u.identifier,screenX:u.screenX,screenY:u.screenY,
|
|
81
|
+
clientX:u.clientX,clientY:u.clientY,pageX:u.pageX,pageY:u.pageY,target:a})})}function f(N,u){switch(N){case 1:return d(u);case 2:return c(u);case 3:return e(u)}return null}var h=Pa(a),m=h?h.parentWindow||h.defaultView:window;if(pc)var k=1;else if(TouchEvent.prototype.initTouchEvent)k=2;else if(TouchEvent&&0<TouchEvent.length)k=3;else throw new T(9,"Not able to create touch events in this browser");var w=f(k,b.changedTouches),I=b.touches==b.changedTouches?w:f(k,b.touches),Ja=b.targetTouches==b.changedTouches?
|
|
82
|
+
w:f(k,b.targetTouches);if(1==k)k=h.createEvent("MouseEvents"),k.initMouseEvent(this.a,this.b,this.f,m,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),k.touches=I,k.targetTouches=Ja,k.changedTouches=w,k.scale=b.scale,k.rotation=b.rotation;else if(2==k)k=h.createEvent("TouchEvent"),0==k.initTouchEvent.length?k.initTouchEvent(I,Ja,w,this.a,m,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey):k.initTouchEvent(this.a,this.b,this.f,m,1,0,0,b.clientX,b.clientY,
|
|
83
|
+
b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,I,Ja,w,b.scale,b.rotation),k.relatedTarget=b.relatedTarget;else if(3==k)k=new TouchEvent(this.a,{touches:I,targetTouches:Ja,changedTouches:w,bubbles:this.b,cancelable:this.f,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey});else throw new T(9,"Illegal TouchEventStrategy_ value (this is a bug)");return k};function X(a,b,c){ma(this,a,b,c)}g(X,V);X.prototype.create=function(){throw new T(9,"Browser does not support MSGesture events.");};
|
|
84
|
+
function Y(a,b,c){ma(this,a,b,c)}g(Y,V);Y.prototype.create=function(){throw new T(9,"Browser does not support MSPointer events.");};new W("click",!0,!0);new W("contextmenu",!0,!0);new W("dblclick",!0,!0);new W("mousedown",!0,!0);new W("mousemove",!0,!1);new W("mouseout",!0,!0);new W("mouseover",!0,!0);new W("mouseup",!0,!0);var rc=new W("mousewheel",!0,!0),qc=new W("MozMousePixelScroll",!0,!0);new sc("keydown",!0,!0);var tc=new sc("keypress",!0,!0);new sc("keyup",!0,!0);new uc("touchend",!0,!0);
|
|
85
|
+
new uc("touchmove",!0,!0);new uc("touchstart",!0,!0);new X("MSGestureChange",!0,!0);new X("MSGestureEnd",!0,!0);new X("MSGestureHold",!0,!0);new X("MSGestureStart",!0,!0);new X("MSGestureTap",!0,!0);new X("MSInertiaStart",!0,!0);new Y("MSGotPointerCapture",!0,!1);new Y("MSLostPointerCapture",!0,!1);new Y("MSPointerCancel",!0,!0);new Y("MSPointerDown",!0,!0);new Y("MSPointerMove",!0,!0);new Y("MSPointerOver",!0,!0);new Y("MSPointerOut",!0,!0);new Y("MSPointerUp",!0,!0);function vc(a,b){this.b={};this.a=[];this.f=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 vc)for(c=wc(a),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])}
|
|
86
|
+
function wc(a){if(a.f!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Object.prototype.hasOwnProperty.call(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.f!=a.a.length){var e={};for(c=b=0;b<a.a.length;)d=a.a[b],Object.prototype.hasOwnProperty.call(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}return a.a.concat()}vc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.b,a)?this.b[a]:b};
|
|
87
|
+
vc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.b,a)||(this.f++,this.a.push(a));this.b[a]=b};var xc={};function Z(a,b,c){fa(a)&&(a=a.g);a=new yc(a);!b||b in xc&&!c||(xc[b]={key:a,shift:!1},c&&(xc[c]={key:a,shift:!0}));return a}function yc(a){this.code=a}Z(8);Z(9);Z(13);var zc=Z(16),Ac=Z(17),Bc=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");
|
|
88
|
+
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 Cc=Z(Da?{h:91,g:91}:Ca?{h:224,g:91}:{h:0,g:91});Z(Da?{h:92,g:92}:Ca?{h:224,g:93}:{h:0,g:92});Z(Da?{h:93,g:93}:Ca?{h:0,g:0}:{h:93,g:null});Z({h:96,g:96},"0");Z({h:97,g:97},"1");
|
|
89
|
+
Z({h:98,g:98},"2");Z({h:99,g:99},"3");Z({h:100,g:100},"4");Z({h:101,g:101},"5");Z({h:102,g:102},"6");Z({h:103,g:103},"7");Z({h:104,g:104},"8");Z({h:105,g:105},"9");Z({h:106,g:106},"*");Z({h:107,g:107},"+");Z({h:109,g:109},"-");Z({h:110,g:110},".");Z({h: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({h:107,g:187},"=","+");Z(108,",");Z({h:109,g:189},"-","_");Z(188,",","<");Z(190,".",">");Z(191,"/","?");Z(192,"`","~");Z(219,"[","{");
|
|
90
|
+
Z(220,"\\","|");Z(221,"]","}");Z({h:59,g:186},";",":");Z(222,"'",'"');var Dc=new vc;Dc.set(1,zc);Dc.set(2,Ac);Dc.set(4,Bc);Dc.set(8,Cc);(function(a){var b=new vc;n(wc(a),function(c){b.set(a.get(c).code,c)});return b})(Dc);ca("_",function(a,b){a=[a];var c=ic;try{var d;b?d=nc(b.WINDOW):d=window;var e=mc(a,d.document),f=c.apply(null,e);var h={status:0,value:kc(f)}}catch(m){h={status:v(m,"code")?m.code:13,value:{message:m.message}}}return jc(h)});; return this._.apply(null,arguments);}).apply(window, arguments);}
|