-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathget_text.js
executable file
·119 lines (114 loc) · 50.9 KB
/
get_text.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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}
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";
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){return"function"==da(a)}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a,b,c){return a.call.apply(a.bind,arguments)}
function ja(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 ka(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka=ia:ka=ja;return ka.apply(null,arguments)}
function la(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 ma=Date.now||function(){return+new Date};function h(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a}
function na(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 g=a.constructor.prototype;g;g=Object.getPrototypeOf(g))if(g[b]===d)f=!0;else if(f){g[b].apply(a,
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");}};/*
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 oa(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var pa=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},m=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)},q=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,
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},qa=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;m(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},ra=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},sa=Array.prototype.every?function(a,b){return Array.prototype.every.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!1;return!0};function ta(a){return Array.prototype.concat.apply([],arguments)}function ua(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function va(a){var b=a.length-1;return 0<=b&&a.indexOf(" ",b)==b}var wa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
function xa(a){var b=0;a=wa(String(a)).split(".");for(var c=wa("4").split("."),d=Math.max(a.length,c.length),e=0;0==b&&e<d;e++){var f=a[e]||"",g=c[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;b=ya(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||ya(0==f[2].length,0==g[2].length)||ya(f[2],g[2]);f=f[3];g=g[3]}while(0==b)}return b}function ya(a,b){return a<b?-1:a>b?1:0};var za;a:{var Aa=aa.navigator;if(Aa){var Ba=Aa.userAgent;if(Ba){za=Ba;break a}}za=""}function r(a){return-1!=za.indexOf(a)};function Ca(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Da(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}function Ea(a,b){return null!==a&&b in a}function Fa(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};function Ga(){return r("Firefox")||r("FxiOS")}function Ha(){return(r("Chrome")||r("CriOS"))&&!r("Edge")};function Ia(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function Ja(){return r("iPhone")&&!r("iPod")&&!r("iPad")};var Ka=r("Macintosh"),La=r("Windows");function Ma(a){this.b=a;this.a=0}function Na(a){a=a.match(Oa);for(var b=0;b<a.length;b++)Pa.test(a[b])&&a.splice(b,1);return new Ma(a)}var Oa=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,Pa=/^\s/;function t(a,b){return a.b[a.a+(b||0)]}function w(a){return a.b[a.a++]}function Qa(a){return a.b.length<=a.a};function Ra(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}Ra.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};Ra.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};Ra.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};Ra.prototype.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};function Sa(a,b){this.width=a;this.height=b}Sa.prototype.aspectRatio=function(){return this.width/this.height};Sa.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Sa.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Sa.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
Sa.prototype.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function Ta(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function Ua(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 Va(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?Wa(a,b):!c&&Ua(e,b)?-1*Xa(a,b):!d&&Ua(f,a)?Xa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=x(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);
a.collapse(!0);return c.compareBoundaryPoints(aa.Range.START_TO_END,a)}function Xa(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Wa(b,a)}function Wa(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function x(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Ya(a,b){a&&(a=a.parentNode);for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function Za(a){this.a=a||aa.document||document}
Za.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};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}
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 ab(a,b,c,d,e){return bb.call(null,a,b,ba(c)?c:null,ba(d)?d:null,e||new A)}
function bb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof C?cb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){$a(f,c,d)&&e.add(f)}));return e}function cb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)$a(b,c,d)&&a.a(b)&&e.add(b),cb(a,b,c,d,e)};function A(){this.b=this.a=null;this.o=0}function db(a){this.f=a;this.a=this.b=null}function eb(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<Va(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 fb(a,b){b=new db(b);b.a=a.a;a.b?a.a.b=b:a.a=a.b=b;a.a=b;a.o++}A.prototype.add=function(a){a=new db(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.o++};
function gb(a){return(a=a.a)?a.f:null}function hb(a){return(a=gb(a))?z(a):""}function D(a,b){return new ib(a,!!b)}function ib(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 H(a){return"\n "+a.toString().split("\n").join("\n ")}function jb(a,b){a.i=b}function kb(a,b){a.b=b}function I(a,b){a=a.a(b);return a instanceof A?+hb(a):+a}function J(a,b){a=a.a(b);return a instanceof A?hb(a):""+a}function lb(a,b){a=a.a(b);return a instanceof A?!!a.o:!!a};function mb(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==nb&&(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})}h(mb,F);
function ob(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof A&&c instanceof A){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 A||c instanceof A){b instanceof A?(e=b,d=c):(e=c,d=b);f=D(e);for(var g=typeof d,k=E(f);k;k=E(f)){switch(g){case "number":k=+z(k);break;case "boolean":k=!!z(k);break;case "string":k=z(k);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(k,d)||e==c&&a(d,k))return!0}return!1}return e?"boolean"==
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}mb.prototype.a=function(a){return this.c.s(this.j,this.u,a)};mb.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=H(this.j);return a+=H(this.u)};function pb(a,b,c,d){this.M=a;this.H=b;this.l=c;this.s=d}pb.prototype.toString=function(){return this.M};var rb={};
function K(a,b,c,d){if(rb.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new pb(a,b,c,d);return rb[a.toString()]=a}K("div",6,1,function(a,b,c){return I(a,c)/I(b,c)});K("mod",6,1,function(a,b,c){return I(a,c)%I(b,c)});K("*",6,1,function(a,b,c){return I(a,c)*I(b,c)});K("+",5,1,function(a,b,c){return I(a,c)+I(b,c)});K("-",5,1,function(a,b,c){return I(a,c)-I(b,c)});K("<",4,2,function(a,b,c){return ob(function(d,e){return d<e},a,b,c)});
K(">",4,2,function(a,b,c){return ob(function(d,e){return d>e},a,b,c)});K("<=",4,2,function(a,b,c){return ob(function(d,e){return d<=e},a,b,c)});K(">=",4,2,function(a,b,c){return ob(function(d,e){return d>=e},a,b,c)});var nb=K("=",3,2,function(a,b,c){return ob(function(d,e){return d==e},a,b,c,!0)});K("!=",3,2,function(a,b,c){return ob(function(d,e){return d!=e},a,b,c,!0)});K("and",2,2,function(a,b,c){return lb(a,c)&&lb(b,c)});K("or",1,2,function(a,b,c){return lb(a,c)||lb(b,c)});function sb(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}h(sb,F);sb.prototype.a=function(a){a=this.c.a(a);return tb(this.j,a)};sb.prototype.toString=function(){var a="Filter:"+H(this.c);return a+=H(this.j)};function ub(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&&m(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;jb(this,a.i||ra(b,function(c){return c.i}));kb(this,a.K&&!b.length||a.J&&!!b.length||ra(b,function(c){return c.b}))}
h(ub,F);ub.prototype.a=function(a){return this.B.s.apply(null,ta(a,this.c))};ub.prototype.toString=function(){var a="Function: "+this.B;if(this.c.length){var b=qa(this.c,function(c,d){return c+H(d)},"Arguments:");a+=H(b)}return a};function vb(a,b,c,d,e,f,g,k){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!==g?g:f;this.L=!!k}vb.prototype.toString=function(){return this.m};var wb={};
function L(a,b,c,d,e,f,g,k){if(wb.hasOwnProperty(a))throw Error("Function already created: "+a+".");wb[a]=new vb(a,b,c,d,e,f,g,k)}L("boolean",2,!1,!1,function(a,b){return lb(b,a)},1);L("ceiling",1,!1,!1,function(a,b){return Math.ceil(I(b,a))},1);L("concat",3,!1,!1,function(a,b){return qa(ua(arguments,1),function(c,d){return c+J(d,a)},"")},2,null);L("contains",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return-1!=b.indexOf(a)},2);L("count",1,!1,!1,function(a,b){return b.a(a).o},1,1,!0);
L("false",2,!1,!1,function(){return!1},0);L("floor",1,!1,!1,function(a,b){return Math.floor(I(b,a))},1);L("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=[];m(a,function(g){g=d.getElementById(g);!g||0<=pa(e,g)||e.push(g)});e.sort(Va);var f=new A;m(e,function(g){f.add(g)});return f},1);L("lang",2,!1,!1,function(){return!1},1);L("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
L("local-name",3,!1,!0,function(a,b){return(a=b?gb(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);L("name",3,!1,!0,function(a,b){return(a=b?gb(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);L("namespace-uri",3,!0,!1,function(){return""},0,1,!0);L("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);L("not",2,!1,!1,function(a,b){return!lb(b,a)},1);L("number",1,!1,!0,function(a,b){return b?I(b,a):+z(a.a)},0,1);
L("position",1,!0,!1,function(a){return a.b},0);L("round",1,!1,!1,function(a,b){return Math.round(I(b,a))},1);L("starts-with",2,!1,!1,function(a,b,c){b=J(b,a);a=J(c,a);return 0==b.lastIndexOf(a,0)},2);L("string",3,!1,!0,function(a,b){return b?J(b,a):z(a.a)},0,1);L("string-length",1,!1,!0,function(a,b){return(b?J(b,a):z(a.a)).length},0,1);
L("substring",3,!1,!1,function(a,b,c,d){c=I(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?I(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);L("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);
L("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);L("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);L("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);L("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 xb(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};
C.prototype.toString=function(){var a="Kind Test: "+this.j;null===this.c||(a+=H(this.c));return a};function yb(a){F.call(this,3);this.c=a.substring(1,a.length-1)}h(yb,F);yb.prototype.a=function(){return this.c};yb.prototype.toString=function(){return"Literal: "+this.c};function zb(a,b){this.m=a.toLowerCase();a="*"==this.m?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}zb.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")};zb.prototype.f=function(){return this.m};
zb.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.m};function Ab(a){F.call(this,1);this.c=a}h(Ab,F);Ab.prototype.a=function(){return this.c};Ab.prototype.toString=function(){return"Number: "+this.c};function Bb(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!=Cb||(a=a.u,"*"!=a.f()&&(this.f={name:a.f(),A:null})))}h(Bb,F);function Db(){F.call(this,4)}h(Db,F);Db.prototype.a=function(a){var b=new A;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Db.prototype.toString=function(){return"Root Helper Expression"};function Eb(){F.call(this,4)}h(Eb,F);Eb.prototype.a=function(a){var b=new A;b.add(a.a);return b};Eb.prototype.toString=function(){return"Context Helper Expression"};
function Fb(a){return"/"==a||"//"==a}Bb.prototype.a=function(a){var b=this.j.a(a);if(!(b instanceof A))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!=Gb)if(e.i||e.c!=Hb){var g=E(f);for(b=e.a(new oa(g));null!=(g=E(f));)g=e.a(new oa(g)),b=eb(b,g)}else g=E(f),b=e.a(new oa(g));else{for(g=E(f);(b=E(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new oa(g))}}return b};
Bb.prototype.toString=function(){var a="Path Expression:"+H(this.j);if(this.c.length){var b=qa(this.c,function(c,d){return c+H(d)},"Steps:");a+=H(b)}return a};function Ib(a,b){this.a=a;this.v=!!b}
function tb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=D(b),f=b.o,g,k=0;g=E(e);k++){var l=a.v?f-k:k+1;g=d.a(new oa(g,l,f));if("number"==typeof g)l=l==g;else if("string"==typeof g||"boolean"==typeof g)l=!!g;else if(g instanceof A)l=0<g.o;else throw Error("Predicate.evaluate returned an unexpected type.");if(!l){l=e;g=l.f;var v=l.a;if(!v)throw Error("Next must be called at least once before remove.");var p=v.b;v=v.a;p?p.a=v:g.a=v;v?v.b=p:g.b=p;g.o--;l.a=null}}return b}
Ib.prototype.toString=function(){return qa(this.a,function(a,b){return a+H(b)},"Predicates:")};function M(a,b,c,d){F.call(this,4);this.c=a;this.u=b;this.j=c||new Ib([]);this.C=!!d;b=this.j;b=0<b.a.length?b.a[0].f:null;a.O&&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}h(M,F);
M.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!=Jb)if(b=D((new M(Kb,new C("node"))).a(a)),c=E(b))for(a=this.s(c,d,e,f);null!=(c=E(b));)a=eb(a,this.s(c,d,e,f));else a=new A;else a=ab(this.u,b,d,e),a=tb(this.j,a,f);else a=this.s(a.a,d,e,f);return a};M.prototype.s=function(a,b,c,d){a=this.c.B(this.u,a,b,c);return a=tb(this.j,a,d)};
M.prototype.toString=function(){var a="Step:"+H("Operator: "+(this.C?"//":"/"));this.c.m&&(a+=H("Axis: "+this.c));a+=H(this.u);if(this.j.a.length){var b=qa(this.j.a,function(c,d){return c+H(d)},"Predicates:");a+=H(b)}return a};function Lb(a,b,c,d){this.m=a;this.B=b;this.v=c;this.O=d}Lb.prototype.toString=function(){return this.m};var Mb={};function N(a,b,c,d){if(Mb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new Lb(a,b,c,!!d);return Mb[a]=b}
N("ancestor",function(a,b){for(var c=new A;b=b.parentNode;)a.a(b)&&fb(c,b);return c},!0);N("ancestor-or-self",function(a,b){var c=new A;do a.a(b)&&fb(c,b);while(b=b.parentNode);return c},!0);
var Cb=N("attribute",function(a,b){var c=new A,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),Jb=N("child",function(a,b,c,d,e){c=ba(c)?c:null;d=ba(d)?d:null;e=e||new A;for(b=b.firstChild;b;b=b.nextSibling)$a(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);N("descendant",ab,!1,!0);
var Kb=N("descendant-or-self",function(a,b,c,d){var e=new A;$a(b,c,d)&&a.a(b)&&e.add(b);return ab(a,b,c,d,e)},!1,!0),Gb=N("following",function(a,b,c,d){var e=new A;do for(var f=b;f=f.nextSibling;)$a(f,c,d)&&a.a(f)&&e.add(f),e=ab(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);N("following-sibling",function(a,b){for(var c=new A;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);N("namespace",function(){return new A},!1);
var Nb=N("parent",function(a,b){var c=new A;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),Hb=N("preceding",function(a,b,c,d){var e=new A,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,k=f.length;g<k;g++){var l=[];for(b=f[g];b=b.previousSibling;)l.unshift(b);for(var v=0,p=l.length;v<p;v++)b=l[v],$a(b,c,d)&&a.a(b)&&e.add(b),e=ab(a,b,c,d,e)}return e},!0,!0);
N("preceding-sibling",function(a,b){for(var c=new A;b=b.previousSibling;)a.a(b)&&fb(c,b);return c},!0);var Ob=N("self",function(a,b){var c=new A;a.a(b)&&c.add(b);return c},!1);function Pb(a){F.call(this,1);this.c=a;this.i=a.i;this.b=a.b}h(Pb,F);Pb.prototype.a=function(a){return-I(this.c,a)};Pb.prototype.toString=function(){return"Unary Expression: -"+H(this.c)};function Qb(a){F.call(this,4);this.c=a;jb(this,ra(this.c,function(b){return b.i}));kb(this,ra(this.c,function(b){return b.b}))}h(Qb,F);Qb.prototype.a=function(a){var b=new A;m(this.c,function(c){c=c.a(a);if(!(c instanceof A))throw Error("Path expression must evaluate to NodeSet.");b=eb(b,c)});return b};Qb.prototype.toString=function(){return qa(this.c,function(a,b){return a+H(b)},"Union Expression:")};function Rb(a,b){this.a=a;this.b=b}function Sb(a){for(var b,c=[];;){O(a,"Missing right hand side of binary expression.");b=Tb(a);var d=w(a.a);if(!d)break;var e=(d=rb[d]||null)&&d.H;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].H;)b=new mb(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new mb(c.pop(),c.pop(),b);return b}function O(a,b){if(Qa(a.a))throw Error(b);}function Ub(a,b){a=w(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
function Vb(a){a=w(a.a);if(")"!=a)throw Error("Bad token: "+a);}function Wb(a){a=w(a.a);if(2>a.length)throw Error("Unclosed literal string");return new yb(a)}
function Xb(a){var b=[];if(Fb(t(a.a))){var c=w(a.a);var d=t(a.a);if("/"==c&&(Qa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Db;d=new Db;O(a,"Missing next location step.");c=Yb(a,c);b.push(c)}else{a:{c=t(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":w(a.a);c=Sb(a);O(a,'unclosed "("');Ub(a,")");break;case '"':case "'":c=Wb(a);break;default:if(isNaN(+c))if(!xb(c)&&/(?![0-9])[\w]/.test(d)&&"("==t(a.a,1)){c=w(a.a);
c=wb[c]||null;w(a.a);for(d=[];")"!=t(a.a);){O(a,"Missing function argument list.");d.push(Sb(a));if(","!=t(a.a))break;w(a.a)}O(a,"Unclosed function argument list.");Vb(a);c=new ub(c,d)}else{c=null;break a}else c=new Ab(+w(a.a))}"["==t(a.a)&&(d=new Ib(Zb(a)),c=new sb(c,d))}if(c)if(Fb(t(a.a)))d=c;else return c;else c=Yb(a,"/"),d=new Eb,b.push(c)}for(;Fb(t(a.a));)c=w(a.a),O(a,"Missing next location step."),c=Yb(a,c),b.push(c);return new Bb(d,b)}
function Yb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==t(a.a)){var c=new M(Ob,new C("node"));w(a.a);return c}if(".."==t(a.a))return c=new M(Nb,new C("node")),w(a.a),c;if("@"==t(a.a)){var d=Cb;w(a.a);O(a,"Missing attribute name")}else if("::"==t(a.a,1)){if(!/(?![0-9])[\w]/.test(t(a.a).charAt(0)))throw Error("Bad token: "+w(a.a));var e=w(a.a);d=Mb[e]||null;if(!d)throw Error("No axis with name: "+e);w(a.a);O(a,"Missing node name")}else d=Jb;e=t(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
t(a.a,1)){if(!xb(e))throw Error("Invalid node type: "+e);e=w(a.a);if(!xb(e))throw Error("Invalid type name: "+e);Ub(a,"(");O(a,"Bad nodetype");var f=t(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=Wb(a);O(a,"Bad nodetype");Vb(a);e=new C(e,g)}else if(e=w(a.a),f=e.indexOf(":"),-1==f)e=new zb(e);else{g=e.substring(0,f);if("*"==g)var k="*";else if(k=a.b(g),!k)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new zb(e,k)}else throw Error("Bad token: "+w(a.a));a=new Ib(Zb(a),d.v);return c||
new M(d,e,a,"//"==b)}function Zb(a){for(var b=[];"["==t(a.a);){w(a.a);O(a,"Missing predicate expression.");var c=Sb(a);b.push(c);O(a,"Unclosed predicate expression.");Ub(a,"]")}return b}function Tb(a){if("-"==t(a.a))return w(a.a),new Pb(Tb(a));var b=Xb(a);if("|"!=t(a.a))a=b;else{for(b=[b];"|"==w(a.a);)O(a,"Missing next union location path."),b.push(Xb(a));a.a.a--;a=new Qb(b)}return a};function $b(a){switch(a.nodeType){case 1:return la(ac,a);case 9:return $b(a.documentElement);case 11:case 10:case 6:case 12:return bc;default:return a.parentNode?$b(a.parentNode):bc}}function bc(){return null}function ac(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?ac(a.parentNode,b):null};function cc(a,b){if(!a.length)throw Error("Empty XPath expression.");a=Na(a);if(Qa(a))throw Error("Invalid XPath expression.");b?fa(b)||(b=ka(b.lookupNamespaceURI,b)):b=function(){return null};var c=Sb(new Rb(a,b));if(!Qa(a))throw Error("Bad token: "+w(a));this.evaluate=function(d,e){d=c.a(new oa(d));return new P(d,e)}}
function P(a,b){if(0==b)if(a instanceof A)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 A))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof A?hb(a):""+a;break;case 1:this.numberValue=a instanceof A?+hb(a):+a;break;case 3:this.booleanValue=a instanceof A?0<a.o:!!a;break;case 4:case 5:case 6:case 7:var c=
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=gb(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]}}P.ANY_TYPE=0;
P.NUMBER_TYPE=1;P.STRING_TYPE=2;P.BOOLEAN_TYPE=3;P.UNORDERED_NODE_ITERATOR_TYPE=4;P.ORDERED_NODE_ITERATOR_TYPE=5;P.UNORDERED_NODE_SNAPSHOT_TYPE=6;P.ORDERED_NODE_SNAPSHOT_TYPE=7;P.ANY_UNORDERED_NODE_TYPE=8;P.FIRST_ORDERED_NODE_TYPE=9;function dc(a){this.lookupNamespaceURI=$b(a)}
function ec(a,b){a=a||aa;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=P,c.evaluate=function(d,e,f,g){return(new cc(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new cc(d,e)},c.createNSResolver=function(d){return new dc(d)}}ca("wgxpath.install",ec);ca("wgxpath.install",ec);var hc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var ic="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),jc=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,kc=/^#(?:[0-9a-f]{3}){1,2}$/i,lc=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,mc=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Q(a,b){this.code=a;this.a=R[a]||nc;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||""}h(Q,Error);var nc="unknown error",R={15:"element not selectable",11:"element not visible"};R[31]=nc;R[30]=nc;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]=nc;R[9]="unknown command";var oc=Ga(),pc=Ja()||r("iPod"),qc=r("iPad"),rc=r("Android")&&!(Ha()||Ga()||r("Opera")||r("Silk")),sc=Ha(),tc=r("Safari")&&!(Ha()||r("Coast")||r("Opera")||r("Edge")||r("Edg/")||r("OPR")||Ga()||r("Silk")||r("Android"))&&!(Ja()||r("iPad")||r("iPod"));function uc(a){return(a=a.exec(za))?a[1]:""}var vc=function(){if(oc)return uc(/Firefox\/([0-9.]+)/);if(sc)return Ja()||r("iPad")||r("iPod")?uc(/CriOS\/([0-9.]+)/):uc(/Chrome\/([0-9.]+)/);if(tc&&!(Ja()||r("iPad")||r("iPod")))return uc(/Version\/([0-9.]+)/);if(pc||qc){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(za);if(a)return a[1]+"."+a[2]}else if(rc)return(a=uc(/Android\s+([0-9.]+)/))?a:uc(/Version\/([0-9.]+)/);return""}();var wc=qc||pc,xc;if(rc){var yc=/Android\s+([0-9\.]+)/.exec(za);xc=yc?yc[1]:"0"}else xc="0";var zc=xc;function S(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var Ac={N:function(a,b){fa(b.querySelector);if(!a)throw new Q(32,"No selector specified");a=wa(a);try{var c=b.querySelector(a)}catch(d){throw new Q(32,"An invalid or illegal selector was specified");}return c&&1==c.nodeType?c:null},P:function(a,b){fa(b.querySelectorAll);if(!a)throw new Q(32,"No selector specified");a=wa(a);try{return b.querySelectorAll(a)}catch(c){throw new Q(32,"An invalid or illegal selector was specified");}}};function Bc(a,b,c,d){this.c=a;this.a=b;this.b=c;this.f=d}Bc.prototype.ceil=function(){this.c=Math.ceil(this.c);this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);return this};Bc.prototype.floor=function(){this.c=Math.floor(this.c);this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.f=Math.floor(this.f);return this};Bc.prototype.round=function(){this.c=Math.round(this.c);this.a=Math.round(this.a);this.b=Math.round(this.b);this.f=Math.round(this.f);return this};
Bc.prototype.scale=function(a,b){b="number"===typeof b?b:a;this.f*=a;this.a*=a;this.c*=b;this.b*=b;return this};function T(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}T.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};T.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
T.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};T.prototype.scale=function(a,b){b="number"===typeof b?b:a;this.a*=a;this.width*=a;this.b*=b;this.height*=b;return this};var Cc="function"===typeof ShadowRoot;function Dc(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:null}
function U(a,b){b=Ia(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a:{var c=b;var d=x(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||Ec(a,b);if(null===a)a=null;else if(0<=pa(ic,b)){b:{var e=a.match(lc);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(mc))if(b=Number(d[1]),
c=Number(d[2]),d=Number(d[3]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=hc[b.toLowerCase()];if(!c&&(c="#"==b.charAt(0)?b:"#"+b,4==c.length&&(c=c.replace(jc,"#$1$1$2$2$3$3")),!kc.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}
function Ec(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&fa(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(a=Dc(a))?Ec(a,b):null}
function Fc(a,b,c){function d(g){var k=Gc(g);return 0<k.height&&0<k.width?!0:S(g,"PATH")&&(0<k.height||0<k.width)?(g=U(g,"stroke-width"),!!g&&0<parseInt(g,10)):"hidden"!=U(g,"overflow")&&ra(g.childNodes,function(l){return 3==l.nodeType||S(l)&&d(l)})}function e(g){return Hc(g)==V&&sa(g.childNodes,function(k){return!S(k)||e(k)||!d(k)})}if(!S(a))throw Error("Argument to isShown must be of type Element");if(S(a,"BODY"))return!0;if(S(a,"OPTION")||S(a,"OPTGROUP"))return a=Ya(a,function(g){return S(g,"SELECT")}),
!!a&&Fc(a,!0,c);var f=Ic(a);if(f)return!!f.image&&0<f.rect.width&&0<f.rect.height&&Fc(f.image,b,c);if(S(a,"INPUT")&&"hidden"==a.type.toLowerCase()||S(a,"NOSCRIPT"))return!1;f=U(a,"visibility");return"collapse"!=f&&"hidden"!=f&&c(a)&&(b||0!=Jc(a))&&d(a)?!e(a):!1}
function Kc(a){function b(c){if(S(c)&&"none"==U(c,"display"))return!1;var d;if((d=c.parentNode)&&d.shadowRoot&&void 0!==c.assignedSlot)d=c.assignedSlot?c.assignedSlot.parentNode:null;else if(c.getDestinationInsertionPoints){var e=c.getDestinationInsertionPoints();0<e.length&&(d=e[e.length-1])}if(Cc&&d instanceof ShadowRoot){if(d.host.shadowRoot&&d.host.shadowRoot!==d)return!1;d=d.host}return!d||9!=d.nodeType&&11!=d.nodeType?d&&S(d,"DETAILS")&&!d.open&&!S(c,"SUMMARY")?!1:!!d&&b(d):!0}return Fc(a,!1,
b)}var V="hidden";
function Hc(a){function b(n){function y(qb){if(qb==g)return!0;var fc=U(qb,"display");return 0==fc.lastIndexOf("inline",0)||"contents"==fc||"absolute"==gc&&"static"==U(qb,"position")?!1:!0}var gc=U(n,"position");if("fixed"==gc)return v=!0,n==g?null:g;for(n=Dc(n);n&&!y(n);)n=Dc(n);return n}function c(n){var y=n;if("visible"==l)if(n==g&&k)y=k;else if(n==k)return{x:"visible",y:"visible"};y={x:U(y,"overflow-x"),y:U(y,"overflow-y")};n==g&&(y.x="visible"==y.x?"auto":y.x,y.y="visible"==y.y?"auto":y.y);return y}
function d(n){if(n==g){var y=(new Za(f)).a;n=y.scrollingElement?y.scrollingElement:y.body||y.documentElement;y=y.parentWindow||y.defaultView;n=new Ra(y.pageXOffset||n.scrollLeft,y.pageYOffset||n.scrollTop)}else n=new Ra(n.scrollLeft,n.scrollTop);return n}var e=Lc(a),f=x(a),g=f.documentElement,k=f.body,l=U(g,"overflow"),v;for(a=b(a);a;a=b(a)){var p=c(a);if("visible"!=p.x||"visible"!=p.y){var B=Gc(a);if(0==B.width||0==B.height)return V;var G=e.a<B.a,u=e.b<B.b;if(G&&"hidden"==p.x||u&&"hidden"==p.y)return V;
if(G&&"visible"!=p.x||u&&"visible"!=p.y){G=d(a);u=e.b<B.b-G.y;if(e.a<B.a-G.x&&"visible"!=p.x||u&&"visible"!=p.x)return V;e=Hc(a);return e==V?V:"scroll"}G=e.f>=B.a+B.width;B=e.c>=B.b+B.height;if(G&&"hidden"==p.x||B&&"hidden"==p.y)return V;if(G&&"visible"!=p.x||B&&"visible"!=p.y){if(v&&(p=d(a),e.f>=g.scrollWidth-p.x||e.a>=g.scrollHeight-p.y))return V;e=Hc(a);return e==V?V:"scroll"}}}return"none"}
function Gc(a){var b=Ic(a);if(b)return b.rect;if(S(a,"HTML"))return a=x(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Sa(a.clientWidth,a.clientHeight),new T(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new T(0,0,0,0)}return new T(c.left,c.top,c.right-c.left,c.bottom-c.top)}
function Ic(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=Ac.N('*[usemap="#'+c.name+'"]',x(c)))&&(e=Gc(d),b||"default"==a.shape.toLowerCase()||(a=Mc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new T(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new T(0,0,0,0)}}
function Mc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new T(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new T(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2<a.length){b=a[0];c=a[1];for(var d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return new T(b,c,d-b,e-c)}return new T(0,0,0,0)}function Lc(a){a=Gc(a);return new Bc(a.b,a.a+a.width,a.b+a.height,a.a)}
function Nc(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function Oc(a){var b=[];Cc?Pc(a,b):Qc(a,b);a=q(b,Nc);return Nc(a.join("\n")).replace(/\xa0/g," ")}
function Rc(a,b,c){if(S(a,"BR"))b.push("");else{var d=S(a,"TD"),e=U(a,"display"),f=!d&&!(0<=pa(Sc,e)),g=void 0!==a.previousElementSibling?a.previousElementSibling:Ta(a.previousSibling);g=g?U(g,"display"):"";var k=U(a,"float")||U(a,"cssFloat")||U(a,"styleFloat");!f||"run-in"==g&&"none"==k||/^[\s\xa0]*$/.test(b[b.length-1]||"")||b.push("");var l=Kc(a),v=null,p=null;l&&(v=U(a,"white-space"),p=U(a,"text-transform"));m(a.childNodes,function(B){c(B,b,l,v,p)});a=b[b.length-1]||"";!d&&"table-cell"!=e||!a||
va(a)||(b[b.length-1]+=" ");f&&"run-in"!=e&&!/^[\s\xa0]*$/.test(a)&&b.push("")}}function Qc(a,b){Rc(a,b,function(c,d,e,f,g){3==c.nodeType&&e?Tc(c,d,f,g):S(c)&&Qc(c,d)})}var Sc="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");
function Tc(a,b,c,d){a=a.nodeValue.replace(/[\u200b\u200e\u200f]/g,"");a=a.replace(/(\r\n|\r|\n)/g,"\n");if("normal"==c||"nowrap"==c)a=a.replace(/\n/g," ");a="pre"==c||"pre-wrap"==c?a.replace(/[ \f\t\v\u2028\u2029]/g,"\u00a0"):a.replace(/[ \f\t\v\u2028\u2029]+/g," ");"capitalize"==d?a=a.replace(/(^|[^\d\p{L}\p{S}])([\p{Ll}|\p{S}])/gu,function(e,f,g){return f+g.toUpperCase()}):"uppercase"==d?a=a.toUpperCase():"lowercase"==d&&(a=a.toLowerCase());c=b.pop()||"";va(c)&&0==a.lastIndexOf(" ",0)&&(a=a.substr(1));
b.push(c+a)}function Jc(a){var b=1,c=U(a,"opacity");c&&(b=Number(c));(a=Dc(a))&&(b*=Jc(a));return b}
function Uc(a,b,c,d,e){if(3==a.nodeType&&c)Tc(a,b,d,e);else if(S(a))if(S(a,"CONTENT")||S(a,"SLOT")){for(var f=a;f.parentNode;)f=f.parentNode;f instanceof ShadowRoot?(f=S(a,"CONTENT")?a.getDistributedNodes():a.assignedNodes(),m(0<f.length?f:a.childNodes,function(g){Uc(g,b,c,d,e)})):Pc(a,b)}else if(S(a,"SHADOW")){for(f=a;f.parentNode;)f=f.parentNode;if(f instanceof ShadowRoot&&(a=f))for(a=a.olderShadowRoot;a;)m(a.childNodes,function(g){Uc(g,b,c,d,e)}),a=a.olderShadowRoot}else Pc(a,b)}
function Pc(a,b){a.shadowRoot&&m(a.shadowRoot.childNodes,function(c){Uc(c,b,!0,null,null)});Rc(a,b,function(c,d,e,f,g){var k=null;1==c.nodeType?k=c:3==c.nodeType&&(k=c);null!=k&&(null!=k.assignedSlot||k.getDestinationInsertionPoints&&0<k.getDestinationInsertionPoints().length)||Uc(c,d,e,f,g)})};var Vc=aa.JSON.stringify;function Wc(a){function b(c,d){switch(da(c)){case "string":case "number":case "boolean":return c;case "function":return c.toString();case "array":return q(c,function(f){return b(f,d)});case "object":if(0<=d.indexOf(c))throw new Q(17,"Recursive object cannot be transferred");if(Ea(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=Xc(c);return e}if(Ea(c,"document"))return e={},e.WINDOW=Xc(c),e;d.push(c);if(ea(c))return q(c,function(f){return b(f,d)});c=Ca(c,function(f,g){return"number"==
typeof g||ba(g)});return Da(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function Yc(a,b){return"array"==da(a)?q(a,function(c){return Yc(c,b)}):ha(a)?"function"==typeof a?a:Ea(a,"ELEMENT")?Zc(a.ELEMENT,b):Ea(a,"WINDOW")?Zc(a.WINDOW,b):Da(a,function(c){return Yc(c,b)}):a}function $c(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.F=ma());b.F||(b.F=ma());return b}function Xc(a){var b=$c(a.ownerDocument),c=Fa(b,function(d){return d==a});c||(c=":wdc:"+b.F++,b[c]=a);return c}
function Zc(a,b){a=decodeURIComponent(a);b=b||document;var c=$c(b);if(!Ea(c,a))throw new Q(10,"Element does not exist in cache");var d=c[a];if(Ea(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.host&&11===e.nodeType&&(e=e.host);e=e.parentNode}delete c[a];throw new Q(10,"Element is no longer attached to the DOM");};var ad=rc?!(rc?0<=xa(zc):0<=xa(vc)):!wc;function bd(a,b,c){this.a=a;this.b=b;this.f=c}bd.prototype.create=function(a){a=x(a).createEvent("HTMLEvents");a.initEvent(this.a,this.b,this.f);return a};bd.prototype.toString=function(){return this.a};function W(a,b,c){na(this,a,b,c)}h(W,bd);
W.prototype.create=function(a,b){if(this==cd)throw new Q(9,"Browser does not support a mouse pixel scroll event.");var c=x(a);a=c?c.parentWindow||c.defaultView:window;c=c.createEvent("MouseEvents");this==dd&&(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 ed(a,b,c){na(this,a,b,c)}h(ed,bd);
ed.prototype.create=function(a,b){a=x(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==fd?a.keyCode:0;return a};function gd(a,b,c){na(this,a,b,c)}h(gd,bd);
gd.prototype.create=function(a,b){function c(G){G=q(G,function(u){return g.createTouch(k,a,u.identifier,u.pageX,u.pageY,u.screenX,u.screenY)});return g.createTouchList.apply(g,G)}function d(G){var u=q(G,function(n){return{identifier:n.identifier,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,pageX:n.pageX,pageY:n.pageY,target:a}});u.item=function(n){return u[n]};return u}function e(G){return q(G,function(u){return new Touch({identifier:u.identifier,screenX:u.screenX,screenY:u.screenY,
clientX:u.clientX,clientY:u.clientY,pageX:u.pageX,pageY:u.pageY,target:a})})}function f(G,u){switch(G){case 1:return d(u);case 2:return c(u);case 3:return e(u)}return null}var g=x(a),k=g?g.parentWindow||g.defaultView:window;if(ad)var l=1;else if(TouchEvent.prototype.initTouchEvent)l=2;else if(TouchEvent&&0<TouchEvent.length)l=3;else throw new Q(9,"Not able to create touch events in this browser");var v=f(l,b.changedTouches),p=b.touches==b.changedTouches?v:f(l,b.touches),B=b.targetTouches==b.changedTouches?
v:f(l,b.targetTouches);if(1==l)l=g.createEvent("MouseEvents"),l.initMouseEvent(this.a,this.b,this.f,k,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),l.touches=p,l.targetTouches=B,l.changedTouches=v,l.scale=b.scale,l.rotation=b.rotation;else if(2==l)l=g.createEvent("TouchEvent"),0==l.initTouchEvent.length?l.initTouchEvent(p,B,v,this.a,k,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey):l.initTouchEvent(this.a,this.b,this.f,k,1,0,0,b.clientX,b.clientY,
b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,p,B,v,b.scale,b.rotation),l.relatedTarget=b.relatedTarget;else if(3==l)l=new TouchEvent(this.a,{touches:p,targetTouches:B,changedTouches:v,bubbles:this.b,cancelable:this.f,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey});else throw new Q(9,"Illegal TouchEventStrategy_ value (this is a bug)");return l};function X(a,b,c){na(this,a,b,c)}h(X,bd);X.prototype.create=function(){throw new Q(9,"Browser does not support MSGesture events.");};
function Y(a,b,c){na(this,a,b,c)}h(Y,bd);Y.prototype.create=function(){throw new Q(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 dd=new W("mousewheel",!0,!0),cd=new W("MozMousePixelScroll",!0,!0);new ed("keydown",!0,!0);var fd=new ed("keypress",!0,!0);new ed("keyup",!0,!0);new gd("touchend",!0,!0);
new gd("touchmove",!0,!0);new gd("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 hd(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 hd)for(c=id(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])}
function id(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()}hd.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.b,a)?this.b[a]:b};
hd.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.b,a)||(this.f++,this.a.push(a));this.b[a]=b};var jd={};function Z(a,b,c){ha(a)&&(a=a.g);a=new kd(a);!b||b in jd&&!c||(jd[b]={key:a,shift:!1},c&&(jd[c]={key:a,shift:!0}));return a}function kd(a){this.code=a}Z(8);Z(9);Z(13);var ld=Z(16),md=Z(17),nd=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 od=Z(La?{h:91,g:91}:Ka?{h:224,g:91}:{h:0,g:91});Z(La?{h:92,g:92}:Ka?{h:224,g:93}:{h:0,g:92});Z(La?{h:93,g:93}:Ka?{h:0,g:0}:{h:93,g:null});Z({h:96,g:96},"0");Z({h:97,g:97},"1");
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,"[","{");
Z(220,"\\","|");Z(221,"]","}");Z({h:59,g:186},";",":");Z(222,"'",'"');var pd=new hd;pd.set(1,ld);pd.set(2,md);pd.set(4,nd);pd.set(8,od);(function(a){var b=new hd;m(id(a),function(c){b.set(a.get(c).code,c)});return b})(pd);ca("_",function(a,b){a=[a];try{var c;b?c=Zc(b.WINDOW):c=window;var d=Yc(a,c.document),e=Oc.apply(null,d);var f={status:0,value:Wc(e)}}catch(g){f={status:Ea(g,"code")?g.code:13,value:{message:g.message}}}return Vc(f)});; return this._.apply(null,arguments);}).apply(window, arguments);}