
b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];N(function(){throw new
(Function.prototype.bind.apply(Error,[null,"Could not complete the test
successfully - "].concat(b instanceof
Array?b:l(k(b)))));},function(){return console.error.apply(console,b
instanceof Array?b:l(k(b)))})}function N(a,b){"undefined"!==typeof
jasmine&&jasmine?a():"undefined"!==typeof
console&&console&&console.error&&b()};var
P=eval("this"),Q=function(){if("undefined"!==typeof
omidGlobal&&omidGlobal)return omidGlobal;if("undefined"!==typeof
global&&global)return global;if("undefined"!==typeof
window&&window)return window;if("undefined"!==typeof P&&P)return P;throw
Error("Could not determine global object context.");}();function
R(a){try{return
a.frames?!!a.frames.omid_v1_present:!1}catch(b){return!1}};function
S(a){this.h=a;this.handleExportedMessage=S.prototype.i.bind(this)}u(S,J);
S.prototype.sendMessage=function(a,b){b=void 0===b?this.h:b;if(!b)throw
Error("Message destination must be defined at construction time or when
sending the
message.");b.handleExportedMessage(I(a),this)};S.prototype.i=function(a,b
){G(a)&&this.g&&this.g(H(a),b)};function T(a){return
null!=a&&"undefined"!==typeof a.top&&null!=a.top}function
U(a){if(a===Q)return!1;try{if("undefined"===typeof
a.location.hostname)return!0}catch(b){return!0}return!1};function
V(a,b){this.h=b=void 0===b?Q:b;var
c=this;a.addEventListener("message",function(d){if("object"===typeof
d.data){var
e=d.data;G(e)&&d.source&&c.g&&c.g(H(e),d.source)}})}u(V,J);V.prototype.se
ndMessage=function(a,b){b=void 0===b?this.h:b;if(!b)throw Error("Message
destination must be defined at construction time or when sending the
message.");b.postMessage(I(a),"*")};var
aa=["omid","v1_VerificationServiceCommunication"],ba=["omidVerificationPr
operties","serviceWindow"];function W(a,b){return
b.reduce(function(c,d){return c&&c[d]},a)};function X(a){if(!a){var
b;"undefined"===typeof b&&"undefined"!==typeof
window&&window&&(b=window);b=T(b)?b:Q;var c=void 0===c?R:c;a=[];var
d=W(b,ba);d&&a.push(d);a.push(T(b)?b.top:Q);a:{a=k(a);for(var
e=a.next();!e.done;e=a.next()){b:{d=b;e=e.value;var f=c;if(!U(e))try{var
g=W(e,aa);if(g){var O=new S(g);break b}}catch(ja){}O=f(e)?new
V(d,e):null}if(d=O){a=d;break
a}}a=null}}if(this.g=a)this.g.g=this.l.bind(this);else
if(c=(c=Q.omid3p)&&"function"===typeof
c.registerSessionObserver&&"function"===
typeof
c.addEventListener?c:null)this.omid3p=c;this.h={};this.i=(c=Q.omidVerific
ationProperties)?c.injectionId:void
0}X.prototype.registerSessionObserver=function(a,b){C(a);this.omid3p?this
.omid3p.registerSessionObserver(a,b,this.i):this.j("addSessionListener",a
,b,this.i)};
X.prototype.addEventListener=function(a,b){if(!a)throw Error("Value for
eventType is undefined, null or blank.");if("string"!==typeof a&&!(a
instanceof String))throw Error("Value for eventType is not a
string.");if(""===a.trim())throw Error("Value for eventType is empty
string.");C(b);this.omid3p?this.omid3p.addEventListener(a,b):this.j("addE
ventListener",b,a)};
X.prototype.l=function(a){var
b=a.method,c=a.h;a=a.g;if("response"===b&&this.h[c]){var
d=D()&&E()?a?a:[]:a&&"string"===typeof
a?JSON.parse(a):[];this.h[c].apply(this,d)}"error"===b&&window.console&&M
(a)};X.prototype.j=function(a,b,c){for(var
d=[],e=2;e<arguments.length;++e)d[e-
2]=arguments[e];this.g&&(e=L(),b&&(this.h[e]=b),d=D()&&E()?d:JSON.stringi