appium-remote-debugger
Version:
Appium proxy for Remote Debugger protocol
95 lines (89 loc) • 40.9 kB
JavaScript
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 g(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function da(a){var b=g(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function fa(a,b,c){return a.call.apply(a.bind,arguments)}
function ha(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 ia(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia=fa:ia=ha;return ia.apply(null,arguments)}
function ja(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 ka=Date.now||function(){return+new Date};function l(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a}
function la(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,
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 n(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var ma=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},p=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},r=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;p(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},na=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 oa(a){return Array.prototype.concat.apply([],arguments)}function pa(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var qa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
function ra(a){var b=0;a=qa(String(a)).split(".");for(var c=qa("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=sa(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||sa(0==f[2].length,0==h[2].length)||sa(f[2],h[2]);f=f[3];h=h[3]}while(0==b)}return b}function sa(a,b){return a<b?-1:a>b?1:0};var ta;a:{var ua=aa.navigator;if(ua){var va=ua.userAgent;if(va){ta=va;break a}}ta=""}function t(a){return-1!=ta.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 Ja(a,b){this.width=a;this.height=b}Ja.prototype.aspectRatio=function(){return this.width/this.height};Ja.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Ja.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Ja.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
Ja.prototype.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};function Ka(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 La(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&&Ka(e,b)?-1*Oa(a,b):!d&&Ka(f,a)?Oa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=z(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 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 z(a){return 9==a.nodeType?a:a.ownerDocument||a.document};function A(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 Pa(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 Qa(a,b,c,d,e){return Ra.call(null,a,b,ba(c)?c:null,ba(d)?d:null,e||new B)}
function Ra(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),p(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),p(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof C?Sa(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),p(b,function(f){Pa(f,c,d)&&e.add(f)}));return e}function Sa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Pa(b,c,d)&&a.a(b)&&e.add(b),Sa(a,b,c,d,e)};function B(){this.b=this.a=null;this.o=0}function Ta(a){this.f=a;this.a=this.b=null}function Ua(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<La(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 Va(a,b){b=new Ta(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 Ta(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.o++};
function Wa(a){return(a=a.a)?a.f:null}function Xa(a){return(a=Wa(a))?A(a):""}function D(a,b){return new Ya(a,!!b)}function Ya(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 Za(a,b){a.i=b}function $a(a,b){a.b=b}function H(a,b){a=a.a(b);return a instanceof B?+Xa(a):+a}function I(a,b){a=a.a(b);return a instanceof B?Xa(a):""+a}function ab(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})}l(bb,F);
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(A(d),A(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=+A(m);break;case "boolean":m=!!A(m);break;case "string":m=A(m);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(m,d)||e==c&&a(d,m))return!0}return!1}return e?"boolean"==
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}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={};
function J(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}J("div",6,1,function(a,b,c){return H(a,c)/H(b,c)});J("mod",6,1,function(a,b,c){return H(a,c)%H(b,c)});J("*",6,1,function(a,b,c){return H(a,c)*H(b,c)});J("+",5,1,function(a,b,c){return H(a,c)+H(b,c)});J("-",5,1,function(a,b,c){return H(a,c)-H(b,c)});J("<",4,2,function(a,b,c){return db(function(d,e){return d<e},a,b,c)});
J(">",4,2,function(a,b,c){return db(function(d,e){return d>e},a,b,c)});J("<=",4,2,function(a,b,c){return db(function(d,e){return d<=e},a,b,c)});J(">=",4,2,function(a,b,c){return db(function(d,e){return d>=e},a,b,c)});var cb=J("=",3,2,function(a,b,c){return db(function(d,e){return d==e},a,b,c,!0)});J("!=",3,2,function(a,b,c){return db(function(d,e){return d!=e},a,b,c,!0)});J("and",2,2,function(a,b,c){return ab(a,c)&&ab(b,c)});J("or",1,2,function(a,b,c){return ab(a,c)||ab(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}l(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&&p(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;Za(this,a.i||na(b,function(c){return c.i}));$a(this,a.K&&!b.length||a.J&&!!b.length||na(b,function(c){return c.b}))}
l(ib,F);ib.prototype.a=function(a){return this.B.s.apply(null,oa(a,this.c))};ib.prototype.toString=function(){var a="Function: "+this.B;if(this.c.length){var b=r(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={};
function L(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)}L("boolean",2,!1,!1,function(a,b){return ab(b,a)},1);L("ceiling",1,!1,!1,function(a,b){return Math.ceil(H(b,a))},1);L("concat",3,!1,!1,function(a,b){return r(pa(arguments,1),function(c,d){return c+I(d,a)},"")},2,null);L("contains",2,!1,!1,function(a,b,c){b=I(b,a);a=I(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(H(b,a))},1);L("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=I(b,a).split(/\s+/);var e=[];p(a,function(h){h=d.getElementById(h);!h||0<=ma(e,h)||e.push(h)});e.sort(La);var f=new B;p(e,function(h){f.add(h)});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?Wa(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);L("name",3,!1,!0,function(a,b){return(a=b?Wa(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?I(b,a):A(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);L("not",2,!1,!1,function(a,b){return!ab(b,a)},1);L("number",1,!1,!0,function(a,b){return b?H(b,a):+A(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(H(b,a))},1);L("starts-with",2,!1,!1,function(a,b,c){b=I(b,a);a=I(c,a);return 0==b.lastIndexOf(a,0)},2);L("string",3,!1,!0,function(a,b){return b?I(b,a):A(a.a)},0,1);L("string-length",1,!1,!0,function(a,b){return(b?I(b,a):A(a.a)).length},0,1);
L("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=I(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=I(b,a);a=I(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=I(b,a);a=I(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+=+A(c);return b},1,1,!0);L("translate",3,!1,!1,function(a,b,c,d){b=I(b,a);c=I(c,a);var e=I(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 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};
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)}l(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};
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}l(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})))}l(pb,F);function rb(){F.call(this,4)}l(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)}l(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"};
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 n(h));null!=(h=E(f));)h=e.a(new n(h)),b=Ua(b,h)}else h=E(f),b=e.a(new n(h));else{for(h=E(f);(b=E(f))&&(!h.contains||h.contains(b))&&b.compareDocumentPosition(h)&8;h=b);b=e.a(new n(h))}}return b};
pb.prototype.toString=function(){var a="Path Expression:"+G(this.j);if(this.c.length){var b=r(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}
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 n(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 K=w.b;w=w.a;K?K.a=w:h.a=w;w?w.b=K:h.b=K;h.o--;k.a=null}}return b}
wb.prototype.toString=function(){return r(this.a,function(a,b){return a+G(b)},"Predicates:")};function M(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.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}l(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?I(c.A,a):null,f=1);if(this.C)if(this.i||this.c!=xb)if(b=D((new M(yb,new C("node"))).a(a)),c=E(b))for(a=this.s(c,d,e,f);null!=(c=E(b));)a=Ua(a,this.s(c,d,e,f));else a=new B;else a=Qa(this.u,b,d,e),a=hb(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=hb(this.j,a,d)};
M.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=r(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.O=d}zb.prototype.toString=function(){return this.m};var Ab={};function N(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}
N("ancestor",function(a,b){for(var c=new B;b=b.parentNode;)a.a(b)&&Va(c,b);return c},!0);N("ancestor-or-self",function(a,b){var c=new B;do a.a(b)&&Va(c,b);while(b=b.parentNode);return c},!0);
var qb=N("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=N("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)Pa(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);N("descendant",Qa,!1,!0);
var yb=N("descendant-or-self",function(a,b,c,d){var e=new B;Pa(b,c,d)&&a.a(b)&&e.add(b);return Qa(a,b,c,d,e)},!1,!0),ub=N("following",function(a,b,c,d){var e=new B;do for(var f=b;f=f.nextSibling;)Pa(f,c,d)&&a.a(f)&&e.add(f),e=Qa(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);N("following-sibling",function(a,b){for(var c=new B;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);N("namespace",function(){return new B},!1);
var Bb=N("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=N("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,K=k.length;w<K;w++)b=k[w],Pa(b,c,d)&&a.a(b)&&e.add(b),e=Qa(a,b,c,d,e)}return e},!0,!0);
N("preceding-sibling",function(a,b){for(var c=new B;b=b.previousSibling;)a.a(b)&&Va(c,b);return c},!0);var Cb=N("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}l(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;Za(this,na(this.c,function(b){return b.i}));$a(this,na(this.c,function(b){return b.b}))}l(Eb,F);Eb.prototype.a=function(a){var b=new B;p(this.c,function(c){c=c.a(a);if(!(c instanceof B))throw Error("Path expression must evaluate to NodeSet.");b=Ua(b,c)});return b};Eb.prototype.toString=function(){return r(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=[];;){Q(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 Q(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);}
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)}
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;Q(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);Q(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);
c=kb[c]||null;y(a.a);for(d=[];")"!=x(a.a);){Q(a,"Missing function argument list.");d.push(Gb(a));if(","!=x(a.a))break;y(a.a)}Q(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),Q(a,"Missing next location step."),c=Mb(a,c),b.push(c);return new pb(d,b)}
function Mb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==x(a.a)){var c=new M(Cb,new C("node"));y(a.a);return c}if(".."==x(a.a))return c=new M(Bb,new C("node")),y(a.a),c;if("@"==x(a.a)){var d=qb;y(a.a);Q(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);Q(a,"Missing node name")}else d=xb;e=x(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
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,"(");Q(a,"Bad nodetype");var f=x(a.a).charAt(0),h=null;if('"'==f||"'"==f)h=Kb(a);Q(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||
new M(d,e,a,"//"==b)}function Nb(a){for(var b=[];"["==x(a.a);){y(a.a);Q(a,"Missing predicate expression.");var c=Gb(a);b.push(c);Q(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);)Q(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 ja(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"==g(b)||(b=ia(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 n(d));return new R(d,e)}}
function R(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?Xa(a):""+a;break;case 1:this.numberValue=a instanceof B?+Xa(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=
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=Wa(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]}}R.ANY_TYPE=0;
R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITERATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDERED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;function Sb(a){this.lookupNamespaceURI=Ob(a)}
function Tb(a,b){a=a||aa;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=R,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 S(a,b){this.code=a;this.a=T[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||""}l(S,Error);var Ub="unknown error",T={15:"element not selectable",11:"element not visible"};T[31]=Ub;T[30]=Ub;T[24]="invalid cookie domain";T[29]="invalid element coordinates";T[12]="invalid element state";
T[32]="invalid selector";T[51]="invalid selector";T[52]="invalid selector";T[17]="javascript error";T[405]="unsupported operation";T[34]="move target out of bounds";T[27]="no such alert";T[7]="no such element";T[8]="no such frame";T[23]="no such window";T[28]="script timeout";T[33]="session not created";T[10]="stale element reference";T[21]="timeout";T[25]="unable to set cookie";T[26]="unexpected alert open";T[13]=Ub;T[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(ta))?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(ta);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(ta);dc=ec?ec[1]:"0"}else dc="0";var fc=dc;function gc(a,b){b&&"string"!==typeof b&&(b=b.toString());return a instanceof HTMLFormElement?!!a&&1==a.nodeType&&(!b||"FORM"==b):!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var hc={N:function(a,b){g(b.querySelector);if(!a)throw new S(32,"No selector specified");a=qa(a);try{var c=b.querySelector(a)}catch(d){throw new S(32,"An invalid or illegal selector was specified");}return c&&1==c.nodeType?c:null},P:function(a,b){g(b.querySelectorAll);if(!a)throw new S(32,"No selector specified");a=qa(a);try{return b.querySelectorAll(a)}catch(c){throw new S(32,"An invalid or illegal selector was specified");}}};function U(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}U.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};U.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};
U.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};U.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};function ic(a){var b;var c=gc(a,"MAP");if(c||gc(a,"AREA")){var d=c?a:gc(a.parentNode,"MAP")?a.parentNode:null,e=b=null;if(d&&d.name&&(b=hc.N('*[usemap="#'+d.name+'"]',z(d)))&&(e=ic(b),!c&&"default"!=a.shape.toLowerCase())){c=jc(a);d=Math.min(Math.max(c.a,0),e.width);var f=Math.min(Math.max(c.b,0),e.height);e=new U(d+e.a,f+e.b,Math.min(c.width,e.width-d),Math.min(c.height,e.height-f))}b={image:b,rect:e||new U(0,0,0,0)}}else b=null;if(b)return b.rect;if(gc(a,"HTML"))return a=z(a),a=((a?a.parentWindow||
a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Ja(a.clientWidth,a.clientHeight),new U(0,0,a.width,a.height);try{var h=a.getBoundingClientRect()}catch(m){return new U(0,0,0,0)}return new U(h.left,h.top,h.right-h.left,h.bottom-h.top)}
function jc(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 U(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new U(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 U(b,c,d-b,e-c)}return new U(0,0,0,0)};var kc=aa.JSON.stringify;function lc(a){function b(c,d){switch(g(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 S(17,"Recursive object cannot be transferred");if(v(c,"nodeType")&&(1==c.nodeType||9==c.nodeType)){var e={};e.ELEMENT=mc(c);return e}if(v(c,"document"))return e={},e.WINDOW=mc(c),e;d.push(c);if(da(c))return q(c,function(f){return b(f,d)});c=wa(c,function(f,h){return"number"==
typeof h||ba(h)});return xa(c,function(f){return b(f,d)});default:return null}}return b(a,[])}function nc(a,b){return"array"==g(a)?q(a,function(c){return nc(c,b)}):ea(a)?"function"==typeof a?a:v(a,"ELEMENT")?oc(a.ELEMENT,b):v(a,"WINDOW")?oc(a.WINDOW,b):xa(a,function(c){return nc(c,b)}):a}function pc(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={},b.F=ka());b.F||(b.F=ka());return b}function mc(a){var b=pc(a.ownerDocument),c=ya(b,function(d){return d==a});c||(c=":wdc:"+b.F++,b[c]=a);return c}
function oc(a,b){a=decodeURIComponent(a);b=b||document;var c=pc(b);if(!v(c,a))throw new S(10,"Element does not exist in cache");var d=c[a];if(v(d,"setInterval")){if(d.closed)throw delete c[a],new S(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 S(10,"Element is no longer attached to the DOM");};var qc=Yb?!(Yb?0<=ra(fc):0<=ra(bc)):!cc;function V(a,b,c){this.a=a;this.b=b;this.f=c}V.prototype.create=function(a){a=z(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){la(this,a,b,c)}l(W,V);
W.prototype.create=function(a,b){if(this==rc)throw new S(9,"Browser does not support a mouse pixel scroll event.");var c=z(a);a=c?c.parentWindow||c.defaultView:window;c=c.createEvent("MouseEvents");this==sc&&(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 tc(a,b,c){la(this,a,b,c)}l(tc,V);
tc.prototype.create=function(a,b){a=z(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==uc?a.keyCode:0;return a};function vc(a,b,c){la(this,a,b,c)}l(vc,V);
vc.prototype.create=function(a,b){function c(O){O=q(O,function(u){return h.createTouch(m,a,u.identifier,u.pageX,u.pageY,u.screenX,u.screenY)});return h.createTouchList.apply(h,O)}function d(O){var u=q(O,function(P){return{identifier:P.identifier,screenX:P.screenX,screenY:P.screenY,clientX:P.clientX,clientY:P.clientY,pageX:P.pageX,pageY:P.pageY,target:a}});u.item=function(P){return u[P]};return u}function e(O){return q(O,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(O,u){switch(O){case 1:return d(u);case 2:return c(u);case 3:return e(u)}return null}var h=z(a),m=h?h.parentWindow||h.defaultView:window;if(qc)var k=1;else if(TouchEvent.prototype.initTouchEvent)k=2;else if(TouchEvent&&0<TouchEvent.length)k=3;else throw new S(9,"Not able to create touch events in this browser");var w=f(k,b.changedTouches),K=b.touches==b.changedTouches?w:f(k,b.touches),Ma=b.targetTouches==b.changedTouches?
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=K,k.targetTouches=Ma,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(K,Ma,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,
b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,K,Ma,w,b.scale,b.rotation),k.relatedTarget=b.relatedTarget;else if(3==k)k=new TouchEvent(this.a,{touches:K,targetTouches:Ma,changedTouches:w,bubbles:this.b,cancelable:this.f,ctrlKey:b.ctrlKey,shiftKey:b.shiftKey,altKey:b.altKey,metaKey:b.metaKey});else throw new S(9,"Illegal TouchEventStrategy_ value (this is a bug)");return k};function X(a,b,c){la(this,a,b,c)}l(X,V);X.prototype.create=function(){throw new S(9,"Browser does not support MSGesture events.");};
function Y(a,b,c){la(this,a,b,c)}l(Y,V);Y.prototype.create=function(){throw new S(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 sc=new W("mousewheel",!0,!0),rc=new W("MozMousePixelScroll",!0,!0);new tc("keydown",!0,!0);var uc=new tc("keypress",!0,!0);new tc("keyup",!0,!0);new vc("touchend",!0,!0);
new vc("touchmove",!0,!0);new vc("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 wc(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 wc)for(c=xc(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 xc(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()}wc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.b,a)?this.b[a]:b};
wc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.b,a)||(this.f++,this.a.push(a));this.b[a]=b};var yc={};function Z(a,b,c){ea(a)&&(a=a.g);a=new zc(a);!b||b in yc&&!c||(yc[b]={key:a,shift:!1},c&&(yc[c]={key:a,shift:!0}));return a}function zc(a){this.code=a}Z(8);Z(9);Z(13);var Ac=Z(16),Bc=Z(17),Cc=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 Dc=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");
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 Ec=new wc;Ec.set(1,Ac);Ec.set(2,Bc);Ec.set(4,Cc);Ec.set(8,Dc);(function(a){var b=new wc;p(xc(a),function(c){b.set(a.get(c).code,c)});return b})(Ec);function Fc(a,b,c){try{var d;c?d=oc(c.WINDOW):d=window;var e=nc(b,d.document),f=a.apply(null,e);var h={status:0,value:lc(f)}}catch(m){h={status:v(m,"code")?m.code:13,value:{message:m.message}}}return kc(h)};ca("se_exportedFunctionSymbol",function(a,b){return Fc(function(c){var d=ic(c);c=d.height;d=d.width;d=Math.floor(d);c=Math.floor(c);return{width:d,height:c}},[a],b)});; return this.se_exportedFunctionSymbol.apply(null,arguments);}).apply(window, arguments);}