!function(){var t,i,o,a,s,l,r,c,h,u,p,d,f,g,C,q,S,_,M,T={9662:function(t,e,i){var n=i(614),o=i(6330),a=TypeError;t.exports=function(t){if(n(t))return t;throw a(o(t)+" is not a function")}},6077:function(t,e,i){var n=i(614),o=String,a=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,i){var n=i(5112),o=i(30),a=i(3070).f,s=n("unscopables"),l=Array.prototype;null==l[s]&&a(l,s,{configurable:!0,value:o(null)}),t.exports=function(t){l[s][t]=!0}},1530:function(t,e,i){"use strict";var n=i(8710).charAt;t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},5787:function(t,e,i){var n=i(7976),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,i){var n=i(111),o=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw a(o(t)+" is not an object")}},8457:function(t,e,i){"use strict";var n=i(9974),o=i(6916),a=i(7908),s=i(3411),l=i(7659),r=i(4411),c=i(6244),h=i(7493),m=i(8554),u=i(1246),p=Array;t.exports=function(t){var e=a(t),i=r(this),d=arguments.length,f=d>1?arguments[1]:void 0,g=void 0!==f;g&&(f=n(f,d>2?arguments[2]:void 0));var C,q,S,_,M,T,E=u(e),y=0;if(!E||this===p&&l(E))for(C=c(e),q=i?new this(C):p(C);C>y;y++)T=g?f(e[y],y):e[y],h(q,y,T);else for(M=(_=m(e,E)).next,q=i?new this:[];!(S=o(M,_)).done;y++)T=g?s(_,f,[S.value,y],!0):S.value,h(q,y,T);return q.length=y,q}},1318:function(t,e,i){var n=i(5656),o=i(1400),a=i(6244),s=function(t){return function(e,i,s){var l,r=n(e),c=a(r),h=o(s,c);if(t&&i!=i){for(;c>h;)if((l=r[h++])!=l)return!0}else for(;c>h;h++)if((t||h in r)&&r[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},1589:function(t,e,i){var n=i(1400),o=i(6244),a=i(7493),s=Array,l=Math.max;t.exports=function(t,e,i){for(var r=o(t),c=n(e,r),h=n(void 0===i?r:i,r),m=s(l(h-c,0)),u=0;c<h;c++,u++)a(m,u,t[c]);return m.length=u,m}},4362:function(t,e,i){var n=i(1589),o=Math.floor,a=function(t,e){var i=t.length,r=o(i/2);return i<8?s(t,e):l(t,a(n(t,0,r),e),a(n(t,r),e),e)},s=function(t,e){for(var i,n,o=t.length,a=1;a<o;){for(n=a,i=t[a];n&&e(t[n-1],i)>0;)t[n]=t[--n];n!==a++&&(t[n]=i)}return t},l=function(t,e,i,n){for(var o=e.length,a=i.length,s=0,l=0;s<o||l<a;)t[s+l]=s<o&&l<a?n(e[s],i[l])<=0?e[s++]:i[l++]:s<o?e[s++]:i[l++];return t};t.exports=a},3411:function(t,e,i){var n=i(9670),o=i(9212);t.exports=function(t,e,i,a){try{return a?e(n(i)[0],i[1]):e(i)}catch(e){o(t,"throw",e)}}},4326:function(t,e,i){var n=i(1702),o=n({}.toString),a=n("".slice);t.exports=function(t){return a(o(t),8,-1)}},648:function(t,e,i){var n=i(1694),o=i(614),a=i(4326),s=i(5112)("toStringTag"),l=Object,r="Arguments"==a(function(){return arguments}());t.exports=n?a:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=l(t),s))?i:r?a(e):"Object"==(n=a(e))&&o(e.callee)?"Arguments":n}},7741:function(t,e,i){var n=i(1702),o=Error,a=n("".replace),s=String(o("zxcasd").stack),l=/\n\s*at [^:]*:[^\n]*/,r=l.test(s);t.exports=function(t,e){if(r&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=a(t,l,"");return t}},9920:function(t,e,i){var n=i(2597),o=i(3887),a=i(1236),s=i(3070);t.exports=function(t,e,i){for(var l=o(e),r=s.f,c=a.f,h=0;h<l.length;h++){var m=l[h];n(t,m)||i&&n(i,m)||r(t,m,c(e,m))}}},8544:function(t,e,i){var n=i(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,i){"use strict";var n=i(3383).IteratorPrototype,o=i(30),a=i(9114),s=i(8003),l=i(7497),r=function(){return this};t.exports=function(t,e,i,c){var h=e+" Iterator";return t.prototype=o(n,{next:a(+!c,i)}),s(t,h,!1,!0),l[h]=r,t}},8880:function(t,e,i){var n=i(9781),o=i(3070),a=i(9114);t.exports=n?function(t,e,i){return o.f(t,e,a(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7493:function(t,e,i){"use strict";var n=i(4948),o=i(3070),a=i(9114);t.exports=function(t,e,i){var s=n(e);s in t?o.f(t,s,a(0,i)):t[s]=i}},7045:function(t,e,i){var n=i(6339),o=i(3070);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),o.f(t,e,i)}},8052:function(t,e,i){var n=i(614),o=i(3070),a=i(6339),s=i(3072);t.exports=function(t,e,i,l){l||(l={});var r=l.enumerable,c=void 0!==l.name?l.name:e;if(n(i)&&a(i,c,l),l.global)r?t[e]=i:s(e,i);else{try{l.unsafe?t[e]&&(r=!0):delete t[e]}catch(t){}r?t[e]=i:o.f(t,e,{value:i,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return t}},9190:function(t,e,i){var n=i(8052);t.exports=function(t,e,i){for(var o in e)n(t,o,e[o],i);return t}},3072:function(t,e,i){var n=i(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},654:function(t,e,i){"use strict";var n=i(2109),o=i(6916),a=i(1913),s=i(6530),l=i(614),r=i(4994),c=i(9518),h=i(7674),m=i(8003),u=i(8880),p=i(8052),d=i(5112),f=i(7497),g=i(3383),C=s.PROPER,q=s.CONFIGURABLE,S=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,M=d("iterator"),T="keys",E="values",y="entries",k=function(){return this};t.exports=function(t,e,i,s,d,g,A){r(i,e,s);var b,v,I,w=function(t){if(t===d&&L)return L;if(!_&&t in P)return P[t];switch(t){case T:case E:case y:return function(){return new i(this,t)}}return function(){return new i(this)}},F=e+" Iterator",x=!1,P=t.prototype,N=P[M]||P["@@iterator"]||d&&P[d],L=!_&&N||w(d),R="Array"==e&&P.entries||N;if(R&&(b=c(R.call(new t)))!==Object.prototype&&b.next&&(a||c(b)===S||(h?h(b,S):l(b[M])||p(b,M,k)),m(b,F,!0,!0),a&&(f[F]=k)),C&&d==E&&N&&N.name!==E&&(!a&&q?u(P,"name",E):(x=!0,L=function(){return o(N,this)})),d)if(v={values:w(E),keys:g?L:w(T),entries:w(y)},A)for(I in v)(_||x||!(I in P))&&p(P,I,v[I]);else n({target:e,proto:!0,forced:_||x},v);return a&&!A||P[M]===L||p(P,M,L,{name:d}),f[e]=L,v}},9781:function(t,e,i){var n=i(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,i){var n=i(7854),o=i(111),a=n.document,s=o(a)&&o(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(t,e,i){var n=i(317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8113:function(t,e,i){var n=i(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,i){var n,o,a=i(7854),s=i(8113),l=a.process,r=a.Deno,c=l&&l.versions||r&&r.version,h=c&&c.v8;h&&(o=(n=h.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,i){var n=i(7293),o=i(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},2109:function(t,e,i){var n=i(7854),o=i(1236).f,a=i(8880),s=i(8052),l=i(3072),r=i(9920),c=i(4705);t.exports=function(t,e){var i,h,m,u,p,d=t.target,f=t.global,g=t.stat;if(i=f?n:g?n[d]||l(d,{}):(n[d]||{}).prototype)for(h in e){if(u=e[h],m=t.dontCallGetSet?(p=o(i,h))&&p.value:i[h],!c(f?h:d+(g?".":"#")+h,t.forced)&&void 0!==m){if(typeof u==typeof m)continue;r(u,m)}(t.sham||m&&m.sham)&&a(u,"sham",!0),s(i,h,u,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,i){"use strict";i(4916);var n=i(1702),o=i(8052),a=i(2261),s=i(7293),l=i(5112),r=i(8880),c=l("species"),h=RegExp.prototype;t.exports=function(t,e,i,m){var u=l(t),p=!s((function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})),d=p&&!s((function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[c]=function(){return i},i.flags="",i[u]=/./[u]),i.exec=function(){return e=!0,null},i[u](""),!e}));if(!p||!d||i){var f=n(/./[u]),g=e(u,""[t],(function(t,e,i,o,s){var l=n(t),r=e.exec;return r===a||r===h.exec?p&&!s?{done:!0,value:f(e,i,o)}:{done:!0,value:l(i,e,o)}:{done:!1}}));o(String.prototype,t,g[0]),o(h,u,g[1])}m&&r(h[u],"sham",!0)}},2104:function(t,e,i){var n=i(4374),o=Function.prototype,a=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(a):function(){return s.apply(a,arguments)})},9974:function(t,e,i){var n=i(1702),o=i(9662),a=i(4374),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:a?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,i){var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){var n=i(4374),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,i){var n=i(9781),o=i(2597),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,l=o(a,"name"),r=l&&"something"===function(){}.name,c=l&&(!n||n&&s(a,"name").configurable);t.exports={EXISTS:l,PROPER:r,CONFIGURABLE:c}},1702:function(t,e,i){var n=i(4374),o=Function.prototype,a=o.bind,s=o.call,l=n&&a.bind(s,s);t.exports=n?function(t){return t&&l(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,i){var n=i(7854),o=i(614);t.exports=function(t,e){return arguments.length<2?(i=n[t],o(i)?i:void 0):n[t]&&n[t][e];var i}},1246:function(t,e,i){var n=i(648),o=i(8173),a=i(7497),s=i(5112)("iterator");t.exports=function(t){if(null!=t)return o(t,s)||o(t,"@@iterator")||a[n(t)]}},8554:function(t,e,i){var n=i(6916),o=i(9662),a=i(9670),s=i(6330),l=i(1246),r=TypeError;t.exports=function(t,e){var i=arguments.length<2?l(t):e;if(o(i))return a(n(i,t));throw r(s(t)+" is not iterable")}},8173:function(t,e,i){var n=i(9662);t.exports=function(t,e){var i=t[e];return null==i?void 0:n(i)}},647:function(t,e,i){var n=i(1702),o=i(7908),a=Math.floor,s=n("".charAt),l=n("".replace),r=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,m,u){var p=i+t.length,d=n.length,f=h;return void 0!==m&&(m=o(m),f=c),l(u,f,(function(o,l){var c;switch(s(l,0)){case"$":return"$";case"&":return t;case"`":return r(e,0,i);case"'":return r(e,p);case"<":c=m[r(l,1,-1)];break;default:var h=+l;if(0===h)return o;if(h>d){var u=a(h/10);return 0===u?o:u<=d?void 0===n[u-1]?s(l,1):n[u-1]+s(l,1):o}c=n[h-1]}return void 0===c?"":c}))}},7854:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},2597:function(t,e,i){var n=i(1702),o=i(7908),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(o(t),e)}},3501:function(t){t.exports={}},490:function(t,e,i){var n=i(5005);t.exports=n("document","documentElement")},4664:function(t,e,i){var n=i(9781),o=i(7293),a=i(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var n=i(1702),o=i(7293),a=i(4326),s=Object,l=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?l(t,""):s(t)}:s},9587:function(t,e,i){var n=i(614),o=i(111),a=i(7674);t.exports=function(t,e,i){var s,l;return a&&n(s=e.constructor)&&s!==i&&o(l=s.prototype)&&l!==i.prototype&&a(t,l),t}},2788:function(t,e,i){var n=i(1702),o=i(614),a=i(5465),s=n(Function.toString);o(a.inspectSource)||(a.inspectSource=function(t){return s(t)}),t.exports=a.inspectSource},8340:function(t,e,i){var n=i(111),o=i(8880);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},9909:function(t,e,i){var n,o,a,s=i(8536),l=i(7854),r=i(1702),c=i(111),h=i(8880),m=i(2597),u=i(5465),p=i(6200),d=i(3501),f="Object already initialized",g=l.TypeError,C=l.WeakMap;if(s||u.state){var q=u.state||(u.state=new C),S=r(q.get),_=r(q.has),M=r(q.set);n=function(t,e){if(_(q,t))throw new g(f);return e.facade=t,M(q,t,e),e},o=function(t){return S(q,t)||{}},a=function(t){return _(q,t)}}else{var T=p("state");d[T]=!0,n=function(t,e){if(m(t,T))throw new g(f);return e.facade=t,h(t,T,e),e},o=function(t){return m(t,T)?t[T]:{}},a=function(t){return m(t,T)}}t.exports={set:n,get:o,has:a,enforce:function(t){return a(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!c(e)||(i=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return i}}}},7659:function(t,e,i){var n=i(5112),o=i(7497),a=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[a]===t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,i){var n=i(1702),o=i(7293),a=i(614),s=i(648),l=i(5005),r=i(2788),c=function(){},h=[],m=l("Reflect","construct"),u=/^\s*(?:class|function)\b/,p=n(u.exec),d=!u.exec(c),f=function(t){if(!a(t))return!1;try{return m(c,h,t),!0}catch(t){return!1}},g=function(t){if(!a(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(u,r(t))}catch(t){return!0}};g.sham=!0,t.exports=!m||o((function(){var t;return f(f.call)||!f(Object)||!f((function(){t=!0}))||t}))?g:f},4705:function(t,e,i){var n=i(7293),o=i(614),a=/#|\.prototype\./,s=function(t,e){var i=r[l(t)];return i==h||i!=c&&(o(e)?n(e):!!e)},l=s.normalize=function(t){return String(t).replace(a,".").toLowerCase()},r=s.data={},c=s.NATIVE="N",h=s.POLYFILL="P";t.exports=s},111:function(t,e,i){var n=i(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},7850:function(t,e,i){var n=i(111),o=i(4326),a=i(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},2190:function(t,e,i){var n=i(5005),o=i(614),a=i(7976),s=i(3307),l=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&a(e.prototype,l(t))}},9212:function(t,e,i){var n=i(6916),o=i(9670),a=i(8173);t.exports=function(t,e,i){var s,l;o(t);try{if(!(s=a(t,"return"))){if("throw"===e)throw i;return i}s=n(s,t)}catch(t){l=!0,s=t}if("throw"===e)throw i;if(l)throw s;return o(s),i}},3383:function(t,e,i){"use strict";var n,o,a,s=i(7293),l=i(614),r=i(30),c=i(9518),h=i(8052),m=i(5112),u=i(1913),p=m("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(o=c(c(a)))!==Object.prototype&&(n=o):d=!0),null==n||s((function(){var t={};return n[p].call(t)!==t}))?n={}:u&&(n=r(n)),l(n[p])||h(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},6244:function(t,e,i){var n=i(7466);t.exports=function(t){return n(t.length)}},6339:function(t,e,i){var n=i(7293),o=i(614),a=i(2597),s=i(9781),l=i(6530).CONFIGURABLE,r=i(2788),c=i(9909),h=c.enforce,m=c.get,u=Object.defineProperty,p=s&&!n((function(){return 8!==u((function(){}),"length",{value:8}).length})),d=String(String).split("String"),f=t.exports=function(t,e,i){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?u(t,"name",{value:e,configurable:!0}):t.name=e),p&&i&&a(i,"arity")&&t.length!==i.arity&&u(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?s&&u(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return a(n,"source")||(n.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=f((function(){return o(this)&&m(this).source||r(this)}),"toString")},4758:function(t){var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},133:function(t,e,i){var n=i(7392),o=i(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},590:function(t,e,i){var n=i(7293),o=i(5112),a=i(1913),s=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),a&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,i){var n=i(7854),o=i(614),a=i(2788),s=n.WeakMap;t.exports=o(s)&&/native code/.test(a(s))},6277:function(t,e,i){var n=i(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},1574:function(t,e,i){"use strict";var n=i(9781),o=i(1702),a=i(6916),s=i(7293),l=i(1956),r=i(5181),c=i(5296),h=i(7908),m=i(8361),u=Object.assign,p=Object.defineProperty,d=o([].concat);t.exports=!u||s((function(){if(n&&1!==u({b:1},u(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),o="abcdefghijklmnopqrst";return t[i]=7,o.split("").forEach((function(t){e[t]=t})),7!=u({},t)[i]||l(u({},e)).join("")!=o}))?function(t,e){for(var i=h(t),o=arguments.length,s=1,u=r.f,p=c.f;o>s;)for(var f,g=m(arguments[s++]),C=u?d(l(g),u(g)):l(g),q=C.length,S=0;q>S;)f=C[S++],n&&!a(p,g,f)||(i[f]=g[f]);return i}:u},30:function(t,e,i){var n,o=i(9670),a=i(6048),s=i(748),l=i(3501),r=i(490),c=i(317),h=i(6200),m="prototype",u="script",p=h("IE_PROTO"),d=function(){},f=function(t){return"<"+u+">"+t+"</"+u+">"},g=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},C=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;C="undefined"!=typeof document?document.domain&&n?g(n):(e=c("iframe"),i="java"+u+":",e.style.display="none",r.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):g(n);for(var o=s.length;o--;)delete C[m][s[o]];return C()};l[p]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(d[m]=o(t),i=new d,d[m]=null,i[p]=t):i=C(),void 0===e?i:a.f(i,e)}},6048:function(t,e,i){var n=i(9781),o=i(3353),a=i(3070),s=i(9670),l=i(5656),r=i(1956);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);for(var i,n=l(e),o=r(e),c=o.length,h=0;c>h;)a.f(t,i=o[h++],n[i]);return t}},3070:function(t,e,i){var n=i(9781),o=i(4664),a=i(3353),s=i(9670),l=i(4948),r=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,m="enumerable",u="configurable",p="writable";e.f=n?a?function(t,e,i){if(s(t),e=l(e),s(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var n=h(t,e);n&&n[p]&&(t[e]=i.value,i={configurable:u in i?i[u]:n[u],enumerable:m in i?i[m]:n[m],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(s(t),e=l(e),s(i),o)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw r("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),o=i(6916),a=i(5296),s=i(9114),l=i(5656),r=i(4948),c=i(2597),h=i(4664),m=Object.getOwnPropertyDescriptor;e.f=n?m:function(t,e){if(t=l(t),e=r(e),h)try{return m(t,e)}catch(t){}if(c(t,e))return s(!o(a.f,t,e),t[e])}},8006:function(t,e,i){var n=i(6324),o=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,i){var n=i(2597),o=i(614),a=i(7908),s=i(6200),l=i(8544),r=s("IE_PROTO"),c=Object,h=c.prototype;t.exports=l?c.getPrototypeOf:function(t){var e=a(t);if(n(e,r))return e[r];var i=e.constructor;return o(i)&&e instanceof i?i.prototype:e instanceof c?h:null}},7976:function(t,e,i){var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){var n=i(1702),o=i(2597),a=i(5656),s=i(1318).indexOf,l=i(3501),r=n([].push);t.exports=function(t,e){var i,n=a(t),c=0,h=[];for(i in n)!o(l,i)&&o(n,i)&&r(h,i);for(;e.length>c;)o(n,i=e[c++])&&(~s(h,i)||r(h,i));return h}},1956:function(t,e,i){var n=i(6324),o=i(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!i.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},7674:function(t,e,i){var n=i(1702),o=i(9670),a=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return o(i),a(n),e?t(i,n):i.__proto__=n,i}}():void 0)},2140:function(t,e,i){var n=i(6916),o=i(614),a=i(111),s=TypeError;t.exports=function(t,e){var i,l;if("string"===e&&o(i=t.toString)&&!a(l=n(i,t)))return l;if(o(i=t.valueOf)&&!a(l=n(i,t)))return l;if("string"!==e&&o(i=t.toString)&&!a(l=n(i,t)))return l;throw s("Can't convert object to primitive value")}},3887:function(t,e,i){var n=i(5005),o=i(1702),a=i(8006),s=i(5181),l=i(9670),r=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(l(t)),i=s.f;return i?r(e,i(t)):e}},2626:function(t,e,i){var n=i(3070).f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},7651:function(t,e,i){var n=i(6916),o=i(9670),a=i(614),s=i(4326),l=i(2261),r=TypeError;t.exports=function(t,e){var i=t.exec;if(a(i)){var c=n(i,t,e);return null!==c&&o(c),c}if("RegExp"===s(t))return n(l,t,e);throw r("RegExp#exec called on incompatible receiver")}},2261:function(t,e,i){"use strict";var n,o,a=i(6916),s=i(1702),l=i(1340),r=i(7066),c=i(2999),h=i(2309),m=i(30),u=i(9909).get,p=i(9441),d=i(7168),f=h("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,C=g,q=s("".charAt),S=s("".indexOf),_=s("".replace),M=s("".slice),T=(o=/b*/g,a(g,n=/a/,"a"),a(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),E=c.BROKEN_CARET,y=void 0!==/()??/.exec("")[1];(T||y||E||p||d)&&(C=function(t){var e,i,n,o,s,c,h,p=this,d=u(p),k=l(t),A=d.raw;if(A)return A.lastIndex=p.lastIndex,e=a(C,A,k),p.lastIndex=A.lastIndex,e;var b=d.groups,v=E&&p.sticky,I=a(r,p),w=p.source,F=0,x=k;if(v&&(I=_(I,"y",""),-1===S(I,"g")&&(I+="g"),x=M(k,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==q(k,p.lastIndex-1))&&(w="(?: "+w+")",x=" "+x,F++),i=new RegExp("^(?:"+w+")",I)),y&&(i=new RegExp("^"+w+"$(?!\\s)",I)),T&&(n=p.lastIndex),o=a(g,v?i:p,x),v?o?(o.input=M(o.input,F),o[0]=M(o[0],F),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:T&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),y&&o&&o.length>1&&a(f,o[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(o[s]=void 0)})),o&&b)for(o.groups=c=m(null),s=0;s<b.length;s++)c[(h=b[s])[0]]=o[h[1]];return o}),t.exports=C},7066:function(t,e,i){"use strict";var n=i(9670);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:function(t,e,i){var n=i(6916),o=i(2597),a=i(7976),s=i(7066),l=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in l||o(t,"flags")||!a(l,t)?e:n(s,t)}},2999:function(t,e,i){var n=i(7293),o=i(7854).RegExp,a=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=a||n((function(){return!o("a","y").sticky})),l=a||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},9441:function(t,e,i){var n=i(7293),o=i(7854).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,i){var n=i(7293),o=i(7854).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},8003:function(t,e,i){var n=i(3070).f,o=i(2597),a=i(5112)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!o(t,a)&&n(t,a,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),o=i(9711),a=n("keys");t.exports=function(t){return a[t]||(a[t]=o(t))}},5465:function(t,e,i){var n=i(7854),o=i(3072),a="__core-js_shared__",s=n[a]||o(a,{});t.exports=s},2309:function(t,e,i){var n=i(1913),o=i(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:function(t,e,i){var n=i(1702),o=i(9303),a=i(1340),s=i(4488),l=n("".charAt),r=n("".charCodeAt),c=n("".slice),h=function(t){return function(e,i){var n,h,m=a(s(e)),u=o(i),p=m.length;return u<0||u>=p?t?"":void 0:(n=r(m,u))<55296||n>56319||u+1===p||(h=r(m,u+1))<56320||h>57343?t?l(m,u):n:t?c(m,u,u+2):h-56320+(n-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},3197:function(t,e,i){"use strict";var n=i(1702),o=2147483647,a=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,l="Overflow: input needs wider integers to process",r=RangeError,c=n(s.exec),h=Math.floor,m=String.fromCharCode,u=n("".charCodeAt),p=n([].join),d=n([].push),f=n("".replace),g=n("".split),C=n("".toLowerCase),q=function(t){return t+22+75*(t<26)},S=function(t,e,i){var n=0;for(t=i?h(t/700):t>>1,t+=h(t/e);t>455;)t=h(t/35),n+=36;return h(n+36*t/(t+38))},_=function(t){var e=[];t=function(t){for(var e=[],i=0,n=t.length;i<n;){var o=u(t,i++);if(o>=55296&&o<=56319&&i<n){var a=u(t,i++);56320==(64512&a)?d(e,((1023&o)<<10)+(1023&a)+65536):(d(e,o),i--)}else d(e,o)}return e}(t);var i,n,a=t.length,s=128,c=0,f=72;for(i=0;i<t.length;i++)(n=t[i])<128&&d(e,m(n));var g=e.length,C=g;for(g&&d(e,"-");C<a;){var _=o;for(i=0;i<t.length;i++)(n=t[i])>=s&&n<_&&(_=n);var M=C+1;if(_-s>h((o-c)/M))throw r(l);for(c+=(_-s)*M,s=_,i=0;i<t.length;i++){if((n=t[i])<s&&++c>o)throw r(l);if(n==s){for(var T=c,E=36;;){var y=E<=f?1:E>=f+26?26:E-f;if(T<y)break;var k=T-y,A=36-y;d(e,m(q(y+k%A))),T=h(k/A),E+=36}d(e,m(q(T))),f=S(c,M,C==g),c=0,C++}}c++,s++}return p(e,"")};t.exports=function(t){var e,i,n=[],o=g(f(C(t),s,"."),".");for(e=0;e<o.length;e++)i=o[e],d(n,c(a,i)?"xn--"+_(i):i);return p(n,".")}},1400:function(t,e,i){var n=i(9303),o=Math.max,a=Math.min;t.exports=function(t,e){var i=n(t);return i<0?o(i+e,0):a(i,e)}},5656:function(t,e,i){var n=i(8361),o=i(4488);t.exports=function(t){return n(o(t))}},9303:function(t,e,i){var n=i(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},7466:function(t,e,i){var n=i(9303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(4488),o=Object;t.exports=function(t){return o(n(t))}},7593:function(t,e,i){var n=i(6916),o=i(111),a=i(2190),s=i(8173),l=i(2140),r=i(5112),c=TypeError,h=r("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var i,r=s(t,h);if(r){if(void 0===e&&(e="default"),i=n(r,t,e),!o(i)||a(i))return i;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},4948:function(t,e,i){var n=i(7593),o=i(2190);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},1694:function(t,e,i){var n={};n[i(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:function(t,e,i){var n=i(648),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,i){var n=i(1702),o=0,a=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+a,36)}},3307:function(t,e,i){var n=i(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var n=i(9781),o=i(7293);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t){var e=TypeError;t.exports=function(t,i){if(t<i)throw e("Not enough arguments");return t}},5112:function(t,e,i){var n=i(7854),o=i(2309),a=i(2597),s=i(9711),l=i(133),r=i(3307),c=o("wks"),h=n.Symbol,m=h&&h.for,u=r?h:h&&h.withoutSetter||s;t.exports=function(t){if(!a(c,t)||!l&&"string"!=typeof c[t]){var e="Symbol."+t;l&&a(h,t)?c[t]=h[t]:c[t]=r&&m?m(e):u(e)}return c[t]}},9191:function(t,e,i){"use strict";var n=i(5005),o=i(2597),a=i(8880),s=i(7976),l=i(7674),r=i(9920),c=i(2626),h=i(9587),m=i(6277),u=i(8340),p=i(7741),d=i(2914),f=i(9781),g=i(1913);t.exports=function(t,e,i,C){var q="stackTraceLimit",S=C?2:1,_=t.split("."),M=_[_.length-1],T=n.apply(null,_);if(T){var E=T.prototype;if(!g&&o(E,"cause")&&delete E.cause,!i)return T;var y=n("Error"),k=e((function(t,e){var i=m(C?e:t,void 0),n=C?new T(t):new T;return void 0!==i&&a(n,"message",i),d&&a(n,"stack",p(n.stack,2)),this&&s(E,this)&&h(n,this,k),arguments.length>S&&u(n,arguments[S]),n}));if(k.prototype=E,"Error"!==M?l?l(k,y):r(k,y,{name:!0}):f&&q in T&&(c(k,T,q),c(k,T,"prepareStackTrace")),r(k,T),!g)try{E.name!==M&&a(E,"name",M),E.constructor=k}catch(t){}return k}}},6992:function(t,e,i){"use strict";var n=i(5656),o=i(1223),a=i(7497),s=i(9909),l=i(3070).f,r=i(654),c=i(1913),h=i(9781),m="Array Iterator",u=s.set,p=s.getterFor(m);t.exports=r(Array,"Array",(function(t,e){u(this,{type:m,target:n(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");var d=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!c&&h&&"values"!==d.name)try{l(d,"name",{value:"values"})}catch(t){}},1703:function(t,e,i){var n=i(2109),o=i(7854),a=i(2104),s=i(9191),l="WebAssembly",r=o[l],c=7!==Error("e",{cause:7}).cause,h=function(t,e){var i={};i[t]=s(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},i)},m=function(t,e){if(r&&r[t]){var i={};i[t]=s(l+"."+t,e,c),n({target:l,stat:!0,constructor:!0,arity:1,forced:c},i)}};h("Error",(function(t){return function(e){return a(t,this,arguments)}})),h("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),h("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),h("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),h("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),h("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),h("URIError",(function(t){return function(e){return a(t,this,arguments)}})),m("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),m("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),m("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},1299:function(t,e,i){var n=i(2109),o=i(7854),a=i(8003);n({global:!0},{Reflect:{}}),a(o.Reflect,"Reflect",!0)},4916:function(t,e,i){"use strict";var n=i(2109),o=i(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},8783:function(t,e,i){"use strict";var n=i(8710).charAt,o=i(1340),a=i(9909),s=i(654),l="String Iterator",r=a.set,c=a.getterFor(l);s(String,"String",(function(t){r(this,{type:l,string:o(t),index:0})}),(function(){var t,e=c(this),i=e.string,o=e.index;return o>=i.length?{value:void 0,done:!0}:(t=n(i,o),e.index+=t.length,{value:t,done:!1})}))},8757:function(t,e,i){"use strict";var n=i(2109),o=i(6916),a=i(1702),s=i(4488),l=i(614),r=i(7850),c=i(1340),h=i(8173),m=i(4706),u=i(647),p=i(5112),d=i(1913),f=p("replace"),g=TypeError,C=a("".indexOf),q=a("".replace),S=a("".slice),_=Math.max,M=function(t,e,i){return i>t.length?-1:""===e?i:C(t,e,i)};n({target:"String",proto:!0},{replaceAll:function(t,e){var i,n,a,p,T,E,y,k,A,b=s(this),v=0,I=0,w="";if(null!=t){if((i=r(t))&&(n=c(s(m(t))),!~C(n,"g")))throw g("`.replaceAll` does not allow non-global regexes");if(a=h(t,f))return o(a,t,b,e);if(d&&i)return q(c(b),t,e)}for(p=c(b),T=c(t),(E=l(e))||(e=c(e)),y=T.length,k=_(1,y),v=M(p,T,0);-1!==v;)A=E?c(e(T,v,p)):u(T,p,v,[],void 0,e),w+=S(p,I,v)+A,I=v+y,v=M(p,T,v+k);return I<p.length&&(w+=S(p,I)),w}})},5306:function(t,e,i){"use strict";var n=i(2104),o=i(6916),a=i(1702),s=i(7007),l=i(7293),r=i(9670),c=i(614),h=i(9303),m=i(7466),u=i(1340),p=i(4488),d=i(1530),f=i(8173),g=i(647),C=i(7651),q=i(5112)("replace"),S=Math.max,_=Math.min,M=a([].concat),T=a([].push),E=a("".indexOf),y=a("".slice),k="$0"==="a".replace(/./,"$0"),A=!!/./[q]&&""===/./[q]("a","$0");s("replace",(function(t,e,i){var a=A?"$":"$0";return[function(t,i){var n=p(this),a=null==t?void 0:f(t,q);return a?o(a,t,n,i):o(e,u(n),t,i)},function(t,o){var s=r(this),l=u(t);if("string"==typeof o&&-1===E(o,a)&&-1===E(o,"$<")){var p=i(e,s,l,o);if(p.done)return p.value}var f=c(o);f||(o=u(o));var q=s.global;if(q){var k=s.unicode;s.lastIndex=0}for(var A=[];;){var b=C(s,l);if(null===b)break;if(T(A,b),!q)break;""===u(b[0])&&(s.lastIndex=d(l,m(s.lastIndex),k))}for(var v,I="",w=0,F=0;F<A.length;F++){for(var x=u((b=A[F])[0]),P=S(_(h(b.index),l.length),0),N=[],L=1;L<b.length;L++)T(N,void 0===(v=b[L])?v:String(v));var R=b.groups;if(f){var O=M([x],N,P,l);void 0!==R&&T(O,R);var D=u(n(o,void 0,O))}else D=g(x,l,P,N,R,o);P>=w&&(I+=y(l,w,P)+D,w=P+x.length)}return I+y(l,w)}]}),!!l((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!k||A)},3948:function(t,e,i){var n=i(7854),o=i(8324),a=i(8509),s=i(6992),l=i(8880),r=i(5112),c=r("iterator"),h=r("toStringTag"),m=s.values,u=function(t,e){if(t){if(t[c]!==m)try{l(t,c,m)}catch(e){t[c]=m}if(t[h]||l(t,h,e),o[e])for(var i in s)if(t[i]!==s[i])try{l(t,i,s[i])}catch(e){t[i]=s[i]}}};for(var p in o)u(n[p]&&n[p].prototype,p);u(a,"DOMTokenList")},5556:function(t,e,i){"use strict";i(6992);var n=i(2109),o=i(7854),a=i(6916),s=i(1702),l=i(9781),r=i(590),c=i(8052),h=i(9190),m=i(8003),u=i(4994),p=i(9909),d=i(5787),f=i(614),g=i(2597),C=i(9974),q=i(648),S=i(9670),_=i(111),M=i(1340),T=i(30),E=i(9114),y=i(8554),k=i(1246),A=i(8053),b=i(5112),v=i(4362),I=b("iterator"),w="URLSearchParams",F=w+"Iterator",x=p.set,P=p.getterFor(w),N=p.getterFor(F),L=Object.getOwnPropertyDescriptor,R=function(t){if(!l)return o[t];var e=L(o,t);return e&&e.value},O=R("fetch"),D=R("Request"),H=R("Headers"),V=D&&D.prototype,B=H&&H.prototype,U=o.RegExp,W=o.TypeError,z=o.decodeURIComponent,Y=o.encodeURIComponent,K=s("".charAt),G=s([].join),X=s([].push),j=s("".replace),$=s([].shift),Q=s([].splice),Z=s("".split),J=s("".slice),tt=/\+/g,et=Array(4),it=function(t){return et[t-1]||(et[t-1]=U("((?:%[\\da-f]{2}){"+t+"})","gi"))},nt=function(t){try{return z(t)}catch(e){return t}},ot=function(t){var e=j(t,tt," "),i=4;try{return z(e)}catch(t){for(;i;)e=j(e,it(i--),nt);return e}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},lt=function(t){return st[t]},rt=function(t){return j(Y(t),at,lt)},ct=u((function(t,e){x(this,{type:F,iterator:y(P(t).entries),kind:e})}),"Iterator",(function(){var t=N(this),e=t.kind,i=t.iterator.next(),n=i.value;return i.done||(i.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),i}),!0),ht=function(t){this.entries=[],this.url=null,void 0!==t&&(_(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===K(t,0)?J(t,1):t:M(t)))};ht.prototype={type:w,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,o,s,l,r,c=k(t);if(c)for(i=(e=y(t,c)).next;!(n=a(i,e)).done;){if(s=(o=y(S(n.value))).next,(l=a(s,o)).done||(r=a(s,o)).done||!a(s,o).done)throw W("Expected sequence with length 2");X(this.entries,{key:M(l.value),value:M(r.value)})}else for(var h in t)g(t,h)&&X(this.entries,{key:h,value:M(t[h])})},parseQuery:function(t){if(t)for(var e,i,n=Z(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(i=Z(e,"="),X(this.entries,{key:ot($(i)),value:ot(G(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)t=e[n++],X(i,rt(t.key)+"="+rt(t.value));return G(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mt=function(){d(this,ut),x(this,new ht(arguments.length>0?arguments[0]:void 0))},ut=mt.prototype;if(h(ut,{append:function(t,e){A(arguments.length,2);var i=P(this);X(i.entries,{key:M(t),value:M(e)}),i.updateURL()},delete:function(t){A(arguments.length,1);for(var e=P(this),i=e.entries,n=M(t),o=0;o<i.length;)i[o].key===n?Q(i,o,1):o++;e.updateURL()},get:function(t){A(arguments.length,1);for(var e=P(this).entries,i=M(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){A(arguments.length,1);for(var e=P(this).entries,i=M(t),n=[],o=0;o<e.length;o++)e[o].key===i&&X(n,e[o].value);return n},has:function(t){A(arguments.length,1);for(var e=P(this).entries,i=M(t),n=0;n<e.length;)if(e[n++].key===i)return!0;return!1},set:function(t,e){A(arguments.length,1);for(var i,n=P(this),o=n.entries,a=!1,s=M(t),l=M(e),r=0;r<o.length;r++)(i=o[r]).key===s&&(a?Q(o,r--,1):(a=!0,i.value=l));a||X(o,{key:s,value:l}),n.updateURL()},sort:function(){var t=P(this);v(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,i=P(this).entries,n=C(t,arguments.length>1?arguments[1]:void 0),o=0;o<i.length;)n((e=i[o++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ut,I,ut.entries,{name:"entries"}),c(ut,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),m(mt,w),n({global:!0,constructor:!0,forced:!r},{URLSearchParams:mt}),!r&&f(H)){var pt=s(B.has),dt=s(B.set),ft=function(t){if(_(t)){var e,i=t.body;if(q(i)===w)return e=t.headers?new H(t.headers):new H,pt(e,"content-type")||dt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(t,{body:E(0,M(i)),headers:E(0,e)})}return t};if(f(O)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return O(t,arguments.length>1?ft(arguments[1]):{})}}),f(D)){var gt=function(t){return d(this,V),new D(t,arguments.length>1?ft(arguments[1]):{})};V.constructor=gt,gt.prototype=V,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:mt,getState:P}},1637:function(t,e,i){i(5556)},8789:function(t,e,i){"use strict";i(8783);var n,o=i(2109),a=i(9781),s=i(590),l=i(7854),r=i(9974),c=i(1702),h=i(8052),m=i(7045),u=i(5787),p=i(2597),d=i(1574),f=i(8457),g=i(1589),C=i(8710).codeAt,q=i(3197),S=i(1340),_=i(8003),M=i(8053),T=i(5556),E=i(9909),y=E.set,k=E.getterFor("URL"),A=T.URLSearchParams,b=T.getState,v=l.URL,I=l.TypeError,w=l.parseInt,F=Math.floor,x=Math.pow,P=c("".charAt),N=c(/./.exec),L=c([].join),R=c(1..toString),O=c([].pop),D=c([].push),H=c("".replace),V=c([].shift),B=c("".split),U=c("".slice),W=c("".toLowerCase),z=c([].unshift),Y="Invalid scheme",K="Invalid host",G="Invalid port",X=/[a-z]/i,j=/[\d+-.a-z]/i,$=/\d/,Q=/^0x/i,Z=/^[0-7]+$/,J=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ot=/[\t\n\r]/g,at=function(t){var e,i,n,o;if("number"==typeof t){for(e=[],i=0;i<4;i++)z(e,t%256),t=F(t/256);return L(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,o=0,a=0;a<8;a++)0!==t[a]?(o>i&&(e=n,i=o),n=null,o=0):(null===n&&(n=a),++o);return o>i&&(e=n,i=o),e}(t),i=0;i<8;i++)o&&0===t[i]||(o&&(o=!1),n===i?(e+=i?":":"::",o=!0):(e+=R(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},st={},lt=d({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),rt=d({},lt,{"#":1,"?":1,"{":1,"}":1}),ct=d({},rt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var i=C(t,0);return i>32&&i<127&&!p(e,t)?t:encodeURIComponent(t)},mt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ut=function(t,e){var i;return 2==t.length&&N(X,P(t,0))&&(":"==(i=P(t,1))||!e&&"|"==i)},pt=function(t){var e;return t.length>1&&ut(U(t,0,2))&&(2==t.length||"/"===(e=P(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===W(t)},ft={},gt={},Ct={},qt={},St={},_t={},Mt={},Tt={},Et={},yt={},kt={},At={},bt={},vt={},It={},wt={},Ft={},xt={},Pt={},Nt={},Lt={},Rt=function(t,e,i){var n,o,a,s=S(t);if(e){if(o=this.parse(s))throw I(o);this.searchParams=null}else{if(void 0!==i&&(n=new Rt(i,!0)),o=this.parse(s,null,n))throw I(o);(a=b(new A)).bindURL(this),this.searchParams=a}};Rt.prototype={type:"URL",parse:function(t,e,i){var o,a,s,l,r,c=this,h=e||ft,m=0,u="",d=!1,C=!1,q=!1;for(t=S(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=H(t,nt,"")),t=H(t,ot,""),o=f(t);m<=o.length;){switch(a=o[m],h){case ft:if(!a||!N(X,a)){if(e)return Y;h=Ct;continue}u+=W(a),h=gt;break;case gt:if(a&&(N(j,a)||"+"==a||"-"==a||"."==a))u+=W(a);else{if(":"!=a){if(e)return Y;u="",h=Ct,m=0;continue}if(e&&(c.isSpecial()!=p(mt,u)||"file"==u&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=u,e)return void(c.isSpecial()&&mt[c.scheme]==c.port&&(c.port=null));u="","file"==c.scheme?h=vt:c.isSpecial()&&i&&i.scheme==c.scheme?h=qt:c.isSpecial()?h=Tt:"/"==o[m+1]?(h=St,m++):(c.cannotBeABaseURL=!0,D(c.path,""),h=Pt)}break;case Ct:if(!i||i.cannotBeABaseURL&&"#"!=a)return Y;if(i.cannotBeABaseURL&&"#"==a){c.scheme=i.scheme,c.path=g(i.path),c.query=i.query,c.fragment="",c.cannotBeABaseURL=!0,h=Lt;break}h="file"==i.scheme?vt:_t;continue;case qt:if("/"!=a||"/"!=o[m+1]){h=_t;continue}h=Et,m++;break;case St:if("/"==a){h=yt;break}h=xt;continue;case _t:if(c.scheme=i.scheme,a==n)c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=g(i.path),c.query=i.query;else if("/"==a||"\\"==a&&c.isSpecial())h=Mt;else if("?"==a)c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=g(i.path),c.query="",h=Nt;else{if("#"!=a){c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=g(i.path),c.path.length--,h=xt;continue}c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=g(i.path),c.query=i.query,c.fragment="",h=Lt}break;case Mt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,h=xt;continue}h=yt}else h=Et;break;case Tt:if(h=Et,"/"!=a||"/"!=P(u,m+1))continue;m++;break;case Et:if("/"!=a&&"\\"!=a){h=yt;continue}break;case yt:if("@"==a){d&&(u="%40"+u),d=!0,s=f(u);for(var _=0;_<s.length;_++){var M=s[_];if(":"!=M||q){var T=ht(M,ct);q?c.password+=T:c.username+=T}else q=!0}u=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(d&&""==u)return"Invalid authority";m-=f(u).length+1,u="",h=kt}else u+=a;break;case kt:case At:if(e&&"file"==c.scheme){h=wt;continue}if(":"!=a||C){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==u)return K;if(e&&""==u&&(c.includesCredentials()||null!==c.port))return;if(l=c.parseHost(u))return l;if(u="",h=Ft,e)return;continue}"["==a?C=!0:"]"==a&&(C=!1),u+=a}else{if(""==u)return K;if(l=c.parseHost(u))return l;if(u="",h=bt,e==At)return}break;case bt:if(!N($,a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=u){var E=w(u,10);if(E>65535)return G;c.port=c.isSpecial()&&E===mt[c.scheme]?null:E,u=""}if(e)return;h=Ft;continue}return G}u+=a;break;case vt:if(c.scheme="file","/"==a||"\\"==a)h=It;else{if(!i||"file"!=i.scheme){h=xt;continue}if(a==n)c.host=i.host,c.path=g(i.path),c.query=i.query;else if("?"==a)c.host=i.host,c.path=g(i.path),c.query="",h=Nt;else{if("#"!=a){pt(L(g(o,m),""))||(c.host=i.host,c.path=g(i.path),c.shortenPath()),h=xt;continue}c.host=i.host,c.path=g(i.path),c.query=i.query,c.fragment="",h=Lt}}break;case It:if("/"==a||"\\"==a){h=wt;break}i&&"file"==i.scheme&&!pt(L(g(o,m),""))&&(ut(i.path[0],!0)?D(c.path,i.path[0]):c.host=i.host),h=xt;continue;case wt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&ut(u))h=xt;else if(""==u){if(c.host="",e)return;h=Ft}else{if(l=c.parseHost(u))return l;if("localhost"==c.host&&(c.host=""),e)return;u="",h=Ft}continue}u+=a;break;case Ft:if(c.isSpecial()){if(h=xt,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=n&&(h=xt,"/"!=a))continue}else c.fragment="",h=Lt;else c.query="",h=Nt;break;case xt:if(a==n||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(r=W(r=u))||"%2e."===r||".%2e"===r||"%2e%2e"===r?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||D(c.path,"")):dt(u)?"/"==a||"\\"==a&&c.isSpecial()||D(c.path,""):("file"==c.scheme&&!c.path.length&&ut(u)&&(c.host&&(c.host=""),u=P(u,0)+":"),D(c.path,u)),u="","file"==c.scheme&&(a==n||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)V(c.path);"?"==a?(c.query="",h=Nt):"#"==a&&(c.fragment="",h=Lt)}else u+=ht(a,rt);break;case Pt:"?"==a?(c.query="",h=Nt):"#"==a?(c.fragment="",h=Lt):a!=n&&(c.path[0]+=ht(a,st));break;case Nt:e||"#"!=a?a!=n&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":ht(a,st)):(c.fragment="",h=Lt);break;case Lt:a!=n&&(c.fragment+=ht(a,lt))}m++}},parseHost:function(t){var e,i,n;if("["==P(t,0)){if("]"!=P(t,t.length-1))return K;if(e=function(t){var e,i,n,o,a,s,l,r=[0,0,0,0,0,0,0,0],c=0,h=null,m=0,u=function(){return P(t,m)};if(":"==u()){if(":"!=P(t,1))return;m+=2,h=++c}for(;u();){if(8==c)return;if(":"!=u()){for(e=i=0;i<4&&N(tt,u());)e=16*e+w(u(),16),m++,i++;if("."==u()){if(0==i)return;if(m-=i,c>6)return;for(n=0;u();){if(o=null,n>0){if(!("."==u()&&n<4))return;m++}if(!N($,u()))return;for(;N($,u());){if(a=w(u(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;m++}r[c]=256*r[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==u()){if(m++,!u())return}else if(u())return;r[c++]=e}else{if(null!==h)return;m++,h=++c}}if(null!==h)for(s=c-h,c=7;0!=c&&s>0;)l=r[c],r[c--]=r[h+s-1],r[h+--s]=l;else if(8!=c)return;return r}(U(t,1,-1)),!e)return K;this.host=e}else if(this.isSpecial()){if(t=q(t),N(et,t))return K;if(e=function(t){var e,i,n,o,a,s,l,r=B(t,".");if(r.length&&""==r[r.length-1]&&r.length--,(e=r.length)>4)return t;for(i=[],n=0;n<e;n++){if(""==(o=r[n]))return t;if(a=10,o.length>1&&"0"==P(o,0)&&(a=N(Q,o)?16:8,o=U(o,8==a?1:2)),""===o)s=0;else{if(!N(10==a?J:8==a?Z:tt,o))return t;s=w(o,a)}D(i,s)}for(n=0;n<e;n++)if(s=i[n],n==e-1){if(s>=x(256,5-e))return null}else if(s>255)return null;for(l=O(i),n=0;n<i.length;n++)l+=i[n]*x(256,3-n);return l}(t),null===e)return K;this.host=e}else{if(N(it,t))return K;for(e="",i=f(t),n=0;n<i.length;n++)e+=ht(i[n],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(mt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ut(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,n=t.password,o=t.host,a=t.port,s=t.path,l=t.query,r=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=i+(n?":"+n:"")+"@"),c+=at(o),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?s[0]:s.length?"/"+L(s,"/"):"",null!==l&&(c+="?"+l),null!==r&&(c+="#"+r),c},setHref:function(t){var e=this.parse(t);if(e)throw I(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Ot(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(S(t)+":",ft)},getUsername:function(){return this.username},setUsername:function(t){var e=f(S(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=ht(e[i],ct)}},getPassword:function(){return this.password},setPassword:function(t){var e=f(S(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=ht(e[i],ct)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,kt)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,At)},getPort:function(){var t=this.port;return null===t?"":S(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=S(t))?this.port=null:this.parse(t,bt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+L(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ft))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=S(t))?this.query=null:("?"==P(t,0)&&(t=U(t,1)),this.query="",this.parse(t,Nt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=S(t))?("#"==P(t,0)&&(t=U(t,1)),this.fragment="",this.parse(t,Lt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ot=function(t){var e=u(this,Dt),i=M(arguments.length,1)>1?arguments[1]:void 0,n=y(e,new Rt(t,!1,i));a||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Dt=Ot.prototype,Ht=function(t,e){return{get:function(){return k(this)[t]()},set:e&&function(t){return k(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(m(Dt,"href",Ht("serialize","setHref")),m(Dt,"origin",Ht("getOrigin")),m(Dt,"protocol",Ht("getProtocol","setProtocol")),m(Dt,"username",Ht("getUsername","setUsername")),m(Dt,"password",Ht("getPassword","setPassword")),m(Dt,"host",Ht("getHost","setHost")),m(Dt,"hostname",Ht("getHostname","setHostname")),m(Dt,"port",Ht("getPort","setPort")),m(Dt,"pathname",Ht("getPathname","setPathname")),m(Dt,"search",Ht("getSearch","setSearch")),m(Dt,"searchParams",Ht("getSearchParams")),m(Dt,"hash",Ht("getHash","setHash"))),h(Dt,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),h(Dt,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),v){var Vt=v.createObjectURL,Bt=v.revokeObjectURL;Vt&&h(Ot,"createObjectURL",r(Vt,v)),Bt&&h(Ot,"revokeObjectURL",r(Bt,v))}_(Ot,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!a},{URL:Ot})},285:function(t,e,i){i(8789)},2667:function(t,e,i){var n=i(9950),o=i(5419);function a(t){return null==t}function s(t){(t=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{})).whiteList=t.whiteList||n.whiteList,t.onAttr=t.onAttr||n.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||n.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||n.safeAttrValue,this.options=t}i(7381),s.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,i=e.whiteList,n=e.onAttr,s=e.onIgnoreAttr,l=e.safeAttrValue;return o(t,(function(t,e,o,r,c){var h=i[o],m=!1;if(!0===h?m=h:"function"==typeof h?m=h(r):h instanceof RegExp&&(m=h.test(r)),!0!==m&&(m=!1),r=l(o,r)){var u,p={position:e,sourcePosition:t,source:c,isWhite:m};return m?a(u=n(o,r,p))?o+":"+r:u:a(u=s(o,r,p))?void 0:u}}))},t.exports=s},9950:function(t,e){function i(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var n=/javascript\s*\:/gim;e.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},e.getDefaultWhiteList=i,e.onAttr=function(t,e,i){},e.onIgnoreAttr=function(t,e,i){},e.safeAttrValue=function(t,e){return n.test(e)?"":e}},9970:function(t,e,i){var n=i(9950),o=i(2667);for(var a in(e=t.exports=function(t,e){return new o(e).process(t)}).FilterCSS=o,n)e[a]=n[a];"undefined"!=typeof window&&(window.filterCSS=t.exports)},5419:function(t,e,i){var n=i(7381);t.exports=function(t,e){";"!==(t=n.trimRight(t))[t.length-1]&&(t+=";");var i=t.length,o=!1,a=0,s=0,l="";function r(){if(!o){var i=n.trim(t.slice(a,s)),r=i.indexOf(":");if(-1!==r){var c=n.trim(i.slice(0,r)),h=n.trim(i.slice(r+1));if(c){var m=e(a,l.length,c,h,i);m&&(l+=m+"; ")}}}a=s+1}for(;s<i;s++){var c=t[s];if("/"===c&&"*"===t[s+1]){var h=t.indexOf("*/",s+2);if(-1===h)break;a=(s=h+1)+1,o=!1}else"("===c?o=!0:")"===c?o=!1:";"===c?o||r():"\n"===c&&r()}return n.trim(l)}},7381:function(t){t.exports={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,o;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},2302:function(t,e,i){var n=i(9970).FilterCSS,o=i(9970).getDefaultWhiteList,a=i(5938);var s=new n;function l(t){return t.replace(r,"&lt;").replace(c,"&gt;")}var r=/</g,c=/>/g,h=/"/g,m=/&quot;/g,u=/&#([a-zA-Z0-9]*);?/gim,p=/&colon;?/gim,d=/&newline;?/gim,f=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,g=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,C=/u\s*r\s*l\s*\(.*/gi;function q(t){return t.replace(h,"&quot;")}function S(t){return t.replace(m,'"')}function _(t){return t.replace(u,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function M(t){return t.replace(p,":").replace(d," ")}function T(t){for(var e="",i=0,n=t.length;i<n;i++)e+=t.charCodeAt(i)<32?" ":t.charAt(i);return a.trim(e)}function E(t){return T(t=M(t=_(t=S(t))))}function y(t){return l(t=q(t))}e.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},e.getDefaultWhiteList=function(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}},e.onTag=function(t,e,i){},e.onIgnoreTag=function(t,e,i){},e.onTagAttr=function(t,e,i){},e.onIgnoreTagAttr=function(t,e,i){},e.safeAttrValue=function(t,e,i,n){if(i=E(i),"href"===e||"src"===e){if("#"===(i=a.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===e){if(f.lastIndex=0,f.test(i))return""}else if("style"===e){if(g.lastIndex=0,g.test(i))return"";if(C.lastIndex=0,C.test(i)&&(f.lastIndex=0,f.test(i)))return"";!1!==n&&(i=(n=n||s).process(i))}return y(i)},e.escapeHtml=l,e.escapeQuote=q,e.unescapeQuote=S,e.escapeHtmlEntities=_,e.escapeDangerHtml5Entities=M,e.clearNonPrintableCharacter=T,e.friendlyAttrValue=E,e.escapeAttrValue=y,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var i=!Array.isArray(t),n=[],o=!1;return{onIgnoreTag:function(s,l,r){if(function(e){return!!i||-1!==a.indexOf(t,e)}(s)){if(r.isClosing){var c=r.position+10;return n.push([!1!==o?o:r.position,c]),o=!1,"[/removed]"}return o||(o=r.position),"[removed]"}return e(s,l,r)},remove:function(t){var e="",i=0;return a.forEach(n,(function(n){e+=t.slice(i,n[0]),i=n[1]})),e+=t.slice(i)}}},e.stripCommentTag=function(t){for(var e="",i=0;i<t.length;){var n=t.indexOf("\x3c!--",i);if(-1===n){e+=t.slice(i);break}e+=t.slice(i,n);var o=t.indexOf("--\x3e",n);if(-1===o)break;i=o+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)}))).join("")},e.cssFilter=s,e.getDefaultCSSWhiteList=o},8924:function(t,e,i){var n=i(2302),o=i(3268),a=i(2973);function s(t,e){return new a(e).process(t)}for(var l in(e=t.exports=s).filterXSS=s,e.FilterXSS=a,n)e[l]=n[l];for(var l in o)e[l]=o[l];"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},3268:function(t,e,i){var n=i(5938);function o(t){var e=n.spaceIndex(t);if(-1===e)var i=t.slice(1,-1);else i=t.slice(1,e+1);return"/"===(i=n.trim(i).toLowerCase()).slice(0,1)&&(i=i.slice(1)),"/"===i.slice(-1)&&(i=i.slice(0,-1)),i}function a(t){return"</"===t.slice(0,2)}var s=/[^a-zA-Z0-9_:\.\-]/gim;function l(t,e){for(;e<t.length;e++){var i=t[e];if(" "!==i)return"="===i?e:-1}}function r(t,e){for(;e>0;e--){var i=t[e];if(" "!==i)return"="===i?e:-1}}function c(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}e.parseTag=function(t,e,i){"use strict";var n="",s=0,l=!1,r=!1,c=0,h=t.length,m="",u="";t:for(c=0;c<h;c++){var p=t.charAt(c);if(!1===l){if("<"===p){l=c;continue}}else if(!1===r){if("<"===p){n+=i(t.slice(s,c)),l=c,s=c;continue}if(">"===p){n+=i(t.slice(s,l)),m=o(u=t.slice(l,c+1)),n+=e(l,n.length,m,u,a(u)),s=c+1,l=!1;continue}if('"'===p||"'"===p)for(var d=1,f=t.charAt(c-d);""===f.trim()||"="===f;){if("="===f){r=p;continue t}f=t.charAt(c-++d)}}else if(p===r){r=!1;continue}}return s<t.length&&(n+=i(t.substr(s))),n},e.parseAttr=function(t,e){"use strict";var i=0,o=[],a=!1,h=t.length;function m(t,i){if(!((t=(t=n.trim(t)).replace(s,"").toLowerCase()).length<1)){var a=e(t,i||"");a&&o.push(a)}}for(var u=0;u<h;u++){var p,d=t.charAt(u);if(!1!==a||"="!==d)if(!1===a||u!==i||'"'!==d&&"'"!==d||"="!==t.charAt(u-1)){if(/\s|\n|\t/.test(d)){if(t=t.replace(/\s|\n|\t/g," "),!1===a){if(-1===(p=l(t,u))){m(n.trim(t.slice(i,u))),a=!1,i=u+1;continue}u=p-1;continue}if(-1===(p=r(t,u-1))){m(a,c(n.trim(t.slice(i,u)))),a=!1,i=u+1;continue}}}else{if(-1===(p=t.indexOf(d,u+1)))break;m(a,n.trim(t.slice(i+1,p))),a=!1,i=(u=p)+1}else a=t.slice(i,u),i=u+1}return i<t.length&&(!1===a?m(t.slice(i)):m(a,c(n.trim(t.slice(i))))),n.trim(o.join(" "))}},5938:function(t){t.exports={indexOf:function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var n,o;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}}},2973:function(t,e,i){var n=i(9970).FilterCSS,o=i(2302),a=i(3268),s=a.parseTag,l=a.parseAttr,r=i(5938);function c(t){return null==t}function h(t){(t=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=o.onIgnoreTagStripAll),t.whiteList=t.whiteList||t.allowList||o.whiteList,t.onTag=t.onTag||o.onTag,t.onTagAttr=t.onTagAttr||o.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||o.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||o.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||o.safeAttrValue,t.escapeHtml=t.escapeHtml||o.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new n(t.css))}h.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,i=e.whiteList,n=e.onTag,a=e.onIgnoreTag,h=e.onTagAttr,m=e.onIgnoreTagAttr,u=e.safeAttrValue,p=e.escapeHtml,d=this.cssFilter;e.stripBlankChar&&(t=o.stripBlankChar(t)),e.allowCommentTag||(t=o.stripCommentTag(t));var f=!1;e.stripIgnoreTagBody&&(f=o.StripTagBody(e.stripIgnoreTagBody,a),a=f.onIgnoreTag);var g=s(t,(function(t,e,o,s,f){var g,C={sourcePosition:t,position:e,isClosing:f,isWhite:i.hasOwnProperty(o)};if(!c(g=n(o,s,C)))return g;if(C.isWhite){if(C.isClosing)return"</"+o+">";var q=function(t){var e=r.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var i="/"===(t=r.trim(t.slice(e+1,-1)))[t.length-1];return i&&(t=r.trim(t.slice(0,-1))),{html:t,closing:i}}(s),S=i[o],_=l(q.html,(function(t,e){var i,n=-1!==r.indexOf(S,t);return c(i=h(o,t,e,n))?n?(e=u(o,t,e,d))?t+'="'+e+'"':t:c(i=m(o,t,e,n))?void 0:i:i}));return s="<"+o,_&&(s+=" "+_),q.closing&&(s+=" /"),s+">"}return c(g=a(o,s,C))?p(s):g}),p);return f&&(g=f.remove(g)),g},t.exports=h}},E={};function y(t){var e=E[t];if(void 0!==e)return e.exports;var i=E[t]={exports:{}};return T[t](i,i.exports,y),i.exports}y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),window.haxe=window.haxe||{},haxe.io||(haxe.io={}),window.$hxClasses=window.$hxClasses||{},window.$estr=function(){return js.Boot.__string_rec(this,"")},$hxClasses.registerClass=function(t,e){t&&e&&(t.__name__=e.split("."),$hxClasses[e]=t)},$hxClasses.extend=function(t,e,i){$hxClasses.registerClass(e,i),null!=t&&(e.__super__=t,e.prototype=$extend(t.prototype),e.prototype.constructor=e),e.prototype.callSuper=$hxClasses.callSuper},$hxClasses.callSuper=function(t){var e=this;return function(){e.constructor.__super__.prototype[t].apply(e,arguments)}},window.$extend=function(t,e){var i=Object.create(t);for(var n in e)i[n]=e[n];return i},window.$closure=function(t,e){var i=t[e];if(null==i)return null;var n=function(){return i.apply(t,arguments)};return n.scope=t,n.method=i,n},window.$noop=function(){},window.ValueType=$hxClasses.ValueType={__ename__:["ValueType"],__constructs__:["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"]},ValueType.TInt=["TInt",1],ValueType.TInt.toString=$estr,ValueType.TInt.__enum__=ValueType,ValueType.TUnknown=["TUnknown",8],ValueType.TUnknown.toString=$estr,ValueType.TUnknown.__enum__=ValueType,ValueType.TFunction=["TFunction",5],ValueType.TFunction.toString=$estr,ValueType.TFunction.__enum__=ValueType,ValueType.TNull=["TNull",0],ValueType.TNull.toString=$estr,ValueType.TNull.__enum__=ValueType,ValueType.TEnum=function(t){var e=["TEnum",7,t];return e.__enum__=ValueType,e.toString=$estr,e},ValueType.TFloat=["TFloat",2],ValueType.TFloat.toString=$estr,ValueType.TFloat.__enum__=ValueType,ValueType.TClass=function(t){var e=["TClass",6,t];return e.__enum__=ValueType,e.toString=$estr,e},ValueType.TBool=["TBool",3],ValueType.TBool.toString=$estr,ValueType.TBool.__enum__=ValueType,ValueType.TObject=["TObject",4],ValueType.TObject.toString=$estr,ValueType.TObject.__enum__=ValueType,haxe.StackItem=$hxClasses["haxe.StackItem"]={__ename__:["haxe","StackItem"],__constructs__:["CFunction","Module","FilePos","Method","Lambda"]},haxe.StackItem.Module=function(t){var e=["Module",1,t];return e.__enum__=haxe.StackItem,e.toString=$estr,e},haxe.StackItem.FilePos=function(t,e,i){var n=["FilePos",2,t,e,i];return n.__enum__=haxe.StackItem,n.toString=$estr,n},haxe.StackItem.Lambda=function(t){var e=["Lambda",4,t];return e.__enum__=haxe.StackItem,e.toString=$estr,e},haxe.StackItem.CFunction=["CFunction",0],haxe.StackItem.CFunction.toString=$estr,haxe.StackItem.CFunction.__enum__=haxe.StackItem,haxe.StackItem.Method=function(t,e){var i=["Method",3,t,e];return i.__enum__=haxe.StackItem,i.toString=$estr,i},haxe.io.Error=$hxClasses["haxe.io.Error"]={__ename__:["haxe","io","Error"],__constructs__:["Blocked","Overflow","OutsideBounds","Custom"]},haxe.io.Error.Custom=function(t){var e=["Custom",3,t];return e.__enum__=haxe.io.Error,e.toString=$estr,e},haxe.io.Error.OutsideBounds=["OutsideBounds",2],haxe.io.Error.OutsideBounds.toString=$estr,haxe.io.Error.OutsideBounds.__enum__=haxe.io.Error,haxe.io.Error.Overflow=["Overflow",1],haxe.io.Error.Overflow.toString=$estr,haxe.io.Error.Overflow.__enum__=haxe.io.Error,haxe.io.Error.Blocked=["Blocked",0],haxe.io.Error.Blocked.toString=$estr,haxe.io.Error.Blocked.__enum__=haxe.io.Error,Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),haxe.Log=function(){},$hxClasses["haxe.Log"]=haxe.Log,haxe.Log.__name__=["haxe","Log"],haxe.Log.trace=function(t,e){js.Boot.__trace(t,e)},haxe.Log.clear=function(){js.Boot.__clear_trace()},haxe.Log.prototype.__class__=haxe.Log,window.com=window.com||{},com.inq=com.inq||{},com.inq.events=com.inq.events||{},com.inq.net=com.inq.net||{},com.inq.stage=com.inq.stage||{},com.inq.ui=com.inq.ui||{},com.inq.utils=com.inq.utils||{},com.inq.aria=com.inq.aria||{},com.inq.addons=com.inq.addons||{},com.inq.utils.Dictionary=function(t){},$hxClasses["com.inq.utils.Dictionary"]=com.inq.utils.Dictionary,com.inq.utils.Dictionary.__name__=["com","inq","utils","Dictionary"],com.inq.utils.Dictionary.prototype.__class__=com.inq.utils.Dictionary,com.inq.events.EventDispatcher=function(){this.eventListeners={}},$hxClasses.registerClass(com.inq.events.EventDispatcher,"com.inq.events.EventDispatcher"),com.inq.events.EventDispatcher.domEventHandler=function(t){var e=t.scope,i=t.method,n=function(t){var e=this,i=arguments.callee,n=i.object,o=i.method;if(null==t){var a=e.ownerDocument;t=(a.parentWindow?a.parentWindow:a.defaultView).Event}try{t.target=e}catch(t){}try{t.srcElement=e}catch(t){}o.apply(n,[t])};return n.method=i,n.object=e,n},com.inq.events.EventDispatcher.prototype.addEventListener=function(t,e,i,n,o){"function"==typeof e&&(this.hasEventListener(t)||(this.eventListeners[t]=[]),-1==this._getListenerId(t,e)&&this.eventListeners[t].push(e))},com.inq.events.EventDispatcher.prototype.willTrigger=function(t){return!1},com.inq.events.EventDispatcher.prototype.toString=function(){return"EventDispacher"},com.inq.events.EventDispatcher.prototype.removeEventListener=function(t,e,i){if("function"==typeof e&&this.hasEventListener(t)){var n=this._getListenerId(t,e);-1!=n&&(this.eventListeners[t].splice(n,1),0==this.eventListeners[t].length&&delete this.eventListeners[t])}},com.inq.events.EventDispatcher.prototype.hasEventListener=function(t){return null!=this.eventListeners[t]},com.inq.events.EventDispatcher.prototype.dispatchEvent=function(t){if(this.hasEventListener(t.type))for(var e,i=this.eventListeners[t.type],n=i.length,o=0;o<n;o++)i[o]&&!1===i[o](t)&&(e=!1);return e},com.inq.events.EventDispatcher.prototype._getListenerId=function(t,e){var i=this.eventListeners[t];if(i&&i.length>0)for(var n=0;n<i.length;n++)if(e==i[n])return n;return-1},com.inq.events.EventDispatcher.prototype.eventListeners=null,com.inq.events.EventDispatcher.prototype.__class__=com.inq.events.EventDispatcher,com.inq.flash||(com.inq.flash={}),com.inq.flash.client||(com.inq.flash.client={}),com.inq.flash.client.control||(com.inq.flash.client.control={}),com.inq.flash.client.chatskins||(com.inq.flash.client.chatskins={}),function(){function t(t,e){return function(){return com.inq.flash.client.control.FlashPeer.call(t,arguments,e)}}com.inq.flash.client.control.FlashPeer=function(){},$hxClasses["com.inq.flash.client.control.FlashPeer"]=com.inq.flash.client.control.FlashPeer,com.inq.flash.client.control.FlashPeer.__name__=["com","inq","flash","client","control","FlashPeer"],com.inq.flash.client.control.FlashPeer.init=function(t){com.inq.flash.client.control.FlashPeer.getConversationTranscript=t[0],com.inq.flash.client.control.FlashPeer.getConversationObjectID=t[1],com.inq.flash.client.control.FlashPeer.getConversationTokenID=t[2]},com.inq.flash.client.control.FlashPeer.call=function(t,e,i){if(null==com.inq.flash.client.control.FlashPeer.inqFlashPeer[t])return haxe.Log.trace("window.Inq.FlashPeer."+t+" does not exist",{fileName:"FlashPeer.hx",lineNumber:25,className:"com.inq.flash.client.control.FlashPeer",methodName:"call"}),i;try{return com.inq.flash.client.control.FlashPeer.inqFlashPeer[t].apply(com.inq.flash.client.control.FlashPeer.inqFlashPeer,e)}catch(a){var n="";if(e)for(var o=0;o<e.length;o++)n+=" arg["+o+"] = "+e[o]+"\n";return haxe.Log.trace("window.Inq.FlashPeer."+t+" failed: "+Std.string(a)+"\n"+n,{fileName:"FlashPeer.hx",className:"com.inq.flash.client.control.FlashPeer",methodName:"call"}),i}},com.inq.flash.client.control.FlashPeer.acceptCobInvSafe=t("acceptCobSafe"),com.inq.flash.client.control.FlashPeer.acceptCobShareInv=t("acceptCobShare"),com.inq.flash.client.control.FlashPeer.applyAcifCommands=t("applyAcifCommands"),com.inq.flash.client.control.FlashPeer.blockService=t("blockTheService"),com.inq.flash.client.control.FlashPeer.captureEmailAddress=t("captureEmailAddress"),com.inq.flash.client.control.FlashPeer.closeChat=t("closeChat"),com.inq.flash.client.control.FlashPeer.closeChatMonitor=t("closeChatMonitor"),com.inq.flash.client.control.FlashPeer.closePersistent=t("closePersistent"),com.inq.flash.client.control.FlashPeer.closePersistentWindowIfOpen=t("closePersistentWindowIfOpen",null),com.inq.flash.client.control.FlashPeer.closePopupChatFromPersistent=t("closePopupChatFromPersistent",null),com.inq.flash.client.control.FlashPeer.createXFrame=t("createXFrame",null),com.inq.flash.client.control.FlashPeer.endChatSession=t("endChatSession"),com.inq.flash.client.control.FlashPeer.endCob=t("endCob"),com.inq.flash.client.control.FlashPeer.endCobByEtlEvent=t("endCobByEtlEvent"),com.inq.flash.client.control.FlashPeer.executeCustomCommand=t("executeCustomCommand"),com.inq.flash.client.control.FlashPeer.debugLogErrorToTagServer=t("debugLogErrorToTagServer"),com.inq.flash.client.control.FlashPeer.debugLogDebugToTagServer=t("debugLogDebugToTagServer"),com.inq.flash.client.control.FlashPeer.debugLogInfoToTagServer=t("debugLogInfoToTagServer"),com.inq.flash.client.control.FlashPeer.debugLogWarnToTagServer=t("debugLogWarnToTagServer"),com.inq.flash.client.control.FlashPeer.debugSwitchForModule=t("debugSwitchForModule"),com.inq.flash.client.control.FlashPeer.fireConversationResolvedEvent=t("fireConversationResolvedEvent"),com.inq.flash.client.control.FlashPeer.fireCustomerAuthenticatedEvent=t("fireCustomerAuthenticatedEvent"),com.inq.flash.client.control.FlashPeer.fireVerifyTokenErrorEvent=t("fireVerifyTokenErrorEvent"),com.inq.flash.client.control.FlashPeer.fireVerifyTokenSuccessEvent=t("fireVerifyTokenSuccessEvent"),com.inq.flash.client.control.FlashPeer.fireCustomEvent=t("fireCustomEvent"),com.inq.flash.client.control.FlashPeer.fireCustomEvt=t("fireCustomEvt"),com.inq.flash.client.control.FlashPeer.fireNativeSurveyLaunchEvent=t("fireNativeSurveyLaunchEvent"),com.inq.flash.client.control.FlashPeer.getActiveChatroomId=t("getActiveChatroomId"),com.inq.flash.client.control.FlashPeer.getAgentGroupDisplayName=t("getAgentGroupDisplayName",null),com.inq.flash.client.control.FlashPeer.getAgentGroupName=t("getAgentGroupName",null),com.inq.flash.client.control.FlashPeer.getAgentID=t("getAgentID",null),com.inq.flash.client.control.FlashPeer.getAuthenticatedUser=t("getAuthenticatedUser",null),com.inq.flash.client.control.FlashPeer.getAutomatonDataMap=t("getAutomatonDataMap",null),com.inq.flash.client.control.FlashPeer.getAutomatonDatapass=t("getAutomatonDatapass",null),com.inq.flash.client.control.FlashPeer.getBaseURL=t("getBaseURL"),com.inq.flash.client.control.FlashPeer.getBrID=t("getBrID",null),com.inq.flash.client.control.FlashPeer.getBrName=t("getBrName",null),com.inq.flash.client.control.FlashPeer.getBrowserMajorVer=t("getBrowserMajorVer"),com.inq.flash.client.control.FlashPeer.getBrowserTypeAndVersion=t("getBrowserTypeAndVersion"),com.inq.flash.client.control.FlashPeer.getBuRuleAgentGroupID=t("getBuRuleAgentGroupID",null),com.inq.flash.client.control.FlashPeer.getBusinessUnitDisplayName=t("getBusinessUnitDisplayName",null),com.inq.flash.client.control.FlashPeer.getBusinessUnitID=t("getBusinessUnitID",null),com.inq.flash.client.control.FlashPeer.getBusinessUnitName=t("getBusinessUnitName",null),com.inq.flash.client.control.FlashPeer.getChatOwnerBusinessUnitID=t("getChatOwnerBusinessUnitID",null),com.inq.flash.client.control.FlashPeer.getChatRouterVanityUrl=t("getChatRouterVanityUrl"),com.inq.flash.client.control.FlashPeer.getClientPageURL=t("getClientPageURL"),com.inq.flash.client.control.FlashPeer.getCobrowseEnableMinimizeRestore=t("getCobrowseEnableMinimizeRestore"),com.inq.flash.client.control.FlashPeer.getCustGeoData=t("getCustGeoData"),com.inq.flash.client.control.FlashPeer.getCustID=t("getCustID",null),com.inq.flash.client.control.FlashPeer.getDeviceType=t("getDeviceType",null),com.inq.flash.client.control.FlashPeer.getDisconnectionTimeout=t("getDisconnectionTimeout"),com.inq.flash.client.control.FlashPeer.getEmbeddedTheme=t("getEmbeddedTheme"),com.inq.flash.client.control.FlashPeer.getFileDeleteSetting=t("fileDeleteSetting",null),com.inq.flash.client.control.FlashPeer.getFileTransferApiUrl=t("fileTransferApiUrl",null),com.inq.flash.client.control.FlashPeer.getfileTransferExtensions=t("fileTransferExtensions","jpg,jpeg,bmp,gif,png,doc,xls,docx,xlsx,pdf,txt"),com.inq.flash.client.control.FlashPeer.getFileTransferSize=t("fileTransferSize",null),com.inq.flash.client.control.FlashPeer.getFileTransferUrl=t("fileTransferServerUrl",null),com.inq.flash.client.control.FlashPeer.getChatSkinFmt=t("getChatSkinFmt"),com.inq.flash.client.control.FlashPeer.getFlashVars=t("getFlashVars"),com.inq.flash.client.control.FlashPeer.getFPSessionID=t("getFPSessionID",null),com.inq.flash.client.control.FlashPeer.getImagePath=t("getImagePath"),com.inq.flash.client.control.FlashPeer.getIncAssignmentID=t("getIncAssignmentID",null),com.inq.flash.client.control.FlashPeer.getInitialTimeout=t("getInitialTimeout"),com.inq.flash.client.control.FlashPeer.getIsBuilder=t("getIsBuilder",!1),com.inq.flash.client.control.FlashPeer.getIsSkinLocal=t("getIsSkinLocal",!1),com.inq.flash.client.control.FlashPeer.getLocalizedMessage=t("getLocalizedMessage"),com.inq.flash.client.control.FlashPeer.getMediaBaseURL=t("getMediaBaseURL"),com.inq.flash.client.control.FlashPeer.getMediaPath=t("getMediaPath",null),com.inq.flash.client.control.FlashPeer.getPageID=t("getPageID",null),com.inq.flash.client.control.FlashPeer.getPageMarker=t("getPageMarker",null),com.inq.flash.client.control.FlashPeer.getPersistentCustomerID=t("getPersistentCustomerID",null),com.inq.flash.client.control.FlashPeer.getPersistentHeight=t("getPersistentHeight"),com.inq.flash.client.control.FlashPeer.getPersistentWidth=t("getPersistentWidth"),com.inq.flash.client.control.FlashPeer.getPersistentXPos=t("getPersistentXPos"),com.inq.flash.client.control.FlashPeer.getPersistentYPos=t("getPersistentYPos"),com.inq.flash.client.control.FlashPeer.getPopupCloserWidth=t("getPopupCloserWidth"),com.inq.flash.client.control.FlashPeer.getQueueMessagingSpec=t("getQueueMessagingSpec",null),com.inq.flash.client.control.FlashPeer.getQueueMessagingSpecId=t("getQueueMessagingSpecId",null),com.inq.flash.client.control.FlashPeer.getSessionID=t("getSessionID",null),com.inq.flash.client.control.FlashPeer.getSiteConstants=t("getSiteConstants"),com.inq.flash.client.control.FlashPeer.getSkin=t("getSkin"),com.inq.flash.client.control.FlashPeer.getSkinHeight=t("getSkinHeight"),com.inq.flash.client.control.FlashPeer.getSkinLeft=t("getSkinLeft"),com.inq.flash.client.control.FlashPeer.getSkinLocation=t("getSkinLocation"),com.inq.flash.client.control.FlashPeer.getSkinMXML=t("getSkinMXML",null),com.inq.flash.client.control.FlashPeer.getSkinName=t("getSkinName",null),com.inq.flash.client.control.FlashPeer.getSkinPath=t("getSkinPath",null),com.inq.flash.client.control.FlashPeer.getSkinTop=t("getSkinTop"),com.inq.flash.client.control.FlashPeer.getSkinWidth=t("getSkinWidth"),com.inq.flash.client.control.FlashPeer.getSurveyAuxParams=t("getSurveyAuxParams"),com.inq.flash.client.control.FlashPeer.getTitleBarHeight=t("getTitleBarHeight"),com.inq.flash.client.control.FlashPeer.getV3Data=t("getV3Data"),com.inq.flash.client.control.FlashPeer.getVAList=t("getVAList",[]),com.inq.flash.client.control.FlashPeer.getVanityUrl=t("getVanityUrl"),com.inq.flash.client.control.FlashPeer.getVisitorAttributes=t("getVisitorAttributes",null),com.inq.flash.client.control.FlashPeer.getXFormsDomain=t("getXFormsDomain",null),com.inq.flash.client.control.FlashPeer.getClientStaticURL=t("getClientStaticURL",!1),com.inq.flash.client.control.FlashPeer.hideChat=com.inq.flash.client.control.FlashPeer.closeChat,com.inq.flash.client.control.FlashPeer.isAdblockEnabled=t("isAdblockEnabled"),com.inq.flash.client.control.FlashPeer.isAsyncUnauthUser=t("isAsyncUnauthUser"),com.inq.flash.client.control.FlashPeer.isAutoFixPrechatSurvey=t("isAutoFixPrechatSurvey"),com.inq.flash.client.control.FlashPeer.isCEAPIPostChatSurveyMode=t("isCEAPIPostChatSurveyMode",!1),com.inq.flash.client.control.FlashPeer.isClickStreamSent=t("isClickStreamSent"),com.inq.flash.client.control.FlashPeer.isCobrowseEngaged=t("isCobEngaged",!1),com.inq.flash.client.control.FlashPeer.isCobrowseSharedControl=t("isCobShared",!1),com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid=t("isEmbeddedThemeValid"),com.inq.flash.client.control.FlashPeer.isHideJsonTranscriptMessages=t("isHideJsonTranscriptMessages"),com.inq.flash.client.control.FlashPeer.isLoggingDisabled=t("isLoggingDisabled",!1),com.inq.flash.client.control.FlashPeer.isMultiChatSupported=t("isMultiChatSupported"),com.inq.flash.client.control.FlashPeer.isOne2ManyChatEnabled=t("isOne2ManyChatEnabled",!1),com.inq.flash.client.control.FlashPeer.isPersistentChat=t("isPersistentChat"),com.inq.flash.client.control.FlashPeer.isPersistentWindow=t("isPersistentWindow"),com.inq.flash.client.control.FlashPeer.isPolishNotationEnabled=t("isPolishNotationEnabled",!1),com.inq.flash.client.control.FlashPeer.isPortal=t("isPortal",!1),com.inq.flash.client.control.FlashPeer.isThankYouEnabled=t("isThankYouEnabled"),com.inq.flash.client.control.FlashPeer.isV3C2CPersistent=t("isV3C2CPersistent"),com.inq.flash.client.control.FlashPeer.isV3Continue=t("isV3Continue",null),com.inq.flash.client.control.FlashPeer.JSONParse=t("JSONParse",null),com.inq.flash.client.control.FlashPeer.launchNativePostChatSurvey=t("launchNativePostChatSurvey"),com.inq.flash.client.control.FlashPeer.launchNativeSDK=t("launchNativeSDK"),com.inq.flash.client.control.FlashPeer.loadKMSlibraries=t("loadKMSlibraries",null),com.inq.flash.client.control.FlashPeer.logError=t("logError"),com.inq.flash.client.control.FlashPeer.logInfo=t("logInfo"),com.inq.flash.client.control.FlashPeer.logErrorToServer=t("logErrorToServer"),com.inq.flash.client.control.FlashPeer.logInfoToServer=t("logInfoToServer"),com.inq.flash.client.control.FlashPeer.logWarningToServer=t("logWarningToServer"),com.inq.flash.client.control.FlashPeer.noJSHostingInTagserver=t("noJSHostingInTagserver",!1),com.inq.flash.client.control.FlashPeer.noV3FrameChat=t("noV3FrameChat",!1),com.inq.flash.client.control.FlashPeer.evaluateLegacySettings=t("evaluateLegacySettings"),com.inq.flash.client.control.FlashPeer.onAgentDataPass=t("onAgentDataPass"),com.inq.flash.client.control.FlashPeer.onAgentMsg=t("onAgentMsg"),com.inq.flash.client.control.FlashPeer.onAssisted=t("onAssisted"),com.inq.flash.client.control.FlashPeer.onBeforeChatClosed=t("onBeforeChatClosed"),com.inq.flash.client.control.FlashPeer.onChatLoaded=t("onChatLoaded"),com.inq.flash.client.control.FlashPeer.onChatMinimize=t("onChatMinimize"),com.inq.flash.client.control.FlashPeer.onChatroomReady=t("onChatroomReady"),com.inq.flash.client.control.FlashPeer.onChatShown=t("onChatShown"),com.inq.flash.client.control.FlashPeer.onCookiesCommitted=t("onCookiesCommitted"),com.inq.flash.client.control.FlashPeer.onCustomerMsg=t("onCustomerMsg"),com.inq.flash.client.control.FlashPeer.onEngaged=t("onEngaged"),com.inq.flash.client.control.FlashPeer.onInteracted=t("onInteracted"),com.inq.flash.client.control.FlashPeer.onQueueWaitMsg=t("onQueueWaitMsg"),com.inq.flash.client.control.FlashPeer.onVADataPass=t("onVADataPass"),com.inq.flash.client.control.FlashPeer.parseXFrameUrl=t("parseXFrameUrl",null),com.inq.flash.client.control.FlashPeer.isValidHttpUrl=t("isValidHttpUrl"),com.inq.flash.client.control.FlashPeer.prefetchURL=t("prefetchURL"),com.inq.flash.client.control.FlashPeer.prepareDataAndSendDTEvent=t("prepareDataAndSendDTEvent"),com.inq.flash.client.control.FlashPeer.postRequestToIframeProxy=t("postRequestToIframeProxy"),com.inq.flash.client.control.FlashPeer.popOutChat=t("popOutChat"),com.inq.flash.client.control.FlashPeer.PushToFrameset=t("PushToFrameset"),com.inq.flash.client.control.FlashPeer.reinitializeChatWithNewId=t("reinitializeChatWithNewId",!1),com.inq.flash.client.control.FlashPeer.registerPersistentWindow=t("registerPersistentWindow",!1),com.inq.flash.client.control.FlashPeer.registerWDMClient=t("registerWDMClient"),com.inq.flash.client.control.FlashPeer.requestTranscript=t("requestTranscript"),com.inq.flash.client.control.FlashPeer.resetConversationManager=t("resetConversationManager"),com.inq.flash.client.control.FlashPeer.sendChatExit=t("sendChatExit"),com.inq.flash.client.control.FlashPeer.getFlagSendDataToTSWithoutIframe=t("getFlagSendDataToTSWithoutIframe"),com.inq.flash.client.control.FlashPeer.sendNetworkBackup=t("sendNetworkBackup"),com.inq.flash.client.control.FlashPeer.sendRequestToServer=t("sendRequestToServer"),com.inq.flash.client.control.FlashPeer.setActiveWindowId=t("setActiveWindowId"),com.inq.flash.client.control.FlashPeer.setAgentConfig=t("setAgentConfig"),com.inq.flash.client.control.FlashPeer.setCABeacon=t("setCABeacon"),com.inq.flash.client.control.FlashPeer.setAgentClosedChat=t("setAgentClosedChat"),com.inq.flash.client.control.FlashPeer.setAsyncChat=t("setAsyncChat"),com.inq.flash.client.control.FlashPeer.setCiFunction=t("setCiFunction",null),com.inq.flash.client.control.FlashPeer.setClickStreamSent=t("setClickStreamSent"),com.inq.flash.client.control.FlashPeer.setDisconnectFlag=t("setDisconnectFlag"),com.inq.flash.client.control.FlashPeer.setDragable=t("setDragable"),com.inq.flash.client.control.FlashPeer.setEventDataForSurvey=t("setEventDataForSurvey",null),com.inq.flash.client.control.FlashPeer.setPersistentWindowActive=t("setPersistentWindowActive"),com.inq.flash.client.control.FlashPeer.setResizable=t("setResizable"),com.inq.flash.client.control.FlashPeer.setSurveyAuxParams=t("setSurveyAuxParams"),com.inq.flash.client.control.FlashPeer.setV3Data=t("setV3Data"),com.inq.flash.client.control.FlashPeer.submitNativePostChatSurvey=t("submitNativePostChatSurvey"),com.inq.flash.client.control.FlashPeer.unregisterWDMClient=t("unregisterWDMClient"),com.inq.flash.client.control.FlashPeer.verifyToken=t("verifyToken"),com.inq.flash.client.control.FlashPeer.wasSaleAction=t("wasSaleAction",!1),com.inq.flash.client.control.FlashPeer.getRemoveJSInMessages=t("getRemoveJSInMessages"),com.inq.flash.client.control.FlashPeer.prototype.__class__=com.inq.flash.client.control.FlashPeer,com.inq.flash.client.control.FlashPeer.inqFlashPeer=window.Inq.FlashPeer}(),window.Std=function(){},$hxClasses.Std=Std,Std.__name__=["Std"],Std.is=function(t,e){return js.Boot.__instanceof(t,e)},Std.string=function(t){return js.Boot.__string_rec(t,"")},Std.int=function(t){return 0|t},Std.parseInt=function(t){var e=parseInt(t,10);return isNaN(e)?null:e},Std.parseFloat=function(t){return parseFloat(t)},Std.random=function(t){return Math.floor(Math.random()*t)},Std.prototype.__class__=Std,window.js=window.js||{},js.Boot=function(){},$hxClasses["js.Boot"]=js.Boot,js.Boot.__name__=["js","Boot"],js.Boot.__unhtml=function(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},js.Boot.__trace=function(t,e){var i,n=null!=e?(e.className?e.className:e.fileName)+":"+e.methodName+": ":" ";n+=js.Boot.__string_rec(t,""),"undefined"!=typeof document&&null!=(i=document.getElementById("haxe:trace"))?i.innerHTML+=js.Boot.__unhtml(n)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(n)},js.Boot.__clear_trace=function(){var t=document.getElementById("haxe:trace");null!=t&&(t.innerHTML="")},js.Boot.isClass=function(t){return t.__name__},js.Boot.isEnum=function(t){return t.__ename__},js.Boot.getClass=function(t){return t.__class__},js.Boot.__string_rec=function(t,e){if(null==t)return"null";if(e.length>=5)return"<...>";var i,n,o,a=typeof t;switch("function"==a&&(t.__name__||t.__ename__)&&(a="object"),a){case"object":if(t instanceof Array){if(t.__enum__){if(2==t.length)return t[0];i=t[0]+"(",e+="\t";var s=2;for(o=t.length;s<o;)i+=2!=(n=s++)?","+js.Boot.__string_rec(t[n],e):js.Boot.__string_rec(t[n],e);return i+")"}var l=t.length;for(i="[",e+="\t",o=0;o<l;){var r=o++;i+=(r>0?",":"")+js.Boot.__string_rec(t[r],e)}return i+"]"}var c;try{c=t.toString}catch(t){return"???"}if(null!=c&&c!=Object.toString){var h=t.toString();if("[object Object]"!=h)return h}i="{\n",e+="\t";var m=null!=t.hasOwnProperty;for(var u in t)m&&!t.hasOwnProperty(u)||"prototype"!=u&&"__class__"!=u&&"__super__"!=u&&"__interfaces__"!=u&&"__properties__"!=u&&(2!=i.length&&(i+=", \n"),i+=e+u+" : "+js.Boot.__string_rec(t[u],e));return i+"\n"+(e=e.substring(1))+"}";case"function":return"<function>";case"string":return t;default:return String(t)}},js.Boot.__interfLoop=function(t,e){if(null==t)return!1;if(t==e)return!0;var i=t.__interfaces__;if(null!=i)for(var n=0,o=i.length;n<o;){var a=i[n++];if(a==e||js.Boot.__interfLoop(a,e))return!0}return js.Boot.__interfLoop(t.__super__,e)},js.Boot.__instanceof=function(t,e){try{if(t instanceof e)return e!=Array||null==t.__enum__;if(js.Boot.__interfLoop(t.__class__,e))return!0}catch(t){if(null==e)return!1}switch(e){case Int:return Math.ceil(t%2147483648)===t;case Float:return"number"==typeof t;case Bool:return!0===t||!1===t;case String:return"string"==typeof t;case Dynamic:return!0;default:return null!=t&&(e==Class&&null!=t.__name__||e==Enum&&null!=t.__ename__||t.__enum__==e)}},js.Boot.__cast=function(t,e){if(js.Boot.__instanceof(t,e))return t;throw"Cannot cast "+Std.string(t)+" to "+Std.string(e)},js.Boot.prototype.__class__=js.Boot,window.HxOverrides=function(){},$hxClasses.HxOverrides=HxOverrides,HxOverrides.__name__=["HxOverrides"],HxOverrides.dateStr=function(t){var e=t.getMonth()+1,i=t.getDate(),n=t.getHours(),o=t.getMinutes(),a=t.getSeconds();return t.getFullYear()+"-"+(e<10?"0"+e:""+e)+"-"+(i<10?"0"+i:""+i)+" "+(n<10?"0"+n:""+n)+":"+(o<10?"0"+o:""+o)+":"+(a<10?"0"+a:""+a)},HxOverrides.strDate=function(t){var e;switch(t.length){case 8:e=t.split(":");var i=new Date;return i.setTime(0),i.setUTCHours(e[0]),i.setUTCMinutes(e[1]),i.setUTCSeconds(e[2]),i;case 10:return e=t.split("-"),new Date(e[0],e[1]-1,e[2],0,0,0);case 19:var n=(e=t.split(" "))[0].split("-"),o=e[1].split(":");return new Date(n[0],n[1]-1,n[2],o[0],o[1],o[2]);default:throw"Invalid date format : "+t}},HxOverrides.cca=function(t,e){var i=t.charCodeAt(e);if(i==i)return i},HxOverrides.substr=function(t,e,i){return null!=e&&0!=e&&null!=i&&i<0?"":(null==i&&(i=t.length),e<0?(e=t.length+e)<0&&(e=0):i<0&&(i=t.length+i-e),t.substr(e,i))},HxOverrides.remove=function(t,e){for(var i=0,n=t.length;i<n;){if(t[i]==e)return t.splice(i,1),!0;i++}return!1},HxOverrides.iter=function(t){var e=0;return{cur:e,arr:t,hasNext:function(){return e<t.length},next:function(){return t[e++]}}},HxOverrides.prototype.__class__=HxOverrides,y(3948),window.Hash=function(){this.h={}},$hxClasses.Hash=Hash,Hash.__name__=["Hash"],Hash.prototype.toString=function(){var t=new StringBuf;t.b+=Std.string("{");for(var e=this.keys();e.hasNext();){var i=e.next();t.b+=Std.string(i),t.b+=Std.string(" => "),t.b+=Std.string(Std.string(this.get(i))),e.hasNext()&&(t.b+=Std.string(", "))}return t.b+=Std.string("}"),t.b},Hash.prototype.iterator=function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref["$"+t]}}},Hash.prototype.keys=function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(e.substr(1));return HxOverrides.iter(t)},Hash.prototype.remove=function(t){return t="$"+t,!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},Hash.prototype.exists=function(t){return this.h.hasOwnProperty("$"+t)},Hash.prototype.get=function(t){return this.h["$"+t]},Hash.prototype.set=function(t,e){this.h["$"+t]=e},Hash.prototype.h=null,Hash.prototype.__class__=Hash,window.StringBuf=function(){this.b=""},$hxClasses.StringBuf=StringBuf,StringBuf.__name__=["StringBuf"],StringBuf.prototype.toString=function(){return this.b},StringBuf.prototype.addSub=function(t,e,i){this.b+=HxOverrides.substr(t,e,i)},StringBuf.prototype.addChar=function(t){this.b+=String.fromCharCode(t)},StringBuf.prototype.add=function(t){this.b+=Std.string(t)},StringBuf.prototype.b=null,StringBuf.prototype.__class__=StringBuf,y(5306),window.StringTools=function(){},$hxClasses.StringTools=StringTools,StringTools.__name__=["StringTools"],StringTools.urlEncode=function(t){return encodeURIComponent(t)},StringTools.urlDecode=function(t){return decodeURIComponent(t.split("+").join(" "))},StringTools.htmlEscape=function(t){return t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;")},StringTools.htmlUnescape=function(t){return t.split("&gt;").join(">").split("&lt;").join("<").split("&quot;").join('"').split("&amp;").join("&")},StringTools.startsWith=function(t,e){return t.length>=e.length&&HxOverrides.substr(t,0,e.length)==e},StringTools.endsWith=function(t,e){var i=e.length,n=t.length;return n>=i&&HxOverrides.substr(t,n-i,i)==e},StringTools.isSpace=function(t,e){var i=HxOverrides.cca(t,e);return i>=9&&i<=13||32==i},StringTools.ltrim=function(t){if("string"!=typeof t)return t;for(var e=t.length,i=0;i<e&&StringTools.isSpace(t,i);)i++;return i>0?HxOverrides.substr(t,i,e-i):t},StringTools.rtrim=function(t){if("string"!=typeof t)return t;for(var e=t.length,i=0;i<e&&StringTools.isSpace(t,e-i-1);)i++;return i>0?HxOverrides.substr(t,0,e-i):t},StringTools.trim=function(t){return StringTools.ltrim(StringTools.rtrim(t))},StringTools.rpad=function(t,e,i){for(var n=t.length,o=e.length;n<i;)i-n<o?(t+=HxOverrides.substr(e,0,i-n),n=i):(t+=e,n+=o);return t},StringTools.lpad=function(t,e,i){var n="",o=t.length;if(o>=i)return t;for(var a=e.length;o<i;)i-o<a?(n+=HxOverrides.substr(e,0,i-o),o=i):(n+=e,o+=a);return n+t},StringTools.replace=function(t,e,i){return t.split(e).join(i)},StringTools.hex=function(t,e){var i="";do{i="0123456789ABCDEF".charAt(15&t)+i,t>>>=4}while(t>0);if(null!=e)for(;i.length<e;)i="0"+i;return i},StringTools.fastCodeAt=function(t,e){return t.charCodeAt(e)},StringTools.isEOF=function(t){return t!=t},StringTools.prototype.__class__=StringTools,y(5306),window.EReg=function(t,e){e=e.split("u").join(""),this.r=new RegExp(t,e)},$hxClasses.EReg=EReg,EReg.__name__=["EReg"],EReg.prototype.customReplace=function(t,e){for(var i=new StringBuf;this.match(t);)i.b+=Std.string(this.matchedLeft()),i.b+=Std.string(e(this)),t=this.matchedRight();return i.b+=Std.string(t),i.b},EReg.prototype.replace=function(t,e){return t.replace(this.r,e)},EReg.prototype.split=function(t){var e="#__delim__#";return t.replace(this.r,e).split(e)},EReg.prototype.matchedPos=function(){if(null==this.r.m)throw"No string matched";return{pos:this.r.m.index,len:this.r.m[0].length}},EReg.prototype.matchedRight=function(){if(null==this.r.m)throw"No string matched";var t=this.r.m.index+this.r.m[0].length;return this.r.s.substr(t,this.r.s.length-t)},EReg.prototype.matchedLeft=function(){if(null==this.r.m)throw"No string matched";return this.r.s.substr(0,this.r.m.index)},EReg.prototype.matched=function(t){return null!=this.r.m&&t>=0&&t<this.r.m.length?this.r.m[t]:function(){throw"EReg::matched"}()},EReg.prototype.match=function(t){return this.r.global&&(this.r.lastIndex=0),this.r.m=this.r.exec(t),this.r.s=t,null!=this.r.m},EReg.prototype.r=null,EReg.prototype.__class__=EReg,y(3948),window.Xml=function(){},$hxClasses.Xml=Xml,Xml.__name__=["Xml"],Xml.Element="element",Xml.PCData="pcdata",Xml.CData="cdata",Xml.Comment="comment",Xml.DocType="doctype",Xml.Prolog="prolog",Xml.Document="document",Xml.parse=function(t){return haxe.xml.Parser.parse(t)},Xml.createElement=function(t){var e=new Xml;return e.nodeType=Xml.Element,e._children=new Array,e._attributes=new Hash,e.setNodeName(t),e},Xml.createPCData=function(t){var e=new Xml;return e.nodeType=Xml.PCData,e.setNodeValue(t),e},Xml.createCData=function(t){var e=new Xml;return e.nodeType=Xml.CData,e.setNodeValue(t),e},Xml.createComment=function(t){var e=new Xml;return e.nodeType=Xml.Comment,e.setNodeValue(t),e},Xml.createDocType=function(t){var e=new Xml;return e.nodeType=Xml.DocType,e.setNodeValue(t),e},Xml.createProlog=function(t){var e=new Xml;return e.nodeType=Xml.Prolog,e.setNodeValue(t),e},Xml.createDocument=function(){var t=new Xml;return t.nodeType=Xml.Document,t._children=new Array,t},Xml.prototype.toString=function(){if(this.nodeType==Xml.PCData)return this._nodeValue;if(this.nodeType==Xml.CData)return"<![CDATA["+this._nodeValue+"]]>";if(this.nodeType==Xml.Comment)return"\x3c!--"+this._nodeValue+"--\x3e";if(this.nodeType==Xml.DocType)return"<!DOCTYPE "+this._nodeValue+">";if(this.nodeType==Xml.Prolog)return"<?"+this._nodeValue+"?>";var t=new StringBuf;if(this.nodeType==Xml.Element){t.b+=Std.string("<"),t.b+=Std.string(this._nodeName);for(var e=this._attributes.keys();e.hasNext();){var i=e.next();t.b+=Std.string(" "),t.b+=Std.string(i),t.b+=Std.string('="'),t.b+=Std.string(this._attributes.get(i)),t.b+=Std.string('"')}if(0==this._children.length)return t.b+=Std.string("/>"),t.b;t.b+=Std.string(">")}for(var n=this.iterator();n.hasNext();){var o=n.next();t.b+=Std.string(o.toString())}return this.nodeType==Xml.Element&&(t.b+=Std.string("</"),t.b+=Std.string(this._nodeName),t.b+=Std.string(">")),t.b},Xml.prototype.insertChild=function(t,e){if(null==this._children)throw"bad nodetype";null!=t._parent&&HxOverrides.remove(t._parent._children,t),t._parent=this,this._children.splice(e,0,t)},Xml.prototype.removeChild=function(t){if(null==this._children)throw"bad nodetype";var e=HxOverrides.remove(this._children,t);return e&&(t._parent=null),e},Xml.prototype.addChild=function(t){if(null==this._children)throw"bad nodetype";null!=t._parent&&HxOverrides.remove(t._parent._children,t),t._parent=this,this._children.push(t)},Xml.prototype.firstElement=function(){if(null==this._children)throw"bad nodetype";for(var t=0,e=this._children.length;t<e;){var i=this._children[t];if(i.nodeType==Xml.Element)return i;t++}return null},Xml.prototype.firstChild=function(){if(null==this._children)throw"bad nodetype";return this._children[0]},Xml.prototype.elementsNamed=function(t){if(null==this._children)throw"bad nodetype";return{cur:0,x:this._children,hasNext:function(){for(var e=this.cur,i=this.x.length;e<i;){var n=this.x[e];if(n.nodeType==Xml.Element&&n._nodeName==t)break;e++}return this.cur=e,e<i},next:function(){for(var e=this.cur,i=this.x.length;e<i;){var n=this.x[e];if(e++,n.nodeType==Xml.Element&&n._nodeName==t)return this.cur=e,n}return null}}},Xml.prototype.elements=function(){if(null==this._children)throw"bad nodetype";return{cur:0,x:this._children,hasNext:function(){for(var t=this.cur,e=this.x.length;t<e&&this.x[t].nodeType!=Xml.Element;)t+=1;return this.cur=t,t<e},next:function(){for(var t=this.cur,e=this.x.length;t<e;){var i=this.x[t];if(t+=1,i.nodeType==Xml.Element)return this.cur=t,i}return null}}},Xml.prototype.iterator=function(){if(null==this._children)throw"bad nodetype";return{cur:0,x:this._children,hasNext:function(){return this.cur<this.x.length},next:function(){return this.x[this.cur++]}}},Xml.prototype.attributes=function(){if(this.nodeType!=Xml.Element)throw"bad nodeType";return this._attributes.keys()},Xml.prototype.exists=function(t){if(this.nodeType!=Xml.Element)throw"bad nodeType";return this._attributes.exists(t)},Xml.prototype.remove=function(t){if(this.nodeType!=Xml.Element)throw"bad nodeType";this._attributes.remove(t)},Xml.prototype.set=function(t,e){if(this.nodeType!=Xml.Element)throw"bad nodeType";this._attributes.set(t,e)},Xml.prototype.get=function(t){if(this.nodeType!=Xml.Element)throw"bad nodeType";return this._attributes.get(t)},Xml.prototype.getParent=function(){return this._parent},Xml.prototype.setNodeValue=function(t){if(this.nodeType==Xml.Element||this.nodeType==Xml.Document)throw"bad nodeType";return this._nodeValue=t},Xml.prototype.getNodeValue=function(){if(this.nodeType==Xml.Element||this.nodeType==Xml.Document)throw"bad nodeType";return this._nodeValue},Xml.prototype.setNodeName=function(t){if(this.nodeType!=Xml.Element)throw"bad nodeType";return this._nodeName=t},Xml.prototype.getNodeName=function(){if(this.nodeType!=Xml.Element)throw"bad nodeType";return this._nodeName},Xml.prototype._parent=null,Xml.prototype._children=null,Xml.prototype._attributes=null,Xml.prototype._nodeValue=null,Xml.prototype._nodeName=null,Xml.prototype.parent=null,Xml.prototype.nodeValue=null,Xml.prototype.nodeName=null,Xml.prototype.nodeType=null,Xml.prototype.__class__=Xml,com.inq.utils.ConsoleLogger=function(){},$hxClasses["com.inq.utils.ConsoleLogger"]=com.inq.utils.ConsoleLogger,com.inq.utils.ConsoleLogger.__name__=["com","inq","utils","ConsoleLogger"],com.inq.utils.ConsoleLogger.detect=com.inq.flash.client.control.FlashPeer.isLoggingDisabled()?function(){return!1}:function(){return!!window.console},com.inq.utils.ConsoleLogger.redirectTraces=function(){haxe.Log.trace=com.inq.utils.ConsoleLogger.trace,js.Lib.onerror=com.inq.utils.ConsoleLogger.onError},com.inq.utils.ConsoleLogger.onError=function(t,e){for(var i=t+"\n",n=0;n<e.length;){var o=e[n];++n,i+="Called from "+o+"\n"}return com.inq.utils.ConsoleLogger.trace(i,null),!0},com.inq.utils.ConsoleLogger.trace=function(t,e){if(com.inq.utils.ConsoleLogger.detect()){var i=null!=e&&null!=e.customParams?e.customParams[0]:null;if("warn"!=i&&"info"!=i&&"debug"!=i&&"error"!=i&&(i=null==e?"error":"log"),null!=window.console[i])try{var n=null==e?"":(e.fileName||e.className)+":"+(e.lineNumber||e.methodName)+" : ";window.console[i](n+Std.string(t))}catch(t){}}},com.inq.utils.ConsoleLogger.prototype.__class__=com.inq.utils.ConsoleLogger,window.CHAT_CONTINUED="c",window.CHAT_ENGAGED="eng",window.CHAT_INTERACTED="ai",window.CHAT_WINDOW_APPEARED="cwa",window.CLICK_STREAM_DATA_SENT_KEY="s",window.CLIENT_NAME_PERSIST="cn",window.CUSTOMER_DISPLAY_NAME="ci_cdn",window.EMAIL_MANAGER_CAPTURE_STATE="emlc",window.EMAIL_MANAGER_STATE="eml",window.EMBEDDED_SKIN_PATH="skn_emb",window.ENGAGE_CHAT_PARAMS="ecp",window.BUSINESS_UNIT_ID="buId",window.AGENT_GROUP_ID="agId",window.FONT_SIZE_INCREASED="fi",window.HEIGHT="h",window.IFRAME_URL="ifrmurl",window.INITIAL_TIMEOUT="it",window.LAST_FOCUSED="lf",window.LAST_TOUCHED_TIME="lt",window.LEFT="l",window.RIGHT="r",window.MESSAGE_COUNT="msgcnt",window.MINIMIZED_COUNT="mc",window.MUTE_SOUND="m",window.OPENER_SCRIPT_COUNT="cntOS",window.PRE_CHAT_SURVEY_SHOWN="pss",window.PRE_CHAT_SURVEY_COMPLETED="psc",window.QUEUE_MESSAGE_COUNT="qmCnt",window.QUEUE_MESSAGE_ID="qmId",window.REALLY_MINIMIZED="rm",window.SKIN_PATH="skn",window.TOP="t",window.BOTTOM="b",window.VIRTUAL_AGENT="va",window.WEB_CALL_AUTH_TOKEN="watoken",window.WEB_CALL_MODE="ewcall",window.WEB_CALL_STARTED="wcall",window.WEB_CALL_URL="wcallUrl",window.WIDTH="w",window.XFORM_QUERY_STRING="xfq",window.XFRAMES="xf",window.INITIAL_CUSTOMER_ID="iccid",window.CONVERSATION_ID="cid",y(1703),y(5306),com.inq.utils.Capabilities=function(){},$hxClasses["com.inq.utils.Capabilities"]=com.inq.utils.Capabilities,com.inq.utils.Capabilities.__name__=["com","inq","utils","Capabilities"],com.inq.utils.Capabilities.os=null,com.inq.utils.Capabilities._os=null,com.inq.utils.Capabilities.userAgent=null,com.inq.utils.Capabilities.isWebKit=null,com.inq.utils.Capabilities.viewportDetector=null,com.inq.utils.Capabilities.init=function(){var t=null,e=null,i=null;try{for(var n=0,o=com.inq.utils.Capabilities.patternTable.length;n<o;){var a=n++;if((i=new EReg(com.inq.utils.Capabilities.patternTable[a],"i")).match(com.inq.utils.Capabilities.getUserAgent())){switch(com.inq.utils.Capabilities._os=i.matched(1),com.inq.utils.Capabilities._os){case"Windows NT 6.1":com.inq.utils.Capabilities._os="Windows 7/Windows Server 2008 R2";break;case"Windows NT 6.0":com.inq.utils.Capabilities._os="Windows Vista/Windows Server 2008";break;case"Windows NT 5.2":com.inq.utils.Capabilities._os="Windows XP/Windows Server 2003/Windows Home Server";break;case"Windows NT 5.1":com.inq.utils.Capabilities._os="Windows XP";break;case"Windows NT 6.2":com.inq.utils.Capabilities._os="Windows 8";break;case"Windows NT 10.0":com.inq.utils.Capabilities._os="Windows 10";break;default:if(-1!=com.inq.utils.Capabilities._os.indexOf("like Mac OS X")){var s="",l="",r=new EReg("CPU OS (\\w*) like Mac OS X","gi"),c=new EReg("[\\s]*\\w+[/ ][0-9a-zA-Z.]*\\s[(](\\w+);\\s*([^;\\)]*).*","gi");r.match(com.inq.utils.Capabilities._os)&&(s=r.matched(1)),c.match(com.inq.utils.Capabilities.getUserAgent())&&(l=" "+c.matched(1)),com.inq.utils.Capabilities._os="Mac iOS "+s+l}}return!0}}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}try{t=window.navigator.platform,e=window.navigator.cpuClass}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return com.inq.utils.Capabilities._os=null==t?"unknown":t,null!=e&&(com.inq.utils.Capabilities._os+=" "+e),!0},com.inq.utils.Capabilities._getOS=function(){return 0==com.inq.utils.Capabilities._init&&(com.inq.utils.Capabilities._init=com.inq.utils.Capabilities.init()),com.inq.utils.Capabilities._os},com.inq.utils.Capabilities.getUserAgent=function(){return null==com.inq.utils.Capabilities.userAgent&&(com.inq.utils.Capabilities.userAgent=window.navigator.userAgent),com.inq.utils.Capabilities.userAgent},com.inq.utils.Capabilities.isMobile=function(){return null==com.inq.utils.Capabilities.mobile&&(com.inq.utils.Capabilities.mobile=com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isTablet()),com.inq.utils.Capabilities.mobile},com.inq.utils.Capabilities.isIphone=function(){return com.inq.utils.Capabilities.isPhone()&&-1!=com.inq.utils.Capabilities._getOS().indexOf("iPhone")},com.inq.utils.Capabilities.isIpad=function(){var t=["iPad Simulator","iPad"].includes(navigator.platform),e=navigator.userAgent.includes("Mac")&&"ontouchend"in document;return t||e},com.inq.utils.Capabilities.isIe10Phone=function(){var t=com.inq.utils.Capabilities.isWindowsPhone(),e=com.inq.utils.Capabilities.getIeVersion();return t&&e>=10},com.inq.utils.Capabilities.getIeVersion=function(){try{if(null!=com.inq.utils.Capabilities.ieVersion)return com.inq.utils.Capabilities.ieVersion;var t=com.inq.utils.Capabilities.getUserAgent().match(/(MSIE (\d+\.*\d*))|(IEMobile\/(\d+\.*\d+))/),e=Std.parseInt(t[2]||t[4]);return com.inq.utils.Capabilities.ieVersion=e,e}catch(t){return-1}},com.inq.utils.Capabilities.isPhone=function(){return"Phone"==com.inq.utils.Capabilities.getDeviceType()},com.inq.utils.Capabilities.isTablet=function(){return"Tablet"==com.inq.utils.Capabilities.getDeviceType()},com.inq.utils.Capabilities.getDeviceType=function(){return null==com.inq.utils.Capabilities.deviceType&&(com.inq.utils.Capabilities.deviceType=com.inq.flash.client.control.FlashPeer.getDeviceType(),"Standard"==com.inq.utils.Capabilities.deviceType&&com.inq.utils.Capabilities.isIpad()&&(com.inq.utils.Capabilities.deviceType="Tablet")),com.inq.utils.Capabilities.deviceType},com.inq.utils.Capabilities.isChrome=function(){return-1==com.inq.utils.Capabilities.getUserAgent().toLowerCase().indexOf("edge")&&com.inq.utils.Capabilities.getUserAgent().toLowerCase().indexOf("chrome")>-1},com.inq.utils.Capabilities.getChromeVersion=function(){try{if(null!=com.inq.utils.Capabilities.chromeVersion)return com.inq.utils.Capabilities.chromeVersion;if(1==com.inq.utils.Capabilities.isChrome()){var t=com.inq.utils.Capabilities.getUserAgent().match(/Chrome\/(\d+)/),e=Std.parseInt(t[1]);return com.inq.utils.Capabilities.chromeVersion=e,e}return-1}catch(t){return-1}},com.inq.utils.Capabilities._isWebKit=function(){if(null!=com.inq.utils.Capabilities.webKit)return com.inq.utils.Capabilities.webKit;var t=new EReg("(safari)","i");return com.inq.utils.Capabilities.webKit=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities.webKit},com.inq.utils.Capabilities.isSafari=function(){if(null!=com.inq.utils.Capabilities._isSafari)return com.inq.utils.Capabilities._isSafari;var t=com.inq.utils.Capabilities.userAgent.toLowerCase();return com.inq.utils.Capabilities._isSafari=t.indexOf("safari")>=0&&!(t.indexOf("chrome")>=0||t.indexOf("crios")>=0),com.inq.utils.Capabilities._isSafari},com.inq.utils.Capabilities.isSafariVersion8=function(){if(null!=com.inq.utils.Capabilities._isVersion8)return com.inq.utils.Capabilities._isVersion8;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/8)","i");return com.inq.utils.Capabilities._isVersion8=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion8},com.inq.utils.Capabilities.isSafariVersion9=function(){if(null!=com.inq.utils.Capabilities._isVersion9)return com.inq.utils.Capabilities._isVersion9;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/9)","i");return com.inq.utils.Capabilities._isVersion9=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion9},com.inq.utils.Capabilities.isSafariVersion10=function(){if(null!=com.inq.utils.Capabilities._isVersion10)return com.inq.utils.Capabilities._isVersion10;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/10)","i");return com.inq.utils.Capabilities._isVersion10=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion10||(t=new EReg("(iPhone|iPad) OS 10.*AppleWebKit","i"),com.inq.utils.Capabilities._isVersion10=t.match(com.inq.utils.Capabilities.getUserAgent())),com.inq.utils.Capabilities._isVersion10},com.inq.utils.Capabilities.isSafariVersion11=function(){if(null!=com.inq.utils.Capabilities._isVersion11)return com.inq.utils.Capabilities._isVersion11;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/11)","i");return com.inq.utils.Capabilities._isVersion11=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion11||(t=new EReg("(iPhone|iPad) OS 11.*AppleWebKit","i"),com.inq.utils.Capabilities._isVersion11=t.match(com.inq.utils.Capabilities.getUserAgent())),com.inq.utils.Capabilities._isVersion11},com.inq.utils.Capabilities.isSafariVersion12=function(){if(null!=com.inq.utils.Capabilities._isVersion12)return com.inq.utils.Capabilities._isVersion12;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/12)","i");return com.inq.utils.Capabilities._isVersion12=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion12||(t=new EReg("(iPhone|iPad) OS 12.*AppleWebKit","i"),com.inq.utils.Capabilities._isVersion12=t.match(com.inq.utils.Capabilities.getUserAgent())),com.inq.utils.Capabilities._isVersion12},com.inq.utils.Capabilities.isSafariVersion13=function(){if(null!=com.inq.utils.Capabilities._isVersion13)return com.inq.utils.Capabilities._isVersion13;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/13)","i");return com.inq.utils.Capabilities._isVersion13=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion13||(t=new EReg("(iPhone|iPad) OS 13.*AppleWebKit","i"),com.inq.utils.Capabilities._isVersion13=t.match(com.inq.utils.Capabilities.getUserAgent())),com.inq.utils.Capabilities._isVersion13},com.inq.utils.Capabilities.isSafariVersion14orLater=function(){if(null!==com.inq.utils.Capabilities._isVersion14orLater)return com.inq.utils.Capabilities._isVersion14orLater;var t=["14","15","16","17","18","19","20"];for(let n=0;n<t.length;n++){let o=t[n];var e=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*(Version\\/"+o+")","i"),i=new EReg("(iPhone|iPad) OS "+o+".*AppleWebKit","i");if(com.inq.utils.Capabilities._isVersion14orLater=e.match(com.inq.utils.Capabilities.getUserAgent())||i.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersion14orLater)return!0}return com.inq.utils.Capabilities._isVersion14orLater},com.inq.utils.Capabilities.isIOSWebView=function(){if(null!=com.inq.utils.Capabilities._isIOSWebView)return com.inq.utils.Capabilities._isIOSWebView;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)","i");return com.inq.utils.Capabilities._isIOSWebView=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isIOSWebView||com.inq.utils.Capabilities.isIPadWebViewInDesktopMode()},com.inq.utils.Capabilities.isIPadWebViewInDesktopMode=function(){if(null!=com.inq.utils.Capabilities._isIOSWebViewInDM)return com.inq.utils.Capabilities._isIOSWebViewInDM;var t=new RegExp("(Macintosh).*AppleWebKit(?!.*Safari)","i");return com.inq.utils.Capabilities._isIOSWebViewInDM=t.test(com.inq.utils.Capabilities.getUserAgent())&&!com.inq.utils.Capabilities.isChrome(),com.inq.utils.Capabilities._isIOSWebViewInDM},com.inq.utils.Capabilities.isAndroidWebView=function(){if(null!=com.inq.utils.Capabilities._isAndroidWebView)return com.inq.utils.Capabilities._isAndroidWebView;var t=new EReg("Android.*?(wv|Version\\/[.0-9]+).*?Chrome\\/([0-9]{2})","i");return com.inq.utils.Capabilities._isAndroidWebView=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isAndroidWebView},com.inq.utils.Capabilities.isSafariVersionPrior8=function(){if(null!=com.inq.utils.Capabilities._isVersionPrior8)return com.inq.utils.Capabilities._isVersionPrior8;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*Version\\/(6|7)","i");return com.inq.utils.Capabilities._isVersionPrior8=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isVersionPrior8},com.inq.utils.Capabilities.isChromeiOS8=function(){if(null!=com.inq.utils.Capabilities._isCriOS8)return com.inq.utils.Capabilities._isCriOS8;var t=new EReg("(iPhone|iPod|iPad).*(CPU\\s(iPhone|iPod|iPad)\\sOS\\s(6|7|8|9)_).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS8=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS8},com.inq.utils.Capabilities.isChromeiOS10=function(){if(null!=com.inq.utils.Capabilities._isCriOS10)return com.inq.utils.Capabilities._isCriOS10;var t=new EReg("(iPhone|iPod|iPad).*(CPU.*\\sOS\\s10_).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS10=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS10},com.inq.utils.Capabilities.isChromeiOS11=function(){if(null!=com.inq.utils.Capabilities._isCriOS11)return com.inq.utils.Capabilities._isCriOS11;var t=new EReg("(iPhone|iPod|iPad).*(CPU.*\\sOS\\s11_).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS11=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS11},com.inq.utils.Capabilities.isChromeiOS12=function(){if(null!=com.inq.utils.Capabilities._isCriOS12)return com.inq.utils.Capabilities._isCriOS12;var t=new EReg("(iPhone|iPod|iPad).*(CPU.*\\sOS\\s12_).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS12=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS12},com.inq.utils.Capabilities.isChromeiOS13=function(){if(null!=com.inq.utils.Capabilities._isCriOS13)return com.inq.utils.Capabilities._isCriOS13;var t=new EReg("(iPhone|iPod|iPad).*(CPU.*\\sOS\\s13_).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS13=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS13},com.inq.utils.Capabilities.isChromeiOS14=function(){if(null!==com.inq.utils.Capabilities._isCriOS14)return com.inq.utils.Capabilities._isCriOS14;var t=new EReg("(iPhone|iPod|iPad).*(CPU.*\\sOS\\s14_).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS14=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS14},com.inq.utils.Capabilities.isChromeOnIphone=function(){return com.inq.utils.Capabilities.isPhone()&&(com.inq.utils.Capabilities.isChromeiOS14()||com.inq.utils.Capabilities.isChromeiOS13()||com.inq.utils.Capabilities.isChromeiOS12()||com.inq.utils.Capabilities.isChromeiOS11()||com.inq.utils.Capabilities.isChromeiOS10())},com.inq.utils.Capabilities.isChromeiOS=function(){if(null!=com.inq.utils.Capabilities._isCriOS)return com.inq.utils.Capabilities._isCriOS;var t=new EReg("(iPhone|iPod|iPad).*AppleWebKit?.*CriOS","i");return com.inq.utils.Capabilities._isCriOS=t.match(com.inq.utils.Capabilities.getUserAgent()),com.inq.utils.Capabilities._isCriOS},com.inq.utils.Capabilities.BindListener=function(t,e,i){null!=window.addEventListener?t.addEventListener(e,i,!1):null!=window.attachEvent&&t.attachEvent("on"+e,i)},com.inq.utils.Capabilities.UnbindListener=function(t,e,i){null!=window.removeEventListener?t.removeEventListener(e,i,!1):null!=window.detachEvent&&t.detachEvent("on"+e,i)},com.inq.utils.Capabilities.isWindowsPhone=function(t){var e=new EReg("Windows Phone","i").match(com.inq.utils.Capabilities.getUserAgent());return e&&null!=t&&(e=-1!=com.inq.utils.Capabilities.getUserAgent().indexOf(t)),e},com.inq.utils.Capabilities.isAndroid=function(t){var e=new EReg("^(?!.*windows)(?=.*android)","i").match(com.inq.utils.Capabilities.getUserAgent());return e&&null!=t&&(e=-1!=com.inq.utils.Capabilities.getUserAgent().indexOf(t)),e},com.inq.utils.Capabilities.getDefaultResizeArea=function(){return com.inq.utils.Capabilities.isMobile()?new com.inq.utils.Area(0,0,32,32):new com.inq.utils.Area(0,0,16,16)},com.inq.utils.Capabilities.isFF=function(){return"undefined"!=typeof InstallTrigger&&-1!=com.inq.utils.Capabilities.getUserAgent().toLowerCase().indexOf("firefox")},com.inq.utils.Capabilities.isAutoZoom=function(){var t=!1;return com.inq.utils.Capabilities.isMobile()&&(t=!new EReg("android","i").match(com.inq.utils.Capabilities.getUserAgent())||!new EReg("a100|a200|transformer tf101|transformer tf300|gt-p6210|gt-p7100|sony tablet s|kindle fire","i").match(com.inq.utils.Capabilities.getUserAgent())),t},com.inq.utils.Capabilities.getViewport=function(){var t,e=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),i=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop();if(com.inq.utils.Capabilities.isAndroid()&&(!com.inq.utils.Capabilities.isChrome()||com.inq.utils.Capabilities.getChromeVersion()<40)){var n=com.inq.utils.Capabilities.getLowerRightCorner();t=new com.inq.utils.Area(e,i,n.x,n.y)}else{var o=Std.parseInt(window.parent.innerWidth),a=Std.parseInt(window.parent.innerHeight);t=new com.inq.utils.Area(e,i,o,a)}return t},com.inq.utils.Capabilities.getOrientation=function(){var t=!("orientation"in window)||(window.parent.orientation+360)%180==0;if(com.inq.utils.Capabilities.isChrome()){var e=parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10),i=window.top;isNaN(e)||e>=33&&e<=35?t=i.outerWidth<i.outerHeight:e>=36&&(t=i.screen.width<i.screen.height)}return t},com.inq.utils.Capabilities.getScreenHeight=function(){var t=window.top;return com.inq.utils.Capabilities.isIphone()||com.inq.utils.Capabilities.isIpad()?com.inq.utils.Capabilities.getOrientation()?t.screen.height>t.screen.width?t.screen.height:t.screen.width:t.screen.height>t.screen.width?t.screen.width:t.screen.height:t.screen.height},com.inq.utils.Capabilities.getScreenWidth=function(){var t=window.top;return com.inq.utils.Capabilities.isIphone()||com.inq.utils.Capabilities.isIpad()?com.inq.utils.Capabilities.getOrientation()?t.screen.height>t.screen.width?t.screen.width:t.screen.height:t.screen.height>t.screen.width?t.screen.height:t.screen.width:t.screen.width},com.inq.utils.Capabilities.getAvailHeight=function(){var t=window.top;return com.inq.utils.Capabilities.isIphone()||com.inq.utils.Capabilities.isIpad()?com.inq.utils.Capabilities.getOrientation()?t.screen.availHeight>t.screen.availWidth?t.screen.availHeight:t.screen.availWidth:t.screen.availHeight>t.screen.availWidth?t.screen.availWidth:t.screen.availHeight:t.screen.availHeight},com.inq.utils.Capabilities.isChromed=function(){return window.top.innerHeight===com.inq.utils.Capabilities.getAvailHeight()},com.inq.utils.Capabilities.getZoom=function(){try{var t=com.inq.utils.Capabilities.getViewport(),e=Std.parseInt(window.parent.screen.width);return Math.round(e/t.w*100)/100}catch(t){return 1}},com.inq.utils.Capabilities.getLowerRightCorner=function(){0==window.top.pageYOffset&&window.top.scrollBy(0,1),com.inq.utils.Capabilities.initZoomDetection();var t=com.inq.utils.Capabilities.viewportDetector.offsetLeft-com.inq.utils.Capabilities.viewportDetector.parentNode.scrollLeft,e=com.inq.utils.Capabilities.viewportDetector.offsetTop-com.inq.utils.Capabilities.viewportDetector.parentNode.scrollTop;return t+=1,e+=1,com.inq.utils.Capabilities.isTablet()&&(com.inq.utils.Capabilities.viewportDetector.offsetTop+1===window.parent.innerHeight&&(e=window.parent.innerHeight),com.inq.utils.Capabilities.viewportDetector.offsetLeft+1===window.parent.innerWidth&&(t=window.parent.innerWidth)),new com.inq.utils.Point(t,e)},com.inq.utils.Capabilities.initZoomDetection=function(){try{if(!com.inq.utils.Capabilities.viewportDetectorInitialized){var t=window.parent.document.createElement("DIV");t.style.position="fixed",t.style.height="1px",t.style.width="1px",t.style.right="0px",t.style.bottom="0px",com.inq.utils.Capabilities.viewportDetector=t,window.parent.document.body.appendChild(com.inq.utils.Capabilities.viewportDetector),com.inq.utils.Capabilities.viewportDetectorInitialized=!0}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace(t,{fileName:"Capabilities.hx",lineNumber:387,className:"com.inq.utils.Capabilities",methodName:"initZoomDetection"})}},com.inq.utils.Capabilities.waitFor=function(t,e,i,n,o){null==o&&(o=1);var a=0,s=window.setInterval((function(){haxe.Log.trace("interval[count: "+a+", max: "+n+", ripples: "+o+"]",{fileName:"Capabilities.hx",lineNumber:402,className:"com.inq.utils.Capabilities",methodName:"waitFor"}),null!=n&&++a>n?window.clearInterval(s):t()&&(--o<=0&&window.clearInterval(s),a=0,i())}),e);return s},com.inq.utils.Capabilities.setDomSafeTimeout=function(t,e){var i="domsafe"+(Math.random()+"").substring(2),n=function(){com.inq.utils.Capabilities.UnbindListener(window,i,n),t()};com.inq.utils.Capabilities.BindListener(window,i,n);var o=window.setTimeout((function(){window.dispatchEvent(new Event(i))}),e);return{clear:function(){window.clearTimeout(o),com.inq.utils.Capabilities.UnbindListener(window,i,n)}}},com.inq.utils.Capabilities.viewportStopsMoving=function(t){var e=com.inq.utils.Capabilities.getViewport(),i=(new Date).getTime();return function(){var n=(new Date).getTime(),o=n-i,a=com.inq.utils.Capabilities.getViewport(),s=e.equals(a);return haxe.Log.trace("viewportStopsMoving[dt: "+o+", time: "+t+"]",{fileName:"Capabilities.hx",lineNumber:434,className:"com.inq.utils.Capabilities",methodName:"viewportStopsMoving"}),s?(haxe.Log.trace("viewport has remained the same for "+o+"ms.",{fileName:"Capabilities.hx",lineNumber:436,className:"com.inq.utils.Capabilities",methodName:"viewportStopsMoving"}),o>t&&(i=n,!0)):(haxe.Log.trace("viewport has changed.",{fileName:"Capabilities.hx",lineNumber:446,className:"com.inq.utils.Capabilities",methodName:"viewportStopsMoving"}),i=n,e=a,!1)}},com.inq.utils.Capabilities.getIOSNativeSDKInstance=function(){return window.top.webkit&&window.top.webkit.messageHandlers&&window.top.webkit.messageHandlers.NuanIJSFBridge},com.inq.utils.Capabilities.extractBrowserNameAndVersion=function(t){for(var e=null,i=null,n=[{browser:"IOS WebView",pattern:"(.*)(iPhone|iPod|iPad)(.*)AppleWebKit(?!.*Safari)(.*)",replaceWith:"IOS WebView"},{browser:"Android WebView",pattern:"(.*?)Android(.*?)(wv|Version\\/[.0-9]+)(.*?)Chrome\\/([0-9]{2})(.*?)Mobile(.*)",replaceWith:"Android WebView/Stock Browser - Chrome $5"},{browser:"Edge",pattern:"(.*)(Edge)(/)([0-9.]*)",replaceWith:"Edge $4"},{browser:"Edge",pattern:"(.*)(Edg)(/)([0-9.]*)",replaceWith:"Edge $4"},{browser:"Android Browser",pattern:".*Android(?!.*Chrome)(?=.*Mobile Safari).*Version/([0-9.]+).*",replaceWith:"Android Browser $1"},{browser:"Chrome",pattern:"(.*)(Chrome)([/| ])([0-9a-zA-Z.]*)( .*)",replaceWith:"Chrome $4"},{browser:"Chrome",pattern:"(.*?)(AppleWebKit)(.*?) CriOS/([0-9]{2,})(.*?)Safari(.*)",replaceWith:"Chrome $4"},{browser:"IE",pattern:"(.*)(Trident)(/)([0-9.]*)(.*)",replaceWith:"$4",ieVersionCorrection:4},{browser:"IE",pattern:"(.*)(MSIE)( )([0-9.]*)(;.*)",replaceWith:"IE $4"},{browser:"IE",pattern:"(.*)(MSIE)(.*)",replaceWith:"IE"},{browser:"Firefox",pattern:"(.*)(Gecko)([/ ])([0-9]*)(.*)(Firefox)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$6 $8 $4"},{browser:"Firefox",pattern:"(.*)(Firefox)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Firefox",pattern:"(.*)(Firefox)(.*)",replaceWith:"$2"},{browser:"Safari",pattern:"(.*)(AppleWebKit)(.*)(Version)([/| ])([0-9a-zA-Z.]*)( .*)",replaceWith:"Safari $6"},{browser:"Safari",pattern:"(.*)(AppleWebKit)(.*)",replaceWith:"Safari"},{browser:"Opera",pattern:"(.*)(Opera)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Opera",pattern:"(.*)(Opera)(.*)",replaceWith:"$2"},{browser:"Lobo",pattern:"(.*)(Lobo)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Beonex",pattern:"(.*)(Beonex)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"BonEcho",pattern:"(.*)(BonEcho)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Camino",pattern:"(.*)(Camino)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Chimera",pattern:"(.*)(Chimera)([/| ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Dillo",pattern:"(.*)(Dillo)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Elinks",pattern:"(.*)(Elinks)([/ (])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Epiphany",pattern:"(.*)(Epiphany)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Firebird",pattern:"(.*)(Firebird)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Flock",pattern:"(.*)(Flock)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Galeon",pattern:"(.*)(Galeon)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"GranParadiso",pattern:"(.*)(GranParadiso)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"IBrowse",pattern:"(.*)(IBrowse)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"iCab",pattern:"(.*)(iCab)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Iceape",pattern:"(.*)(Iceape)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Iceweasel",pattern:"(.*)(Iceweasel)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"K-Meleon",pattern:"(.*)(K-Meleon)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"K-Ninja",pattern:"(.*)(K-Ninja)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Kazehakase",pattern:"(.*)(Kazehakase)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Links",pattern:"(.*)(Links)([/( ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Lynx",pattern:"(.*)(Lynx)([y/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Minefield",pattern:"(.*)(Minefield)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"MultiZilla",pattern:"(.*)(MultiZilla)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Mosaic",pattern:"(.*)(Mosaic)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"NetNewsWire",pattern:"(.*)(NetNewsWire)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Netscape",pattern:"(.*)(Netscape)([6]*)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $5"},{browser:"OmniWeb",pattern:"(.*)(OmniWeb)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Oregano",pattern:"(.*)(Oregano)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Phoenix",pattern:"(.*)(Phoenix)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"SeaMonkey",pattern:"(.*)(SeaMonkey)([/ ]*)([0-9a-zA-Z.]*)(.*)",replaceWith:"$2 $4"},{browser:"Shiira",pattern:"(.*)(Shiira)([/ ]*)(([0-9][0-9a-zA-Z.]*)|([ ]))(.*)",replaceWith:"$2 $4"},{browser:"Sunrise",pattern:"(.*)(Sunrise)([/ ]*)(([0-9][0-9a-zA-Z.]*)|([ ]))(.*)",replaceWith:"$2 $4"},{browser:"Netscape",pattern:"(.*)(Mozilla)([/ ])([0-9a-zA-Z.]*)(.*)",replaceWith:"Netscape $4"}],o=0;o<n.length;o++)if(i=new EReg(n[o].pattern,"i"),e=n[o].replaceWith,i.match(t)){var a=i.replace(t,e),s=n[o].ieVersionCorrection;return s?"IE "+new String(new Number(a)+s)+".0":a}return"Unknown"},com.inq.utils.Capabilities.getiPhoneModel=function(){if(null!==com.inq.utils.Capabilities._iPhoneModel)return com.inq.utils.Capabilities._iPhoneModel;var t=null,e=document.createElement("canvas");if(e){var i=e.getContext("webgl")||e.getContext("experimental-webgl");if(i){var n=i.getExtension("WEBGL_debug_renderer_info");if(n)var o=i.getParameter(n.UNMASKED_RENDERER_WEBGL)}}var a=window.parent.screen.height/window.parent.screen.width;if(a==844/390&&3==window.devicePixelRatio)t="iPhone12";else if(a==926/428&&3==window.devicePixelRatio)t="iPhone12ProMax";else if(a==896/414&&3==window.devicePixelRatio)t="iPhoneXSMax";else if(a==896/414&&2==window.devicePixelRatio)t="iPhoneXR";else if(a==812/375&&3==window.devicePixelRatio)t="Apple A12 GPU"===o?"iPhoneXS_XSMaxZoomed":"iPhoneX";else if(a==812/375&&2==window.devicePixelRatio)t="iPhoneXRZoomed";else if(a==736/414&&3==window.devicePixelRatio)switch(o){case"Apple A8 GPU":default:t="iPhone6Plus";break;case"Apple A9 GPU":t="iPhone6sPlus";break;case"Apple A10 GPU":t="iPhone7Plus";break;case"Apple A11 GPU":t="iPhone8Plus"}else if(a==667/375&&3==window.devicePixelRatio)switch(o){case"Apple A8 GPU":default:t="iPhone6PlusZoomed";break;case"Apple A9 GPU":t="iPhone6sPlusZoomed";break;case"Apple A10 GPU":t="iPhone7PlusZoomed";break;case"Apple A11 GPU":t="iPhone8PlusZoomed"}else if(a==667/375&&2==window.devicePixelRatio)switch(o){case"Apple A8 GPU":default:t="iPhone6";break;case"Apple A9 GPU":t="iPhone6s";break;case"Apple A10 GPU":t="iPhone7";break;case"Apple A11 GPU":t="iPhone8"}else if(1.775==a&&2==window.devicePixelRatio)switch(o){case"PowerVR SGX 543":t="iPhone5";break;case"Apple A7 GPU":t="iPhone5s";break;case"Apple A8 GPU":default:t="iPhone6Zoomed";break;case"Apple A9 GPU":t="iPhone6sZoomed";break;case"Apple A10 GPU":t="iPhone7Zoomed";break;case"Apple A11 GPU":t="iPhone8Zoomed"}else if(1.5==a&&2==window.devicePixelRatio)t="PowerVR SGX 535"===o?"iPhone4":"iPhone4s";else if(1.5==a&&1==window.devicePixelRatio)switch(o){case"ALP0298C05":t="iPhone 3GS";break;case"S5L8900":t="iPhone 1, 3G";break;default:t="iPhone 1, 3G or 3GS"}else t="Not an iPhone";return com.inq.utils.Capabilities._iPhoneModel=t,com.inq.utils.Capabilities._iPhoneModel},com.inq.utils.Capabilities.isIPhoneXOrNewer=function(){return-1!==com.inq.utils.Capabilities.getiPhoneModel().indexOf("iPhoneX")},com.inq.utils.Capabilities.getiPadModel=function(){var t=document.createElement("canvas");if(t){var e=t.getContext("webgl")||t.getContext("experimental-webgl");if(e){var i=e.getExtension("WEBGL_debug_renderer_info");if(i)var n=e.getParameter(i.UNMASKED_RENDERER_WEBGL)}}if(window.parent.screen.height/window.parent.screen.width==1024/768)if(1==window.devicePixelRatio)switch(n){case"PowerVR SGX 535":return"iPad";case"PowerVR SGX 543":return"iPad 2 or Mini";default:return"iPad, iPad 2, iPad Mini"}else switch(n){case"PowerVR SGX 543":return"iPad 3";case"PowerVR SGX 554":return"iPad 4";case"Apple A7 GPU":return"iPad Air, Mini 2, Mini 3";case"Apple A8X GPU":return"iPad Air 2";case"Apple A8 GPU":return"iPad Mini 4";case"Apple A9 GPU":return"iPad 5, Pro 9.7";default:return"iPad 3, 4, 5, Mini 2, Mini 3, Mini 4, Air, Air 2"}else{if(window.parent.screen.height/window.parent.screen.width==1112/834)return"iPad Pro 10.5";if(window.parent.screen.height/window.parent.screen.width!=1366/1024)return"Not an iPad";switch(n){case"Apple A10X GPU":return"iPad Pro 12.9 (2nd Gen)";case"Apple A9 GPU":return"iPad Pro 12.9";default:return"iPad Pro 12.9, Pro 12.9 (2nd Gen)"}}},com.inq.utils.Capabilities.setOrigViewPortHeight=function(){com.inq.utils.Capabilities._origViewPortHeight=parseInt(window.parent.innerHeight)},com.inq.utils.Capabilities.getOrigViewPortHeight=function(){return com.inq.utils.Capabilities._origViewPortHeight},com.inq.utils.Capabilities.prototype.__class__=com.inq.utils.Capabilities,com.inq.utils.Capabilities.patternTable=["[\\s]*Mozilla[/ ][0-9a-zA-Z.]*\\s[(][^;]*;[^;]*;\\s*America Online[^;]*;[^;]*;([^;\\)]*).*","[\\s]*Mozilla[/ ][0-9a-zA-Z.]*\\s[(][^;]*;[^;]*;\\s*AOL[^;]*;([^;\\)]*).*","[\\s]*Opera[/ ][0-9a-zA-Z.]*\\s[(]Macintosh;([^;\\)]*).*","[\\s]*Opera[/ ][0-9a-zA-Z.]*\\s[(]X11;([^;\\)]*).*","[\\s]*Opera[/ ][0-9a-zA-Z.]*\\s[(]([^;\\)]*).*","[\\s]*Mozilla[/ ][0-9a-zA-Z.]*\\s[(]([^;]*);[^;]*;[\\s]Trident[^;)]*.*","[\\s]*Mozilla[/ ][0-9a-zA-Z.]*\\s[(][^;]*;[ U;]*;[ ]([^;\\)]*).*","[\\s]*Mozilla[/ ][0-9a-zA-Z.]*\\s[(]compatible; MSIE \\d*.\\d*;\\s*([^;\\)]*).*","[\\s]*\\w+[/ ][0-9a-zA-Z.]*\\s[(]\\w+;\\s*([^;\\)]*).*","[\\s]*Mozilla[/ ][0-9a-zA-Z.]*\\s[(]([^;\\)]*).*"],com.inq.utils.Capabilities._init=com.inq.utils.Capabilities.init(),com.inq.utils.Capabilities.deviceType=null,com.inq.utils.Capabilities.mobile=null,com.inq.utils.Capabilities.webKit=null,com.inq.utils.Capabilities.viewportDetectorInitialized=!1,com.inq.utils.Capabilities._iPhoneModel=null,com.inq.utils.Capabilities._isVersionPrior8=null,com.inq.utils.Capabilities._isVersion8=null,com.inq.utils.Capabilities._isVersion9=null,com.inq.utils.Capabilities._isCriOS8=null,com.inq.utils.Capabilities._isCriOS10=null,com.inq.utils.Capabilities._isCriOS11=null,com.inq.utils.Capabilities._isCriOS12=null,com.inq.utils.Capabilities._isCriOS13=null,com.inq.utils.Capabilities._isCriOS14=null,com.inq.utils.Capabilities._isVersion14orLater=null,com.inq.utils.Capabilities._isCriOS=null,com.inq.utils.Capabilities._isSafari=null,com.inq.utils.Capabilities._isIOSWebView=null,com.inq.utils.Capabilities._isAndroidWebView=null,com.inq.utils.Capabilities._origViewPortHeight=0,com.inq.events.Event=function(t,e){this.type=t,this.originalEvent=e},$hxClasses["com.inq.events.Event"]=com.inq.events.Event,com.inq.events.Event.__name__=["com","inq","events","Event"],com.inq.events.Event.ID3=null,com.inq.events.Event.ADDED_TO_STAGE=null,com.inq.events.Event.REMOVED_FROM_STAGE=null,com.inq.events.Event.prototype.type=null,com.inq.events.Event.prototype.target=null,com.inq.events.Event.prototype.eventPhase=null,com.inq.events.Event.prototype.currentTarget=null,com.inq.events.Event.prototype.cancelable=null,com.inq.events.Event.prototype.bubbles=null,com.inq.events.Event.prototype.__class__=com.inq.events.Event,com.inq.events.Event.ACTIVATE="activate",com.inq.events.Event.ADDED="added",com.inq.events.Event.CANCEL="cancel",com.inq.events.Event.CHANGE="change",com.inq.events.Event.CLOSE="close",com.inq.events.Event.COMPLETE="complete",com.inq.events.Event.CONNECT="connect",com.inq.events.Event.DEACTIVATE="deactivate",com.inq.events.Event.ENTER_FRAME="enterFrame",com.inq.events.Event.INIT="init",com.inq.events.Event.MOUSE_LEAVE="mouseLeave",com.inq.events.Event.OPEN="open",com.inq.events.Event.REMOVED="removed",com.inq.events.Event.RENDER="render",com.inq.events.Event.RESIZE="resize",com.inq.events.Event.SCROLL="scroll",com.inq.events.Event.SELECT="select",com.inq.events.Event.SOUND_COMPLETE="soundComplete",com.inq.events.Event.TAB_CHILDREN_CHANGE="tabChildrenChange",com.inq.events.Event.TAB_ENABLED_CHANGE="tabEnabledChange",com.inq.events.Event.TAB_INDEX_CHANGE="tabIndexChange",com.inq.events.Event.UNLOAD="unload",com.inq.events.Event.UNAUTHORIZED="unauthorized",com.inq.events.Event.BAD_GATEAWAY="badGateway",com.inq.events.Event.SERVICE_UNAVAILABLE="serviceUnavailable",com.inq.events.Event.NETWORK_ERROR="networkError",com.inq.events.Event.BAD_REQUEST="badRequest",function(){for(var t in com.inq.events.TextEvent=function(t,e,i,n){com.inq.events.Event.call(this,t)},$hxClasses["com.inq.events.TextEvent"]=com.inq.events.TextEvent,com.inq.events.TextEvent.__name__=["com","inq","events","TextEvent"],com.inq.events.TextEvent.__super__=com.inq.events.Event,com.inq.events.Event.prototype)com.inq.events.TextEvent.prototype[t]=com.inq.events.Event.prototype[t];com.inq.events.TextEvent.prototype.m_text=null,com.inq.events.TextEvent.prototype.text=null,com.inq.events.TextEvent.prototype.__class__=com.inq.events.TextEvent,com.inq.events.TextEvent.LINK="link",com.inq.events.TextEvent.TEXT_INPUT="textInput"}(),function(){for(var t in com.inq.events.ErrorEvent=function(t,e,i,n){com.inq.events.TextEvent.call(this,t)},$hxClasses["com.inq.events.ErrorEvent"]=com.inq.events.ErrorEvent,com.inq.events.ErrorEvent.__name__=["com","inq","events","ErrorEvent"],com.inq.events.ErrorEvent.__super__=com.inq.events.TextEvent,com.inq.events.TextEvent.prototype)com.inq.events.ErrorEvent.prototype[t]=com.inq.events.TextEvent.prototype[t];com.inq.events.ErrorEvent.prototype.__class__=com.inq.events.ErrorEvent,com.inq.events.ErrorEvent.ERROR="error"}(),function(){for(var t in com.inq.events.FocusEvent=function(t,e,i,n,o,a){com.inq.events.Event.call(this,t)},$hxClasses["com.inq.events.FocusEvent"]=com.inq.events.FocusEvent,com.inq.events.FocusEvent.__name__=["com","inq","events","FocusEvent"],com.inq.events.FocusEvent.__super__=com.inq.events.Event,com.inq.events.Event.prototype)com.inq.events.FocusEvent.prototype[t]=com.inq.events.Event.prototype[t];com.inq.events.FocusEvent.KEY_FOCUS_CHANGE=null,com.inq.events.FocusEvent.MOUSE_FOCUS_CHANGE=null,com.inq.events.FocusEvent.prototype.m_shiftKey=null,com.inq.events.FocusEvent.prototype.m_relatedObject=null,com.inq.events.FocusEvent.prototype.m_keyCode=null,com.inq.events.FocusEvent.prototype.shiftKey=null,com.inq.events.FocusEvent.prototype.relatedObject=null,com.inq.events.FocusEvent.prototype.keyCode=null,com.inq.events.FocusEvent.prototype.__class__=com.inq.events.FocusEvent,com.inq.events.FocusEvent.FOCUS_IN="FocusIn",com.inq.events.FocusEvent.FOCUS_OUT="FocusOut"}(),function(){for(var t in com.inq.events.HTTPStatusEvent=function(t,e,i,n){com.inq.events.Event.call(this,t)},$hxClasses["com.inq.events.HTTPStatusEvent"]=com.inq.events.HTTPStatusEvent,com.inq.events.HTTPStatusEvent.__name__=["com","inq","events","HTTPStatusEvent"],com.inq.events.HTTPStatusEvent.__super__=com.inq.events.Event,com.inq.events.Event.prototype)com.inq.events.HTTPStatusEvent.prototype[t]=com.inq.events.Event.prototype[t];com.inq.events.HTTPStatusEvent.prototype.m_status=null,com.inq.events.HTTPStatusEvent.prototype.status=null,com.inq.events.HTTPStatusEvent.prototype.__class__=com.inq.events.HTTPStatusEvent,com.inq.events.HTTPStatusEvent.HTTP_STATUS="http_status"}(),function(){for(var t in com.inq.events.KeyboardEvent=function(t,e,i,n,o,a,s,l,r){com.inq.events.Event.call(this,t)},$hxClasses["com.inq.events.KeyboardEvent"]=com.inq.events.KeyboardEvent,com.inq.events.KeyboardEvent.__name__=["com","inq","events","KeyboardEvent"],com.inq.events.KeyboardEvent.__super__=com.inq.events.Event,com.inq.events.Event.prototype)com.inq.events.KeyboardEvent.prototype[t]=com.inq.events.Event.prototype[t];com.inq.events.KeyboardEvent.prototype.m_shiftKey=null,com.inq.events.KeyboardEvent.prototype.m_keyLocation=null,com.inq.events.KeyboardEvent.prototype.m_keyCode=null,com.inq.events.KeyboardEvent.prototype.m_ctrlKey=null,com.inq.events.KeyboardEvent.prototype.m_charCode=null,com.inq.events.KeyboardEvent.prototype.m_altKey=null,com.inq.events.KeyboardEvent.prototype.updateAfterEvent=function(){},com.inq.events.KeyboardEvent.prototype.shiftKey=null,com.inq.events.KeyboardEvent.prototype.keyLocation=null,com.inq.events.KeyboardEvent.prototype.keyCode=null,com.inq.events.KeyboardEvent.prototype.ctrlKey=null,com.inq.events.KeyboardEvent.prototype.charCode=null,com.inq.events.KeyboardEvent.prototype.altKey=null,com.inq.events.KeyboardEvent.prototype.__class__=com.inq.events.KeyboardEvent,com.inq.events.KeyboardEvent.KEY_DOWN="KeyDown",com.inq.events.KeyboardEvent.KEY_UP="KeyUp",com.inq.events.KeyboardEvent.KEY_PRESS="KeyPress"}(),function(){for(var t in com.inq.events.MouseEvent=function(t,e){com.inq.events.Event.call(this,t,e)},$hxClasses["com.inq.events.MouseEvent"]=com.inq.events.MouseEvent,com.inq.events.MouseEvent.__name__=["com","inq","events","MouseEvent"],com.inq.events.MouseEvent.__super__=com.inq.events.Event,com.inq.events.Event.prototype)com.inq.events.MouseEvent.prototype[t]=com.inq.events.Event.prototype[t];com.inq.events.MouseEvent.DOUBLE_CLICK=null,com.inq.events.MouseEvent.MOUSE_DOWN=null,com.inq.events.MouseEvent.MOUSE_MOVE=null,com.inq.events.MouseEvent.MOUSE_OUT=null,com.inq.events.MouseEvent.MOUSE_OVER=null,com.inq.events.MouseEvent.MOUSE_UP=null,com.inq.events.MouseEvent.MOUSE_WHEEL=null,com.inq.events.MouseEvent.ROLL_OUT=null,com.inq.events.MouseEvent.ROLL_OVER=null,com.inq.events.MouseEvent.prototype.m_shiftKey=null,com.inq.events.MouseEvent.prototype.m_relatedObject=null,com.inq.events.MouseEvent.prototype.m_localY=null,com.inq.events.MouseEvent.prototype.m_localX=null,com.inq.events.MouseEvent.prototype.m_delta=null,com.inq.events.MouseEvent.prototype.m_ctrlKey=null,com.inq.events.MouseEvent.prototype.m_buttonDown=null,com.inq.events.MouseEvent.prototype.m_altKey=null,com.inq.events.MouseEvent.prototype.stageY=null,com.inq.events.MouseEvent.prototype.stageX=null,com.inq.events.MouseEvent.prototype.shiftKey=null,com.inq.events.MouseEvent.prototype.relatedObject=null,com.inq.events.MouseEvent.prototype.localY=null,com.inq.events.MouseEvent.prototype.localX=null,com.inq.events.MouseEvent.prototype.delta=null,com.inq.events.MouseEvent.prototype.ctrlKey=null,com.inq.events.MouseEvent.prototype.buttonDown=null,com.inq.events.MouseEvent.prototype.altKey=null,com.inq.events.MouseEvent.prototype.__class__=com.inq.events.MouseEvent,com.inq.events.MouseEvent.CLICK="click"}(),function(){for(var t in com.inq.events.ProgressEvent=function(t,e,i,n,o){com.inq.events.Event.call(this,t)},$hxClasses["com.inq.events.ProgressEvent"]=com.inq.events.ProgressEvent,com.inq.events.ProgressEvent.__name__=["com","inq","events","ProgressEvent"],com.inq.events.ProgressEvent.__super__=com.inq.events.Event,com.inq.events.Event.prototype)com.inq.events.ProgressEvent.prototype[t]=com.inq.events.Event.prototype[t];com.inq.events.ProgressEvent.prototype.m_bytesTotal=null,com.inq.events.ProgressEvent.prototype.m_bytesLoaded=null,com.inq.events.ProgressEvent.prototype.bytesTotal=null,com.inq.events.ProgressEvent.prototype.bytesLoaded=null,com.inq.events.ProgressEvent.prototype.__class__=com.inq.events.ProgressEvent,com.inq.events.ProgressEvent.PROGRESS="progress",com.inq.events.ProgressEvent.SOCKET_DATA="socketData"}(),function(){for(var t in com.inq.events.SecurityErrorEvent=function(t,e,i,n){com.inq.events.ErrorEvent.call(this,t)},$hxClasses["com.inq.events.SecurityErrorEvent"]=com.inq.events.SecurityErrorEvent,com.inq.events.SecurityErrorEvent.__name__=["com","inq","events","SecurityErrorEvent"],com.inq.events.SecurityErrorEvent.__super__=com.inq.events.ErrorEvent,com.inq.events.ErrorEvent.prototype)com.inq.events.SecurityErrorEvent.prototype[t]=com.inq.events.ErrorEvent.prototype[t];com.inq.events.SecurityErrorEvent.prototype.__class__=com.inq.events.SecurityErrorEvent,com.inq.events.SecurityErrorEvent.SECURITY_ERROR="securityError"}(),com.inq.flash.client.control.PersistenceManager=function(){this.getCookieInfo()},$hxClasses["com.inq.flash.client.control.PersistenceManager"]=com.inq.flash.client.control.PersistenceManager,com.inq.flash.client.control.PersistenceManager.__name__=["com","inq","flash","client","control","PersistenceManager"],com.inq.flash.client.control.PersistenceManager.Close=function(){com.inq.flash.client.control.PersistenceManager.__inst=null},com.inq.flash.client.control.PersistenceManager.reopen=function(){com.inq.flash.client.control.PersistenceManager.__inst=new com.inq.flash.client.control.PersistenceManager},com.inq.flash.client.control.PersistenceManager.ClearValues=function(){null!=com.inq.flash.client.control.PersistenceManager.__inst&&com.inq.flash.client.control.PersistenceManager.__inst.clearValues()},com.inq.flash.client.control.PersistenceManager.GetValue=function(t,e){return null!=com.inq.flash.client.control.PersistenceManager.__inst?com.inq.flash.client.control.PersistenceManager.__inst.getValue(t,e):e},com.inq.flash.client.control.PersistenceManager.SetValue=function(t,e,i,n){null==n&&(n=!0),null==i&&(i=!1),null!=com.inq.flash.client.control.PersistenceManager.__inst&&com.inq.flash.client.control.PersistenceManager.__inst.setValue(t,e,i,n)},com.inq.flash.client.control.PersistenceManager.DeleteValue=function(t,e){null==e&&(e=!0),null!=com.inq.flash.client.control.PersistenceManager.__inst&&com.inq.flash.client.control.PersistenceManager.__inst.deleteValue(t,e)},com.inq.flash.client.control.PersistenceManager.SetValues=function(t){null!=com.inq.flash.client.control.PersistenceManager.__inst&&com.inq.flash.client.control.PersistenceManager.__inst.setValues(t)},com.inq.flash.client.control.PersistenceManager.createInstance=function(){return new com.inq.flash.client.control.PersistenceManager},com.inq.flash.client.control.PersistenceManager.prototype.setCookieInfo=function(){com.inq.flash.client.control.FlashPeer.setV3Data(this.dict)},com.inq.flash.client.control.PersistenceManager.prototype.getCookieInfo=function(){this.dict=com.inq.flash.client.control.FlashPeer.getV3Data()},com.inq.flash.client.control.PersistenceManager.prototype.setValue=function(t,e,i,n){null==n&&(n=!0),null==i&&(i=!1),(i||this.dict[t]!=e)&&(this.dict[t]=e,n&&this.setCookieInfo())},com.inq.flash.client.control.PersistenceManager.prototype.deleteValue=function(t,e){null==e&&(e=!0),this.dict[t]&&(delete this.dict[t],e&&this.setCookieInfo())},com.inq.flash.client.control.PersistenceManager.prototype.setValues=function(t){for(var e=com.inq.utils.Util.fields(t),i=0;i<e.length;i++){var n=""+e[i];this.dict[n]=t[n]}com.inq.flash.client.control.FlashPeer.setV3Data(this.dict)},com.inq.flash.client.control.PersistenceManager.prototype.getValue=function(t,e){var i=this.dict[t];return null==i&&(i=e),haxe.Log.trace("value ["+t+"]:"+Std.string(i),{fileName:"PersistenceManager.hx",lineNumber:56,className:"com.inq.flash.client.control.PersistenceManager",methodName:"getValue"}),i},com.inq.flash.client.control.PersistenceManager.prototype.clearValues=function(){this.dict={},this.setCookieInfo()},com.inq.flash.client.control.PersistenceManager.prototype.dict=null,com.inq.flash.client.control.PersistenceManager.prototype.__class__=com.inq.flash.client.control.PersistenceManager,com.inq.flash.client.control.PersistenceManager.__inst=com.inq.flash.client.control.PersistenceManager.createInstance(),y(1703),y(5306),com.inq.flash.client.control.ApplicationController=function(){null==com.inq.flash.client.control.ApplicationController.applicationController&&(com.inq.flash.client.control.ApplicationController.applicationController=this),this.chatRouterListen=!1,this.firstMessageSent=this.persistentReconnect=!1,this.openerMessageQueue=new Array,this.authorizedOnce=!1,this.chatAccepted=!1,this.bSendClickStreamData=!1,this.messageQueue=new Array,this.flagChatInQueue=!1,this._updateUsername=!1,haxe.Log.trace("create FlashMessagingFramework",{fileName:"ApplicationController.hx",lineNumber:107,className:"com.inq.flash.client.control.ApplicationController",methodName:"new"}),this.framework=new com.inq.flash.messagingframework.FlashMessagingFramework(this),haxe.Log.trace("created FlashMessagingFramework",{fileName:"ApplicationController.hx",lineNumber:109,className:"com.inq.flash.client.control.ApplicationController",methodName:"new"}),window.com=com,window.com.inq=com.inq,window.com.inq.getOpenerMessageQueue=$bind(this,this.getOpenerMessageQueue),window.com.inq.getMessageQueue=$bind(this,this.getMessageQueue),this.msgcntAtEntry=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0),null==this.chat&&(this.chat=new com.inq.flash.client.data.Chat)},$hxClasses.registerClass(com.inq.flash.client.control.ApplicationController,"com.inq.flash.client.control.ApplicationController"),com.inq.flash.client.control.ApplicationController.isSkipRestoreMsgOnce=!1,com.inq.flash.client.control.ApplicationController.prototype.registerMessageHandlers=function(){this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatAutomatonDataMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ClientAuthDataMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ErrorHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.NeedWaitHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.TypingActivityHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.CommandMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.PersistentActiveHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatWebCallMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.ChatVideoPlayerStatusMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler),this.registerHandler(new com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler),this.skinControl=com.inq.flash.client.chatskins.SkinControl},com.inq.flash.client.control.ApplicationController.prototype.getChat=function(){return this.chat},com.inq.flash.client.control.ApplicationController.prototype.sendDTEvent=function(t,e){var i=new com.inq.flash.client.data.ChatAutomatonResponseMessage(this.chat,t,e),n=null;e.selectedLinkName&&(n=e.selectedLinkName),this.skinControl.modifyDTFields(e.divId,n),this.sendMessageOrQueue(i),this.skinControl.stopOpenerScript(),com.inq.flash.client.control.Incrementality.onInteracted(),com.inq.flash.client.control.Incrementality.onCustomerMsg()},com.inq.flash.client.control.ApplicationController.prototype.sendInputState=function(t,e,i,n){n&&com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setAttribute(t,e,i);var o=new com.inq.flash.client.data.ChatAutomatonElementSetMessage(this.chat,t,e,i);this.sendMessageOrQueue(o),com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.incrementOutstandingCount()},com.inq.flash.client.control.ApplicationController.prototype.sendCoBrowseMessage=function(t,e,i,n){var o=new com.inq.flash.client.data.ChatCommunicationCobrowseMessage(this.chat,t);o.addProperty(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT,e),o.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),i&&e==com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT&&o.addProperty(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_HIGHLIGHT_ENABLED,"1"),!n||e!=com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT&&e!=com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT_SHARE||o.addProperty(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_MINIMIZE_RESTORE_ENABLED,"1"),this.sendText(o)},com.inq.flash.client.control.ApplicationController.prototype.sendVideoMessage=function(t,e){var i=new com.inq.flash.client.data.ChatActivityMessage(this.chat,e);i.addProperty(com.inq.flash.client.data.MessageFields.KEY_DISPLAY_TEXT,t),i.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),this.sendText(i)},com.inq.flash.client.control.ApplicationController.prototype.sendFileUploadMessage=function(t,e,i){var n=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0),o=new com.inq.flash.client.data.ChatCommunicationFileUploadMessage(this.chat,t);o.addProperty(com.inq.flash.client.data.MessageFields.KEY_FILE_DELETE_SETTING,e),o.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),n>0?this.sendMessageOrQueue(o):!i||this.isChatInProgress()||this.framework.isConnected()||this.engageAndSendMessage(o,i,"#EmptyAnswer")},com.inq.flash.client.control.ApplicationController.prototype.sendVideoStatusMessage=function(t,e,i){var n=new com.inq.flash.client.data.ChatVideoPlayerStatusMessage(this.chat,t);n.addProperty(com.inq.flash.client.data.MessageFields.KEY_VIDEO_URL,e),n.addProperty(com.inq.flash.client.data.MessageFields.KEY_VIDEO_ACTION,i),n.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),this.sendMessageOrQueue(n)},com.inq.flash.client.control.ApplicationController.prototype.sendWebCallMessage=function(t,e){var i=new com.inq.flash.client.data.ChatCommunicationWebCallMessage(this.chat,t);i.addProperty(com.inq.flash.client.data.MessageFields.KEY_WEBCALL_ACTION,e),i.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),this.sendMessageOrQueue(i)},com.inq.flash.client.control.ApplicationController.prototype.sendWebCallEndMessage=function(t,e,i){var n=com.inq.flash.client.control.WebRTCMgr,o=com.inq.flash.client.data.MessageFields,a=new com.inq.flash.client.data.ChatCommunicationWebCallMessage(this.chat,t);a.addProperty(o.KEY_WEBCALL_ACTION,i?n.WEBCALL_LEFT:n.WEBCALL_ENDED),a.addProperty(o.KEY_CALL_TERMINATED,e?"1":"0"),a.addProperty(o.KEY_LINE_NR,"-1"),this.sendMessageOrQueue(a)},com.inq.flash.client.control.ApplicationController.prototype.sendCoBrowseMessageQuietly=function(t,e,i,n,o){var a=new com.inq.flash.client.data.ChatCommunicationCobrowseMessage(this.chat,t);a.addProperty(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT,e),a.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),i!==com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT_SUCCESS&&i!==com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT_FAILURE||a.addProperty(com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT,i),a.addProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_CUSTOMER_QUIET,"true"),a.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_ADVANCED_AGENT_ID,o),n&&e==com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT&&a.addProperty(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_HIGHLIGHT_ENABLED,"1"),this.sendText(a)},com.inq.flash.client.control.ApplicationController.prototype.updateFormFields=function(t,e,i){this.skinControl.updateFormFields(t,e,i)},com.inq.flash.client.control.ApplicationController.prototype.submitForm=function(t,e,i,n){var o=new com.inq.flash.client.data.ChatCommunicationMessage(this.chat,n);o.addProperty(com.inq.flash.client.data.MessageFields.FORM_DATA,i),o.addProperty(com.inq.flash.client.data.MessageFields.FORM_NAME,t),o.addProperty(com.inq.flash.client.data.MessageFields.FORM_ID,e),this.sendText(o)},com.inq.flash.client.control.ApplicationController.prototype.isFirstMessageSent=function(){return this.firstMessageSent},com.inq.flash.client.control.ApplicationController.prototype.customerClosesPopup=function(){this.waitingToExitChat=!0;try{var t=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);if(this.framework.isConnected()||this.wasConnected||0!=t)return!(!this.authorizedOnce&&0==this.msgcntAtEntry&&(this.shutdownQuietly(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CUSTOMER_CLOSED),1))}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("customerClosesPopup: Warning:"+Std.string(t),{fileName:"ApplicationController.hx",lineNumber:910,className:"com.inq.flash.client.control.ApplicationController",methodName:"customerClosesPopup"})}return!1},com.inq.flash.client.control.ApplicationController.prototype.sendChatExitMsg=function(t,e){try{if(null!=this.chat&&this.framework.isConnected()){var i=this.chat.getChatID(),n=new com.inq.flash.client.data.ChatExitMessage(i,e);this.sendMessage(n,(function(){com.inq.flash.client.control.FlashPeer.fireNativeSurveyLaunchEvent(),"function"==typeof t&&t()}),(function(){com.inq.flash.client.control.FlashPeer.logError("Message CHAT.EXIT was not sent: Request failed.",null,i),"function"==typeof t&&t()}))}else{var o=[];null===this.chat&&o.push("ApplicationController.chat is null"),this.framework.isConnected()||o.push("ApplicationController.framework.isConnected() === false"),com.inq.flash.client.control.FlashPeer.logError("Message CHAT.EXIT was not sent: "+o.join(", ")),"function"==typeof t&&t()}}catch(t){var a="Message CHAT.EXIT was not sent"+(t?": "+t.message:""),s=t||null;com.inq.flash.client.control.FlashPeer.logError(a,s)}},com.inq.flash.client.control.ApplicationController.prototype.checkForChatExit=function(){this.waitingToExitChat&&this.skinControl.sendExitMsg(null,"checkForChatExit")},com.inq.flash.client.control.ApplicationController.prototype.setSocketIP=function(t){haxe.Log.trace("setSocketIP:207 crAddress="+t,{fileName:"ApplicationController.hx",lineNumber:838,className:"com.inq.flash.client.control.ApplicationController",methodName:"setSocketIP"}),haxe.Log.trace("setSocketIP:213 crAddress="+t,{fileName:"ApplicationController.hx",lineNumber:844,className:"com.inq.flash.client.control.ApplicationController",methodName:"setSocketIP"}),this.persistentFrameReconnect(),haxe.Log.trace("setSocketIP:215 crAddress="+t,{fileName:"ApplicationController.hx",lineNumber:846,className:"com.inq.flash.client.control.ApplicationController",methodName:"setSocketIP"})},com.inq.flash.client.control.ApplicationController.prototype.setQueueMessages=function(){this.authorizedOnce=!0,this.attemptingConnection=!1,this.queueMessages&&(this.queueMessages=!1,this.sendQueuedMessages())},com.inq.flash.client.control.ApplicationController.prototype.sendQueuedMessages=function(){for(var t,e=0;e<this.messageQueue.length;e++)t=this.addTimeDeltaToMessage(this.messageQueue[e]),this.isChatContinued()&&t.getMessageType()===com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER||this.sendMessage(t);this.messageQueue.length=0},com.inq.flash.client.control.ApplicationController.prototype.sendFirstQueuedMessage=function(t){if(this.queueMessages&&!(this.messageQueue.length<1))for(var e=0;e<this.messageQueue.length;e++){var i=this.messageQueue[e].msg;t&&i.getMessageType()==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION&&(i.addProperty(com.inq.flash.client.data.MessageFields.KEY_TIME_LOG,t),Application.application.isVirtualAgent()&&this.addPageDataToMessage(i))}},com.inq.flash.client.control.ApplicationController.prototype.playQueueMessages=function(){for(var t=0;t<this.messageQueue.length;t++){var e=this.addTimeDeltaToMessage(this.messageQueue[t]);this.framework.sendMessage(e)}},com.inq.flash.client.control.ApplicationController.prototype.shouldBeDisconnected=function(){return this.intentionalDisconnect},com.inq.flash.client.control.ApplicationController.prototype.shutdownQuietly=function(t){this.intentionalDisconnect=!0,this.framework.disconnect(t)},com.inq.flash.client.control.ApplicationController.prototype.shutdown=function(t){this.shutdownQuietly(t),1!=this.waitingToExitChat&&this.skinControl.agentClosesChat()},com.inq.flash.client.control.ApplicationController.prototype.sendAutomatonDataMessage=function(t){var e=new Date,i=com.inq.flash.client.chatskins.SkinControl.addAutomatonDataToChatWindow(t,-1,null,"",e),n=new com.inq.flash.client.data.ChatAutomatonDataMessage(this.chat,t);n.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,""+i);var o=Date.now();n.addProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP,o),this.sendMessageOrQueue(n)},com.inq.flash.client.control.ApplicationController.prototype.sendChatCommunicationMessage=function(t,e){t.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,""+e);var i=Date.now();if(t.addProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP,i),this.attemptingConnection||this.intentionalDisconnect||this.framework.isConnected()||this.wasConnected)this.sendText(t);else{this.sendButtonClickedTime=Math.round((new Date).getTime());try{haxe.Log.trace("attemptingConnection",{fileName:"ApplicationController.hx",lineNumber:734,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatCommunicationMessage"}),this.attemptingConnection=!0,haxe.Log.trace("queueMessages",{fileName:"ApplicationController.hx",lineNumber:736,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatCommunicationMessage"}),this.queueMessages=!0,haxe.Log.trace("do a send text",{fileName:"ApplicationController.hx",lineNumber:738,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatCommunicationMessage"}),this.sendText(t),haxe.Log.trace("framework.connect()",{fileName:"ApplicationController.hx",lineNumber:740,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatCommunicationMessage"}),this.framework.connect()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"ApplicationController.hx",lineNumber:743,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatCommunicationMessage"})}}},com.inq.flash.client.control.ApplicationController.prototype.prepareEngageChat=function(t){if(!this.attemptingConnection&&!this.intentionalDisconnect&&(this.chatRouterListen||!this.framework.isConnected()&&!this.wasConnected)){this.setEngageParameters(t);var e=new com.inq.flash.client.data.ChatEngageMessage(this.chat,t.agentOutcome,t.clientOutcome,this.getAgentAlias());t.phone&&this.addInitialData(e,"CallerPhone",t.phone,"CallerPhone");var i=-1;return t.clientOutcome&&(i=this.addClientOutcomeToChatWindow(t.clientOutcome)),e.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,i),this.queueMessages=!0,this.sendText(e),!0}return!1},com.inq.flash.client.control.ApplicationController.prototype.engageChat=function(t){if(!this.attemptingConnection&&!this.intentionalDisconnect&&(this.chatRouterListen||!this.framework.isConnected()&&!this.wasConnected)){this.sendButtonClickedTime=Math.round((new Date).getTime()),this.setEngageParameters(t);var e=new com.inq.flash.client.data.ChatEngageMessage(this.chat,t.agentOutcome,t.clientOutcome,this.getAgentAlias());t.phone&&this.addInitialData(e,"CallerPhone",t.phone,"CallerPhone");var i=-1;return t.clientOutcome&&(i=this.addClientOutcomeToChatWindow(t.clientOutcome)),this.sendChatCommunicationMessage(e,i),!0}return!1},com.inq.flash.client.control.ApplicationController.prototype.setEngageParameters=function(t){t.agentAttrs&&this.chat.setAgentAttributes(t.agentAttrs),t.businessUnitID&&this.chat.setBusinessUnitID(t.businessUnitID),t.agentGroupId&&this.chat.setAgentGroupID(t.agentGroupId),t.publicUserId&&this.chat.setPublicUserId(t.publicUserId),t.scriptTreeId&&this.chat.setScriptID(t.scriptTreeId),t.automatonId&&(this.chat.setAutomatonId(t.automatonId),t.automatonFields&&this.chat.setAutomatonFields(t.automatonFields)),t.agentName||!0!==t.overrideAgentAlias?"boolean"==typeof t.overrideAgentAlias&&com.inq.flash.client.control.FlashVars.setValue("overrideAgentAlias",""+t.overrideAgentAlias):haxe.Log.trace("ERROR: setEngageParameters: agentName is empty. Cannot override agent alias"),t.agentName&&(com.inq.flash.client.control.FlashVars.setAgentName(t.agentName),this.chat.setAgentName(t.agentName)),t.queueThreshold&&this.chat.setQueueThreshold(t.queueThreshold),this.chat.setRoutingAllocSpecs(t.routingAllocSpecs),this.persistEngageChatParameters(t,["businessUnitID","agentGroupId"])},com.inq.flash.client.control.ApplicationController.prototype.persistEngageChatParameters=function(t,e){var i={},n={businessUnitID:BUSINESS_UNIT_ID,agentGroupId:AGENT_GROUP_ID},o=!1;e.forEach((function(e){t[e]&&(i[n[e]||e]=t[e],o=!0)})),o&&com.inq.flash.client.control.PersistenceManager.SetValue(ENGAGE_CHAT_PARAMS,i)},com.inq.flash.client.control.ApplicationController.prototype.addClientOutcomeToChatWindow=function(t){var e=this.skinControl.checkForSpecialExpression(t);return this.skinControl.AddOpenerToChatWindow(StringTools.htmlUnescape(this.getAgentAlias()),e.text,com.inq.flash.client.chatskins.ChatTextArea.AGENT,-1,e.expressionList)},com.inq.flash.client.control.ApplicationController.prototype.getAgentAlias=function(){var t=com.inq.flash.client.control.FlashVars.getFlashVars().agentName;return com.inq.utils.Util.isDefaultAgentAlias()&&(t=com.inq.utils.Util.getConfig("defaultAgentAlias","&nbsp;")),t},com.inq.flash.client.control.ApplicationController.prototype.sendButtonClicked=function(t){if(com.inq.utils.StringUtil.isEmptyString(t))haxe.Log.trace("sendButtonClicked: no text",{fileName:"ApplicationController.js",className:"com.inq.flash.client.control.ApplicationController",methodName:"sendButtonClicked"});else{haxe.Log.trace("sendButtonClicked enter\nCheck connections: \n\tattemptingConnection="+Std.string(this.attemptingConnection)+"\n\tintentionalDisconnect="+Std.string(this.intentionalDisconnect)+"\n",{fileName:"ApplicationController.js",className:"com.inq.flash.client.control.ApplicationController",methodName:"sendButtonClicked"}),com.inq.flash.client.chatskins.SkinControl.customerTypedText="";var e=new Date,i=this.appendSentText(t,-1,e),n=new com.inq.flash.client.data.ChatCommunicationMessage(this.chat,t,this.isUpdateUsername()),o="";t.toLowerCase()===com.inq.flash.client.data.MessageFields.KEY_CHAT_INFO?o="Customer requested Chat Info":t.toLowerCase().startsWith(com.inq.flash.client.data.MessageFields.KEY_SWITCH_DEBUG)&&(o="Customer enabled debug mode"),o&&n.addProperty(com.inq.flash.client.data.MessageFields.KEY_DISPLAY_TEXT,o),Application.application.isVirtualAgent()&&this.addPageDataToMessage(n),this.sendChatCommunicationMessage(n,i),this.isUpdateUsername()&&this.cancelUpdateUsername()}},com.inq.flash.client.control.ApplicationController.prototype.sendVALinkClicked=function(t){var e,i=t.target||t.srcElement;if(e="A"==i.tagName?i:function(t,e){for(;t.parentNode&&t!=e;)if("A"===(t=t.parentNode).tagName)return t;return null}(i,t.currentTarget)){e.getAttribute("data-vtz-jump");var n,o=e.getAttribute("data-vtz-link-type"),a=e.getAttribute("data-vtz-browse"),s=!1,l=!0,r=t.target.href;if("Web"==o&&a)0===r.indexOf("http")&&(this.openerMessageQueue.length>0?(t.preventDefault(),this.webOpenerLinkHref=r):com.inq.flash.client.control.ApplicationController.isWebExternalVALink=!0),s=!0,n=(n="##Url#"+a).substring(0,100);else if("Dialog"==o){n=e.text;var c=this.appendSentText(n,-1);t.preventDefault?t.preventDefault():t.returnValue=!1}else{if("touchend"!=t.type||!r)return;t.preventDefault(),window.setTimeout((function(){window.parent.location.href=r}),1e3),l=!1}for(var h=new com.inq.flash.client.data.ChatCommunicationMessage(this.chat,n),m=e.attributes,u=0;u<m.length;u++){var p=m[u].name;p.startsWith("data-vtz")&&h.addPropertyIfNotNull(p.replace("data-",""),m[u].value)}s&&(h.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"0"),h.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA_HIDDEN_FOR_CUSTOMER,"true")),this.addPageDataToMessage(h),this.sendChatCommunicationMessage(h,c),!com.inq.flash.client.chatskins.SkinControl.isTxtInputAutofocusBlocked()&&l&&Application.application.setTextFieldfocus()}},com.inq.flash.client.control.ApplicationController.prototype.launchPostChatSurvey=function(t){var e=t.target;e&&com.inq.flash.client.control.FlashPeer.launchNativePostChatSurvey(e.getAttribute(com.inq.flash.client.chatskins.SkinControl.DATA_SURVEY_URL)),t.preventDefault()},com.inq.flash.client.control.ApplicationController.prototype.addPageDataToMessage=function(t){t.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CLIENT_PAGE_LOCATION,com.inq.utils.Util.getTopWindowURL()),t.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_PAGE_MARKER_ID,com.inq.flash.client.control.FlashPeer.getPageMarker())},com.inq.flash.client.control.ApplicationController.prototype.agentQuickResponse=function(t){var e=t.target,i=e.getAttribute("data-nuance-quick-answer"),n="_blank"==e.getAttribute("target"),o=e.href;n||t.preventDefault(),i||o&&o.length&&(i="##URL#"+o);var a=this.appendSentText(i,-1),s=new com.inq.flash.client.data.ChatCommunicationMessage(this.chat,i);this.sendChatCommunicationMessage(s,a)},com.inq.flash.client.control.ApplicationController.prototype.callButtonClicked=function(t,e,i){this.callStreamData=e;var n=new com.inq.flash.client.data.CallCommunicationMessage(this.chat,t);n.addProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME,i),n.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,"-1"),n.addProperty("fromV3",i),com.inq.flash.client.control.PersistenceManager.SetValue(CLIENT_NAME_PERSIST,i),this.queueMessages=!0,this.sendMessageOrQueue(n),this.chatRouterListen=!1},com.inq.flash.client.control.ApplicationController.prototype.isConnected=function(){return null!=this.framework&&this.framework.isConnected()},com.inq.flash.client.control.ApplicationController.prototype.isSendMessageFail=function(){return!!this.framework&&this.framework.isSendMessageFail()},com.inq.flash.client.control.ApplicationController.prototype.getResponseTimestamp=function(){return this.framework?this.framework._getResponseTimestamp():0},com.inq.flash.client.control.ApplicationController.prototype.localChatRouterListen=function(){try{if(this.framework.isConnected())return;this.attemptingConnection=!0,this.queueMessages=!0;var t=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);this.framework.setParam("count",t),this.framework.connect(),this.chatRouterListen=!0}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("Error: "+Std.string(t),{fileName:"ApplicationController.hx",lineNumber:635,className:"com.inq.flash.client.control.ApplicationController",methodName:"localChatRouterListen",customParams:["error"]})}},com.inq.flash.client.control.ApplicationController.prototype.persistentFrameReconnect=function(){try{if(!this.attemptingConnection){this.attemptingConnection=!0,this.queueMessages=!0;var t=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);this.framework.setParam("count",t),this.persistentReconnect=!0,this.chatRouterListen=!1,this.framework.connect()}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("Error: "+Std.string(t),{fileName:"ApplicationController.hx",lineNumber:614,className:"com.inq.flash.client.control.ApplicationController",methodName:"persistentFrameReconnect"})}},com.inq.flash.client.control.ApplicationController.prototype.connectionLost=function(){haxe.Log.trace("connectionLost();",{fileName:"ApplicationController.hx",lineNumber:591,className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionLost"}),this.queueMessages=!0},com.inq.flash.client.control.ApplicationController.prototype.setAgentConfig=function(t,e,i,n,o){null==i&&(i=!1),haxe.Log.trace("ApplicationController.setAgentConfig('"+t+"')",{fileName:"ApplicationController.hx",lineNumber:585,className:"com.inq.flash.client.control.ApplicationController",methodName:"setAgentConfig"}),this.agentID=t,this.setFlagChatInQueue(!1),this.skinControl.setTypingActivity(!1),this.skinControl.setAgentConfig(t,e,i,n,o)},com.inq.flash.client.control.ApplicationController.prototype.urlStringToObject=function(t){for(var e=new com.inq.utils.Dictionary,i=StringTools.urlDecode(t).split("&"),n=0;n<i.length;n++){var o=i[n].split("=");if(2==o.length){var a=o[0],s=o[1];e[a]=s}}return e},com.inq.flash.client.control.ApplicationController.prototype.sendMessage=function(t,e,i){this.addClickStreamData(t),this.framework.sendMessage(t,e,i),com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION==t.getMessageType()&&Application.application.notificationController&&Application.application.notificationController.hideNotification()},com.inq.flash.client.control.ApplicationController.prototype.initializeAutomatonMode=function(){return!(!this.isAutomatonMode()||this.framework.isConnected()||this.skinControl.isContinued()||(haxe.Log.trace("initializing Inline DT automaton",{fileName:"ApplicationController.hx",lineNumber:553,className:"com.inq.flash.client.control.ApplicationController",methodName:"initializeAutomatonMode"}),this.sendButtonClickedTime=Math.round((new Date).getTime()),this.queueMessages=!0,this.framework.connect(),this.skinControl.StopTimer(),0))},com.inq.flash.client.control.ApplicationController.prototype.isAutomatonMode=function(){return this.chat.getAutomatonId()>0&&!this.chat.isSendChatRequestOnDemand()&&!com.inq.flash.client.control.FlashPeer.getVAList().includes(this.chat.getAutomatonId())},com.inq.flash.client.control.ApplicationController.prototype.addInitialData=function(t,e,i,n){var o=com.inq.flash.client.data.MessageFields.KEY_INITIAL_CLICKSTREAM_PREFIX+t.nextInitialDataIndex();t.addProperty(o+".id",e),t.addProperty(o+".data",i),null!=n&&""!=n&&"undefined"!=n&&t.addProperty(o+".label",n)},com.inq.flash.client.control.ApplicationController.prototype.addClickStreamData=function(t){if(0==com.inq.flash.client.control.PersistenceManager.GetValue(CLICK_STREAM_DATA_SENT_KEY,0)&&(this.bSendClickStreamData=!0),this.bSendClickStreamData&&(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION==t.getMessageType()||com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER==t.getMessageType()||com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_QUEUE==t.getMessageType()||com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_RESPONSE==t.getMessageType()||com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OUTCOME==t.getMessageType())){var e=com.inq.flash.client.control.FlashPeer.isPersistentWindow(),i=this.skinControl.getInitialClickstreamData();if(e||this.skinControl.isClick2WebCall()||com.inq.flash.client.control.WebRTCMgr.isEngaged)try{i+=this.skinControl.getOpener().Application.application.applicationController.callStreamData}catch(t){haxe.Log.trace("ApplicationController.addClickstreamData Error"+Std.string(t),{fileName:"ApplicationController.js",className:"com.inq.flash.client.control.ApplicationController",methodName:"addClickStreamData"})}haxe.Log.trace("ApplicationController.addClickstreamData: clickStreamData = "+i,{fileName:"ApplicationController.js",className:"com.inq.flash.client.control.ApplicationController",methodName:"addClickStreamData"}),this.bSendClickStreamData=!1;var n=new com.inq.utils.Dictionary;if(null!=i){for(var o=i.split("^^"),a=0;a<o.length;a++){var s=o[a];if(""!==s){var l=s.split("="),r=l.shift(),c=l.join("=");n[r]=c}}for(var h=0;h<o.length;h++){var m=o[h];if(""!=m){haxe.Log.trace("field is "+m,{fileName:"ApplicationController.hx",lineNumber:511,className:"com.inq.flash.client.control.ApplicationController",methodName:"addClickStreamData"});var u=m.split("=").shift();if(null!=u&&"_"!=u.charAt(0)){var p=n[u],d=n["_"+u];this.addInitialData(t,u,p,d)}}}com.inq.flash.client.control.PersistenceManager.SetValue(CLICK_STREAM_DATA_SENT_KEY,1)}}},com.inq.flash.client.control.ApplicationController.prototype.connectionEstablished=function(){try{com.inq.flash.client.control.FlashPeer.setCABeacon(this.chat.BEACON_ACTIVATE);var t=this.framework.getConnectionType();com.inq.flash.client.chatskins.SkinControl.connectionType=t,Application.application.getTextInput("txtInput").setEnabled(!0),this.wasConnected=!0,com.inq.flash.client.chatskins.SkinControl.isContinued()&&0!=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)?this.isAgentAssigned()&&this.setConnectionAccepted(!0):(haxe.Log.trace("ApplicationController.connectionEstablished, sending a chat request message",{fileName:"ApplicationController.hx",lineNumber:407,className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionEstablished"}),this.sendChatRequestMessage(this.chat.isAsyncReconnect())),Application.application.setActiveWindowId(),haxe.Log.trace("framework.sendMessage(chat.request) sent",{fileName:"ApplicationController.hx",lineNumber:432,className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionEstablished"}),this.persistentReconnect&&(this.playQueueMessages(),this.queueMessages=!1)}catch(t){haxe.Log.trace("Exception: "+Std.string(t),{fileName:"ApplicationController.hx",lineNumber:438,className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionEstablished"})}haxe.Log.trace("exit connectionEstablished",{fileName:"ApplicationController.hx",lineNumber:440,className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionEstablished"})},com.inq.flash.client.control.ApplicationController.prototype.sendChatRequestMessage=function(t){var e=com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat();e&&(this.notifiedAsPersistent?e=!1:this.notifiedAsPersistent=!0);var i=null;try{haxe.Log.trace("ApplicationController: creating msg. chat="+this.chat.toString(),{fileName:"ApplicationController.hx",lineNumber:410,className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionEstablished"}),haxe.Log.trace("ApplicationController: creating msg. isPersistent="+Std.string(e)+", agentID="+this.agentID,{fileName:"ApplicationController.hx",className:"com.inq.flash.client.control.ApplicationController",methodName:"connectionEstablished"});var n=null!=this.sendButtonClickedTime?Math.round((new Date).getTime())-this.sendButtonClickedTime:0;i=new com.inq.flash.client.data.ChatRequestMessage(this.chat,e,this.agentID,n,this,t),com.inq.flash.client.control.PersistenceManager.SetValue(CHAT_ENGAGED,!0,!1,!0),com.inq.flash.client.chatskins.SkinControl.isClick2call()&&(i.addProperty(com.inq.flash.client.data.MessageFields.KEY_CALL_ENABLED,"true"),i.addProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME,com.inq.flash.client.control.PersistenceManager.GetValue(CLIENT_NAME_PERSIST,com.inq.flash.client.chatskins.SkinControl.getCallerNameString()))),haxe.Log.trace("ApplicationController: msg sent. msg="+i.toString(),{fileName:"ApplicationController.hx",lineNumber:1337,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatRequestMessage"})}catch(t){haxe.Log.trace("Exception: "+Std.string(t),{fileName:"ApplicationController.hx",lineNumber:1339,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatRequestMessage",customParams:["error"]})}haxe.Log.trace("framework.sendMessage(message):"+i.toString(),{fileName:"ApplicationController.hx",lineNumber:1342,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendChatRequestMessage"}),t&&!this.getChat().isAsyncReconnect()?(this.queueMessages=!0,this.sendMessage(i,this.framework.sendReconnectGetMessage.bind(this.framework))):this.sendMessage(i,this.restoreTranscript.bind(this)),t||this.updateDataInStorage()},com.inq.flash.client.control.ApplicationController.prototype.updateDataInStorage=function(t){var e,i={};e="number"==typeof t?t:com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0),i[MESSAGE_COUNT]=e,i[LAST_TOUCHED_TIME]=Date.now(),com.inq.flash.client.control.PersistenceManager.SetValues(i)},com.inq.flash.client.control.ApplicationController.prototype.restoreTranscript=function(){this.framework.getMessages(),this.skinControl.clearOpenersArray(),this.skinControl.clearTranscriptArray()},com.inq.flash.client.control.ApplicationController.prototype.sendCommunicationMessagesFromQueue=function(){this.framework.sendCommunicationMessagesFromQueue()},com.inq.flash.client.control.ApplicationController.prototype.isConnectionAccepted=function(){return this.chatAccepted},com.inq.flash.client.control.ApplicationController.prototype.setConnectionAccepted=function(t){this.chatAccepted=t},com.inq.flash.client.control.ApplicationController.prototype.acknowledgeChatPersistent=function(t){var e=com.inq.flash.client.control.FlashPeer.registerPersistentWindow();e||com.inq.flash.client.chatskins.SkinControl.noUnload();var i=window.location.protocol+"//"+window.location.hostname;this.framework.acknowledgePersistentActive(this.chat.getChatID(),i,t,!e)},com.inq.flash.client.control.ApplicationController.prototype.acknowledgeChatActive=function(){this.framework.acknowledgeChatActive(this.chat.getChatID())},com.inq.flash.client.control.ApplicationController.prototype.handleChatLost=function(){this.framework.handleChatLost()},com.inq.flash.client.control.ApplicationController.prototype.enable=function(){this.framework.enable()},com.inq.flash.client.control.ApplicationController.prototype.disable=function(){this.framework.disable();var t=com.inq.flash.client.control.FlashPeer.getBrowserMajorVer(!0);(!com.inq.flash.client.control.FlashPeer.isPersistentChat()||com.inq.flash.client.control.FlashPeer.isPersistentWindow()||!com.inq.utils.Util.isIE||t>7)&&com.inq.flash.client.control.FlashPeer.setCABeacon(this.chat.BEACON_DEACTIVATE)},com.inq.flash.client.control.ApplicationController.prototype.sendMessageOrQueue=function(t,e){if(this.queueMessages){var i=null==e?(new Date).getTime():e;this.messageQueue.push({clientTime:i,msg:t})}else this.sendMessage(t)},com.inq.flash.client.control.ApplicationController.prototype.processClickToCallQueueMessages=function(){var t=com.inq.flash.client.chatskins.SkinControl.getOpener();this.openerMessageQueue=t.com.inq.getOpenerMessageQueue();var e=t.com.inq.getMessageQueue();if(e.length>0){var i=e.shift().msg,n=i.getProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME);com.inq.flash.client.control.FlashVars.setCustomerName(n,!0);var o=com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(n,com.inq.flash.messagingframework.StringUtils.htmlDecode(i.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA)),com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER,-1,null,i.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY));this.sendChatCommunicationMessage(i,o)}},com.inq.flash.client.control.ApplicationController.prototype.processClickToWebCallQueueMessages=function(t){var e=com.inq.utils.Util.getConfig("isVidyo",!0),i=com.inq.utils.Util.getConfig("appKeyId","123");this.callStreamData="^^"+com.inq.flash.client.chatskins.SkinControl.CSDL_WEBCALLADDRESS+(e?"true":"false")+" "+!com.inq.flash.client.control.WebRTCMgr.isAudioOnlyWebCall(),this.callStreamData+=" "+com.inq.flash.client.control.FlashPeer.getVanityUrl()+" "+i;var n=new com.inq.flash.client.data.CallCommunicationMessage(this.chat,com.inq.flash.client.control.XFrameWorker.DO_NOT_DISPLAY_IN_CI+com.inq.utils.Util.getConfig("webCallStart","Start call")),o=-1;t&&(this.setEngageParameters(t),t.phone&&this.addInitialData(n,"CallerPhone",t.phone,"CallerPhone"),t.clientOutcome&&(o=this.addClientOutcomeToChatWindow(t.clientOutcome))),n.addProperty(com.inq.flash.client.data.MessageFields.KEY_CALL_ENABLED,"false"),n.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,o),n.addProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME,com.inq.flash.client.control.FlashVars.getCustomerName()),this.queueMessages=!0,this.chatRouterListen=!1,com.inq.flash.client.control.FlashVars.setCustomerName(n.getProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME),!0),this.sendChatCommunicationMessage(n,o)},com.inq.flash.client.control.ApplicationController.prototype.getMessageQueue=function(){return this.messageQueue},com.inq.flash.client.control.ApplicationController.prototype.getOpenerMessageQueue=function(){return this.openerMessageQueue},com.inq.flash.client.control.ApplicationController.prototype.sendOpenerQueue=function(){for(;this.openerMessageQueue.length>0;){var t=this.openerMessageQueue.shift();this.sendMessageOrQueue(t.msg,t.clientTime)}},com.inq.flash.client.control.ApplicationController.prototype.sendQueueingText=function(t,e,i){var n=new com.inq.flash.client.data.ChatCommunicationQueueMessage(this.chat,t,i);n.addProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,""+e),this.sendMessageOrQueue(n)},com.inq.flash.client.control.ApplicationController.prototype.enqueueOpenerText=function(t,e,i){var n=(new Date).getTime(),o=new com.inq.flash.client.data.ChatCommunicationOpenerMessage(this.chat,t,e,i);this.openerMessageQueue.push({clientTime:n,msg:o})},com.inq.flash.client.control.ApplicationController.prototype.sendText=function(t){this.firstMessageSent||this.sendOpenerQueue(),this.sendMessageOrQueue(t),this.chatRouterListen=!1,this.firstMessageSent=!0},com.inq.flash.client.control.ApplicationController.prototype.sendTextToAgent=function(t){if(haxe.Log.trace("enter",{fileName:"ApplicationController.hx",lineNumber:618,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendTextToAgent"}),null!=t&&""!=t){haxe.Log.trace("Check connections",{fileName:"ApplicationController.hx",lineNumber:637,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendTextToAgent"}),haxe.Log.trace("attemptingConnection="+Std.string(this.attemptingConnection)+"\nintentionalDisconnect="+Std.string(this.intentionalDisconnect)+"\n",{fileName:"ApplicationController.hx",lineNumber:643,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendTextToAgent"});var e=this.appendSentText(t,-1),i=new com.inq.flash.client.data.ChatCommunicationMessage(this.chat,t);this.sendChatCommunicationMessage(i,e)}else haxe.Log.trace("no text",{fileName:"ApplicationController.hx",lineNumber:670,className:"com.inq.flash.client.control.ApplicationController",methodName:"sendTextToAgent"})},com.inq.flash.client.control.ApplicationController.prototype.sendRestoredMessage=function(){if(com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)>0)if(!0===com.inq.flash.client.control.ApplicationController.isSkipRestoreMsgOnce)com.inq.flash.client.control.ApplicationController.isSkipRestoreMsgOnce=!1;else{var t=new com.inq.flash.client.data.ChatActivityMessage(this.chat,com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_RESTORED);this.sendMessageOrQueue(t)}},com.inq.flash.client.control.ApplicationController.prototype.sendMinimizedMessage=function(){if(com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)>0){var t=new com.inq.flash.client.data.ChatActivityMessage(this.chat,com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_MINIMIZED);this.sendMessageOrQueue(t)}},com.inq.flash.client.control.ApplicationController.prototype.TypingActivity=function(t){var e=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);if(this.firstMessageSent||e>0){var i=Application.application.getTextInput("txtInput")._getInput(),n=t?new com.inq.flash.client.data.ChatActivityMessage(this.chat,com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_TYPING,null,null):new com.inq.flash.client.data.ChatActivityMessage(this.chat,com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_STOPS_TYPING,i,null);this.sendMessageOrQueue(n)}else this.skinControl.setTypingActivity(!1)},com.inq.flash.client.control.ApplicationController.prototype.appendSentText=function(t,e,i){return com.inq.flash.client.chatskins.SkinControl.AddCustomerTextToChatWindow(t,e,null,"",i)},com.inq.flash.client.control.ApplicationController.prototype.appendReceivedText=function(t,e,i,n,o,a,s,l,r){if(com.inq.flash.client.control.XFrameWorker.isDisplayInCI(t)){var c=-1!==t.indexOf(com.inq.utils.Util.getConfig("sFormSubmitted","form submitted"));r?com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(e,t,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_INFO,i,o,a,s,l):com.inq.flash.client.control.FlashVars.getCustomerName()!=e||n?""===e?com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(e,t,c?com.inq.flash.client.chatskins.ChatTextArea.FORM_STATUS:com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS,i,o,a,s):com.inq.flash.client.control.FlashPeer.getIsBuilder()&&"system"==e?this.skinControl.AddTranscriptItemToChatWindow(e,t,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,i,o,a):this.skinControl.AddTranscriptItemToChatWindow(e,t,com.inq.flash.client.chatskins.ChatTextArea.AGENT,i,o,a,s,l):com.inq.flash.client.chatskins.SkinControl.AddCustomerTextToChatWindow(t,i,o,a,l)}else haxe.Log.trace('Text filtered... "'+t+'"',{fileName:"ApplicationController.hx",lineNumber:167,className:"com.inq.flash.client.control.ApplicationController",methodName:"appendReceivedText"})},com.inq.flash.client.control.ApplicationController.prototype.registerHandler=function(t){this.framework.registerMessageHandler(t),t.setController(this)},com.inq.flash.client.control.ApplicationController.prototype.checkIfAdBlockersActive=function(){com.inq.flash.client.control.FlashPeer.isAdblockEnabled()&&com.inq.utils.Util.getConfig(Application.application.notificationController.FLAG_ADBLOCK_DETECTION_ENABLED,!1)&&(com.inq.flash.client.chatskins.SkinControl.disableInput(),com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(!0),com.inq.flash.client.chatskins.SkinControl.hideInput(),com.inq.flash.client.chatskins.SkinControl.getSendButton().disable(),Application.application.notificationController.showAdblockDetectedMessage())},com.inq.flash.client.control.ApplicationController.prototype.processMessage=function(t){this.framework.processMessage(t)},com.inq.flash.client.control.ApplicationController.prototype.getMessagingFramework=function(){return this.framework},com.inq.flash.client.control.ApplicationController.prototype.isAgentAssigned=function(){return!!com.inq.flash.client.control.FlashPeer.getAgentID()},com.inq.flash.client.control.ApplicationController.prototype.setFlagChatInQueue=function(t){this.flagChatInQueue=t},com.inq.flash.client.control.ApplicationController.prototype.isChatInQueue=function(){return this.flagChatInQueue},com.inq.flash.client.control.ApplicationController.prototype.updateUsername=function(){this._updateUsername=!0},com.inq.flash.client.control.ApplicationController.prototype.cancelUpdateUsername=function(){this._updateUsername=!1},com.inq.flash.client.control.ApplicationController.prototype.isUpdateUsername=function(){var t=com.inq.flash.client.control.FlashVars.getCustomerDisplayName();return this._updateUsername&&!!t},com.inq.flash.client.control.ApplicationController.prototype.sendSystemMessage=function(t,e,i){var n="-1";i&&"customerInterface"!==i||(n=com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",t,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,null,e));var o=new com.inq.flash.client.data.ChatCommunicationSystemMessage(this.chat,t,""+n,i,e);this.sendMessageOrQueue(o)},com.inq.flash.client.control.ApplicationController.prototype.onLostConnection=function(){this.skinControl.connectionLostClosingChat(!0)},com.inq.flash.client.control.ApplicationController.prototype.noUnload=function(){this.skinControl.noUnload()},com.inq.flash.client.control.ApplicationController.prototype.showIntroductionAfterPreloadMessages=function(){this.skinControl.showIntroductionAfterPreloadMessages()},com.inq.flash.client.control.ApplicationController.prototype.getMessageHandlerByPrefix=function(t){return this.framework.getMessageHandlerByPrefix(t)},com.inq.flash.client.control.ApplicationController.cleanUp=function(){com.inq.flash.client.control.ApplicationController.applicationController=null},com.inq.flash.client.control.ApplicationController.prototype.isChatContinued=function(){return com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)>1},com.inq.flash.client.control.ApplicationController.prototype.addTimeDeltaToMessage=function(t){var e=t.clientTime,i=Math.round((new Date).getTime()-e),n=t.msg;return n.addProperty(com.inq.flash.client.data.MessageFields.KEY_TIME_DELTA,""+i),n},com.inq.flash.client.control.ApplicationController.prototype.setChatID=function(t){com.inq.flash.client.control.FlashVars.setValue("chatID",t),this.getChat().setChatID(t),this.updateMessageQueue(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t)},com.inq.flash.client.control.ApplicationController.prototype.setCustomerID=function(t){com.inq.flash.client.control.FlashVars.setValue("customerID",t),this.getChat().setCustomerID(t),this.updateMessageQueue(com.inq.flash.client.data.MessageFields.KEY_CUSTOMER_ID,t)},com.inq.flash.client.control.ApplicationController.prototype.updateMessageQueue=function(t,e){for(var i=this.getMessageQueue(),n=0;n<i.length;n++)i[n].msg.setPropertyIfNotNullIfExists(t,e)},com.inq.flash.client.control.ApplicationController.prototype.sendButtonClickedTime=null,com.inq.flash.client.control.ApplicationController.prototype.bSendClickStreamData=null,com.inq.flash.client.control.ApplicationController.prototype.chatAccepted=null,com.inq.flash.client.control.ApplicationController.prototype.authorizedOnce=null,com.inq.flash.client.control.ApplicationController.prototype.waitingToExitChat=null,com.inq.flash.client.control.ApplicationController.prototype.openerMessageQueue=null,com.inq.flash.client.control.ApplicationController.prototype.messageQueue=null,com.inq.flash.client.control.ApplicationController.prototype.chatRouterListen=null,com.inq.flash.client.control.ApplicationController.prototype.notifiedAsPersistent=null,com.inq.flash.client.control.ApplicationController.prototype.attemptingConnection=null,com.inq.flash.client.control.ApplicationController.prototype.wasConnected=null,com.inq.flash.client.control.ApplicationController.prototype.persistentReconnect=null,com.inq.flash.client.control.ApplicationController.prototype.queueMessages=null,com.inq.flash.client.control.ApplicationController.prototype.intentionalDisconnect=null,com.inq.flash.client.control.ApplicationController.prototype.firstMessageSent=null,com.inq.flash.client.control.ApplicationController.prototype.builtApplicationParameters=null,com.inq.flash.client.control.ApplicationController.prototype.framework=null,com.inq.flash.client.control.ApplicationController.prototype.agentID=null,com.inq.flash.client.control.ApplicationController.prototype.chat=null,com.inq.flash.client.control.ApplicationController.prototype.callStreamData=null,com.inq.flash.client.control.ApplicationController.prototype.__class__=com.inq.flash.client.control.ApplicationController,com.inq.flash.client.control.ApplicationController.applicationController=null,com.inq.flash.client.control.ApplicationController.prototype.msgcntAtEntry=0,com.inq.flash.client.control.ApplicationController.prototype.clientDisconnect=!1,com.inq.flash.messagingframework||(com.inq.flash.messagingframework={}),com.inq.flash.messagingframework.connectionhandling||(com.inq.flash.messagingframework.connectionhandling={}),com.inq.flash.client.control.ClientConnectionEventHandler=function(t){this.controller=t},$hxClasses["com.inq.flash.client.control.ClientConnectionEventHandler"]=com.inq.flash.client.control.ClientConnectionEventHandler,com.inq.flash.client.control.ClientConnectionEventHandler.__name__=["com","inq","flash","client","control","ClientConnectionEventHandler"],com.inq.flash.client.control.ClientConnectionEventHandler.prototype.allConnectionAttemptsFailed=function(){},com.inq.flash.client.control.ClientConnectionEventHandler.prototype.connectionSuccessful=function(){haxe.Log.trace("enter",{fileName:"ClientConnectionEventHandler.hx",lineNumber:25,className:"com.inq.flash.client.control.ClientConnectionEventHandler",methodName:"connectionSuccessful"}),this.controller.connectionEstablished(),haxe.Log.trace("exit",{fileName:"ClientConnectionEventHandler.hx",lineNumber:27,className:"com.inq.flash.client.control.ClientConnectionEventHandler",methodName:"connectionSuccessful"})},com.inq.flash.client.control.ClientConnectionEventHandler.prototype.connectionClosedNeedRetryRequest=function(){return this.connectionFailedNeedRetryRequest(3,3)},com.inq.flash.client.control.ClientConnectionEventHandler.prototype.connectionFailedNeedRetryRequest=function(t,e){return this.controller.connectionLost(),!this.controller.shouldBeDisconnected()},com.inq.flash.client.control.ClientConnectionEventHandler.prototype.controller=null,com.inq.flash.client.control.ClientConnectionEventHandler.prototype.__class__=com.inq.flash.client.control.ClientConnectionEventHandler,y(1703),com.inq.flash.client.control.FlashVars=function(){},$hxClasses["com.inq.flash.client.control.FlashVars"]=com.inq.flash.client.control.FlashVars,com.inq.flash.client.control.FlashVars.__name__=["com","inq","flash","client","control","FlashVars"],com.inq.flash.client.control.FlashVars._flashVars=null,com.inq.flash.client.control.FlashVars.flashVars=null,com.inq.flash.client.control.FlashVars.getFlashVars=function(){return null==com.inq.flash.client.control.FlashVars._flashVars&&com.inq.flash.client.control.FlashVars.setApplicationParameters(),com.inq.flash.client.control.FlashVars._flashVars},com.inq.flash.client.control.FlashVars.persistentFrame=null,com.inq.flash.client.control.FlashVars.chatID=null,com.inq.flash.client.control.FlashVars.clickStream=null,com.inq.flash.client.control.FlashVars.submitURL=null,com.inq.flash.client.control.FlashVars.shutdownPopup=null,com.inq.flash.client.control.FlashVars.continued=null,com.inq.flash.client.control.FlashVars.tagServerBaseURL=null,com.inq.flash.client.control.FlashVars.openerID=null,com.inq.flash.client.control.FlashVars.agentName=null,com.inq.flash.client.control.FlashVars.openerDelay=null,com.inq.flash.client.control.FlashVars.userAgent=null,com.inq.flash.client.control.FlashVars.useAgentAlias=null,com.inq.flash.client.control.FlashVars.overrideChatTheme=null,com.inq.flash.client.control.FlashVars._init=function(){return com.inq.flash.client.control.FlashVars._flashVars=null,com.inq.flash.client.control.FlashVars.customerName=null,!0},com.inq.flash.client.control.FlashVars.getValue=function(t){return com.inq.flash.client.control.FlashVars.getFlashVars()[t]},com.inq.flash.client.control.FlashVars.getBooleanValue=function(t){return"true"===com.inq.flash.client.control.FlashVars.getFlashVars()[t]},com.inq.flash.client.control.FlashVars.setValue=function(t,e){com.inq.flash.client.control.FlashVars.getFlashVars()[t]=e},com.inq.flash.client.control.FlashVars.setAgentName=function(t){null!=t&&"null"!=t&&""!=StringTools.trim(t)||(t="Jessica"),com.inq.flash.client.control.FlashVars.getFlashVars().agentName=t},com.inq.flash.client.control.FlashVars.setAutomatonSpecData=function(t){com.inq.flash.client.control.FlashVars.setValue("automatonSpecData",t)},com.inq.flash.client.control.FlashVars.getAutomatonSpecData=function(){return com.inq.flash.client.control.FlashVars.getValue("automatonSpecData")},com.inq.flash.client.control.FlashVars.getUserAgent=function(){return com.inq.flash.client.control.FlashVars.getValue("userAgent")},com.inq.flash.client.control.FlashVars.getChatID=function(){try{return com.inq.flash.client.control.FlashVars.getValue("chatID")}catch(t){if(js.Boot.__instanceof(t,Error))return haxe.Log.trace("FlashVars.getChatID ERROR: "+Std.string(t),{fileName:"FlashVars.hx",lineNumber:73,className:"com.inq.flash.client.control.FlashVars",methodName:"getChatID"}),null;throw t}},com.inq.flash.client.control.FlashVars.getClickStream=function(){return com.inq.flash.client.control.FlashVars.getValue("clickStream")},com.inq.flash.client.control.FlashVars.getSubmitURL=function(){return com.inq.flash.client.control.FlashVars.getValue("submitURL")},com.inq.flash.client.control.FlashVars.getShutdownPopup=function(){return com.inq.flash.client.control.FlashVars.getValue("shutdownPopup")},com.inq.flash.client.control.FlashVars.isContinued=function(){return 1==Std.parseInt(""+Std.string(com.inq.flash.client.control.FlashVars.getValue("continued")))},com.inq.flash.client.control.FlashVars.getTagServerBaseURL=function(){return com.inq.flash.client.control.FlashVars.getValue("tagServerBaseURL")},com.inq.flash.client.control.FlashVars.getUseAgentAlias=function(){return com.inq.flash.client.control.FlashVars.getValue("useAgentAlias")},com.inq.flash.client.control.FlashVars.getOverrideChatTheme=function(){return com.inq.flash.client.control.FlashVars.getValue("overrideChatTheme")},com.inq.flash.client.control.FlashVars.getOpenerID=function(){return com.inq.flash.client.control.FlashVars.getValue("openerID")},com.inq.flash.client.control.FlashVars.getAgentName=function(){return com.inq.utils.Util.getConfig("agentName")?com.inq.utils.Util.getConfig("agentName"):com.inq.flash.client.control.FlashVars.getValue("agentName")},com.inq.flash.client.control.FlashVars.getCustomerDisplayName=function(){return com.inq.flash.client.control.PersistenceManager.GetValue(CUSTOMER_DISPLAY_NAME,null)},com.inq.flash.client.control.FlashVars.getCustomerName=function(){if(null==com.inq.flash.client.control.FlashVars.customerName){var t=com.inq.flash.client.control.FlashVars.getCustomerDisplayName();null!=t&&""!=t||(t=com.inq.utils.Util.getConfig("customerName")?com.inq.utils.Util.getConfig("customerName"):com.inq.flash.client.control.FlashVars.getValue("userName")),com.inq.flash.client.control.FlashVars.setCustomerName(t)}return com.inq.flash.messagingframework.StringUtils.htmlEncode(com.inq.flash.client.control.FlashVars.customerName)},com.inq.flash.client.control.FlashVars.setCustomerName=function(t,e){com.inq.flash.client.control.FlashVars.customerName=t,Application.application.updateCustomerName(t),1==e&&com.inq.flash.client.control.PersistenceManager.SetValue(CUSTOMER_DISPLAY_NAME,t)},com.inq.flash.client.control.FlashVars.isCustomerNameUpdated=function(){var t=com.inq.flash.client.control.FlashVars.getCustomerDisplayName(),e=com.inq.utils.Util.getConfig("customerName"),i=com.inq.flash.client.control.FlashVars.getValue("userName");return!!t&&(e&&e!=t||i&&i!=t)},com.inq.flash.client.control.FlashVars.getOpenerDelay=function(){return com.inq.flash.client.control.FlashVars.getValue("openerDelay")},com.inq.flash.client.control.FlashVars.getWindowId=function(){return com.inq.flash.client.control.FlashVars.getValue(com.inq.flash.client.data.MessageFields.WINDOW_ID_PARAM)},com.inq.flash.client.control.FlashVars.isSecureWithCustToken=function(){return com.inq.flash.client.control.FlashVars.getBooleanValue(com.inq.flash.client.data.MessageFields.KEY_SECURE_WITH_CUST_TOKEN)},com.inq.flash.client.control.FlashVars.getPersistentCustomerID=function(){return com.inq.flash.client.control.FlashVars.getValue(com.inq.flash.client.data.MessageFields.KEY_SECURE_CUST_TOKEN)},com.inq.flash.client.control.FlashVars.setApplicationParameters=function(){com.inq.flash.client.control.FlashVars._flashVars=new com.inq.utils.Dictionary;var t=com.inq.utils.Util.fields(Application.application.parameters);haxe.Log.trace("MainApplication.parameters="+Std.string(Application.application.parameters),{fileName:"FlashVars.hx",lineNumber:100,className:"com.inq.flash.client.control.FlashVars",methodName:"setApplicationParameters"}),null==Application.application.parameters&&haxe.Log.trace("ERROR: no parameters",{fileName:"FlashVars.hx",lineNumber:102,className:"com.inq.flash.client.control.FlashVars",methodName:"setApplicationParameters"});for(var e=0;e<t.length;e++){var i=t[e],n=Application.application.parameters[i];try{com.inq.flash.client.control.FlashVars.setValue(i,n),haxe.Log.trace("FlashVars.hx: setApplicationParameters: "+i+" = "+n,{fileName:"FlashVars.hx",lineNumber:111,className:"com.inq.flash.client.control.FlashVars",methodName:"setApplicationParameters"})}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("FlashVars.hx: setApplicationparameters: Error"+Std.string(t),{fileName:"FlashVars.hx",lineNumber:113,className:"com.inq.flash.client.control.FlashVars",methodName:"setApplicationParameters"})}}com.inq.flash.client.control.FlashVars.setupFlashVar("chatID","-1"),com.inq.flash.client.control.FlashVars.setupFlashVar("continued","0");var o=com.inq.flash.client.control.FlashPeer.isCEAPIPostChatSurveyMode();com.inq.flash.client.control.PersistenceManager.SetValue(CHAT_CONTINUED,o?0:1),com.inq.flash.client.control.FlashVars.setupFlashVar("iframeURL","http://sb3.conversive.com/gui_gamefly/chat.html"),com.inq.flash.client.control.FlashVars.setupFlashVar("agentName","Jessica"),com.inq.flash.client.control.FlashVars.setupFlashVar("shutdownPopup","false"),com.inq.flash.client.control.FlashVars.setupFlashVar("userName","Visitor"),com.inq.flash.client.control.FlashVars.setupFlashVar("delay","0"),com.inq.flash.client.control.FlashVars.setupFlashVar("submitURL","chatrouterv3.inq.com"),com.inq.flash.client.control.FlashVars.setupFlashVar("clickStream",""),com.inq.flash.client.control.FlashVars.setupFlashVar("windowId","-1"),com.inq.flash.client.control.FlashVars.setValue("shutdownPopup","true"==com.inq.flash.client.control.FlashVars.getValue("shutdownPopup")),com.inq.flash.client.control.FlashVars.setupFlashVar("openerDelay","6"),com.inq.flash.client.control.FlashVars.setupFlashVar("tagServerBaseURL","https://tagserverv3.inq.com");var a=com.inq.flash.client.control.FlashVars.getValue("tagServerBaseURL");"/"!=HxOverrides.substr(a,a.length-1,null)&&(a+="/",com.inq.flash.client.control.FlashVars.setValue("tagServerBaseURL",a));for(var s="\n",l=com.inq.utils.Util.fields(com.inq.flash.client.control.FlashVars._flashVars),r=0;r<l.length;r++){var c=l[r],h=com.inq.flash.client.control.FlashVars._flashVars[c],m=" ";"String"==(m=m.charAt(0).toUpperCase()+HxOverrides.substr(m,1,null))&&(h='"'+Std.string(h)+'"'),s+="FlashVars.flashVars."+c+":"+m+"="+Std.string(h)+";\n"}return haxe.Log.trace(s,{fileName:"FlashVars.hx",lineNumber:188,className:"com.inq.flash.client.control.FlashVars",methodName:"setApplicationParameters"}),com.inq.flash.client.control.FlashVars._flashVars},com.inq.flash.client.control.FlashVars.setupFlashVar=function(t,e){try{var i=null;try{i=com.inq.flash.client.control.FlashVars.getValue(t)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;i=null}null==i&&com.inq.flash.client.control.FlashVars.setValue(t,e)}catch(i){if(!js.Boot.__instanceof(i,Error))throw i;haxe.Log.trace("FlashVars.setupFlashVars: ERROR: "+Std.string(i),{fileName:"FlashVars.hx",lineNumber:213,className:"com.inq.flash.client.control.FlashVars",methodName:"setupFlashVar"}),com.inq.flash.client.control.FlashVars.setValue(t,e)}},com.inq.flash.client.control.FlashVars.get=function(t){return com.inq.flash.client.control.FlashVars.getFlashVars(),com.inq.flash.client.control.FlashVars._flashVars[t]},com.inq.flash.client.control.FlashVars.prototype.__class__=com.inq.flash.client.control.FlashVars,com.inq.flash.client.control.FlashVars.customerName=null,com.inq.flash.client.control.Incrementality=function(){},com.inq.flash.client.control.Incrementality.__name__=["com","inq","flash","client","control","Incrementality"],com.inq.flash.client.control.Incrementality.interacted=null,com.inq.flash.client.control.Incrementality.init=function(){return com.inq.flash.client.control.Incrementality.interacted=com.inq.flash.client.control.PersistenceManager.GetValue(CHAT_INTERACTED,!1),!0},com.inq.flash.client.control.Incrementality.onEngaged=function(){if(Application.application.applicationController.skinControl.StopTimer(),!com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&""!=com.inq.flash.client.control.FlashVars.getFlashVars().brID){com.inq.flash.client.control.FlashPeer.onEngaged({brID:com.inq.flash.client.control.FlashVars.getFlashVars().brID});var t=new Date;com.inq.flash.client.chatskins.SkinControl.closeChatOneHourTimer(t),Application.application.fireMxmlEvent("onEngaged"),haxe.Log.trace("Incrementality.onEngaged",{fileName:"Incrementality.hx",lineNumber:28,className:"com.inq.flash.client.control.Incrementality",methodName:"onEngaged"})}},com.inq.flash.client.control.Incrementality.onInteracted=function(){try{var t=!1;try{t=com.inq.flash.client.control.Incrementality.interacted}catch(t){}if(t)return;if(com.inq.flash.client.control.Incrementality.interacted=!0,com.inq.flash.client.control.PersistenceManager.SetValue(CHAT_INTERACTED,com.inq.flash.client.control.Incrementality.interacted),com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&!Application.application.applicationController.skinControl.isClick2call()&&!com.inq.flash.client.control.FlashPeer.isV3C2CPersistent())return;if(""==com.inq.flash.client.control.FlashVars.getFlashVars().brID)return;com.inq.flash.client.control.FlashPeer.onInteracted({brID:com.inq.flash.client.control.FlashVars.getFlashVars().brID}),Application.application.fireMxmlEvent("onInteracted"),haxe.Log.trace("onInteracted",{fileName:"Incrementality.hx",lineNumber:50,className:"com.inq.flash.client.control.Incrementality",methodName:"onInteracted"})}catch(t){haxe.Log.trace("onInteracted failed: "+Std.string(t),{fileName:"Incrementality.hx",lineNumber:52,className:"com.inq.flash.client.control.Incrementality",methodName:"onInteracted"})}},com.inq.flash.client.control.Incrementality.onAgentMsg=function(t){""!=com.inq.flash.client.control.FlashVars.getFlashVars().brID&&(com.inq.flash.client.control.FlashPeer.onAgentMsg({brID:com.inq.flash.client.control.FlashVars.getFlashVars().brID,textLine:null==t?"":t}),Application.application.fireMxmlEvent("onAgentMsg"),haxe.Log.trace("onAgentMsg",{fileName:"Incrementality.hx",lineNumber:63,className:"com.inq.flash.client.control.Incrementality",methodName:"onAgentMsg"}))},com.inq.flash.client.control.Incrementality.onAgentDataPass=function(t){com.inq.flash.client.control.FlashPeer.onAgentDataPass(t),Application.application.fireMxmlEvent("onAgentDataPass"),haxe.Log.trace("onAgentDataPass",{fileName:"Incrementality.js",className:"com.inq.flash.client.control.Incrementality",methodName:"onAgentDataPass"})},com.inq.flash.client.control.Incrementality.onVADataPass=function(t){com.inq.flash.client.control.FlashPeer.onVADataPass(t),Application.application.fireMxmlEvent("onVADataPass"),com.inq.flash.client.control.FlashPeer.debugLogInfoToTagServer("VA_DATA_PASS","onVADataPass received: "+t)},com.inq.flash.client.control.Incrementality.onChatroomReady=function(){com.inq.flash.client.control.FlashVars.getFlashVars().brID&&(com.inq.flash.client.control.FlashPeer.onChatroomReady({brID:com.inq.flash.client.control.FlashVars.getFlashVars().brID}),Application.application.fireMxmlEvent("onChatroomReady"),haxe.Log.trace("onChatroomReady",{fileName:"Incrementality.js"}))},com.inq.flash.client.control.Incrementality.onCustomerMsg=function(t){if(""!=com.inq.flash.client.control.FlashVars.getFlashVars().brID){var e={textLine:null==t?"":t};com.inq.flash.client.control.FlashPeer.onCustomerMsg(e),Application.application.fireMxmlEvent("onCustomerMsg"),haxe.Log.trace("onCustomerMsg",{fileName:"Incrementality.hx",lineNumber:75,className:"com.inq.flash.client.control.Incrementality",methodName:"onCustomerMsg"})}},com.inq.flash.client.control.Incrementality.onAssisted=function(){""!=com.inq.flash.client.control.FlashVars.getFlashVars().brID&&(com.inq.flash.client.control.FlashPeer.onAssisted({brID:com.inq.flash.client.control.FlashVars.getFlashVars().brID}),Application.application.fireMxmlEvent("onAssisted"),haxe.Log.trace("onAssisted",{fileName:"Incrementality.hx",lineNumber:85,className:"com.inq.flash.client.control.Incrementality",methodName:"onAssisted"}))},com.inq.flash.client.control.Incrementality.prototype.__class__=com.inq.flash.client.control.Incrementality,y(1703),com.inq.flash.client.control.ClickStreamBuilder=function(){},$hxClasses.registerClass(com.inq.flash.client.control.ClickStreamBuilder,"com.inq.flash.client.control.ClickStreamBuilder"),com.inq.flash.client.control.ClickStreamBuilder.IdentifyPlatform=function(){var t=com.inq.flash.client.control.ClickStreamBuilder.SEP_ATTRIBUTE,e=com.inq.flash.client.control.ClickStreamBuilder.CSDL_OS+com.inq.utils.Capabilities._getOS()+t;try{""!=com.inq.flash.client.control.FlashVars.getValue("userAgent")&&(com.inq.flash.client.control.FlashVars.setValue("userAgent",js.Lib.window.navigator.userAgent),e+=com.inq.flash.client.control.ClickStreamBuilder.CSDL_BROWSER+com.inq.utils.Capabilities.extractBrowserNameAndVersion(com.inq.flash.client.control.FlashVars.getValue("userAgent"))+t+com.inq.flash.client.control.ClickStreamBuilder.CSDL_USERAGENT+StringTools.htmlEscape(com.inq.flash.client.control.FlashVars.getValue("userAgent"))+t,!com.inq.flash.client.control.FlashVars.isContinued()&&com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&(e+=com.inq.flash.client.control.ClickStreamBuilder.CSDL_CLICK2PER+"YES"+t))}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return haxe.Log.trace("IdentifyPlatform(): exit",{fileName:"ClickStreamBuilder.js",className:"com.inq.flash.client.control.ClickStreamBuilder",methodName:"IdentifyPlatform"}),e},com.inq.flash.client.control.ClickStreamBuilder.parseClickstreamData=function(){return StringTools.urlDecode(com.inq.flash.client.control.FlashVars.getValue("clickStream")).split("&")},com.inq.flash.client.control.ClickStreamBuilder.parseInitialClickstreamData=function(){for(var t=com.inq.flash.client.control.ClickStreamBuilder.SEP_ATTRIBUTE,e="",i=com.inq.flash.client.control.ClickStreamBuilder.parseClickstreamData(),n=0;n<i.length;n++){var o=i[n].split("="),a=o.shift(),s=o.join("=");""!==s&&("data"==HxOverrides.substr(a,0,4)?e=(""!=e?e+t:"")+"_"+a+"=Data["+HxOverrides.substr(a,4,null)+"]&"+a+"="+s:"markerHistory"==a?e=(""!=e?e+t:"")+com.inq.flash.client.control.ClickStreamBuilder.CSDL_VISITED+s:"launchPageMarker"==a&&(e=(""!=e?e+t:"")+com.inq.flash.client.control.ClickStreamBuilder.CSDL_LAUNCH_PAGE_MARKER+s))}return haxe.Log.trace("ClickStreamBuilder.parseInitialClickstreamData: "+e,{fileName:"ClickStreamBuilder.js",className:"com.inq.flash.client.control.ClickStreamBuilder",methodName:"parseInitialClickstreamData"}),e+t},com.inq.flash.client.control.ClickStreamBuilder.parseURLfromClickStreamData=function(){for(var t="",e=com.inq.flash.client.control.ClickStreamBuilder.parseClickstreamData(),i=0;i<e.length;i++)if(e[i].includes("pageURL")){var n=e[i].split("="),o=n.shift(),a=n.join("=");""!==a&&"pageURL"===o&&(t=com.inq.flash.client.control.ClickStreamBuilder.CSDL_URL+a)}return com.inq.flash.client.control.ClickStreamBuilder.SEP_ATTRIBUTE+t},com.inq.flash.client.control.ClickStreamBuilder.parseDFVfromClickStreamData=function(){for(var t="",e=com.inq.flash.client.control.ClickStreamBuilder.parseClickstreamData(),i=0;i<e.length;i++)if(e[i].includes("dfv")){var n=e[i].split("="),o=n.shift(),a=n.join("=");""!==a&&"dfv"==o&&(t=(""!=t?t+"&":"")+com.inq.flash.client.control.ClickStreamBuilder.CSDL_DFV+a)}return com.inq.flash.client.control.ClickStreamBuilder.SEP_ATTRIBUTE+t},com.inq.flash.client.control.ClickStreamBuilder.CSDL_OS="_OperatingSystem=OS^^OperatingSystem=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_USERAGENT="_UserAgent=UserAgent^^UserAgent=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_BROWSER="_Browser=Browser^^Browser=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_CLICK2PER="_ClickToPersistent=ClickToPersistent^^ClickToPersistent=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_VISITED="_visited=Page Markers^^visited=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_LAUNCH_PAGE_MARKER="_launchPageMarker=Page Marker^^launchPageMarker=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_URL="_URL=Page URL^^URL=",com.inq.flash.client.control.ClickStreamBuilder.CSDL_DFV="_dfv=Data^^dfv=",com.inq.flash.client.control.ClickStreamBuilder.SEP_ATTRIBUTE="^^",com.inq.flash.messagingframework.AbstractMessageHandler=function(t){this.messageType=t},$hxClasses["com.inq.flash.messagingframework.AbstractMessageHandler"]=com.inq.flash.messagingframework.AbstractMessageHandler,com.inq.flash.messagingframework.AbstractMessageHandler.__name__=["com","inq","flash","messagingframework","AbstractMessageHandler"],com.inq.flash.messagingframework.AbstractMessageHandler.prototype.getMessagingFramework=function(){return this.framework},com.inq.flash.messagingframework.AbstractMessageHandler.prototype.setMessagingFramework=function(t){this.framework=t},com.inq.flash.messagingframework.AbstractMessageHandler.prototype.getMessageType=function(){return this.messageType},com.inq.flash.messagingframework.AbstractMessageHandler.prototype.processMessage=function(t){},com.inq.flash.messagingframework.AbstractMessageHandler.prototype.framework=null,com.inq.flash.messagingframework.AbstractMessageHandler.prototype.messageType=null,com.inq.flash.messagingframework.AbstractMessageHandler.prototype.__class__=com.inq.flash.messagingframework.AbstractMessageHandler,com.inq.flash.client.control.messagehandlers||(com.inq.flash.client.control.messagehandlers={}),function(){for(var t in y(5306),com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler=function(t){com.inq.flash.messagingframework.AbstractMessageHandler.call(this,t)},$hxClasses["com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler"]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ClientApplicationMessageHandler"],com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.__super__=com.inq.flash.messagingframework.AbstractMessageHandler,com.inq.flash.messagingframework.AbstractMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t]=com.inq.flash.messagingframework.AbstractMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.getController=function(){return this.controller},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.setController=function(t){this.controller=t},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.setAgent=function(t,e,i){var n,o=com.inq.flash.client.control.FlashPeer.getAgentID(),a=e.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_LAST_AGENT_ASSIGNED_MESSAGE),s="1"===e.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY);n="boolean"!=typeof i?e.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_ENABLED):i,t&&(!s||a&&t!==o)&&this.getController().setAgentConfig(t,com.inq.utils.EventDataUtils.fromMessage(e),n,e.getProperty(com.inq.flash.client.data.MessageFields.KEY_BUSINESS_UNIT_ID),e.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_GROUP_ID))},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.handleCustomEventAttributes=function(t){return t&&-1!=t.indexOf("data-nuance-event")?this.processCustomEventAttributes(t):t},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.processCustomEventAttributes=function(t){var e=this;return t.replace(/<a.*?data-nuance-event=['"](.*?)['"].*?>/g,(function(t,i){return e.injectCustomEventClickHandler(t,i)}))},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.injectCustomEventClickHandler=function(t,e){var i=/data-nuance-event-payload=["](.*?)["][>\s]/g.exec(t);return t.replace(/>$/," onclick=\"inqFrame.Inq.FlashPeer.fireCustomEvt('"+e+"',"+(i?i[1]:null)+'); return false;">')},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.getFilteredText=function(t){if(t&&-1!=t.indexOf("data-nuance-event")&&(t=t.replace(/data-nuance-event-payload=\"{(.*?)}\"/,(function(t,e){return'data-nuance-event-payload="{'+e.replace(/\"|\\\"/g,"'")+'}"'}))),com.inq.flash.client.control.FlashPeer.getRemoveJSInMessages()){const e={whiteList:Object.assign(filterCSS.getDefaultWhiteList(),{"overflow-x":!0})},i={whiteList:Object.assign(filterXSS.getDefaultWhiteList(),{style:[],table:["cellspacing","cellpadding","width","border","align"]}),css:!1,onTagAttr:(t,i,n,o)=>"style"===i?"".concat(i,'="').concat(filterCSS(n,e),'"'):i.startsWith("aria")?"".concat(i,'="').concat(this.xssModule.escapeAttrValue(n),'"'):void 0,onIgnoreTagAttr:function(t,e,i,n){if(-1!==["class","title","id","cobshoff","coboff"].indexOf(e)||"data-"===e.substr(0,5))return"".concat(e,'="').concat(i,'"')}};t=this.xssModule(t,i)}return t},com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.controller=null,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler}(),com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_AGENT_DATA_PASS)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler,"com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler"),com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler.prototype.processMessage=function(t){com.inq.flash.client.chatskins.SkinControl.getChatWindow().removeSystemMessageAndRerender(),com.inq.flash.client.control.Incrementality.onAgentDataPass(t)},com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.AgentDataPassMessageHandler,com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_ASYNC_UNAUTH_TOKEN_INFO)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler,"com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler"),com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler.prototype.processMessage=function(t){com.inq.flash.client.control.PersistenceManager.SetValue(CONVERSATION_ID,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CONVERSATION_ID)),com.inq.flash.client.control.FlashPeer.verifyToken(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TOKEN_ID))},com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.AsyncUnauthTokenInfoMessageHandler,function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACCEPTED)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler,com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatAcceptedMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.prototype.processMessage=function(t){var e=t.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_FOR_RECONNECT),i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID),n=com.inq.flash.client.control.FlashPeer.getAgentID(),o=t.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_LAST_AGENT_ASSIGNED_MESSAGE),a="1"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY);if("true"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_EVENT_AGENT_IS_VIRTUAL)&&com.inq.flash.client.control.PersistenceManager.SetValue(VIRTUAL_AGENT,1,!0,!0),this.setAgent(i,t),i&&(!a||o&&i!==n)&&Application.application.fireMxmlEvent("onChatAccepted"),!a)if(this.getController().sendFirstQueuedMessage(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TIME_LOG)),this.getController().setQueueMessages(),this.getController().checkForChatExit(),this.getController().setConnectionAccepted(!0),e)this.getController().sendCommunicationMessagesFromQueue(),this.getController().getChat().isAsyncReconnect()||this.getController().restoreTranscript(),this.getController().getChat().setAsyncReconnect(!1);else if(com.inq.flash.client.control.FlashPeer.setSurveyAuxParams({Agent:!0}),"true"===com.inq.flash.client.control.FlashVars.getValue("enableAgentEncryptData")){var s,l,r,c=com.inq.flash.client.control.FlashVars.getValue("siteID"),h=t.getProperty("public_user_id");h&&(l="tagserver/secure-agent-data/public-agent-id/"+h+"?siteId="+c,r=Std.string(com.inq.flash.client.control.FlashVars.getValue("tagServerBaseURL"))+l,this.agentEncryptedDataLoader=new com.inq.net.URLLoader,s=new com.inq.net.URLRequest(r),this.agentEncryptedDataLoader.addEventListener(com.inq.events.Event.NETWORK_ERROR,$bind(this,this.agentEncrypteDataFailed)),this.agentEncryptedDataLoader.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.agentEncrypteDataLoaded)),this.agentEncryptedDataLoader.load(s))}},com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.prototype.agentEncryptedDataLoader=null,com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.prototype.agentEncrypteDataFailed=function(t){haxe.Log.trace("ChatAcceptedMessageHandler.agentEncrypteDataLoader request failed",{fileName:"ChatAcceptedMessageHandler.js",lineNumber:69,className:"com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler",methodName:"agentEncryptedDataLoader"})},com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.prototype.agentEncrypteDataLoaded=function(t){if(this.agentEncryptedDataLoader.data){for(keyName in top.CHAT_AGENT_ENCRYPTED_DATA={},this.agentEncryptedDataLoader.data)"secureAgentAttributes"!==keyName&&(top.CHAT_AGENT_ENCRYPTED_DATA[keyName]=this.agentEncryptedDataLoader.data[keyName]);if(top.CHAT_AGENT_ENCRYPTED_DATA.secureAgentAttributes={},this.agentEncryptedDataLoader.data.secureAgentAttributes)for(var e=0;e<this.agentEncryptedDataLoader.data.secureAgentAttributes.length;e++)void 0===top.CHAT_AGENT_ENCRYPTED_DATA.secureAgentAttributes[this.agentEncryptedDataLoader.data.secureAgentAttributes[e].key]&&(top.CHAT_AGENT_ENCRYPTED_DATA.secureAgentAttributes[this.agentEncryptedDataLoader.data.secureAgentAttributes[e].key]=[]),top.CHAT_AGENT_ENCRYPTED_DATA.secureAgentAttributes[this.agentEncryptedDataLoader.data.secureAgentAttributes[e].key].push(this.agentEncryptedDataLoader.data.secureAgentAttributes[e].secureValue)}},com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatAcceptedMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTHORIZED)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler,com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatAuthorizedMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler.prototype.processMessage=function(t){t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHATROOM_MEMBER_TYPE)==com.inq.flash.client.data.MessageFields.DATA_CHATROOM_MEMBER_VIRTUAL_AGENT&&com.inq.flash.client.control.PersistenceManager.SetValue(VIRTUAL_AGENT,1,!0,!0),this.getController().getChat().setHasAuthorized(!0);var e=t.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_CONFIG_IS_ASYNC_ENGAGEMENT);null!==e&&(this.getController().getChat().setAsyncChat(e),com.inq.flash.client.control.FlashPeer.setAsyncChat(e));var i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CONVERSATION_ID);i&&com.inq.flash.client.control.PersistenceManager.SetValue(CONVERSATION_ID,i),this.getController().sendFirstQueuedMessage(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TIME_LOG)),this.getController().setQueueMessages(),com.inq.flash.client.control.Incrementality.onChatroomReady()},com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatAuthorizedMessageHandler}(),function(){for(var t in y(5306),com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_COBROWSE),this.xssModule=y(8924)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler,com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatCobrowseMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.executeCobrowseInvite=function(t,e,i){var n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY),o=t.getPropertyAsDate(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP);com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(e,i,com.inq.flash.client.chatskins.ChatTextArea.AGENT,-1,null,n,null,o),"1"!=n&&com.inq.flash.client.control.MinimizeManager.lastAgentMessage(i)},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.executeCobrowseGetHTMLTest=function(t){var e=!1;Inq.CBC&&(e=Inq.CBC.testGetHTML()),this.sendCobrowseTestResult(e,t)},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.sendCobrowseTestResult=function(t,e){t?Application.application.applicationController.sendCoBrowseMessageQuietly(com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseTestSuccess,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE_TEST_RESULT,com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT_SUCCESS,null,e):Application.application.applicationController.sendCoBrowseMessageQuietly(com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseTestFail,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE_TEST_RESULT,com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT_FAILURE,null,e)},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.handleCobrowseActionsInAttributes=function(t,e){return-1!=t.indexOf("data-nuance-cobrowse")?this.processCobrowseActionsInAttributes(t,e):t},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.processCobrowseActionsInAttributes=function(t,e){var i=/data-nuance-cobrowse=["'](.*?)["']/,n='onclick="inqFrame.com.inq.flash.client.chatskins.CoBrowseMgr.';return this.isCobrowseInvite(e)?t=t.replace(i,n+'acceptCobInv(); return false;"').replace(i,n+'declineCobInv(); return false;"'):this.isCobrowseSharedInvite(e)&&(t=t.replace(i,n+'acceptCobShareInv(); return false;"').replace(i,n+'declineCobShareInv(); return false;"')),t},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.isCobrowseInvite=function(t){return t==com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.isCobrowseSharedInvite=function(t){return t==com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_SHARED_INVITE},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.processMessage=function(t){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA),i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_AGENT_ALIAS),n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_USER_ID),o=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_CUSTOMER_QUIET),a=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY);if(e=this.getFilteredText(e),t.setPropertyIfNotNullIfExists(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA,e),null!=i){var s=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT);if(com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_END!=s)e=this.handleCobrowseActionsInAttributes(e,s),e=this.handleCustomEventAttributes(e),this.isCobrowseInvite(s)||this.isCobrowseSharedInvite(s)?this.executeCobrowseInvite(t,i,e):com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE_TEST==s&&"1"!=a?this.executeCobrowseGetHTMLTest(n):com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_FAIL_NO_CONNECTION==s&&"1"!=a&&this.sendCobrowseTestResult(!1,n);else{var l=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_TYPE);if(com.inq.flash.client.data.MessageFields.DATA_AGENT_TYPE_FLEX==l&&"1"!=a){var r=t.getProperty(com.inq.flash.client.data.MessageFields.WINDOW_ID_PARAM);com.inq.flash.client.chatskins.CoBrowseMgr.endCobByEtlEvent(r)}}}else if(e===com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsCobrowse||e===com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsSharedControl?com.inq.flash.client.chatskins.CoBrowseMgr.ariaCobStart(a):com.inq.flash.client.chatskins.CoBrowseMgr.ariaCobEnd(),o)try{com.inq.flash.client.chatskins.FormMgr.updateFormTimeExecutor(com.inq.flash.client.chatskins.SkinControl.cw)}catch(t){haxe.Log.trace("ChatCobrowseMessageHandler.processMessage: ERROR - during execution of com.inq.flash.client.chatskins.FormMgr.updateFormTimeExecutor")}else null!=com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",e,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,a)},com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatCobrowseMessageHandler}(),function(){for(var t in y(5306),com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION),this.xssModule=y(8924)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatCommunicationMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler.prototype.processMessage=function(t){var e;(e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS)?t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS):t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_AGENT_ALIAS))||(e=com.inq.flash.client.control.FlashVars.getFlashVars().agentName);var i,n,o,a=com.inq.flash.client.control.FlashVars.getCustomerName(),s=com.inq.flash.client.chatskins.SkinControl.checkMessageForSpecialExpression(t),l=s.text,r="1"==t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY);if(l=this.getFilteredText(l),t.getMessageType()==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_QUEUE){if(com.inq.flash.client.control.WebRTCMgr.setCallQueue(),com.inq.flash.client.control.FlashPeer.onQueueWaitMsg(),!r&&(this.getController().setFlagChatInQueue(!0),!com.inq.flash.client.control.FlashPeer.getQueueMessagingSpecId()))return;i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS),com.inq.utils.Util.isDefaultAgentAlias()&&(e=com.inq.utils.Util.getConfig("defaultAgentAlias","&nbsp;"))}else r&&com.inq.flash.client.control.messagehandlers.NeedWaitHandler.incrementCounter(),i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID);var c=!!i;if(c&&(l.indexOf("http:")>=0||l.indexOf("https:")>=0)&&-1==l.indexOf("href=")&&(l=l.replace(/https?:\/\/[-\w.]+(:\d+)?(\/([-\w.,;/?:@&=+$%#!~*'()]*(\?\S+)?)?)?/g,'<a href="$&" target="_blank">$&</a>')),n=-1,null!=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR)&&(n=parseInt(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR))),o=null==t.getProperty(com.inq.flash.client.data.MessageFields.FORM_DATA)?c?e:a:"",t.getMessageType()==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER||r||(t.getMessageType()==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION&&(c&&"true"!==t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_AUTO_OPENER)?(com.inq.flash.client.control.Incrementality.onInteracted(),com.inq.flash.client.control.Incrementality.onAgentMsg(l)):com.inq.flash.client.control.FlashVars.getCustomerName()===o&&com.inq.flash.client.control.Incrementality.onCustomerMsg(l)),c&&(this.getController().setFlagChatInQueue(!1),com.inq.flash.client.chatskins.FocusMonitor.startTitlebarFlash(),com.inq.flash.client.control.MinimizeManager.lastAgentMessage(l),com.inq.flash.client.chatskins.SndMgr.PlaySound())),r&&c&&com.inq.flash.client.control.MinimizeManager.displayAgentMessageAndCount(l),l=this.handleCustomEventAttributes(l))switch(t.getMessageType()){case com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OUTCOME:case com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER:com.inq.flash.client.chatskins.SkinControl.AddOpenerToChatWindow(e,l,com.inq.flash.client.chatskins.ChatTextArea.AGENT,n,s.expressionList);break;case com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_SYSTEM:var h=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CONTEXT);if(!h||"customerInterface"===h){var m=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CSS_CLASS_NAME);com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",l,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,n,s.expressionList,r,m)}break;default:var u=t.getPropertyAsDate(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP);m=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_EXTERNAL_APP)?com.inq.flash.client.chatskins.ChatTextArea.EXTERNAL_AGENT_CLASS_NAME:com.inq.flash.client.chatskins.ChatTextArea.LIVE_AGENT_CLASS_NAME,this.getController().appendReceivedText(l,o,n,c,s.expressionList,r,m,u),!0===com.inq.flash.client.chatskins.SkinControl.agentImageTypeEnabled&&c&&com.inq.flash.client.chatskins.SkinControl.setAgentImage(com.inq.flash.client.chatskins.SkinControl.LIVE_AGENT)}c&&l&&!1===r&&(l=com.inq.addons.Salesforce.scanMessage(l)),null!=t.getProperty(com.inq.flash.client.data.MessageFields.FORM_DATA)&&this.getController().updateFormFields(t.getProperty(com.inq.flash.client.data.MessageFields.FORM_DATA),t.getProperty(com.inq.flash.client.data.MessageFields.FORM_NAME),t.getProperty(com.inq.flash.client.data.MessageFields.FORM_ID))},com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler.prototype.chat=null,com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatCommunicationMessageHandler}(),com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler,"com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler"),com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler.prototype.processMessage=function(t){if(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DENIED_REASON)!==com.inq.flash.client.data.MessageFields.DATA_CHAT_DENIED_WRONG_REQUEST_FOR_RECONNECT_REASON){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TY_LABEL);null!=e&&"undefined"!=e&&"null"!=e&&(com.inq.flash.client.chatskins.SkinControl.tYImageLabel=e),this.getController().shutdown(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_DENIED),com.inq.flash.client.chatskins.SkinControl.doThankYou(),com.inq.flash.client.chatskins.SkinControl.sendEventToAllAutomatons("onChatDenied"),this.getController().disable()}else this.getController().handleChatLost()},com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatDeniedMessageHandler,function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_EXIT)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler,com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatExitMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler.prototype.processMessage=function(t){var e="true"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CONVERSATION_RESOLVED),i={conversationResolved:e};com.inq.flash.client.control.FlashPeer.setEventDataForSurvey(i);var n=t.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_FORCED_CLOSE);e&&(n||com.inq.flash.client.control.FlashPeer.fireConversationResolvedEvent(),com.inq.flash.client.control.FlashPeer.resetConversationManager());var o=!1;com.inq.flash.client.data.MessageFields.TYPE_CHAT_EXIT===t.getMessageType()&&"client"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_USER_TYPE)?o=!0:com.inq.flash.client.control.FlashPeer.setAgentClosedChat(!0);var a=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TY_LABEL);null!=a&&"undefined"!=a&&"null"!=a?(com.inq.flash.client.chatskins.SkinControl.tYImageLabel=a,com.inq.flash.client.control.FlashVars.setValue("agentExitLine",a)):com.inq.flash.client.chatskins.SkinControl.tYImageLabel="",0==t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID).length||(this.getController().msgcntAtEntry=0,this.getController().clientDisconnect=o||!!n,!this.getController().getChat().isAsyncChat()||!this.getController().getChat().isCiEnabledOnResolve()&&e||n?this.getController().shutdown(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_EXIT):(this.getController().shutdownQuietly(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_EXIT),com.inq.flash.client.chatskins.SkinControl.closeChatSession(),com.inq.flash.client.control.PersistenceManager.ClearValues(),com.inq.flash.client.control.PersistenceManager.reopen()),this.getController().disable(),com.inq.flash.client.control.MinimizeManager.onClose(),com.inq.flash.client.chatskins.SkinControl.keyCount=0,!this.getController().getChat().isAsyncChat()||!this.getController().getChat().isCiEnabledOnResolve()&&e||n||com.inq.flash.client.control.FlashPeer.reinitializeChatWithNewId())},com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatExitMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHATLINE)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler,com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatLineMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler.prototype.processMessage=function(t){t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION),this.getController().processMessage(t)},com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatLineMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_CONNECTED)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler,com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatroomMemberConnectedMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler.prototype.processMessage=function(t){t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHATROOM_MEMBER_TYPE)==com.inq.flash.client.data.MessageFields.DATA_CHATROOM_MEMBER_AGENT&&com.inq.flash.client.control.PersistenceManager.SetValue("va",null,!0,!0),t.getProperty(com.inq.flash.client.data.MessageFields.KEY_OWNER)==com.inq.flash.client.data.MessageFields.DATA_TRUE&&(this.getController().setConnectionAccepted(!0),this.setAgent(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHATROOM_MEMBER_ID),t));var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_IS_REASSIGNMENT_MODE),i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TC_MODE);(i==com.inq.flash.client.data.MessageFields.DATA_TRANSFER||i==com.inq.flash.client.data.MessageFields.DATA_CONFERENCE&&t.getProperty(com.inq.flash.client.data.MessageFields.KEY_SCREENING)==com.inq.flash.client.data.MessageFields.DATA_FALSE||e==com.inq.flash.client.data.MessageFields.DATA_TRUE)&&com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CLIENT_DISPLAY_TEXT),com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY))},com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatroomMemberConnectedMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_LOST)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler,com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatroomMemberLostMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler.prototype.processMessage=function(t){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CLIENT_DISPLAY_TEXT);if(null!=e){var i=StringTools.trim(e);com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",i,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY))}},com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatroomMemberLostMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_OWNER_TRANSFER_RESPONSE)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler,com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatroomOwnerTransferResponseMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler.prototype.processMessage=function(t){var e=StringTools.trim(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_OWNER_ID));"undefined"!=e&&"null"!=e&&this.setAgent(e,t)},com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatroomOwnerTransferResponseMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_TRANSFER_RESPONSE)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse"]=com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse,com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse.__name__=["com","inq","flash","client","control","messagehandlers","ChatroomTransferResponse"],com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse.prototype.processMessage=function(t){var e=StringTools.trim(t.getProperty("client.display.text"));com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",e,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)),this.setAgent(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID),t)},com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatroomTransferResponse}(),com.inq.flash.client.control.messagehandlers.ClientAuthDataMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CLIENT_AUTH_DATA)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientAuthDataMessageHandler,"com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler"),com.inq.flash.client.control.messagehandlers.ClientAuthDataMessageHandler.prototype.processMessage=function(t){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME);null!=e&&com.inq.flash.client.control.FlashVars.setCustomerName(e,!0)},com.inq.flash.client.control.messagehandlers.ClientAuthDataMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ClientAuthDataMessageHandler,function(){for(var t in com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler=function(){this.replaybleCommandsQueue=[],com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CLIENT_COMMAND)},$hxClasses["com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler"]=com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler,com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ClientCommandMessageHandler"],com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.runCommands=function(){for(var t=0;t<this.replaybleCommandsQueue.length;t++)this.processCommand(this.replaybleCommandsQueue[t],!0);this.replaybleCommandsQueue=[]},com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.processCommand=function(t,e){if(com.inq.flash.client.control.FlashPeer.isMultiChatSupported()){var i=t.getProperty(com.inq.flash.client.data.MessageFields.MASTER_WINDOW_ID);if(!e&&""!=i&&i!=com.inq.flash.client.control.FlashVars.getWindowId())return}var n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CLIENT_CMD_PARAM);null!=n&&""!=n||(n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CLIENT_COMMAND_PARAM));var o,a,s=n,l="inqNewWindow",r="client_function";if("hide_input"!=s)if(null!=(a=s.match(/^show_input(\|(.*))?/)))com.inq.flash.client.chatskins.SkinControl.showInput("true"==a[2]);else if(0!=s.indexOf("client_command"))if((o=s.indexOf(" to "))>=0&&(l=HxOverrides.substr(s,o+4,null),s=HxOverrides.substr(s,0,o)),0!=s.indexOf(r)||e)if("xform"!=s){if(!e)if(haxe.Log.trace("doPushPage: extract target "+l,{fileName:"ClientCommandMessageHandler.hx",lineNumber:66,className:"com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler",methodName:"processMessage"}),"skin"!=l)if("forward"!=l)s.indexOf("goToPersistentChat")>=0&&(haxe.Log.trace("CHAT: Frameset Push, closing socket",{fileName:"ClientCommandMessageHandler.hx",lineNumber:107,className:"com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler",methodName:"processMessage"}),this.getController().shutdownQuietly(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CLIENT_COMMAND)),com.inq.flash.client.control.FlashVars.getFlashVars().persistentFrame?this.executeUrlRedirect(s,l):"_inqPersistentChat"==l?com.inq.flash.client.chatskins.SkinControl.enablePersistentChatButtonAndEstablishUrl(s):"flashForm"==l?com.inq.flash.client.chatskins.SkinControl.PushEmbeddedForm():"block-service"==l?com.inq.flash.client.chatskins.SkinControl.blockService(s):this.executeUrlRedirect(s,l);else{if(!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat())return;var c=window.parent;c.focus&&c.focus()}else com.inq.ui.SkinLoader.LoadNewSkin(s)}else{var h=l.split("|"),m=h[0].split("."),u=h.length>1?h[1].split(com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.XFORM_SERVER_PLACEHOLDER).join(com.inq.flash.client.control.FlashPeer.getXFormsDomain()):null,p={type:t.getProperty(com.inq.flash.client.data.MessageFields.KEY_INITIATOR),id:t.getProperty(com.inq.flash.client.data.MessageFields.KEY_INITIATOR_ID)};if(com.inq.flash.client.control.MinimizeManager.lastAgentMessage(null),e&&"video"!==m[0])return;switch(m[0]){case"shrink":com.inq.flash.client.control.XFrameWorker.shrink(m[1]);break;case"grow":com.inq.flash.client.control.XFrameWorker.grow(m[1],u,null,p);break;case"hide":com.inq.flash.client.control.XFrameWorker.hideLayer(m[1]);break;case"show":com.inq.flash.client.control.XFrameWorker.showLayer(m[1],null,u,null,null,p);break;case"video":var d=/\((.*?)\)/.exec(h[0]);if(f=(f=/^(.*?)\(/.exec(m[1]))&&f.length>1?f[1]:null,d&&d.length>1&&f){if(e&&"0"==com.inq.flash.client.control.PersistenceManager.GetValue(XFRAMES,{})[f])return;com.inq.flash.client.control.XFrameWorker.showVideoLayer(f,null,u,null,null,p,d[1])}break;case"iframe":var f;d=/\((.*?)\)/.exec(h[0]),f=(f=/^(.*?)\(/.exec(m[1]))&&f.length>1?f[1]:null,d&&d.length>1&&f&&com.inq.flash.client.control.XFrameWorker.showIFrameLayer(f,null,d[1],null,null,p,d)}}else com.inq.flash.client.chatskins.SkinControl.executeCustomCommand(JSON.stringify({cmdType:r,cmdParam:HxOverrides.substr(s,15,null).trim(),functionName:l.trim()}));else com.inq.flash.client.chatskins.SkinControl.executeCustomCommand(HxOverrides.substr(s,14,null));else com.inq.flash.client.chatskins.SkinControl.hideInput()},com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.executeUrlRedirect=function(t,e){com.inq.flash.client.control.FlashPeer.getRemoveJSInMessages()?this.fireAgentUrlRedirect(t):com.inq.flash.client.chatskins.SkinControl.PushToFrameset(t,e)},com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.processMessage=function(t){"1"==t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)?this.replaybleCommandsQueue.push(t):this.processCommand(t)},com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.fireAgentUrlRedirect=function(t){com.inq.flash.client.control.FlashPeer.isValidHttpUrl(t)?com.inq.flash.client.chatskins.SkinControl.fireCustomEvent("COMMAND-AGENT-REDIRECT",(function(){return{url:t}})):haxe.Log.trace("fireAgentUrlRedirect invalid url given:'"+t+"'")},com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.chat=null,com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler,com.inq.flash.client.control.messagehandlers.ClientCommandMessageHandler.XFORM_SERVER_PLACEHOLDER="${xformsServerUrl}"}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CONTINUE_TRANSITION)},$hxClasses["com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler"]=com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler,com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler.__name__=["com","inq","flash","client","control","messagehandlers","ContinueTransitionHandler"],com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler.prototype.processMessage=function(t){this.getController().acknowledgeChatActive()},com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ContinueTransitionHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.CommandMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_COMMAND)},$hxClasses["com.inq.flash.client.control.messagehandlers.CommandMessageHandler"]=com.inq.flash.client.control.messagehandlers.CommandMessageHandler,com.inq.flash.client.control.messagehandlers.CommandMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","CommandMessageHandler"],com.inq.flash.client.control.messagehandlers.CommandMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.CommandMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.CommandMessageHandler.prototype.processMessage=function(t){t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CLIENT_COMMAND),this.getController().processMessage(t)},com.inq.flash.client.control.messagehandlers.CommandMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.CommandMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.ErrorHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_ERROR)},$hxClasses["com.inq.flash.client.control.messagehandlers.ErrorHandler"]=com.inq.flash.client.control.messagehandlers.ErrorHandler,com.inq.flash.client.control.messagehandlers.ErrorHandler.__name__=["com","inq","flash","client","control","messagehandlers","ErrorHandler"],com.inq.flash.client.control.messagehandlers.ErrorHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ErrorHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ErrorHandler.prototype.processMessage=function(t){haxe.Log.trace("MessageHandler: "+t.getProperty(com.inq.flash.client.data.MessageFields.KEY_ERROR_MSG),{fileName:"ErrorHandler.hx",lineNumber:15,className:"com.inq.flash.client.control.messagehandlers.ErrorHandler",methodName:"processMessage"})},com.inq.flash.client.control.messagehandlers.ErrorHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ErrorHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_STATE_CHANGE)},$hxClasses["com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler"]=com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler,com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","StateChangeMessageHandler"],com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler.prototype.processMessage=function(t){var e=t.getMessageType();switch(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_STATE)){case com.inq.flash.client.data.MessageFields.DATA_STATE_QUEUED:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_NEED_WAIT);break;case com.inq.flash.client.data.MessageFields.DATA_STATE_ASSIGNED:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACCEPTED);var i=this.getController().webOpenerLinkHref;i&&(window.parent.location.href=i);break;case com.inq.flash.client.data.MessageFields.DATA_STATE_CLOSED:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_EXIT);break;case com.inq.flash.client.data.MessageFields.DATA_STATE_TRANSFER:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_TRANSFER_RESPONSE);break;case com.inq.flash.client.data.MessageFields.DATA_STATE_CONFERENCE:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_OWNER_TRANSFER_RESPONSE);break;case com.inq.flash.client.data.MessageFields.DATA_STATE_AGENT_IS_TYPING:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACTIVITY);break;case com.inq.flash.client.data.MessageFields.DATA_STATE_MOVED_TO_ASYNC:t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_AUTHENTICATED_USER_RESPONSE)}e!=t.getMessageType()&&this.getController().processMessage(t)},com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.StateChangeMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.TypingActivityHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACTIVITY),this.sAgentIsTyping=com.inq.utils.Util.getConfig("sAgentIsTyping","Agent is typing"),this.sAgentStoppedTyping=com.inq.utils.Util.getConfig("sAgentStoppedTyping","Agent stopped typing")},$hxClasses["com.inq.flash.client.control.messagehandlers.TypingActivityHandler"]=com.inq.flash.client.control.messagehandlers.TypingActivityHandler,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.__name__=["com","inq","flash","client","control","messagehandlers","TypingActivityHandler"],com.inq.flash.client.control.messagehandlers.TypingActivityHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.processMessage=function(t){var e=com.inq.flash.client.chatskins.SkinControl.cw;switch(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TYPE)){case com.inq.flash.client.data.MessageFields.ACTIVITY_AGENT_TYPING:null!=e&&e.addTranscript("",this.sAgentIsTyping,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS,-1);break;case com.inq.flash.client.data.MessageFields.ACTIVITY_AGENT_STOPPED_TYPING:null!=e&&e.addTranscript("",this.sAgentStoppedTyping,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS,-1);break;case com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_TYPING:com.inq.flash.client.chatskins.SkinControl.userWasTyping=!0;break;case com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_STOPS_TYPING:com.inq.flash.client.chatskins.SkinControl.userWasTyping=!1}com.inq.flash.client.chatskins.FormMgr.updateFormTimeExecutor(e)},com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.sAgentIsTyping=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.sAgentStoppedTyping=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.isEnabled=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.needwaitPeriod=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.needwaitMessage=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.needwaitMessageFirst=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.cntMessage=null,com.inq.flash.client.control.messagehandlers.TypingActivityHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.TypingActivityHandler}(),y(1703),com.inq.flash.messagingframework.Message=function(){this.data={},this.data[com.inq.flash.client.data.MessageFields.KEY_VERSION]="0.05",this.data[com.inq.flash.client.data.MessageFields.WINDOW_ID_PARAM]=com.inq.flash.client.control.FlashVars.getWindowId(),this.initialDataIndex=0},$hxClasses["com.inq.flash.messagingframework.Message"]=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.__name__=["com","inq","flash","messagingframework","Message"],com.inq.flash.messagingframework.Message.prototype.toString=function(){for(var t="",e=com.inq.utils.Util.fields(this.data),i=0,n=e.length;i<n;){var o=e[i++];if(""!=o){var a="";try{null!=this.data[o]&&(a=o+"="+this.data[o]+"\n")}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("bad key: "+o+" error: "+Std.string(t),{fileName:"Message.js",lineNumber:79,className:"com.inq.flash.messagingframework.Message",methodName:"toString"})}t+=a}}return t+"\n"},com.inq.flash.messagingframework.Message.prototype.serializeToURL=function(){var t="";for(var e in this.data)if(e){var i=this.data[e];null!=i&&"function"!=typeof i&&(t+="&"+e+"="+encodeURIComponent(i.toString()))}return t},com.inq.flash.messagingframework.Message.prototype.getMessageType=function(){return this.data[com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TYPE]},com.inq.flash.messagingframework.Message.prototype.isMessageType=function(t){return t===this.getMessageType()},com.inq.flash.messagingframework.Message.prototype.isChatAccepted=function(){return this.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_STATE_CHANGE)&&com.inq.flash.client.data.MessageFields.DATA_STATE_ASSIGNED===this.getProperty(com.inq.flash.client.data.MessageFields.KEY_STATE)||this.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACCEPTED)},com.inq.flash.messagingframework.Message.prototype.isChatTransfer=function(){return this.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_STATE_CHANGE)&&com.inq.flash.client.data.MessageFields.DATA_STATE_TRANSFER===this.getProperty(com.inq.flash.client.data.MessageFields.KEY_STATE)||this.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_TRANSFER_RESPONSE)},com.inq.flash.messagingframework.Message.prototype.isChatConference=function(){return this.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_STATE_CHANGE)&&com.inq.flash.client.data.MessageFields.DATA_STATE_CONFERENCE===this.getProperty(com.inq.flash.client.data.MessageFields.KEY_STATE)||this.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_OWNER_TRANSFER_RESPONSE)},com.inq.flash.messagingframework.Message.prototype.getProperty=function(t){return this.data[t]},com.inq.flash.messagingframework.Message.prototype.getPropertyAsDate=function(t){var e=parseInt(this.getProperty(t));return isNaN(e)?null:new Date(e)},com.inq.flash.messagingframework.Message.prototype.getPropertyAsBoolean=function(t){var e=this.getProperty(t);return!!e&&("boolean"==typeof e?e:com.inq.flash.messagingframework.StringUtils.getBooleanValue(e))},com.inq.flash.messagingframework.Message.prototype.addProperty=function(t,e){this.data[t]=e},com.inq.flash.messagingframework.Message.prototype.addPropertyIfNotNull=function(t,e){null!=e&&(this.data[t]=e)},com.inq.flash.messagingframework.Message.prototype.nextInitialDataIndex=function(){return this.initialDataIndex++},com.inq.flash.messagingframework.Message.prototype.setData=function(t){if("object"==typeof t)this.data=t;else if("string"==typeof t)for(var e=t.split("\n"),i=0;i<e.length;i++)this.addProperty(e[i].slice(0,e[i].indexOf("=")),e[i].slice(e[i].indexOf("=")+1))},com.inq.flash.messagingframework.Message.prototype.setMessageType=function(t){this.data[com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TYPE]=t},com.inq.flash.messagingframework.Message.prototype.setPropertyIfNotNullIfExists=function(t,e){this.getProperty(t)&&this.addPropertyIfNotNull(t,e)},com.inq.flash.messagingframework.Message.prototype.getPropertyValue=com.inq.flash.messagingframework.Message.prototype.getProperty,com.inq.flash.messagingframework.Message.prototype.getPropertyValueAsBoolean=com.inq.flash.messagingframework.Message.prototype.getPropertyAsBoolean,com.inq.flash.messagingframework.Message.prototype.postSend=null,com.inq.flash.messagingframework.Message.prototype.data=null,com.inq.flash.messagingframework.Message.prototype.initialDataIndex=null,com.inq.flash.messagingframework.Message.prototype.__class__=com.inq.flash.messagingframework.Message,com.inq.flash.client.chatskins.CoBrowseMgr=function(){},com.inq.flash.client.chatskins.CoBrowseMgr.init=function(){function t(t){return com.inq.flash.client.control.FlashPeer.getLocalizedMessage(t)}com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsCobrowse=t("customerAcceptsCobrowse"),com.inq.flash.client.chatskins.CoBrowseMgr.customerDeclinesCobrowse=t("customerDeclinesCobrowse"),com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsSharedControl=t("customerAcceptsSharedControl"),com.inq.flash.client.chatskins.CoBrowseMgr.customerDeclinesSharedControl=t("customerDeclinesSharedControl"),com.inq.flash.client.chatskins.CoBrowseMgr.customerEndCobrowseSession=t("customerEndCobrowseSession"),com.inq.flash.client.chatskins.CoBrowseMgr.agentEndCobrowseSession=t("agentEndCobrowseSession"),com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseUnexpectedFail=t("cobrowseUnexpectedFail"),com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseSuppressed=t("cobrowseSuppressed"),com.inq.flash.client.chatskins.CoBrowseMgr.notSupportedBrowser="CoBrowse cannot be accepted because the client browser is not supported.",com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseTestSuccess=com.inq.utils.Util.getConfig("cobrowseTestSuccessMsg",t("cobrowseTestSuccess")),com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseTestFail=com.inq.utils.Util.getConfig("cobrowseTestFailMsg",t("cobrowseTestFail")),com.inq.flash.client.control.FlashPeer.setCiFunction("ciAcceptCobInv",com.inq.flash.client.chatskins.CoBrowseMgr.acceptCobInv),com.inq.flash.client.control.FlashPeer.setCiFunction("ciDeclineCobInv",com.inq.flash.client.chatskins.CoBrowseMgr.declineCobInv),com.inq.flash.client.control.FlashPeer.setCiFunction("ciAcceptCobShareInv",com.inq.flash.client.chatskins.CoBrowseMgr.acceptCobShareInv),com.inq.flash.client.control.FlashPeer.setCiFunction("ciDeclineCobShareInv",com.inq.flash.client.chatskins.CoBrowseMgr.declineCobShareInv),com.inq.flash.client.control.FlashPeer.setCiFunction("ciCheckCobrowseMgrAvalibility",(function(){return!0})),com.inq.flash.client.control.FlashPeer.setCiFunction("ciAgentEndsCob",com.inq.flash.client.chatskins.CoBrowseMgr.agentEndsCob),com.inq.flash.client.control.FlashPeer.setCiFunction("ciSendCobrowseEnded",com.inq.flash.client.chatskins.CoBrowseMgr.sendCobrowseEnded),com.inq.flash.client.control.FlashPeer.setCiFunction("ciSendMessageQuietly",com.inq.flash.client.chatskins.CoBrowseMgr.sendMessageQuietly),com.inq.flash.client.control.FlashPeer.setCiFunction("ciFocusCobEndBtn",com.inq.flash.client.chatskins.CoBrowseMgr.focusCobEndBtn),com.inq.flash.client.control.FlashPeer.setCiFunction("ciCobrowseSuppressedPage",com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseSuppressedPage),com.inq.flash.client.control.FlashPeer.setCiFunction("ciCobrowseFailHandler",com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseFailHandler),com.inq.flash.client.control.FlashPeer.setCiFunction("ciSendResultOfBenchmarkTest",com.inq.flash.client.chatskins.CoBrowseMgr.sendResultOfBenchmarkTest),com.inq.flash.client.control.FlashPeer.setCiFunction("ciSetFocusOnChatInputField",com.inq.flash.client.chatskins.CoBrowseMgr.setFocusOnChatInputField),com.inq.flash.client.control.FlashPeer.setCiFunction("ciGetCobEndButtonID",com.inq.flash.client.chatskins.CoBrowseMgr.getCobEndButtonID),com.inq.utils.Util.publish("ciAcceptCobInv",com.inq.flash.client.chatskins.CoBrowseMgr.acceptCobInv),com.inq.utils.Util.publish("ciDeclineCobInv",com.inq.flash.client.chatskins.CoBrowseMgr.declineCobInv),com.inq.utils.Util.publish("ciAcceptCobShareInv",com.inq.flash.client.chatskins.CoBrowseMgr.acceptCobShareInv),com.inq.utils.Util.publish("ciDeclineCobShareInv",com.inq.flash.client.chatskins.CoBrowseMgr.declineCobShareInv),com.inq.utils.Util.publish("ciActionBtnCloseChat",com.inq.flash.client.chatskins.CoBrowseMgr.closeChat),com.inq.utils.Util.publish("ciActionRestoreAndExitChat",com.inq.flash.client.chatskins.CoBrowseMgr.restoreAndExitChat),com.inq.utils.Util.publish("com.inq.flash.client.chatskins.CoBrowseMgr.stopCob",com.inq.flash.client.chatskins.CoBrowseMgr.stopCob),com.inq.utils.Util.publish("com.inq.flash.client.chatskins.CoBrowseMgr.sendCobrowseEnded",com.inq.flash.client.chatskins.CoBrowseMgr.sendCobrowseEnded),com.inq.utils.Util.publish("com.inq.flash.client.chatskins.CoBrowseMgr.setFocusOnChatInputField",com.inq.flash.client.chatskins.CoBrowseMgr.setFocusOnChatInputField),com.inq.flash.client.chatskins.CoBrowseMgr.cobEndButtonID=com.inq.utils.Util.getConfig("cobEndButtonID","tcChat_cobend"),com.inq.flash.client.chatskins.CoBrowseMgr.btnCobEndHTML=com.inq.utils.Util.getConfig("cobEndButton",""),Inq&&Inq.CBC&&"function"==typeof Inq.CBC.resetCSQ&&Inq.CBC.resetCSQ()},com.inq.flash.client.chatskins.CoBrowseMgr.getCobEndButtonID=function(){return com.inq.flash.client.chatskins.CoBrowseMgr.cobEndButtonID},com.inq.flash.client.chatskins.CoBrowseMgr.ariaCobStart=function(t){var e=com.inq.flash.client.chatskins.CoBrowseMgr;e.addCobEndButton(),!0!==com.inq.flash.client.control.MinimizeManager.minimized&&com.inq.flash.client.chatskins.SkinControl.hideModalWindow(!1),com.inq.utils.Capabilities.isPhone()&&"1"!=t&&window.setTimeout((function(){e.focusMinimizedBtn()}),5e3)},com.inq.flash.client.chatskins.CoBrowseMgr.ariaCobEnd=function(){com.inq.flash.client.chatskins.CoBrowseMgr.removeCobEndButton(),!0!==com.inq.flash.client.control.MinimizeManager.minimized&&com.inq.flash.client.chatskins.SkinControl.hideModalWindow(!0)},com.inq.flash.client.chatskins.CoBrowseMgr.addCobEndButton=function(){if(com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&null==document.getElementById(com.inq.flash.client.chatskins.CoBrowseMgr.cobEndButtonID)){var t=document.createElement("div");t.innerHTML=com.inq.flash.client.chatskins.CoBrowseMgr.btnCobEndHTML;var e=document.getElementById("chat");e&&e.appendChild(t)}com.inq.aria.AriaMsg.addAriaMsg(com.inq.utils.Util.getConfig("cobSessionStartMsg","You're being assisted"))},com.inq.flash.client.chatskins.CoBrowseMgr.closeChat=function(t){com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(t)},com.inq.flash.client.chatskins.CoBrowseMgr.restoreAndExitChat=function(t){com.inq.flash.client.chatskins.SkinControl.actionRestoreAndExitChat(t)},com.inq.flash.client.chatskins.CoBrowseMgr.removeCobEndButton=function(){var t=document.getElementById(com.inq.flash.client.chatskins.CoBrowseMgr.cobEndButtonID);if(null!=t)try{var e=t.parentNode;e.parentNode.removeChild(e)}catch(e){t.parentNode.style.display="none"}},com.inq.flash.client.chatskins.CoBrowseMgr.stopCob=function(){Inq.CBM&&(Inq.CBM.endCobrowse(),com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&Application.application.setFocusOnInputField())},com.inq.flash.client.chatskins.CoBrowseMgr.setFocusOnChatInputField=function(){com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&com.inq.utils.Util.isIE||Application.application.setFocusOnInputField()},com.inq.flash.client.chatskins.CoBrowseMgr.sendResultOfBenchmarkTest=function(t){Application.application.applicationController.sendCoBrowseMessageQuietly(t,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_PERFORMANCE_TEST)},com.inq.flash.client.chatskins.CoBrowseMgr._isConnectionExist=function(){try{return Application.application.applicationController.isConnected()}catch(t){return!1}},com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseFailHandler=function(t){t||(t=com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseUnexpectedFail),com.inq.flash.client.control.FlashPeer.isCobrowseEngaged()&&com.inq.flash.client.control.FlashPeer.endCob();var e=!1;return com.inq.flash.client.chatskins.CoBrowseMgr._isConnectionExist()&&(Application.application.applicationController.sendCoBrowseMessageQuietly(t,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_END),e=!0),e},com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseSuppressedPage=function(){return!!com.inq.flash.client.chatskins.CoBrowseMgr._isConnectionExist()&&(Application.application.applicationController.sendCoBrowseMessageQuietly(com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseSuppressed,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_SUPPRESSED),!0)},com.inq.flash.client.chatskins.CoBrowseMgr.getCobrowseEnableHighlight=function(){try{return Inq.getEnableHighlight()}catch(t){return haxe.Log.trace(t,{fileName:"CobrowseMgr.js",lineNumber:160,className:"com.inq.flash.client.chatskins.CoBrowseMgr",methodName:"getCobrowseEnableHighlight"}),!0}},com.inq.flash.client.chatskins.CoBrowseMgr.getCobrowseEnableMinimizeRestore=function(){try{if(com.inq.utils.Capabilities.isMobile()&&com.inq.flash.client.control.FlashPeer.getCobrowseEnableMinimizeRestore())return!0}catch(t){haxe.Log.trace(t,{fileName:"CobrowseMgr.js",lineNumber:212,className:"com.inq.flash.client.chatskins.CoBrowseMgr",methodName:"getCobrowseEnableMinimizeRestore"})}return!1},com.inq.flash.client.chatskins.CoBrowseMgr.showCobBanner=function(){!com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&Inq.CBM&&Inq.CBM.banner&&(Inq.CBM.banner.show(),window.setTimeout(com.inq.flash.client.chatskins.CoBrowseMgr.focusCobEndBtn,500))},com.inq.flash.client.chatskins.CoBrowseMgr.focusCobEndBtn=function(){var t=com.inq.ui.Container._getElementById("tcChat_cobend",window.parent.document);null!=t&&t.focus()},com.inq.flash.client.chatskins.CoBrowseMgr.focusMinimizedBtn=function(){var t=Application.application,e=t.getButton("minimize")||t.getButton("btnMinimize");null!=e&&e.setImageFocus()},com.inq.flash.client.chatskins.CoBrowseMgr.acceptCobInv=function(t){com.inq.flash.client.control.FlashPeer.isCobrowseEngaged()||com.inq.flash.client.chatskins.CoBrowseMgr.isSupportedBrowser()&&(Application.application.applicationController.sendCoBrowseMessage(com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsCobrowse,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT,com.inq.flash.client.chatskins.CoBrowseMgr.getCobrowseEnableHighlight(),com.inq.flash.client.chatskins.CoBrowseMgr.getCobrowseEnableMinimizeRestore()),com.inq.flash.client.chatskins.CoBrowseMgr.showCobBanner(),com.inq.flash.client.control.FlashPeer.acceptCobInvSafe(t))},com.inq.flash.client.chatskins.CoBrowseMgr.declineCobInv=function(t){var e=com.inq.utils.Capabilities;(e.isIphone()||e.isIpad())&&t&&t.preventDefault(),Application.application.setTextFieldfocus(),com.inq.flash.client.control.FlashPeer.isCobrowseEngaged()||Application.application.applicationController.sendCoBrowseMessage(com.inq.flash.client.chatskins.CoBrowseMgr.customerDeclinesCobrowse,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_DECLINE)},com.inq.flash.client.chatskins.CoBrowseMgr.acceptCobShareInv=function(t){com.inq.flash.client.control.FlashPeer.isCobrowseSharedControl()||com.inq.flash.client.chatskins.CoBrowseMgr.isSupportedBrowser()&&(Application.application.applicationController.sendCoBrowseMessage(com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsSharedControl,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT_SHARE,com.inq.flash.client.chatskins.CoBrowseMgr.getCobrowseEnableHighlight(),com.inq.flash.client.chatskins.CoBrowseMgr.getCobrowseEnableMinimizeRestore()),com.inq.flash.client.chatskins.CoBrowseMgr.showCobBanner(),com.inq.flash.client.control.FlashPeer.acceptCobShareInv(t))},com.inq.flash.client.chatskins.CoBrowseMgr.declineCobShareInv=function(t){var e=com.inq.utils.Capabilities;(e.isIphone()||e.isIpad())&&t&&t.preventDefault(),Application.application.setTextFieldfocus(),com.inq.flash.client.control.FlashPeer.isCobrowseSharedControl()||Application.application.applicationController.sendCoBrowseMessage(com.inq.flash.client.chatskins.CoBrowseMgr.customerDeclinesSharedControl,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_DECLINE_SHARE)},com.inq.flash.client.chatskins.CoBrowseMgr.endCob=function(){com.inq.flash.client.control.FlashPeer.isCobrowseEngaged()&&(com.inq.flash.client.chatskins.CoBrowseMgr.sendCobrowseEnded(),com.inq.flash.client.control.FlashPeer.endCob())},com.inq.flash.client.chatskins.CoBrowseMgr.agentEndsCob=function(){Application.application.applicationController.sendCoBrowseMessage(com.inq.flash.client.chatskins.CoBrowseMgr.agentEndCobrowseSession,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_END_MESSAGE_FROM_CI),com.inq.flash.client.control.FlashPeer.endCob()},com.inq.flash.client.chatskins.CoBrowseMgr.endCobByEtlEvent=function(t){com.inq.flash.client.control.FlashPeer.isCobrowseEngaged()&&com.inq.flash.client.control.FlashPeer.endCobByEtlEvent(t)},com.inq.flash.client.chatskins.CoBrowseMgr.sendCobrowseEnded=function(){Application.application.applicationController.sendCoBrowseMessage(com.inq.flash.client.chatskins.CoBrowseMgr.customerEndCobrowseSession,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_END)},com.inq.flash.client.chatskins.CoBrowseMgr.sendMessageQuietly=function(t){Application.application.applicationController.sendCoBrowseMessageQuietly(t,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT)},com.inq.flash.client.chatskins.CoBrowseMgr.isSupportedBrowser=function(){var t=!0;try{var e=com.inq.flash.client.control.FlashPeer.getBrowserTypeAndVersion(),i=e[0],n=e[1];"MSIE"===i&&parseInt(n.split(".")[0])<=9&&(t=!1)}catch(e){t=!1}return!1===t&&Application.application.applicationController.sendCoBrowseMessageQuietly(com.inq.flash.client.chatskins.CoBrowseMgr.notSupportedBrowser,com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_END),t},com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsCobrowse=null,com.inq.flash.client.chatskins.CoBrowseMgr.customerDeclinesCobrowse=null,com.inq.flash.client.chatskins.CoBrowseMgr.customerAcceptsSharedControl=null,com.inq.flash.client.chatskins.CoBrowseMgr.customerDeclinesSharedControl=null,com.inq.flash.client.chatskins.CoBrowseMgr.customerEndCobrowseSession=null,com.inq.flash.client.chatskins.CoBrowseMgr.agentEndCobrowseSession=null,com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseUnexpectedFail=null,com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseSuppressed=null,com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseTestSuccess=null,com.inq.flash.client.chatskins.CoBrowseMgr.cobrowseTestFail=null,com.inq.flash.client.data||(com.inq.flash.client.data={}),function(){for(var t in com.inq.flash.client.data.ChatCommunicationMessage=function(t,e,i){var n="";if(com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA,e),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"1"),i&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME,t.getUsername()),null!=e){if(e.toLowerCase()===com.inq.flash.client.data.MessageFields.KEY_CHAT_INFO){var o=com.inq.flash.client.control.FlashPeer.getBusinessUnitDisplayName()||com.inq.flash.client.control.FlashPeer.getBusinessUnitName()||"",a=com.inq.flash.client.control.FlashPeer.getAgentGroupDisplayName()||com.inq.flash.client.control.FlashPeer.getAgentGroupName()||"";n+="Chat Info<br/>Engagement ID: "+t.getChatID()+"<br/>Agent ID: "+com.inq.flash.client.control.FlashPeer.getAgentID()+"<br/>Business Unit: "+o+"<br/>Agent Group: "+a+"<br/>Business Rule: "+com.inq.flash.client.control.FlashPeer.getBrName()+"<br/>Page Marker: "+com.inq.flash.client.control.FlashPeer.getPageMarker()}else if(e.toLowerCase().startsWith(com.inq.flash.client.data.MessageFields.KEY_SWITCH_DEBUG)){var s=e.substring(com.inq.flash.client.data.MessageFields.KEY_SWITCH_DEBUG.length+1).split(":");n=com.inq.flash.client.control.FlashPeer.debugSwitchForModule(s[0],com.inq.flash.messagingframework.StringUtils.getBooleanValue(s[1]))?"Switched debugging logs for module "+s[0]+" to "+s[1]:"Debug wasn't enabled, because module:"+s[0]+" is absent or value:"+s[1]+" isn't boolean"}n&&com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",n,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1)}},$hxClasses["com.inq.flash.client.data.ChatCommunicationMessage"]=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationMessage.__name__=["com","inq","flash","client","data","ChatCommunicationMessage"],com.inq.flash.client.data.ChatCommunicationMessage.__super__=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatCommunicationMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatCommunicationMessage.prototype.__class__=com.inq.flash.client.data.ChatCommunicationMessage}(),function(){for(var t in com.inq.flash.client.data.CallCommunicationMessage=function(t,e){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CALL_ENABLED,"true")},$hxClasses["com.inq.flash.client.data.CallCommunicationMessage"]=com.inq.flash.client.data.CallCommunicationMessage,com.inq.flash.client.data.CallCommunicationMessage.__name__=["com","inq","flash","client","data","CallCommunicationMessage"],com.inq.flash.client.data.CallCommunicationMessage.__super__=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationMessage.prototype)com.inq.flash.client.data.CallCommunicationMessage.prototype[t]=com.inq.flash.client.data.ChatCommunicationMessage.prototype[t];com.inq.flash.client.data.CallCommunicationMessage.prototype.__class__=com.inq.flash.client.data.CallCommunicationMessage}(),com.inq.flash.client.data.Chat=function(){this.transcript=new Array,this.chatID=com.inq.flash.client.control.FlashVars.getValue("chatID"),this.siteID=com.inq.flash.client.control.FlashVars.getValue("siteID"),this.restoreChatEnagageParams(),this.agentName=null==com.inq.flash.client.control.FlashVars.getValue("agentName")||"null"==com.inq.flash.client.control.FlashVars.getValue("agentName")||""==StringTools.trim(com.inq.flash.client.control.FlashVars.getValue("agentName"))?"Jessica":com.inq.flash.client.control.FlashVars.getValue("agentName"),this.useAgentAlias=com.inq.flash.client.control.FlashVars.getValue("useAgentAlias"),this.overrideChatTheme=com.inq.flash.client.control.FlashVars.getValue("overrideChatTheme"),this.scriptID=com.inq.flash.client.control.FlashVars.getValue("scriptID"),this.chatTitle=com.inq.flash.client.control.FlashVars.getValue("chatTitle"),this.brID=com.inq.flash.client.control.FlashVars.getValue("brID"),this.uniqueAgentName=com.inq.flash.client.control.FlashVars.getValue("uniqueAgentName"),this.publicUserId=com.inq.flash.client.control.FlashVars.getValue("publicUserId"),this.language=com.inq.flash.client.control.FlashVars.getValue("language"),this.launchPageMarker=com.inq.flash.client.control.FlashVars.getValue("launchPageMarker"),this.launchPageId=com.inq.flash.client.control.FlashVars.getValue("launchPageId"),this.launchType=com.inq.flash.client.control.FlashVars.getValue("launchType"),this.deviceType=com.inq.flash.client.control.FlashVars.getValue("deviceType"),this.browserType=com.inq.flash.client.control.FlashVars.getValue("browserType"),this.browserVersion=com.inq.flash.client.control.FlashVars.getValue("browserVersion"),this.operatingSystemType=com.inq.flash.client.control.FlashVars.getValue("operatingSystemType"),this.incAssignmentID=com.inq.flash.client.control.FlashVars.getValue("incAssignmentID"),this.sessionID=com.inq.flash.client.control.FlashVars.getValue("sessionID"),this.thisCustomerID=com.inq.flash.client.control.FlashVars.getValue("customerID"),this.queueThreshold=com.inq.flash.client.control.FlashVars.getValue("qt"),this.fallbackAgentGroupEnabled=com.inq.flash.client.control.FlashVars.getValue("config.fallback-agent-group-enabled"),this.thisParticipantName=com.inq.flash.client.control.FlashVars.getCustomerName(),this.asyncChat=!!parseInt(com.inq.flash.client.control.FlashVars.getValue("asyncChat")),this.sendChatRequestOnDemand=!!parseInt(com.inq.flash.client.control.FlashVars.getValue("sendChatRequestOnDemand")),this.userObject=com.inq.flash.client.control.FlashVars.getValue("userObject"),null!=com.inq.flash.client.control.FlashVars.getValue("agentAttributes")&&(this.agentAttributes=com.inq.flash.client.control.FlashVars.getValue("agentAttributes")),null!=com.inq.flash.client.control.FlashVars.getValue("ruleAttributes")&&(this.ruleAttributes=com.inq.flash.client.control.FlashVars.getValue("ruleAttributes")),null!=com.inq.flash.client.control.FlashVars.getValue("automatonId")&&(this.automatonId=com.inq.flash.client.control.FlashVars.getValue("automatonId"),this.automatonFields=com.inq.flash.client.control.FlashVars.getValue("automatonFields")),null!=com.inq.flash.client.control.FlashVars.getValue("externalCustomerIDs")&&(this.externalCustomerIDs=com.inq.flash.client.control.FlashVars.getValue("externalCustomerIDs")),this.asyncChat&&null!=com.inq.flash.client.control.FlashVars.getValue("asyncSurveySpecID")&&(this.asyncSurveySpecID=com.inq.flash.client.control.FlashVars.getValue("asyncSurveySpecID")),null!=com.inq.flash.client.control.FlashVars.getValue("pushNotificationDeviceID")&&(this.pushNotificationDeviceID=com.inq.flash.client.control.FlashVars.getValue("pushNotificationDeviceID")),null!=com.inq.flash.client.control.FlashVars.getValue("showOpenerForEndedConversation")&&(this.showOpenerForEndedConversation=com.inq.flash.client.control.FlashVars.getBooleanValue("showOpenerForEndedConversation")),null!=com.inq.flash.client.control.FlashVars.getValue("ciEnabledOnResolve")&&(this.ciEnabledOnResolve=com.inq.flash.client.control.FlashVars.getBooleanValue("ciEnabledOnResolve")),null!=com.inq.flash.client.control.FlashVars.getValue("asyncReconnect")&&(this.asyncReconnect=com.inq.flash.client.control.FlashVars.getBooleanValue("asyncReconnect")),this.asyncChat&&null!=com.inq.flash.client.control.FlashVars.getValue("createNewConversation")&&(this.createNewConversation=com.inq.flash.client.control.FlashVars.getBooleanValue("createNewConversation")),this.setRoutingAllocSpecs(com.inq.flash.client.control.FlashVars.getValue("routingAllocSpecs")),this.hasAuthorized=!1},$hxClasses["com.inq.flash.client.data.Chat"]=com.inq.flash.client.data.Chat,com.inq.flash.client.data.Chat.__name__=["com","inq","flash","client","data","Chat"],com.inq.flash.client.data.Chat.prototype.restoreChatEnagageParams=function(){var t=com.inq.flash.client.control.PersistenceManager.GetValue(ENGAGE_CHAT_PARAMS,{});t[BUSINESS_UNIT_ID]?this.businessUnitID=t[BUSINESS_UNIT_ID]:this.businessUnitID=com.inq.flash.client.control.FlashVars.getValue("businessUnitID"),t[AGENT_GROUP_ID]?this.agId=t[AGENT_GROUP_ID]:this.agId=com.inq.flash.client.control.FlashVars.getValue("agID")},com.inq.flash.client.data.Chat.prototype.setHasAuthorized=function(t){this.hasAuthorized=t},com.inq.flash.client.data.Chat.prototype.isAsyncChat=function(){return this.asyncChat},com.inq.flash.client.data.Chat.prototype.setAsyncChat=function(t){this.asyncChat=t},com.inq.flash.client.data.Chat.prototype.getUserObject=function(){return this.userObject},com.inq.flash.client.data.Chat.prototype.getAsyncSurveySpecID=function(){return this.asyncSurveySpecID},com.inq.flash.client.data.Chat.prototype.isSendChatRequestOnDemand=function(){return this.sendChatRequestOnDemand},com.inq.flash.client.data.Chat.prototype.getHasAuthorized=function(){return this.hasAuthorized},com.inq.flash.client.data.Chat.prototype.isCiEnabledOnResolve=function(){return this.ciEnabledOnResolve},com.inq.flash.client.data.Chat.prototype.isAsyncReconnect=function(){return this.asyncReconnect},com.inq.flash.client.data.Chat.prototype.setAsyncReconnect=function(t){this.asyncReconnect=t},com.inq.flash.client.data.Chat.prototype.isCreateNewConversation=function(){return this.createNewConversation},com.inq.flash.client.data.Chat.prototype.toString=function(){return"Chat["+this.chatID+"]: site-"+this.siteID+", buID-"+this.businessUnitID+", agentName-"+this.agentName+", scriptID="+this.scriptID+", customerID-"+this.thisCustomerID+", chatTitle-"+this.chatTitle+", brID-"+this.brID},com.inq.flash.client.data.Chat.prototype.addTextToTranscript=function(t,e){var i=new com.inq.flash.messagingframework.TranscriptEntry;null!=e&&(e=""),i.setData(t),""==e?i.setType("sent.message"):(i.setType("received.message"),i.setSender(e)),this.transcript.push(i)},com.inq.flash.client.data.Chat.prototype.setAutomatonId=function(t){this.automatonId=t},com.inq.flash.client.data.Chat.prototype.setAutomatonFields=function(t){this.automatonFields=t},com.inq.flash.client.data.Chat.prototype.getAutomatonFields=function(){return this.automatonFields},com.inq.flash.client.data.Chat.prototype.setRuleAttributes=function(t){this.ruleAttributes=t},com.inq.flash.client.data.Chat.prototype.setAgentAttributes=function(t){this.agentAttributes=t},com.inq.flash.client.data.Chat.prototype.getLanguage=function(){return this.language},com.inq.flash.client.data.Chat.prototype.getExternalCustomerIDs=function(){return this.externalCustomerIDs},com.inq.flash.client.data.Chat.prototype.getOperatingSystemType=function(){return this.operatingSystemType},com.inq.flash.client.data.Chat.prototype.getBrowserVersion=function(){return this.browserVersion},com.inq.flash.client.data.Chat.prototype.getBrowserType=function(){return this.browserType},com.inq.flash.client.data.Chat.prototype.getDeviceType=function(){return this.deviceType},com.inq.flash.client.data.Chat.prototype.getLaunchType=function(){return this.launchType},com.inq.flash.client.data.Chat.prototype.getLaunchPageMarker=function(){return this.launchPageMarker},com.inq.flash.client.data.Chat.prototype.getLaunchPageId=function(){return this.launchPageId},com.inq.flash.client.data.Chat.prototype.getBrID=function(){return this.brID},com.inq.flash.client.data.Chat.prototype.setBusinessUnitID=function(t){this.businessUnitID=t},com.inq.flash.client.data.Chat.prototype.setAgentGroupID=function(t){this.agId=t},com.inq.flash.client.data.Chat.prototype.getAgentGroupID=function(){return this.agId},com.inq.flash.client.data.Chat.prototype.setPublicUserId=function(t){this.publicUserId=t},com.inq.flash.client.data.Chat.prototype.getPublicUserId=function(){return this.publicUserId},com.inq.flash.client.data.Chat.prototype.getUniqueAgentName=function(){return this.uniqueAgentName},com.inq.flash.client.data.Chat.prototype.setAgentName=function(t){this.agentName=t},com.inq.flash.client.data.Chat.prototype.getAutomatonId=function(){return this.automatonId},com.inq.flash.client.data.Chat.prototype.getRuleAttributes=function(){return this.ruleAttributes},com.inq.flash.client.data.Chat.prototype.getVisitorAttributes=function(){return com.inq.flash.client.control.FlashPeer.getVisitorAttributes()},com.inq.flash.client.data.Chat.prototype.getAgentAttributes=function(){return this.agentAttributes},com.inq.flash.client.data.Chat.prototype.getBusinessUnitID=function(){return this.businessUnitID},com.inq.flash.client.data.Chat.prototype.getChatID=function(){return this.chatID},com.inq.flash.client.data.Chat.prototype.getCustomerID=function(){return this.thisCustomerID},com.inq.flash.client.data.Chat.prototype.getSessionId=function(){return this.sessionID},com.inq.flash.client.data.Chat.prototype.getIncAssignmentId=function(){return this.incAssignmentID},com.inq.flash.client.data.Chat.prototype.getAgentName=function(){return this.agentName},com.inq.flash.client.data.Chat.prototype.getUseAgentAlias=function(){return this.useAgentAlias},com.inq.flash.client.data.Chat.prototype.getOverrideChatTheme=function(){return this.overrideChatTheme},com.inq.flash.client.data.Chat.prototype.getScriptID=function(){return this.scriptID},com.inq.flash.client.data.Chat.prototype.setScriptID=function(t){this.scriptID=t},com.inq.flash.client.data.Chat.prototype.getUsername=function(){return com.inq.flash.client.control.FlashVars.getCustomerName()},com.inq.flash.client.data.Chat.prototype.setUsername=function(t){this.thisParticipantName=t},com.inq.flash.client.data.Chat.prototype.getSiteID=function(){return this.siteID},com.inq.flash.client.data.Chat.prototype.getChatTitle=function(){return this.chatTitle},com.inq.flash.client.data.Chat.prototype.getRoutingAllocSpecs=function(){return this.routingAllocSpecs},com.inq.flash.client.data.Chat.prototype.setRoutingAllocSpecs=function(t){"string"==typeof t&&t.length>0&&(this.routingAllocSpecs=t)},com.inq.flash.client.data.Chat.prototype.setQueueThreshold=function(t){this.queueThreshold=t},com.inq.flash.client.data.Chat.prototype.getQueueThreshold=function(){return this.queueThreshold},com.inq.flash.client.data.Chat.prototype.setChatID=function(t){this.chatID=t},com.inq.flash.client.data.Chat.prototype.setCustomerID=function(t){this.thisCustomerID=t},com.inq.flash.client.data.Chat.prototype.hasAuthorized=null,com.inq.flash.client.data.Chat.prototype.automatonId=null,com.inq.flash.client.data.Chat.prototype.automatonFields=null,com.inq.flash.client.data.Chat.prototype.ruleAttributes=null,com.inq.flash.client.data.Chat.prototype.agentAttributes=null,com.inq.flash.client.data.Chat.prototype.transcript=null,com.inq.flash.client.data.Chat.prototype.thisCustomerID=null,com.inq.flash.client.data.Chat.prototype.thisParticipantName=null,com.inq.flash.client.data.Chat.prototype.sessionID=null,com.inq.flash.client.data.Chat.prototype.incAssignmentID=null,com.inq.flash.client.data.Chat.prototype.operatingSystemType=null,com.inq.flash.client.data.Chat.prototype.browserVersion=null,com.inq.flash.client.data.Chat.prototype.browserType=null,com.inq.flash.client.data.Chat.prototype.deviceType=null,com.inq.flash.client.data.Chat.prototype.launchType=null,com.inq.flash.client.data.Chat.prototype.launchPageMarker=null,com.inq.flash.client.data.Chat.prototype.launchPageId=null,com.inq.flash.client.data.Chat.prototype.brID=null,com.inq.flash.client.data.Chat.prototype.chatTitle=null,com.inq.flash.client.data.Chat.prototype.language=null,com.inq.flash.client.data.Chat.prototype.siteID=null,com.inq.flash.client.data.Chat.prototype.agentName=null,com.inq.flash.client.data.Chat.prototype.scriptID=null,com.inq.flash.client.data.Chat.prototype.businessUnitID=null,com.inq.flash.client.data.Chat.prototype.chatID=null,com.inq.flash.client.data.Chat.prototype.agId=null,com.inq.flash.client.data.Chat.prototype.queueThreshold=null,com.inq.flash.client.data.Chat.prototype.publicUserId=null,com.inq.flash.client.data.Chat.prototype.uniqueAgentName=null,com.inq.flash.client.data.Chat.prototype.routingAllocSpecs=null,com.inq.flash.client.data.Chat.prototype.showOpenerForEndedConversation=!1,com.inq.flash.client.data.Chat.prototype.ciEnabledOnResolve=!1,com.inq.flash.client.data.Chat.prototype.asyncReconnect=!1,com.inq.flash.client.data.Chat.prototype.createNewConversation=!1,com.inq.flash.client.data.Chat.prototype.__class__=com.inq.flash.client.data.Chat,com.inq.flash.client.data.Chat.prototype.BEACON_ACTIVATE="ACTIVATE",com.inq.flash.client.data.Chat.prototype.BEACON_DEACTIVATE="DEACTIVATE";!function(){for(var t in com.inq.flash.client.data.ChatActivityMessage=function(t,e,i,n){com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACTIVITY),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_TYPE,e),null!=i&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA,i),void 0===n&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"1")},$hxClasses["com.inq.flash.client.data.ChatActivityMessage"]=com.inq.flash.client.data.ChatActivityMessage,com.inq.flash.client.data.ChatActivityMessage.__name__=["com","inq","flash","client","data","ChatActivityMessage"],com.inq.flash.client.data.ChatActivityMessage.__super__=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatActivityMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatActivityMessage.prototype.__class__=com.inq.flash.client.data.ChatActivityMessage}(),function(){for(var t in com.inq.flash.client.data.ChatAutomatonElementSetMessage=function(t,e,i,n){com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_SETTING),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"1"),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_STATE,n),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_ID,e),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_TYPE,i)},$hxClasses["com.inq.flash.client.data.ChatAutomatonElementSetMessage"]=com.inq.flash.client.data.ChatAutomatonElementSetMessage,com.inq.flash.client.data.ChatAutomatonElementSetMessage.__name__=["com","inq","flash","client","data","ChatAutomatonElementSetMessage"],com.inq.flash.client.data.ChatAutomatonElementSetMessage.__super__=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatAutomatonElementSetMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatAutomatonElementSetMessage.prototype.__class__=com.inq.flash.client.data.ChatAutomatonElementSetMessage}(),function(){for(var t in com.inq.flash.client.data.ChatAutomatonResponseMessage=function(t,e,i){com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_RESPONSE),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_INC_ASSIGNMENT_ID,t.getIncAssignmentId()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_SESSION_ID,t.getSessionId()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_CUSTOMER_ID,t.getCustomerID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_BUSINESS_UNIT_ID,t.getBusinessUnitID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_SITE_ID,t.getSiteID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_EVENT,e),com.inq.flash.client.control.FlashPeer.getCustGeoData()&&(this.addProperty(com.inq.flash.client.data.MessageFields.KEY_COUNTRY_CODE,com.inq.flash.client.control.FlashPeer.getCustGeoData().country_code),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_REGION_CODE,com.inq.flash.client.control.FlashPeer.getCustGeoData().region_code)),i&&(i.type&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_TYPE,i.type),i.id&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_ID,i.id),i.state&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_STATE,i.state),i.model&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA_MODEL,i.model),i.loggedQuestion&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_DT_QUESTION,i.loggedQuestion),i.answerText&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA,i.answerText))},$hxClasses["com.inq.flash.client.data.ChatAutomatonResponseMessage"]=com.inq.flash.client.data.ChatAutomatonResponseMessage,com.inq.flash.client.data.ChatAutomatonResponseMessage.__name__=["com","inq","flash","client","data","ChatAutomatonResponseMessage"],com.inq.flash.client.data.ChatAutomatonResponseMessage.__super__=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatAutomatonResponseMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatAutomatonResponseMessage.prototype.__class__=com.inq.flash.client.data.ChatAutomatonResponseMessage}(),function(){for(var t in com.inq.flash.client.data.ChatAutomatonDataMapMessage=function(t,e){com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA_MAP),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_AUTOMATON_DATA_MAP,e)},$hxClasses["com.inq.flash.client.data.ChatAutomatonDataMapMessage"]=com.inq.flash.client.data.ChatAutomatonDataMapMessage,com.inq.flash.client.data.ChatAutomatonDataMapMessage.__name__=["com","inq","flash","client","data","ChatAutomatonDataMapMessage"],com.inq.flash.client.data.ChatAutomatonDataMapMessage.__super__=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatAutomatonDataMapMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatAutomatonDataMapMessage.prototype.__class__=com.inq.flash.client.data.ChatAutomatonDataMapMessage}(),function(){for(var t in com.inq.flash.client.data.ChatCommunicationCobrowseMessage=function(t,e){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COBROWSE)},$hxClasses["com.inq.flash.client.data.ChatCommunicationCobrowseMessage"]=com.inq.flash.client.data.ChatCommunicationCobrowseMessage,com.inq.flash.client.data.ChatCommunicationCobrowseMessage.__name__=["com","inq","flash","client","data","ChatCommunicationCobrowseMessage"],com.inq.flash.client.data.ChatCommunicationCobrowseMessage.__super__=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationMessage.prototype)com.inq.flash.client.data.ChatCommunicationCobrowseMessage.prototype[t]=com.inq.flash.client.data.ChatCommunicationMessage.prototype[t];com.inq.flash.client.data.ChatCommunicationCobrowseMessage.prototype.__class__=com.inq.flash.client.data.ChatCommunicationCobrowseMessage}(),com.inq.flash.client.data.ChatCommunicationWebCallMessage=function(t,e){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_WEBCALL)},$hxClasses.extend(com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationWebCallMessage,"com.inq.flash.client.data.ChatCommunicationWebCallMessage"),com.inq.flash.client.data.ChatCommunicationWebCallMessage.prototype.__class__=com.inq.flash.client.data.ChatCommunicationWebCallMessage,com.inq.flash.client.data.ChatCommunicationFileUploadMessage=function(t,e){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_FILEUPLOAD)},$hxClasses.extend(com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationFileUploadMessage,"com.inq.flash.client.data.ChatCommunicationFileUploadMessage"),com.inq.flash.client.data.ChatVideoPlayerStatusMessage=function(t,e){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_VIDEOPLAYER_STATUS)},$hxClasses.extend(com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatVideoPlayerStatusMessage,"com.inq.flash.client.data.ChatVideoPlayerStatusMessage"),function(){for(var t in com.inq.flash.client.data.ChatCommunicationOpenerMessage=function(t,e,i,n){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS,i),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,n)},$hxClasses["com.inq.flash.client.data.ChatCommunicationOpenerMessage"]=com.inq.flash.client.data.ChatCommunicationOpenerMessage,com.inq.flash.client.data.ChatCommunicationOpenerMessage.__name__=["com","inq","flash","client","data","ChatCommunicationOpenerMessage"],com.inq.flash.client.data.ChatCommunicationOpenerMessage.__super__=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationMessage.prototype)com.inq.flash.client.data.ChatCommunicationOpenerMessage.prototype[t]=com.inq.flash.client.data.ChatCommunicationMessage.prototype[t];com.inq.flash.client.data.ChatCommunicationOpenerMessage.prototype.__class__=com.inq.flash.client.data.ChatCommunicationOpenerMessage}(),function(){for(var t in com.inq.flash.client.data.ChatCommunicationQueueMessage=function(t,e,i){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_QUEUE),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"1"),null!=i&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS,i)},$hxClasses["com.inq.flash.client.data.ChatCommunicationQueueMessage"]=com.inq.flash.client.data.ChatCommunicationQueueMessage,com.inq.flash.client.data.ChatCommunicationQueueMessage.__name__=["com","inq","flash","client","data","ChatCommunicationQueueMessage"],com.inq.flash.client.data.ChatCommunicationQueueMessage.__super__=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationMessage.prototype)com.inq.flash.client.data.ChatCommunicationQueueMessage.prototype[t]=com.inq.flash.client.data.ChatCommunicationMessage.prototype[t];com.inq.flash.client.data.ChatCommunicationQueueMessage.prototype.__class__=com.inq.flash.client.data.ChatCommunicationQueueMessage}(),com.inq.flash.client.data.ChatCommunicationSystemMessage=function(t,e,i,n,o){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_SYSTEM),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_LINE_NR,i),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CONTEXT,n),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CSS_CLASS_NAME,o)},$hxClasses.extend(com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationSystemMessage,"com.inq.flash.client.data.ChatCommunicationSystemMessage"),function(){for(var t in com.inq.flash.client.data.ChatEngageMessage=function(t,e,i,n){com.inq.flash.client.data.ChatCommunicationMessage.call(this,t,e),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OUTCOME),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS,n),""!=i&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CLIENT_OUTCOME_DATA,i)},$hxClasses["com.inq.flash.client.data.ChatEngageMessage"]=com.inq.flash.client.data.ChatEngageMessage,com.inq.flash.client.data.ChatEngageMessage.__name__=["com","inq","flash","client","data","ChatEngageMessage"],com.inq.flash.client.data.ChatEngageMessage.__super__=com.inq.flash.client.data.ChatCommunicationMessage,com.inq.flash.client.data.ChatCommunicationMessage.prototype)com.inq.flash.client.data.ChatEngageMessage.prototype[t]=com.inq.flash.client.data.ChatCommunicationMessage.prototype[t];com.inq.flash.client.data.ChatEngageMessage.prototype.__class__=com.inq.flash.client.data.ChatEngageMessage}(),function(){for(var t in y(1703),com.inq.flash.client.data.ChatExitMessage=function(t,e){var i,n;com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_EXIT),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t),e||(i=(new Error).stack.substring(0,1e3)),n=e||i,com.inq.flash.client.control.FlashPeer.logInfoToServer("Chat exit message called from "+n+".")},$hxClasses["com.inq.flash.client.data.ChatExitMessage"]=com.inq.flash.client.data.ChatExitMessage,com.inq.flash.client.data.ChatExitMessage.__name__=["com","inq","flash","client","data","ChatExitMessage"],com.inq.flash.client.data.ChatExitMessage.__super__=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatExitMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatExitMessage.prototype.__class__=com.inq.flash.client.data.ChatExitMessage}(),function(){for(var t in com.inq.flash.client.data.ChatRequestMessage=function(t,e,i,n,o,a){com.inq.flash.messagingframework.Message.call(this),a?this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST_RECONNECT):this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CONFIG_QUEUE_MESSAGING_SPEC_ID,com.inq.flash.client.control.FlashPeer.getQueueMessagingSpecId()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_SITE_ID,t.getSiteID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_LANGUAGE,t.getLanguage()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_SCRIPT_ID,t.getScriptID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BUSINESS_UNIT_ID,t.getBusinessUnitID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_TITLE,t.getChatTitle()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BR_ID,t.getBrID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_INC_ASSIGNMENT_ID,t.getIncAssignmentId()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_SESSION_ID,t.getSessionId()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS,t.getAgentName()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_QUEUE_THRESHOLD,t.getQueueThreshold()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_FALLBACK_AGENT_GROUP_ENBLED,t.fallbackAgentGroupEnabled);var s=com.inq.flash.client.control.FlashVars.getAutomatonSpecData()||com.inq.flash.client.control.FlashPeer.getAutomatonDataMap();s&&("object"==typeof s&&(s=JSON.stringify(s)),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_AUTOMATON_DATA_MAP,s));var l=com.inq.flash.client.control.FlashPeer.getPersistentCustomerID();l&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_PERSISTENT_CUSTOMER_ID,l),com.inq.flash.client.control.FlashVars.isSecureWithCustToken()&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_SECURE_CUST_TOKEN,l||""),t.asyncChat&&(this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_IS_ASYNC_ENGAGEMENT,t.isAsyncChat()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_CONVERSATION_CHANNEL,"WEB"),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_ASYNC_SURVEY_SPEC_ID,t.getAsyncSurveySpecID()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_USER_OBJECT,t.getUserObject()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CREATE_NEW_CONVERSATION,t.isCreateNewConversation()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_AUTHENTICATED_USER,com.inq.flash.client.control.FlashPeer.getAuthenticatedUser()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CONV_TOKEN_ID,com.inq.flash.client.control.FlashPeer.getConversationTokenID()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CONV_OBJECT_ID,com.inq.flash.client.control.FlashPeer.getConversationObjectID()));var r=t.getOverrideChatTheme(),c=t.getUseAgentAlias(),h=com.inq.utils.Util.getConfig("useAgentAlias",!1),m=com.inq.flash.client.control.FlashVars.getValue("overrideAgentAlias"),u="true"==r?"true"==c:h;if("true"===m&&(u=!1),u&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_USE_AGENT_ALIAS,com.inq.flash.client.data.MessageFields.DATA_TRUE),!0===u&&"true"!==m){var p=com.inq.flash.client.control.FlashVars.getValue("agentName");com.inq.utils.Util.isDefaultAgentAlias()&&(p=com.inq.utils.Util.getConfig("defaultAgentAlias","&nbsp;")),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS,p)}null!=t.getLaunchPageMarker()&&t.getLaunchPageMarker().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_LAUNCH_PAGE,t.getLaunchPageMarker()),null!=t.getLaunchType()&&t.getLaunchType().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_LAUNCH_TYPE,t.getLaunchType()),null!=t.getDeviceType()&&t.getDeviceType().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_DEVICE_TYPE,t.getDeviceType()),null!=t.getBrowserType()&&t.getBrowserType().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BROWSER_TYPE,t.getBrowserType()),null!=t.getBrowserVersion()&&t.getBrowserVersion().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BROWSER_VERSION,t.getBrowserVersion()),null!=t.getOperatingSystemType()&&t.getOperatingSystemType().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_OPERATING_SYSTEM_TYPE,t.getOperatingSystemType()),null!=t.getExternalCustomerIDs()&&t.getExternalCustomerIDs().length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_EXTERNAL_CUSTOMER_IDS,t.getExternalCustomerIDs()),null!=t.getRoutingAllocSpecs()&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_ROUTING_ALLOC_SPECS,t.getRoutingAllocSpecs()),com.inq.flash.client.control.FlashPeer.getCustGeoData()&&(this.addProperty(com.inq.flash.client.data.MessageFields.KEY_COUNTRY_CODE,com.inq.flash.client.control.FlashPeer.getCustGeoData().country_code),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_REGION_CODE,com.inq.flash.client.control.FlashPeer.getCustGeoData().region_code)),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_AGENT_ATTRIBUTE,t.getAgentAttributes());var d=t.getAgentGroupID();d&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_AGENT_GROUP_ID,d);var f=t.getPublicUserId();if(f)this.addProperty(com.inq.flash.client.data.MessageFields.KEY_PUBLIC_USER_ID,f);else{var g=t.getUniqueAgentName();g&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID,g)}if(this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_VISITOR_ATTRIBUTES,t.getVisitorAttributes()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_RULE_ATTRIBUTES,t.getRuleAttributes()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CUSTOMER_ID,t.getCustomerID()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME,t.getUsername()),null!=i&&i.length>0&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID,i),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_PERSISTENT_FLAG,e?"true":"false"),t.getAutomatonId()>0&&!(o.msgcntAtEntry>0&&com.inq.flash.client.control.FlashPeer.isPersistentWindow())){this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_ID,t.getAutomatonId());var C=function(){var e,i=t.getAutomatonFields();if(i)try{e=JSON.parse(i)}catch(t){haxe.Log.trace("Automaton fields parsing to JSON failed: "+Std.string(t))}var n=com.inq.flash.client.control.FlashPeer.getAutomatonDatapass();if(n){for(var o={},a=0;a<n.length;a++)o[n[a].key]=n[a].value;e||(e={}),e[com.inq.flash.client.data.MessageFields.KEY_DATAPASS]=JSON.stringify(o)}return e}();if(C){var q=0;for(var S in C)this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_FIELD+q+".name",S),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_FIELD+q+++".value",C[S])}this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_LOCATION,JSON.stringify({type:"chat"})),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_INITIATOR,JSON.stringify({type:"br",id:t.brID}))}this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_PAGE_ID,t.getLaunchPageId()),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_TIME_DELTA,n);var _=com.inq.flash.client.control.FlashVars.getValue("agentAutoOpenerId");null!=_&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_AUTO_OPENER_ID,_);var M=com.inq.flash.client.control.PersistenceManager.GetValue(INITIAL_CUSTOMER_ID);M&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_INITIAL_CLIENT_ID_STRING,M),t.pushNotificationDeviceID&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_PUSH_NOTIFICATION_DEVICE_ID,t.pushNotificationDeviceID),com.inq.flash.client.chatskins.SkinControl.topicId&&(this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_TOPIC_ID,com.inq.flash.client.chatskins.SkinControl.topicId),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_TOPICS_ENABLED,com.inq.flash.client.data.MessageFields.DATA_TRUE),com.inq.flash.client.chatskins.SkinControl.topicName&&this.addProperty(com.inq.flash.client.data.MessageFields.KEY_CONFIG_TOPIC_NAME,com.inq.flash.client.chatskins.SkinControl.topicName))},$hxClasses["com.inq.flash.client.data.ChatRequestMessage"]=com.inq.flash.client.data.ChatRequestMessage,com.inq.flash.client.data.ChatRequestMessage.__name__=["com","inq","flash","client","data","ChatRequestMessage"],com.inq.flash.client.data.ChatRequestMessage.__super__=com.inq.flash.messagingframework.Message,com.inq.flash.messagingframework.Message.prototype)com.inq.flash.client.data.ChatRequestMessage.prototype[t]=com.inq.flash.messagingframework.Message.prototype[t];com.inq.flash.client.data.ChatRequestMessage.prototype.__class__=com.inq.flash.client.data.ChatRequestMessage}(),com.inq.flash.client.data.MessageFields={},com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACTIVITY="chat.activity",com.inq.flash.client.data.MessageFields.TYPE_CLIENT_AUTH_DATA="client.auth.data",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION="chat.communication",com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA="chat.communication.automaton_data",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER="chat.communication.opener",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_QUEUE="chat.communication.queue",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_SURVEY="chat.communication.survey",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OUTCOME="chat.communication_outcome",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_SYSTEM="chat.communication_system",com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST="chat.request",com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST_RECONNECT="chat.request.reconnect",com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTHORIZED="chat.authorized",com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACCEPTED="chat.accepted",com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_CONNECTED="chatroom.member_connected",com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_LOST="chatroom.member_lost",com.inq.flash.client.data.MessageFields.TYPE_CHAT_TRANSFER_RESPONSE="chat.transfer_response",com.inq.flash.client.data.MessageFields.TYPE_CHAT_SYSTEM="chat.system",com.inq.flash.client.data.MessageFields.TYPE_AUTHENTICATED_USER_RESPONSE="authenticated.user.response",com.inq.flash.client.data.MessageFields.TYPE_OWNER_TRANSFER_RESPONSE="owner.transfer_response",com.inq.flash.client.data.MessageFields.TYPE_CHAT_EXIT="chat.exit",com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED="chat.denied",com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED_RECONNECT="chat.denied.reconnect",com.inq.flash.client.data.MessageFields.KEY_CHAT_DENIED_REASON="chat.denied.reason",com.inq.flash.client.data.MessageFields.DATA_CHAT_DENIED_WRONG_REQUEST_FOR_RECONNECT_REASON="wrong_request_for_reconnect",com.inq.flash.client.data.MessageFields.TYPE_CLIENT_COMMAND="client.command",com.inq.flash.client.data.MessageFields.TYPE_SYSTEM_DISCONNECT="system.disconnect",com.inq.flash.client.data.MessageFields.TYPE_NINA_COACH_CHAT_TAKE_OVER="nina.coach.chat.take.over",com.inq.flash.client.data.MessageFields.TYPE_SYSTEM="system.",com.inq.flash.client.data.MessageFields.TYPE_ERROR="error",com.inq.flash.client.data.MessageFields.TYPE_CHAT_NEED_WAIT="chat.need_wait",com.inq.flash.client.data.MessageFields.TYPE_PERSISTENT_TRANSITION="chat.per_xtion",com.inq.flash.client.data.MessageFields.TYPE_CONTINUE_TRANSITION="chat.con_xtion",com.inq.flash.client.data.MessageFields.TYPE_GET_PERSISTENT_DOMAIN="chat.get_pers",com.inq.flash.client.data.MessageFields.TYPE_SYNC="sync",com.inq.flash.client.data.MessageFields.TYPE_CHAT_ACTIVE="chat.active",com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_RESPONSE="chat.automaton_response",com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_REQUEST="chat.automaton_request",com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA_MAP="chat.automaton_data_map",com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_SETTING="chat.setting",com.inq.flash.client.data.MessageFields.TYPE_NULL="null",com.inq.flash.client.data.MessageFields.TYPE_CHAT_COBROWSE="chat.cobrowse",com.inq.flash.client.data.MessageFields.TYPE_CHAT_FILEUPLOAD="chat.fileUpload",com.inq.flash.client.data.MessageFields.TYPE_CHAT_VIDEOPLAYER_STATUS="chat.video_player_status",com.inq.flash.client.data.MessageFields.TYPE_ASYNC_UNAUTH_TOKEN_INFO="async.unauth.token.info",com.inq.flash.client.data.MessageFields.KEY_VIDEO_URL="video.url",com.inq.flash.client.data.MessageFields.KEY_VIDEO_ACTION="video.action",com.inq.flash.client.data.MessageFields.TYPE_CHAT_WEBCALL="chat.webCall",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_ENABLED="cobrowse.enabled",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_HIGHLIGHT_ENABLED="cobrowse.highlight.enabled",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_MINIMIZE_RESTORE_ENABLED="cobrowse.minimize.restore.enabled",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT="cobrowse.event",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT="45",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_DECLINE="46",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_ACCEPT_SHARE="47",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_DECLINE_SHARE="48",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_END="49",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE="50",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_SHARED_INVITE="51",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_END="52",com.inq.flash.client.data.MessageFields.KEY_AGENT_TYPE="agentType",com.inq.flash.client.data.MessageFields.DATA_AGENT_TYPE_FLEX="flex",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_END_MESSAGE_FROM_CI="521",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_PERFORMANCE_TEST="53",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_INIT_FAIL="54",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_CLIENT_COBROWSE_SUPPRESSED="55",com.inq.flash.client.data.MessageFields.DATA_CLIENT_VIDEO_ACCEPT="56",com.inq.flash.client.data.MessageFields.DATA_CLIENT_VIDEO_DECLINE="57",com.inq.flash.client.data.MessageFields.DATA_CLIENT_VIDEO_STOP="58",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_ISSUE_PERSIST_ACCESS_TO_MAIN="59",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE_TEST="60",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_INVITE_TEST_RESULT="62",com.inq.flash.client.data.MessageFields.KEY_COBROWSE_EVENT_TYPE_AGENT_COBROWSE_SENT_FAIL_NO_CONNECTION="63",com.inq.flash.client.data.MessageFields.KEY_TY_LABEL="thank_you_image_label",com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_EST_ASSIGN_TIME="waitTime",com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_POS="queueDepth",com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP="messageTimestamp",com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TYPE="messageType",com.inq.flash.client.data.MessageFields.KEY_VERSION="version",com.inq.flash.client.data.MessageFields.KEY_ERROR_MSG="error.msg",com.inq.flash.client.data.MessageFields.KEY_CLIENT_COMMAND_PARAM="messageText",com.inq.flash.client.data.MessageFields.KEY_MESSAGE_DATA="messageData",com.inq.flash.client.data.MessageFields.KEY_CLIENT_CMD_PARAM="chat.cmd",com.inq.flash.client.data.MessageFields.KEY_CHATROUTER_ADDRESS="chatrouter.address",com.inq.flash.client.data.MessageFields.KEY_REASON="reason",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_ID="automaton.id",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_FIELD="automaton.field.",com.inq.flash.client.data.MessageFields.KEY_DATAPASS="datapass",com.inq.flash.client.data.MessageFields.KEY_CLIENT_PAGE_LOCATION="client.page.location",com.inq.flash.client.data.MessageFields.KEY_PAGE_MARKER_ID="page.markerID",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_LOCATION="config.location",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_INITIATOR="config.initiator",com.inq.flash.client.data.MessageFields.KEY_CONFIG_FALLBACK_AGENT_GROUP_ENBLED="config.fallback-agent-group-enabled",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_TYPE="automaton.type",com.inq.flash.client.data.MessageFields.KEY_DT_QUESTION="dt.question",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_STATE="dt.state",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA_MODEL="dt.datamodel",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_EVENT="dt.event",com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA="automaton.data",com.inq.flash.client.data.MessageFields.KEY_CHAT_ID="engagementID",com.inq.flash.client.data.MessageFields.KEY_CLIENT_ID="customerID",com.inq.flash.client.data.MessageFields.KEY_CUSTOMER_ID="customerID",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_PERSISTENT_CUSTOMER_ID="config.persist_cust.id",com.inq.flash.client.data.MessageFields.KEY_AUTHENTICATED_USER="authenticatedUser",com.inq.flash.client.data.MessageFields.KEY_AGENT_ID="agentID",com.inq.flash.client.data.MessageFields.KEY_ADVANCED_AGENT_ID="advancedAgentID",com.inq.flash.client.data.MessageFields.KEY_PUBLIC_USER_ID="public_user_id",com.inq.flash.client.data.MessageFields.KEY_USER_CID="user.cid",com.inq.flash.client.data.MessageFields.KEY_USER_ID="user.id",com.inq.flash.client.data.MessageFields.KEY_INITIATOR="initiator",com.inq.flash.client.data.MessageFields.KEY_INITIATOR_ID="initiator.id",com.inq.flash.client.data.MessageFields.KEY_SITE_ID="config.site_id",com.inq.flash.client.data.MessageFields.KEY_LANGUAGE="config.language",com.inq.flash.client.data.MessageFields.KEY_SCRIPT_ID="config.script_id",com.inq.flash.client.data.MessageFields.KEY_AGENT_AUTO_OPENER_ID="agent_auto_opener_id",com.inq.flash.client.data.MessageFields.KEY_AGENT_AUTO_OPENER="agent_auto_opener",com.inq.flash.client.data.MessageFields.KEY_PROTODOMAIN="pd",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BUSINESS_UNIT_ID="businessUnitID",com.inq.flash.client.data.MessageFields.KEY_CHAT_TITLE="config.chat_title",com.inq.flash.client.data.MessageFields.KEY_BR_ID="businessRuleID",com.inq.flash.client.data.MessageFields.KEY_QUEUE_THRESHOLD="qt",com.inq.flash.client.data.MessageFields.KEY_EXTERNAL_CUSTOMER_IDS="external_customer_ids",com.inq.flash.client.data.MessageFields.KEY_ROUTING_ALLOC_SPECS="routing_alloc_specs",com.inq.flash.client.data.MessageFields.KEY_COUNTRY_CODE="countryCode",com.inq.flash.client.data.MessageFields.KEY_REGION_CODE="regionCode",com.inq.flash.client.data.MessageFields.KEY_AGENT_ALIAS="config.agent_alias",com.inq.flash.client.data.MessageFields.KEY_AGENT_SITE_ATTRS="agent.site_attrs",com.inq.flash.client.data.MessageFields.KEY_USE_AGENT_ALIAS="config.use_agent_alias",com.inq.flash.client.data.MessageFields.KEY_TIME_DELTA="time.delta",com.inq.flash.client.data.MessageFields.KEY_TIME_LOG="time.log",com.inq.flash.client.data.MessageFields.KEY_CONFIG_AGENT_ATTRIBUTE="config.agent_attributes",com.inq.flash.client.data.MessageFields.KEY_CONFIG_AGENT_GROUP_ID="config.agent_group_id",com.inq.flash.client.data.MessageFields.KEY_MESSAGE_AGENT_ALIAS="agent.alias",com.inq.flash.client.data.MessageFields.KEY_MESSAGE_CUSTOMER_QUIET="customer.quiet",com.inq.flash.client.data.MessageFields.KEY_CONFIG_VISITOR_ATTRIBUTES="config.visitor_attributes",com.inq.flash.client.data.MessageFields.KEY_CONFIG_RULE_ATTRIBUTES="config.rule_attributes",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BR_ID="businessRuleID",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_DEVICE_TYPE="config.device_type",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BROWSER_TYPE="config.browser_type",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_BROWSER_VERSION="config.browser_version",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_OPERATING_SYSTEM_TYPE="config.operating_system_type",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_LAUNCH_PAGE="config.launch_page",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_LAUNCH_TYPE="config.launch_type",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_INC_ASSIGNMENT_ID="config.inc_assignment_id",com.inq.flash.client.data.MessageFields.KEY_CONFIG_AUTOMATON_DATA_MAP="config.automaton_data_map",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_SESSION_ID="config.session_id",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_PAGE_ID="config.page_id",com.inq.flash.client.data.MessageFields.KEY_CONFIG_ENTRY_CUSTOMER_ID="config.customer_id",com.inq.flash.client.data.MessageFields.KEY_CONFIG_IS_ASYNC_ENGAGEMENT="config.is_async_engagement",com.inq.flash.client.data.MessageFields.KEY_CONFIG_CONVERSATION_CHANNEL="conversationChannel",com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA="messageText",com.inq.flash.client.data.MessageFields.KEY_CLIENT_OUTCOME_DATA="client.outcome.data",com.inq.flash.client.data.MessageFields.KEY_USERNAME="client.name",com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT="return.receipt",com.inq.flash.client.data.MessageFields.KEY_CLIENT_ECHO="client.echo",com.inq.flash.client.data.MessageFields.KEY_REPLAY="chat.replay",com.inq.flash.client.data.MessageFields.KEY_MSG_AGENT_ALIAS="agent.alias",com.inq.flash.client.data.MessageFields.KEY_EVENT_AGENT_FIRST_NAME="event.agent_first_name",com.inq.flash.client.data.MessageFields.KEY_EVENT_AGENT_LAST_NAME="event.agent_last_name",com.inq.flash.client.data.MessageFields.KEY_EVENT_INITIAL_REQUEST_ATTRIBUTES="event.initial_request_attributes",com.inq.flash.client.data.MessageFields.KEY_EVENT_TRANSFER_REQUEST_ATTRIBUTES="event.transfer_request_attributes",com.inq.flash.client.data.MessageFields.KEY_EVENT_AGENT_IS_VIRTUAL="event.agent_is_virtual",com.inq.flash.client.data.MessageFields.KEY_BUSINESS_UNIT_ID="business_unit.id",com.inq.flash.client.data.MessageFields.KEY_AGENT_GROUP_ID="agentGroupID",com.inq.flash.client.data.MessageFields.KEY_OPENING_SCRIPT="chat.open_script",com.inq.flash.client.data.MessageFields.KEY_PERSISTENT_FLAG="chat.persistent",com.inq.flash.client.data.MessageFields.KEY_INITIAL_CLICKSTREAM_PREFIX="initial_data.",com.inq.flash.client.data.MessageFields.KEY_LINE_NR="sequenceNumber",com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT="cob_test_result",com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT_SUCCESS="success",com.inq.flash.client.data.MessageFields.KEY_COB_TEST_RESULT_FAILURE="failure",com.inq.flash.client.data.MessageFields.KEY_CALL_ENABLED="call.enabled",com.inq.flash.client.data.MessageFields.TYPE_CLICK_2_CALL="call.event",com.inq.flash.client.data.MessageFields.KEY_CALL_STATUS="call.status",com.inq.flash.client.data.MessageFields.KEY_CALL_RESULT="call.result",com.inq.flash.client.data.MessageFields.KEY_CALL_TERMINATED="call.terminated_by_customer",com.inq.flash.client.data.MessageFields.TYPE_CHATLINE="chatLine",com.inq.flash.client.data.MessageFields.TYPE_AGENT_DATA_PASS="agentDataPass",com.inq.flash.client.data.MessageFields.TYPE_VA_DATA_PASS="vaDataPass",com.inq.flash.client.data.MessageFields.TYPE_COMMAND="command",com.inq.flash.client.data.MessageFields.TYPE_STATE_CHANGE="stateChange",com.inq.flash.client.data.MessageFields.KEY_STATE="state",com.inq.flash.client.data.MessageFields.DATA_STATE_QUEUED="queued",com.inq.flash.client.data.MessageFields.DATA_STATE_ASSIGNED="assigned",com.inq.flash.client.data.MessageFields.DATA_STATE_CLOSED="closed",com.inq.flash.client.data.MessageFields.DATA_STATE_TRANSFER="transfer",com.inq.flash.client.data.MessageFields.DATA_STATE_CONFERENCE="conference",com.inq.flash.client.data.MessageFields.DATA_STATE_AGENT_IS_TYPING="agentIsTyping",com.inq.flash.client.data.MessageFields.DATA_STATE_MOVED_TO_ASYNC="movedToAsync",com.inq.flash.client.data.MessageFields.DATA_CHATROOM_MEMBER_AGENT="agent",com.inq.flash.client.data.MessageFields.DATA_CHATROOM_MEMBER_VIRTUAL_AGENT="virtual_agent",com.inq.flash.client.data.MessageFields.KEY_TRANSFER_TO_TC_LIVE_AGENT_DISABLED="transfer_to_tc_live_agent.disabled",com.inq.flash.client.data.MessageFields.KEY_TYPE="type",com.inq.flash.client.data.MessageFields.ACTIVITY_AGENT_TYPING="2",com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_TYPING="3",com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_STOPS_TYPING="4",com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_MINIMIZED="11",com.inq.flash.client.data.MessageFields.ACTIVITY_CUSTOMER_RESTORED="12",com.inq.flash.client.data.MessageFields.ACTIVITY_FILE_UPLOAD_PATH="15",com.inq.flash.client.data.MessageFields.ACTIVITY_AGENT_STOPPED_TYPING="16",com.inq.flash.client.data.MessageFields.KEY_TC_MODE="tc.mode",com.inq.flash.client.data.MessageFields.KEY_OWNER="owner",com.inq.flash.client.data.MessageFields.KEY_OWNER_ID="owner.id",com.inq.flash.client.data.MessageFields.KEY_SCREENING="screening",com.inq.flash.client.data.MessageFields.KEY_CHATROOM_MEMBER_ID="chatroom.member.id",com.inq.flash.client.data.MessageFields.KEY_CHATROOM_MEMBER_TYPE="chatroom.member.type",com.inq.flash.client.data.MessageFields.KEY_CLIENT_DISPLAY_TEXT="client.display.text",com.inq.flash.client.data.MessageFields.KEY_DISPLAY_TEXT="display.text",com.inq.flash.client.data.MessageFields.KEY_IS_REASSIGNMENT_MODE="is_reassignment_mode",com.inq.flash.client.data.MessageFields.DATA_TRANSFER="transfer",com.inq.flash.client.data.MessageFields.DATA_CONFERENCE="conference",com.inq.flash.client.data.MessageFields.DATA_TRUE="true",com.inq.flash.client.data.MessageFields.DATA_FALSE="false",com.inq.flash.client.data.MessageFields.FORM_DATA="form.data",com.inq.flash.client.data.MessageFields.FORM_NAME="form.name",com.inq.flash.client.data.MessageFields.FORM_ID="form.id",com.inq.flash.client.data.MessageFields.DATA_DTID="dtid",com.inq.flash.client.data.MessageFields.DATA_CACHE_ID="cacheId",com.inq.flash.client.data.MessageFields.DATA_LAYER_ID="layerId",com.inq.flash.client.data.MessageFields.CUSTOMER_NAME_INPUT_FIELD="customerNameInputField",com.inq.flash.client.data.MessageFields.KEY_WEBCALL_ACTION="chat.webCall.action",com.inq.flash.client.data.MessageFields.KEY_FILE_DELETE_SETTING="fileDeleteSetting",com.inq.flash.client.data.MessageFields.KEY_CHAT_INFO="/chatinfo",com.inq.flash.client.data.MessageFields.KEY_SWITCH_DEBUG="/debug",com.inq.flash.client.data.MessageFields.WINDOW_ID_PARAM="windowId",com.inq.flash.client.data.MessageFields.MASTER_WINDOW_ID="masterWindowId",com.inq.flash.client.data.MessageFields.KEY_CSS_CLASS_NAME="css.class_name",com.inq.flash.client.data.MessageFields.KEY_EXTERNAL_APP="external.app",com.inq.flash.client.data.MessageFields.KEY_CONTEXT="context",com.inq.flash.client.data.MessageFields.KEY_INITIAL_CLIENT_ID_STRING="config.initial_customer.id",com.inq.flash.client.data.MessageFields.KEY_PUSH_NOTIFICATION_DEVICE_ID="push_notification_device.id",com.inq.flash.client.data.MessageFields.KEY_CONVERSATION_RESOLVED="conversation_resolved",com.inq.flash.client.data.MessageFields.KEY_CONVERSATION_ID="conversationId",com.inq.flash.client.data.MessageFields.KEY_CONFIG_TOPIC_ID="config.topic_id",com.inq.flash.client.data.MessageFields.KEY_CONFIG_TOPIC_NAME="config.topic_name",com.inq.flash.client.data.MessageFields.KEY_TOPICS_ENABLED="topics_enabled",com.inq.flash.client.data.MessageFields.KEY_USER_TYPE="user.type",com.inq.flash.client.data.MessageFields.KEY_CONFIG_QUEUE_MESSAGING_SPEC_ID="config.queue_messaging_spec_id",com.inq.flash.client.data.MessageFields.KEY_ASYNC_SURVEY_SPEC_ID="async.survey.spec.id",com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA_HIDDEN_FOR_CUSTOMER="chat.data.hidden.from.customer",com.inq.flash.client.data.MessageFields.KEY_SECURE_WITH_CUST_TOKEN="secureWithCustToken",com.inq.flash.client.data.MessageFields.KEY_SECURE_CUST_TOKEN="secureCustToken",com.inq.flash.client.data.MessageFields.KEY_USER_OBJECT="user_object",com.inq.flash.client.data.MessageFields.KEY_FOR_RECONNECT="for_reconnect",com.inq.flash.client.data.MessageFields.KEY_CREATE_NEW_CONVERSATION="create_new_conversation",com.inq.flash.client.data.MessageFields.KEY_FORCED_CLOSE="forced_close",com.inq.flash.client.data.MessageFields.KEY_CONV_OBJECT_ID="conversation.objectID",com.inq.flash.client.data.MessageFields.KEY_CONV_TOKEN_ID="conversation.tokenID",com.inq.flash.client.data.MessageFields.KEY_LAST_AGENT_ASSIGNED_MESSAGE="last_agent_assigned_message",com.inq.flash.client.data.MessageFields.KEY_TOKEN_ID="tokenId",com.inq.flash.client.data.MessageFields.KEY_CHAT_REINITIED="ChatReInited",y(1703),com.inq.flash.messagingframework.FlashMessagingFramework=function(t){haxe.Log.trace("entered",{fileName:"FlashMessagingFramework.hx",lineNumber:60,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"new"}),this.params=[],this.maxConnectionRetries=100,this.connectionHandlerAttemptIndex=-1,haxe.Log.trace("request for new MessageRouter()",{fileName:"FlashMessagingFramework.hx",lineNumber:64,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"new"}),this.messageRouter=new com.inq.flash.messagingframework.MessageRouter,haxe.Log.trace("requested  new MessageRouter()",{fileName:"FlashMessagingFramework.hx",lineNumber:66,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"new"}),this.applicationConnectionEventHandler=new com.inq.flash.client.control.ClientConnectionEventHandler(t),this.connectionHandlers=[];var e=com.inq.flash.client.control.FlashVars.getValue("submitURL"),i=new com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler(e,com.inq.flash.client.control.FlashVars.getValue("chatID"),this.params,t);this.setupConnection(i,0),haxe.Log.trace("exit",{fileName:"FlashMessagingFramework.hx",lineNumber:112,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"new"})},$hxClasses["com.inq.flash.messagingframework.FlashMessagingFramework"]=com.inq.flash.messagingframework.FlashMessagingFramework,com.inq.flash.messagingframework.FlashMessagingFramework.__name__=["com","inq","flash","messagingframework","FlashMessagingFramework"],com.inq.flash.messagingframework.FlashMessagingFramework.prototype.sendMessage=function(t,e,i){if(haxe.Log.trace("in FMF.sendMessage: "+t.toString(),{fileName:"FlashMessagingFramework.js",lineNumber:86,methodName:"sendMessage",className:"com.inq.flash.messagingframework.FlashMessagingFramework"}),null!=this.selectedConnectionHandler)this.selectedConnectionHandler.sendMessage(t,e,i);else{var n="Message was not sent, selectedConnectionHandler === null. Message: "+t.toString(),o=new Error("FlashMessagingFramework.prototype.sendMessage: no connection handler");com.inq.flash.client.control.FlashPeer.logError(n,o)}},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.startListenForMessages=function(){this.getConnection().listenForMessages()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.getMessages=function(){this.getConnection().getMessages()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.sendCommunicationMessagesFromQueue=function(){this.getConnection().sendCommunicationMessagesFromQueue()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.sendReconnectGetMessage=function(){this.getConnection().sendReconnectGetMessage()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.isConnected=function(){return null!=this.selectedConnectionHandler&&this.selectedConnectionHandler.isConnected()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.isSendMessageFail=function(){if(this.selectedConnectionHandler)return this.selectedConnectionHandler.isSendMessageFail()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype._getResponseTimestamp=function(){if(this.selectedConnectionHandler)return this.selectedConnectionHandler._getResponseTimestamp()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.disconnect=function(t){null!=this.selectedConnectionHandler&&this.selectedConnectionHandler.disconnect(t)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.abortingConnectionAttempt=function(){this.applicationConnectionEventHandler.allConnectionAttemptsFailed()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.connectionFailed=function(){return null!=this.selectedConnectionHandler?(this.connectionRetryAttempts++,this.connectionRetryAttempts<this.maxConnectionRetries?this.applicationConnectionEventHandler.connectionFailedNeedRetryRequest(this.connectionRetryAttempts,this.maxConnectionRetries):(this.abortingConnectionAttempt(),!1)):!!this.applicationConnectionEventHandler.connectionFailedNeedRetryRequest(this.connectionRetryAttempts,this.maxConnectionRetries)&&(this.selectNextConnectionHandler(),!1)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.connectionSuccesful=function(t){this.selectedConnectionHandler=t,this.connectionRetryAttempts=0},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.getConnection=function(){return this.selectedConnectionHandler||null},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.getConnectionType=function(){return null==this.selectedConnectionHandler?null:this.selectedConnectionHandler.getConnectionType()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.selectNextConnectionHandler=function(){if(this.connectionHandlerAttemptIndex++,this.connectionHandlerAttemptIndex>=this.connectionHandlers.length&&(this.connectionHandlerAttemptIndex=0),this.connectionRetryAttempts++,this.connectionRetryAttempts<this.maxConnectionRetries){var t=js.Boot.__cast(this.connectionHandlers[this.connectionHandlerAttemptIndex],com.inq.flash.messagingframework.connectionhandling.ConnectionHandler);null!=this.newHost&&""!=this.newHost&&t.setHost(this.newHost),t.connect()}else this.abortingConnectionAttempt()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.acknowledgePersistentActive=function(t,e,i,n){null!=this.selectedConnectionHandler&&"true"!==com.inq.flash.client.control.FlashVars.getValue("isCachePersistentUsed")&&this.selectedConnectionHandler.acknowledgePersistentActive(t,e,i,n)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.acknowledgeChatActive=function(t){null!=this.selectedConnectionHandler&&this.selectedConnectionHandler.acknowledgeChatActive(t)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.handleChatLost=function(){null!==this.selectedConnectionHandler&&this.selectedConnectionHandler.handleChatLost()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.enable=function(){null!=this.selectedConnectionHandler&&this.selectedConnectionHandler.enable()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.enableForReEngaging=function(){null!=this.selectedConnectionHandler&&this.selectedConnectionHandler.enableForReEngaging()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.disable=function(){null!=this.selectedConnectionHandler&&this.selectedConnectionHandler.disable()},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.connect=function(){haxe.Log.trace("enter connect",{fileName:"FlashMessagingFramework.hx",lineNumber:146,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"connect"}),this.connectionHandlerAttemptIndex=-1,haxe.Log.trace("in FMF connect()",{fileName:"FlashMessagingFramework.hx",lineNumber:148,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"connect"}),null==this.selectedConnectionHandler&&(this.selectedConnectionHandler=this.connectionHandlers[0]),null!=this.selectedConnectionHandler?(haxe.Log.trace("selectedConnectionHandler.connect()",{fileName:"FlashMessagingFramework.hx",lineNumber:153,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"connect"}),this.selectedConnectionHandler.connect()):(haxe.Log.trace("selectNextConnectionHandler()",{fileName:"FlashMessagingFramework.hx",lineNumber:158,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"connect"}),this.selectNextConnectionHandler()),haxe.Log.trace("exit",{fileName:"FlashMessagingFramework.hx",lineNumber:161,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"connect"})},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.registerMessageHandler=function(t){this.messageRouter.registerMessageHandler(t),t.setMessagingFramework(this)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.processMessage=function(t){this.messageRouter.processMessage(t)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.setupConnection=function(t,e){haxe.Log.trace("enter",{fileName:"FlashMessagingFramework.hx",lineNumber:130,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"setupConnection"}),t.setApplicationConnectionEventHandler(this.applicationConnectionEventHandler),t.setMessageRouter(this.messageRouter),t.setMessagingFramework(this),this.connectionHandlers[e]=t,haxe.Log.trace("exit: "+this.connectionHandlers.length,{fileName:"FlashMessagingFramework.hx",lineNumber:136,className:"com.inq.flash.messagingframework.FlashMessagingFramework",methodName:"setupConnection"})},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.setParam=function(t,e){null!=this.selectedConnectionHandler?this.selectedConnectionHandler.setParam(t,e):this.params[t]=e},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.getMessageHandlerByPrefix=function(t){return this.messageRouter.getHandlerByPrefix(t)},com.inq.flash.messagingframework.FlashMessagingFramework.prototype.selectedConnectionHandler=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.connectionHandlerAttemptIndex=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.connectionHandlers=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.newHost=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.params=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.maxConnectionRetries=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.connectionRetryAttempts=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.messageRouter=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.applicationConnectionEventHandler=null,com.inq.flash.messagingframework.FlashMessagingFramework.prototype.__class__=com.inq.flash.messagingframework.FlashMessagingFramework,com.inq.flash.messagingframework.FlashMessagingFramework.CONNECTION_TYPE_HTTP="http",com.inq.flash.messagingframework.MessageRouter=function(){this.handlers=new com.inq.utils.Dictionary},$hxClasses["com.inq.flash.messagingframework.MessageRouter"]=com.inq.flash.messagingframework.MessageRouter,com.inq.flash.messagingframework.MessageRouter.__name__=["com","inq","flash","messagingframework","MessageRouter"],com.inq.flash.messagingframework.MessageRouter.prototype.processMessage=function(t){try{try{if(t.getProperty("engagementID")&&com.inq.flash.client.control.FlashVars.getChatID()!==t.getProperty("engagementID"))return void com.inq.flash.client.control.FlashPeer.logErrorToServer("MessageRouter#processMessage rejects a message. Message info: [chatID: '"+t.getProperty("engagementID")+"', messageType: '"+t.getMessageType()+"' ]. Chat id from FlashVars: "+com.inq.flash.client.control.FlashVars.getChatID())}catch(t){}var e=this.getHandlerByPrefix(t.getMessageType());if(e)try{e.processMessage(t),haxe.Log.trace("handler processed "+t.getMessageType(),{fileName:"MessageRouter.hx",lineNumber:34,className:"com.inq.flash.messagingframework.MessageRouter",methodName:"processMessage"})}catch(t){haxe.Log.trace("handler.processMessage(message) throws "+Std.string(t),{fileName:"MessageRouter.hx",lineNumber:37,className:"com.inq.flash.messagingframework.MessageRouter",methodName:"processMessage",customParams:["error"]})}else haxe.Log.trace("message has no handler;\nmessageType: "+t.getMessageType(),{fileName:"MessageRouter.hx",lineNumber:42,className:"com.inq.flash.messagingframework.MessageRouter",methodName:"processMessage",customParams:["warn"]})}catch(t){haxe.Log.trace("Error: "+Std.string(t),{fileName:"MessageRouter.hx",lineNumber:44,className:"com.inq.flash.messagingframework.MessageRouter",methodName:"processMessage",customParams:["error"]})}},com.inq.flash.messagingframework.MessageRouter.prototype.getHandlerByPrefix=function(t){for(var e=com.inq.utils.Util.fields(this.handlers),i=0;i<e.length;i++){var n=this.handlers[e[i]],o=n.getMessageType();if(0==t.indexOf(o))return n}},com.inq.flash.messagingframework.MessageRouter.prototype.registerMessageHandler=function(t){this.handlers[t.getMessageType()]=t},com.inq.flash.messagingframework.MessageRouter.prototype.handlers=null,com.inq.flash.messagingframework.MessageRouter.prototype.__class__=com.inq.flash.messagingframework.MessageRouter,y(1703),com.inq.flash.messagingframework.StringUtils={},com.inq.flash.messagingframework.StringUtils.__name__=["com","inq","flash","messagingframework","StringUtils"],com.inq.flash.messagingframework.StringUtils.htmlEncode=function(t){return null==t||0==t.length?t:t.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")},com.inq.flash.messagingframework.StringUtils.htmlDecode=function(t){return null==t||0==t.length?t:t.split("&eq;").join("=").split("&lt;").join("<").split("&gt;").join(">").split("&amp;").join("&").split("&quot;").join('"').split("&nl;").join("<br/>")},com.inq.flash.messagingframework.StringUtils.parseQueryString=function(t){var e=new com.inq.utils.Dictionary;try{if(null!=t&&""!=t)for(var i=t.split("&"),n=i.length,o=0,a=-1;o<n;){var s=i[o];if(o++,(a=s.indexOf("="))>0){var l=HxOverrides.substr(s,0,a),r=HxOverrides.substr(s,a+1,null);e[l]=r}}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return e},com.inq.flash.messagingframework.StringUtils.getBooleanValue=function(t){var e=!1,i="";if(null!=t)try{"true"==(i=StringTools.trim(Std.string(t)).toLowerCase())||"false"==i?"true"==i&&(e=!0):0!=Std.parseInt(i)&&(e=!0)}catch(t){e=!1}return e},com.inq.flash.messagingframework.TranscriptEntry=function(){this.timestamp=Math.floor((new Date).getTime()%1e3)},$hxClasses["com.inq.flash.messagingframework.TranscriptEntry"]=com.inq.flash.messagingframework.TranscriptEntry,com.inq.flash.messagingframework.TranscriptEntry.__name__=["com","inq","flash","messagingframework","TranscriptEntry"],com.inq.flash.messagingframework.TranscriptEntry.prototype.getData=function(){return this.data},com.inq.flash.messagingframework.TranscriptEntry.prototype.getType=function(){return this.type},com.inq.flash.messagingframework.TranscriptEntry.prototype.getSender=function(){return this.sender},com.inq.flash.messagingframework.TranscriptEntry.prototype.getTimestamp=function(){return this.timestamp},com.inq.flash.messagingframework.TranscriptEntry.prototype.setData=function(t){this.data=t},com.inq.flash.messagingframework.TranscriptEntry.prototype.setType=function(t){this.type=t},com.inq.flash.messagingframework.TranscriptEntry.prototype.setSender=function(t){this.sender=t},com.inq.flash.messagingframework.TranscriptEntry.prototype.data=null,com.inq.flash.messagingframework.TranscriptEntry.prototype.type=null,com.inq.flash.messagingframework.TranscriptEntry.prototype.sender=null,com.inq.flash.messagingframework.TranscriptEntry.prototype.timestamp=null,com.inq.flash.messagingframework.TranscriptEntry.prototype.__class__=com.inq.flash.messagingframework.TranscriptEntry,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler=function(){},$hxClasses["com.inq.flash.messagingframework.connectionhandling.ConnectionHandler"]=com.inq.flash.messagingframework.connectionhandling.ConnectionHandler,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.__name__=["com","inq","flash","messagingframework","connectionhandling","ConnectionHandler"],com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.acknowledgePersistentActive=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.acknowledgeChatActive=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.enable=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.disable=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.getConnectionType=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.sendMessage=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.isConnected=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.disconnect=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.connect=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.setParam=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.setHost=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.setApplicationConnectionEventHandler=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.setMessagingFramework=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.setMessageRouter=null,com.inq.flash.messagingframework.connectionhandling.ConnectionHandler.prototype.__class__=com.inq.flash.messagingframework.connectionhandling.ConnectionHandler,y(1703),y(5306),com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler=function(t,e,i,n){this.msgCount=0,this.reconnectAttemptsCount=0,this.putSuccessfulResponseCalledCount=0,this.queueMessagesNumber=0,this.params=i,this.connected=!1,this.sendMessageFail=!1,this.chatLost=!1,this._responseTimestamp=0,this._timerSuccessfulPendingConnection=null,this.chatRouterHosts=new Array,this.chatRouterHost=t,this.processMessageQueue=new Array,this.messageQueue=[],this.messagesInProgress={},this.queueKey=0,this.customerID=com.inq.flash.client.control.FlashVars.getValue("customerID"),this.conversationID=com.inq.flash.client.control.FlashVars.getValue("conversationID"),this.forceDisconnected=!1,this.applicationController=n,this.isIE=com.inq.utils.Util.isIE,this.invalidMessageIsLogged=!1,this.setChatID(e);for(var o=t.split(","),a=0;a<o.length;)this.chatRouterHosts[this.chatRouterHosts.length]=o[a],a++;this.getMsgLoader=new com.inq.net.URLLoader(this.customerID,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.GET_MSG_LOADER_TIMEOUT),this.getMsgLoader.addEventListener(com.inq.events.Event.NETWORK_ERROR,$bind(this,this.getNetworkErrorHandler)),this.getMsgLoader.addEventListener(com.inq.events.SecurityErrorEvent.SECURITY_ERROR,$bind(this,this.getRequestSecurityError)),this.getMsgLoader.addEventListener(com.inq.events.HTTPStatusEvent.HTTP_STATUS,$bind(this,this.getMessageHTTPStatus)),this.getMsgLoader.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.getMsgComplete)),this.getMsgLoader.addEventListener(com.inq.events.Event.UNAUTHORIZED,$bind(this,this.handleChatLost)),this.getMsgLoader.addEventListener(com.inq.events.Event.BAD_GATEAWAY,$bind(this,this.handleChatLost)),this.getMsgLoader.addEventListener(com.inq.events.Event.SERVICE_UNAVAILABLE,$bind(this,this.handleChatLost)),this.getMsgLoader.addEventListener(com.inq.events.Event.BAD_REQUEST,$bind(this,this.handleUnauthorizedMessage)),this.getMsgLoader.addWatchDog(this.listenForMessages.bind(this),com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.GET_MSG_WATCH_DOG_TIMEOUT_MS,"listenForMessages"),this.getMsgPreLoader=new com.inq.net.URLLoader(this.customerID,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.GET_MSG_LOADER_TIMEOUT),this.getMsgPreLoader.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.getMsgCompletePreload)),this.getMsgPreLoader.addEventListener(com.inq.events.Event.UNAUTHORIZED,$bind(this,this.handleChatLost)),this.getMsgPreLoader.addEventListener(com.inq.events.Event.BAD_GATEAWAY,$bind(this,this.handleChatLost)),this.getMsgPreLoader.addEventListener(com.inq.events.Event.SERVICE_UNAVAILABLE,$bind(this,this.handleChatLost)),this.getMsgPreLoader.addEventListener(com.inq.events.Event.NETWORK_ERROR,$bind(this,this.getPreloadNetworkErrorHandler)),this.getMsgPreLoader.addEventListener(com.inq.events.Event.BAD_REQUEST,$bind(this,this.handleUnauthorizedMessage)),this.reconnectGetMessageLoader=new com.inq.net.URLLoader(this.customerID,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.GET_MSG_LOADER_TIMEOUT),this.reconnectGetMessageLoader.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.reconnectGetMessageComplete)),this.reconnectGetMessageLoader.addEventListener(com.inq.events.Event.NETWORK_ERROR,$bind(this,this.handleUnauthorizedMessage)),this.reconnectGetMessageLoader.addEventListener(com.inq.events.Event.UNAUTHORIZED,$bind(this,this.handleUnauthorizedMessage)),this.reconnectGetMessageLoader.addEventListener(com.inq.events.Event.BAD_GATEAWAY,$bind(this,this.handleUnauthorizedMessage)),this.reconnectGetMessageLoader.addEventListener(com.inq.events.Event.SERVICE_UNAVAILABLE,$bind(this,this.handleUnauthorizedMessage)),this.reconnectGetMessageLoader.addEventListener(com.inq.events.Event.BAD_REQUEST,$bind(this,this.handleUnauthorizedMessage)),this.useClientProtocol=com.inq.utils.Util.getConfig("useClientProtocol",!1),this.setSelectedHost()},$hxClasses["com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler"]=com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.__name__=["com","inq","flash","messagingframework","connectionhandling","HTTPConnectionHandler"],com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getQueueSize=function(){return this.messageQueue.length},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getQueueFirstItem=function(){return this.messageQueue[0]},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.deleteInProgressMsg=function(t){var e=this.messagesInProgress[t];return delete this.messagesInProgress[t],e&&delete e.key,e},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putMessageHTTPStatus=function(t){},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMessageHTTPStatus=function(t){},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putMsgComplete=function(t){this.successfulResponseHandler(),this.putSuccessfulResponseCalledCount++;var e=this.deleteInProgressMsg(t.currentTarget.key);e&&(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION!==e.msg.getMessageType()&&com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST!==e.msg.getMessageType()||(this.putSuccessfulResponseCalledCount=0,this.sendCommunicationMessagesFromQueue())),this.repeatSendCommunicationMessagesFromQueue(t);var i=t.target.responseStatus;e&&(i>=200&&i<300||304===i?e.onSuccess(t):e.onError(t))},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.sendCommunicationMessagesFromQueue=function(){this.messageQueue.shift();var t=this.getQueueFirstItem();t&&this.putMessage(t)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.repeatSendCommunicationMessagesFromQueue=function(t){if(0===this.getQueueSize())return this.putSuccessfulResponseCalledCount=0,void(this.queueMessagesNumber=0);if(this.getQueueSize()>this.queueMessagesNumber&&this.putSuccessfulResponseCalledCount>com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MAX_NUMBER_OF_PUT_SUCCESSFUL_RESPONSE){var e=this.getQueueFirstItem();if(e.key){var i=e.key,n=this.deleteInProgressMsg(e.key);com.inq.flash.client.control.FlashPeer.logWarningToServer("putMsgComplete was called few times, but queue of customer messages size is not decreased. Queue size: "+this.getQueueSize()+", Event object: "+JSON.stringify(t)+", context key from message queue: "+i+", message from queue: "+e.msg.toString()+", message from progress: "+n.msg.toString()+" will be sent again.")}else com.inq.flash.client.control.FlashPeer.logErrorToServer("First message from queue isn't in progress, so it will be sent one more time. Queue size: "+this.getQueueSize()+", Event object: "+JSON.stringify(t)+", message "+e.msg.toString());com.inq.flash.client.control.FlashPeer.sendNetworkBackup(),this.putSuccessfulResponseCalledCount=0,setTimeout($bind(this,this.putMessage),com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.RETRY_DELAY)}this.queueMessagesNumber=this.getQueueSize()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMsgCompletePreload=function(t){if(this.isUnknownMessage(this.getMsgPreLoader))this.getMessageFailed(t,this.RETRY_DELAY_FOR_INVALID_MESSAGE);else{this.successfulResponseHandler();try{var e=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)>0;this.msgCount=this.getMsgCompleteProcessing(this.getMsgPreLoader,e),this.applicationController.updateDataInStorage(this.msgCount),this.routeQueuedRequests(e)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"HTTPConnectionHandler.hx",lineNumber:907,className:"com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler",methodName:"getMsgCompletePreload",customParams:["error"]})}this.forceDisconnected||(this.listenForMessages(),this.applicationController.showIntroductionAfterPreloadMessages())}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.reconnectGetMessageComplete=function(){if(this.isUnknownMessage(this.reconnectGetMessageLoader))this.handleUnauthorizedMessage();else{this.successfulResponseHandler();try{this.validateReconnectStatus(this.reconnectGetMessageLoader)?(this.reconnectAttemptsCount=0,this.chatLost=!1,this.getMsgCompleteProcessing(this.reconnectGetMessageLoader,!1),this.routeQueuedRequests(!1)):this.reconnectAttemptsCount<com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MAX_NUMBER_OF_RECONNECT?(this.reconnectAttemptsCount++,this.putMessage()):this.handleUnauthorizedMessage(),this.applicationController.updateDataInStorage(this.msgCount)}catch(t){haxe.Log.trace("ERROR: "+Std.string(t),{className:"com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler",methodName:"getMsgCompleteRestore",customParams:["error"]})}}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.validateReconnectStatus=function(t){var e=t.data;if(null!=e&&"object"==typeof e){var i=new com.inq.flash.messagingframework.Message;return i.setData(e.messages[0]),i.getMessageType()===com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED_RECONNECT||i.isChatAccepted()}return!1},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getPreloadNetworkErrorHandler=function(){this.forceDisconnected||this.chatLost||setTimeout(function(){this.getMessages()}.bind(this),com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.RETRY_DELAY)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.isEmptyResponseStatusCode=function(t){return t.responseStatus==com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.STATUS_CODE_NO_CONTENT||t.responseStatus==com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.STATUS_CODE_NO_CONTENT_IE9},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.isUnknownMessage=function(t){if(!this.isEmptyResponseStatusCode(t)&&401!=t.responseStatus){var e=null==t.data?t.data:typeof t.data,i="object"!=e;return i&&!this.invalidMessageIsLogged&&(com.inq.flash.client.control.FlashPeer.logWarningToServer("Chat received an invalid message format from the server, type of data: "+e),this.invalidMessageIsLogged=!0),i}return!1},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMsgComplete=function(t){if(this.isUnknownMessage(this.getMsgLoader))this.getNetworkErrorHandler(t,this.RETRY_DELAY_FOR_INVALID_MESSAGE);else{this.successfulResponseHandler();try{var e=this.isEmptyResponseStatusCode(this.getMsgLoader),i=this.getMsgCompleteProcessing(this.getMsgLoader,!1);if(i!==this.msgCount&&i!==this.msgCount+1)return this.applicationController.updateDataInStorage(this.msgCount),void this.applicationController.restoreTranscript();e||(this.msgCount=i),this.applicationController.updateDataInStorage(this.msgCount),this.routeQueuedRequests(!1)}catch(t){haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"HTTPConnectionHandler.js",methodName:"getMsgComplete",customParams:["error"]})}this.forceDisconnected?haxe.Log.trace("forceDisconnect",{fileName:"HTTPConnectionHandler.js",methodName:"getMsgComplete"}):(haxe.Log.trace("msgCount = "+this.msgCount,{fileName:"HTTPConnectionHandler.js",methodName:"getMsgComplete"}),this.listenForMessages())}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMsgCompleteProcessing=function(t,e){var i=this.msgCount;try{var n=t.data;if(null!=n&&"object"==typeof n){var o=n.messages;com.inq.utils.Util.isNullOrUndefined(n.count)?com.inq.flash.client.control.FlashPeer.logErrorToServer('No "count" field in message data: '+JSON.stringify(n)):i=n.count;for(var a=0;a<o.length;a++)if(o[a]){var s=new com.inq.flash.messagingframework.Message;s.setData(o[a]);try{e&&!this.isMsgReplayable(s)||this.processMessageQueue.push(s)}catch(t){haxe.Log.trace("FAILED messageRouter.processMessage: "+s.toString(),{fileName:"HTTPConnectionHandler.js",methodName:"getMsgCompleteProcessing",customParams:["error"]})}}}}catch(t){haxe.Log.trace("Error: "+Std.string(t),{fileName:"HTTPConnectionHandler.js",lineNumber:322,className:"com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler",methodName:"getMsgCompleteProcessing",customParams:["error"]})}return i},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.isMsgReplayable=function(t){var e=t.getMessageType(),i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID),n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_STATE),o=i==this.chatIDForGetMsg&&(e==com.inq.flash.client.data.MessageFields.TYPE_CHATLINE||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_QUEUE||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_SYSTEM||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OUTCOME||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OPENER),a=e===com.inq.flash.client.data.MessageFields.TYPE_STATE_CHANGE&&(n===com.inq.flash.client.data.MessageFields.DATA_CONFERENCE||n===com.inq.flash.client.data.MessageFields.DATA_TRANSFER||n===com.inq.flash.client.data.MessageFields.DATA_STATE_CLOSED||n===com.inq.flash.client.data.MessageFields.DATA_STATE_ASSIGNED||n===com.inq.flash.client.data.MessageFields.DATA_STATE_MOVED_TO_ASYNC);return o||a||e==com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_CONNECTED||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COBROWSE||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_SETTING||e==com.inq.flash.client.data.MessageFields.TYPE_CLIENT_COMMAND||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_REQUEST||e==com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_LOST||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_SYSTEM||e==com.inq.flash.client.data.MessageFields.TYPE_COMMAND||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED||e==com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED_RECONNECT||e==com.inq.flash.client.data.MessageFields.TYPE_NINA_COACH_CHAT_TAKE_OVER},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.markLastAssignedMessage=function(t){for(var e=t.length-1;e>=0;e--){var i=t[e];if((n=i).isChatAccepted()||n.isChatTransfer()||n.isChatConference()||n.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHATROOM_MEMBER_CONNECTED)||n.isMessageType(com.inq.flash.client.data.MessageFields.TYPE_NINA_COACH_CHAT_TAKE_OVER))return void i.addProperty(com.inq.flash.client.data.MessageFields.KEY_LAST_AGENT_ASSIGNED_MESSAGE,"true")}var n},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.routeQueuedRequests=function(t){var e;for(t&&this.markLastAssignedMessage(this.processMessageQueue);this.processMessageQueue.length>0;)e=this.processMessageQueue.shift(),t&&e.addProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY,"1"),this.messageRouter.processMessage(e);var i=this.messageRouter.getHandlerByPrefix(com.inq.flash.client.data.MessageFields.TYPE_CLIENT_COMMAND);i&&i.runCommands()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putRequestSecurityError=function(t){this.putNetworkErrorHandler(t)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getRequestSecurityError=function(t){this.putNetworkErrorHandler(t),this.sendMessageFail=!0},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putMessageFailed=function(t){var e=this.deleteInProgressMsg(t.currentTarget.key);e&&(com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION!==e.msg.getMessageType()&&com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST_RECONNECT!==e.msg.getMessageType()&&com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST!==e.msg.getMessageType()||setTimeout($bind(this,this.putMessage),com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.RETRY_DELAY),e.onError(t))},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putNetworkErrorHandler=function(t){this.failedResponseHandler(),this.putMessageFailed(t)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getNetworkErrorHandler=function(t,e){this.forceDisconnected||(this.failedResponseHandler(),this.getMessageFailed(t,e))},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMessageFailed=function(t,e){this.forceDisconnected||this.chatLost||(e=e||com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.RETRY_DELAY,window.setTimeout($bind(this,this.listenForMessages),e))},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getConnectionType=function(){return com.inq.flash.messagingframework.FlashMessagingFramework.CONNECTION_TYPE_HTTP},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.abortGetMessage=function(){this.getMsgLoader.cancelLoad()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putMessage=function(t){if(this.forceDisconnected){if(t){var e="HTTPConnectionHandler.prototype.putMessage: Failed to send message, forceDisconnected. "+t.msg.toString(),i=new Error(e);com.inq.flash.client.control.FlashPeer.logError(e,i)}}else{t||(t=this.getQueueFirstItem());var n=this.getSelectedHost()+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MESSAGE_BASE_URL+"?"+t.msg.serializeToURL(),o=new com.inq.net.URLRequest(n);try{var a=new com.inq.net.URLLoader(this.customerID);a.addEventListener(com.inq.events.HTTPStatusEvent.HTTP_STATUS,$bind(this,this.putMessageHTTPStatus)),a.addEventListener(com.inq.events.SecurityErrorEvent.SECURITY_ERROR,$bind(this,this.putRequestSecurityError)),a.addEventListener(com.inq.events.Event.NETWORK_ERROR,$bind(this,this.putNetworkErrorHandler)),a.addEventListener(com.inq.events.Event.BAD_REQUEST,$bind(this,this.handleUnauthorizedMessage)),a.addEventListener(com.inq.events.Event.UNAUTHORIZED,$bind(this,this.putMessageFailed)),a.addEventListener(com.inq.events.Event.BAD_GATEAWAY,$bind(this,this.putMessageFailed)),a.addEventListener(com.inq.events.Event.SERVICE_UNAVAILABLE,$bind(this,this.putMessageFailed)),a.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.putMsgComplete));var s="send"+ ++this.queueKey;t.key=s,this.messagesInProgress[s]=t,a.load(o,s,!0,com.inq.flash.client.control.FlashPeer.getFPSessionID())}catch(e){var l="HTTPConnectionHandler.prototype.putMessage: Failed to send message. "+t.msg.toString();com.inq.flash.client.control.FlashPeer.logError(l,e)}}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.sendMessage=function(t,e,i){var n={msg:t,onSuccess:"function"==typeof e?e:$noop,onError:"function"==typeof i?i:$noop},o=!1;switch(t.getMessageType()){case com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION:this.messageQueue.push(n),o=this.getQueueSize()>1;break;case com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST:case com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST_RECONNECT:this.messageQueue.unshift(n),o=this.getQueueSize()>1;break;case com.inq.flash.client.data.MessageFields.TYPE_CHAT_EXIT:this.abortGetMessage()}o?t.getMessageType()===com.inq.flash.client.data.MessageFields.TYPE_CHAT_REQUEST&&com.inq.flash.client.control.FlashPeer.logErrorToServer("HTTPConnectionHandler messages queue isn't empty, but chat.request still wasn't sent! This behavior is unexpected and should be additionally investigated, because in this case, the chat probably was not started."):this.putMessage(n)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.handleUnauthorizedMessage=function(){haxe.Log.trace("status response 401",{fileName:"HTTPConnectionHandler.js",methodName:"handleUnauthorizedMessage"}),com.inq.flash.client.control.FlashVars.isSecureWithCustToken()?com.inq.flash.client.chatskins.SkinControl.closeChat():this.applicationController.onLostConnection()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putChatExitMsgComplete=function(t){this.disable();var e=new com.inq.flash.client.data.ChatExitMessage("");this.messageRouter.processMessage(e)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.handleChatLost=function(){this.forceDisconnected||(com.inq.flash.client.control.FlashVars.isSecureWithCustToken()?com.inq.flash.client.chatskins.SkinControl.closeChat():this.chatLost||(this.chatLost=!0,this.abortGetMessage(),this.applicationController.sendChatRequestMessage(!0)))},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.listenForMessages=function(){if(!this.forceDisconnected){this.abortGetMessage();var t=this.generateMessageURL(this.msgCount);this.getMsgLoader.load(new com.inq.net.URLRequest(t),null,!1,com.inq.flash.client.control.FlashPeer.getFPSessionID()),this.pendingConnectionEstablished()}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.isAutomaton=function(){return null!=com.inq.flash.client.control.FlashVars.getValue("automatonId")},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setChatID=function(t){this.chatIDForGetMsg=t},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.connectionComplete=function(t){null==t&&(this.isConnected()||this.forceDisconnected||(this.connected=!0,this.framework.connectionSuccesful(this),this.applicationConnectionEventHandler.connectionSuccessful()))},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.establishConnectionRequest=function(){this.isConnected()||this.forceDisconnected||(this.connected=!0,this.framework.connectionSuccesful(this),this.applicationConnectionEventHandler.connectionSuccessful())},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.connect=function(){this.connectionRequestedByDemand=!0,this.establishConnection()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.establishConnection=function(){if(this.connectionRequestedByDemand&&!com.inq.flash.client.chatskins.SkinControl.asyncTranscriptLoading){var t=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);this.applicationController.getChat().isAsyncChat()&&0===t?com.inq.flash.client.control.FlashPeer.getActiveChatroomId(function(t,e,i){this.applicationController.getChat().setAsyncReconnect(i),this.applicationController.setChatID(t),this.applicationController.setCustomerID(e),this.setChatID(t),this.setCustomerID(e),this.establishConnectionRequest()}.bind(this),this.establishConnectionRequest.bind(this)):(this.establishConnectionRequest(),com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&t<this.applicationController.msgcntAtEntry&&(t=this.applicationController.msgcntAtEntry),t>0&&this.getMessages())}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setSelectedHost=function(){var t=this.useClientProtocol?window.location.protocol:"https:";0!=this.chatRouterHost.toLowerCase().indexOf("http")?this.selectedHost=t+"//"+this.chatRouterHost:this.selectedHost=this.chatRouterHost.replace("http:",t)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getSelectedHost=function(){return this.selectedHost},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.disconnect=function(t){if(!this.forceDisconnected&&!this.applicationController.clientDisconnect){void 0===t&&(t=com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_UNKNOWN),this.connected=!1,this.forceDisconnected=!0;var e=new com.inq.net.URLLoader(this.customerID);e.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.putMsgComplete)),e.addEventListener(com.inq.events.Event.UNAUTHORIZED,$bind(this,this.handleUnauthorizedMessage)),e.addEventListener(com.inq.events.Event.BAD_GATEAWAY,$bind(this,this.handleUnauthorizedMessage)),e.addEventListener(com.inq.events.Event.SERVICE_UNAVAILABLE,$bind(this,this.handleUnauthorizedMessage));var i=this.getSelectedHost()+"/chatrouter/chat/closeChat?rand="+Math.random()+"&"+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.CLOSE_REASON+t;null!=this.chatIDForGetMsg&&""!=this.chatIDForGetMsg&&(i+="&"+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.ENGAGEMENT_ID_PARAM+this.chatIDForGetMsg);var n=new com.inq.net.URLRequest(i);e.load(n)}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMessagingFramework=function(){return this.framework},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setMessagingFramework=function(t){this.framework=t},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setMessageRouter=function(t){this.messageRouter=t},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.isConnected=function(){return this.connected},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setApplicationConnectionEventHandler=function(t){this.applicationConnectionEventHandler=t},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setHost=function(t){},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setParam=function(t,e){this[t]=e},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMessages=function(){if(!this.forceDisconnected){var t=this.generateMessageURL(null,!0);this.getMsgPreLoader.load(new com.inq.net.URLRequest(t),null,!1,com.inq.flash.client.control.FlashPeer.getFPSessionID())}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.sendReconnectGetMessage=function(){if(!this.forceDisconnected){var t=this.generateMessageURL();this.reconnectGetMessageLoader.load(new com.inq.net.URLRequest(t),null,!1,com.inq.flash.client.control.FlashPeer.getFPSessionID())}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getParams=function(t){return this.params[t]},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.acknowledgePersistentActive=function(t,e,i,n){var o="",a=this.getSelectedHost()+"/chatrouter/chat/ackPersistentActive.js?engagementID="+this.chatIDForGetMsg+"&op="+Std.string(n)+"&pd="+e+"&r="+Math.round(123456789*Math.random());e!=i&&(this.applicationController.noUnload(),o=(o=(o=window.parent.location.href).split(e).join(i)).split("#")[0],a+="&xfr="+StringTools.urlEncode(o));var s=new com.inq.net.URLRequest(a);try{this.ackPersistentLoader=new com.inq.net.URLLoader(this.customerID),this.ackPersistentLoader.addEventListener(com.inq.events.Event.COMPLETE,(function(t){})),this.ackPersistentLoader.load(s)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace(""+Std.string(t),{fileName:"HTTPConnectionHandler.hx",lineNumber:205,className:"com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler",methodName:"acknowledgePersistentActive",customParams:["error"]})}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.sendChatHTML=function(){var t=StringTools.urlEncode(document.getElementById("me").innerHTML),e=this.getSelectedHost()+"/chatrouter/chat/sendHTML.js?engagementID="+this.chatIDForGetMsg+"&r="+this.rand()+"&h=",i=2e3-e.length;for(i>t.length&&(i=t.length);t.length>0;){var n,o=e+HxOverrides.substr(t,0,i),a=new com.inq.net.URLRequest(o);(n=new com.inq.net.URLLoader(this.customerID)).addEventListener(com.inq.events.Event.COMPLETE,(function(t){})),n.load(a),t=HxOverrides.substr(t,i+1,null)}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.rand=function(){return Math.round(123456789*Math.random())},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.acknowledgeChatActive=function(t){var e=this.getSelectedHost()+"/chatrouter/chat/ackChatActive?engagementID="+this.chatIDForGetMsg+"&rand="+Math.random(),i=new com.inq.net.URLRequest(e);try{new com.inq.net.URLLoader(this.customerID).load(i)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace(""+Std.string(t),{fileName:"HTTPConnectionHandler.hx",lineNumber:145,className:"com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler",methodName:"acknowledgeChatActive",customParams:["error"]})}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.enable=function(){this.forceDisconnected=!1,this.listenForMessages()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.enableForReEngaging=function(){this.forceDisconnected=!1,this.sendMessageFail=!1},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.disable=function(){this.abortGetMessage(),this.clearSuccessfulPendingConnectionTimer(),this.connected=!1,this.forceDisconnected=!0},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.isSendMessageFail=function(){return this.sendMessageFail},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.generateMessageURL=function(t,e){var i=this.getSelectedHost()+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MESSAGE_BASE_URL;if(null!=t&&(i+="/"+t),i+="?"+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.ENGAGEMENT_ID_PARAM+this.chatIDForGetMsg+"&"+com.inq.flash.client.data.MessageFields.WINDOW_ID_PARAM+"="+com.inq.flash.client.control.FlashVars.getWindowId(),e&&(i+="&"+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.ENTIRE_TRANSCRIPT_PARAM+"true"),com.inq.flash.client.control.FlashVars.isSecureWithCustToken()){var n=com.inq.flash.client.control.FlashVars.getPersistentCustomerID();i+="&"+com.inq.flash.client.data.MessageFields.KEY_SECURE_CUST_TOKEN+"="+n}return i},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.ciPrepareUrlForBeacon=function(){var t=Application.application.applicationController.getMessagingFramework().getConnection();return t?t.prepareUrlForBeacon.call(t):""},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.prepareUrlForBeacon=function(){if(this.isConnected()&&!this.forceDisconnected){this.isIE||this.disable();var t=this.getSelectedHost()+this.MESSAGE_PAGE_UNLOAD;return t+="?"+this.ENGAGEMENT_ID_PARAM+this.chatIDForGetMsg,(t+="&"+this.CUSTOMER_ID_PARAM+com.inq.flash.client.control.FlashVars.getValue("customerID"))+"&"+com.inq.flash.client.data.MessageFields.WINDOW_ID_PARAM+"="+com.inq.flash.client.control.FlashVars.getWindowId()}},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype._getResponseTimestamp=function(){return this._responseTimestamp},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.successfulResponseHandler=function(){this.sendMessageFail&&(this.sendMessageFail=!1,Application.application.notificationController.showConnectionRestoredMessage()),this._responseTimestamp=Date.now(),this.clearSuccessfulPendingConnectionTimer()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.failedResponseHandler=function(){this.sendMessageFail=!0,Application.application.notificationController.showConnectionIssuesMessage()},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.pendingConnectionEstablished=function(){this.clearSuccessfulPendingConnectionTimer();var t=2*com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.RETRY_DELAY;this._timerSuccessfulPendingConnection=setTimeout(this.successfulResponseHandler.bind(this),t)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.clearSuccessfulPendingConnectionTimer=function(){this._timerSuccessfulPendingConnection&&(clearTimeout(this._timerSuccessfulPendingConnection),this._timerSuccessfulPendingConnection=null)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.setCustomerID=function(t){this.customerID=t,this.getMsgLoader.setCustomerID(t),this.getMsgPreLoader.setCustomerID(t),this.reconnectGetMessageLoader.setCustomerID(t)},com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.chatIDForGetMsg=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.ackPersistentLoader=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.putMsgLoader=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.forceDisconnected=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.messageQueue=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.queueKey=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMsgCntLoader=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMsgPreLoader=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.getMsgLoader=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.msgCount=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.params=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.framework=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.messageRouter=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.applicationConnectionEventHandler=null,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.__class__=com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.__interfaces__=[com.inq.flash.messagingframework.connectionhandling.ConnectionHandler],com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.ENGAGEMENT_ID_PARAM="engagementID=",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.ENTIRE_TRANSCRIPT_PARAM="requestEntireTranscript=",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.ENGAGEMENT_ID_PARAM="engagementID=",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MESSAGE_BASE_URL="/chatrouter/chat/message",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.MESSAGE_PAGE_UNLOAD="/chatrouter/chat/pageUnload",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.RETRY_DELAY=1e3,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.RETRY_DELAY_FOR_INVALID_MESSAGE=5e3,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.STATUS_CODE_NO_CONTENT=204,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.STATUS_CODE_NO_CONTENT_IE9=1223,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.STATUS_CODE_AJAX_ABORTED=0,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.CUSTOMER_ID_PARAM="customerID=",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.CLOSE_REASON="reason=",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.prototype.CUSTOMER_ID_PARAM="customerID=",com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.GET_MSG_LOADER_TIMEOUT=35e3,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.GET_MSG_WATCH_DOG_TIMEOUT_MS=6e4,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MAX_NUMBER_OF_RECONNECT=5,com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MAX_NUMBER_OF_PUT_SUCCESSFUL_RESPONSE=4,com.inq.utils.EventDataUtils=function(){},$hxClasses["com.inq.utils.EventDataUtils"]=com.inq.utils.EventDataUtils,com.inq.utils.EventDataUtils.__name__=["com","inq","utils","EventDataUtils"],com.inq.utils.EventDataUtils.fromMessage=function(t){var e=new com.inq.utils.Dictionary;e.agtFirstName=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_EVENT_AGENT_FIRST_NAME),e.agtLastName=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_EVENT_AGENT_LAST_NAME),e.agtAttrs=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_SITE_ATTRS),e.agtCId=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_USER_CID),haxe.Log.trace("DEBUG: agtAttrs has been populated as ("+e.agtAttrs+")",{fileName:"EventDataUtils.hx",lineNumber:27,className:"EventDataUtils",methodName:"fromMessage"});var i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_AGENT_ALIAS);null!=i&&(e.agentAlias=i);var n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_EVENT_INITIAL_REQUEST_ATTRIBUTES);null!=n&&(e.firstRequestedAttr=n.split(",").join("="));var o=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_EVENT_TRANSFER_REQUEST_ATTRIBUTES);return null!=o&&(e.newRequestedAttr=o),e},com.inq.utils.EventDataUtils.prototype.__class__=com.inq.utils.EventDataUtils,y(5306),com.inq.utils.Util=function(){},$hxClasses["com.inq.utils.Util"]=com.inq.utils.Util,com.inq.utils.Util.__name__=["com","inq","utils","Util"],com.inq.utils.Util.publish=function(t,e){for(var i=t.split("."),n=window,o=i.length-1,a=0,s=i.length;a<s;){var l=a++,r=i[l];null==n[r]&&(n[r]=l==o?e:{}),n=n[r]}},com.inq.utils.Util.isDefaultAgentAlias=function(){return 1==com.inq.utils.Util.getConfig("useAgentAlias",!1)&&"true"!=com.inq.flash.client.control.FlashVars.getValue("overrideAgentAlias")&&"true"!=com.inq.flash.client.control.FlashVars.getValue("overrideChatTheme")},com.inq.utils.Util.getConfig=function(t,e){var i=null;try{if(Application.application&&(i=Application.application[com.inq.utils.Util.configArea]),null!=i)return null!=i[t]?i[t]:e}catch(e){haxe.Log.trace("error accessing configuration attribute: "+t+"\n"+Std.string(e),{fileName:"Util.hx",lineNumber:61,className:"com.inq.utils.Util",methodName:"getConfig"})}return e},com.inq.utils.Util.getConfigAsBoolean=function(t){return!!com.inq.utils.Util.getConfig(t)},com.inq.utils.Util.getIEMajorVer=function(t){return com.inq.flash.client.control.FlashPeer.getBrowserMajorVer(t)},com.inq.utils.Util.getHostFromUrl=function(t){return t.indexOf("/")>-1?t.split("/",3)[2]:t},com.inq.utils.Util.getTopWindow=function(){return window.top},com.inq.utils.Util.getParentReferrer=function(){return window.parent.document.referrer},com.inq.utils.Util.getNavigationType=function(){return window.parent.performance.navigation.type},com.inq.utils.Util.getParentLocation=function(){return window.parent.location},com.inq.utils.Util.getTopWindowURL=function(){try{return window.top.location.href}catch(t){haxe.Log.trace("error accessing window.top.location.\n"+Std.string(t),{fileName:"Util.js",className:"com.inq.utils.Util",methodName:"getTopWindowURL"})}return null},com.inq.utils.Util.getVisualViewport=function(){return this.getTopWindow().visualViewport},com.inq.utils.Util.isFocusAndScrollMonitorsDisabled=function(){try{return!!(com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()||com.inq.flash.client.control.FlashPeer.isCEAPIPostChatSurveyMode()&&com.inq.utils.Capabilities.isIOSWebView())}catch(t){haxe.Log.trace("Error when determining isFocusAndScrollMonitorsDisabled"+Std.string(t),{fileName:"Util.js",className:"com.inq.utils.Util",methodName:"isFocusAndScrollMonitorsDisabled"})}return!1},com.inq.utils.Util.getScrollableContainer=function(t){return t.parentNode?"tcChat_Skin"==t.parentNode.id?null:t.parentNode.scrollHeight>t.parentNode.clientHeight?t.parentNode:com.inq.utils.Util.getScrollableContainer(t.parentNode):null},com.inq.utils.Util.isDivChat=function(){return!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()&&(com.inq.utils.Util.getConfig("divSkin",!1)||com.inq.ui.SkinLoader.skinInClient)},com.inq.utils.Util.isBorderBoxEnabled=function(t){var e=(com.inq.utils.Util.isDivChat()?window.parent:window).getComputedStyle(t);return e&&"border-box"===e.boxSizing},com.inq.utils.Util.debounce=function(t,e,i){var n;return function(){var o=this,a=arguments,s=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(o,a)}),e),s&&t.apply(o,a)}},com.inq.utils.Util.fields=function(t){var e=[];if(null!=t)for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e},com.inq.utils.Util.evalExpression=function(t){for(var e,i,n,o,a=[],s=[],l={"^":{prior:4,assoc:"right"},"*":{prior:3,assoc:"left"},"/":{prior:3,assoc:"left"},"+":{prior:2,assoc:"left"},"-":{prior:2,assoc:"left"},"(":{prior:1,assoc:"left"},")":{prior:1,assoc:"left"}},r=!1,c=function(t){var e=t.replace(/ +?/g,"");for((e=e.replace(/,/g,"."))[0].match(/[+\-*/^]/)&&(e="0"+e);e.indexOf("(-")>-1;)e=e.replace("(-","(0-");return e}(t),h=!0,m=0;m<c.length;m++)c[m].match(/[+\-*/^]/)?(r=!1,f(m),h=!1):c[m].match(/[0-9.]/)?g(m):"("!==c[m]&&")"!==c[m]||C(m);for(var u=a,p=s,d=u.pop();d;)p.push(d),d=u.pop();return function(t){for(var e={"+":function(t,e){return t+e},"-":function(t,e){return e-t},"*":function(t,e){return t*e},"/":function(t,e){return e/t}},i=[],n=t.split(","),o=0;o<n.length;o++)if(n[o]in e){var a=i.pop(),s=i.pop();i.push(e[n[o]](a,s))}else i.push(parseFloat(n[o]));return i.pop()}(p.join());function f(t){for(;!r;)if(o=a.pop())switch(e=l[c[t]].prior,i=l[c[t]].assoc,n=l[o].prior,i){case"left":e>n?(a.push(o),a.push(c[t]),r=!0):s.push(o);break;case"right":e>=n?(a.push(o),a.push(c[t]),r=!0):s.push(o)}else a.push(c[t]),r=!0}function g(t){if(h){var e=s.pop();e?s.push(e+c[t]):s.push(c[t])}else s.push(c[t]),h=!0}function C(t){if("("===c[t])a.push(c[t]),h=!1;else if(")"===c[t]){for(var e=!1;!e;){var i=a.pop();"("===i?e=!0:s.push(i)}h=!1}}},com.inq.utils.Util.isNullOrUndefined=function(t){return null==t},com.inq.utils.Util.prototype.__class__=com.inq.utils.Util,com.inq.utils.Util.isIE="Microsoft Internet Explorer"==window.navigator.appName||-1!=window.navigator.userAgent.indexOf("Trident"),com.inq.utils.Util.configArea="skinConfig",com.inq.utils.Util.xformsCloseEventFlag="sendEventChatCloseToAutomatons",com.inq.utils.Util.SKIN_CONFIG_KEY_AGENT_IMAGE_CONFIG="agentImageConfig",com.inq.utils.Util.SKIN_CONFIG_KEY_AGENT_IMAGE_ENABLED="agentTypeImageEnabled",com.inq.utils.Util.URL_REGEX=/(https?:\/\/[^"<\s]+)(?![^<>]*>|[^"]*?<\/a)/g,y(1703),com.inq.net.URLLoader=function(t,e){com.inq.events.EventDispatcher.call(this),this.index=0,this.storageKey="",this.data="",this.responseStatus=0,this.responseHeaderCacheControl="",this.bytesLoaded=0,this.timeout=e||0,this.setCustomerID(t)},$hxClasses.extend(com.inq.events.EventDispatcher,com.inq.net.URLLoader,"com.inq.net.URLLoader"),com.inq.net.URLLoader.prototype.setCustomerID=function(t){this.customerIDAsFirstParamExpression=t?"?"+com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.CUSTOMER_ID_PARAM+t:""},com.inq.net.URLLoader.prototype.addWatchDog=function(t,e,i){this.watchDog=new com.inq.net.WatchDog(t,e,i)},com.inq.net.URLLoader.getContext=function(t){var e=com.inq.net.URLLoader.indexOfContext(t);return-1!=e?com.inq.net.URLLoader.loadingArray.splice(e,1)[0].Context:null},com.inq.net.URLLoader._httpRequestHandler=function(t,e,i,n,o){var a=com.inq.net.URLLoader.getContext(t);null!==a?(a.responseStatus=i,a.responseHeaderCacheControl=n,a.data=e,a.bytesLoaded=e&&e.length?e.length:0,0==i||com.inq.net.URLLoader.isIE7&&12029==i?a.fireEvent(com.inq.events.Event.NETWORK_ERROR):400==i?a.fireEvent(com.inq.events.Event.BAD_REQUEST):401==i?a.fireEvent(com.inq.events.Event.UNAUTHORIZED):502==i?a.fireEvent(com.inq.events.Event.BAD_GATEAWAY):503==i?a.fireEvent(com.inq.events.Event.SERVICE_UNAVAILABLE):a.fireEvent(com.inq.events.Event.COMPLETE)):com.inq.flash.client.control.FlashPeer.logWarningToServer("Instance is null. Arguments are "+JSON.stringify(arguments))},com.inq.net.URLLoader.prototype.errorHandler=function(t){t?(this.fireEvent(com.inq.events.Event.NETWORK_ERROR),com.inq.flash.client.control.FlashPeer.logErrorToServer("URLLoader.errorHandler. "+t.name+": "+t.message)):com.inq.flash.client.control.FlashPeer.logWarningToServer("URLLoader.errorHandler. Context is absent for "+this.storageKey)},com.inq.net.URLLoader.prototype.loadComplete=function(t){t?com.inq.net.URLLoader._httpRequestHandler(t.id,t.data,t.responseStatus,t.responseHeaderCacheControl,t):com.inq.flash.client.control.FlashPeer.logWarningToServer("URLLoader.loadComplete. Context is absent for "+this.storageKey)},com.inq.net.URLLoader.prototype.cancelLoad=function(){if(com.inq.net.URLLoader.lastGetMsg){var t=com.inq.net.URLLoader.lastGetMsg.url,e=com.inq.net.URLLoader.lastGetMsg.id;this.send(t,["ABORT",e],e),this.watchDog.stop()}},com.inq.net.URLLoader.prototype.send=function(t,e,i,n,o){var a=com.inq.flash.client.control.FlashVars.getSubmitURL();t.startsWith(a)||o?com.inq.flash.client.control.FlashPeer.sendRequestToServer(t,e,i,n):com.inq.flash.client.control.FlashPeer.postRequestToIframeProxy(t,e,i,n)},com.inq.net.URLLoader.prototype.loadByPosting=function(t,e,i,n){com.inq.net.URLLoader._hostedFile=window.location.protocol+"//"+(window.location.host+window.location.pathname);var o,a,s=t.split("?"),l=s[0];i||t.length>com.inq.net.URLLoader.MAXIMUM_IE_URL_LENGTH?(o=l+this.customerIDAsFirstParamExpression,a=encodeURIComponent(s[1])):(this.customerIDAsFirstParamExpression?(o=l+this.customerIDAsFirstParamExpression,s[1]&&(o+="&"+s[1])):o=t,a="",o.indexOf(com.inq.flash.messagingframework.connectionhandling.HTTPConnectionHandler.MESSAGE_BASE_URL)>-1&&(com.inq.net.URLLoader.lastGetMsg={id:e,url:o})),this.storageKey=o;var r={};r.callbackFun=this.loadComplete.bind(this),r.callbackFunErr=this.errorHandler.bind(this);var c=com.inq.flash.client.control.FlashVars.getValue("tagServerBaseURL"),h=com.inq.flash.client.control.FlashPeer.getFlagSendDataToTSWithoutIframe()&&t.startsWith(c),m="POSTCHAT";h&&(m="POSTASYNC"),com.inq.flash.client.control.ApplicationController.isWebExternalVALink&&(m="POSTSYNC",com.inq.flash.client.control.ApplicationController.isWebExternalVALink=!1);var u=[m,e,"",com.inq.net.URLLoader._hostedFile,o,a,this.timeout,n];this.send(o,u,e,r,h)},com.inq.net.URLLoader.prototype.load=function(t,e,i,n){this.watchDog&&this.watchDog.restart(),this.data="",this.index=++com.inq.net.URLLoader.seq,this.key=(e||this.index)+"",this.registerContext(this.key),this.loadByPosting(t.url,this.key,i,n)},com.inq.net.URLLoader.prototype.fireEvent=function(t){var e=new com.inq.events.Event(t);e.currentTarget=this,e.target=this,this.hasEventListener(t)||haxe.Log.trace("function is not defined for Event.COMPLETE",{fileName:"URLLoader.hx",lineNumber:309,className:"com.inq.net.URLLoader",methodName:"fireEvent"});try{this.dispatchEvent(e)}catch(e){var i="",n="";js.Boot.__instanceof(e,Error)||e.stack?(n=e.stack,i=e.message):(n=(new Error).stack,"string"==typeof e&&(i=e)),i||(i="unavailable");var o=js.Boot.__instanceof(this.constructor.__name__,Array)?this.constructor.__name__.join("."):this.constructor.name;haxe.Log.trace("Could not fire event in "+o+", reason: "+i+"\nStackTrace:"+n,{fileName:"URLLoader.hx",lineNumber:345,className:"com.inq.net.URLLoader",methodName:"fireEvent",customParams:[e]}),com.inq.flash.client.control.FlashPeer.logError("URLLoader.fireEvent could not fire "+t+" event in "+o+", reason: ",e)}return!1},com.inq.net.URLLoader.prototype.registerContext=function(t){-1==com.inq.net.URLLoader.indexOfContext(t)&&com.inq.net.URLLoader.loadingArray.push({UrlIndex:t,Context:this})},com.inq.net.URLLoader.indexOfContext=function(t){for(var e=0;e<com.inq.net.URLLoader.loadingArray.length;e++)if(t==com.inq.net.URLLoader.loadingArray[e].UrlIndex)return e;return-1},com.inq.net.URLLoader.prototype.key=null,com.inq.net.URLLoader.prototype.__class__=com.inq.net.URLLoader,com.inq.net.URLLoader.MAXIMUM_IE_URL_LENGTH=2083,com.inq.net.URLLoader.loadingArray=new Array,com.inq.net.URLLoader.seq=0,com.inq.net.URLLoader.lastGetMsg=null,com.inq.net.URLLoader._hostedFile="",com.inq.net.URLLoader.isIE7=-1!=window.navigator.appVersion.indexOf("MSIE 7."),com.inq.net.URLRequest=function(t){this.url=t},$hxClasses["com.inq.net.URLRequest"]=com.inq.net.URLRequest,com.inq.net.URLRequest.__name__=["com","inq","net","URLRequest"],com.inq.net.URLRequest.prototype.url=null,com.inq.net.URLRequest.prototype.method=null,com.inq.net.URLRequest.prototype.data=null,com.inq.net.URLRequest.prototype.contentType=null,com.inq.net.URLRequest.prototype.__class__=com.inq.net.URLRequest,y(1703),com.inq.net.WatchDog=function(t,e,i){if(!t||!e)throw Error("handler and timeout are required parameters for using WatchDog.");this.timeoutId=null,this.timeoutMS=e,this.handler=t,this.handlerName=i,this.restartCalledAt=null,this.visibilityChangeListener=this.visibilityChangeListenerCb.bind(this)},com.inq.net.WatchDog.prototype.restart=function(){this.stop(),this.timeoutId=setTimeout(this.handleTimeout.bind(this),this.timeoutMS),this.restartCalledAt=Date.now(),this.addVisibilityChangeListener()},com.inq.net.WatchDog.prototype.addVisibilityChangeListener=function(){document.addEventListener("visibilitychange",this.visibilityChangeListener)},com.inq.net.WatchDog.prototype.removeVisibilityChangeListener=function(){document.removeEventListener("visibilitychange",this.visibilityChangeListener)},com.inq.net.WatchDog.prototype.visibilityChangeListenerCb=function(){"visible"===document.visibilityState&&this.restartCalledAt&&Date.now()-this.restartCalledAt>6e4&&(this.stop(),this.handleTimeout())},com.inq.net.WatchDog.prototype.stop=function(){clearTimeout(this.timeoutId),this.removeVisibilityChangeListener()},com.inq.net.WatchDog.prototype.handleTimeout=function(){com.inq.flash.client.control.FlashPeer.logWarningToServer("WatchDog timeout worked. "+this.handlerName+" called."),com.inq.flash.client.control.FlashPeer.sendNetworkBackup(),this.handler()},haxe.xml||(haxe.xml={}),haxe.xml._Fast||(haxe.xml._Fast={}),haxe.xml.Parser=function(){},$hxClasses["haxe.xml.Parser"]=haxe.xml.Parser,haxe.xml.Parser.__name__=["haxe","xml","Parser"],haxe.xml.Parser.parse=function(t){var e=Xml.createDocument();return haxe.xml.Parser.doParse(t,0,e),e},haxe.xml.Parser.doParse=function(t,e,i){null==e&&(e=0);for(var n,o=null,a=1,s=1,l=null,r=0,c=0,h=0,m=t.charCodeAt(e);m==m;){switch(a){case 0:switch(m){case 10:case 13:case 9:case 32:break;default:a=s;continue}break;case 1:if(60!==m){r=e,a=13;continue}a=0,s=2;break;case 13:60==m&&(n=Xml.createPCData(HxOverrides.substr(t,r,e-r)),i.addChild(n),c++,a=0,s=2);break;case 17:93==m&&93==t.charCodeAt(e+1)&&62==t.charCodeAt(e+2)&&(n=Xml.createCData(HxOverrides.substr(t,r,e-r)),i.addChild(n),c++,e+=2,a=1);break;case 2:switch(m){case 33:if(91==t.charCodeAt(e+1)){if(e+=2,"CDATA["!=HxOverrides.substr(t,e,6).toUpperCase())throw"Expected <![CDATA[";a=17,r=(e+=5)+1}else if(68==t.charCodeAt(e+1)||100==t.charCodeAt(e+1)){if("OCTYPE"!=HxOverrides.substr(t,e+2,6).toUpperCase())throw"Expected <!DOCTYPE";a=16,r=(e+=8)+1}else{if(45!=t.charCodeAt(e+1)||45!=t.charCodeAt(e+2))throw"Expected \x3c!--";a=15,r=(e+=2)+1}break;case 63:a=14,r=e;break;case 47:if(null==i)throw"Expected node name";r=e+1,a=0,s=10;break;default:a=3,r=e;continue}break;case 3:if(!(m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||58==m||46==m||95==m||45==m)){if(e==r)throw"Expected node name";o=Xml.createElement(HxOverrides.substr(t,r,e-r)),i.addChild(o),a=0,s=4;continue}break;case 4:switch(m){case 47:a=11,c++;break;case 62:a=9,c++;break;default:a=5,r=e;continue}break;case 5:if(!(m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||58==m||46==m||95==m||45==m)){if(r==e)throw"Expected attribute name";if(l=HxOverrides.substr(t,r,e-r),o.exists(l))throw"Duplicate attribute";a=0,s=6;continue}break;case 6:if(61!==m)throw"Expected =";a=0,s=7;break;case 7:switch(m){case 34:case 39:a=8,r=e;break;default:throw'Expected "'}break;case 8:if(m==t.charCodeAt(r)){var u=HxOverrides.substr(t,r+1,e-r-1);o.set(l,u),a=0,s=4}break;case 9:r=e=haxe.xml.Parser.doParse(t,e,o),a=1;break;case 11:if(62!==m)throw"Expected >";a=1;break;case 12:if(62===m)return 0==c&&i.addChild(Xml.createPCData("")),e;throw"Expected >";case 10:if(!(m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||58==m||46==m||95==m||45==m)){if(r==e)throw"Expected node name";if(HxOverrides.substr(t,r,e-r)!=i.getNodeName())throw"Expected </"+i.getNodeName()+">";a=0,s=12;continue}break;case 15:45==m&&45==t.charCodeAt(e+1)&&62==t.charCodeAt(e+2)&&(i.addChild(Xml.createComment(HxOverrides.substr(t,r,e-r))),e+=2,a=1);break;case 16:91==m?h++:93==m?h--:62==m&&0==h&&(i.addChild(Xml.createDocType(HxOverrides.substr(t,r,e-r))),a=1);break;case 14:if(63==m&&62==t.charCodeAt(e+1)){e++;var p=HxOverrides.substr(t,r+1,e-r-2);i.addChild(Xml.createProlog(p)),a=1}}m=t.charCodeAt(++e)}if(1==a&&(r=e,a=13),13==a)return e==r&&0!=c||i.addChild(Xml.createPCData(HxOverrides.substr(t,r,e-r))),e;throw"Unexpected end"},haxe.xml.Parser.isValidChar=function(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||58==t||46==t||95==t||45==t},haxe.xml.Parser.prototype.__class__=haxe.xml.Parser,js.Lib=function(){},$hxClasses["js.Lib"]=js.Lib,js.Lib.__name__=["js","Lib"],js.Lib.document=null,js.Lib.window=null,js.Lib.debug=function(){},js.Lib.alert=function(t){alert(js.Boot.__string_rec(t,""))},js.Lib.setErrorHandler=function(t){js.Lib.onerror=t},js.Lib.prototype.__class__=js.Lib,js.Lib.onerror=null,y(1703),y(5306),com.inq.ui.Container=function(t,e,i){com.inq.events.EventDispatcher.call(this),this._backgroundImage=null,this._visible=!0,this._clientStage=js.Boot.__instanceof(this,com.inq.ui.ClientBody),this._isSprite=null,this.styles={zIndex:null,visible:"true",left:null,top:null,width:null,height:null,enabled:null},this.attributeMap={},this.parent=null,this.document=i||window.document,com.inq.ui.SkinLoader.skinInClient&&(this.document=window.parent.document);var n=this.determineExistingElement(t);null!=n?(this._div=n,this._div.container=this,this._parent=e||this._div.parentNode,this.styles.id=t):(this._style="position: absolute; left: 0px; top: 0px; width: 100px; height: 60px; overflow: hidden;",this._div=this.document.createElement("DIV"),this._div.style.cssText=this._style),this.addCssClass(this._div)},$hxClasses.extend(com.inq.events.EventDispatcher,com.inq.ui.Container,"com.inq.ui.Container"),com.inq.ui.Container.prototype.determineExistingElement=function(t){return com.inq.ui.Container.isString(t)?com.inq.ui.Container.getElementById(t):null},com.inq.ui.Container.getElementById=function(t){var e=null;return com.inq.ui.Container.isString(t)?((com.inq.ui.SkinLoader.skinInClient&&0==t.indexOf(com.inq.ui.Container.CLIENT_SPACE_PREFIX)||0==t.indexOf(com.inq.ui.Container.LEGACY_PREFIX))&&(e=com.inq.ui.Container._getElementById(t,window.parent.document)),null==e&&(e=com.inq.ui.Container._getElementById(com.inq.ui.Container.CLIENT_SPACE_PREFIX+Std.string(t),window.parent.document)),null==e&&(e=com.inq.ui.Container._getElementById(t))):e=t,e},com.inq.ui.Container._getElementById=function(t,e){if(null==e)e=window.document;else if(e==window.parent.document&&window.getParentElByIDTFacade)return window.getParentElByIDTFacade(t);var i=e.getElementById(t);if(null!=i&&i.id!=t){for(var n=e.getElementsByTagName("*"),o=0;o<n.length;o++)if(null!=(i=n[o])&&i.id==t)return i;return null}return i},com.inq.ui.Container._getElementByTN=function(t,e){if(null==e)e=window.document;else if(e==window.parent.document&&window.getParentElsByTNTFacade){var i=window.getParentElsByTNTFacade(t);return void 0!==i&&i?i:[]}return e.getElementsByTagName(t)},com.inq.ui.Container.find=function(t){var e=window.document.getElementById(t);return null!=e?e.container:null},com.inq.ui.Container.encodeSize=function(t,e){return null==e&&(e="px"),new RegExp("^[+-]?\\d*\\.?\\d*$").test(t)?t+e:t},com.inq.ui.Container.isString=function(t){return null!=t&&js.Boot.__instanceof(t,String)},com.inq.ui.Container.show=function(t){var e=Application.getContainer(t);if(null==e||"chat"===t&&com.inq.flash.client.control.MinimizeManager.isMinimized()||"btnEmail"===t&&com.inq.flash.client.chatskins.EmailMgr.getRequestStatus()===com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_REQUESTED||(com.inq.utils.Capabilities.isIphone()&&"chat"===t&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur(),e.setVisible("true"),"chat"===t&&com.inq.flash.client.chatskins.SkinControl.scrollTranscriptToEnd(),"email"===t&&com.inq.flash.client.chatskins.EmailMgr.showEmailCanvas()),"webCallA"===t&&com.inq.flash.client.control.WebRTCMgr.isWebRTCCapable()){var i=Application.application.getButton("btnEndCallA");i&&i._img&&i._img.focus()}},com.inq.ui.Container.hide=function(t){if("email"===t)com.inq.flash.client.chatskins.EmailMgr.actionCancelEmail();else{var e=Application.getContainer(t);null!=e&&e.setVisible("false")}"switch"===t&&com.inq.aria.AriaMsg.restoreScreenReaderForChat()},com.inq.ui.Container.initializeClass=function(t){com.inq.flash.client.control.FlashPeer.logWarningToServer("Container#initializeClass will be used for initFunc:"+t),"function"==typeof window[t]?window[t]():com.inq.flash.client.control.FlashPeer.logErrorToServer("Container#initializeClass won't work, because initFunc:"+t+" isn't a function")},com.inq.ui.Container.playVideo=function(t){var e=Application.application.getMxmlItem(t);null!=e&&e.play()},com.inq.ui.Container.pauseVideo=function(t){var e=Application.application.getMxmlItem(t);null!=e&&e.pause()},com.inq.ui.Container.closeVideo=function(t){var e=Application.application.getMxmlItem(t);null!=e&&e.close()},com.inq.ui.Container.stopVideo=function(t){com.inq.ui.Container.closeVideo(t)},com.inq.ui.Container.prototype.addMxmlListeners=function(){this.styles.onClick&&com.inq.ui.CommandParser.executeLogic(this.styles.onClick,!0,this)&&this.setOnClick($bind(this,this.onClick)),this.styles.onInit&&com.inq.ui.CommandParser.executeLogic(this.styles.onInit,!0,this)&&com.inq.ui.CommandParser.executeLogic(this.styles.onInit,!1,this),this.styles.onVisible&&(com.inq.ui.CommandParser.executeLogic(this.styles.onVisible,!0,this),this.getVisible()&&com.inq.ui.CommandParser.executeLogic(this.styles.onVisible,!1,this)),this.styles.onHidden&&(com.inq.ui.CommandParser.executeLogic(this.styles.onHidden,!0,this),this.getVisible()||com.inq.ui.CommandParser.executeLogic(this.styles.onHidden,!1,this)),this.styles.onEnable&&(com.inq.ui.CommandParser.executeLogic(this.styles.onEnable,!0,this),this.getEnabled()&&com.inq.ui.CommandParser.executeLogic(this.styles.onEnable,!1,this))},com.inq.ui.Container.prototype.onClick=function(){com.inq.ui.CommandParser.executeLogic(this.styles.onClick,!1,this)},com.inq.ui.Container.prototype.getNewImage=function(){var t=new Image,e=t.ownerDocument,i=this._div.ownerDocument;if(e!=this.document)try{if(i.importNode)return i.importNode(t,!1)}catch(t){haxe.Log.trace("New image could not be imported: "+Std.string(t),{fileName:"Container.hx",lineNumber:1393,className:"com.inq.ui.Container",methodName:"getNewImage"})}return t},com.inq.ui.Container.prototype.getIsSprite=function(){return null==this._isSprite&&(this._isSprite=!(null==this.getStyle("sprite-width")&&null==this.getStyle("sprite-height")&&null==this.getStyle("sprite-left")&&null==this.getStyle("sprite-top"))),this._isSprite},com.inq.ui.Container.prototype.loadContent=function(){this.contains&&this.contains.forEach((function(t){t&&t.loadContent()}))},com.inq.ui.Container.prototype.renderCanvas=function(t){if(t.sourceImage){t.height=t.spriteHeight,t.width=t.spriteWidth,t.style.position="absolute";var e=t.sourceImage;t.style.top="0px",t.style.bottom="",t.style.left="0px",t.style.right="",t.style.width=Std.string(t.spriteWidth)+"px",t.style.height=Std.string(t.spriteHeight)+"px",t.getContext("2d").drawImage(e,t.spriteLeft,t.spriteTop,t.spriteWidth,t.spriteHeight,0,0,t.spriteWidth,t.spriteHeight);var i=t.spriteHeight,n=t.spriteWidth;null==this.getStyle("height")&&(null!=this.getStyle("bottom")&&null!=this.getStyle("top")?(this.evaluatePosition(this.getStyle("bottom")),this.evaluatePosition(this.getStyle("top")),t.style.bottom=t.style.top="0px",t.style.height="100%",i=this._div.clientHeight):i=this.calculateHeight()),0==i&&(i=t.spriteHeight),null==this.getStyle("width")&&(null!=this.getStyle("right")&&null!=this.getStyle("left")?(this.evaluatePosition(this.getStyle("right")),this.evaluatePosition(this.getStyle("left")),t.style.right=t.style.left="0px",t.style.width="100%",n=this._div.clientWidth):n=this.calculateWidth()),0==n&&(n=t.spriteWidth),t.getContext("2d").drawImage(e,t.spriteLeft,t.spriteTop,t.spriteWidth,t.spriteHeight,0,0,n,i),t.style.width="100%",t.style.height="100%"}else haxe.Log.trace("Canvas source image is missing",{fileName:"Container.hx",lineNumber:1354,className:"com.inq.ui.Container",methodName:"renderCanvas"})},com.inq.ui.Container.prototype.calculateHeight=function(){var t=this.evaluatePosition(this.getStyle("top")),e=this.evaluatePosition(this.getStyle("bottom")),i=this._div.clientHeight;return(i-=e-t)>0?i:0},com.inq.ui.Container.prototype.calculateWidth=function(){var t=this.evaluatePosition(this.getStyle("left")),e=this.evaluatePosition(this.getStyle("right")),i=this._div.clientWidth;return(i-=e-t)>0?i:0},com.inq.ui.Container.prototype.findChild=function(t){for(var e=0;e<this.contains.length;e++){var i=this.contains[e];if(i&&i._div&&i._div.id==t)return i}return null},com.inq.ui.Container.prototype.getChildren=function(){return this.contains},com.inq.ui.Container.prototype.setScrolling=function(t){},com.inq.ui.Container.prototype.updateSrc=function(t,e){this.contains&&this.contains.forEach((function(i){i&&i.updateSrc(t,e)}))},com.inq.ui.Container.prototype.setSrc=function(t){},com.inq.ui.Container.prototype.setIFrameSrc=function(t){var e=this._div.getElementsByTagName("iframe"),i=e&&(e.length>0?e[0]:null);i&&(i.src=t)},com.inq.ui.Container.prototype.removeFrom=function(t){if(null==t&&(t=this.parent),null!=t){if(t._div.removeChild(this._div),null==t.contains)return;for(var e=0;e<t.contains.length;e++)t.contains[e]==this&&(t.contains[e]=null);for(;t.contains.length>0&&null==t.contains[t.contains.length-1];)t.contains.pop()}},com.inq.ui.Container.prototype.attachTo=function(t,e){var i=t._div,n=null!=e?e._div:null;js.Boot.__instanceof(t,com.inq.ui.ClientBody)||(null==t.contains&&(t.contains=new Array),this._div.id!=com.inq.ui.Container.SC_TITLEBAR&&this._div.id!=com.inq.ui.Container.SC_RESIZE&&"tcChat_Skin"!=this._div.id&&(t.contains[t.contains.length]=this)),this.attachToElement(i,n),this.parent=t,this._clientStage=t._clientStage},com.inq.ui.Container.prototype.attachToElement=function(t,e){if(this._parent=t,null==this._div.parentNode||0==this._div.parentNode.nodeName.indexOf("#")){null!=this.styles.id&&this.setID(this.styles.id);try{null==e||null==e.nextSibling?t.appendChild(this._div):t.insertBefore(this._div,e.nextSibling)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"Container.hx",lineNumber:1153,className:"com.inq.ui.Container",methodName:"attachToElement"})}}},com.inq.ui.Container.prototype.resizer=function(t){if(null!=t&&0!=t.length)for(var e=0;e<t.length;e++)try{var i=t[e];if(null==i)continue;i.resize(),null!=i.contains&&i.contains.length>0&&this.resizer(i.contains)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}},com.inq.ui.Container.prototype.resize=function(){this.applyStyle(),this.getVisible()&&com.inq.flash.client.chatskins.FontMgr.restoreFontSizeForEmailPanel(this._div)},com.inq.ui.Container.prototype.applyStyle=function(){this.buildStyle(),null!=this._div&&(this._div.style.cssText=this._style,this.fixContainerSize())},com.inq.ui.Container.prototype.fixContainerSize=function(){var t,e,i,n,o=this;if(!com.inq.utils.Util.isBorderBoxEnabled(this._div)){function a(){return l(o._div.style.borderLeftWidth)+l(o._div.style.borderRightWidth)}function s(){return l(o._div.style.borderTopWidth)+l(o._div.style.borderBottomWidth)}function l(t){return t?Std.parseInt(t):0}a()>0&&(i=l(o._div.style.width),n=Math.max(i-a(),0),o._div.style.width=n+"px"),s()>0&&(t=l(o._div.style.height),e=Math.max(t-s(),0),o._div.style.height=e+"px")}},com.inq.ui.Container.prototype.evaluateString=function(t){try{if("{"==(t=StringTools.trim(t)).charAt(0)){var e=t;try{var i=t.lastIndexOf("}");if(-1==i)throw"Curly Braces not balanced";t=HxOverrides.substr(t,1,i-1);for(var n,o=new EReg("{([a-zA-Z_][a-zA-Z0-9_]*[.][a-zA-Z_][a-zA-Z.0-9_]*)}","m");o.match(t);){try{n=o.matched(1)}catch(t){break}var a=com.inq.ui.CommandParser.evaluateSymbolicReference(n);t=o.matchedLeft()+a+o.matchedRight()}return t}catch(i){haxe.Log.trace("Error evaluating '"+e+"' to '"+t+"': "+Std.string(i),{fileName:"Container.hx",lineNumber:1068,className:"com.inq.ui.Container",methodName:"evaluateString",customParams:[i]})}return""}return t}catch(t){haxe.Log.trace("parse error: "+Std.string(t),{fileName:"Container.hx",lineNumber:1076,className:"com.inq.ui.Container",methodName:"evaluateString",customParams:[t]})}return""},com.inq.ui.Container.prototype.evaluatePosition=function(t){if(t)try{if("{"==(t=StringTools.trim(t)).charAt(0)){try{var e=t.lastIndexOf("}");if(-1==e)throw"Curly Braces not balanced";t=HxOverrides.substr(t,1,e-1);for(var i,n=new EReg("([a-z][a-z.0-9]*)","im");n.match(t);){try{i=n.matched(1)}catch(t){break}var o=com.inq.ui.CommandParser.evaluateSymbolicReference(i);t=n.matchedLeft()+o+n.matchedRight()}try{var a;a=com.inq.flash.client.control.FlashPeer.isPolishNotationEnabled()?com.inq.utils.Util.evalExpression(t):com.inq.flash.client.control.FlashPeer.evaluateLegacySettings(t)}catch(t){haxe.Log.trace("Container#evaluatePosition Invalid attr value")}if("Infinity"==""+a)throw"Divide by zero error";return 0|Math.round(a)}catch(t){}return 0}return Std.parseInt(t)}catch(t){haxe.Log.trace("parse error: "+Std.string(t),{fileName:"Container.hx",lineNumber:1019,className:"com.inq.ui.Container",methodName:"evaluatePosition",customParams:[t]})}return 0},com.inq.ui.Container.prototype.getParentHeight=function(){var t=this._parent.clientHeight;if((-1!=window.navigator.userAgent.indexOf("MSIE")||-1!=window.navigator.userAgent.indexOf("Trident"))&&this instanceof Application&&null!=this._parent&&"Skin"!=this._parent.id){var e=document.documentElement.clientHeight;t!=e&&(t=e)}return t},com.inq.ui.Container.prototype.addCssTextProperty=function(t,e){this._style+=this.createCssText(t,e)},com.inq.ui.Container.prototype.createCssText=function(t,e){return/[A-Z]/.test(t)&&(t=t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))),t+": "+e+";"},com.inq.ui.Container.prototype.buildCssText=function(t,e){var i,n,o=this.styles.width,a=this.styles.left,s=this.styles.top,l=this.styles.height,r=this.styles.right,c=this.styles.bottom;if(js.Boot.__instanceof(this,Application)?com.inq.flash.client.control.FlashPeer.noV3FrameChat()?(i=Std.parseInt(Application.application.stg.style.width),n=Std.parseInt(Application.application.stg.style.height)):(i=Std.parseInt(window.frameElement.style.width),n=Std.parseInt(window.frameElement.style.height)):(i=null==this._parent?o:this._parent.clientWidth,n=null==this._parent?l:this.getParentHeight(),com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()&&null!=this._parent&&"tcChat_Skin"===this._parent.id&&(i<10||n<10)&&(com.inq.utils.Util.isIE||com.inq.utils.Capabilities.isSafari())&&(i=i<10&&-1!=this._parent.style.width.indexOf("px")?this._parent.style.width.slice(0,-2):i,n=n<10&&-1!=this._parent.style.height.indexOf("px")?this._parent.style.height.slice(0,-2):n)),null!=o&&com.inq.ui.Container.isString(o)&&"%"==HxOverrides.substr(o,o.length-1,null)&&(o=""+this.evaluatePosition(o)*i/100),null!=l&&com.inq.ui.Container.isString(l)&&"%"==HxOverrides.substr(l,l.length-1,null)&&(l=""+this.evaluatePosition(l)*n/100),null==l&&null!=this._div&&(l=Std.string(Math.max(this._div.clientHeight,0))),null==o&&null!=this._div&&(o=Std.string(Math.max(this._div.clientWidth,0))),null!=a&&null!=r?(a=""+this.evaluatePosition(a),o=""+Math.max(i-this.evaluatePosition(r)-this.evaluatePosition(a),0)):null!=a&&null==r?a=""+this.evaluatePosition(a):null==a&&null!=r&&(a=""+(i-(this.evaluatePosition(r)+this.evaluatePosition(o)))),null!=s&&null!=c?(s=""+this.evaluatePosition(s),l=""+Math.max(n-this.evaluatePosition(c)-this.evaluatePosition(s),0)):null!=s&&null==c?s=""+this.evaluatePosition(s):null==s&&null!=c&&(s=""+(n-(this.evaluatePosition(c)+this.evaluatePosition(l)))),null!=this._div&&"tcChat_Skin"===this._div.id&&com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()&&(s=0,a=0),this._style=t||"",this.addCssTextProperty("z-index",this.styles.zIndex||"101"),"collapse"==this.styles.visibility)return null==a||e||this.addCssTextProperty("left",com.inq.ui.Container.encodeSize(a)),null==s||e||this.addCssTextProperty("top",com.inq.ui.Container.encodeSize(s)),this._style+="height:0px;width:0px;display:none;visibility:collapse",this._style;var h="";for(var m in this.styles)if(this.styles.hasOwnProperty(m)&&"backgroundSize"!=m)if(h=this.styles[m],"backgroundImage"!=m||null==h)switch(m){case"height":case"width":case"top":case"bottom":case"left":case"right":this._clientStage?this.addCssTextProperty(m,com.inq.ui.Container.encodeSize(h)):e&&("top"==m&&!this.styles.bottom||"left"==m&&!this.styles.right)&&this.addCssTextProperty(m,com.inq.ui.Container.encodeSize(this.evaluatePosition(h)));break;case"margin-left":e?this.addCssTextProperty("left",com.inq.ui.Container.encodeSize(this.evaluatePosition(h))):this.addCssTextProperty(m,com.inq.ui.Container.encodeSize(h));break;case"margin-right":e?this.addCssTextProperty("right",com.inq.ui.Container.encodeSize(this.evaluatePosition(h))):this.addCssTextProperty(m,com.inq.ui.Container.encodeSize(h));break;case"color":case"cursor":case"backgroundColor":case"background-color":case"borderColor":case"border-color":case"borderStyle":case"border-style":case"fontFamily":case"textAlign":case"text-align":case"verticalAlign":this.addCssTextProperty(m,h);break;case"alpha":this.addCssTextProperty("filter","alpha(opacity="+h+")"),this.addCssTextProperty("-moz-opacity","0."+h),this.addCssTextProperty("opacity","0."+h);break;case"border-width":case"borderThickness":case"border-thickness":this.addCssTextProperty("border-width",com.inq.ui.Container.encodeSize(h));break;case"border-thickness-left":this.addCssTextProperty("border-left-width",com.inq.ui.Container.encodeSize(h));break;case"border-thickness-right":this.addCssTextProperty("border-right-width",com.inq.ui.Container.encodeSize(h));break;case"border-thickness-top":this.addCssTextProperty("border-top-width",com.inq.ui.Container.encodeSize(h));break;case"border-thickness-bottom":this.addCssTextProperty("border-bottom-width",com.inq.ui.Container.encodeSize(h));break;case"border-radius":this.addCssTextProperty("-moz-border-radius",com.inq.ui.Container.encodeSize(h)),this.addCssTextProperty("-webkit-border-radius",com.inq.ui.Container.encodeSize(h)),this.addCssTextProperty("border-radius",com.inq.ui.Container.encodeSize(h));break;case"fontSize":this.addCssTextProperty("font-size",com.inq.ui.Container.encodeSize(h,"pt"));break;case"backgroundGradientColors":var u=HxOverrides.substr(h,1,h.length-2).split(",");this.addCssTextProperty("background-color",u[0]);break;case"visible":this.addCssTextProperty("display","true"==h?"block":"none");break;default:-1==m.indexOf(":")&&"string"==typeof h&&-1==h.indexOf(":")&&-1==h.indexOf(";")&&-1==h.indexOf("@")&&this.addCssTextProperty(m,h)}else"100%"==this.styles.backgroundSize?(null!=l&&l.length>0&&-1==l.indexOf("%")&&(l=parseInt(l)>=0?l:"0"),null!=o&&o.length>0&&-1==o.indexOf("%")&&(o=parseInt(o)>=0?o:"0"),null!=o&&(this._backgroundImage.style.width=com.inq.ui.Container.encodeSize(o)),null!=l&&(this._backgroundImage.style.height=com.inq.ui.Container.encodeSize(l))):(this._backgroundImage&&(this._backgroundImage.style.width=this._backgroundImage.style.height="0px"),this.addCssTextProperty("background-image","url('"+this.styles.backgroundImage+"')"));return"tc-aria-readme"!==this.styles.id&&"tcChat_tc-aria-readme"!==this.styles.id||null!=o&&"0"!==o||(o="1px"),null==a||e||this.addCssTextProperty("left",com.inq.ui.Container.encodeSize(a)),null==s||e||this.addCssTextProperty("top",com.inq.ui.Container.encodeSize(s)),null!=l&&"0"!=l&&this.addCssTextProperty("height",com.inq.ui.Container.encodeSize(l)),null!=o&&"0"!=o&&(navigator.userAgent.indexOf("iPhone OS 10_3")>=0&&com.inq.utils.Capabilities.getOrientation()&&(com.inq.ui.Container.MaxWidth||(viewPort=com.inq.utils.Capabilities.getViewport(),com.inq.ui.Container.MaxWidth=viewPort.w),com.inq.ui.Container.MaxWidth&&o>com.inq.ui.Container.MaxWidth&&(o=com.inq.ui.Container.MaxWidth)),this.addCssTextProperty("width",com.inq.ui.Container.encodeSize(o))),this._style},com.inq.ui.Container.prototype.buildStyleOriginal=function(){this.buildNewStyle()},com.inq.ui.Container.prototype.buildChatElementStyle=function(){this.buildNewStyle()},com.inq.ui.Container.prototype.buildNewStyle=function(){null!=this._div&&this._div.id==com.inq.ui.Container.SC_SKIN&&com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?this._style=this.buildCssText("position: relative; overflow: hidden;"):this._style=this.buildCssText("position: absolute; overflow: hidden;"),com.inq.ui.Container.MaxWidth=null},com.inq.ui.Container.prototype.fixCssClasses=function(){if(this._div)for(var t=this._div.getElementsByTagName("*"),e=0;e<t.length;e++)try{this.addCssClass(t[e])}catch(t){}},com.inq.ui.Container.prototype.addCssClass=function(t){null==t||"BODY"==t.nodeName.toUpperCase()||null==t.id||""==t.id||0!=t.id.indexOf(com.inq.ui.Container.CLIENT_SPACE_PREFIX)&&0!=t.id.indexOf(com.inq.ui.Container.LEGACY_PREFIX)||(null==t.className||""==t.className?t.className=com.inq.ui.Container.CHAT_CLASS:-1==t.className.indexOf(com.inq.ui.Container.CHAT_CLASS)&&(t.className+=" "+com.inq.ui.Container.CHAT_CLASS))},com.inq.ui.Container.prototype.buildStyle=function(){com.inq.utils.Capabilities._isWebKit()&&com.inq.ui.SkinLoader.skinInClient||com.inq.ui.SkinLoader.hasClientBody?(this.fixCssClasses(),null!=this.parent&&js.Boot.__instanceof(this.parent,com.inq.ui.ClientBody)?this.buildClientElementStyle():this.buildNewStyle()):this.buildNewStyle()},com.inq.ui.Container.prototype.buildClientElementStyle=function(){this._style=this.buildCssText("",!0)},com.inq.ui.Container.prototype.setVisible=function(t){try{this._visible=!("false"==t||null==t||0==t),this._visible?this.fireVisible():this.fireHidden();var e=com.inq.flash.client.control.FlashPeer.isPersistentWindow();if(null!=this._div&&(this._div.id==com.inq.ui.Container.SC_RESIZE||this._div.id==com.inq.ui.Container.SC_TITLEBAR)&&(e||com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()))return this._visible=!1,void(this._div.style.cssText="display: none;");if(this.styles.visible=this._visible?"true":"false",null==this.parent&&null!=this._div)return void(this._div.style.display=this._visible?"":"none");this.resize(),this.resizer(this.contains)}catch(t){}},com.inq.ui.Container.prototype.fireVisible=function(){com.inq.ui.CommandParser.executeLogic(this.styles.onVisible,!1,this)},com.inq.ui.Container.prototype.fireHidden=function(){com.inq.ui.CommandParser.executeLogic(this.styles.onHidden,!1,this)},com.inq.ui.Container.prototype.getVisible=function(){return this._visible},com.inq.ui.Container.prototype.setWidth=function(t){this.styles.width=""+Std.string(t)},com.inq.ui.Container.prototype.getWidth=function(){if("collapse"==this.styles.visibility)return 0;if(null!=this.styles.width)return this.evaluatePosition(""+this.styles.width);var t=this._div.style.width;return null!=t?Std.parseInt(""+t):this._div.clientWidth},com.inq.ui.Container.prototype.setHeight=function(t){this.styles.height=t},com.inq.ui.Container.prototype.getHeight=function(){return"collapse"==this.styles.visibility?0:null!=this.styles.height?this.evaluatePosition(""+this.styles.height):Std.parseInt(""+Std.string(this._div.style.height))},com.inq.ui.Container.prototype.getStyle=function(t){return this.styles[t]},com.inq.ui.Container.prototype.setStyle=function(t,e){this.styles[t]=e,null!=this.parent&&(this.resize(),this.resizer(this.contains))},com.inq.ui.Container.prototype.initStyle=function(t,e){this.styles[t]=e},com.inq.ui.Container.prototype.initAttribute=function(t,e){this.attributeMap[t]=e},com.inq.ui.Container.prototype.applyAttributeMap=function(){for(var t in this.attributeMap)this.getPrimaryObject().setAttribute(t,this.attributeMap[t])},com.inq.ui.Container.prototype.getPrimaryObject=function(){return this._div},com.inq.ui.Container.prototype.setX=function(t){this.setStyle("left",""+Std.string(t)),null!=this.parent&&(this.resize(),this.resizer(this.contains))},com.inq.ui.Container.prototype.getX=function(){var t=this._div.style.left;return null!=t?this.evaluatePosition(""+t):this._div.clientLeft},com.inq.ui.Container.prototype.setY=function(t){this.setStyle("top",""+Std.string(t)),this.resize(),this.resizer(this.contains)},com.inq.ui.Container.prototype.getY=function(){var t=this._div.style.top;return null!=t?this.evaluatePosition(""+t):this._div.clientTop},com.inq.ui.Container.prototype.whenLoaded=function(t){try{var e=this._backgroundImage,i=this._backgroundImage,n=i,o=0,a=0,s=0,l=0,r=this._div,c=null,h=i.ownerDocument;h!=this.document&&(h=this._div.ownerDocument,haxe.Log.trace("Document object error, correcting",{fileName:"Container.hx",lineNumber:252,className:"com.inq.ui.Container",methodName:"whenLoaded"})),this.getIsSprite()&&(o=this.evaluatePosition(this.getStyle("sprite-width")),a=this.evaluatePosition(this.getStyle("sprite-height")),s=this.evaluatePosition(this.getStyle("sprite-left")),l=this.evaluatePosition(this.getStyle("sprite-top")),(c=h.createElement("CANVAS")).width=o,c.height=a,i.width=o,i.height=a,n=c),this._loadWidth=i.width,this._loadHeight=i.height,i.style.height="100%",i.style.width="100%",null!=this.getStyle("height")||null!=this.getStyle("top")&&null!=this.getStyle("bottom")?null!=this.getStyle("height")&&(n.style.height=this.evaluatePosition(this.getStyle("height"))+"px"):(this.initStyle("height",""+Std.string(this._loadHeight)),n.style.height=Std.string(this._loadHeight)+"px"),null!=this.getStyle("width")||null!=this.getStyle("left")&&null!=this.getStyle("right")?null!=this.getStyle("width")&&(n.style.width=this.evaluatePosition(this.getStyle("width"))+"px"):(this.initStyle("width",""+Std.string(this._loadWidth)),n.style.width=Std.string(this._loadWidth)+"px"),this._img&&(this._img.style.height=n.style.height,this._img.style.width=n.style.width),null!=r.firstChild&&"IMAGE"==r.firstChild.tagName&&r.removeChild(r.firstChild);try{r.insertBefore(e,r.firstChild)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;r.innerHTML='<IMG style="width:100%;height:100%"  src="'+Std.string(i.src)+'">'}this.getIsSprite()&&(c.style.cssText=i.style.cssText,c.id=Std.string(i.parentNode.id)+"_canvas",c.sourceImage=i,c.spriteTop=l,c.spriteLeft=s,c.spriteWidth=o,c.spriteHeight=a,i.parentNode.insertBefore(c,i.nextSibling),i.style.display="none",this.renderCanvas(c)),this.resize()}catch(t){haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"Container.hx",lineNumber:340,className:"com.inq.ui.Container",methodName:"whenLoaded"})}},com.inq.ui.Container.prototype.setBackgroundImage=function(t,e){this.setStyle("backgroundImage",t),null!=this.styles.backgroundImage&&""!=this.styles.backgroundImage&&(this._backgroundImage=this.getNewImage(),this._backgroundImage.onload=$bind(this,this.whenLoaded),this._backgroundImage.className=com.inq.ui.Container.CHAT_CLASS,this._backgroundImage.src=this.styles.backgroundImage,(void 0===e||e)&&(this._backgroundImage.setAttribute("aria-hidden","true"),this._backgroundImage.setAttribute("alt",""),this._backgroundImage.setAttribute("tabindex","-1")))},com.inq.ui.Container.prototype.getID=function(){return this.styles.id},com.inq.ui.Container.prototype.setID=function(t){if(com.inq.flash.client.control.FlashPeer.getIsBuilder()){var e=0==t.indexOf(com.inq.ui.Container.CLIENT_SPACE_PREFIX)||0==t.indexOf(com.inq.ui.Container.LEGACY_PREFIX),i=t;this._div.ownerDocument==window.document||e||(i=com.inq.ui.Container.CLIENT_SPACE_PREFIX+t),this._div.id=i,this.styles.id=t}else null!=this._div.ownerDocument&&this._div.ownerDocument==window.document&&!com.inq.flash.client.control.FlashPeer.noV3FrameChat()||!com.inq.ui.SkinLoader.hasClientBody?this._div.id=t:this._div.id=0==t.indexOf(com.inq.ui.Container.CLIENT_SPACE_PREFIX)||0==t.indexOf(com.inq.ui.Container.LEGACY_PREFIX)?t:com.inq.ui.Container.CLIENT_SPACE_PREFIX+t,this.styles.id=t},com.inq.ui.Container.prototype.setAttribute=function(t,e){void 0!==this._div&&this._div.setAttribute(t,e)},com.inq.ui.Container.prototype.addHtmlLabel=function(t){if(void 0!==this._div){var e=document.createElement("label");this.getHtmlLabelObject()&&e.setAttribute("for",this.getHtmlLabelObject().id),e.setAttribute("style","position: absolute; left: -9999"),e.innerHTML=t,this._div.appendChild(e),this._htmlLabel=e}},com.inq.ui.Container.prototype.getHtmlLabelObject=function(){var t=null;return void 0!==this._div&&(t=this._div.firstChild),t},com.inq.ui.Container.prototype.setFocus=function(){try{this._div.focus()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}},com.inq.ui.Container.prototype.setEnabled=function(t){null!=this._div&&(this._div.disabled=!t),t&&com.inq.ui.CommandParser.executeLogic(this.styles.onEnable,!1,this)},com.inq.ui.Container.prototype.getEnabled=function(){return null!=this._div&&!this._div.disabled},com.inq.ui.Container.prototype.clear=function(){for(var t=this._div;null!=t.lastChild;)t.removeChild(t.lastChild)},com.inq.ui.Container.prototype.setOnClick=function(t){this._div.onclick=t},com.inq.ui.Container.prototype.cleanUp=function(){},com.inq.ui.Container.prototype.setLabel=function(){},com.inq.ui.Container.prototype._clientStage=null,com.inq.ui.Container.prototype.document=null,com.inq.ui.Container.prototype.parent=null,com.inq.ui.Container.prototype._isSprite=null,com.inq.ui.Container.prototype.isSprite=null,com.inq.ui.Container.prototype.scrolling=null,com.inq.ui.Container.prototype.src=null,com.inq.ui.Container.prototype.x=null,com.inq.ui.Container.prototype.y=null,com.inq.ui.Container.prototype._parent=null,com.inq.ui.Container.prototype.width=null,com.inq.ui.Container.prototype._width=null,com.inq.ui.Container.prototype.enabled=null,com.inq.ui.Container.prototype.height=null,com.inq.ui.Container.prototype._height=null,com.inq.ui.Container.prototype.styles=null,com.inq.ui.Container.prototype.attributeMap=null,com.inq.ui.Container.prototype.visible=null,com.inq.ui.Container.prototype._visible=null,com.inq.ui.Container.prototype._style=null,com.inq.ui.Container.prototype.contains=null,com.inq.ui.Container.prototype._loadHeight=null,com.inq.ui.Container.prototype._loadWidth=null,com.inq.ui.Container.prototype._div=null,com.inq.ui.Container.prototype._htmlLabel=null,com.inq.ui.Container.CLIENT_SPACE_PREFIX="tcChat_",com.inq.ui.Container.LEGACY_PREFIX="inq",com.inq.ui.Container.CHAT_CLASS="tcChat",com.inq.ui.Container.SC_TITLEBAR="inqTitleBar",com.inq.ui.Container.SC_RESIZE="inqDivResizeCorner",com.inq.ui.Container.SC_SKIN="tcChat_Skin",com.inq.ui.Container.count=0,y(5306),y(8757),com.inq.ui.SkinLoader=function(t){com.inq.events.EventDispatcher.call(this),this.application=t||Application.application,com.inq.ui.SkinLoader.init()},$hxClasses.extend(com.inq.events.EventDispatcher,com.inq.ui.SkinLoader,"com.inq.ui.SkinLoader"),com.inq.ui.SkinLoader.init=function(){com.inq.ui.SkinLoader.hasClientBody=null,com.inq.ui.SkinLoader.skinInClient=null},com.inq.ui.SkinLoader._getSkinPath=function(){return com.inq.flash.client.control.FlashPeer.getIsSkinLocal()?com.inq.ui.SkinLoader._skinpath=com.inq.flash.client.control.FlashPeer.getSkinPath():com.inq.ui.SkinLoader._skinpath=com.inq.flash.client.control.FlashPeer.getImagePath()},com.inq.ui.SkinLoader.getSkinBase=function(){var t=com.inq.flash.client.control.FlashPeer.getSkin().split("\\").join("/").split("/");return t.pop(),t.join("/")},com.inq.ui.SkinLoader.getSkinPath=function(){return com.inq.ui.SkinLoader._skinpath},com.inq.ui.SkinLoader.getSkinURL=function(){return com.inq.ui.SkinLoader.currentSkin.path},com.inq.ui.SkinLoader.prepareSkinPath=function(t){return"./"==HxOverrides.substr(t,0,2)&&(t=HxOverrides.substr(t,2,null)),t.indexOf("\\")<0&&t.indexOf("/")<0&&(t=com.inq.ui.SkinLoader.getSkinBase()+"/"+t),t},com.inq.ui.SkinLoader.PreloadNewSkin=function(t){var e=com.inq.ui.SkinLoader.prepareSkinPath(t);com.inq.ui.SkinLoader.skinCollection[e]||com.inq.flash.client.control.FlashPeer.prefetchURL(e)},com.inq.ui.SkinLoader.LoadNewSkin=function(t){var e=new com.inq.ui.SkinLoader,i=Application.application.getTextInput("txtInput"),n=Application.application.getButton("ClickPersistent"),o=Application.application.getButton("btnPopOut"),a=Application.application.getButton("btnCall"),s=Application.application.getButton("btnCloseChat");com.inq.ui.SkinLoader.contextArray[0]=t,com.inq.ui.SkinLoader.contextArray[1]=com.inq.flash.client.chatskins.SkinControl.cw.exportData(),com.inq.ui.SkinLoader.contextArray[2]=i._getInput(),com.inq.ui.SkinLoader.contextArray[3]=n.getVisible(),com.inq.ui.SkinLoader.contextArray[4]=null!=o&&o.getVisible(),com.inq.ui.SkinLoader.contextArray[5]=null!=a&&a.getVisible(),com.inq.ui.SkinLoader.contextArray[6]=null!=s&&s.getVisible(),com.inq.flash.client.chatskins.SndMgr.lazyInitDone=!1,com.inq.flash.client.chatskins.SkinControl.customerTypedText=i._text.value,e.addEventListener(com.inq.events.Event.COMPLETE,com.inq.ui.SkinLoader.successNewSkinLoad),e.drawSkin(t)},com.inq.ui.SkinLoader.successNewSkinLoad=function(t){haxe.Log.trace("success",{fileName:"SkinLoader.hx",lineNumber:877,className:"com.inq.ui.SkinLoader",methodName:"successNewSkinLoad"}),com.inq.ui.SkinLoader.newSkinLoaded=!0,com.inq.flash.client.chatskins.SkinControl.cw=new com.inq.flash.client.chatskins.ChatTextArea(Application.application.chatWindow),Application.application.resize(),com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()&&(com.inq.utils.Util.isIE?Application.ResizeStage(window.parent.document.documentElement.clientWidth,window.parent.document.documentElement.clientHeight):Application.ResizeStage(window.top.innerWidth,window.top.innerHeight)),com.inq.utils.Capabilities.isIpad()||com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField(),com.inq.flash.client.chatskins.SkinControl.setupButtons(),com.inq.flash.client.chatskins.SkinControl.startKeyListener(),com.inq.flash.client.chatskins.SkinControl.startEmailKeyListener(),com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection();var e=Application.application.getButton("btnPopOut"),i=Application.application.getButton("btnCall"),n=Application.application.getButton("btnCloseChat");com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?com.inq.flash.client.control.PersistenceManager.SetValue(EMBEDDED_SKIN_PATH,com.inq.ui.SkinLoader.contextArray[0]):com.inq.flash.client.control.PersistenceManager.SetValue(SKIN_PATH,com.inq.ui.SkinLoader.contextArray[0]),com.inq.flash.client.chatskins.SkinControl.cw.importData(com.inq.ui.SkinLoader.contextArray[1]),com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons(com.inq.ui.SkinLoader.contextArray[3]),null!=e&&e.setVisible(com.inq.ui.SkinLoader.contextArray[4]),null!=i&&i.setVisible(com.inq.ui.SkinLoader.contextArray[5]),null!=n&&n.setVisible(com.inq.ui.SkinLoader.contextArray[6]),com.inq.flash.client.chatskins.SkinControl.ClassInits();var o=com.inq.flash.client.chatskins.SkinControl.getTextInputField();if(o){var a=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0),s=com.inq.flash.client.chatskins.SkinControl.customerTypedText;s.length>0&&o.setText(s),0==a&&o.setIntroduction()}},com.inq.ui.SkinLoader.prototype.getSkinPath=com.inq.ui.SkinLoader.getSkinPath,com.inq.ui.SkinLoader.prototype.testClientBody=function(t){var e,i=new haxe.xml.Fast(t.firstElement());try{e=i.node.resolve("mx:ClientBody")}catch(t){e=null}return null!=e},com.inq.ui.SkinLoader.prototype.testSkinInClient=function(t){var e,i=new haxe.xml.Fast(t.firstElement()),n=com.inq.flash.client.control.FlashPeer.isPersistentWindow(),o=com.inq.utils.Util.getConfig("divSkin",!1);if((com.inq.utils.Capabilities.isMobile()||o)&&!n){try{e=i.node.resolve("mx:ClientBody")}catch(t){e=null}if(null!=e)for(var a=e.getElements();a.hasNext();){var s=a.next();if(s.has.resolve("id")&&"Skin"==s.att.resolve("id"))return!0;if(s.has.resolve("id")&&"inqTitleBar"==s.att.resolve("id"))for(var l=s.getElements();l.hasNext();){var r=l.next();if(r.has.resolve("id")&&"Skin"==r.att.resolve("id"))return!0}}}return!1},com.inq.ui.SkinLoader.prototype.loadSkinConfig=function(t){var e,i=new haxe.xml.Fast(t.firstElement());try{if(!(e=i.node.resolve("mx:Script")))return}catch(t){return}this._processMxmlScript(e.getInnerData())},com.inq.ui.SkinLoader.prototype._processMxmlScript=function(t){if(!Application.application.skinConfig){var e=t.indexOf("skinConfig");if(e>0){e=t.indexOf("{",e);var i=t.lastIndexOf("}"),n=HxOverrides.substr(t,e,i+1-e),o=n.replace(/\r?\n\s+|\r/g,"");o=(o=o.replaceAll("'",'"')).replace(/(,)(\s+)(\S+:)/g,"$1$3"),Application.application.skinConfig=com.inq.flash.client.control.FlashPeer.JSONParse(o,!0),null===Application.application.skinConfig&&com.inq.flash.client.control.FlashPeer.evaluateLegacySettings("Application.application['skinConfig'] = "+n),com.inq.flash.client.chatskins.SkinControl.fireMxmlHandler("onParsedFlashVars")}}},com.inq.ui.SkinLoader.prototype._renderMxml=function(t,e){for(var i,n,o,a,s,l,r=com.inq.utils.Util.isIE&&"CSS1Compat"!==window.top.document.compatMode;t.hasNext();){var c=t.next();if(i=c.getNodeName(),null==(n=c.get("id"))&&(n="tcChat_"+Math.round(Math.random()*Math.PI*7654321)),0==i.indexOf("html:")){o=c;var h=new com.inq.ui.Html(i,n,e);this.applyAttributes(o,h),h.attachTo(e),"inqTitleBar"!=n&&"inqDivResizeCorner"!=n&&"tcChat_Skin"!=n?Application.application.setMxmlItem(h):haxe.Log.trace("special case: "+n,{fileName:"SkinLoader.hx",lineNumber:408,className:"com.inq.ui.SkinLoader",methodName:"_renderMxml"}),(a=o.elements()).hasNext()||null==o.firstChild()||null!=(l=o.firstChild().getNodeValue())&&""!=l&&(h._div.innerHTML=l),this._renderMxml(a,h),"inqTitleBar"!=n&&"inqDivResizeCorner"!=n&&h.applyStyles(),"Minimized"==n&&com.inq.utils.Util.isIE&&r&&"fixed"==h._div.style.position&&(h._div.style.position="absolute")}else switch(i){case"mx:Style":if(null!=(R=(o=c).get("source"))){com.inq.flash.client.control.FlashPeer.getIsSkinLocal()?(R=R+"?"+Math.random().toString(),R=com.inq.flash.client.control.FlashPeer.getSkinPath()+"/"+R):R=com.inq.flash.client.control.FlashPeer.noJSHostingInTagserver()?com.inq.flash.client.control.FlashPeer.getClientStaticURL()+"/"+R:com.inq.ui.SkinLoader.getSkinPath()+"/"+R;var m=window.document;try{m="mx:ClientBody"==o.getParent().getNodeName()?window.parent.document:window.document}catch(t){m=window.document}var u=com.inq.ui.Container._getElementByTN("HEAD",m)[0],p=null,d=u.getElementsByTagName("LINK");if(null!=d&&d.length>0)for(var f=0,g=d.length;f<g;f++)if("mxStyle"==d[f].id){p=d[f];break}null==p?((p=m.createElement("LINK")).name="mxStyle",p.type="text/css",p.rel="stylesheet",p.media="screen","https:"==window.top.location.protocol&&-1==R.indexOf("https")&&(R=R.replace("http","https")),p.href=R,u.appendChild(p)):p.href=R,Application.application.styleLinksList.push(p)}break;case"mx:ClientBody":o=c;var C=new com.inq.ui.ClientBody;Application.application.setMxmlItem(C),a=o.elements(),this._renderMxml(a,C);break;case"mx:Literal":o=c;var q=new com.inq.ui.Literal(n);this.applyAttributes(o,q),q.attachTo(e),Application.application.setMxmlItem(q),a=o.elements(),this._renderMxml(a,q);break;case"mx:htag":var S=(o=c).get("el"),_=new com.inq.ui.Html(S,n,e);this.applyAttributes(o,_),_.attachTo(e),Application.application.setMxmlItem(_),(a=o.elements()).hasNext()||null==o.firstChild()||null!=(l=o.firstChild().getNodeValue())&&""!=l&&(_._div.innerHTML=l),this._renderMxml(a,_),_.applyStyles();break;case"mx:Canvas":o=c,(s=new com.inq.ui.Canvas(n)).attachTo(e),this.applyAttributes(o,s),s.applySkinAttribute(),Application.application.setMxmlItem(s),a=o.elements(),this._renderMxml(a,s);break;case"mx:Button":for(var M=[],T=(o=c).elementsNamed("mx:upSkin");T.hasNext();){var E=T.next();R=this.unembed(""+Std.string(E.firstChild()),k),M.push(R)}var y=o.get("text"),k=new com.inq.ui.Button(n,M,y);k.attachTo(e),this.applyAttributes(o,k),k.addEventListener(com.inq.events.MouseEvent.CLICK,null),Application.application.setMxmlItem(k);break;case"mx:Text":o=c;var A=new com.inq.ui.Text;this.applyAttributes(o,A),A.attachTo(e),Application.application.setMxmlItem(A);break;case"mx:Image":o=c;var b=new com.inq.ui.Image(n);this.applyAttributes(o,b);for(var v=o.elementsNamed("mx:source");v.hasNext();){var I=v.next();R=this.unembed(""+Std.string(I.firstChild()),b),b.setSrc(R)}b.attachTo(e),Application.application.setMxmlItem(b);break;case"mx:TextArea":o=c;var w=new com.inq.ui.TextArea(n);this.applyAttributes(o,w),w.attachTo(e),Application.application.setMxmlItem(w);break;case"mx:TextInput":o=c;var F=new com.inq.ui.TextInput(n);this.applyAttributes(o,F),F.attachTo(e),Application.application.setMxmlItem(F);break;case"mx:LineInput":o=c;var x=new com.inq.ui.LineInput(n);this.applyAttributes(o,x),x.attachTo(e),Application.application.setMxmlItem(x);break;case"mx:Label":o=c;var P=new com.inq.ui.Label;this.applyAttributes(o,P),P.attachTo(e),Application.application.setMxmlItem(P);break;case"mx:XFrame":o=c;var N=new com.inq.ui.XFrame(n),L=com.inq.flash.client.control.FlashPeer.getSiteConstants(),R=o.get("source");if(L&&L.ACIF_V2_XFORMS_ID&&R){var O=com.inq.flash.client.control.FlashPeer.parseXFrameUrl(this.unembed(R,null));L.ACIF_V2_XFORMS_ID==O.params[com.inq.flash.client.data.MessageFields.DATA_DTID]&&(o.set("init","false"),N.setAttribute("data-acif-v2-frame",""))}this.applyAttributes(o,N),N.attachTo(e),Application.application.setMxmlItem(N);break;case"mx:IFrame":o=c;var D=new com.inq.ui.IFrame(n);this.applyAttributes(o,D),D.attachTo(e),Application.application.setMxmlItem(D);break;case"mx:Script":R=c.toString(),this._processMxmlScript(R);break;case"mx:FileInput":o=c;var H=new com.inq.ui.FileInput(n);this.applyAttributes(o,H),H.attachTo(e),Application.application.setMxmlItem(H);break;case"mx:VideoTag":o=c;var V=new com.inq.ui.VideoTag(n);this.applyAttributes(o,V),V.attachTo(e),Application.application.setMxmlItem(V);break;case"mx:VideoPlayer":var B=new com.inq.ui.VideoPlayer(n);this.applyAttributes(c,B),B.attachTo(e),Application.application.setMxmlItem(B)}}},com.inq.ui.SkinLoader.prototype._draw=function(t){var e;new com.inq.ui.Container("Skin").clear(),null==t&&(t=haxe.Resource.getString("mxml"));var i=com.inq.flash.client.control.FlashPeer.getChatSkinFmt();try{"json"===i?("string"==typeof t&&(t=Inq.JSON.parse(t)),e=com.inq.utils.JsonML.jsonToXml(t)):e=Xml.parse(t)}catch(t){return void haxe.Log.trace("Parsing mxml ERROR:"+Std.string(t),{fileName:"SkinLoader.hx",lineNumber:733,className:"com.inq.ui.SkinLoader",methodName:"_draw"})}if(haxe.Log.trace("Ask if skin is in client",{fileName:"SkinLoader.hx",lineNumber:304,className:"com.inq.ui.SkinLoader",methodName:"_draw"}),this.loadSkinConfig(e),com.inq.ui.SkinLoader.hasClientBody=this.testClientBody(e),com.inq.ui.SkinLoader.skinInClient=this.testSkinInClient(e),com.inq.ui.SkinLoader.skinInClient){haxe.Log.trace("skin is in the client",{fileName:"SkinLoader.hx",lineNumber:308,className:"com.inq.ui.SkinLoader",methodName:"_draw"});var n=Application.application._div,o=window.parent.document,a=window.frameElement;if(Application.application.setPanelWindow(window.parent),n.ownerDocument==o)haxe.Log.trace("We already are in the client space, no need to move",{fileName:"SkinLoader.js",lineNumber:865,className:"com.inq.ui.SkinLoader",methodName:"_draw"});else{Application.application.clear(),haxe.Log.trace("remove element",{fileName:"SkinLoader.hx",lineNumber:317,className:"com.inq.ui.SkinLoader",methodName:"_draw"}),n.parentElement&&n.parentElement.removeChild(n);try{o.adoptNode?(haxe.Log.trace("Adopt the node into the new document",{fileName:"SkinLoader.hx",lineNumber:329,className:"com.inq.ui.SkinLoader",methodName:"_draw"}),o.adoptNode(n),haxe.Log.trace("Node has been adopted into new document",{fileName:"SkinLoader.hx",lineNumber:331,className:"com.inq.ui.SkinLoader",methodName:"_draw"})):(haxe.Log.trace("adoptNode not implemented on this browser create new div",{fileName:"SkinLoader.hx",lineNumber:333,className:"com.inq.ui.SkinLoader",methodName:"_draw"}),n=o.createElement("DIV"))}catch(t){haxe.Log.trace("Document could not adopt element",{fileName:"SkinLoader.hx",lineNumber:337,className:"com.inq.ui.SkinLoader",methodName:"_draw",customParams:[t]})}}if(n.name="Stage",haxe.Log.trace("insert element as next sibling",{fileName:"SkinLoader.hx",lineNumber:346,className:"com.inq.ui.SkinLoader",methodName:"_draw"}),com.inq.flash.client.control.FlashPeer.noV3FrameChat()){n.style.zIndex="999999";var s=com.inq.ui.Container._getElementById("inqTitleBar",o);s.parentElement.insertBefore(n,s)}else if(n.style.zIndex=a.style.zIndex,com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()){var l=com.inq.ui.Container._getElementById(com.inq.flash.client.control.FlashPeer.getEmbeddedTheme().id,o);l.innerHTML="",l.appendChild(n)}else a.parentElement.insertBefore(n,a.nextSibling);Application.application._div=n,haxe.Log.trace("skin has been moved to the client",{fileName:"SkinLoader.hx",lineNumber:349,className:"com.inq.ui.SkinLoader",methodName:"_draw"})}Application.application.initStyle("id","Skin"),Application.application.clear(),Application.application.setID("Skin"),this.applyAttributes(e.firstElement(),Application.application),window.frameElement&&Application.application.attachToElement(window.document.body);for(var r=e.elements();r.hasNext();){var c=r.next();this._renderMxml(c.elements(),Application.application)}this.executeCode()},com.inq.ui.SkinLoader.prototype.applyAttributes=function(t,e){for(var i=t.attributes();i.hasNext();){var n=i.next(),o=t.get(n);if(StringTools.startsWith(n.toLowerCase(),"aria-")||["role","alt","tabindex","accesskey","tooltip","required","data-state-label-list"].includes(n.toLowerCase()))e.initAttribute(n.toLowerCase(),o);else switch(n){case"id":e.setID(o);break;case"el":e._div=document.createElement(o);break;case"min-width":e.initStyle(n,o+"px");break;case"style":js.Boot.__instanceof(e,com.inq.ui.Html)&&e._setStyle(o);break;case"scrolling":e.setScrolling(o);break;case"source":e.setSrc(this.unembed(o,e));break;case"backgroundImage":e.initStyle("backgroundImage",this.unembed(o,e)),e.setBackgroundImage(this.unembed(o,e),!1);break;case"enabled":e.setEnabled("false"!=o);break;case"visible":"collapse"==o&&(e.initStyle("visibility","collapse"),o="false"),e.initStyle("visible",o),e.setVisible("false"!=o);break;case"upSkin":e.initStyle("upSkin",this.unembed(o,e)),e.setUpSkin(this.unembed(o,e));break;case"overSkin":e.initStyle("overSkin",this.unembed(o,e));break;case"init":e.setInitOnLoad(o);break;case"htmlLabel":void 0!==o&&e.addHtmlLabel(o);break;case"placeholder":e.setIntroduction(o);break;case"label":e.setLabel(o);break;default:e.initStyle(n,o)}}e.applyStyle(),e.applyAttributeMap()},com.inq.ui.SkinLoader.prototype.unembed=function(t,e){var i=!1,n=t,o=new EReg("@Embed\\('([^']*)',([^,]*),([^,]*),([^,]*),([^,]*)\\)","i");try{if(StringTools.startsWith(n,"@Embed(")){if(null!=this.getImageMap())try{var a=this.getImageMap()[n];null!=a&&(n=a)}catch(t){haxe.Log.trace("map error "+n+":"+Std.string(t),{fileName:"SkinLoader.hx",lineNumber:188,className:"com.inq.ui.SkinLoader",methodName:"unembed"})}if(o.match(n)){if(n=o.matched(1),null!=e){var s=o.matched(2),l=o.matched(3),r=o.matched(4),c=o.matched(5);e.initStyle("sprite-height",c),e.initStyle("sprite-width",r),e.initStyle("sprite-left",s),e.initStyle("sprite-top",l),e.isSprite=!0}i=!0}else n=HxOverrides.substr(n,7,n.length-8),i=!0}if("'"==n.charAt(0)&&(n=HxOverrides.substr(n,1,n.length-2)),com.inq.flash.client.control.FlashPeer.getIsSkinLocal()){var h=com.inq.flash.client.control.FlashPeer.getSkinPath();(n=(i?h+"/"+n:n).split("/./").join("/")).length>0&&(n=n+"?rand="+Math.random())}else n=(i?com.inq.ui.SkinLoader.getSkinPath()+"/"+n:n).split("/./").join("/");return n}catch(e){throw new String("Could not parse embed: "+t)}},com.inq.ui.SkinLoader.prototype.getImageMap=function(){if(null!=com.inq.ui.SkinLoader.spriteMap)return com.inq.ui.SkinLoader.spriteMap;var t=window.document.createElement("CANVAS"),e=com.inq.utils.Util.getConfig("html5map",null);return null!=t&&(t.getContext&&null!=e?com.inq.ui.SkinLoader.spriteMap=e:com.inq.ui.SkinLoader.spriteMap=null),com.inq.ui.SkinLoader.spriteMap},com.inq.ui.SkinLoader.prototype.executeCode=function(){try{var t=com.inq.utils.Util.getConfig("onInit",null);"function"==typeof t&&setTimeout((function(){t()}),0)}catch(t){haxe.Log.trace("Could not run SkinLoader.executeCode. ERROR: "+t,{fileName:"SkinLoader.js",methodName:"executeCode"})}},com.inq.ui.SkinLoader.prototype._successSkinLoad=function(t){200!=t.target.responseStatus&&304!=t.target.responseStatus||(this._addLoadedSkinToCollection(),this._draw(this._loaderSkin.data),this.dispatchEvent(t),com.inq.flash.client.chatskins.SkinControl.fireCustomEvent("SkinLoaded"))},com.inq.ui.SkinLoader.prototype.drawSkin=function(t){t=com.inq.ui.SkinLoader.prepareSkinPath(t),haxe.Log.trace("drawSkin: "+t,{fileName:"SkinLoader.js",lineNumber:1247,className:"com.inq.ui.SkinLoader",methodName:"drawSkin"});var e=com.inq.ui.SkinLoader.skinCollection[t];if(null==e)this._loaderSkin=new com.inq.net.URLLoader,this._requestSkin=new com.inq.net.URLRequest(t),this._loaderSkin.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this._successSkinLoad)),this._loaderSkin.load(this._requestSkin);else{haxe.Log.trace("drawSkin: get path from store",{fileName:"SkinLoader.js",lineNumber:1264,className:"com.inq.ui.SkinLoader",methodName:"drawSkin"}),this._draw(e.mxml),com.inq.ui.SkinLoader.currentSkin=e;var i=new com.inq.events.Event(com.inq.events.Event.COMPLETE);this.dispatchEvent(i)}},com.inq.ui.SkinLoader.prototype.drawSkinLocal=function(){var t=com.inq.flash.client.control.FlashPeer.getSkinMXML();this._draw(t);var e=new com.inq.events.Event(com.inq.events.Event.COMPLETE);if(this.dispatchEvent(e),com.inq.flash.client.control.FlashPeer.getIsBuilder()){var i=com.inq.flash.client.control.FlashVars.getAgentName();com.inq.flash.client.control.ApplicationController.prototype.appendReceivedText("Hello how can I help you?",i,1),com.inq.flash.client.control.ApplicationController.prototype.appendSentText("I need help with my account.",2),com.inq.flash.client.control.ApplicationController.prototype.appendReceivedText("Sure I can help you with that.",i,3),com.inq.flash.client.control.ApplicationController.prototype.appendReceivedText("This is a system message: Your chat has been disconnected.","system",4);var n=com.inq.utils.Util.getConfig("sAgentIsTyping","Agent is typing...");com.inq.flash.client.control.ApplicationController.prototype.appendReceivedText(n,"",5)}},com.inq.ui.SkinLoader.prototype._addLoadedSkinToCollection=function(){var t=this._requestSkin.url;com.inq.ui.SkinLoader.skinCollection[t]={mxml:this._loaderSkin.data,path:t},com.inq.ui.SkinLoader.currentSkin=com.inq.ui.SkinLoader.skinCollection[t]},com.inq.ui.SkinLoader.prototype.cleanUp=function(){com.inq.ui.SkinLoader.contextArray=[],com.inq.ui.SkinLoader.skinCollection={},com.inq.ui.SkinLoader.currentSkin=null},com.inq.ui.SkinLoader.prototype._requestSkin=null,com.inq.ui.SkinLoader.prototype._loaderSkin=null,com.inq.ui.SkinLoader.prototype.__class__=com.inq.ui.SkinLoader,com.inq.ui.SkinLoader.OVERALL_CONTAINER_ID="Skin",com.inq.ui.SkinLoader.LOADER_CONTAINER_ID="tc-chat-loader",com.inq.ui.SkinLoader._skinpath=com.inq.ui.SkinLoader._getSkinPath(),com.inq.ui.SkinLoader.currentSkin=null,com.inq.ui.SkinLoader.skinCollection={},com.inq.ui.SkinLoader.contextArray=[],com.inq.ui.SkinLoader.imageCount=0,com.inq.ui.SkinLoader.spriteMap=null,com.inq.ui.SkinLoader.newSkinLoaded=!1,com.inq.utils.Point=function(t,e){this.x=t,this.y=e},$hxClasses["com.inq.utils.Point"]=com.inq.utils.Point,com.inq.utils.Point.__name__=["com","inq","utils","Point"],com.inq.utils.Point.prototype.copy=function(){return new com.inq.utils.Point(this.x,this.y)},com.inq.utils.Point.prototype.toString=function(){return"Point[x: "+this.x+", y: "+this.y+"]"},com.inq.utils.Point.prototype.diff=function(t){var e=t.x-this.x,i=t.y-this.y;return new com.inq.utils.Point(e,i)},com.inq.utils.Point.prototype.equals=function(t){return t.x==this.x&&t.y==this.y},com.inq.utils.Point.prototype.moveTo=function(t,e){return this.x+=t,this.y+=e,this},com.inq.utils.Point.prototype.move=function(t,e){return this.x+=t,this.y+=e,this},com.inq.utils.Point.prototype.moveInto=function(t){this.x=this.forceRange(this.x,t.x,t.x+t.w),this.y=this.forceRange(this.y,t.y,t.y+t.h)},com.inq.utils.Point.prototype.forceRange=function(t,e,i){var n=t;return n>i&&(n=i),n<e&&(n=e),n},com.inq.utils.Point.prototype.y=null,com.inq.utils.Point.prototype.x=null,com.inq.utils.Point.prototype.__class__=com.inq.utils.Point,com.inq.utils.Area=function(t,e,i,n){com.inq.utils.Point.call(this,t,e),this.w=i,this.h=n},$hxClasses.extend(com.inq.utils.Point,com.inq.utils.Area,"com.inq.utils.Area"),com.inq.utils.Area.prototype.toString=function(){return"Area[x: "+this.x+", y: "+this.y+", w: "+this.w+", h: "+this.h+"]"},com.inq.utils.Area.prototype.equals=function(t){return this.x==t.x&&this.y==t.y&&this.w==t.w&&this.h==t.h},com.inq.utils.Area.prototype.scale=function(t){return this.w=Math.round(this.w*t),this.h=Math.round(this.h*t),this},com.inq.utils.Area.prototype.resize=function(t,e){return this.w+=t,this.h+=e,this},com.inq.utils.Area.prototype.moveInto=function(t){this.x=this.forceRange(this.x,t.x,t.x+t.w-this.w),this.y=this.forceRange(this.y,t.y,t.y+t.h-this.h)},com.inq.utils.Area.prototype.copy=function(){return new com.inq.utils.Area(this.x,this.y,this.w,this.h)},com.inq.utils.Area.prototype.h=null,com.inq.utils.Area.prototype.w=null,y(1703),window.Application=function(){com.inq.ui.Container.call(this),com.inq.utils.ConsoleLogger.redirectTraces(),this.skinLoader=new com.inq.ui.SkinLoader(this),this.applicationController=null,this.area=new com.inq.utils.Area(0,0,0,0),this.initialized=!1;var t=document.getElementById("Skin");t&&t.parentNode.removeChild(t);var e=document.getElementById("tcChat_Skin");e&&e.parentNode.removeChild(e),this.url=js.Lib.document.getElementById("inqChatJs").src;var i=this.url.split("\\").join("/").split("/");i.pop(),this.path=i.join("/"),this.initializeParameters(),this.preventChatClose=!1,this.screen=new com.inq.ui.Screen,this.stage=com.inq.ui.Stage.getInstance(),this.titlebar=new com.inq.ui.Image("inqTitleBar"),this.styleLinksList=[],this.panelWindow||this.setPanelWindow(window);var n=com.inq.ui.Container._getElementById("inqTitleBar",window.parent.document);null==n&&((n=window.parent.document.createElement("DIV")).id="inqTitleBar",n.style="position: absolute; z-index: 9999999; height: 1px; width: 1px; left: 0px; top: 0px;",window.parent.document.body.appendChild(n)),n.style.height=com.inq.flash.client.chatskins.SkinControl.getTitleBarHeight()+"px";var o;o=com.inq.flash.client.control.FlashPeer.getIsSkinLocal()?com.inq.flash.client.control.FlashPeer.getSkinPath()+"/"+com.inq.flash.client.control.FlashPeer.getSkinName()+"/clear.gif":this.getImagePath()+"clear.gif",this.clearImage=o,this.titlebar.setID("inqTitleBar"),this.titlebar.initStyle("cursor","move"),this.titlebar.initStyle("borderThickness","0"),this.titlebar.initStyle("top","0"),this.titlebar.initStyle("left","0");try{this.titlebar.initStyle("right",""+com.inq.flash.client.control.FlashPeer.getPopupCloserWidth())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;this.titlebar.initStyle("right","52")}try{this.titlebar.initStyle("height",""+com.inq.flash.client.chatskins.SkinControl.getTitleBarHeight())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"Application.hx",lineNumber:103,className:"Application",methodName:"new"})}this.titlebar.setStyle("zIndex",Application.zIndexResize);var a=this.titlebar._div.getElementsByTagName("INPUT");null!=a&&0!=a.length||(this.titlebar._div.innerHTML='<input type="image" src="'+o+'" style="height: 100%; width: 100%;" alt="" tabindex="-1"/>'),"_inqPersistentChat"==window.parent.name||com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?(this.titlebar.setVisible(!1),this.resizeCorner=null):this.resizeCorner=function(t){var e=null;if(com.inq.utils.Capabilities.isPhone()||(e=new com.inq.ui.Image("inqDivResizeCorner")),null!=e){e.setID("inqDivResizeCorner"),e.initStyle("cursor","se-resize"),e.initStyle("borderThickness","0"),e.initStyle("right","0"),e.initStyle("bottom","0"),e.initStyle("width",Application.dragArea.w),e.initStyle("height",Application.dragArea.h),e.setStyle("zIndex",Application.zIndexResize+1),e._div.setAttribute("alt",""),e._div.setAttribute("aria-hidden","true"),e._div.setAttribute("tabindex","-1");var i=e._div.getElementsByTagName("INPUT");null!=i&&0!=i.length||(e._div.innerHTML='<input type="image" src="'+t+"ResizeCorner.gif?rand="+Math.random()+'"style="position: absolute; top:0px; left:0px; height: 100%; width: 100%; bottom: 0px; right: 0px; display: block;" tabindex="-1"/>'),e.setVisible=function(t){this._div.style.display=t?"block":"none"},e.move2Stage=function(t,e,i,n){this._div.style.left=t+i-Application.dragArea.w+"px",this._div.style.top=e+n-Application.dragArea.h+"px",this._div.style.width=Application.dragArea.w+"px",this._div.style.height=Application.dragArea.h+"px",this._div.style.display=Application.resizable&&Application.application.getVisible()?"block":"none",Application.resizable||(this._div.style.visibility="collapse"),this._div.style.zIndex=Application.zIndexResize+1}}return e}(this.getImagePath()),this.onApplicationControllerInitializedHandlers=new Array,this.setVisibleResizeCorner=function(t){null!==this.resizeCorner&&this.resizeCorner.setVisible(t)},this.moveResizeCorner2Stage=function(t,e,i,n){null!==this.resizeCorner&&this.resizeCorner.move2Stage(t,e,i,n)},Application.prototype.setPreventChatClosed=function(t){this.preventChatClose=t},Application.prototype.getPreventChatClosed=function(){return this.preventChatClose},com.inq.flash.client.chatskins.SndMgr._init()},$hxClasses.extend(com.inq.ui.Container,Application,"Application"),Application.mxml=null,Application.containsOutside=null,Application.me=null,Application.ScrollStage=function(t,e,i){var n,o,a,s,l=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg:Application.IsPersistent()&&com.inq.utils.Capabilities.isIpad()?Application.application._div:js.Lib.window.frameElement,r=com.inq.utils.Capabilities.getViewport();n=Std.parseInt(l.style.width),o=Std.parseInt(l.style.height),a=Std.parseInt(l.style.left),s=Std.parseInt(l.style.top),(t<0||e<0)&&r.x>=n&&r.y>=o&&(t=0,e=0),(parent.innerHeight>o&&parent.innerWidth>n||i)&&(a+=t,s+=e,i||(a=Application.FixAbsoluteX(a,n),s=Application.FixAbsoluteY(s,o)),l.style.left=a+"px",l.style.top=s+"px",Application.MoveSizeDiv2Stage(n,o,a,s))},Application.ScrollStageRelPage=function(t,e){var i=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg:js.Lib.window.frameElement,n=Std.parseInt(i.style.width),o=Std.parseInt(i.style.height);i.style.left=t+"px",i.style.top=e+"px",Application.MoveSizeDiv2Stage(n,o,t,e)},Application.ScrollStageInPage=function(t,e){var i=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg:js.Lib.window.frameElement,n=Std.parseInt(i.style.width),o=Std.parseInt(i.style.height),a=Std.parseInt(i.style.left)+t,s=Std.parseInt(i.style.top)+e,l=Std.parseInt(window.parent.document.documentElement.offsetWidth),r=Math.max(Std.parseInt(window.parent.document.documentElement.offsetHeight),window.parent.document.body.clientHeight),c=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),h=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),m=com.inq.utils.Capabilities.getViewport(),u=l-n,p=l-h+m.w,d=r-o,f=r-c+m.h,g=u>p?u:p,C=d>f?d:f;a=(a=a<0?0:a)>g?g:a,s=(s=s<0?0:s)>C?C:s,i.style.left=a+"px",i.style.top=s+"px",Application.MoveSizeDiv2Stage(n,o,a,s)},Application.MoveSizeDiv2Stage=function(t,e,i,n){if(null==t&&(t=com.inq.flash.client.control.PersistenceManager.GetValue(WIDTH,Application.DEFAULT_WIDTH_VAL),null==(t=Std.parseInt(t))&&(t=Application.application.area.w)),t<Application.minWidth&&(t=Application.minWidth),null==e&&(e=com.inq.flash.client.control.PersistenceManager.GetValue(HEIGHT,Application.DEFAULT_HEIGHT_VAL),null==(e=Std.parseInt(e))&&(e=Application.application.area.h)),e<Application.minHeight&&(e=Application.minHeight),null==n&&(n=Application.application.area.y),null==i&&(i=Application.application.area.x),Application.application.area=new com.inq.utils.Area(i,n,t,e),Application.application.setWidth(Application.application.area.w),Application.application.setHeight(Application.application.area.h),null!=Application.application._div&&null!=Application.application._div.ownerDocument&&Application.application._div.ownerDocument!=window.document||com.inq.flash.client.control.FlashPeer.noV3FrameChat()){var o=com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?1:Application.zIndexResize;com.inq.flash.client.control.FlashPeer.getIsBuilder()&&(o-=1),com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()||(Application.application._div.style.left=i+"px",Application.application._div.style.top=n+"px"),Application.application._div.style.zIndex=o,Application.application.initStyle("top",""+n),Application.application.initStyle("left",""+i),Application.application.initStyle("width",""+t),Application.application.initStyle("height",""+e),Application.application.initStyle("overflow","hidden"),Application.application.initStyle("z-index",""+o)}var a=parent.document,s=com.inq.ui.Container._getElementById("inqTitleBar",a);if(s){s.style.left=i+"px",s.style.top=n+"px";var l=Application.application.titlebar.getStyle("right");s.style.width=t-l+"px",com.inq.utils.Util.getConfig("dragAreaWidth")&&(s.style.width=com.inq.utils.Util.getConfig("dragAreaWidth")+"px"),com.inq.utils.Util.getConfig("dragAreaHeight")&&(s.style.height=com.inq.utils.Util.getConfig("dragAreaHeight")+"px"),Application.draggable||(s.style.visibility="collapse"),s.style.zIndex=Application.zIndexResize;try{var r=s.getElementsByTagName("input")[0];null!=r&&(com.inq.utils.Util.getConfig("dragAreaWidth")?s.style.width=com.inq.utils.Util.getConfig("dragAreaWidth")+"px":r.style.width=t-l+"px")}catch(t){haxe.Log.trace("ERROR: resizing input element in title bar: "+Std.string(t),{fileName:"Application.hx",lineNumber:379,className:"Application",methodName:"MoveSizeDiv2Stage"})}}if(!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()){var c={};c[LEFT]=i,c[TOP]=n,com.inq.flash.client.control.PersistenceManager.SetValues(c)}Application.application.moveResizeCorner2Stage(i,n,t,e)},Application.FixAbsoluteX=function(t,e){var i,n=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft();return i=t-n,Application.FixX(i,e)+n},Application.FixAbsoluteY=function(t,e){var i,n;return i=t-(n=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()),Application.FixY(i,e)+n},Application.FixX=function(t,e){var i=t<0?0:t,n=i+e,o=com.inq.flash.client.chatskins.ScrollMonitor.getScrollWidth();return n>o&&0!=i&&(i=o-e),i<0&&(i=0),i},Application.FixY=function(t,e){var i=t<0?0:t,n=com.inq.flash.client.chatskins.ScrollMonitor.getScrollHeight()-e;return i>n&&0!=i&&(i=n),i<0&&(i=0),i},Application.SetArea=function(t){com.inq.utils.Capabilities.isPhone()?(Application.application._div.style.top="0px",Application.application._div.style.left="0px",Application.ResizeStage(t.w,t.h)):(Application.ResizeStage(t.w,t.h),Application.MoveStage(t.x,t.y))},Application.IsPersistent=function(){return Application.isPersistent},Application.GetArea=function(){return Application.application.area.copy()},Application.MoveStage=function(t,e){var i=com.inq.flash.client.control.FlashPeer.getEmbeddedTheme();if(!i||!i.isValid){var n,o,a,s,l=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg:js.Lib.window.frameElement,r=Std.parseInt(l.style.width),c=Std.parseInt(l.style.height),h={},m=com.inq.utils.Capabilities.getViewport();r<m.w&&c<m.h?(t-=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),e-=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),a=(n=Application.FixX(t,r))-t,s=(o=Application.FixY(e,c))-e,h[LEFT]=n,h[TOP]=o):(a=0,s=0,h[LEFT]=t,h[TOP]=e),com.inq.flash.client.control.PersistenceManager.SetValues(h),Application.ScrollStage(a,s,!0)}},Application.getMinWidth=function(){return Application.minWidth},Application.getMinHeight=function(){return Application.minHeight},Application.ResizeStage=function(t,e){t<Application.minWidth&&(t=Application.minWidth),e<Application.minHeight&&(e=Application.minHeight);var i=com.inq.ui.Stage.getStageElement();if(i&&!Application.isPersistent){i.style.height=Application.application.stg.style.height=Std.string(e)+"px",i.style.width=Application.application.stg.style.width=Std.string(t)+"px";var n={};n[HEIGHT]=e,n[WIDTH]=t,com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()||com.inq.flash.client.control.PersistenceManager.SetValues(n),Application.MoveSizeDiv2Stage(t,e)}else if(Application.isPersistent){t<Application.minWidth&&(t=Application.minWidth),e<Application.minHeight&&(e=Application.minHeight);var o=com.inq.ui.Stage.getterStageWidth()?t-com.inq.ui.Stage.getterStageWidth():0,a=com.inq.ui.Stage.getterStageHeight()?e-com.inq.ui.Stage.getterStageHeight():0,s=window.parent;if(0!=o||0!=a)try{s.resizeBy(o,a)}catch(t){}Application.application.setWidth(Application.application.area.w=t),Application.application.setHeight(Application.application.area.h=e)}Application.Resize()},Application.Resize=function(){null!=Application.application&&Application.application.resize()},Application.doClick=function(t){return!1},Application._initTrace=function(){return haxe.Log.trace=com.inq.utils.ConsoleLogger.trace,!0},Application.main=function(){if(Application.hasRun&&(Application.hasRun=!1,Application._initTrace(),Application.application=null),Application.application=new Application,Application.application._init(),Application._initTrace(),!com.inq.utils.Capabilities.isPhone()){try{com.inq.stage.Move.setDragable()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}try{com.inq.stage.Resize.setResizable()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}}},Application.getInitialized=function(){return null!=Application.application&&Application.application.initialized},Application.launchWhenReady=null,Application.getLaunchWhenReady=function(){return window[Application.lWR]},Application.setLaunchWhenReady=function(t){return window[Application.lWR]=t,t},Application.resizePersistentFrame=function(){var t,e,i=window.frameElement;if(com.inq.utils.Capabilities.isMobile()){var n=com.inq.utils.Capabilities.getViewport();Application.SetArea(n)}else if(Application.resizable)if(-1==Application.popoutStageWidth&&-1==Application.popoutStageHeight)Application.ResizeStage(Application.popoutStageWidth=i.clientWidth,Application.popoutStageHeight=i.clientHeight);else{var o=i.clientWidth,a=i.clientHeight;if(a==Application.popoutStageHeight&&o==Application.popoutStageWidth)return;o<Application.minWidth&&(o=Application.minWidth),a<Application.minHeight&&(a=Application.minHeight),t=o-i.clientWidth,e=a-i.clientHeight,0==t&&0==e||window.parent.resizeBy(t,e),Application.ResizeStage(Application.popoutStageWidth=o,Application.popoutStageHeight=a)}else-1==Application.popoutStageWidth&&-1==Application.popoutStageHeight?Application.ResizeStage(Application.popoutStageWidth=i.clientWidth,Application.popoutStageHeight=i.clientHeight):(t=Application.popoutStageWidth-i.clientWidth,e=Application.popoutStageHeight-i.clientHeight,window.parent.resizeBy(t,e))},Application.Run=function(){if(!Application.hasRun){Application.hasRun=!0;var t=com.inq.flash.client.chatskins.SkinControl.getPersistentXPos(),e=com.inq.flash.client.chatskins.SkinControl.getPersistentYPos(),i=com.inq.flash.client.chatskins.SkinControl.getPersistentWidth(),n=com.inq.flash.client.chatskins.SkinControl.getPersistentHeight();com.inq.flash.client.control.FlashPeer.call("setPopoutChatPosAndDim",[t,e,i,n]),Application.application.run()}},Application.keySet=function(){for(var t=[],e=com.inq.utils.Util.fields(Application.application),i=0;i<e.length;i++){var n=e[i],o=Application.application[n];if(null!=o)try{js.Boot.__instanceof(o,com.inq.ui.Container)&&t.push(n)}catch(t){haxe.Log.trace("key value: "+n+" threw "+Std.string(t),{fileName:"Application.hx",lineNumber:1099,className:"Application",methodName:"keySet"})}else haxe.Log.trace("key value: "+n+" returns null",{fileName:"Application.hx",lineNumber:1103,className:"Application",methodName:"keySet"})}return t},Application.getContainer=function(t){var e=Application.application[t];return null==e||js.Boot.__instanceof(e,com.inq.ui.Container)?e:null},Application.prototype.customerEndsCobrowse=function(){com.inq.flash.client.chatskins.SkinControl.endCobrowse()},Application.prototype.updateXFrameFromBizRule=function(t,e,i){this.applicationController,this.whenApplicationControllerInitialized((function(){com.inq.flash.client.control.XFrameWorker.isLayerVisible(t)&&com.inq.flash.client.control.XFrameWorker.showLayer(t,null,e,i)}))},Application.prototype.showAutomaton=function(t,e,i,n){this.applicationController,this.whenApplicationControllerInitialized((function(){com.inq.flash.client.control.XFrameWorker.showLayer(t,null,e,i,null,n)}))},Application.prototype.sendDTEvent=function(t,e){null!=this.applicationController&&this.applicationController.sendDTEvent(t,e)},Application.prototype.setVisible=function(t){com.inq.ui.Container.prototype.setVisible.call(this,t),com.inq.ui.Stage.getInstance().setVisible(t),this.setVisibleResizeCorner(t),this.titlebar.setVisible(t)},Application.prototype.getVisible=function(){if(this._visible)if(com.inq.ui.SkinLoader.skinInClient){var t=com.inq.ui.Container.getElementById("chatWindow"),e=com.inq.ui.Container.getElementById("Skin");(t&&"none"===t.style.display||e&&"none"===e.style.display)&&this.setVisible(!1)}else window.frameElement&&"none"===window.frameElement.style.display&&this.setVisible(!1);return this._visible},Application.prototype.whenApplicationControllerInitialized=function(t){null==this.applicationController?this.onApplicationControllerInitializedHandlers.push(t):t()},Application.prototype.applyStyle=function(){if(com.inq.ui.Container.prototype.applyStyle.call(this),com.inq.utils.Capabilities.isPhone()){var t=com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid();if(this._div.style.position=t?"relative":"fixed",this._div.style.top="0px",this._div.style.left="0px",this._div.style.width="",this._div.style.right="0px",this._div.style.bottom="0px",this._div.style.height="",com.inq.utils.Capabilities.isWindowsPhone())this._div.style.position=t?"relative":"absolute",this._div.style.left=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()+"px",this._div.style.top=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()+"px",this._div.style.width=Application.application.area.w+"px",this._div.style.height=Application.application.area.h+"px";else if(!com.inq.utils.Capabilities.isAndroid()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus())this._div.style.bottom="",this._div.style.height=Application.application.area.h+"px",com.inq.utils.Capabilities.isIphone()&&(com.inq.utils.Capabilities.isSafariVersion8()||com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater()||com.inq.utils.Capabilities.isChromeiOS8()||com.inq.utils.Capabilities.isChromeiOS10()||com.inq.utils.Capabilities.isChromeiOS11()||com.inq.utils.Capabilities.isSafariVersionPrior8()||com.inq.utils.Capabilities.isIOSWebView())&&(this._div.style.position=t?"relative":"absolute",this._div.style.top=window.parent.pageYOffset,this._div.style.left=Application.application.area.x+"px",(com.inq.utils.Capabilities.isSafariVersion8()||com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater())&&(this._div.style.right="",this._div.style.width=Application.application.area.w+"px"));else if(this._div.clientHeight<Application.application.area.h)this._div.style.bottom="",this._div.style.height=Application.application.area.h+"px";else if(com.inq.utils.Capabilities.isIphone()&&(com.inq.utils.Capabilities.isChromeiOS8()||com.inq.utils.Capabilities.isChromeiOS10()||com.inq.utils.Capabilities.isChromeiOS11()||com.inq.utils.Capabilities.isSafariVersion8()||com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater())){var e=window.top;0==e.scrollY&&0==e.scrollX||e.scrollTo(0,-1),this._div.style.bottom="",this._div.style.height=Application.application.area.h+"px",this._div.style.right="",this._div.style.width=Application.application.area.w+"px",this._div.style.position=t?"relative":"absolute",this._div.style.top=window.parent.pageYOffset,this._div.style.left="0px"}else com.inq.utils.Capabilities.isAndroid()&&com.inq.utils.Capabilities.getChromeVersion()>=40?(this._div.style.bottom="",this._div.style.right="",this._div.style.height=Application.application.area.h+"px",this._div.style.width=Application.application.area.w+"px"):haxe.Log.trace("WARNING: Applying NO width & height to Application!",{fileName:"Application.js",lineNumber:1033,className:"Application",methodName:"applyStyle"})}},Application.prototype.run=function(){Application.setLaunchWhenReady(!0),Application.minWidth=com.inq.utils.Util.getConfig("minWidth",250),Application.minHeight=com.inq.utils.Util.getConfig("minHeight",150),Application.resizable=com.inq.utils.Util.getConfig("resizable",!0),Application.draggable=com.inq.utils.Util.getConfig("draggable",!0),Application.setFocusToBtnCloseOnOpen=com.inq.utils.Util.getConfig("setFocusOnClose",!1);var t=com.inq.utils.Util.getConfig("tooltipResize",""),e=com.inq.utils.Util.getConfig("tooltipDrag","");com.inq.utils.Capabilities.isIphone()&&com.inq.utils.Util.getConfig("parentDocumentBodyMarginTop",!1)&&(Application.parentDocumentBodyMarginTop=window.parent.document.body.getBoundingClientRect().top);var i=com.inq.flash.client.control.FlashPeer.isPersistentWindow(),n=com.inq.utils.Util.getConfig("divSkin",!1);!com.inq.utils.Capabilities.isMobile()&&!n||i||(n=!0);var o=com.inq.utils.Util.getConfig("overwriteLang",null),a=com.inq.utils.Util.getConfig("inheritDefaultLang",null);m("Skin"),m("Minimized"),m("btnThankYou");var s=window.parent.document.body.parentNode.lang;if(s=com.inq.utils.Util.getConfig("ariaLang",s||"en"),i?window.parent.document.body.parentNode.lang=null!=o?o:s:n||(window.document.body.parentNode.lang=null!=o?o:s),this.resizeCorner&&this.resizeCorner._div&&(this.resizeCorner._div.getElementsByTagName("INPUT")[0].title=t),this.titlebar._div.getElementsByTagName("INPUT").length>0&&(this.titlebar._div.getElementsByTagName("INPUT")[0].title=e),!com.inq.utils.Capabilities.isPhone()){try{com.inq.stage.Move.setDragable()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}try{com.inq.stage.Resize.setResizable()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}}Application.application.setInitialSize();var l=null==this.applicationController;l&&(this.applicationController=new com.inq.flash.client.control.ApplicationController,this.applicationController.registerMessageHandlers()),com.inq.flash.client.chatskins.SkinControl.setApplicationController(this.applicationController),com.inq.flash.client.chatskins.SkinControl.bInitialized=!1;try{com.inq.flash.client.chatskins.SkinControl.InitializeGlue()}catch(t){haxe.Log.trace("ERROR: In InitializeGlue: "+Std.string(t),{fileName:"Application.hx",lineNumber:999,className:"Application",methodName:"run"})}if(this.applicationController.getChat().isAsyncChat()||this.applicationController.initializeAutomatonMode(),this.applicationController.checkIfAdBlockersActive(),l)for(var r=0,c=this.onApplicationControllerInitializedHandlers;r<c.length;){var h=c[r];++r,h()}function m(t){var e;try{e=com.inq.ui.Container.getElementById(t),0!=t.indexOf(com.inq.ui.Container.CLIENT_SPACE_PREFIX)&&null==e&&(e=com.inq.ui.Container.getElementById(com.inq.ui.Container.CLIENT_SPACE_PREFIX+t)),null!=e&&(null!=o?e.setAttribute("lang",o):null!=a&&e.setAttribute("lang",s||a))}catch(t){}}com.inq.aria.AriaMsg.onChatShown(),Application.application.setupWindowIdHandler(),com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&(this.setVisible(!0),this.resize())},Application.prototype.setupWindowIdHandler=function(){com.inq.flash.client.control.FlashPeer.isMultiChatSupported()&&(top.window.addEventListener("focus",Application.application.setActiveWindowId),top.window.document.addEventListener("visibilitychange",Application.application.setActiveWindowId))},Application.prototype.setActiveWindowId=function(){!window.top.document.hidden&&Application.application.isConnected()&&com.inq.flash.client.control.FlashPeer.setActiveWindowId()},Application.prototype.setInitialSize=function(){window.parent;var t,e,i=com.inq.utils.Capabilities.getViewport(),n=com.inq.flash.client.control.FlashPeer.getEmbeddedTheme();n&&n.isValid?(e=n.w,t=n.h):com.inq.utils.Capabilities.isPhone()?(com.inq.stage.ViewportMgr.impl.saveScrollPosition(),com.inq.flash.client.chatskins.ScrollMonitor.ScrollToNearTop(),e=i.w,t=i.h):(e=com.inq.flash.client.chatskins.SkinControl.getSkinWidth(),t=com.inq.flash.client.chatskins.SkinControl.getSkinHeight()+com.inq.flash.client.chatskins.SkinControl.getTitleBarHeight(),e=com.inq.flash.client.control.PersistenceManager.GetValue(WIDTH,e),t=com.inq.flash.client.control.PersistenceManager.GetValue(HEIGHT,t));var o=js.Lib.window.frameElement;if(com.inq.flash.client.control.FlashPeer.isPersistentWindow()){Application.isPersistent=!0,this.stg.style.height="100%",this.stg.style.width="100%",this.stg.style.left="0px",this.stg.style.top="0px",o.style.width="100%",o.style.height="100%",this.titlebar.setVisible(!1),this.setVisibleResizeCorner(!1),this.styles.width=this.stg.clientWidth,this.styles.height=this.stg.clientHeight,window.parent.document.body.style.cssText+=";overflow: hidden;overflow-Y:hidden;overflow-X:hidden;margin:0px;padding:0px";var a=window.document.all?window.frameElement:window.parent;return o._resizeTimer=-1,com.inq.utils.Capabilities.BindListener(a,"resize",(function(){var t=window.frameElement,e=t.clientWidth,i=t.clientHeight;e==t._oldWidth&&i==t._oldHeight||(-1!=t._resizeTimer&&window.clearTimeout(t._resizeTimer),t._oldWidth=e,t._oldHeight=i,t._resizeTimer=window.setTimeout((function(){Application.resizePersistentFrame()}),50))})),o._oldWidth=o.clientWidth,o._oldHeight=o.clientHeight,o._resizeTimer=window.setTimeout((function(){Application.resizePersistentFrame()}),50),Application.ResizeStage(window.top.document.body.clientWidth,window.top.document.body.clientHeight),void this.resize()}this.stg.style.height=t+"px",this.stg.style.width=e+"px";var s=com.inq.flash.client.chatskins.SkinControl.getTitleBarHeight(),l=Application.calcChatLocation(com.inq.flash.client.chatskins.SkinControl.getSkinWidth(),com.inq.flash.client.chatskins.SkinControl.getSkinHeight()+s,com.inq.flash.client.chatskins.SkinControl.getSkinLeft(),com.inq.flash.client.chatskins.SkinControl.getSkinTop(),com.inq.flash.client.chatskins.SkinControl.getSkinLocation());l.x=com.inq.flash.client.control.PersistenceManager.GetValue(LEFT,l.x),l.y=com.inq.flash.client.control.PersistenceManager.GetValue(TOP,l.y),(t<i.h&&e<i.w||com.inq.utils.Capabilities.isPhone())&&(this.area.x=l.x=Application.FixAbsoluteX(l.x,e),this.area.y=l.y=Application.FixAbsoluteY(l.y,t)),this.stg.style.left=l.x+"px",this.stg.style.top=l.y+"px",o&&(o.style.width=this.stg.style.width,o.style.height=this.stg.style.height),Application.MoveSizeDiv2Stage(e,t,l.x,l.y),Application.initialXPos=l.x-i.x,Application.initialYPos=l.y-i.y,t=Application.application.area.h,e=Application.application.area.w,this.styles.height=""+t,this.styles.width=""+e,com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()&&com.inq.utils.Capabilities.isSafari()?window.setTimeout((function(){Application.ResizeStage(e,t)}),500):Application.ResizeStage(e,t)},Application.calcChatLocation=function(t,e,i,n,o){var a,s,l=0,r=0,c=com.inq.utils.Util.isIE?0:com.inq.flash.client.chatskins.ScrollMonitor.getScrollBarWidth(),h=Application.hasRightScrollBar(),m=Application.hasBottomScrollBar();switch(com.inq.utils.Util.isIE?(0==(s=window.parent.document.documentElement.clientHeight)&&(s=window.parent.document.body.clientHeight),0==(a=window.parent.document.documentElement.clientWidth)&&(a=window.parent.document.body.clientWidth)):(s=window.parent.innerHeight,a=window.parent.innerWidth),t<Application.minWidth&&(t=Application.minWidth),e<Application.minHeight&&(e=Application.minHeight),o.toUpperCase()){case"UPPER CENTER":case"UPPER_CENTER":case"TOP_CENTER":r=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),l=a/2-t/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft();break;case"UPPER_RIGHT":case"TOP_RIGHT":r=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),l=a-t+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()-(h?c:0);break;case"UPPER_LEFT":case"TOP_LEFT":r=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),l=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft();break;case"CENTER_LEFT":r=s/2-e/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),l=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft();break;case"CENTER_RIGHT":r=s/2-e/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),l=a-t+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()-(h?c:0);break;case"LOWER_LEFT":case"BOTTOM_LEFT":r=s-e+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()-(m?c:0),l=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft();break;case"LOWER_CENTER":case"BOTTOM_CENTER":r=s-e+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()-(m?c:0),l=a/2-t/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft();break;case"LOWER_RIGHT":case"BOTTOM_RIGHT":l=a-t+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()-(h?c:0),r=s-e+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()-(m?c:0);break;case"POP_UNDER_CENTER":l=a/2-t/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),r=s/2-e+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop();break;case"ABSOLUTE":l=i,r=n;break;case"RELATIVE":l=i+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),r=n+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop();break;case"CENTER":l=a/2-t/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),r=s/2-e/2+com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()}return(null==l||l<0)&&(l=100),(null==r||r<0)&&(r=100),new com.inq.utils.Point(0|l,0|r)},Application.hasRightScrollBar=function(){var t=window.parent.document.documentElement.clientHeight,e=window.parent.document.documentElement.clientWidth,i=window.parent.document.documentElement.scrollHeight,n=window.parent.innerWidth;return t<i||e<n},Application.hasBottomScrollBar=function(){var t=window.parent.document.documentElement.clientWidth,e=window.parent.document.documentElement.scrollWidth,i=window.parent.document.documentElement.clientHeight,n=window.parent.innerHeight;return t<e||i<n},Application.processConversationTranscriptResponse=function(t,e){var i=!1;try{com.inq.flash.client.chatskins.SkinControl.parseConversationTranscript(t),i=!0}catch(t){haxe.Log.trace("SkinControl.processConversationTranscriptResponse "+Std.string(t),{fileName:"Application.js",lineNumber:1688,className:"Application",methodName:"processConversationTranscriptResponse",customParams:["error"]})}return e(),i},Application.prototype.getParentBody=function(){return com.inq.utils.Util.getConfig("divSkin",!1)||com.inq.ui.SkinLoader.skinInClient?top.window.document.body:this.stg.contentWindow.document.body},Application.prototype._run=function(t){var e=window.document.getElementById(com.inq.ui.SkinLoader.LOADER_CONTAINER_ID)||com.inq.ui.Container._getElementById(com.inq.ui.SkinLoader.LOADER_CONTAINER_ID,window.parent.document);null!==e&&(e.style+="display: none;"),com.inq.utils.Capabilities.BindListener(this.getParentBody(),"keydown",Application.keydownHandler),com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&(window.parent.document.title=com.inq.utils.Util.getConfig("sPersistentFrameTitle","Chat")),this.applyStyle(),this.notificationController=new com.inq.flash.client.control.NotificationController(this),Application.getLaunchWhenReady()&&Application.Run(),this.dispatchEvent(t)},Application.prototype._init=function(){var t=com.inq.flash.client.control.FlashPeer.getSkin();if(com.inq.utils.Util.publish("com",window.com),com.inq.utils.Util.publish("Application",Application),com.inq.utils.Util.publish("Application.application",this),com.inq.utils.Util.publish("Application.application.setVisible",$bind(this,this.setVisible)),com.inq.utils.Util.publish("Application.application.close",$bind(this,this.close)),com.inq.utils.Util.publish("Application.application.updateStyle",$bind(this,this.updateStyle)),com.inq.utils.Util.publish("Application.application.restartTimer",$bind(this,this.restartTimer)),com.inq.utils.Util.publish("Application.getInitialized",Application.getInitialized),com.inq.utils.Util.publish("Application.Run",Application.Run),com.inq.utils.Util.publish("Application.application.sendDTEvent",$bind(this,this.sendDTEvent)),com.inq.utils.Util.publish("Application.sendVALinkClicked",Application.sendVALinkClicked),com.inq.utils.Util.publish("Application.agentQuickResponse",Application.agentQuickResponse),com.inq.utils.Util.publish("Application.processConversationTranscriptResponse",Application.processConversationTranscriptResponse),com.inq.utils.Util.publish("Application.expandChat",Application.expandChat),com.inq.utils.Util.publish("Application.shrinkChat",Application.shrinkChat),com.inq.utils.Util.publish("Application.application.isConnected",$bind(this,this.isConnected)),com.inq.ui.Stage.getInstance().setVisible(!1),this._reInit(),com.inq.flash.client.control.FlashPeer.noV3FrameChat())this.stg=document.getElementById("inqChatStage"),this.stg||(this.stg=document.createElement("iframe"),this.stg.setAttribute("id","inqChatStage"),this.stg.setAttribute("style","z-index:999999;position:absolute;"),document.body.appendChild(this.stg));else if(js.Lib.window.frameElement){var e=window.frameElement.ownerDocument;this.stg=com.inq.ui.Container._getElementById("inqChatStage",e)}this.skinLoader.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this._run)),this.addEventListener(com.inq.events.Event.COMPLETE,com.inq.flash.client.control.FlashPeer.onChatLoaded),this.addEventListener(com.inq.events.Event.COMPLETE,com.inq.flash.client.control.FlashPeer.onChatShown),com.inq.flash.client.control.FlashPeer.getIsSkinLocal()?this.skinLoader.drawSkinLocal():(t=com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?com.inq.flash.client.control.PersistenceManager.GetValue(EMBEDDED_SKIN_PATH,t):com.inq.flash.client.control.PersistenceManager.GetValue(SKIN_PATH,t),this.skinLoader.drawSkin(t)),this.initialized=!0},Application.prototype._reInit=function(){com.inq.flash.client.control.PersistenceManager.reopen(),com.inq.flash.client.chatskins.SkinControl.init(),com.inq.addons.Salesforce.reset()},Application.agentQuickResponse=function(t){var e=Application.application,i=t.target.getAttribute("data-nuance-quick-answer");null!=e&&null!=e.applicationController&&i&&e.applicationController.agentQuickResponse(t)},Application.sendVALinkClicked=function(t){var e=Application.application;null!=e&&null!=e.applicationController&&e.applicationController.sendVALinkClicked(t)},Application.launchPostChatSurvey=function(t){var e=Application.application;e&&e.applicationController&&e.applicationController.launchPostChatSurvey(t)},Application.prototype.getImagePath=function(){if(com.inq.flash.client.control.FlashPeer.getIsSkinLocal())return com.inq.flash.client.control.FlashPeer.getMediaPath();if(this.imgpath)return this.imgpath;var t=com.inq.flash.client.control.FlashPeer.getSkin().split("/").pop().split(".").shift();return this.imgpath=com.inq.flash.client.control.FlashPeer.getImagePath()+t+"/"},Application.prototype.resize=function(){com.inq.ui.Container.prototype.resize.call(this),this.resizer(Application.containsOutside),this.resizer(this.contains),com.inq.flash.client.chatskins.BalloonNotifier.Resize()},Application.expandChat=function(){return com.inq.flash.client.chatskins.ChatTextFocusMonitor.expandChat()},Application.shrinkChat=function(){return com.inq.flash.client.chatskins.ChatTextFocusMonitor.shrinkChat()},Application.prototype.initializeParameters=function(){this.parameters=new com.inq.utils.Dictionary;var t="";try{t=(t=com.inq.flash.client.control.FlashPeer.getFlashVars()).split("socket,").join("")}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERRORS:"+Std.string(t),{fileName:"Application.hx",lineNumber:240,className:"Application",methodName:"initializeParameters"})}for(var e=t.split("&"),i=0;i<e.length;++i){var n=(""+e[i]).split("=");this.parameters[n[0]]=1==n.length?null:decodeURIComponent(n[1])}com.inq.flash.client.control.FlashVars._init()},Application.prototype.close=function(){window.onunload=function(t){return!0},com.inq.flash.client.chatskins.SndMgr.setMute(!1),this.applicationController.disable(),com.inq.utils.Capabilities.isAndroid()&&Application.savePage&&null!==Application.savePage.bodyPosition&&(top.window.document.body.style.position=Application.savePage.bodyPosition,Application.savePage.bodyPosition=null);var t=this._div;if(null!=t){var e=t.parentNode;if(null!=e)try{e.removeChild(t)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR REMOVING DIV:"+Std.string(t),{fileName:"Application.hx",lineNumber:206,className:"Application",methodName:"close"})}this._div=null,com.inq.ui.Stage.stage.cleanUp(),com.inq.ui.Stage.stage=null,this.stage=null,this.screen=null,this.skinLoader.cleanUp(),this.cleanUp(),com.inq.flash.client.chatskins.SkinControl.cleanUp(),com.inq.flash.client.control.ApplicationController.cleanUp()}var i=window.parent.document,n=com.inq.ui.Container._getElementById("inqTitleBar",i),o=com.inq.ui.Container._getElementById("inqChatStage",i);null!=o&&(o.style.display="none"),this.setVisibleResizeCorner(!1),null!=n&&(n.style.display="none"),com.inq.stage.ViewportMgr.close()},Application.prototype.disable=function(t){this.applicationController&&this.applicationController.isConnected()&&(this.applicationController.disable(),(t||this.applicationController.isSendMessageFail())&&this.notificationController.showConnectionFailedMessage())},Application.prototype.updateStyle=function(t,e){var i;if(!(i="Skin"==t?this:this.getMxmlItem(t))||!("Skin"==i.getID()||i instanceof com.inq.ui.Container))throw new Error("Element is not exist.");for(var n in e){var o=e[n];if(null==o||void 0===o)break;if(isNaN(Number(o))){if("string"!=typeof o)throw new Error("Unknown attribute('"+n+"') value type");var a=this.parseStyleExpression(n,o.trim());i.styles[n]=a}else i.styles[n]=String(o)}this.resize(),com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()},Application.prototype.parseStyleExpression=function(t,e){if(e.indexOf(".")<0)throw new Error("Unknown expression format for "+t+" attribute");for(var i=e.split(" "),n=0;n<i.length;n++){var o=i[n];o.indexOf(".")>0&&(i[n]=com.inq.ui.CommandParser.evaluateSymbolicReference(o))}try{var a;a=com.inq.flash.client.control.FlashPeer.isPolishNotationEnabled()?com.inq.utils.Util.evalExpression(i.join(" ")):com.inq.flash.client.control.FlashPeer.evaluateLegacySettings(i.join(" "))}catch(t){haxe.Log.trace("Application#parseStyleExpression Invalid attr value")}return a},Application.prototype.getTextInput=function(t){return this.getMxmlItem(t)},Application.keydownHandler=function(t){return t.stopPropagation(),null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getVisible()&&t.keyCode==com.inq.ui.Keyboard.ESCAPE?(com.inq.flash.client.chatskins.EmailMgr.actionCancelEmail(),!1):t.keyCode==com.inq.ui.Keyboard.ESCAPE&&com.inq.utils.Util.getConfig("escToClose",!1)||t.keyCode==com.inq.ui.Keyboard.ESCAPE&&com.inq.utils.Util.getConfig("escToCloseWhenNoChat",!1)&&null!=com.inq.flash.client.chatskins.SkinControl.timerTimeout?(com.inq.utils.Capabilities.isChrome()?window.setTimeout((function(){com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null)}),0):com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null),!1):void 0},Application.prototype.getCanvas=function(t){return this.getMxmlItem(t)},Application.prototype.getButton=function(t){return this.getMxmlItem(t)},Application.prototype.getMxmlItem=function(t){return this[t]},Application.prototype.setMxmlItem=function(t){this[t.getID()]=t},Application.prototype.getXFrameItems=function(){var t=[];for(var e in this){var i=this[e];js.Boot.__instanceof(i,com.inq.ui.XFrame)&&t.push(i)}return t},Application.prototype.cleanUp=function(){com.inq.utils.Capabilities.UnbindListener(this.getParentBody(),"keydown",Application.keydownHandler)},Application.prototype.closeMxmlItems=function(){var t={};for(var e in this)if(t.hasOwnProperty.call(this,e)){var i=Application.application[e];js.Boot.__instanceof(i,com.inq.ui.Container)&&(i.cleanUp(),i=null)}},Application.prototype.getClearImage=function(){return this.clearImage},Application.prototype.getPanelWindow=function(){return this.panelWindow},Application.prototype.setPanelWindow=function(t){this.panelWindow=t},Application.prototype.getTitleBarElement=function(){return this.titleBar?this.titleBar._div:null},Application.onTitleBarTouch=function(t){t.preventDefault()},Application.prototype.restartTimer=function(t,e){com.inq.flash.client.chatskins.SkinControl.restartTimer(t,e)},Application.prototype.isConnected=function(){return!!this.applicationController&&this.applicationController.isConnected()&&!this.applicationController.isSendMessageFail()},Application.prototype.isAgentAssigned=function(){return!!this.applicationController&&this.applicationController.isAgentAssigned()},Application.prototype.isVirtualAgent=function(){return com.inq.flash.client.control.PersistenceManager.GetValue(VIRTUAL_AGENT)},Application.prototype.fireMxmlEvent=function(t){com.inq.flash.client.chatskins.SkinControl.fireMxmlHandler(t)},Application.prototype.updateCustomerName=function(t){com.inq.flash.client.chatskins.SkinControl.updateCustomerName(t),com.inq.flash.client.data.Chat.prototype.setUsername(t)},Application.prototype.setFocusOnInputField=function(){com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField()},Application.prototype.setTextFieldfocus=function(){var t=com.inq.flash.client.chatskins.SkinControl.getTextInputField();t&&t.setFocus(!0)},Application.prototype.loaderSkin=null,Application.prototype.skinpath=null,Application.prototype.imgpath=null,Application.prototype.path=null,Application.prototype.titlebar=null,Application.prototype.stg=null,Application.prototype.stage=null,Application.prototype.screen=null,Application.prototype.currentState=null,Application.prototype.parameters=null,Application.prototype.area=null,Application.prototype.onApplicationControllerInitializedHandlers=null,Application.prototype.applicationController=null,Application.prototype.chatData=null,Application.prototype.initialized=null,Application.prototype.url=null,Application.prototype.__class__=Application,Application.__initTrace=Application._initTrace(),Application.hasRun=!1,Application.isPersistent=!1,Application.clientBodyMarginTop=0,Application.application=null,Application.resizable=!0,Application.draggable=!0,Application.minWidth=250,Application.minHeight=150,Application.dragArea=com.inq.utils.Capabilities.getDefaultResizeArea(),Application.zIndexResize=9999999,Application.lWR="launchWhenReady",Application.popoutStageWidth=-1,Application.popoutStageHeight=-1,Application.setFocusToBtnCloseOnOpen=!1,Application.DEFAULT_WIDTH_VAL=400,Application.DEFAULT_HEIGHT_VAL=300,Application.parentDocumentBodyMarginTop=0,Application.savePage={bodyPosition:null};y(3948),window.IntHash=function(){this.h={}},$hxClasses.IntHash=IntHash,IntHash.__name__=["IntHash"],IntHash.prototype.toString=function(){var t=new StringBuf;t.b+=Std.string("{");for(var e=this.keys();e.hasNext();){var i=e.next();t.b+=Std.string(i),t.b+=Std.string(" => "),t.b+=Std.string(Std.string(this.get(i))),e.hasNext()&&(t.b+=Std.string(", "))}return t.b+=Std.string("}"),t.b},IntHash.prototype.iterator=function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var t=this.it.next();return this.ref[t]}}},IntHash.prototype.keys=function(){var t=[];for(var e in this.h)this.h.hasOwnProperty(e)&&t.push(0|e);return HxOverrides.iter(t)},IntHash.prototype.remove=function(t){return!!this.h.hasOwnProperty(t)&&(delete this.h[t],!0)},IntHash.prototype.exists=function(t){return this.h.hasOwnProperty(t)},IntHash.prototype.get=function(t){return this.h[t]},IntHash.prototype.set=function(t,e){this.h[t]=e},IntHash.prototype.h=null,IntHash.prototype.__class__=IntHash,function(){for(var t in window.EventDispatcher=function(){com.inq.utils.Dictionary.call(this)},$hxClasses.EventDispatcher=EventDispatcher,EventDispatcher.__name__=["EventDispatcher"],EventDispatcher.__super__=com.inq.utils.Dictionary,com.inq.utils.Dictionary.prototype)EventDispatcher.prototype[t]=com.inq.utils.Dictionary.prototype[t];EventDispatcher.prototype.__class__=EventDispatcher}(),window.IntIter=function(t,e){this.min=t,this.max=e},$hxClasses.IntIter=IntIter,IntIter.__name__=["IntIter"],IntIter.prototype.next=function(){return this.min++},IntIter.prototype.hasNext=function(){return this.min<this.max},IntIter.prototype.max=null,IntIter.prototype.min=null,IntIter.prototype.__class__=IntIter,window.List=function(){this.length=0},$hxClasses.List=List,List.__name__=["List"],List.prototype.map=function(t){for(var e=new List,i=this.h;null!=i;){var n=i[0];i=i[1],e.add(t(n))}return e},List.prototype.filter=function(t){for(var e=new List,i=this.h;null!=i;){var n=i[0];i=i[1],t(n)&&e.add(n)}return e},List.prototype.join=function(t){for(var e=new StringBuf,i=!0,n=this.h;null!=n;)i?i=!1:e.b+=Std.string(t),e.b+=Std.string(n[0]),n=n[1];return e.b},List.prototype.toString=function(){var t=new StringBuf,e=!0,i=this.h;for(t.b+=Std.string("{");null!=i;)e?e=!1:t.b+=Std.string(", "),t.b+=Std.string(Std.string(i[0])),i=i[1];return t.b+=Std.string("}"),t.b},List.prototype.iterator=function(){return{h:this.h,hasNext:function(){return null!=this.h},next:function(){if(null==this.h)return null;var t=this.h[0];return this.h=this.h[1],t}}},List.prototype.remove=function(t){for(var e=null,i=this.h;null!=i;){if(i[0]==t)return null==e?this.h=i[1]:e[1]=i[1],this.q==i&&(this.q=e),this.length--,!0;e=i,i=i[1]}return!1},List.prototype.clear=function(){this.h=null,this.q=null,this.length=0},List.prototype.isEmpty=function(){return null==this.h},List.prototype.pop=function(){if(null==this.h)return null;var t=this.h[0];return this.h=this.h[1],null==this.h&&(this.q=null),this.length--,t},List.prototype.last=function(){return null==this.q?null:this.q[0]},List.prototype.first=function(){return null==this.h?null:this.h[0]},List.prototype.push=function(t){var e=[t,this.h];this.h=e,null==this.q&&(this.q=e),this.length++},List.prototype.add=function(t){var e=[t];null==this.h?this.h=e:this.q[1]=e,this.q=e,this.length++},List.prototype.length=null,List.prototype.q=null,List.prototype.h=null,List.prototype.__class__=List,y(1299),window.Reflect=function(){},$hxClasses.Reflect=Reflect,Reflect.__name__=["Reflect"],Reflect.hasField=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},Reflect.field=function(t,e){var i=null;try{i=t[e]}catch(t){}return i},Reflect.setField=function(t,e,i){t[e]=i},Reflect.getProperty=function(t,e){var i;return null==t?null:t.__properties__&&(i=t.__properties__["get_"+e])?t[i]():t[e]},Reflect.setProperty=function(t,e,i){var n;t.__properties__&&(n=t.__properties__["set_"+e])?t[n](i):t[e]=i},Reflect.callMethod=function(t,e,i){return e.apply(t,i)},Reflect.fields=function(t){var e=[];if(null!=t)for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e},Reflect.isFunction=function(t){return"function"==typeof t&&!(t.__name__||t.__ename__)},Reflect.compare=function(t,e){return t==e?0:t>e?1:-1},Reflect.compareMethods=function(t,e){return t==e||!(!Reflect.isFunction(t)||!Reflect.isFunction(e))&&t.scope==e.scope&&t.method==e.method&&null!=t.method},Reflect.isObject=function(t){if(null==t)return!1;var e=typeof t;return"string"==e||"object"==e&&!t.__enum__||"function"==e&&(t.__name__||t.__ename__)},Reflect.deleteField=function(t,e){return!!Reflect.hasField(t,e)&&(delete t[e],!0)},Reflect.copy=function(t){for(var e={},i=0,n=Reflect.fields(t);i<n.length;){var o=n[i];++i,e[o]=Reflect.field(t,o)}return e},Reflect.makeVarArgs=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t(e)}},Reflect.prototype.__class__=Reflect,y(1299),window.Type=function(){},$hxClasses.Type=Type,Type.__name__=["Type"],Type.getClass=function(t){return null==t?null:t.__class__},Type.getEnum=function(t){return null==t?null:t.__enum__},Type.getSuperClass=function(t){return t.__super__},Type.getClassName=function(t){return t.__name__.join(".")},Type.getEnumName=function(t){return t.__ename__.join(".")},Type.resolveClass=function(t){var e=$hxClasses[t];return null!=e&&e.__name__?e:null},Type.resolveEnum=function(t){var e=$hxClasses[t];return null!=e&&e.__ename__?e:null},Type.createInstance=function(t,e){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6]);case 8:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]);default:throw"Too many arguments"}},Type.createEmptyInstance=function(t){function e(){}return e.prototype=t.prototype,new e},Type.createEnum=function(t,e,i){var n=Reflect.field(t,e);if(null==n)throw"No such constructor "+e;if(Reflect.isFunction(n)){if(null==i)throw"Constructor "+e+" need parameters";return n.apply(t,i)}if(null!=i&&0!=i.length)throw"Constructor "+e+" does not need parameters";return n},Type.createEnumIndex=function(t,e,i){var n=t.__constructs__[e];if(null==n)throw e+" is not a valid enum constructor index";return Type.createEnum(t,n,i)},Type.getInstanceFields=function(t){var e=[];for(var i in t.prototype)e.push(i);return HxOverrides.remove(e,"__class__"),HxOverrides.remove(e,"__properties__"),e},Type.getClassFields=function(t){var e=Reflect.fields(t);return HxOverrides.remove(e,"__name__"),HxOverrides.remove(e,"__interfaces__"),HxOverrides.remove(e,"__properties__"),HxOverrides.remove(e,"__super__"),HxOverrides.remove(e,"prototype"),e},Type.getEnumConstructs=function(t){return t.__constructs__.slice()},Type.typeof=function(t){switch(typeof t){case"boolean":return ValueType.TBool;case"string":return ValueType.TClass(String);case"number":return Math.ceil(t)==t%2147483648?ValueType.TInt:ValueType.TFloat;case"object":if(null==t)return ValueType.TNull;var e=t.__enum__;if(null!=e)return ValueType.TEnum(e);var i=t.__class__;return null!=i?ValueType.TClass(i):ValueType.TObject;case"function":return t.__name__||t.__ename__?ValueType.TObject:ValueType.TFunction;case"undefined":return ValueType.TNull;default:return ValueType.TUnknown}},Type.enumEq=function(t,e){if(t==e)return!0;try{if(t[0]!=e[0])return!1;for(var i=2,n=t.length;i<n;){var o=i++;if(!Type.enumEq(t[o],e[o]))return!1}var a=t.__enum__;if(a!=e.__enum__||null==a)return!1}catch(a){return!1}return!0},Type.enumConstructor=function(t){return t[0]},Type.enumParameters=function(t){return t.slice(2)},Type.enumIndex=function(t){return t[1]},Type.allEnums=function(t){for(var e=[],i=t.__constructs__,n=0;n<i.length;){var o=i[n];++n;var a=Reflect.field(t,o);Reflect.isFunction(a)||e.push(a)}return e},Type.prototype.__class__=Type,function(){for(var t in com.inq.utils.StringUtil=function(){},$hxClasses["com.inq.utils.StringUtil"]=com.inq.utils.StringUtil,com.inq.utils.StringUtil.__name__=["com","inq","utils","StringUtil"],com.inq.utils.StringUtil.__super__=StringTools,StringTools.prototype)com.inq.utils.StringUtil.prototype[t]=StringTools.prototype[t];com.inq.utils.StringUtil.trim=function(t){return StringTools.trim(t)},com.inq.utils.StringUtil.htmlDecode=function(t){return StringTools.htmlUnescape(t)},com.inq.utils.StringUtil.htmlAttrEscape=function(t){return t.split("'").join("&#39;").split('"').join("&quot;")},com.inq.utils.StringUtil.escapeForJs=function(t){var e=t;return(e=(e=com.inq.utils.StringUtil.escapeSpecialCharacters(e)).split('"').join('\\"')).split("'").join("\\'")},com.inq.utils.StringUtil.escapeSpecialCharacters=function(t){var e=t;return(e=(e=(e=e.split("\\").join("\\\\")).split("\n").join("\\n")).split("\r").join("\\r")).split("\t").join("\\t")},com.inq.utils.StringUtil.toJsString=function(t){return"'"+com.inq.utils.StringUtil.escapeForJs(t)+"'"},com.inq.utils.StringUtil.toJsonString=function(t){return'"'+com.inq.utils.StringUtil.escapeForJs(t)+'"'},com.inq.utils.StringUtil.urlDecode=function(t){return StringTools.urlDecode(t)},com.inq.utils.StringUtil.isEmptyString=function(t){return"string"!=typeof t||0===t.trim().length},com.inq.utils.StringUtil.prototype.__class__=com.inq.utils.StringUtil}(),com.inq.flash.client.chatskins.BalloonNotifier=function(){},$hxClasses["com.inq.flash.client.chatskins.BalloonNotifier"]=com.inq.flash.client.chatskins.BalloonNotifier,com.inq.flash.client.chatskins.BalloonNotifier.__name__=["com","inq","flash","client","chatskins","BalloonNotifier"],com.inq.flash.client.chatskins.BalloonNotifier.Clear=function(){var t=null;try{if(null==(t=Application.application._div.getElementsByTagName("*")))return}catch(t){return}for(var e=0,i=t.length;e<i;e++)try{var n=t[e];null!=n.balloon?(n.balloon.destroy(),n.balloon=null):n.className.indexOf(com.inq.flash.client.chatskins.BalloonNotifier.BALLOON_CLASSNAME)>=0&&n.parentNode&&n.parentNode.removeChild(n)}catch(t){haxe.Log.trace("Clear failed"+Std.string(t),{fileName:"BalloonNotifier.hx",lineNumber:35,className:"com.inq.flash.client.chatskins.BalloonNotifier",methodName:"Clear"})}},com.inq.flash.client.chatskins.BalloonNotifier.Resize=function(){var t=null;try{if(null==(t=Application.application._div.getElementsByTagName("*")))return}catch(t){return}for(var e=0,i=t.length;e<i;e++)try{var n=t[e];null!=n.balloon&&n.balloon.resize()}catch(t){haxe.Log.trace("Resize failed"+Std.string(t),{fileName:"BalloonNotifier.hx",lineNumber:58,className:"com.inq.flash.client.chatskins.BalloonNotifier",methodName:"Resize"})}},com.inq.flash.client.chatskins.BalloonNotifier.Notify=function(t,e){com.inq.flash.client.chatskins.BalloonNotifier.show(t,e,"BalloonNotify")},com.inq.flash.client.chatskins.BalloonNotifier.Warn=function(t,e){com.inq.flash.client.chatskins.BalloonNotifier.show(t,e,"BalloonWarn"),t.onfocus=function(e){t.balloon.destroy()}},com.inq.flash.client.chatskins.BalloonNotifier.show=function(t,e,i){var n=window.document.getElementById("chatWindow_span").parentNode;(null!=n||n.length>0)&&(t.balloon=new com.inq.ui.BalloonOverlaying(Std.string(t.id)+"_balloon",i,t,e,n),t.balloon._div.className+=" "+com.inq.flash.client.chatskins.BalloonNotifier.BALLOON_CLASSNAME,t.balloon.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.BalloonNotifier.onBalloonClick))},com.inq.flash.client.chatskins.BalloonNotifier.onBalloonClick=function(t){try{var e=t.currentTarget,i=null;null!=(i=e.destroy())&&null!=i&&null!=i.focus&&i.focus()}catch(t){haxe.Log.trace("onBalloonClick"+Std.string(t),{fileName:"BalloonNotifier.hx",lineNumber:90,className:"com.inq.flash.client.chatskins.BalloonNotifier",methodName:"onBalloonClick"})}return!0},com.inq.flash.client.chatskins.BalloonNotifier.prototype.__class__=com.inq.flash.client.chatskins.BalloonNotifier,com.inq.flash.client.chatskins.BalloonNotifier.BALLOON_CLASSNAME="balloon-notifier",y(1703),y(5306),com.inq.flash.client.chatskins.ChatTextArea=function(t){this._ta=null,this._setHtmlText(""),this._tabStops=null,this._textField=null,this._initialized=!1,this._onInitialized=null,this.arrayOpeners=[],this.arrayTranscripts=[],this.historicTranscriptsArray=[],null!=t&&(this._textArea=t),this._ta=t,this._indent=80,this._renderTimer=null,this._resetRestoreChatTimer=null,this._inset=[],this._wasCleared=!1,this.atBottom=!0,this.setTabStops(),this.enableTranscriptTimestamp=com.inq.utils.Util.getConfig("enableTranscriptTimestamp",!1),this.transcriptTimestampFormat=this.getDateFormatConfig(this.defaultTranscriptTimestampFormat,"transcriptTimestampFormat"),this.transcriptDateFormat=this.getDateFormatConfig(this.defaultTranscriptDateFormat,"transcriptDateFormat"),this.todayLabel=com.inq.utils.Util.getConfig("todayLabel",this.TODAY_LABEL),this.applyStyles(),this.reverseChat=com.inq.utils.Util.getConfig("reverseChat",!1),this.autoScrollDisabled=com.inq.utils.Util.getConfig("autoScrollDisabled",!1),this.enhancedScrollingEnabled=com.inq.utils.Util.getConfig("enhancedScrollingEnabled",!1),this.scrollBtn=Application.application.getMxmlItem("scrollBtn"),this.bindListenerToScrollBtn(),this.bindListenerToChatWindow()},$hxClasses["com.inq.flash.client.chatskins.ChatTextArea"]=com.inq.flash.client.chatskins.ChatTextArea,com.inq.flash.client.chatskins.ChatTextArea.__name__=["com","inq","flash","client","chatskins","ChatTextArea"],com.inq.flash.client.chatskins.ChatTextArea.prototype.setStyle=function(t,e){null!=this._ta&&this._ta.setStyle(t,e)},com.inq.flash.client.chatskins.ChatTextArea.prototype.getTranscriptMessage=function(t){return this.arrayTranscripts[t]},com.inq.flash.client.chatskins.ChatTextArea.prototype.replaceTranscriptLineNoRender=function(t,e){return!(t<0||t>this.arrayTranscripts.length||(this.arrayTranscripts[t].Msg=e,0))},com.inq.flash.client.chatskins.ChatTextArea.prototype.replaceTranscriptLine=function(t,e){this.replaceTranscriptLineNoRender(t,e)&&this.render()},com.inq.flash.client.chatskins.ChatTextArea.prototype.updateTranscriptArray=function(t){for(var e=window.document.createElement("DIV"),i=null,n=t.parentNode;null!=n&&"SPAN"!=n.tagName;)n=n.parentNode;if(null!=n){i=n.id;try{for(var o=0;o<this.arrayTranscripts.length;o++)if(this.arrayTranscripts[o].Msg){e.innerHTML=this.arrayTranscripts[o].Msg;for(var a=e.getElementsByTagName("SPAN"),s=0;s<a.length;s++){var l=a[s];if(l.id==i){if(l.innerHTML==n.innerHTML)return;return l.innerHTML=n.innerHTML,void this.replaceTranscriptLine(o,e.innerHTML)}}}}catch(t){haxe.Log.trace("Error:"+Std.string(t),{fileName:"ChatTextArea.hx",lineNumber:554,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"updateTranscriptArray"})}}},com.inq.flash.client.chatskins.ChatTextArea.prototype.getTranscriptLine=function(t){return t<0||t>this.arrayTranscripts.length?null:this.arrayTranscripts[t].Msg},com.inq.flash.client.chatskins.ChatTextArea.prototype.findTranscriptLineIndex=function(t){for(var e,i=0,n=this.arrayTranscripts.length;i<n;){var o=i++;if(null!=(e=this.arrayTranscripts[o]))try{if(e.Msg.length>0&&-1!=e.Msg.indexOf(t))return o}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}}return-1},com.inq.flash.client.chatskins.ChatTextArea.prototype.getHtmlText=function(){return this.__htmlText},com.inq.flash.client.chatskins.ChatTextArea.prototype.addTranscriptLine=function(t,e,i,n,o,a,s,l){var r,c=""==com.inq.utils.Util.getConfig("defaultAgentAlias","")&&"&nbsp;"==t?"":":",h=e,m="",u="",p=new Array,d="",f="",g="";switch(s&&(d=(p=s.split(" ")).shift(),f=this.PERIOD_PFX+p+this.PERIOD_SFX,g=this.TODAY_MSG_TIME_PFX+d+f+this.TODAY_MSG_TIME_SFX),l&&this.enableTranscriptTimestamp&&(u=l===this.todayLabel?this.MSG_NEW_TODAY_DATE_DIV_PFX+this.MSG_NEW_TODAY_DATE_SPAN_PFX+l+this.MSG_NEW_TODAY_DATE_SPAN_SFX+g+this.MSG_NEW_TODAY_DATE_DIV_SFX:this.MSG_NEW_DAY_PFX+l+this.MSG_NEW_DAY_SFX),n){case com.inq.flash.client.chatskins.ChatTextArea.AGENT:t=StringTools.htmlUnescape(t),e=e.split("&apos;").join("'"),r=com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_PFX,com.inq.utils.Util.getConfig("addAgentTypeCss",!1)&&(r=r.replace(com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_CLASS_NAME,com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_CLASS_NAME+" "+(a||com.inq.flash.client.chatskins.ChatTextArea.AGENT_DEFAULT_CLASS_NAME))),t=":"==c?r+u+this.AGENT_ID_SPAN+t+c+com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_SFX:r+com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_SFX.split("&nbsp;").join(""),m=this.AGENT_MSG_TIME_PFX+d+f+this.AGENT_MSG_TIME_SFX,e=com.inq.flash.client.chatskins.ChatTextArea.AGENT_MSG_PFX+e+com.inq.flash.client.chatskins.ChatTextArea.AGENT_MSG_SFX.replace(com.inq.flash.client.chatskins.ChatTextArea.MESSAGE_ID_REPLACEMENT,i)+com.inq.flash.client.chatskins.ChatTextArea.MSG_SFX,h=this.enableTranscriptTimestamp?t+m+e:t+e;break;case com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER:m=this.CUST_MSG_TIME_PFX+d+f+this.CUST_MSG_TIME_SFX,t=com.inq.flash.client.chatskins.ChatTextArea.CUST_ID_PFX+u+this.CUST_ID_SPAN+t+com.inq.flash.client.chatskins.ChatTextArea.CUST_ID_SFX,e=com.inq.flash.client.chatskins.ChatTextArea.CUST_MSG_PFX+e+com.inq.flash.client.chatskins.ChatTextArea.CUST_MSG_SFX,h=this.enableTranscriptTimestamp?t+m+e:t+e;break;case com.inq.flash.client.chatskins.ChatTextArea.SYSTEM:e=e.split("\n").join("<br/>");var C=com.inq.flash.client.chatskins.ChatTextArea.SYS_PFX;if(a){var q=C.indexOf("systemMsg")+9;C=C.slice(0,q)+" "+a+C.slice(q)}h=e=C+e+com.inq.flash.client.chatskins.ChatTextArea.SYS_SFX;break;case com.inq.flash.client.chatskins.ChatTextArea.SEPARATOR:h=this.SEPARATOR_TR;break;case com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS:case com.inq.flash.client.chatskins.ChatTextArea.FORM_STATUS:h=e=com.inq.flash.client.chatskins.ChatTextArea.SYSSTAT_PFX+e+com.inq.flash.client.chatskins.ChatTextArea.SYSSTAT_SFX;break;case com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_INFO:(t=StringTools.htmlUnescape(t))&&(t=com.inq.flash.client.chatskins.ChatTextArea.SYSINF_ALIAS_PFX+t+c+com.inq.flash.client.chatskins.ChatTextArea.SYSINF_ALIAS_SFX),h=e=com.inq.flash.client.chatskins.ChatTextArea.SYSINF_PFX+t+com.inq.flash.client.chatskins.ChatTextArea.SYSINF_MESSAGE_PFX+e+com.inq.flash.client.chatskins.ChatTextArea.SYSINF_MESSAGE_SFX+com.inq.flash.client.chatskins.ChatTextArea.MSG_SFX;break;case com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA:m=this.CUST_MSG_TIME_PFX+d+f+this.CUST_MSG_TIME_SFX,t=com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_ID_PFX+u,e=com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_MSG_PFX+e+com.inq.flash.client.chatskins.ChatTextArea.CUST_MSG_SFX,h=this.enableTranscriptTimestamp?t+m+e:t+e}return h=com.inq.flash.client.chatskins.ChatTextArea.prototype.checkCssFirstInMessageGroup(h,n),this.reverseChat?h+o:o+h},com.inq.flash.client.chatskins.ChatTextArea.prototype.lastMessageType=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.checkCssFirstInMessageGroup=function(t,e){if(1===e||2===e){try{com.inq.flash.client.chatskins.ChatTextArea.prototype.lastMessageType!==e&&(t=com.inq.flash.client.chatskins.ChatTextArea.prototype.addCssFirstInMessageGroup(t))}catch(t){}com.inq.flash.client.chatskins.ChatTextArea.prototype.lastMessageType=e}return t},com.inq.flash.client.chatskins.ChatTextArea.prototype.addCssFirstInMessageGroup=function(t){return 0===t.indexOf("<tr><td")?-1!==t.indexOf("td class='")?t.replace("td class='","td class='first_in_group "):t.replace("<tr><td","<tr><td class='first_in_group'"):t},com.inq.flash.client.chatskins.ChatTextArea.prototype.addBufferedAriaMsg=function(t,e,i,n){com.inq.aria.AriaMsg.addBufferedAriaMsg(t,e,i,n)},com.inq.flash.client.chatskins.ChatTextArea.prototype.addTranscript=function(t,e,i,n,o,a,s,l){var r=-1;this.removeSystemMessageFromTranscript();try{var c=!a&&this._isCustomerOrSystemMessage(n),h=this.buildTranscriptMessage(this.arrayTranscripts,this.historicTranscriptsArray,t,e,i,n,c,s,l);c?(this.arrayTranscripts[n]=h,r=n):(this.arrayTranscripts.push(h),r=this.arrayTranscripts.length-1),h.msgId=com.inq.flash.client.chatskins.ChatTextArea.MSG_ID_PREFIX+r,this.prepareExpressionForRender(o,h.msgId),this.render()}catch(t){haxe.Log.trace("ChatTextArea.addTranscript Error:"+Std.string(t),{fileName:"ChatTextArea.js",className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"addTranscript"})}return r},com.inq.flash.client.chatskins.ChatTextArea.prototype.removeSystemMessageFromTranscript=function(){this.arrayTranscripts.length>0&&this.arrayTranscripts[this.arrayTranscripts.length-1].MsgType===com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS&&this.arrayTranscripts.pop()},com.inq.flash.client.chatskins.ChatTextArea.prototype.removeSystemMessageAndRerender=function(){this.removeSystemMessageFromTranscript();try{this.render()}catch(t){haxe.Log.trace("ChatTextArea.removeSystemMessageAndRerender Error:"+Std.string(t),{fileName:"ChatTextArea.js",className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"removeSystemMessageAndRerender"})}},com.inq.flash.client.chatskins.ChatTextArea.prototype.addHistoricTranscript=function(t,e,i,n,o,a,s){var l=this.buildTranscriptMessage(this.historicTranscriptsArray,null,t,e,i,n,!1,o,s),r=this.historicTranscriptsArray.length-1;return l.msgId=com.inq.flash.client.chatskins.ChatTextArea.MSG_ID_PREFIX+r,this.prepareExpressionForRender(a,l.msgId),this.historicTranscriptsArray.push(l),r},com.inq.flash.client.chatskins.ChatTextArea.prototype.getTimeMarker=function(t){return t.toLocaleTimeString(this.transcriptTimestampFormat.locales,this.transcriptTimestampFormat.options)},com.inq.flash.client.chatskins.ChatTextArea.prototype.buildTranscriptMessage=function(t,e,i,n,o,a,s,l,r){var c={};return c.Id=i,c.Msg=n,c.MsgType=o,c.position=a,l&&(c.cssClass=l),r&&r instanceof Date&&(c.messageTimestamp=r,c.timeMarker=this.getTimeMarker(r),c.newDay=s?t[a].newDay:this.getNewDayMarker(t,e,r)),c},com.inq.flash.client.chatskins.ChatTextArea.prototype.getNewDayMarker=function(t,e,i){var n="";try{if(com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().isAsyncChat()&&this.isNewDay(t,e,i)){var o=new Date;n=i.toLocaleDateString()===o.toLocaleDateString()?this.todayLabel:i.toLocaleDateString(this.transcriptDateFormat.locales,this.transcriptDateFormat.options)}}catch(t){haxe.Log.trace("ChatTextArea.getNewDayMarker ERROR with timestamp("+i+"), Detail: "+Std.string(t),{fileName:"ChatTextArea.hx",lineNumber:424,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"getNewDayMarker"})}return n},com.inq.flash.client.chatskins.ChatTextArea.prototype._isCustomerOrSystemMessage=function(t){if(this.arrayTranscripts[t]){var e=this.arrayTranscripts[t];return-1==e.position&&(e.MsgType==com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER||e.MsgType==com.inq.flash.client.chatskins.ChatTextArea.SYSTEM||e.MsgType==com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA)}return!1},com.inq.flash.client.chatskins.ChatTextArea.prototype.addOpenerScript=function(t,e,i,n,o,a){try{var s=this.buildTranscriptMessage(this.arrayOpeners,null,t,e,i,n,!1,com.inq.flash.client.chatskins.ChatTextArea.OPENER_CLASS_NAME,a);null==n||-1==n?(this.arrayOpeners.length>0&&this.arrayOpeners[this.arrayOpeners.length-1].Msg==e&&this.arrayOpeners.pop(),this.arrayOpeners.push(s),n=this.arrayOpeners.length-1):this.arrayOpeners[n]=s,s.msgId=com.inq.flash.client.chatskins.ChatTextArea.OPENER_MSG_ID_PREFIX+n,this.prepareExpressionForRender(o,s.msgId),this.render()}catch(t){}return n},com.inq.flash.client.chatskins.ChatTextArea.prototype.prepareExpressionForRender=function(t,e){if(t&&e)for(var i=0;i<t.length;i++)t[i]===com.inq.flash.client.data.MessageFields.CUSTOMER_NAME_INPUT_FIELD&&(this._inset[i]=new com.inq.ui.CustomerNameInputField(e))},com.inq.flash.client.chatskins.ChatTextArea.prototype.clearTranscript=function(){this._setHtmlText(""),this._ta._addTranscriptToTable(this.__htmlText),this._wasCleared=!0},com.inq.flash.client.chatskins.ChatTextArea.prototype.clearTranscriptArray=function(){this.arrayTranscripts.clear()},com.inq.flash.client.chatskins.ChatTextArea.prototype.clearOpenersArray=function(){this.arrayOpeners.clear()},com.inq.flash.client.chatskins.ChatTextArea.prototype.isScrolledToBottom=function(){return!!this._ta&&this._ta.isScrolledToBottom()},com.inq.flash.client.chatskins.ChatTextArea.prototype.scrollToEnd=function(){try{this.atBottom||!this.autoScrollDisabled||this.isCustomerMessage(this.arrayTranscripts.length-1)?(this.reverseChat?this.scrollToTop():this.scrollToBottom(),null!=this._textArea&&this._textArea.getMaxScrollPosition().y>0&&(this._textArea._ta.style.overflowY="scroll")):this.isStatusMessage(this.arrayTranscripts.length-1)||this.showScrollBtn()}catch(t){haxe.Log.trace("Error scrolling text area:",{fileName:"ChatTextArea.hx",lineNumber:504,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"scrollToEnd"}),haxe.Log.trace(t,{fileName:"ChatTextArea.hx",lineNumber:505,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"scrollToEnd"})}},com.inq.flash.client.chatskins.ChatTextArea.prototype.bindListenerToScrollBtn=function(){this.scrollBtn&&this.scrollBtn.addEventListener(com.inq.events.MouseEvent.CLICK,function(){this.scrollToBottom(),this.scrollBtn.setVisible(!1)}.bind(this))},com.inq.flash.client.chatskins.ChatTextArea.prototype.bindListenerToChatWindow=function(){this._ta.addEventListener(com.inq.events.Event.SCROLL,function(){this.scrollBtn&&this.scrollBtn.getVisible()&&this._ta.isScrolledToBottom()&&this.scrollBtn.setVisible(!1)}.bind(this))},com.inq.flash.client.chatskins.ChatTextArea.prototype.showScrollBtn=function(){var t=this._ta.getStyle("bottom");this.scrollBtn.setStyle("bottom",t+"px"),this.scrollBtn.setVisible(!0)},com.inq.flash.client.chatskins.ChatTextArea.prototype.isStatusMessage=function(t){var e=this.arrayTranscripts[t];return e&&e.MsgType===com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS},com.inq.flash.client.chatskins.ChatTextArea.prototype.isCustomerMessage=function(t){var e=this.arrayTranscripts[t];return e&&e.MsgType===com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER},com.inq.flash.client.chatskins.ChatTextArea.prototype._resetRestoreChatState=function(){com.inq.flash.client.control.MinimizeManager.restoreChatInProgress=!1,this._resetRestoreChatTimer.stop(),this._resetRestoreChatTimer=null},com.inq.flash.client.chatskins.ChatTextArea.prototype._render=function(){try{this._renderTimer=null,this._setHtmlText(this.cachedHtml),this.disableInset(),this.atBottom=this._ta.isScrolledToBottom(),this._ta._addTranscriptToTable(this.__htmlText),com.inq.flash.client.chatskins.FontMgr.applyFontSizeAfterMsg(this._ta._div),this.renderInset(),this.scrollToEnd(),com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()||com.inq.flash.client.chatskins.SkinControl.setFocusOnCustomerNameInput(),com.inq.utils.Capabilities.isSafari()||com.inq.utils.Capabilities.isMobile()||Application.application.applicationController.intentionalDisconnect&&com.inq.aria.AriaUtil.hideTag(Application.application.getMxmlItem("chatWindow")._div,"a")}catch(t){haxe.Log.trace(t,{fileName:"ChatTextArea.hx",lineNumber:480,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"_render"})}},com.inq.flash.client.chatskins.ChatTextArea.prototype.renderInset=function(){for(var t=0;t<this._inset.length;t++)this._inset[t].show(),this._inset[t].enableEventListener()},com.inq.flash.client.chatskins.ChatTextArea.prototype.disableInset=function(){for(var t=0;t<this._inset.length;t++)this._inset[t].disableEventListener(),this._inset[t].hide()},com.inq.flash.client.chatskins.ChatTextArea.prototype.render=function(){com.inq.flash.client.control.MinimizeManager.restoreChatInProgress&&(this._resetRestoreChatTimer&&this._resetRestoreChatTimer.stop(),this._resetRestoreChatTimer=com.inq.utils.Timer.delay($bind(this,this._resetRestoreChatState),com.inq.flash.client.chatskins.ChatTextArea.RESET_RESTORA_CHAT_INPROGRESS_DELAY)),this._wasCleared||(null!=this._renderTimer&&this._renderTimer.stop(),this.cachedHtml=this.renderToHtml(),this.cachedHtml!=this.__htmlText&&(this._renderTimer=com.inq.utils.Timer.delay($bind(this,this._render),com.inq.flash.client.chatskins.ChatTextArea.RENDER_DELAY)))},com.inq.flash.client.chatskins.ChatTextArea.prototype.isCustomerMsgExist=function(){for(var t=0;t<this.arrayTranscripts.length;t++)if(2==this.arrayTranscripts[t].MsgType)return!0},com.inq.flash.client.chatskins.ChatTextArea.prototype.renderToHtml=function(){var t,e="";o.call(this,this.historicTranscriptsArray);for(var i=0,n=this.arrayOpeners.length;i<n;i++)if(null!=(t=this.arrayOpeners[i]))try{e=this.addTranscriptLine(t.Id,t.Msg,t.msgId,t.MsgType,e,t.cssClass,""),n===i+1&&0==this.arrayTranscripts.length&&com.inq.utils.Util.getConfig("readOpenerScript",!0)&&!com.inq.flash.client.control.MinimizeManager.restoreChatInProgress&&com.inq.flash.client.chatskins.ChatTextArea.prototype.addBufferedAriaMsg(t.Id,t.Id+" "+t.Msg,t.MsgType)}catch(t){}return o.call(this,this.arrayTranscripts),e;function o(t){for(var i=0;i<t.length;i++){var n=t[i];if(n)try{(!com.inq.utils.Util.isNullOrUndefined(n.Id)&&n.Msg||n.MsgType===com.inq.flash.client.chatskins.ChatTextArea.SEPARATOR)&&(e=this.addTranscriptLine(n.Id,n.Msg,n.msgId,n.MsgType,e,n.cssClass,n.timeMarker,n.newDay),t.length!==i+1||com.inq.flash.client.control.MinimizeManager.restoreChatInProgress||com.inq.aria.AriaMsg.addAriaMsg(n.Id+": "+a(n.Msg),n.MsgType))}catch(t){}}}function a(t){if(t.indexOf("sendVALinkClicked(event)")>=0){if((e=/.*sendVALinkClicked\(event\);">(.*)<\/div><\/span>/.exec(t))&&2===e.length)return e[1]}else if(t.indexOf('id="automaton_valink_')>=0){var e;if((e=/.*id="automaton_valink_.*">(.*)<\/div><\/span>/.exec(t))&&2===e.length)return e[1]}return t}},com.inq.flash.client.chatskins.ChatTextArea.prototype.isNewDay=function(t,e,i){var n;if(0===t.length){if(!e||0===e.length)return!0;n=e[e.length-2].messageTimestamp}else n=t[t.length-1].MsgType===com.inq.flash.client.chatskins.ChatTextArea.SEPARATOR?t[t.length-2].messageTimestamp:t[t.length-1].messageTimestamp;return!!n&&i.toLocaleDateString()!==n.toLocaleDateString()},com.inq.flash.client.chatskins.ChatTextArea.prototype.getDateFormatConfig=function(t,e){var i=com.inq.utils.Util.getConfig(e,{});return"object"==typeof i&&(i.locales||i.options)?i:t},com.inq.flash.client.chatskins.ChatTextArea.prototype.setTabStops=function(){try{var t=Math.floor(this._textArea.getWidth());t<=0&&(t=this._indent+500),this._tabStops=[];for(var e=0,i=this._indent;i<t;)0!=i&&(this._tabStops[e++]=i),i+=10}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ChatTextArea.setTabStops ERROR: "+Std.string(t),{fileName:"ChatTextArea.hx",lineNumber:392,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"setTabStops"})}},com.inq.flash.client.chatskins.ChatTextArea.prototype.getLength=function(){return this._ta._getHtmlText().length},com.inq.flash.client.chatskins.ChatTextArea.prototype.setIndent=function(t){this._indent=t,this.setTabStops()},com.inq.flash.client.chatskins.ChatTextArea.prototype.setGraphicId=function(t){},com.inq.flash.client.chatskins.ChatTextArea.prototype.applyStyles=function(){var t,e,i,n;t=com.inq.flash.client.chatskins.SkinControl.transcriptFontSize,i="["+(e=com.inq.flash.client.chatskins.SkinControl.transcriptIndent)+"]",n=com.inq.flash.client.chatskins.SkinControl.transcriptFont;var o,a,s,l=new com.inq.ui.StyleSheet,r=Application.application.getMxmlItem("chatWindow");if(l.setStyle("html",{}),l.setStyle("body",{fontFamily:n,fontSize:t,fontWeight:"normal"}),a="systemMsg",null!=(s=com.inq.utils.Util.getConfig(a,null))){l.setStyle("."+a,s),a="customerId",null!=(o=com.inq.utils.Util.getConfig(a,null))&&(o.verticalAlign="top",o["vertical-align"]="top"),l.setStyle("."+a,o),a="agentId",l.setStyle("."+a,com.inq.utils.Util.getConfig(a,null)),a="agentMsg";try{r._setStyleSheet(l)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}null!=(o=com.inq.utils.Util.getConfig(a,null))&&(o.tabStops=com.inq.flash.client.chatskins.SkinControl.transcriptTabStops,o.marginLeft=e),l.setStyle("."+a,o),a="customerMsg",null!=(o=com.inq.utils.Util.getConfig(a,null))&&(o.tabStops=i,o.marginLeft=e),l.setStyle("."+a,o);try{this._ta._setStyleSheet(l)}catch(t){}}},com.inq.flash.client.chatskins.ChatTextArea.prototype.exportData=function(){return{__taId:this._textArea.getID(),__htmlText:this.__htmlText,_initialized:this._initialized,arrayOpeners:this.arrayOpeners.slice(),arrayTranscripts:this.arrayTranscripts.slice()}},com.inq.flash.client.chatskins.ChatTextArea.prototype.importData=function(t){var e=t.__htmlText;this._setHtmlText(e);var i=t.__taId;if(this._initialized=t._initialized,this.arrayOpeners=t.arrayOpeners,this.arrayTranscripts=t.arrayTranscripts,null==this._ta&&(this._ta=this._textArea=Application.application.getMxmlItem(i)),null!=this._ta)try{this._ta._addTranscriptToTable(e)}catch(t){haxe.Log.trace("importData ERROR: "+Std.string(t),{fileName:"ChatTextArea.hx",lineNumber:198,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"importData"})}else haxe.Log.trace("Error: could NOT access the base textarea",{fileName:"ChatTextArea.hx",lineNumber:201,className:"com.inq.flash.client.chatskins.ChatTextArea",methodName:"importData"});this.scrollToBottom()},com.inq.flash.client.chatskins.ChatTextArea.prototype.scrollToTop=function(){this._textArea.scrollToTop()},com.inq.flash.client.chatskins.ChatTextArea.prototype.scrollToBottom=function(){if(this.enhancedScrollingEnabled&&!this.isCustomerMessage(this.arrayTranscripts.length-1)){var t=this._ta._ta.getElementsByTagName("table")[0].rows,e=t[t.length-1];this._textArea.scrollToPosition(new com.inq.utils.Point(0,e.offsetTop))}else this._textArea.scrollToBottom()},com.inq.flash.client.chatskins.ChatTextArea.prototype.setActualSize=function(t,e){},com.inq.flash.client.chatskins.ChatTextArea.prototype.setHtmlText=function(t){this._setHtmlText(t),this._textArea._addTranscriptToTable(this.__htmlText)},com.inq.flash.client.chatskins.ChatTextArea.prototype._setHtmlText=function(t){this.__htmlText=t},com.inq.flash.client.chatskins.ChatTextArea.prototype.syncForms=function(){for(var t,e=this._ta._div.getElementsByTagName("FORM"),i=0,n=e.length;i<n;i++)for(var o=0,a=(t=e[i].getElementsByTagName("INPUT")).length;o<a;o++)t[o].setAttribute("value",t[o].value);for(var s=js.Lib.document.createElement("DIV"),l=0,r=0;r<this.arrayTranscripts.length;r++){s.innerHTML=this.arrayTranscripts[r].Msg;var c=s.getElementsByTagName("FORM");null!=c&&c.length>0&&e.length>l&&(this.arrayTranscripts[r].Msg=e[l].parentNode.innerHTML,l+=c.length)}this.__htmlText=this.renderToHtml()},com.inq.flash.client.chatskins.ChatTextArea.prototype.setStyleSheet=function(t){},com.inq.flash.client.chatskins.ChatTextArea.prototype.getY=function(){return this._textArea.getY()},com.inq.flash.client.chatskins.ChatTextArea.prototype.getX=function(){return this._textArea.getX()},com.inq.flash.client.chatskins.ChatTextArea.prototype.getWidth=function(){return this._textArea.getWidth()},com.inq.flash.client.chatskins.ChatTextArea.prototype.getHeight=function(){return this._textArea.getHeight()},com.inq.flash.client.chatskins.ChatTextArea.prototype.updateCustomerName=function(t){if(this.arrayTranscripts.length>0){for(var e=0;e<this.arrayTranscripts.length;e++){var i=this.arrayTranscripts[e];i.MsgType==com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER&&(i.Id=t)}this.render()}},com.inq.flash.client.chatskins.ChatTextArea.prototype.reverseChat=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._renderTimer=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._initialized=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.htmlText=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.styleSheet=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.onInitialized=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.indent=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.y=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.x=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.width=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.height=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._onInitialized=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._indent=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._tabStops=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.__htmlText=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._ta=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._textArea=null,com.inq.flash.client.chatskins.ChatTextArea.prototype._textField=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.arrayOpeners=null,com.inq.flash.client.chatskins.ChatTextArea.prototype.__class__=com.inq.flash.client.chatskins.ChatTextArea,com.inq.flash.client.chatskins.ChatTextArea.RENDER_DELAY=10,com.inq.flash.client.chatskins.ChatTextArea.RESET_RESTORA_CHAT_INPROGRESS_DELAY=2e3,com.inq.flash.client.chatskins.ChatTextArea.AGENT=1,com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER=2,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM=3,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_STATUS=4,com.inq.flash.client.chatskins.ChatTextArea.FORM_STATUS=5,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_INFO=6,com.inq.flash.client.chatskins.ChatTextArea.SEPARATOR=7,com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA=8,com.inq.flash.client.chatskins.ChatTextArea.OPENER_MSG_ID_PREFIX="opener",com.inq.flash.client.chatskins.ChatTextArea.MSG_ID_PREFIX="msg",com.inq.flash.client.chatskins.ChatTextArea.MESSAGE_ID_REPLACEMENT="{{msgId}}",com.inq.flash.client.chatskins.ChatTextArea.MSG_SFX="</td></tr>",com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_CLASS_NAME="tcChat_agentLine",com.inq.flash.client.chatskins.ChatTextArea.VIRTUAL_AGENT_CLASS_NAME="tcChat_virtualAssistantLine",com.inq.flash.client.chatskins.ChatTextArea.LIVE_AGENT_CLASS_NAME="tcChat_liveAgentLine",com.inq.flash.client.chatskins.ChatTextArea.EXTERNAL_AGENT_CLASS_NAME="tcChat_externalAgentLine",com.inq.flash.client.chatskins.ChatTextArea.AGENT_DEFAULT_CLASS_NAME="tcChat_liveAgentLine",com.inq.flash.client.chatskins.ChatTextArea.OPENER_CLASS_NAME="tcChat_openerLine",com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_PFX="<tr><td class='"+com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_CLASS_NAME+"' style='vertical-align: top'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.AGENT_ID_SPAN="<span class='agentId'>",com.inq.flash.client.chatskins.ChatTextArea.AGENT_ID_SFX="&nbsp;</span>",com.inq.flash.client.chatskins.ChatTextArea.AGENT_MSG_PFX="<span class='agentMsg'>",com.inq.flash.client.chatskins.ChatTextArea.AGENT_MSG_SFX="</span><div aria-hidden='true' class='msg-expression-inset' id='"+com.inq.flash.client.chatskins.ChatTextArea.MESSAGE_ID_REPLACEMENT+"'></div>",com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_CLASS="automaton-data-message",com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_MSG_PFX="<span class="+com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_CLASS+">",com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_ID_PFX='<tr><td class="tcChat_'+com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA_CLASS+'" style="vertical-align: top">',com.inq.flash.client.chatskins.ChatTextArea.CUST_ID_PFX="<tr><td class='tcChat_customerLine' style='vertical-align: top'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.CUST_ID_SPAN="<span class='customerId'>",com.inq.flash.client.chatskins.ChatTextArea.CUST_ID_SFX=":&nbsp;</span>",com.inq.flash.client.chatskins.ChatTextArea.CUST_MSG_PFX="<span class='customerMsg'>",com.inq.flash.client.chatskins.ChatTextArea.CUST_MSG_SFX="</span></td></tr>",com.inq.flash.client.chatskins.ChatTextArea.SYS_PFX="<tr><td><span class='systemMsg'>",com.inq.flash.client.chatskins.ChatTextArea.SYS_SFX="</span></td></tr>",com.inq.flash.client.chatskins.ChatTextArea.SYSSTAT_PFX="<tr><td><span class='systemStatMsg'>",com.inq.flash.client.chatskins.ChatTextArea.SYSSTAT_SFX="</span></td></tr>",com.inq.flash.client.chatskins.ChatTextArea.SYSINF_PFX="<tr><td class='systemInfo'>",com.inq.flash.client.chatskins.ChatTextArea.SYSINF_ALIAS_PFX="<span class='systemInfoAlias'>",com.inq.flash.client.chatskins.ChatTextArea.SYSINF_ALIAS_SFX="&nbsp;</span>",com.inq.flash.client.chatskins.ChatTextArea.SYSINF_MESSAGE_PFX="<span class='systemInfoMsg'>",com.inq.flash.client.chatskins.ChatTextArea.SYSINF_MESSAGE_SFX="</span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.SEPARATOR_TR="<tr><td><div style='background-color: black; height: 1px'></div></td></tr>",com.inq.flash.client.chatskins.ChatTextArea.prototype.AGENT_MSG_TIME_PFX="<span class='agentMsgTime'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.AGENT_MSG_TIME_SFX="</span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.TODAY_MSG_TIME_PFX="<span class='todayMsgTime'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.TODAY_MSG_TIME_SFX="</span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.MSG_NEW_DAY_PFX="<div class='msgDate'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.MSG_NEW_DAY_SFX="</div>",com.inq.flash.client.chatskins.ChatTextArea.prototype.MSG_NEW_TODAY_DATE_DIV_PFX="<div class='msgDate msgTodayDate'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.MSG_NEW_TODAY_DATE_DIV_SFX="</div>",com.inq.flash.client.chatskins.ChatTextArea.prototype.MSG_NEW_TODAY_DATE_SPAN_PFX="<span class='msgTodayDateSpan'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.MSG_NEW_TODAY_DATE_SPAN_SFX="</span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.CUST_MSG_TIME_PFX="<span class='customerMsgTime'>",com.inq.flash.client.chatskins.ChatTextArea.prototype.CUST_MSG_TIME_SFX="</span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.PERIOD_PFX="<span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.PERIOD_SFX="</span>",com.inq.flash.client.chatskins.ChatTextArea.prototype.TODAY_LABEL="Today",com.inq.flash.client.chatskins.ChatTextArea.prototype.defaultTranscriptTimestampFormat={locales:"en-US",options:{hour:"numeric",minute:"numeric",second:"numeric"}},com.inq.flash.client.chatskins.ChatTextArea.prototype.defaultTranscriptDateFormat={locales:"en-US",options:{}},y(5306),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase=function(){this.iframe=null,this.windowPosition=null,this.chatArea=null,this.hasFocus=!1,this.blurToken=null,this.focusToken=null,this.inited=!1,this.onBlurHandlerScheduleId=0,this.orbeonDtidMap={},this.keyboardHeightArray=[null,null],this.focusElement=null,this.bResizeToViewport=!1,this.curScroll=null,this.focusScroll=null,this.tapTimer=0,this.scrollState=0,this.viewPort=null,$bindAll(this)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched=!1,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.CONST={RESIZE_DELAY_MS:250,RESIZE_DELAY_MS_IPHONE_13:500},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.init=function(){return com.inq.utils.Capabilities.isMobile()&&com.inq.utils.Capabilities.isAutoZoom()?(0==window.top.pageYOffset&&window.top.scrollBy(0,1),this.iframe=com.inq.ui.Container._getElementById("inqChatStage",window.parent.document),this.bindListeners(),this.orbeonDtidMap={},com.inq.utils.Util.publish("Inq.xforms.bindOrbeonListeners",this.bindOrbeonListeners),com.inq.utils.Util.publish("Inq.xforms.unbindOrbeonListeners",this.unbindOrbeonListeners),this.inited=!0,this.inited):(this.inited=!1,this.inited)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.Close=function(){this.inited&&(this.unbindListeners(),null!=this.blurToken&&(window.clearInterval(this.blurToken),this.blurToken=null),null!=this.focusToken&&(window.clearInterval(this.focusToken),this.focusToken=null),this.inited=!1)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.bindListeners=function(){var t=com.inq.ui.Stage.getStageElement(),e=Application.application.getTitleBarElement();com.inq.utils.Capabilities.isIpad()||(com.inq.utils.Capabilities.BindListener(t,"touchstart",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchStart),com.inq.utils.Capabilities.BindListener(t,"touchend",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchEnd),e&&com.inq.utils.Capabilities.isIphone()&&com.inq.utils.Capabilities.BindListener(e,"touchstart",Application.onTitleBarTouch));for(var i=["txtInput","emailInput"],n=0;n<i.length;n++)try{var o=i[n],a=Application.application.getTextInput(o);if(!a)continue;var s=a.getInput();null!=s&&(com.inq.utils.Capabilities.BindListener(s,"focus",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.BindListener(s,"blur",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.BindListener(s,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplBase.js",lineNumber:167,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase",methodName:"bindListeners"})}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.bindOrbeonListeners=function(t,e){for(var i=0,n=e.length;i<n;i++){var o=e[i];null!=o&&(com.inq.utils.Capabilities.BindListener(o,"focus",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.BindListener(o,"blur",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.BindListener(o,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}this.orbeonDtidMap[t]=e},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.unbindOrbeonListeners=function(t){var e=this.orbeonDtidMap[t];if(e){for(var i=0,n=e.length;i<n;i++){var o=e[i];null!=o&&(com.inq.utils.Capabilities.UnbindListener(o,"focus",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.UnbindListener(o,"blur",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.UnbindListener(o,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}this.orbeonDtidMap[t]=null}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.blur=function(){null!=this.focusElement&&this.focusElement.blur()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.unbindListeners=function(){var t=com.inq.ui.Stage.getStageElement(),e=Application.application.getTitleBarElement();com.inq.utils.Capabilities.isIpad()||(com.inq.utils.Capabilities.UnbindListener(t,"touchstart",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchStart),com.inq.utils.Capabilities.UnbindListener(t,"touchend",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchEnd),e&&com.inq.utils.Capabilities.isIphone()&&com.inq.utils.Capabilities.UnbindListener(e,"touchstart",Application.onTitleBarTouch));for(var i=["txtInput","emailInput"],n=0;n<i.length;n++){var o=i[n],a=Application.application.getTextInput(o);if(null!=a){var s=a.getInput();null!=s&&(com.inq.utils.Capabilities.UnbindListener(s,"focus",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.UnbindListener(s,"blur",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.UnbindListener(s,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.HasFocus=function(){return this.hasFocus},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.setHasFocus=function(t){this.hasFocus=void 0===t||t},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.getFocusElement=function(){return this.focusElement},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.scrollToPrevious=function(){null!=this.windowPosition&&com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(this.windowPosition.x,this.windowPosition.y)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.saveWindowPositionForce=function(){this.windowPosition=com.inq.utils.Capabilities.getViewport(),0==this.windowPosition.y&&(this.windowPosition.y=1),this.chatArea=Application.GetArea()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.saveWindowPosition=function(){null==this.windowPosition&&null==this.chatArea&&(this.windowPosition=com.inq.utils.Capabilities.getViewport(),this.chatArea=Application.GetArea())},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.clearWindowPosition=function(){this.windowPosition=null,this.chatArea=null},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.hasSavedWindowPosition=function(){return null!=this.windowPosition&&null!=this.chatArea},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.restoreWindowPosition=function(){var t=com.inq.ui.Stage.getInstance(),e=t.getVisible(),i=this;Application.IsPersistent()?(com.inq.flash.client.chatskins.ScrollMonitor.ScrollToTop(),com.inq.utils.Timer.delay((function(){i.resizeToViewport("restore 1")}),this.CONST.RESIZE_DELAY_MS)):(null!=this.windowPosition&&com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(this.windowPosition.x,this.windowPosition.y),com.inq.utils.Capabilities.isPhone()&&null==this.chatArea&&com.inq.utils.Timer.delay((function(){i.resizeToViewport("restoreWindowPosition")}),this.CONST.RESIZE_DELAY_MS),null!=this.chatArea&&Application.SetArea(this.chatArea)),t.setVisible(e),this.windowPosition=this.chatArea=null},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.FixIPhoneFocusScroll=function(){return(this.focusScroll.X!=top.scrollX||this.focusScroll.Y!=top.scrollY)&&(window.top.scrollTo(this.focusScroll.X,this.focusScroll.Y),!0)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onFocus=function(t,e){var i=com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.isButtonHasFirstFocus;return this.setHasFocus(!0),this.focusElement=e,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched=!0,com.inq.utils.Capabilities.isTablet()&&!Application.IsPersistent()?(com.inq.flash.client.chatskins.ScrollMonitor.suspend(),com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(800),200,(function(){com.inq.flash.client.chatskins.ScrollMonitor.resume(),com.inq.flash.client.chatskins.ScrollMonitor.moveChat(!0)})),!1):!t||t.relatedTarget||this.isInputElement(t.target)||this.focusScroll?(!0===i&&(com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.isButtonHasFirstFocus=!1),this.savePosition(),this.onFocusImpl(t,e)):(this.saveScrollPosition(),this.focusScroll=this.curScroll,void this.setHasFocus(!1))},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.savePosition=function(){this.saveScrollPosition(),this.focusScroll=this.curScroll,this.saveWindowPosition()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onFocusRelatedTargetImpl=function(t){this.setHasFocus(!0),this.FixIPhoneFocusScroll();var e=this;return com.inq.utils.Timer.delay((function(){e.resizeToViewportFocused()}),this.CONST.RESIZE_DELAY_MS),!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onFocusImpl=function(t,e){return(com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isIpad()&&Application.IsPersistent())&&(this.focusElement=e,this.focusToken=null,this.bindOrientationListener(),this.fixChatPosition()),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.fixChatPosition=function(){var t=this;com.inq.utils.Timer.delay((function(){t.FixIPhoneFocusScroll(),t.resizeToViewport("onFocus")}),0)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.expandChat=function(){return!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.shrinkChat=function(){return!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onTouchStart=function(t,e){return this.saveScrollPosition(),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.saveScrollPosition=function(){this.curScroll={X:top.scrollX,Y:top.scrollY}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onMouseDown=function(t){return!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onTouchMove=function(t){return!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onTouchEnd=function(t){return top.scrollTo(this.curScroll.X,this.curScroll.Y),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.zoomViewport=function(t){if(com.inq.utils.Capabilities.isPhone()){var e=com.inq.stage.ViewportMgr.getChatZoomLevel();e!=Application.initialZoom&&(Application.initialZoom=e,Application.application.setStyle("zoom",""+Application.initialZoom))}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.resizeToViewport=function(t){if(!this.bResizeToViewport&&!com.inq.flash.client.control.MinimizeManager.minimized){this.bResizeToViewport=!0;var e=window.top;if(this.hasFocus&&(com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isIpad()))this.resizeToViewportImpl();else{this.zoomViewport(e),com.inq.flash.client.chatskins.ScrollMonitor.bindAll();try{var i=com.inq.utils.Capabilities.getViewport();Application.SetArea(i),Application.Resize(),this.bResizeToViewport=!1}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplBase.js",lineNumber:111,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase",methodName:"resizeToViewport"})}}}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.resizeToViewportImpl=function(){var t=com.inq.utils.Capabilities.getViewport();Application.SetArea(t),Application.Resize(),this.zoomViewport(clientWin),this.scrollTranscriptToEnd(from);var e=this;com.inq.utils.Timer.delay((function(){e.FixIPhoneFocusScroll()}),0),this.bResizeToViewport=!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.scrollTranscriptToEnd=function(t){com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()}),1)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.resizeToViewportFocused=function(){var t=this.getKeyboardHeight(),e=window.parent;t&&(viewPort=com.inq.utils.Capabilities.getViewport(),viewPort.h=this.adjustFocusedHeight(viewPort.h),viewPort.h-=t,Application.SetArea(viewPort),Application.Resize(),this.zoomViewport(e),com.inq.utils.Capabilities.isAndroid()?com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(800),200,(function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()})):com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()}),1))},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.adjustFocusedHeight=function(t){return t},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.getKeyboardHeight=function(){return this.keyboardHeightArray[com.inq.utils.Capabilities.getOrientation()?0:1]},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.setKeyboardHeight=function(t){this.keyboardHeightArray[com.inq.utils.Capabilities.getOrientation()?0:1]=t},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.bindOrientationListener=function(){var t=window.parent;this.unbindOrientationListener(),com.inq.utils.Capabilities.BindListener(t,"orientationchange",this.onOrientationChange)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.unbindOrientationListener=function(){var t=window.parent;com.inq.utils.Capabilities.UnbindListener(t,"orientationchange",this.onOrientationChange)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onOrientationChange=function(t){if(com.inq.ui.Stage.getInstance().getVisible())if(this.hasFocus)this.clearWindowPosition(),this.blur();else{var e=this;com.inq.utils.Timer.delay((function(){e.resizeToViewport("onOrientationChange:"+t.type)}),this.CONST.RESIZE_DELAY_MS)}return!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onBlurHandlerPhoneIphone=function(){if(this.unbindOrientationListener(),this.blurToken=null,!com.inq.flash.client.control.MinimizeManager.minimized)if(!com.inq.utils.Capabilities.isIOSWebView()||com.inq.utils.Capabilities.isTablet())this.clearWindowPosition(),this.restoreWindowPosition("onBlurHandlerPhoneIphone");else{com.inq.utils.Capabilities.isIOSWebView()&&this.resizeToViewport("onBlurHandlerPhoneIphone");var t=com.inq.utils.Capabilities.getViewport();Application.MoveSizeDiv2Stage(t.w,t.h,Application.application.area.x,Application.application.area.y),Application.Resize()}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onPaste=function(t){return haxe.Timer.delay((function(){var e=t.srcElement;e.value=e.value.replace(/\n*$/,"")}),10),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.isBlurHandlerPending=function(){return null!=this.onBlurHandlerScheduleId},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.cancelBlurHandler=function(){if("object"==typeof this.onBlurHandlerScheduleId)try{this.onBlurHandlerScheduleId.clear()}catch(t){clearTimeout(this.onBlurHandlerScheduleId)}else clearTimeout(this.onBlurHandlerScheduleId);this.onBlurHandlerScheduleId=null},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onBlur=function(t){if(t&&t.relatedTarget){if(com.inq.utils.Capabilities.isAndroidWebView()&&"tcChat_btnSend_img"===t.relatedTarget.id&&""===t.currentTarget.value){t.stopPropagation();try{com.inq.flash.client.chatskins.SkinControl.getTextInputField().setFocus(!0)}catch(t){}return!1}if(this.isInputElement(t.relatedTarget))return com.inq.utils.Capabilities.isIphone()&&com.inq.utils.Capabilities.isSafari()&&!t.relatedTarget.onfocus&&(t.relatedTarget.onfocus=com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus,t.relatedTarget.onblur=com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),!1}return com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched=!1,this.onBlurImpl(t)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.isInputElement=function(t){var e=t.nodeName.toUpperCase();return"INPUT"===e&&!["BUTTON","CHECKBOX","FILE","HIDDEN","RADIO","RESET","SUBMIT","COLOR","RANGE","IMAGE"].includes(t.type.toUpperCase())||"TEXTAREA"===e},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.blurFocusedElement=function(){},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onBlurImpl=function(t){if(this.setHasFocus(!1),com.inq.utils.Capabilities.isIphone())this.onBlurHandlerScheduleId=com.inq.utils.Capabilities.setDomSafeTimeout(this.onBlurHandlerPhoneIphone,1);else if(com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isIpad()&&Application.IsPersistent()){if(this.unbindOrientationListener(),this.blurToken=null,!com.inq.flash.client.control.MinimizeManager.minimized){var e=this;com.inq.utils.Timer.delay((function(){e.resizeToViewport("onBlur:544")}),this.CONST.RESIZE_DELAY_MS)}}else com.inq.flash.client.chatskins.ScrollMonitor.notify();return!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.isIos6=function(){return-1!=com.inq.utils.Capabilities.getUserAgent().indexOf("iPhone OS 6_")},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onScrollCallback=function(){},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.calculateViewableArea=function(){},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos.prototype.resizeToViewport=function(t){if(!this.bResizeToViewport&&!com.inq.flash.client.control.MinimizeManager.minimized){this.bResizeToViewport=!0;var e=window.top;this.zoomViewport(e),com.inq.flash.client.chatskins.ScrollMonitor.bindAll();try{viewPort=com.inq.utils.Capabilities.getViewport(),this.hasFocus||!com.inq.utils.Capabilities.getOrientation()?viewPort.h=e.innerHeight:viewPort.h=e.screen.availHeight,Application.SetArea(viewPort),Application.Resize(),this.bResizeToViewport=!1,this.hasFocus&&com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()}),100)}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplVodafoneApplos.js",lineNumber:59,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos",methodName:"resizeToViewport"}),this.bResizeToViewport=!1}}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos.prototype.onBlurImpl=function(t){var e=com.inq.ui.Stage.getInstance().getVisible(),i=window.parent;return e&&i.scrollTo(0,0),this.onBlurHandlerPhoneIphone(),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.prototype.onFocusRelatedTargetImpl=function(t){return this.setHasFocus(!0),!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.prototype.onBlurImpl=function(t){return this.unbindOrientationListener(),this.blurToken=null,!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.prototype.resizeToViewportImpl=function(t){var e=window.top;viewPort=com.inq.utils.Capabilities.getViewport(),Application.SetArea(viewPort),this.zoomViewport(e),this.scrollTranscriptToEnd(),this.bResizeToViewport=!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.prototype.onFocusImpl=function(t,e){if(this.focusElement=e,this.bindOrientationListener(),this.focusToken=null,this.hasFocus){var i=this;com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(800),200,(function(){if(com.inq.flash.client.chatskins.SkinControl.scrollTranscriptToEnd(),i.isInputElement(i.focusElement)){var t=window.top.innerHeight;i.focusElement.getBoundingClientRect().top>t&&e.scrollIntoView()}}))}return!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped.prototype.resizeToViewport=function(t){if(!this.bResizeToViewport&&!com.inq.flash.client.control.MinimizeManager.minimized){this.bResizeToViewport=!0;var e=window.top;if(com.inq.flash.client.chatskins.ScrollMonitor.unbindAll(),this.hasFocus&&(com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isIpad())){var i,n=this.getKeyboardHeight();null==n?(com.inq.utils.Capabilities.BindListener(e,"scroll",i=function(t){var o;viewPort=com.inq.utils.Capabilities.getViewport(),com.inq.utils.Capabilities.isIphone()||(Application.SetArea(viewPort),Application.Resize(),this.zoomViewport(e),com.inq.utils.Capabilities.isAndroid()?com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(800),200,(function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()})):com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()}),1)),com.inq.utils.Capabilities.UnbindListener(e,"scroll",i),com.inq.utils.Capabilities.isIphone()&&(com.inq.utils.Capabilities.BindListener(e,"scroll",o=function(t){com.inq.utils.Capabilities.UnbindListener(e,"scroll",o),(n=e.innerHeight-viewPort.h)>0?(this.setKeyboardHeight(n),this.resizeToViewportFocused()):n=null}),e.scrollTo(0,1));var a=this;return com.inq.utils.Timer.delay((function(){a.FixIPhoneFocusScroll()}),0),com.inq.flash.client.chatskins.ScrollMonitor.bindAll(),this.bResizeToViewport=!1,!1}),e.scrollTo(0,e.document.documentElement.offsetHeight)):(this.resizeToViewportFocused(),this.bResizeToViewport=!1)}else{this.zoomViewport(e),com.inq.flash.client.chatskins.ScrollMonitor.bindAll();try{viewPort=com.inq.utils.Capabilities.getViewport(),Application.SetArea(viewPort),Application.Resize(),this.bResizeToViewport=!1}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplBase.js",lineNumber:111,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase",methodName:"resizeToViewport"}),this.bResizeToViewport=!1}}}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues={},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_PORTRAIT=[253,217,0,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_LANDSCAPE=[193,193,40,44],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE5_PORTRAIT=[252,216,0,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE5_LANDSCAPE=[193,163,0,44],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT=[258,216,48,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE=[239,209,0,44],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_PORTRAIT=[271,229,48,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_LANDSCAPE=[238,208,0,44],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_PORTRAIT=[295,253,38,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_LANDSCAPE=[193,193,40,44],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_PORTRAIT=[305,263,38,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_LANDSCAPE=[193,193,40,44],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPAD_PORTRAIT=[435,396,21,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPAD_LANDSCAPE=[347,308,21,0],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.ADDRESS_BAR_HEIGHTS={iPhone:45,iPhoneX:70},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.IPHONE_X_HOME_BTN_HEIGHT=15,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable={},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone3GS={name:"iPhone3GS",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable["iPhone1, 3G"]={name:"iPhone1, 3G",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable["iPhone 1, 3G or 3GS"]={name:"iPhone 1, 3G or 3GS",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone4={name:"iPhone4",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone4s={name:"iPhone4s",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE4_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone5={name:"iPhone5",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE5_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE5_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone5s={name:"iPhone5s",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE5_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE5_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6={name:"iPhone6",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6s={name:"iPhone6s",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6Plus={name:"iPhone6Plus",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6sPlus={name:"iPhone6sPlus",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone7={name:"iPhone7",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone7Plus={name:"iPhone7Plus",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone8={name:"iPhone8",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone8Plus={name:"iPhone8Plus",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6PLUS_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhoneX={name:"iPhoneX",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhoneXSMax={name:"iPhoneXSMax",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhoneXS_XSMaxZoomed={name:"iPhoneXS_XSMaxZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhoneXR={name:"iPhoneXR",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhoneXRZoomed={name:"iPhoneXRZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEX_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6Zoomed={name:"iPhone6Zoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6sZoomed={name:"iPhone6sZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6PlusZoomed={name:"iPhone6PlusZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone6sPlusZoomed={name:"iPhone6sPlusZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone7Zoomed={name:"iPhone7Zoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone7PlusZoomed={name:"iPhone7PlusZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone8Zoomed={name:"iPhone8Zoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone8PlusZoomed={name:"iPhone8PlusZoomed",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONE6_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone12={name:"iPhone12",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPhone12ProMax={name:"iPhone12ProMax",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPHONEXR_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable.iPad={name:"iPad",portrait:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPAD_PORTRAIT,landscape:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTableValues.IPAD_LANDSCAPE},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.INDX_PREDICTIVE=0,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.INDX_NONPREDICTIVE=1,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.INDX_LANDSCAPE_FUDGEFACTOR=2,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.INDX_LANDSCAPE_CHROMED_FUDGEFACTOR=3,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL=0,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS=1,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL=2,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLLTOBOTTOM=3,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL_ABSOLUTE=4,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_COMPLETED=5,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL_COMPLETED=6,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.keyboardHeightArray=[null,null],com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.iOS8ViewableHeight=0,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.iOSGapFixHeight=0,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.chatFooterDefaultHeight=0,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.chatWindowDefaultBottom=null,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.iOS8FocusElement=null,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.focusTimerId=-1,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.handleUnwantedScrollsDebounceCB=com.inq.utils.Util.debounce((function(){var t=com.inq.utils.Capabilities.getOrigViewPortHeight(),e=window.parent,i=parseInt(e.innerHeight),n=0!=t&&t<i,o=com.inq.ui.Container._getElementById("tcChat_Skin",e.document).getBoundingClientRect().top;o<-5?e.scrollTo(0,o):n&&e.scrollTo(0,-1)}),100),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.setKeyboardHeight=function(t){this.keyboardHeightArray[com.inq.utils.Capabilities.getOrientation()?0:1]=t},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.getKeyboardHeight=function(){return this.keyboardHeightArray[com.inq.utils.Capabilities.getOrientation()?0:1]},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.FixIPhoneFocusScroll=function(){return!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.blurFocusedElement=function(){try{if(this.focusScroll=null,null===this.iOS8FocusElement)return;var t=this;com.inq.utils.Timer.delay((function(){t.iOS8FocusElement.blur()}),100)}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:371,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"blurFocusedElement"})}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.resizeToViewport=function(t){var e=Application.application.getMxmlItem("chatFooter"),i=Application.application.getMxmlItem("chatWindow");if(!this.bResizeToViewport&&!com.inq.flash.client.control.MinimizeManager.minimized){this.bResizeToViewport=!0;var n=window.top;if(this.hasFocus&&(com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isIpad()))this.resizeToViewportFocused(),this.bResizeToViewport=!1;else{this.zoomViewport(n),com.inq.flash.client.chatskins.ScrollMonitor.bindAll();try{this.viewPort=com.inq.utils.Capabilities.getViewport(),0!=this.chatFooterDefaultHeight&&e.setHeight(com.inq.ui.Container.encodeSize(this.chatFooterDefaultHeight)),null===this.chatWindowDefaultBottom||isNaN(this.chatWindowDefaultBottom)||i.setStyle("bottom",com.inq.ui.Container.encodeSize(this.chatWindowDefaultBottom)),Application.SetArea(this.viewPort),Application.Resize(),this.bResizeToViewport=!1}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:111,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7",methodName:"resizeToViewport"}),this.bResizeToViewport=!1}}}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.resizeToViewportFocused=function(){var t,e,i=window.parent,n=Application.GetArea(),o=com.inq.utils.Util.getConfig("iosGapFix",!1);this.viewPort=com.inq.utils.Capabilities.getViewport(),this.viewPort.h=this.calculateViewableArea(),haxe.Log.trace("viewport height: "+this.viewPort.h,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:1239,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7",methodName:"resizeToViewportFocused"}),o&&this.iOSGapFixHeight&&(t=Application.application.getMxmlItem("chatFooter"),e=Application.application.getMxmlItem("chatWindow"),0==this.chatFooterDefaultHeight&&(this.chatFooterDefaultHeight=t.getHeight()),null===this.chatWindowDefaultBottom&&(this.chatWindowDefaultBottom=parseInt(e.getStyle("bottom"))),t.setHeight(com.inq.ui.Container.encodeSize(this.chatFooterDefaultHeight+this.iOSGapFixHeight)),isNaN(this.chatWindowDefaultBottom)||e.setStyle("bottom",com.inq.ui.Container.encodeSize(this.chatWindowDefaultBottom+this.iOSGapFixHeight))),Application.SetArea(this.viewPort),Application.Resize(),this.zoomViewport(i),this.viewPort.h==n.h&&this.viewPort.w==n.w||com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()}),1)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.calculateViewableArea=function(){return this.calculateIOSGapFixHeight(),this._isFirstFocusOnElement()?(this._removeFirstFocusAttribute(),this._getFullScreenHeight()):this._inputTypeHasNoKeyboard()||this._isIPhoneWebViewSmallViewport_Safari7()?this._getFullScreenHeight():this._calculateViewportHeight()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.calculateIOSGapFixHeight=function(){if(com.inq.utils.Util.getConfig("iosGapFix",!1)){var t=this.getKeyboardValues(),e=t.withPredictive-t.withoutPredictive;this.iOSGapFixHeight=e}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._isIPhoneWebViewSmallViewport_Safari7=function(){var t=com.inq.utils.Capabilities.isIOSWebView(),e=com.inq.utils.Capabilities.getOrientation(),i=this._calculateViewportHeight()<Application.minHeight;return e&&t&&i},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._calculateViewportHeight=function(){var t=this._getPredictiveTextAdjustedKeyboardHeight()+this._getLandscapeKeyboardHeightAdjustment();return this._getFullScreenHeight()-t-this._getBrowserPanelsHeightFix()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._getBrowserPanelsHeightFix=function(){var t=com.inq.utils.Capabilities.isIPhoneXOrNewer(),e=com.inq.utils.Capabilities.getAvailHeight()-this._getFullScreenHeight(),i=t?com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.ADDRESS_BAR_HEIGHTS.iPhoneX:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.ADDRESS_BAR_HEIGHTS.iPhone,n=t?com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.IPHONE_X_HOME_BTN_HEIGHT:0;return e-i<=0?e+n:0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._getPredictiveTextAdjustedKeyboardHeight=function(){var t=this.iOS8FocusElement?this.iOS8FocusElement.type.toString().toUpperCase():null,e=com.inq.utils.Util.getConfig("iosGapFix",!1),i=this.getKeyboardValues();return"PASSWORD"===t||com.inq.utils.Capabilities.isSafariVersionPrior8()||e?i.withoutPredictive:i.withPredictive},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._getLandscapeKeyboardHeightAdjustment=function(){var t=!1===com.inq.utils.Capabilities.getOrientation(),e=this.getKeyboardValues(),i=0;return t&&(i=com.inq.utils.Capabilities.isChromed()?e.fudgeFactorChromed:e.fudgeFactorLandscape),i},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.getKeyboardValues=function(){var t=com.inq.utils.Capabilities.getOrientation(),e=com.inq.utils.Capabilities.getiPhoneModel(),i=t?"portrait":"landscape",n=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.KeyboardTable[e][i];return{withPredictive:n[0],withoutPredictive:n[1],fudgeFactorLandscape:n[2],fudgeFactorChromed:n[3]}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._isFirstFocusOnElement=function(){return!!this.iOS8FocusElement&&this.iOS8FocusElement.hasAttribute("data-first-focus")},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._removeFirstFocusAttribute=function(){this.iOS8FocusElement.removeAttribute("data-first-focus")},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._getFullScreenHeight=function(){return com.inq.utils.Util.getTopWindow().innerHeight},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype._inputTypeHasNoKeyboard=function(){var t;return this.iOS8FocusElement&&(t=this.iOS8FocusElement.type.toString().toUpperCase()),"SELECT-ONE"===t||"RADIO"===t},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.onScrollCallback=function(){try{var t=window.parent,e=t.document,i=Math.max(e.body.scrollHeight,e.body.offsetHeight,e.documentElement.clientHeight,e.documentElement.scrollHeight,e.documentElement.offsetHeight);if(haxe.Log.trace("State: "+this.scrollState,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:380,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onScrollCallback"}),com.inq.flash.client.control.MinimizeManager.minimized)return;if(!com.inq.ui.Stage.getInstance().getVisible())return;switch(this.scrollState){case void 0:haxe.Log.trace("State is undefined!!!: "+this.scrollState,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:391,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onScrollCallback"});break;case com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS:var n=this.getKeyboardHeight();n?(haxe.Log.trace("Keyboard height: "+n,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:142,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7",methodName:"uponScrolliOS7"}),this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL_ABSOLUTE,haxe.Log.trace("State: "+this.scrollState,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:408,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onScrollCallback"}),com.inq.utils.Timer.delay((function(){t.scrollTo(0,i)}),1)):(this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLLTOBOTTOM,haxe.Log.trace("State: "+this.scrollState,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:402,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onScrollCallback"}),this.viewPort=com.inq.utils.Capabilities.getViewport(),com.inq.utils.Timer.delay((function(){t.scrollTo(0,1==t.scrollY?2:1)}),1));break;case com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL_ABSOLUTE:this.saveScrollPosition(),this.focusScroll=this.curScroll;var o=this;clearTimeout(this.focusTimerId),this.focusTimerId=setTimeout((function(){if(!o.hasFocus){if("input"!==e.activeElement.tagName.toLowerCase())return;o.setHasFocus(!0),o.bindOrientationListener()}o.iOS8ViewableHeight=o.calculateViewableArea(),o.resizeToViewportFocused(),t.scrollTo(0,0)}),250);break;case com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLLTOBOTTOM:this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL_ABSOLUTE,com.inq.utils.Timer.delay((function(){t.scrollTo(0,0===t.scrollY?-1:0)}),1);break;case com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL:0==this.chatFooterDefaultHeight&&(this.chatFooterDefaultHeight=Application.application.getMxmlItem("chatFooter").getHeight()),null===this.chatWindowDefaultBottom&&(this.chatWindowDefaultBottom=parseInt(Application.application.getMxmlItem("chatWindow").getStyle("bottom")));var a=e.body;null===this.viewPort||this.hasFocus||this.viewPort.h===t.innerHeight?0!==Application.parentDocumentBodyMarginTop&&a.getBoundingClientRect().top!==Application.parentDocumentBodyMarginTop&&this.resizeToViewport("Fix Height"):(this.viewPort.h=t.innerHeight,this.resizeToViewport("Fix Height")),com.inq.flash.client.chatskins.ScrollMonitor.addAutoHeight(),window.top.scrollTo(0,1),this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL_COMPLETED;break;case com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_COMPLETED:com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.handleUnwantedScrollsDebounceCB()}}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:154,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7",methodName:"uponScrolliOS8"})}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.onBlurImpl=function(t,e){return this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL,this.focusElement=null,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.__super__.prototype.onBlurImpl.call(this,t,e)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.onFocusImpl=function(t,e){return this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS,this.iOS8FocusElement=e,this.invokeScrollToResize(),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.__super__.prototype.onFocusImpl.call(this,t,e)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.invokeScrollToResize=function(){var t=this;com.inq.utils.Timer.delay((function(){var e=window.parent;t.scrollState!==com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL_ABSOLUTE&&e.scrollBy(0,1)}),100)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.expandChat=function(){return this.setHasFocus(!1),this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL,this.onBlurHandlerScheduleId=com.inq.utils.Capabilities.setDomSafeTimeout(this.onBlurHandlerPhoneIphone,1),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.shrinkChat=function(){return this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS,this.setHasFocus(!0),this.savePosition(),this.invokeScrollToResize(),this.bindOrientationListener(),this.fixChatPosition(),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.onFocusRelatedTargetImpl=function(t){this.setHasFocus(!0);var e=this;com.inq.utils.Timer.delay((function(){window.top.scrollTo(e.focusScroll.X,e.focusScroll.Y)}),100),t.preventDefault()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.onOrientationChange=function(t){return this.blurFocusedElement(),window.parent.scrollTo(0,0),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.__super__.prototype.onOrientationChange.call(this,t)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.onTouchStart=function(t,e){haxe.Log.trace("onTouchStart: ",{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:465,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onTouchStart"});var i=t.target;if(this.hasFocus&&i&&(-1===i.id.indexOf("btnCloseChat")||!com.inq.utils.Capabilities.isIphone())){haxe.Log.trace("target element: "+e.id,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:465,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onTouchStart"});try{var n=i.container;if(n)js.Boot.__instanceof(n,com.inq.ui.Button)?(t.preventDefault(),!com.inq.utils.Capabilities.isIOSWebView()&&n.softClick(),haxe.Log.trace("softClick: ",{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:473,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onTouchStart"})):(haxe.Log.trace("Not a button: ",{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:479,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onTouchStart"}),this.soonToHaveFocus=n,this.soonToHaveFocusTime=(new Date).getTime()+500);else if(haxe.Log.trace("Not a Button: ",{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:485,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onTouchStart"}),this.soonToHaveFocus=null,this.soonToHaveFocusTime=(new Date).getTime()+500,i.parentNode&&"listbox"==i.parentNode.getAttribute("role")){var o=com.inq.ui.Container._getElementById("tcChat_Skin",parent.document),a=o.getBoundingClientRect().top;window.setTimeout((function(){var t=o.getBoundingClientRect().top;a!=t&&com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.resizeToViewport()}),500)}else"SELECT"==i.nodeName&&window.setTimeout((function(){var t=com.inq.utils.Capabilities.getViewport(),e=Application.GetArea();(e.h<t.h||e.w<t.w)&&com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.prototype.resizeToViewport()}),500)}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplIphoneSafari7.js",lineNumber:485,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onTouchStart"})}}return this.scrollState==com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_SCROLL_ABSOLUTE&&(this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_FOCUS_COMPLETED),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.__super__.prototype.onTouchStart.call(this,t)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8.prototype.onBlurImpl=function(t,e){return com.inq.ui.Stage.getInstance().getVisible(),window.parent,this.scrollState=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7.STATE_INITIAL,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8.__super__.prototype.onBlurImpl.call(this,t,e)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8.prototype.onOrientationChange=function(t){this.blurFocusedElement();var e=window.parent;return com.inq.ui.Stage.getInstance().getVisible()&&e.scrollTo(0,0),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8.__super__.prototype.onOrientationChange.call(this,t)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari9=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari9.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari9,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari9"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari9,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari11=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari11.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari11,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari11"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari12=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari12.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari11,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari12,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari12"),y(1703),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari12,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.prototype.onFocus=function(t,e){com.inq.utils.Timer.delay(function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.prototype.onFocus.call(this,t,e),com.inq.flash.client.chatskins.ScrollMonitor.ScrollBy(0,1)}.bind(this),this.CONST.RESIZE_DELAY_MS_IPHONE_13)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.prototype.calculateViewableArea=function(){var t=com.inq.utils.Util.getVisualViewport();return com.inq.utils.Util.isNullOrUndefined(t)?this._calculateViewableAreaParentImplementation():(this.calculateIOSGapFixHeight(),this._isFirstFocusOnElement()?(this._removeFirstFocusAttribute(),this._getFullScreenHeight()):this._inputTypeHasNoKeyboard()||this._isIPhoneWebViewSmallViewport()?this._getFullScreenHeight():this._getViewableHeight())},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.prototype._calculateViewableAreaParentImplementation=function(){var t=Object.getPrototypeOf(this);return Object.getPrototypeOf(t).calculateViewableArea.call(this)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.prototype._isIPhoneWebViewSmallViewport=function(){var t=com.inq.utils.Capabilities.getOrientation(),e=com.inq.utils.Capabilities.isIOSWebView(),i=this._getViewableHeight()<Application.minHeight;return t&&e&&i},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.prototype._getViewableHeight=function(){return this._getVisualViewportHeight()+this.iOSGapFixHeight},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13.prototype._getVisualViewportHeight=function(){var t=com.inq.utils.Util.getVisualViewport();if(com.inq.utils.Util.isNullOrUndefined(t))throw new Error("VisualViewport API is not implemented");var e=t.height*t.scale;return Math.round(e)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8.prototype.resizeToViewportFocused=function(){var t=window.parent,e=Application.GetArea();this.viewPort=com.inq.utils.Capabilities.getViewport(),haxe.Log.trace("viewport height: "+this.viewPort.h,{fileName:"ChatTextFocusMonitorImplCRiOS8.js",lineNumber:1239,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8",methodName:"resizeToViewportFocused"}),Application.SetArea(this.viewPort),this.zoomViewport(t),this.viewPort.h==e.h&&this.viewPort.w==e.w||com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd(),Application.Resize()}),100)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8.prototype.onFocusImpl=function(t,e){var i=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8.__super__.prototype.onFocusImpl.call(this,t,e);return this.onScrollCallback(),i},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.prototype.resizeToViewportFocused=function(){var t=Application.GetArea(),e=com.inq.utils.Util.getConfig("iosGapFix",!1),i=Application.application.getMxmlItem("chatFooter"),n=Application.application.getMxmlItem("chatWindow");this.viewPort=com.inq.utils.Capabilities.getViewport(),this.viewPort.h=this.calculateViewableArea(),e&&this.iOSGapFixHeight&&(0==this.chatFooterDefaultHeight&&(this.chatFooterDefaultHeight=i.getHeight()),null===this.chatWindowDefaultBottom&&(this.chatWindowDefaultBottom=parseInt(n.getStyle("bottom"))),i.setHeight(com.inq.ui.Container.encodeSize(this.chatFooterDefaultHeight+this.iOSGapFixHeight)),isNaN(this.chatWindowDefaultBottom)||n.setStyle("bottom",com.inq.ui.Container.encodeSize(this.chatWindowDefaultBottom+this.iOSGapFixHeight))),haxe.Log.trace("viewport height: "+this.viewPort.h,{fileName:"ChatTextFocusMonitorImplIphoneCRiOS10.js",lineNumber:1239,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10",methodName:"resizeToViewportFocused"}),Application.SetArea(this.viewPort),this.viewPort.h==t.h&&this.viewPort.w==t.w||com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd(),Application.Resize()}),100)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.CHROME_IOS_HEIGHT_DIFF=44,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.SKIRT_ID="bottomSkirt",com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.prototype.onFocusImpl=function(t,e){try{var i=Application.application.getCanvas("background"),n=new com.inq.ui.ClientBody,o=i?i.getStyle("backgroundColor"):"white";o||(o="gray");var a=Application.application.getMxmlItem(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.SKIRT_ID);a||((a=new com.inq.ui.Html("html:Div",com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.SKIRT_ID,n)).setID(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.SKIRT_ID),a.attachTo(n),Application.application.setMxmlItem(a));var s=inqFrame.parent.document.body.clientHeight-44;a.setAttribute("class","tcChat"),a.setAttribute("style","position:absolute;z-index: 9999998;right:0px;left:0px;top:"+s+"px;height:44px;display: block;background-color:"+o),a.setVisible("true")}catch(t){haxe.Log.trace("Error Thrown: "+t,{fileName:"ChatTextFocusMonitorImplIphoneCRiOS10.js",lineNumber:115,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10",methodName:"onFocusImpl"})}var l=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.__super__.prototype.onFocusImpl.call(this,t,e);return this.onScrollCallback(),l},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.prototype.onBlurImpl=function(t,e){var i=Application.application.getMxmlItem(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.SKIRT_ID);return i&&i.setVisible("false"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.__super__.prototype.onBlurImpl.call(this,t,e)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS11=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS11.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS11,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS11"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS12=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS12.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS11,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS12,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS12"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS13=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS13.__super__.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS12,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS13,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS13"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneChrome=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneChrome,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneChrome"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplOverlapped,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari.forceFocus=function(t){if(!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()){var e=t.target,i=e.nodeName.toUpperCase(),n="INPUT"==i||"SELECT"==i||"TEXTAREA"==i;(com.inq.utils.Capabilities.isSafari()||com.inq.utils.Capabilities.isChromeiOS())&&com.inq.utils.Capabilities.isMobile()&&n&&(e.onfocus||(e.blur(),e.onfocus=com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus,e.onblur=com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur))}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplAndroid=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplAndroid,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplAndroid"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplAndroid.prototype.FixIPhoneFocusScroll=function(){return!1},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.call(this)},$hxClasses.extend(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize,com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone,"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone"),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.bindListeners=function(){var t=com.inq.ui.Stage.getStageElement();com.inq.utils.Capabilities.BindListener(t,"mousedown",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onMouseDown),com.inq.utils.Capabilities.BindListener(t,"touchstart",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchStart),com.inq.utils.Capabilities.BindListener(t,"touchend",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchEnd),com.inq.utils.Capabilities.BindListener(t,"touchmove",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchMove),["txtInput","emailInput"].forEach((function(t){var e=Application.application.getTextInput(t);if(e){var i=e.getInput();i&&(com.inq.utils.Capabilities.BindListener(i,"touchstart",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.BindListener(i,"activate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.BindListener(i,"deactivate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.BindListener(i,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}}));var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();null!=e&&e.setFocus()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.unbindListeners=function(){var t=com.inq.ui.Stage.getStageElement();com.inq.utils.Capabilities.UnbindListener(t,"mousedown",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onMouseDown),com.inq.utils.Capabilities.UnbindListener(t,"touchstart",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchStart),com.inq.utils.Capabilities.UnbindListener(t,"touchend",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchEnd),com.inq.utils.Capabilities.UnbindListener(t,"touchmove",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchMove),["txtInput","emailInput"].forEach((function(t){var e=Application.application.getTextInput(t);if(e){var i=e.getInput();i&&(com.inq.utils.Capabilities.UnbindListener(i,"touchstart",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.UnbindListener(i,"activate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.UnbindListener(i,"deactivate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.UnbindListener(i,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}}))},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.bindOrbeonListeners=function(t,e){for(var i=0;i<e.length;){var n=e[i];++i,null!=n&&(com.inq.utils.Capabilities.BindListener(n,"activate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.BindListener(n,"deactivate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.BindListener(n,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}this.orbeonDtidMap[t]=e},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.unbindOrbeonListeners=function(t){var e=0,i=this.orbeonDtidMap[t];if(i&&i.length>0){for(;e<i.length;){var n=i[e];++e,null!=n&&(com.inq.utils.Capabilities.UnbindListener(n,"activate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus),com.inq.utils.Capabilities.UnbindListener(n,"deactivate",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur),com.inq.utils.Capabilities.UnbindListener(n,"paste",com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste))}this.orbeonDtidMap[t]=null}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.resizeToViewport=function(t){if(!this.bResizeToViewport&&!com.inq.flash.client.control.MinimizeManager.minimized){this.bResizeToViewport=!0;var e=window.top;if(this.hasFocus)this.resizeToViewportImpl();else{this.zoomViewport(e),com.inq.flash.client.chatskins.ScrollMonitor.bindAll();try{var i=com.inq.utils.Capabilities.getViewport();Application.SetArea(i),Application.Resize(),this.bResizeToViewport=!1}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitorImplBase.js",lineNumber:111,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase",methodName:"resizeToViewport"})}}}},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.onMouseDown=function(t){com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus()&&t.target!=this.focusElement&&(t.preventDefault(),t.stopPropagation())},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.onTouchStart=function(t,e){if(this.hasFocus){var i=t.target.container;i?js.Boot.__instanceof(i,com.inq.ui.Button)&&(t.preventDefault(),t.stopPropagation(),i.softClick(),this.keepFocus=!0):(t.preventDefault(),t.stopPropagation())}return com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.__super__.prototype.onTouchStart.call(this,t)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.onTouchMove=function(t){this.keepFocus=this.hasFocus,t.preventDefault(),t.stopPropagation()},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.onTouchEnd=function(t){if(this.keepFocus){if(this.keepFocus=!1,this.focusElement){var e=this;setTimeout((function(){e.focusElement.focus()}),1)}}else this.hasFocus&&(e=this,this.focusElement!=t.target?setTimeout((function(){e.focusElement.blur()}),1):setTimeout((function(){e.focusElement.focus()}),1));return com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.__super__.prototype.onTouchEnd.call(this,t)},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.onFocusImpl=function(t,e){this.focusElement=e,this.bindOrientationListener(),this.focusToken=null;var i=this;return com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(500),200,(function(){i.FixIPhoneFocusScroll(),i.resizeToViewport("ChatTextFocusMonitorImplWindowsPhone.onFocusImpl")}),15,3),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.onBlurImpl=function(t){com.inq.flash.client.chatskins.ChatTextFocusMonitorImplResize.prototype.onBlurImpl.apply(this,arguments);var e=this;return com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(500),200,(function(){e.resizeToViewport("ChatTextFocusMonitorImplWindowsPhone.onBlurImpl")}),15,3),!0},com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone.prototype.keepFocus=!1,com.inq.flash.client.chatskins.ChatTextFocusMonitor=function(){},$hxClasses.registerClass(com.inq.flash.client.chatskins.ChatTextFocusMonitor,"com.inq.flash.client.chatskins.ChatTextFocusMonitor"),com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=null,com.inq.flash.client.chatskins.ChatTextFocusMonitor._isCriOS8=/(iPhone|iPod|iPad).*(CPU\s(iPhone|iPod|iPad)\sOS\s(6|7|8|9)_).*AppleWebKit?.*CriOS/i.test(navigator.userAgent),com.inq.flash.client.chatskins.ChatTextFocusMonitor.init=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitor.closing=!1,com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().init()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl=function(){if(com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl)return com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl;var t=com.inq.utils.Capabilities.getUserAgent();return com.inq.utils.Capabilities.isChromeOnIphone()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10:com.inq.utils.Capabilities.isSafariVersion10()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari10:com.inq.utils.Capabilities.isSafariVersion14orLater()||com.inq.utils.Capabilities.isSafariVersion13()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari13:com.inq.utils.Capabilities.isSafariVersion12()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari12:com.inq.utils.Capabilities.isSafariVersion11()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari11:com.inq.utils.Capabilities.isSafariVersion9()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari9:com.inq.utils.Capabilities.isSafariVersionPrior8()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari7:com.inq.utils.Capabilities.isSafariVersion8()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari8:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t)?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplVodafoneAppIos:com.inq.utils.Capabilities.isChromeiOS8()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplCRiOS8:com.inq.utils.Capabilities.isWindowsPhone()?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplWindowsPhone:/(iPhone|iPod|iPad).*AppleWebKit?.*CriOS/i.test(t)?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneChrome:/(iPhone|iPod|iPad).*AppleWebKit(?!.*CriOS).*Safari/i.test(t)?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari:/android/i.test(t)?com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplAndroid:com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl=new com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase,com.inq.flash.client.chatskins.ChatTextFocusMonitor.impl},com.inq.flash.client.chatskins.ChatTextFocusMonitor.Close=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitor.closing=!0,com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().Close()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.blur=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().blur()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus=function(){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().HasFocus()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.setHasFocus=function(){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().setHasFocus()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.getFocusElement=function(){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().getFocusElement()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.blurFocusedElement=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().blurFocusedElement()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.scrollToPrevious=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().scrollToPrevious()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.saveWindowPositionForce=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().saveWindowPositionForce()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.saveWindowPosition=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().saveWindowPosition()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.clearWindowPosition=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().clearWindowPosition()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.hasSavedWindowPosition=function(){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().hasSavedWindowPosition()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.restoreWindowPosition=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().restoreWindowPosition()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.FixIPhoneFocusScroll=function(){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().FixIPhoneFocusScroll()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onFocus(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.expandChat=function(){return!(!com.inq.ui.Stage.getInstance().getVisible()||com.inq.utils.Util.isFocusAndScrollMonitorsDisabled())&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().expandChat()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.shrinkChat=function(){return!(!com.inq.ui.Stage.getInstance().getVisible()||com.inq.utils.Util.isFocusAndScrollMonitorsDisabled())&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().shrinkChat()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchStart=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onTouchStart(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onMouseDown=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onMouseDown(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchMove=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onTouchMove(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onTouchEnd=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onTouchEnd(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.resizeToViewportIphone=function(t){com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().resizeToViewportIphone()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.resizeToViewportLegacy=function(t){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().resizeToViewportLegacy(t)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.resizeToViewport=function(t){com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().resizeToViewport(t)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.getKeyboardHeight=function(){return com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().getKeyboardHeight()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.setKeyboardHeight=function(t){com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().setKeyboardHeight(t)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onOrientationChange=function(t){return com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onOrientationChange(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlurHandlerPhoneIphone=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onBlurHandlerPhoneIphone()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onPaste=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onPaste(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.isBlurHandlerPending=function(){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().isBlurHandlerPending()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.cancelBlurHandler=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().cancelBlurHandler()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur=function(t){return!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onBlur(t,this)},com.inq.flash.client.chatskins.ChatTextFocusMonitor.isIos6=function(){return com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().isIos6()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.onScrollCallback=function(){try{com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().onScrollCallback()}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitor.js",lineNumber:167,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"onScrollCallback"})}},com.inq.flash.client.chatskins.ChatTextFocusMonitor.calculateViewableArea=function(){try{if(!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled())return com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().calculateViewableArea()}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ChatTextFocusMonitor.js",lineNumber:695,className:"com.inq.flash.client.chatskins.ChatTextFocusMonitor",methodName:"calculateViewableArea"})}},com.inq.flash.client.chatskins.ChatTextFocusMonitor.isVersion8=function(){return com.inq.utils.Capabilities.isSafariVersion8()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.isVersionPrior8=function(){return com.inq.utils.Capabilities.isSafariVersionPrior8()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.isCriOS8=function(){return com.inq.utils.Capabilities.isChromeiOS8()},com.inq.flash.client.chatskins.ChatTextFocusMonitor.SAFARI_KEYBOARD_HEIGHT_PORTRAIT=260,com.inq.flash.client.chatskins.ChatTextFocusMonitor.SAFARI_KEYBOARD_HEIGHT_LANDSCAPE=162,com.inq.flash.client.chatskins.EmailMgr=function(){},$hxClasses["com.inq.flash.client.chatskins.EmailMgr"]=com.inq.flash.client.chatskins.EmailMgr,com.inq.flash.client.chatskins.EmailMgr.__name__=["com","inq","flash","client","chatskins","EmailMgr"],com.inq.flash.client.chatskins.EmailMgr.savedEmailInputTitle=null,com.inq.flash.client.chatskins.EmailMgr._init=function(){return!0},com.inq.flash.client.chatskins.EmailMgr.init=function(){return com.inq.flash.client.chatskins.EmailMgr.emailButtonCap=Application.application.getButton("btnEmailCapture"),com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap=Application.application.getMxmlItem("emailCapture"),com.inq.flash.client.chatskins.EmailMgr.emailButton=Application.application.getButton("btnEmail"),com.inq.flash.client.chatskins.EmailMgr.emailCanvas=Application.application.getMxmlItem("email"),com.inq.flash.client.chatskins.EmailMgr.chatCanvas=Application.application.getMxmlItem("chat"),com.inq.flash.client.chatskins.EmailMgr.tyCanvas=Application.application.getMxmlItem("thankYou"),com.inq.flash.client.chatskins.EmailMgr.focusEmailField=com.inq.utils.Util.getConfig("focusEmailField",!1),null!=com.inq.flash.client.chatskins.EmailMgr.emailButtonCap&&null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap&&(com.inq.flash.client.chatskins.EmailMgr.setCaptureState(com.inq.flash.client.control.PersistenceManager.GetValue(EMAIL_MANAGER_CAPTURE_STATE,0)),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnEmailCapture")&&Application.application.getButton("btnEmailCapture").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.EmailMgr.showEmailCaptureCanvas),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnSendEmailCapture")&&Application.application.getButton("btnSendEmailCapture").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.EmailMgr.actionBtnCaptureSendEmail)),null!=com.inq.flash.client.chatskins.EmailMgr.emailButton&&null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&(com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.control.PersistenceManager.GetValue(EMAIL_MANAGER_STATE,0)),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnEmail")&&Application.application.getButton("btnEmail").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.EmailMgr.showEmailCanvas),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnSendEmail")&&Application.application.getButton("btnSendEmail").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.EmailMgr.actionBtnSendEmail)),!0},com.inq.flash.client.chatskins.EmailMgr.showEmailCaptureCanvas=function(t){return com.inq.flash.client.chatskins.EmailMgr.setCaptureState(com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE),!1},com.inq.flash.client.chatskins.EmailMgr.showEmailCanvas=function(){var t,e=Application.application;if(!e.isConnected()||!e.isAgentAssigned()&&!e.isVirtualAgent()||com.inq.flash.client.chatskins.EmailMgr.isEmailCanvasAndButtonVisible())return!1;if(com.inq.utils.Capabilities.isIpad())return com.inq.flash.client.chatskins.EmailMgr.showEmailCanvasIpad();if(com.inq.flash.client.chatskins.EmailMgr.modalEmailCanvas(),com.inq.utils.Capabilities.isMobile()){if(com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE),null!=(t=Application.application.getTextInput("emailInput"))){if(com.inq.utils.Capabilities.isIphone())try{t._input.style.minHeight=t._div.style.height}catch(t){}t.setFocus(!0)}}else if(navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Application.application.getXFrameItems().length>0)window.setTimeout((function(){com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE);var t=Application.application.getTextInput("emailInput");null!=t&&(com.inq.flash.client.chatskins.EmailMgr.updateEmailInputTitle(),t.setFocus(!0))}),200);else if(com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE),null!=(t=Application.application.getTextInput("emailInput"))&&!0===t._visible)com.inq.flash.client.chatskins.EmailMgr.updateEmailInputTitle(),t.setFocus(!0);else{var i=Application.application.getTextInput("txtInput");null!=i&&i.setFocus(!0),window.setTimeout((function(){var t=Application.application.getTextInput("emailInput");null!=t&&(com.inq.flash.client.chatskins.EmailMgr.updateEmailInputTitle(),t.setFocus(!0))}),200)}},com.inq.flash.client.chatskins.EmailMgr.isEmailCanvasAndButtonVisible=function(){return com.inq.flash.client.chatskins.EmailMgr.getState()===com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE},com.inq.flash.client.chatskins.EmailMgr.showEmailCanvasIpad=function(t){return window.setTimeout((function(){com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE);var t=Application.application.getTextInput("emailInput");null!=t&&t.setFocus(!0)}),1e3),com.inq.flash.client.chatskins.EmailMgr.modalEmailCanvas(),!1},com.inq.flash.client.chatskins.EmailMgr.modalEmailCanvas=function(){com.inq.aria.ModalWindow.modalEmailCanvas()},com.inq.flash.client.chatskins.EmailMgr.unModalEmailCanvas=function(){com.inq.aria.ModalWindow.unModalEmailCanvas()},com.inq.flash.client.chatskins.EmailMgr.setCaptureState=function(t){var e=0;if(null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap&&null!=com.inq.flash.client.chatskins.EmailMgr.emailButtonCap){switch(t){case com.inq.flash.client.chatskins.EmailMgr.SHOW_BUTTON_STATE:com.inq.flash.client.chatskins.EmailMgr.emailButtonCap.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.setVisible(!1);break;case com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE:com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getVisible()||(null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getVisible()?(e+=Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top"))+com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getHeight()+com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getHeight(),com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.setStyle("top",""+Std.string(Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top"))+com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getHeight()))):e+=Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getStyle("top"))+com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getHeight(),com.inq.flash.client.chatskins.EmailMgr.chatCanvas.setStyle("top",""+e),com.inq.flash.client.chatskins.EmailMgr.emailButtonCap.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.setVisible(!0));break;case com.inq.flash.client.chatskins.EmailMgr.SHOW_NONE_STATE:var i=i=Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getStyle("top"));null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getVisible()&&i<Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top"))?(com.inq.flash.client.chatskins.EmailMgr.emailCanvas.setStyle("top",i),e+=i+com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getHeight()):e+=i,com.inq.flash.client.chatskins.EmailMgr.chatCanvas.setStyle("top",""+e),com.inq.flash.client.chatskins.EmailMgr.emailButtonCap.setVisible(!1),com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.setVisible(!1);break;default:com.inq.flash.client.chatskins.EmailMgr.emailButtonCap.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.setVisible(!1)}com.inq.flash.client.control.PersistenceManager.SetValue(EMAIL_MANAGER_CAPTURE_STATE,t)}},com.inq.flash.client.chatskins.EmailMgr.setState=function(t){var e=0;if(null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&null!=com.inq.flash.client.chatskins.EmailMgr.emailButton){switch(t){case com.inq.flash.client.chatskins.EmailMgr.SHOW_BUTTON_STATE:com.inq.flash.client.chatskins.EmailMgr.emailButton.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.emailCanvas.setVisible(!1);break;case com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE:com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getVisible()||(null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap&&com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getVisible()?(e+=Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getStyle("top"))+com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getHeight()+com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getHeight(),com.inq.flash.client.chatskins.EmailMgr.emailCanvas.setStyle("top",""+Std.string(Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getStyle("top"))+com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getHeight()))):e+=Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top"))+com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getHeight(),null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top")&&com.inq.flash.client.chatskins.EmailMgr.chatCanvas.setStyle("top",""+e),com.inq.flash.client.chatskins.EmailMgr.emailButton.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.emailCanvas.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.focusEmailField&&Application.application.getMxmlItem("emailInput").setFocus());break;case com.inq.flash.client.chatskins.EmailMgr.SHOW_NONE_STATE:var i=Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top"));null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap&&com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getVisible()&&i<Std.parseInt(com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getStyle("top"))?(com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.setStyle("top",i),e+=i+com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap.getHeight()):e+=i,null!=com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getStyle("top")&&com.inq.flash.client.chatskins.EmailMgr.chatCanvas.setStyle("top",""+e),com.inq.flash.client.chatskins.EmailMgr.emailButton.setVisible(!1),com.inq.flash.client.chatskins.EmailMgr.emailCanvas.setVisible(!1);break;default:com.inq.flash.client.chatskins.EmailMgr.emailButton.setVisible(!0),com.inq.flash.client.chatskins.EmailMgr.emailCanvas.setVisible(!1)}com.inq.flash.client.control.PersistenceManager.SetValue(EMAIL_MANAGER_STATE,t)}},com.inq.flash.client.chatskins.EmailMgr.getState=function(){return com.inq.flash.client.control.PersistenceManager.GetValue(EMAIL_MANAGER_STATE)},com.inq.flash.client.chatskins.EmailMgr.actionBtnCaptureSendEmail=function(t){if(com.inq.flash.client.chatskins.SkinControl.isInApplication("emailInputCapture")){var e=Application.application.getMxmlItem("emailInputCapture")._getInput();try{0!=(e=StringTools.trim(e)).length&&(com.inq.flash.client.control.FlashPeer.captureEmailAddress(e),com.inq.flash.client.chatskins.EmailMgr.hideEmailButton())}catch(t){}}return!1},com.inq.flash.client.chatskins.EmailMgr.actionBtnSendEmail=function(t){if(com.inq.flash.client.chatskins.SkinControl.isInApplication("emailInput")){var e=Application.application.getMxmlItem("emailInput"),i=com.inq.aria.AriaMsg,n=e._getInput();try{if(0!=(n=StringTools.trim(n)).length&&/^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$/.test(n)){com.inq.flash.client.control.FlashPeer.requestTranscript(n,com.inq.flash.client.control.FlashVars.getCustomerName()),com.inq.flash.client.chatskins.EmailMgr.saveRequestedStatus();var o=Application.application.getMxmlItem("SuccessSend");if(o){o.setVisible(!0);var a=Application.application.getButton("btnCloseEmail");null!=a&&a.setImageFocus()}else com.inq.flash.client.chatskins.EmailMgr.hideEmailButton(),com.inq.flash.client.chatskins.EmailMgr.unModalEmailCanvas(),com.inq.flash.client.chatskins.SkinControl.getTextInputField().setFocus();if(com.inq.utils.Util.isIE)setTimeout((function(){i.addAriaMsg(com.inq.flash.client.chatskins.EmailMgr.SUCCESS_MSG_PART1,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0),setTimeout((function(){i.addAriaMsg(com.inq.flash.client.chatskins.EmailMgr.SUCCESS_MSG,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0)}),1e3)}),1500);else if(com.inq.utils.Capabilities.isIphone()){var s=700;(com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isChromeiOS11())&&(s=300),setTimeout((function(){com.inq.aria.AriaMsg.clearAriaMsg(),i.addAriaMsg(com.inq.flash.client.chatskins.EmailMgr.SUCCESS_MSG,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0)}),s)}else setTimeout((function(){i.addAriaMsg(com.inq.flash.client.chatskins.EmailMgr.SUCCESS_MSG,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0)}),2e3)}else{var l=Application.application.getMxmlItem("FailedSend"),r=com.inq.flash.client.chatskins.EmailMgr.FAIL_MSG;l&&(r=l._div?l._div.innerText:r),com.inq.utils.Capabilities.isIphone()||com.inq.utils.Util.isIE||i.addAriaMsg(r,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0),Application.application.getMxmlItem("emailInput").setFocus(!0),l&&l.setVisible(!0),(com.inq.utils.Capabilities.isIphone()||com.inq.utils.Util.isIE)&&setTimeout((function(){i.addAriaMsg(com.inq.flash.client.chatskins.EmailMgr.FAIL_MSG_PART1,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0),setTimeout((function(){i.addAriaMsg(r,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0)}),1e3)}),1500)}}catch(t){}}return com.inq.utils.Capabilities.isMobile()||com.inq.flash.client.chatskins.EmailMgr.restoreEmailInputTitle(),!1},com.inq.flash.client.chatskins.EmailMgr.actionCancelEmail=function(){com.inq.flash.client.chatskins.EmailMgr.unModalEmailCanvas(),com.inq.flash.client.chatskins.EmailMgr.hideEmailButton();var t=Application.application.getMxmlItem("SuccessSend"),e=com.inq.flash.client.chatskins.SkinControl.getTextInputField(),i=function(i){!t||t&&!t.getVisible()?(com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_BUTTON_STATE),com.inq.flash.client.chatskins.EmailMgr.emailButton.setImageFocus()):e.setFocus(i)};if(com.inq.utils.Capabilities.isIpad())e.setVisible(!1),com.inq.utils.Timer.delay((function(){e.setVisible(!0),i(!0)}),1e3);else{if(com.inq.utils.Capabilities.isIphone()){e.setVisible(!1),e.setVisible(!0);try{com.inq.aria.AriaMsg(e._introduction,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0)}catch(t){}}i(!0),com.inq.utils.Capabilities.isMobile()||com.inq.flash.client.chatskins.EmailMgr.restoreEmailInputTitle()}},com.inq.flash.client.chatskins.EmailMgr.saveRequestedStatus=function(){com.inq.flash.client.control.PersistenceManager.SetValue(com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_COOKIE_NAME,com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_REQUESTED)},com.inq.flash.client.chatskins.EmailMgr.getRequestStatus=function(){return com.inq.flash.client.control.PersistenceManager.GetValue(com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_COOKIE_NAME,com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_DEFAULT)},com.inq.flash.client.chatskins.EmailMgr.updateEmailInputTitle=function(){var t=function(t,e){var i=Application.application.getMxmlItem(e);i&&i.getStyle("text")&&(t.title?t.title=t.title+" "+i.getStyle("text"):t.title=i.getStyle("text"))},e=Application.application.getTextInput("emailInput");e&&(com.inq.flash.client.chatskins.EmailMgr.savedEmailInputTitle=e._text.title,t(e._text,"EmailTitle"),t(e._text,"EmailDescription"))},com.inq.flash.client.chatskins.EmailMgr.restoreEmailInputTitle=function(){var t=Application.application.getTextInput("emailInput");t&&com.inq.flash.client.chatskins.EmailMgr.savedEmailInputTitle&&(t._text.title=com.inq.flash.client.chatskins.EmailMgr.savedEmailInputTitle,com.inq.flash.client.chatskins.EmailMgr.savedEmailInputTitle=null)},com.inq.flash.client.chatskins.EmailMgr.hideEmailButton=function(){com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_NONE_STATE)},com.inq.flash.client.chatskins.EmailMgr.prototype.__class__=com.inq.flash.client.chatskins.EmailMgr,com.inq.flash.client.chatskins.EmailMgr.SHOW_BUTTON_STATE=0,com.inq.flash.client.chatskins.EmailMgr.SHOW_ALL_STATE=1,com.inq.flash.client.chatskins.EmailMgr.SHOW_NONE_STATE=2,com.inq.flash.client.chatskins.EmailMgr._initialized=com.inq.flash.client.chatskins.EmailMgr._init(),com.inq.flash.client.chatskins.EmailMgr.emailButton=null,com.inq.flash.client.chatskins.EmailMgr.emailButtonCap=null,com.inq.flash.client.chatskins.EmailMgr.emailCanvas=null,com.inq.flash.client.chatskins.EmailMgr.emailCanvasCap=null,com.inq.flash.client.chatskins.EmailMgr.chatCanvas=null,com.inq.flash.client.chatskins.EmailMgr.tyCanvas=null,com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden=null,com.inq.flash.client.chatskins.EmailMgr.hasRequested=null,com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_COOKIE_NAME="tsquest",com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_REQUESTED=1,com.inq.flash.client.chatskins.EmailMgr.REQUEST_STATUS_DEFAULT=0,com.inq.flash.client.chatskins.EmailMgr.FAIL_MSG_PART1="Validation Fail",com.inq.flash.client.chatskins.EmailMgr.FAIL_MSG="Fail to send email address for chat transcript",com.inq.flash.client.chatskins.EmailMgr.SUCCESS_MSG_PART1="Validation Success",com.inq.flash.client.chatskins.EmailMgr.SUCCESS_MSG="Your request has been sent.  Your transcript will be sent to you when your chat is completed.",y(1703),com.inq.flash.client.chatskins.FocusMonitor=function(){},$hxClasses["com.inq.flash.client.chatskins.FocusMonitor"]=com.inq.flash.client.chatskins.FocusMonitor,com.inq.flash.client.chatskins.FocusMonitor.__name__=["com","inq","flash","client","chatskins","FocusMonitor"],com.inq.flash.client.chatskins.FocusMonitor.init=function(){if(com.inq.flash.client.chatskins.FocusMonitor.clientWin=window.parent,com.inq.flash.client.chatskins.FocusMonitor.clientDoc=window.parent.doc,"_inqPersistentChat"!=com.inq.flash.client.chatskins.FocusMonitor.clientWin.name)return!1;try{var t;com.inq.flash.client.chatskins.FocusMonitor._sTitleBarText=com.inq.utils.Util.getConfig("sPersistentFrameTitle","Chat"),com.inq.flash.client.chatskins.FocusMonitor._sTitleBarFlashText=com.inq.utils.Util.getConfig("sChatNeedsFocusTitle","**********"),t=com.inq.utils.Util.getConfig("iChatNeedsFocusInterval","2000");try{com.inq.flash.client.chatskins.FocusMonitor._timerInterval=Std.parseInt(t)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;com.inq.flash.client.chatskins.FocusMonitor._timerInterval=2e3}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return com.inq.utils.Capabilities.BindListener(window,"focus",com.inq.flash.client.chatskins.FocusMonitor.whenFocus),com.inq.utils.Capabilities.BindListener(window,"blur",com.inq.flash.client.chatskins.FocusMonitor.whenBlur),!0},com.inq.flash.client.chatskins.FocusMonitor.isFocused=function(){return com.inq.flash.client.chatskins.FocusMonitor._bFocused},com.inq.flash.client.chatskins.FocusMonitor.toggleTitlebar=function(){var t=window.parent.document.title;window.parent.document.title=t!=com.inq.flash.client.chatskins.FocusMonitor._sTitleBarFlashText?com.inq.flash.client.chatskins.FocusMonitor._sTitleBarFlashText:com.inq.flash.client.chatskins.FocusMonitor._sTitleBarText},com.inq.flash.client.chatskins.FocusMonitor.startTitlebarFlash=function(){"_inqPersistentChat"==com.inq.flash.client.chatskins.FocusMonitor.clientWin.name&&1!=com.inq.utils.Util.getConfig("divSkin",!1)&&-1==com.inq.flash.client.chatskins.FocusMonitor._timer&&(window.parent.document.title=com.inq.flash.client.chatskins.FocusMonitor._sTitleBarFlashText,com.inq.flash.client.chatskins.FocusMonitor._timer=window.setInterval(com.inq.flash.client.chatskins.FocusMonitor.toggleTitlebar,com.inq.flash.client.chatskins.FocusMonitor._timerInterval))},com.inq.flash.client.chatskins.FocusMonitor.stopTitlebarFlash=function(){-1!=com.inq.flash.client.chatskins.FocusMonitor._timer&&window.clearInterval(com.inq.flash.client.chatskins.FocusMonitor._timer),com.inq.flash.client.chatskins.FocusMonitor._timer=-1,window.parent.document.title=com.inq.flash.client.chatskins.FocusMonitor._sTitleBarText},com.inq.flash.client.chatskins.FocusMonitor.whenBlur=function(t){return com.inq.flash.client.chatskins.FocusMonitor._bFocused&&haxe.Log.trace("lost focus",{fileName:"FocusMonitor.hx",lineNumber:84,className:"com.inq.flash.client.chatskins.FocusMonitor",methodName:"whenBlur"}),com.inq.flash.client.chatskins.FocusMonitor._bFocused=!1,!0},com.inq.flash.client.chatskins.FocusMonitor.whenFocus=function(t){return com.inq.flash.client.chatskins.FocusMonitor._bFocused||haxe.Log.trace("gained focus",{fileName:"FocusMonitor.hx",lineNumber:92,className:"com.inq.flash.client.chatskins.FocusMonitor",methodName:"whenFocus"}),com.inq.flash.client.chatskins.FocusMonitor.stopTitlebarFlash(),com.inq.flash.client.chatskins.FocusMonitor._bFocused=!0,!0},com.inq.flash.client.chatskins.FocusMonitor.prototype.__class__=com.inq.flash.client.chatskins.FocusMonitor,com.inq.flash.client.chatskins.FocusMonitor.clientWin=null,com.inq.flash.client.chatskins.FocusMonitor.clientDoc=null,com.inq.flash.client.chatskins.FocusMonitor._timerIdScroll=-1,com.inq.flash.client.chatskins.FocusMonitor._bFocused=!0,com.inq.flash.client.chatskins.FocusMonitor._sTitleBarText="Let's Chat",com.inq.flash.client.chatskins.FocusMonitor._sTitleBarFlashText="<<<<<>>>>>",com.inq.flash.client.chatskins.FocusMonitor._timerInterval=2e3,com.inq.flash.client.chatskins.FocusMonitor._timer=-1,y(5306),com.inq.flash.client.chatskins.FontMgr=function(){},$hxClasses.registerClass(com.inq.flash.client.chatskins.FontMgr,"com.inq.flash.client.chatskins.FontMgr"),com.inq.flash.client.chatskins.FontMgr.init=function(){if(null==com.inq.flash.client.chatskins.FontMgr.defaultSkin){var t=com.inq.flash.client.control.FlashPeer.getSkin();t=com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?com.inq.flash.client.control.PersistenceManager.GetValue(EMBEDDED_SKIN_PATH,t):com.inq.flash.client.control.PersistenceManager.GetValue(SKIN_PATH,t),com.inq.flash.client.chatskins.FontMgr.defaultSkin=t}var e=com.inq.utils.Util.getConfig("nextSkin",null),i=com.inq.flash.client.control.FlashPeer.getChatSkinFmt();null!=e&&(e=e.replace(/\.(skin|zip)$/,"."+i)),com.inq.flash.client.chatskins.FontMgr.nameNextSkin=e;var n=com.inq.utils.Util.getConfig("liveAgentSkin",null);if(n&&!com.inq.flash.client.control.FlashPeer.getIsSkinLocal()&&(n=n.replace(/\.(skin|zip)$/,"."+i),com.inq.flash.client.chatskins.FontMgr.liveAgentSkin=n,com.inq.ui.SkinLoader.PreloadNewSkin(n)),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnFontSize")){var o=Application.application.getButton("btnFontSize");o.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.FontMgr.actionBtnNewFont),o.setVisible(!0),com.inq.flash.client.chatskins.FontMgr.isCssModeUsed()&&(o.setupDefaultStateLabels([com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_SMALL_LABEL,com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_LARGE_LABEL]),com.inq.flash.client.control.PersistenceManager.GetValue(FONT_SIZE_INCREASED,!1)?(com.inq.flash.client.chatskins.FontMgr.isLarger=!0,o.setState(com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_LARGE_LABEL_INDEX),com.inq.flash.client.chatskins.FontMgr.applyFontSizeNewWay()):(com.inq.flash.client.chatskins.FontMgr.isLarger=!1,o.setState(com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_SMALL_LABEL_INDEX))),com.inq.flash.client.chatskins.FontMgr.nameNextSkin&&!com.inq.flash.client.control.FlashPeer.getIsSkinLocal()&&(com.inq.ui.SkinLoader.PreloadNewSkin(com.inq.flash.client.chatskins.FontMgr.nameNextSkin),haxe.Log.trace("skin is "+com.inq.flash.client.chatskins.FontMgr.nameNextSkin,{fileName:"FontMgr.hx",lineNumber:50,className:"com.inq.flash.client.chatskins.FontMgr",methodName:"init"}))}return!0},com.inq.flash.client.chatskins.FontMgr.toggleFontSize=function(t){return t=parseInt(t),(com.inq.flash.client.chatskins.FontMgr.isLarger?t+3:t-3).toString()},com.inq.flash.client.chatskins.FontMgr.toggleElements=function(t){var e=!0===(com.inq.utils.Util.getConfig("divSkin",!1)&&!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat())?window.parent.window:window,i=null,n=null,o=null;if(t&&t.length>0)for(var a=0;a<t.length;a++)o=t[a],null!==e.getComputedStyle?i=e.getComputedStyle(o,null).fontSize:null!==o.currentStyle.fontSize&&(i=o.currentStyle.fontSize),n=i.slice(-2),i=i.slice(0,-2),o.style.setProperty("font-size",com.inq.flash.client.chatskins.FontMgr.toggleFontSize(i)+n,"important")},com.inq.flash.client.chatskins.FontMgr.getChatTranscriptElements=function(t){return[t.getElementsByClassName("customerId"),t.getElementsByClassName("customerMsg"),t.getElementsByClassName("agentId"),t.getElementsByClassName("agentMsg"),t.getElementsByClassName("systemMsg"),t.getElementsByClassName("systemStatMsg"),t.getElementsByClassName("agentMsgTime"),t.getElementsByClassName("customerMsgTime"),t.getElementsByClassName("todayMsgTime"),t.getElementsByClassName("msgDate")]},com.inq.flash.client.chatskins.FontMgr.applyFontSizeAfterMsg=function(t){if(null==com.inq.utils.Util.getConfig("nextSkin",null)&&com.inq.flash.client.chatskins.FontMgr.isLarger)for(var e=com.inq.flash.client.chatskins.FontMgr.getChatTranscriptElements(t),i=0;i<e.length;i++)com.inq.flash.client.chatskins.FontMgr.toggleElements(e[i])},com.inq.flash.client.chatskins.FontMgr.applyFontSizeNewWay=function(){var t=com.inq.utils.Util.isDivChat()?window.parent.document:window.document;com.inq.flash.client.chatskins.FontMgr._applyFontSizeNewWay(t),com.inq.flash.client.chatskins.FontMgr.setFontState(com.inq.flash.client.chatskins.FontMgr.isLarger)},com.inq.flash.client.chatskins.FontMgr.setFontState=function(t){com.inq.flash.client.chatskins.FontMgr.isCssModeUsed()&&com.inq.flash.client.control.PersistenceManager.SetValue(FONT_SIZE_INCREASED,t)},com.inq.flash.client.chatskins.FontMgr._applyFontSizeNewWay=function(t){var e=com.inq.flash.client.chatskins.SkinControl.isTranscriptScrolledToBottom(),i=com.inq.flash.client.chatskins.FontMgr.getChatTranscriptElements(com.inq.flash.client.chatskins.SkinControl.getChatWindow()._ta._div),n=com.inq.ui.Stage.getStageElement();"IFRAME"===n.nodeName&&(n=com.inq.ui.Container.getElementById(com.inq.ui.SkinLoader.OVERALL_CONTAINER_ID)),n?i.push(n.getElementsByTagName("textarea")):com.inq.flash.client.control.FlashPeer.logError("stageElement is "+n+" in applyFontSizeNewWay, skin URL: "+com.inq.ui.SkinLoader.getSkinURL()),com.inq.ui.Container._getElementById(com.inq.flash.client.chatskins.FontMgr.EMAIL_PANEL_ID,t)&&i.push(com.inq.ui.Container._getElementById(com.inq.flash.client.chatskins.FontMgr.EMAIL_PANEL_ID,t).getElementsByTagName("div"));for(var o=0;o<i.length;o++)com.inq.flash.client.chatskins.FontMgr.toggleElements(i[o]);e&&com.inq.flash.client.chatskins.SkinControl.scrollTranscriptToEnd()},com.inq.flash.client.chatskins.FontMgr.actionBtnNewFont=function(t){if(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched=!0,com.inq.flash.client.chatskins.FontMgr.isCssModeUsed()){var e=Application.application.getButton("btnFontSize");com.inq.flash.client.chatskins.FontMgr.isLarger?(com.inq.flash.client.chatskins.FontMgr.isLarger=!1,e.setState(com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_SMALL_LABEL_INDEX)):(com.inq.flash.client.chatskins.FontMgr.isLarger=!0,e.setState(com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_LARGE_LABEL_INDEX)),com.inq.flash.client.chatskins.FontMgr.applyFontSizeNewWay()}else try{if(com.inq.flash.client.control.FlashPeer.isV3Continue()){com.inq.flash.client.control.ApplicationController.isSkipRestoreMsgOnce=!0;var i=com.inq.flash.client.control.FlashPeer.getSkin();if(i=com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?com.inq.flash.client.control.PersistenceManager.GetValue(EMBEDDED_SKIN_PATH,i):com.inq.flash.client.control.PersistenceManager.GetValue(SKIN_PATH,i),com.inq.flash.client.chatskins.FontMgr.nameNextSkin==i){var n=com.inq.flash.client.chatskins.FontMgr.defaultSkin;n=(n=n.replace(com.inq.ui.SkinLoader.getSkinBase(),"")).replace("/",""),com.inq.ui.SkinLoader.LoadNewSkin(n)}else com.inq.ui.SkinLoader.LoadNewSkin(com.inq.flash.client.chatskins.FontMgr.nameNextSkin)}}catch(t){haxe.Log.trace("Error setting new font:"+t.msg+" "+t.type+"\n",{fileName:"FontMgr.js",lineNumber:101,className:"com.inq.flash.client.control.FontMgr",methodName:"actionBtnNewFont"})}},com.inq.flash.client.chatskins.FontMgr.restoreFontSizeForEmailPanel=function(t){var e=t&&t.id,i=com.inq.utils.Util.isDivChat()?window.parent.document:window.document,n=com.inq.ui.Container._getElementById(com.inq.flash.client.chatskins.FontMgr.EMAIL_PANEL_ID,i);com.inq.flash.client.chatskins.FontMgr.isLarger&&n&&e&&(com.inq.flash.client.chatskins.FontMgr.EMAIL_PANEL_ID===e?com.inq.flash.client.chatskins.FontMgr.toggleElements(n.getElementsByTagName("div")):n.querySelector("#"+e)&&com.inq.flash.client.chatskins.FontMgr.toggleElements([t]))},com.inq.flash.client.chatskins.FontMgr.isCssModeUsed=function(){return!com.inq.flash.client.chatskins.FontMgr.nameNextSkin},com.inq.flash.client.chatskins.FontMgr.nameNextSkin=null,com.inq.flash.client.chatskins.FontMgr.isLarger=!1,com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_LARGE_LABEL="Font size large. Select to reduce font size",com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_SMALL_LABEL="Font size small. Select to enlarge font size",com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_SMALL_LABEL_INDEX=0,com.inq.flash.client.chatskins.FontMgr.FONT_SIZE_LARGE_LABEL_INDEX=1,com.inq.flash.client.chatskins.FontMgr.EMAIL_PANEL_ID="tcChat_emailFormInput",y(1703),com.inq.flash.client.chatskins.FormMgr=function(){},$hxClasses["com.inq.flash.client.chatskins.FormMgr"]=com.inq.flash.client.chatskins.FormMgr,com.inq.flash.client.chatskins.FormMgr.__name__=["com","inq","flash","client","chatskins","FormMgr"],com.inq.flash.client.chatskins.FormMgr.init=function(){return!0},com.inq.flash.client.chatskins.FormMgr.validateData=function(t,e){var i=!1;if(null==e)i=!0;else{var n=new EReg(e,""),o="";try{o=StringTools.trim(t.type.toLowerCase())}catch(t){}switch(o){case"text":case"hidden":try{i=n.match(StringTools.trim(t.value))}catch(t){i=!1}}}return i},com.inq.flash.client.chatskins.FormMgr.enableDisableElements=function(t,e){for(var i=window.document.getElementById(t).getElementsByTagName("INPUT"),n=0,o=i.length;n<o;n++)i[n].disabled=e},com.inq.flash.client.chatskins.FormMgr.getNextFormElement=function(t){for(var e,i=com.inq.flash.client.chatskins.FormMgr.getFormFromElement(t).getElementsByTagName("INPUT"),n=i.length,o=0,a=i.length;o<a;o++)if(i[o]==t){n=o;break}for(;++n<i.length;)if("hidden"!=(e=i[n]).type.toLowerCase())return e;return null},com.inq.flash.client.chatskins.FormMgr.getFormFromElement=function(t){for(var e=t.parentNode;null!=e;){if(null!=e.tagName&&"form"==e.tagName.toLowerCase())return e;e=e.parentNode}return e},com.inq.flash.client.chatskins.FormMgr.listen4ChangeElements=function(t){var e=com.inq.ui.Container.getElementById(t).getElementsByTagName("INPUT");try{for(var i=0,n=e.length;i<n;i++){var o=e[i];"submit"==o.type.toLowerCase()?o.onchange=o.onkeypress=o.onclick=function(t){return com.inq.flash.client.chatskins.SkinControl.cw.syncForms(),com.inq.flash.client.chatskins.FormMgr.submit(com.inq.flash.client.chatskins.FormMgr.getFormFromElement(this).id),!1}:(o.onkeydown=function(t){var e=!1,i=null!=t?t:Application.application.getPanelWindow().event;if(null!=i&&(e=0==i.altKey&&0==i.shiftKey&&0==i.ctrlKey&&13==i.keyCode),e){var n=com.inq.flash.client.chatskins.FormMgr.getNextFormElement(this);return null==n||"submit"==n.type.toLowerCase()?(com.inq.flash.client.chatskins.SkinControl.cw.syncForms(),com.inq.flash.client.chatskins.FormMgr.submit(com.inq.flash.client.chatskins.FormMgr.getFormFromElement(this).id)):(com.inq.flash.client.chatskins.SkinControl.cw.syncForms(),null!=n.focus&&n.focus()),!1}return!0},o.onkeypress=o.onchange=o.onclick=function(t){return com.inq.flash.client.chatskins.SkinControl.cw.syncForms(),!0})}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("Error "+Std.string(t),{fileName:"FormMgr.hx",lineNumber:152,className:"com.inq.flash.client.chatskins.FormMgr",methodName:"listen4ChangeElements"})}},com.inq.flash.client.chatskins.FormMgr.disableAllElements=function(t){for(var e=com.inq.ui.Container.getElementById("chatWindow").getElementsByTagName("INPUT"),i=0,n=e.length;i<n;i++)e[i].disabled=!0},com.inq.flash.client.chatskins.FormMgr.submit=function(t){try{com.inq.flash.client.chatskins.BalloonNotifier.Clear(),com.inq.flash.client.chatskins.FormMgr.enableDisableElements(t,!0);for(var e=com.inq.ui.Container.getElementById(t),i=e.elements,n=new StringBuf,o=!0,a=0,s=i.length;a<s;a++){var l=!0,r=StringTools.trim(i[a].name);null!=r&&r.length>0&&"test"!=r&&"pass"!=r&&"fail"!=r&&(a+1<i.length&&"test"==i[a+1].name&&(l=com.inq.flash.client.chatskins.FormMgr.validateData(i[a],i[a+1].value)),l?(n.b+=Std.string(i[a].name+"="+StringTools.trim(i[a].value)+"&"),a+2<i.length&&"pass"==i[a+2].name&&com.inq.flash.client.chatskins.BalloonNotifier.Notify(i[a],i[a+2].value)):(o=!1,a+2<i.length&&"fail"==i[a+2].name?com.inq.flash.client.chatskins.BalloonNotifier.Warn(i[a],i[a+2].value):a+3<i.length&&"fail"==i[a+3].name&&com.inq.flash.client.chatskins.BalloonNotifier.Warn(i[a],i[a+3].value)))}if(o){com.inq.flash.client.chatskins.FormMgr.enableDisableElements(t,!0),com.inq.flash.client.chatskins.SkinControl.cw.syncForms();var c=HxOverrides.substr(n.b,0,n.b.length-1),h=com.inq.utils.Util.getConfig("sFormSubmitted","form submitted");com.inq.flash.client.chatskins.SkinControl.getApplicationController().submitForm(e.name,e.id,c,h)}else com.inq.flash.client.chatskins.FormMgr.enableDisableElements(t,!1)}catch(t){haxe.Log.trace("Form submission FAILED"+Std.string(t),{fileName:"FormMgr.hx",lineNumber:206,className:"com.inq.flash.client.chatskins.FormMgr",methodName:"submit"})}return!1},com.inq.flash.client.chatskins.FormMgr.updateFormFields=function(t,e,i,n){for(var o=com.inq.ui.Container.getElementById("chatWindow").getElementsByTagName("FORM"),a=0,s=o.length;a<s;a++){var l=o[a];if(l.id==i&&l.name==e||null==l.id&&l.name==e)for(var r=t.split("&"),c=0,h=r.length;c<h;c++)for(var m=r[c].split("="),u=l.elements,p=0,d=u.length;p<d;p++)u[p].name==m[0]?(u[p].setAttribute("value",m[1]),u[p].value=m[1],u[p].disabled=!0):"submit"==u[p].type.toLowerCase()&&(u[p].disabled=!0);n.syncForms()}},com.inq.flash.client.chatskins.FormMgr.updateFormTimeExecutor=function(t){null!=com.inq.ui.Container.getElementById("chatWindow")?haxe.Timer.delay((function(){com.inq.flash.client.chatskins.FormMgr.updateForm(t)}),com.inq.flash.client.chatskins.ChatTextArea.RENDER_DELAY):haxe.Timer.delay((function(){com.inq.flash.client.chatskins.FormMgr.updateFormTimeExecutor(t)}),com.inq.flash.client.chatskins.ChatTextArea.RENDER_DELAY)},com.inq.flash.client.chatskins.FormMgr.updateForm=function(t){var e=com.inq.ui.Container.getElementById("chatWindow").getElementsByTagName("FORM");if(e.length>0){var i=e[e.length-1];null!=i.id&&""!=i.id||(i.id="form_"+com.inq.flash.client.chatskins.FormMgr.randomNumber++,i.setAttribute("id",i.id)),null!=i.action&&""!=i.action||i.setAttribute("action","#"),com.inq.flash.client.chatskins.FormMgr.listen4ChangeElements(i.id)}t.syncForms()},com.inq.flash.client.chatskins.FormMgr.prototype.__class__=com.inq.flash.client.chatskins.FormMgr,com.inq.flash.client.chatskins.FormMgr.chatCanvas=null,com.inq.flash.client.chatskins.FormMgr.randomNumber=0,y(5306),com.inq.flash.client.chatskins.OpenerScript=function(){com.inq.flash.client.chatskins.OpenerScript.resetOpenersStopped(),this.reset()},$hxClasses["com.inq.flash.client.chatskins.OpenerScript"]=com.inq.flash.client.chatskins.OpenerScript,com.inq.flash.client.chatskins.OpenerScript.__name__=["com","inq","flash","client","chatskins","OpenerScript"],com.inq.flash.client.chatskins.OpenerScript.resetOpenersStopped=function(){com.inq.flash.client.chatskins.OpenerScript.bOpenersStopped=!1},com.inq.flash.client.chatskins.OpenerScript.prototype.openerScriptsLoaded=function(t){if(!(this.runOnce||com.inq.flash.client.chatskins.SkinControl.isChatEngaged()||com.inq.flash.client.chatskins.SkinControl.getApplicationController().isFirstMessageSent())){this.runOnce=!0;var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();"C2C"===com.inq.flash.client.control.FlashVars.get("launchType")&&e&&(Application.setFocusToBtnCloseOnOpen||com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()||e.setFocus());var i=this.scriptLoader.data;if(this.scriptLoader=null,null!=i&&""!=i){var n=Xml.parse(i).firstElement().elements(),o=new Array,a=0,s=com.inq.flash.client.chatskins.OpenerScript.getAdaIntroduction();for(null==s||Application.IsPersistent()||this.displayadaIntroduction(s);n.hasNext();){var l=n.next();"script"==l.getNodeName()&&(o[a++]=com.inq.utils.StringUtil.htmlDecode(l.firstChild().toString()))}null==this.scripts&&(this.scripts=[]);for(var r=0;r<o.length;r++)""!=o[r]&&(this.scripts[this.scriptCnt++]=o[r]);if(this.scriptCnt>0){var c=com.inq.flash.client.control.PersistenceManager.GetValue(OPENER_SCRIPT_COUNT,0);if(c){for(;c-- >0;)this.displayScriptLine();this.startOpenersTimer()}else this.displayScript()}}else this.displayDefaultOpenerScript()}},com.inq.flash.client.chatskins.OpenerScript.getAdaIntroduction=function(t){var e,i=com.inq.utils.Util.getConfig("adaIntroduction",null);return null!=i&&(i=i.replace("{accesskey}",(e="Alt",navigator.userAgent.toLowerCase().indexOf("firefox")>-1?e="Shift Alt":-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&-1==navigator.userAgent.indexOf("Android")&&navigator.platform.toUpperCase().indexOf("MAC")>=0&&(e="Control"),e))),i},com.inq.flash.client.chatskins.OpenerScript.prototype.openerScriptFailed=function(t){com.inq.flash.client.control.FlashPeer.logErrorToServer("Error while loading opener scripts."),com.inq.flash.client.chatskins.SkinControl.isChatEngaged()||com.inq.flash.client.chatskins.SkinControl.getApplicationController().isFirstMessageSent()||this.displayDefaultOpenerScript()},com.inq.flash.client.chatskins.OpenerScript.prototype.displayDefaultOpenerScript=function(){this.scripts[this.scriptCnt++]=this.DEFAULT_OPENER,this.displayScriptLine()},com.inq.flash.client.chatskins.OpenerScript.prototype.getOpenerScripts=function(){if(!com.inq.flash.client.control.FlashPeer.isCEAPIPostChatSurveyMode()){var t=com.inq.flash.client.control.FlashVars.getValue("openerID"),e=com.inq.flash.client.control.FlashVars.getValue("openerName"),i=com.inq.flash.client.control.FlashVars.getValue("siteID");if(!(t<=0&&!e||!i)){var n=Std.string(com.inq.flash.client.control.FlashVars.getValue("tagServerBaseURL"))+"tagserver/scripts/getScript?js=yes&siteID="+i;n+=e?"&scriptName="+Std.string(e):"&scriptID="+Std.string(t),this.scriptLoader=new com.inq.net.URLLoader;var o=new com.inq.net.URLRequest(n);this.scriptLoader.addEventListener(com.inq.events.Event.NETWORK_ERROR,$bind(this,this.openerScriptFailed)),this.scriptLoader.addEventListener(com.inq.events.Event.BAD_REQUEST,$bind(this,this.openerScriptFailed)),this.scriptLoader.addEventListener(com.inq.events.Event.COMPLETE,$bind(this,this.openerScriptsLoaded)),this.scriptLoader.load(o)}}},com.inq.flash.client.chatskins.OpenerScript.prototype.displayScriptLine=function(){var t=com.inq.flash.client.control.FlashVars.getValue("agentName");com.inq.utils.Util.isDefaultAgentAlias()&&(t=com.inq.utils.Util.getConfig("defaultAgentAlias","&nbsp;"));var e=this.scriptCur,i=this.scripts[this.scriptCur++],n=com.inq.flash.client.chatskins.SkinControl.checkForSpecialExpression(i);i=n.text,com.inq.flash.client.chatskins.SkinControl.AddOpenerToChatWindow(t,i,com.inq.flash.client.chatskins.ChatTextArea.AGENT,-1,n.expressionList),com.inq.flash.client.control.PersistenceManager.SetValue(OPENER_SCRIPT_COUNT,this.scriptCur),com.inq.flash.client.chatskins.SkinControl.getApplicationController().enqueueOpenerText(i,t,e)},com.inq.flash.client.chatskins.OpenerScript.prototype.displayScript=function(){this.stopOpenersTimer(),com.inq.flash.client.chatskins.OpenerScript.bOpenersStopped||(this.displayScriptLine(),this.startOpenersTimer())},com.inq.flash.client.chatskins.OpenerScript.prototype.displayadaIntroduction=function(t){com.inq.flash.client.chatskins.ChatTextArea.prototype.addBufferedAriaMsg("",t,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM)},com.inq.flash.client.chatskins.OpenerScript.prototype.startOpenersTimer=function(){!com.inq.flash.client.chatskins.OpenerScript.bOpenersStopped&&this.scriptCur<this.scriptCnt&&(this.intervalTimer=new com.inq.utils.Timer(this._delay),this.intervalTimer.run=$bind(this,this.displayScript))},com.inq.flash.client.chatskins.OpenerScript.prototype.stopOpenersTimer=function(){null!=this.intervalTimer&&(this.intervalTimer.stop(),this.intervalTimer=null)},com.inq.flash.client.chatskins.OpenerScript.prototype.stop=function(t){null==t&&(t=!1),t&&(com.inq.flash.client.chatskins.OpenerScript.bOpenersStopped=!0),null!=this.intervalTimer&&(null!=this.intervalTimer.stop&&this.intervalTimer.stop(),this.intervalTimer=null)},com.inq.flash.client.chatskins.OpenerScript.prototype.start=function(t){if(null==t&&(t=!1),t&&-1==com.inq.flash.client.control.PersistenceManager.GetValue(OPENER_SCRIPT_COUNT,-1))return this.reset(),void this.getOpenerScripts();this.getOpenerScripts()},com.inq.flash.client.chatskins.OpenerScript.prototype.setDelay=function(t){this._delay=t},com.inq.flash.client.chatskins.OpenerScript.prototype.reset=function(){this.runOnce=!1,this.scriptLoader=null,this.scripts=[],this.scriptCnt=0,this.scriptCur=0,this.intervalTimer=null,this._delay=1e3*Std.parseInt(""+Std.string(com.inq.flash.client.control.FlashVars.getValue("openerDelay")))},com.inq.flash.client.chatskins.OpenerScript.prototype.DEFAULT_OPENER="Hello",com.inq.flash.client.chatskins.OpenerScript.prototype.force=!1,com.inq.flash.client.chatskins.OpenerScript.prototype.runOnce=!1,com.inq.flash.client.chatskins.OpenerScript.prototype.intervalTimer=null,com.inq.flash.client.chatskins.OpenerScript.prototype._delay=null,com.inq.flash.client.chatskins.OpenerScript.prototype.scriptCur=0,com.inq.flash.client.chatskins.OpenerScript.prototype.scriptCnt=0,com.inq.flash.client.chatskins.OpenerScript.prototype.scripts=null,com.inq.flash.client.chatskins.OpenerScript.prototype.scriptLoader=null,com.inq.flash.client.chatskins.OpenerScript.prototype.__class__=com.inq.flash.client.chatskins.OpenerScript,com.inq.flash.client.chatskins.OpenerScript.bOpenersStopped=!1,com.inq.flash.client.chatskins.PrintMgr=function(){},$hxClasses["com.inq.flash.client.chatskins.PrintMgr"]=com.inq.flash.client.chatskins.PrintMgr,com.inq.flash.client.chatskins.PrintMgr.__name__=["com","inq","flash","client","chatskins","PrintMgr"],com.inq.flash.client.chatskins.PrintMgr.loaderSkin=null,com.inq.flash.client.chatskins.PrintMgr.PRINT_HEADER_ID="printHeader",com.inq.flash.client.chatskins.PrintMgr.PRINT_HEADER_CLASS_NAME="print-header",com.inq.flash.client.chatskins.PrintMgr._init=function(){return window,!0},com.inq.flash.client.chatskins.PrintMgr.init=function(){if(com.inq.flash.client.chatskins.SkinControl.isInApplication("btnPrint")){var t=/\bChrome\/(34|35)\b/.test(window.navigator.userAgent),e=Application.application.getButton("btnPrint");t?(e.setStyle("useHandCursor","false"),e.setStyle("toolTip","")):(e.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.PrintMgr.actionBtnPrintTranscript),e.setVisible(!0))}return!0},com.inq.flash.client.chatskins.PrintMgr.actionBtnPrintTranscript=function(t){com.inq.flash.client.chatskins.PrintMgr.printWindow=window.open("","inqPrint","left=0,top=0,height=600,width=400,status=0,toolbar=0");var e="<table>"+Std.string(com.inq.flash.client.chatskins.PrintMgr.getPrintHeader()+com.inq.flash.client.chatskins.SkinControl.cw.getHtmlText())+"</table>",i=document.body.parentNode.getElementsByTagName("LINK"),n=null!=i&&i.length>0&&i[0].href;null!=com.inq.flash.client.chatskins.PrintMgr.printWindow&&(com.inq.flash.client.chatskins.PrintMgr.printWindow.onload=function(){return!0},com.inq.flash.client.chatskins.PrintMgr.printWindow.document.open(),com.inq.flash.client.chatskins.PrintMgr.printWindow.document.write('<!DOCTYPE html><html><head><link type="text/css" rel="stylesheet" media="print" href="'+n+'" /><link type="text/css" rel="stylesheet" media="screen" href="'+n+'" /></head></html>'),com.inq.utils.Capabilities.isTablet()||com.inq.utils.Capabilities.isAndroid()?(com.inq.flash.client.chatskins.PrintMgr.printWindow.document.write("<body class='print' onload='printTranscript()'><br/><button onclick='window.close()' style='display: block;margin: 0 auto;padding: 5px'>Close</button></br>"+e+"<script>\n function printTranscript(){ \n window.print(); \n const isAndroidDevice = navigator.userAgent.toLowerCase().indexOf('android') > -1;\n if(!isAndroidDevice){\n setTimeout(function() {\n   window.close();\n  }, 4000);\n }\n } \n<\/script></body>"),com.inq.flash.client.chatskins.PrintMgr.printWindow.onunload=function(t){var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();com.inq.utils.Capabilities.isIpad()?window.setTimeout((function(){e.setFocus(!0),window.setTimeout((function(){e.setFocus(!0),window.setTimeout((function(){e.setFocus(!0)}),3e3)}),4e3)}),5e3):window.setTimeout((function(){e.setFocus(!0)}),50)}):com.inq.flash.client.chatskins.PrintMgr.printWindow.document.write("<body>"+e+'<script>\n setTimeout("window.print();window.close();",1000);\n<\/script></body>'),com.inq.flash.client.chatskins.PrintMgr.printWindow.document.close())},com.inq.flash.client.chatskins.PrintMgr.getPrintHeader=function(){var t=Application.application.getMxmlItem(com.inq.flash.client.chatskins.PrintMgr.PRINT_HEADER_ID);return t?'<tr><td class="'+com.inq.ui.Container.CLIENT_SPACE_PREFIX+com.inq.flash.client.chatskins.PrintMgr.PRINT_HEADER_CLASS_NAME+'">'+t._div.innerHTML+"</td></tr>":""},com.inq.flash.client.chatskins.PrintMgr.prototype.__class__=com.inq.flash.client.chatskins.PrintMgr,com.inq.flash.client.chatskins.PrintMgr._initialized=com.inq.flash.client.chatskins.PrintMgr._init(),com.inq.flash.client.chatskins.PrintMgr.printWindow=null,com.inq.flash.client.chatskins.ScrollMonitor=function(){},$hxClasses.registerClass(com.inq.flash.client.chatskins.ScrollMonitor,"com.inq.flash.client.chatskins.ScrollMonitor"),com.inq.flash.client.chatskins.ScrollMonitor.init=function(){com.inq.flash.client.chatskins.ScrollMonitor._initialZoom=com.inq.flash.client.chatskins.ScrollMonitor._zoomPrev=com.inq.utils.Capabilities.isMobile()?com.inq.utils.Capabilities.getZoom():0,com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure=com.inq.utils.Capabilities.isPhone()?com.inq.flash.client.chatskins.ScrollMonitor.whenPhoneScroll:com.inq.flash.client.chatskins.ScrollMonitor.whenScroll;var t=window.parent.document.documentElement;return""!==t.style.height&&(com.inq.flash.client.chatskins.ScrollMonitor.htmlHeightFromClient=t.style.height),!com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&(com.inq.flash.client.chatskins.ScrollMonitor._scrollTopPrev=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop(),com.inq.flash.client.chatskins.ScrollMonitor._scrollLeftPrev=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),com.inq.flash.client.chatskins.ScrollMonitor._vieportWidthPrev=window.top.innerWidth,com.inq.utils.Capabilities.setOrigViewPortHeight(),com.inq.flash.client.chatskins.ScrollMonitor.bindAll(),!0)},com.inq.flash.client.chatskins.ScrollMonitor.bindAll=function(){if(!com.inq.utils.Util.isFocusAndScrollMonitorsDisabled())if(com.inq.utils.Capabilities.isPhone()){var t=window.parent.innerHeight;com.inq.utils.Capabilities.isPhone()&&-1==com.inq.flash.client.chatskins.ScrollMonitor.sizeChangeEventTimer&&(com.inq.flash.client.chatskins.ScrollMonitor.sizeChangeEventTimer=window.setInterval((function(){com.inq.ui.Stage.getInstance().getVisible()&&!com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus()&&window.parent.innerHeight!=t&&(t=window.parent.innerHeight,window.parent.scrollBy(0,1),window.parent.scrollBy(0,-1))}),500)),com.inq.utils.Capabilities.UnbindListener(window.parent,"touchmove",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.UnbindListener(window.parent,"scroll",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.UnbindListener(window.parent,"orientationchange",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.BindListener(window.parent,"touchmove",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.BindListener(window.parent,"scroll",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.BindListener(window.parent,"orientationchange",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.isIphone()&&com.inq.flash.client.chatskins.SkinControl.isInApplication("zoomedScreenMsg")&&(com.inq.utils.Capabilities.UnbindListener(window.parent,"scroll",com.inq.stage.ViewportMgr.impl.toggleZoomedScreenMsg),com.inq.utils.Capabilities.BindListener(window.parent,"scroll",com.inq.stage.ViewportMgr.impl.toggleZoomedScreenMsg))}else com.inq.utils.Capabilities.BindListener(window.parent,"scroll",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.BindListener(window.parent,"resize",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.BindListener(window.parent,"orientationchange",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure)},com.inq.flash.client.chatskins.ScrollMonitor.unbindAll=function(){com.inq.utils.Util.isFocusAndScrollMonitorsDisabled()||(com.inq.utils.Capabilities.isPhone()&&-1!=com.inq.flash.client.chatskins.ScrollMonitor.sizeChangeEventTimer&&(clearInterval(com.inq.flash.client.chatskins.ScrollMonitor.sizeChangeEventTimer),com.inq.flash.client.chatskins.ScrollMonitor.sizeChangeEventTimer=-1),com.inq.utils.Capabilities.UnbindListener(window.parent,"touchmove",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.UnbindListener(window.parent,"scroll",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.UnbindListener(window.parent,"resize",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.UnbindListener(window.parent,"orientationchange",com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure),com.inq.utils.Capabilities.isIphone()&&(com.inq.flash.client.chatskins.SkinControl.isInApplication("zoomedScreenMsg")&&com.inq.utils.Capabilities.UnbindListener(window.parent,"scroll",com.inq.stage.ViewportMgr.impl.toggleZoomedScreenMsg),com.inq.flash.client.chatskins.ScrollMonitor.removeAutoHeight()))},com.inq.flash.client.chatskins.ScrollMonitor.Close=function(){com.inq.flash.client.chatskins.ScrollMonitor.unbindAll()},com.inq.flash.client.chatskins.ScrollMonitor.suspend=function(){com.inq.flash.client.chatskins.ScrollMonitor.suspendedLevel++},com.inq.flash.client.chatskins.ScrollMonitor.resume=function(){com.inq.flash.client.chatskins.ScrollMonitor.suspendedLevel--},com.inq.flash.client.chatskins.ScrollMonitor.isSuspended=function(){return!com.inq.utils.Capabilities.isIpad()&&com.inq.flash.client.chatskins.ScrollMonitor.suspendedLevel>0},com.inq.flash.client.chatskins.ScrollMonitor.ScrollToPoint=function(t){com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(t.x,t.y)},com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo=function(t,e){com.inq.flash.client.chatskins.ScrollMonitor.suspend();try{window.parent.scrollTo(t,e)}catch(t){haxe.Log.trace("Error: "+t)}window.setTimeout(com.inq.flash.client.chatskins.ScrollMonitor.resume,100)},com.inq.flash.client.chatskins.ScrollMonitor.ScrollBy=function(t,e){com.inq.flash.client.chatskins.ScrollMonitor.suspend();try{window.parent.scrollBy(t,e)}catch(t){haxe.Log.trace("Error: "+err)}window.setTimeout(com.inq.flash.client.chatskins.ScrollMonitor.resume,100)},com.inq.flash.client.chatskins.ScrollMonitor.ScrollToTop=function(){com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(0,0)},com.inq.flash.client.chatskins.ScrollMonitor.ScrollToNearTop=function(){com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(0,1)},com.inq.flash.client.chatskins.ScrollMonitor.ScrollToBottom=function(){var t=com.inq.utils.Capabilities.getViewport();com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(t.x,window.parent.document.documentElement.offsetHeight)},com.inq.flash.client.chatskins.ScrollMonitor.notify=function(){com.inq.flash.client.chatskins.ScrollMonitor.whenScroll(null)},com.inq.flash.client.chatskins.ScrollMonitor.whenScroll=function(t){if(com.inq.flash.client.chatskins.ScrollMonitor.isSuspended())return!0;t||(t=window.parent.Event);var e=!1,i=!1;if(com.inq.flash.client.chatskins.ScrollMonitor._iPadSafariOrChrome&&t&&t.type&&("orientationchange"==t.type||"resize"==t.type)&&(e=!0,i=!0),!com.inq.ui.Stage.getInstance().getVisible())return!0;if(!com.inq.flash.client.chatskins.ScrollMonitor._iPadSafariOrChrome){com.inq.flash.client.chatskins.ScrollMonitor.numWaiting++;var n=t.type;return window.setTimeout((function(){com.inq.flash.client.chatskins.ScrollMonitor.handleRapidScroll(n)}),25),!0}if(e)return com.inq.flash.client.chatskins.ScrollMonitor.moveChat(i,t.type),!0;-1!=com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll&&(window.clearTimeout(com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll),com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll=-1),-1==com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll&&(com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll=window.setTimeout((function(){com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll=-1,com.inq.flash.client.chatskins.ScrollMonitor.moveChat()}),e?1:500))},com.inq.flash.client.chatskins.ScrollMonitor.whenPhoneScroll=function(){if(com.inq.flash.client.control.MinimizeManager.onActionRestore&&!com.inq.addons.Salesforce.isStarted()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.setHasFocus(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.onScrollCallback(),com.inq.flash.client.chatskins.ScrollMonitor.isSuspended())return!0;if(!com.inq.ui.Stage.getInstance().getVisible())return com.inq.flash.client.chatskins.ScrollMonitor.Close(),!0;var t=Application.application.area.h,e=com.inq.utils.Capabilities.getViewport();com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus()||e.h==t||(Application.MoveSizeDiv2Stage(e.w,e.h,Application.application.area.x,Application.application.area.y),Application.Resize()),com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.ChatTextFocusMonitor.FixIPhoneFocusScroll()}),100),window.setTimeout(com.inq.flash.client.chatskins.ScrollMonitor.autoScrollOutOfViewElement,500)},com.inq.flash.client.chatskins.ScrollMonitor.autoScrollOutOfViewElement=function(){var t=parent.document.activeElement;if(com.inq.flash.client.chatskins.ChatTextFocusMonitor.getImpl().isInputElement(t)){var e=t.getBoundingClientRect(),i=com.inq.flash.client.chatskins.ChatTextFocusMonitor.calculateViewableArea(),n=com.inq.utils.Capabilities.getViewport();if(e.y>0&&e.y>i&&e.y<n.h){var o=com.inq.utils.Util.getScrollableContainer(t);o&&o.scrollBy(0,e.y-i/2)}}},com.inq.flash.client.chatskins.ScrollMonitor.whenPhoneChangedHeight=function(){var t=Application.application.area.h,e=com.inq.utils.Capabilities.getViewport();com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus()||e.h==t||(Application.MoveSizeDiv2Stage(e.w,e.h,Application.application.area.x,Application.application.area.y),Application.Resize())},com.inq.flash.client.chatskins.ScrollMonitor.waitForLull=function(){com.inq.flash.client.chatskins.ScrollMonitor.waitingForLull=!0},com.inq.flash.client.chatskins.ScrollMonitor.handleRapidScroll=function(t){com.inq.flash.client.chatskins.ScrollMonitor.isSuspended()||--com.inq.flash.client.chatskins.ScrollMonitor.numWaiting>0||(com.inq.flash.client.chatskins.ScrollMonitor.waitingForLull?(com.inq.flash.client.chatskins.ScrollMonitor.waitingForLull=!1,com.inq.flash.client.chatskins.ScrollMonitor.storeCurrentPosition()):com.inq.flash.client.chatskins.ScrollMonitor.moveChat(!1,t))},com.inq.flash.client.chatskins.ScrollMonitor.moveChat=function(t,e){var i,n,o,a;if(t||(t=!1),com.inq.utils.Capabilities.isMobile()){if(com.inq.utils.Capabilities.isIphone()&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid())com.inq.flash.client.chatskins.ChatTextFocusMonitor.resizeToViewport("ScrollMonitor.moveChat");else if(com.inq.utils.Capabilities.isTablet()){var s=com.inq.utils.Capabilities.getViewport(),l=com.inq.utils.Capabilities.getZoom();i=s.x-com.inq.flash.client.chatskins.ScrollMonitor._scrollLeftPrev,n=s.y-com.inq.flash.client.chatskins.ScrollMonitor._scrollTopPrev;var r=com.inq.flash.client.chatskins.ScrollMonitor._vieportWidthPrev;try{var c=com.inq.ui.Stage.getStageLeft(),h=com.inq.ui.Stage.getStageTop(),m=Application.application.getWidth(),u=Application.application.getHeight(),p=c+m,d=s.x+s.w,f=h+n+u,g=s.y+s.h,C=com.inq.flash.client.chatskins.ChatTextFocusMonitor.getFocusElement(),q=0,S=window.parent.document.body.clientWidth;if(C&&-1!=C.id.indexOf("email")&&(q=Application.application.getMxmlItem("emailInput").getOffsetTop()),!C||"INPUT"!=C.nodeName.toUpperCase()&&"TEXTAREA"!=C.nodeName.toUpperCase()||(q=com.inq.flash.client.chatskins.ScrollMonitor.getOffsetTopToStage(C)),e&&("orientationchange"==e||"resize"==e&&(com.inq.utils.Capabilities.isAndroid()||com.inq.utils.Capabilities.isChromeiOS10()||com.inq.utils.Capabilities.isChromeiOS11()||com.inq.utils.Capabilities.isChromeiOS12()||com.inq.utils.Capabilities.isChromeiOS13()||com.inq.utils.Capabilities.isChromeiOS14()))&&(com.inq.flash.client.chatskins.ScrollMonitor._initialZoom!=l||p>S||r!=s.w||h<s.y)?(com.inq.flash.client.chatskins.ScrollMonitor._initialZoom=l,o=com.inq.flash.client.chatskins.SkinControl,a=Application.calcChatLocation(o.getSkinWidth(),o.getSkinHeight()+o.getTitleBarHeight(),o.getSkinLeft(),o.getSkinTop(),o.getSkinLocation()),Application.initialXPos=a.x-s.x,Application.initialYPos=a.y-s.y,Application.initialXPos+m>S&&(Application.initialXPos-=Application.initialXPos+m-S),Application.initialXPos+m>window.top.innerWidth&&(Application.initialXPos-=Application.initialXPos+m-window.top.innerWidth)):("scroll"==e||"resize"==e||t)&&com.inq.utils.Capabilities.isAndroid()&&(r!=s.w||h<s.y)?s.x=0!=s.x?S-window.parent.document.body.scrollWidth:0:com.inq.utils.Capabilities.isAndroid()&&l<=com.inq.flash.client.chatskins.ScrollMonitor._initialZoom&&s.x+Application.initialXPos>d&&C&&C.blur(),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched&&com.inq.utils.Capabilities.isIpad()&&(g-=com.inq.flash.client.chatskins.ScrollMonitor.getKeyboardHeightOfIPad()),l<=com.inq.flash.client.chatskins.ScrollMonitor._initialZoom){var _=s.y+Application.initialYPos+u;com.inq.flash.client.chatskins.ScrollMonitor.storeCurrentPosition();var M=s.y+Application.initialYPos;return _>g&&(M-=_-g),s.y<=1&&M<0?M=0:M+q<s.y&&(M+=s.y-M-q),void Application.ScrollStageRelPage(s.x+Application.initialXPos,M)}if(l!=com.inq.flash.client.chatskins.ScrollMonitor._zoomPrev){var T=c,E=h;return p>d&&(T=c-(p-d)),h<s.y&&(E=s.y),h+u>g&&(E=h-(h+u-g)),c<s.x&&(T=s.x),T==c&&E==h||Application.ScrollStageRelPage(T,E),void com.inq.flash.client.chatskins.ScrollMonitor.storeCurrentPosition()}p>d&&(t=!0,i+=d-p),f>g&&(t=!0,n+=g-f)}catch(t){haxe.Log.trace("Error in ScrollMonitor moveChat: "+t,{fileName:"ScrollMonitor.js",lineNumber:656,className:"com.inq.flash.client.chatskins.ScrollMonitor",methodName:"moveChat"})}(t||l==com.inq.flash.client.chatskins.ScrollMonitor._zoomPrev)&&Application.ScrollStageInPage(i,n),com.inq.flash.client.chatskins.ScrollMonitor.storeCurrentPosition()}}else i=com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()-com.inq.flash.client.chatskins.ScrollMonitor._scrollLeftPrev,n=com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()-com.inq.flash.client.chatskins.ScrollMonitor._scrollTopPrev,Application.ScrollStage(i,n),com.inq.flash.client.chatskins.ScrollMonitor.storeCurrentPosition()},com.inq.flash.client.chatskins.ScrollMonitor.getKeyboardHeightOfIPad=function(){var t=com.inq.utils.Capabilities.getViewport(),e=com.inq.utils.Capabilities.isSafari()?com.inq.flash.client.chatskins.ScrollMonitor.SYSTEM_BAR_HEIGHT.safari:com.inq.flash.client.chatskins.ScrollMonitor.SYSTEM_BAR_HEIGHT.chrome,i=com.inq.utils.Capabilities.getScreenHeight()-e,n=(com.inq.utils.Capabilities.getOrientation()?com.inq.flash.client.chatskins.ScrollMonitor.IPAD_KEYBOARD_HEIGHT_PRESENTAGES.portrait:com.inq.flash.client.chatskins.ScrollMonitor.IPAD_KEYBOARD_HEIGHT_PRESENTAGES.landscape)/100*i-(i-t.h);return n>0?n:0},com.inq.flash.client.chatskins.ScrollMonitor.storeCurrentPosition=function(){var t=com.inq.utils.Capabilities.getViewport(),e=com.inq.utils.Capabilities.getZoom();com.inq.flash.client.chatskins.ScrollMonitor._scrollLeftPrev=t.x,com.inq.flash.client.chatskins.ScrollMonitor._scrollTopPrev=t.y,com.inq.flash.client.chatskins.ScrollMonitor._zoomPrev=e,com.inq.flash.client.chatskins.ScrollMonitor._vieportWidthPrev=t.w},com.inq.flash.client.chatskins.ScrollMonitor.getScrollWidth=function(t){t||(t=window.parent);var e=t.document,i=0;if(null==t.innerWidth)i=null!=e.documentElement&&0!=e.documentElement.clientWidth?e.documentElement.clientWidth:e.body.clientWidth;else{var n=t.innerWidth;n-=Application.hasRightScrollBar()?com.inq.flash.client.chatskins.ScrollMonitor.getScrollBarWidth():0;var o=e.body.clientWidth;0==(i=com.inq.utils.Capabilities.isTablet()||0==o?n:Math.min(o,n))&&(i=e.body.clientWidth)}return i},com.inq.flash.client.chatskins.ScrollMonitor.getScrollHeight=function(){var t=0,e=window.parent.document;if(null==window.parent.innerHeight)t=null!=e.documentElement&&0!=e.documentElement.clientHeight?e.documentElement.clientHeight:e.body.clientHeight;else{var i=window.parent.innerHeight;i-=Application.hasBottomScrollBar()?com.inq.flash.client.chatskins.ScrollMonitor.getScrollBarWidth():0;var n=e.body.clientHeight,o=e.body.scrollHeight;t=0,0==(t=0==n||o>=n?i:Math.min(n,i))&&(t=e.body.clientHeight)}return t},com.inq.flash.client.chatskins.ScrollMonitor.getScrollPoint=function(){return new com.inq.utils.Point(com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop())},com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop=function(){var t=window.parent,e=t.document;try{return null!=t.pageYOffset?t.pageYOffset:null!=e.documentElement&&null!=e.documentElement.scrollTop&&0!=e.documentElement.scrollTop?e.documentElement.scrollTop:e.body.scrollTop}catch(t){if(!js.Boot.__instanceof(t,String))throw t;haxe.Log.trace("error in ScrollMonitor getScrollTop: "+t,{className:"com.inq.flash.client.chatskins.ScrollMonitor",methodName:"getScrollTop"})}return 0},com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft=function(){try{var t=window.parent,e=t.document;return null!=t.pageXOffset?t.pageXOffset:null!=e.documentElement&&null!=e.documentElement.scrollLeft&&0!=e.documentElement.scrollLeft?e.documentElement.scrollLeft:e.body.scrollLeft}catch(t){if(!js.Boot.__instanceof(t,String))throw t;haxe.Log.trace("error in ScrollMonitor getScrollLeft: "+t,{fileName:"ScrollMonitor.hx",lineNumber:279,className:"com.inq.flash.client.chatskins.ScrollMonitor",methodName:"getScrollLeft"})}return 0},com.inq.flash.client.chatskins.ScrollMonitor.getScrollBarWidth=function(){var t,e,i,n;return(t=window.parent.document.createElement("div")).style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.width="100px",t.style.height="50px",t.style.overflow="hidden",(e=window.parent.document.createElement("div")).style.width="100%",e.style.height="200px",t.appendChild(e),window.parent.document.body.appendChild(t),i=e.offsetWidth,t.style.overflow="auto",n=e.offsetWidth,window.parent.document.body.removeChild(window.parent.document.body.lastChild),i-n},com.inq.flash.client.chatskins.ScrollMonitor.getOffsetTopToStage=function(t){var e=com.inq.ui.Stage.getStageElement(),i=0;return e&&e.getBoundingClientRect&&(i=Math.abs(e.getBoundingClientRect().top-t.getBoundingClientRect().top)),i},com.inq.flash.client.chatskins.ScrollMonitor.addAutoHeight=function(){var t=window.parent.document,e=t.body,i=t.documentElement;i.clientHeight<=e.clientHeight&&(i.style.height="auto")},com.inq.flash.client.chatskins.ScrollMonitor.removeAutoHeight=function(){var t=window.parent.document.documentElement;null!=com.inq.flash.client.chatskins.ScrollMonitor.htmlHeightFromClient?(t.style.height=com.inq.flash.client.chatskins.ScrollMonitor.htmlHeightFromClient,com.inq.flash.client.chatskins.ScrollMonitor.htmlHeightFromClient=null):t.style.height=""},com.inq.flash.client.chatskins.ScrollMonitor.prototype.__class__=com.inq.flash.client.chatskins.ScrollMonitor,com.inq.flash.client.chatskins.ScrollMonitor.numWaiting=0,com.inq.flash.client.chatskins.ScrollMonitor.sizeChangeEventTimer=-1,com.inq.flash.client.chatskins.ScrollMonitor.suspendedLevel=0,com.inq.flash.client.chatskins.ScrollMonitor._scrollTopPrev=0,com.inq.flash.client.chatskins.ScrollMonitor._scrollLeftPrev=0,com.inq.flash.client.chatskins.ScrollMonitor._vieportWidthPrev=0,com.inq.flash.client.chatskins.ScrollMonitor._zoomPrev=0,com.inq.flash.client.chatskins.ScrollMonitor._initialZoom=0,com.inq.flash.client.chatskins.ScrollMonitor._timerIdScroll=-1,com.inq.flash.client.chatskins.ScrollMonitor.whenScrollClosure=null,com.inq.flash.client.chatskins.ScrollMonitor.waitingForLull=!1,com.inq.flash.client.chatskins.ScrollMonitor._iPadSafariOrChrome=/(iPad).*AppleWebKit?.*Version\/(6|7|8|9)/i.test(navigator.userAgent)||/(iPad).*AppleWebKit?.*CriOS/i.test(navigator.userAgent),com.inq.flash.client.chatskins.ScrollMonitor.SYSTEM_BAR_HEIGHT={safari:80,chrome:125},com.inq.flash.client.chatskins.ScrollMonitor.IPAD_KEYBOARD_HEIGHT_PRESENTAGES={portrait:33,landscape:65},com.inq.flash.client.chatskins.ScrollMonitor.htmlHeightFromClient=null,com.inq.flash.client.chatskins.VideoPlayerBase=function(){this._completed=!1,this.state=this.STATE.NOT_INITIALIZED,this.viewer=null,this.viewerConsN=""},com.inq.flash.client.chatskins.VideoPlayerBase.init=function(t){return com.inq.flash.client.chatskins.VideoPlayerBase.getImpl(t)},com.inq.flash.client.chatskins.VideoPlayerBase.getImpl=function(t){var e=null;return"AdobeS7"===t&&(e=new com.inq.flash.client.chatskins.VideoPlayerScene7),e},com.inq.flash.client.chatskins.VideoPlayerBase.loadExternalScript=function(t,e){var i=e.pInst,n=i.isDivC(),o=window.top;if(null!=i){var a=i.viewerConsN in window?window:i.viewerConsN in o?o:null;if(a&&a[i.viewerConsN][i.viewerName])e.loadedScript();else{var s=(n?o.document:document).scripts[0],l=(n?o.document:document).createElement("script");l.onload=function(){e.loadedScript()},l.onreadystatechange=function(){"loaded"==l.readyState&&e.loadedScript()},l.src=t,s.parentElement.insertBefore(l,s)}}},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.play=function(){this.isPaused()?this.resume():this.isInitialized()||this.initPlay()},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.pause=function(){},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.close=function(){},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.sendToAgent=function(t,e){com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendVideoStatusMessage(t,this.name,e)},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.isDivC=function(){return com.inq.utils.Util.getConfig("divSkin",!1)||com.inq.ui.SkinLoader.skinInClient},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.reset=function(){this.viewer=null,this.state=this.STATE.NOT_INITIALIZED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.initialized=function(){this.state=this.STATE.INITIALIZED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.isInitialized=function(){return this.state!==this.STATE.NOT_INITIALIZED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.loaded=function(){this.state=this.STATE.LOADED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.isLoaded=function(){return this.isInitialized()&&this.state!==this.STATE.INITIALIZED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.paused=function(){this.state=this.STATE.PAUSED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.isPaused=function(){return this.state===this.STATE.PAUSED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.played=function(){this.state=this.STATE.PLAYING},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.isPlaying=function(){return this.state===this.STATE.PLAYING},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.completed=function(){this._completed=!0,this.state=this.STATE.COMPLETED},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.isCompleted=function(){return this._completed||this.state===this.STATE.COMPLETED},com.inq.flash.client.chatskins.VideoPlayerBase.DISPLAY="Video player is displayed.",com.inq.flash.client.chatskins.VideoPlayerBase.PLAY="The user is playing the video: ",com.inq.flash.client.chatskins.VideoPlayerBase.PAUSE="The user has paused the video.",com.inq.flash.client.chatskins.VideoPlayerBase.RESUME="The user has resumed the video ",com.inq.flash.client.chatskins.VideoPlayerBase.CLOSE="The user has closed the video.",com.inq.flash.client.chatskins.VideoPlayerBase.SEEK="The user has seeked the video ",com.inq.flash.client.chatskins.VideoPlayerBase.HIDDEN="Video player is hidden.",com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE={},com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE.NOT_INITIALIZED="-1",com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE.INITIALIZED="0",com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE.LOADED="1",com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE.PAUSED="2",com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE.PLAYING="3",com.inq.flash.client.chatskins.VideoPlayerBase.prototype.STATE.COMPLETED="4",com.inq.flash.client.chatskins.VideoPlayerScene7=function(){com.inq.flash.client.chatskins.VideoPlayerBase.call(this),this.viewerConsN="s7viewers",this.viewerName="VideoViewer"},$hxClasses.extend(com.inq.flash.client.chatskins.VideoPlayerBase,com.inq.flash.client.chatskins.VideoPlayerScene7,"com.inq.flash.client.chatskins.VideoPlayerScene7"),com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.setup=function(t,e){var i=t.getStyle("vidSerUrl")||l(1),n=t.getStyle("serUrl")||l(2),o=t.getStyle("asset")||l(3),a=window.top;if(!(null==i||null==n||null==o||!1 in window&&!1 in a)){t._div.innerHTML="<div id='s7viewer' style='position:relative'>";var s={containerId:"s7viewer",params:{videoserverurl:i,serverUrl:n,asset:o,autoplay:l(4)?"1":"0"}};this.isDivC()?this.viewer=new a.s7viewers.VideoViewer(s):this.viewer=new s7viewers.VideoViewer(s),this.container=t,this.name=o}function l(t){if(e&&e.length>t)return e[t]}},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.registerEventH=function(){var t=this;this.viewer.setHandlers({initComplete:function(){},trackEvent:function(e,i,n,o,a){t.eHandler(a)}})},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.initPlay=function(){this.viewer&&(this.initialized(),this.registerEventH(),this.viewer.init())},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.close=function(){this.clear(),this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.HIDDEN,"videoHidden")},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.abandon=function(t){this.isCompleted()||this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.CLOSE,"videoAbandoned")},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.resume=function(){this.initPlay()},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.eHandler=function(t){try{var e=t.split(","),i=e[e.length-1];switch(e[0]){case"LOAD":this.onLoad(i);break;case"PAUSE":this.onPause();break;case"PLAY":this.onPlay(i);break;case"METADATA":this.onMetadata(e);break;case"STOP":this.onStop()}}catch(t){}},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.clear=function(){this.reset(),this.container&&(this.container._div.innerHTML="")},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.onLoad=function(t){this.isLoaded()||(this.name=t,this.loaded(),this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.DISPLAY,"videoDisplayed"))},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.onPause=function(){this.isPaused()||(this.isPlaying()&&this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.PAUSE,"videoPaused"),this.paused())},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.onPlay=function(t){if(!this.isPlaying()){var e=parseInt(t);isNaN(e)||e<100?this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.PLAY+this.name+".","videoPlayed"):this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.RESUME+"from "+e/1e3+" S.","videoResumed"),this.played()}},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.onMetadata=function(t){var e=parseInt(t[t.length-1]);"SEEK"===t[1]&&this.sendToAgent(com.inq.flash.client.chatskins.VideoPlayerBase.SEEK+"to "+e/1e3+" S.","videoSeeked")},com.inq.flash.client.chatskins.VideoPlayerScene7.prototype.onStop=function(){this.completed()},com.inq.aria.AriaUtil={},com.inq.aria.AriaUtil.hideTag=function(t,e){if(t&&"function"==typeof t.getElementsByTagName&&e){for(var i=t.getElementsByTagName(e),n=0;n<i.length;n++)try{i[n].setAttribute("tabindex","-1"),i[n].setAttribute("aria-hidden",!0)}catch(t){}i=null}},com.inq.aria.ModalWindow={},com.inq.aria.ModalWindow.isOn=!1,com.inq.aria.ModalWindow.innteractiveSelectors=["iframe","a","textarea","button","select","[tabindex]"],com.inq.aria.ModalWindow.blockSelectors=["iframe","div"],com.inq.aria.ModalWindow.ariaDivsHidden=[],com.inq.aria.ModalWindow.ariaDivsChat=[],com.inq.aria.ModalWindow.ariaTabObjs=[],com.inq.aria.ModalWindow.ariaElementsWithTabIndex=[],com.inq.aria.ModalWindow.buildModal=function(t){t&&(com.inq.aria.ModalWindow._processInteractiveElements(t),com.inq.aria.ModalWindow._processBlockElements(t),com.inq.aria.ModalWindow.isOn=!0)},com.inq.aria.ModalWindow._processInteractiveElements=function(t){for(var e,i=t.querySelectorAll(com.inq.aria.ModalWindow.innteractiveSelectors.toString()),n=0;n<i.length;n++)if(e=i[n],!com.inq.aria.ModalWindow.isChatElement(e)){var o=e.getAttribute("tabindex");"-1"!==o&&(o?com.inq.aria.ModalWindow.ariaElementsWithTabIndex.push({element:e,tabindex:o}):com.inq.aria.ModalWindow.ariaTabObjs.push(e),e.setAttribute("tabindex","-1"))}},com.inq.aria.ModalWindow._processBlockElements=function(t){for(var e,i=t.querySelectorAll(com.inq.aria.ModalWindow.blockSelectors.toString()),n=0;n<i.length;n++)e=i[n],com.inq.aria.ModalWindow.isChatElement(e)?"div"===e.tagName.toLowerCase()&&com.inq.aria.ModalWindow.ariaDivsChat.push(e):e.hasAttribute("aria-hidden")||(com.inq.aria.ModalWindow.ariaDivsHidden.push(e),e.setAttribute("aria-hidden","true"))},com.inq.aria.ModalWindow.isChatElement=function(t){return"inqTitleBar"!==t.id&&(t.id.startsWith("tc")||t.id.startsWith("inq")||t.id.startsWith("nuanMessaging"))},com.inq.aria.ModalWindow.buildModalWindow=function(){try{var t=top.document.body;com.inq.aria.ModalWindow.buildModal(t),com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getVisible()&&com.inq.flash.client.chatskins.EmailMgr.modalEmailCanvas()}catch(t){haxe.Log.trace("Failed to build ModalWindow",{fileName:"ModalWindow.js",lineNumber:137,className:"com.inq.aria.ModalWindow",methodName:"buildModalWindow"})}},com.inq.aria.ModalWindow.hideModalWindow=function(t){var e,i,n,o;for(e=0,i=com.inq.aria.ModalWindow.ariaDivsHidden.length;e<i;e++)(n=com.inq.aria.ModalWindow.ariaDivsHidden[e]).setAttribute("aria-hidden",t.toString());for(e=0,i=com.inq.aria.ModalWindow.ariaTabObjs.length;e<i;e++)n=com.inq.aria.ModalWindow.ariaTabObjs[e],t?n.setAttribute("tabindex","-1"):n.removeAttribute("tabindex");for(e=0,i=com.inq.aria.ModalWindow.ariaElementsWithTabIndex.length;e<i;e++)o=com.inq.aria.ModalWindow.ariaElementsWithTabIndex[e],t?o.element.setAttribute("tabindex","-1"):o.element.setAttribute("tabindex",o.tabindex)},com.inq.aria.ModalWindow.removeModalWindow=function(){if(com.inq.aria.ModalWindow.isOn){var t,e;for(t=0,e=com.inq.aria.ModalWindow.ariaTabObjs.length;t<e;t++)com.inq.aria.ModalWindow.ariaTabObjs[t].removeAttribute("tabindex");for(t=0,e=com.inq.aria.ModalWindow.ariaDivsHidden.length;t<e;t++)com.inq.aria.ModalWindow.ariaDivsHidden[t].removeAttribute("aria-hidden");for(t=0,e=com.inq.aria.ModalWindow.ariaElementsWithTabIndex.length;t<e;t++){var i=com.inq.aria.ModalWindow.ariaElementsWithTabIndex[t];i.element.setAttribute("tabindex",i.tabindex)}com.inq.aria.ModalWindow.cleanUp()}},com.inq.aria.ModalWindow.setCircularModalWindow=function(t,e,i){try{if(com.inq.utils.Capabilities.isMobile())return!1;if(com.inq.aria.ModalWindow.removeCircularModalWindow(),com.inq.aria.ModalWindow.firstEl=e,com.inq.aria.ModalWindow.lastEl=i,!t||!com.inq.aria.ModalWindow.firstEl||!com.inq.aria.ModalWindow.lastEl)return!1;com.inq.aria.ModalWindow.frontBlock=document.createElement("div"),com.inq.aria.ModalWindow.backBlock=document.createElement("div"),com.inq.aria.ModalWindow.frontBlock.setAttribute("tabIndex","0"),com.inq.aria.ModalWindow.frontBlock.style.position="absolute",com.inq.aria.ModalWindow.frontBlock.style.top=0,com.inq.aria.ModalWindow.backBlock.setAttribute("tabIndex","0"),com.inq.aria.ModalWindow.backBlock.style.position="absolute",com.inq.aria.ModalWindow.backBlock.style.top=0,com.inq.aria.ModalWindow.frontBlock.onfocus=function(t){com.inq.aria.ModalWindow.lastEl&&com.inq.aria.ModalWindow.lastEl.focus&&com.inq.aria.ModalWindow.lastEl.focus()},com.inq.aria.ModalWindow.backBlock.onfocus=function(t){com.inq.aria.ModalWindow.firstEl&&com.inq.aria.ModalWindow.firstEl.focus&&com.inq.aria.ModalWindow.firstEl.focus()},t.insertBefore(com.inq.aria.ModalWindow.frontBlock,t.firstChild),t.appendChild(com.inq.aria.ModalWindow.backBlock)}catch(t){return!1}return!0},com.inq.aria.ModalWindow.removeCircularModalWindow=function(){com.inq.aria.ModalWindow.firstEl=null,com.inq.aria.ModalWindow.lastEl=null,com.inq.aria.ModalWindow.frontBlock&&(com.inq.aria.ModalWindow.frontBlock.parentElement.removeChild(com.inq.aria.ModalWindow.frontBlock),com.inq.aria.ModalWindow.frontBlock=null),com.inq.aria.ModalWindow.backBlock&&(com.inq.aria.ModalWindow.backBlock.parentElement.removeChild(com.inq.aria.ModalWindow.backBlock),com.inq.aria.ModalWindow.backBlock=null)},com.inq.aria.ModalWindow.modalEmailCanvas=function(){var t,e,i,n,o,a;if(!1===com.inq.aria.ModalWindow.isOn&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid())return!1;try{if(com.inq.aria.ModalWindow.ariaDivsChat&&null==com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden)for(t=com.inq.aria.ModalWindow.ariaDivsChat,com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden=[],com.inq.flash.client.chatskins.EmailMgr.ariaInputsHidden=[],com.inq.flash.client.chatskins.EmailMgr.ariaTextAreasHidden=[],n=0;n<t.length;n++)if(void 0!==t[n]&&"tcChat_emailInput"!==t[n].id&&"tcChat_btnSendEmail"!==t[n].id&&"tcChat_btnCancelEmail"!==t[n].id&&"tcChat_btnCloseEmail"!==t[n].id&&"tcChat_emailFormInput"!==t[n].id&&"tcChat_email"!==t[n].id&&"tcChat_Skin"!==t[n].id&&"tcChat_tc-aria-readme"!==t[n].id&&"tcChat_EmailTitle"!==t[n].id&&"tcChat_SuccessSend"!==t[n].id&&"tcChat_FailedSend"!==t[n].id&&"tcChat_EmailDescription"!==t[n].id&&"tcChat_enterEmail"!==t[n].id&&"nuanMessagingFrame"!==t[n].id&&"true"!=t[n].getAttribute("aria-hidden"))t[n].setAttribute("aria-hidden",!0),com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden.push(t[n]);else if(void 0!==t[n]&&"tcChat_Skin"===t[n].id){for(e=t[n].getElementsByTagName("input"),o=0;o<e.length;o++)void 0!==e[o]&&"tcChat_btnSendEmail_img"!=e[o].id&&"tcChat_btnCancelEmail_img"!=e[o].id&&"tcChat_btnCloseEmail_img"!=e[o].id&&"-1"!=e[o].getAttribute("tabindex")&&(e[o].setAttribute("tabindex","-1"),com.inq.flash.client.chatskins.EmailMgr.ariaInputsHidden.push(e[o]));for(i=t[n].getElementsByTagName("textarea"),a=0;a<i.length;a++)void 0!==i[a]&&"tcChat_emailInput_input"!=i[a].id&&"-1"!=i[a].getAttribute("tabindex")&&(i[a].setAttribute("tabindex","-1"),com.inq.flash.client.chatskins.EmailMgr.ariaTextAreasHidden.push(i[a]))}if(!com.inq.utils.Capabilities.isMobile())try{com.inq.aria.ModalWindow.setCircularModalWindow(com.inq.flash.client.chatskins.EmailMgr.emailCanvas._div,Application.application.getTextInput("emailInput")._input,Application.application.getButton("btnCloseEmail")._img)}catch(t){}}catch(t){return!1}return!0},com.inq.aria.ModalWindow.unModalEmailCanvas=function(){if(null!==com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden){for(var t=com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden,e=0;e<t.length;e++)try{t[e].setAttribute("aria-hidden","")}catch(t){}if(com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden=null,com.inq.flash.client.chatskins.EmailMgr.ariaInputsHidden)for(var i=com.inq.flash.client.chatskins.EmailMgr.ariaInputsHidden,n=0;n<i.length;n++)try{i[n].removeAttribute("tabindex")}catch(t){}if(com.inq.flash.client.chatskins.EmailMgr.ariaInputsHidden=null,com.inq.flash.client.chatskins.EmailMgr.ariaTextAreasHidden)for(var o=com.inq.flash.client.chatskins.EmailMgr.ariaTextAreasHidden,a=0;a<o.length;a++)try{o[a].removeAttribute("tabindex")}catch(t){}com.inq.flash.client.chatskins.EmailMgr.ariaTextAreasHidden=null,com.inq.aria.ModalWindow.isCircularTabbingEnabled&&com.inq.aria.ModalWindow.setCircularModalWindow()}},com.inq.aria.ModalWindow.setCircularApplication=function(){var t=Application.application.getPrimaryObject(),e=com.inq.aria.ModalWindow.getTabbingElementsList(t),i=e[0],n=e[e.length-1];return com.inq.aria.ModalWindow.setCircularModalWindow(t,i,n)},com.inq.aria.ModalWindow.getTabbingElementsList=function(t){var e,i=[];if(t.querySelectorAll){e=t.querySelectorAll("input, textarea, select, button, a, [tabindex]");for(var n=0;n<e.length;n++)0==e[n].offsetHeight||e[n].hasAttribute("tabindex")&&"-1"==e[n].getAttribute("tabindex")||i.push(e[n])}return i},com.inq.aria.ModalWindow.cleanUp=function(){com.inq.aria.ModalWindow.isOn=!1,com.inq.flash.client.chatskins.EmailMgr.ariaDivsHidden=null,com.inq.flash.client.chatskins.EmailMgr.ariaInputsHidden=null,com.inq.flash.client.chatskins.EmailMgr.ariaTextAreasHidden=null,com.inq.aria.ModalWindow.ariaDivsHidden.length=0,com.inq.aria.ModalWindow.ariaDivsChat.length=0,com.inq.aria.ModalWindow.ariaTabObjs.length=0,com.inq.aria.ModalWindow.ariaElementsWithTabIndex.length=0},y(5306),com.inq.aria.AriaMsg={},com.inq.aria.AriaMsg.addAriaMsg=function(t,e,i){var n=com.inq.flash.client.chatskins.ChatTextArea;if(void 0===e&&(e=n.SYSTEM),void 0===i&&(i=!1),com.inq.aria.AriaMsg.ariaMessage=Application.application.getMxmlItem("tc-aria-readme")||Application.application.getMxmlItem("tcChat_tc-aria-readme"),com.inq.aria.AriaMsg.ariaMessageAndroidProxy=Application.application.getMxmlItem("tc-readme-proxy")||Application.application.getMxmlItem("tcChat_tc-readme-proxy"),null!=com.inq.aria.AriaMsg.ariaMessage&&void 0!==com.inq.aria.AriaMsg.ariaMessage&&(t=com.inq.aria.AriaMsg.formatMsg(t),t=com.inq.aria.AriaMsg.removeHTMLMarkup(t),(e==n.AGENT||e==n.CUSTOMER||e==n.SYSTEM||e==n.SYSTEM_STATUS||e==n.SYSTEM_INFO)&&(com.inq.aria.AriaMsg.addAriaMsgLast!==t||i))){com.inq.utils.Capabilities.isAndroid()&&(com.inq.aria.AriaMsg.ariaMessage._div.innerHTML=" ",null!=com.inq.aria.AriaMsg.ariaMessageAndroidProxy&&(com.inq.aria.AriaMsg.ariaMessageAndroidProxy._div.innerHTML=t));var o=com.inq.aria.AriaMsg.ariaMessage._div;com.inq.flash.client.control.MinimizeManager.minimized&&com.inq.flash.client.control.MinimizeManager.ariaMegMini&&(o=com.inq.flash.client.control.MinimizeManager.ariaMegMini._div),t.trim().length>0&&(com.inq.utils.Capabilities.isMobile()?(o.style.display="block",a(o,t),window.setTimeout((function(){o.style.display="none"}),500)):a(o,t),com.inq.aria.AriaMsg.addAriaMsgLast=t)}function a(t,e){var i=document.createElement("p");i.innerHTML=e,t.innerHTML="",t.appendChild(i)}},com.inq.aria.AriaMsg.formatMsg=function(t){return com.inq.utils.StringUtil.isEmptyString(t)||(t=com.inq.aria.AriaMsg.removeATags(t),com.inq.utils.Capabilities.isAndroid()?t=com.inq.aria.AriaMsg.removeHTMLMarkup(t):(t=com.inq.aria.AriaMsg.removeIdAttributes(t),(com.inq.utils.Capabilities.isIpad()||com.inq.utils.Capabilities.isIphone())&&(t=com.inq.aria.AriaMsg.wrapMsg(t)))),t},com.inq.aria.AriaMsg.removeATags=function(t){return/<\/a/.test(t)&&(t=e(t,/<\/a>/,com.inq.utils.Util.getConfig("addATagTypeLabel",!1)?" link":""),t=e(t,/<a[^>]*>/,"")),t;function e(t,e,i){return t.split(e).join(i)}},com.inq.aria.AriaMsg.removeIdAttributes=function(t){return t.replace(/id=("|').+?("|')/gi,"")},com.inq.aria.AriaMsg.removeHTMLMarkup=function(t){return t.replace(/(?: )?<.*?>(?: )?/gi," ").trim()},com.inq.aria.AriaMsg.wrapMsg=function(t){return"<div>"+t+"</div>"},com.inq.aria.AriaMsg.clearAriaMsg=function(){com.inq.aria.AriaMsg.addAriaMsg("")},com.inq.aria.AriaMsg.firstBufferedAriaMsgDelay=Application.IsPersistent()?25e3:4*((com.inq.utils.Capabilities.isSafari()||com.inq.utils.Capabilities.isIOSWebView())&&com.inq.utils.Capabilities.isMobile()?"Double tap to start editing mode":"Type your message here").length*60,com.inq.aria.AriaMsg.addBufferedAriaMsg=function(t,e,i,n){var o,a={id:t,msg:e,msgType:i,f:n};com.inq.aria.AriaMsg.ariaMessages.push(a),1==com.inq.aria.AriaMsg.ariaMessages.length&&(o=com.inq.aria.AriaMsg.firstBufferedAriaMsgDelay,com.inq.aria.AriaMsg.firstBufferedAriaMsgDelay=0,com.inq.aria.AriaMsg.addBufferedAriaMsgTimerID=window.setTimeout(com.inq.aria.AriaMsg.sendAriaMsgAndCheckNext,o),com.inq.ui.Stage.getStageElement().onclick=com.inq.aria.AriaMsg.clearTimer,com.inq.ui.Stage.getStageElement().onkeyup=com.inq.aria.AriaMsg.clearTimer)},com.inq.aria.AriaMsg.sendAriaMsgAndCheckNext=function(t){var e=com.inq.aria.AriaMsg.ariaMessages.shift();com.inq.aria.AriaMsg.addAriaMsg(e.msg,e.msgType,e.f),0<com.inq.aria.AriaMsg.ariaMessages.length?com.inq.aria.AriaMsg.addBufferedAriaMsgTimerID=window.setTimeout(com.inq.aria.AriaMsg.sendAriaMsgAndCheckNext,90*e.msg.length):com.inq.aria.AriaMsg.clearTimer()},com.inq.aria.AriaMsg.clearTimer=function(){com.inq.aria.AriaMsg.addBufferedAriaMsgTimerID>=0&&window.clearTimeout(com.inq.aria.AriaMsg.addBufferedAriaMsgTimerID),com.inq.aria.AriaMsg.ariaMessages=[],com.inq.ui.Stage.getStageElement()&&(com.inq.ui.Stage.getStageElement().onclick=null,com.inq.ui.Stage.getStageElement().onkeyup=null)},com.inq.aria.AriaMsg.onChatShown=function(){try{var t=Application.application.getMxmlItem("ChatWith");t&&com.inq.aria.AriaMsg.addAriaMsg(t.getText(),com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0)}catch(t){}},com.inq.aria.AriaMsg.disableScreenReaderForChat=function(){for(var t,e=["tcChat_titleBar","tcChat_chat"],i=0;i<e.length;i++)(t=com.inq.ui.Container._getElementById(e[i],parent.document))&&(t.hasAttribute("aria-hidden")&&t.setAttribute("orig-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))},com.inq.aria.AriaMsg.restoreScreenReaderForChat=function(){for(var t,e=["tcChat_titleBar","tcChat_chat"],i=0;i<e.length;i++)(t=com.inq.ui.Container._getElementByI(e[i],parent.document))&&(t.hasAttribute("orig-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("orig-aria-hidden")),t.removeAttribute("orig-aria-hidden")):t.hasAttribute("aria-hidden")&&t.removeAttribute("aria-hidden"))},com.inq.aria.AriaMsg.addAriaMsgLast="",com.inq.aria.AriaMsg.ariaMessages=[],com.inq.aria.AriaMsg.addBufferedAriaMsgTimerID=-1;com.inq.flash.client.chatskins.AccessibilityHelp=function(){this.reset()},$hxClasses.registerClass(com.inq.flash.client.chatskins.AccessibilityHelp,"com.inq.flash.client.chatskins.AccessibilityHelp"),com.inq.flash.client.chatskins.AccessibilityHelp.prototype.reset=function(){this.btnSendOriginalTitle="",this.isAccessibilityHelpOnBtnSend=!1,this.isButtonHasFirstFocus=!1,this.isAddHelpOnBtnSendCalled=!1,this.isAccessibilityHelpUsed=!1},com.inq.flash.client.chatskins.AccessibilityHelp.prototype.applyHelpOnBtnSend=function(){this.isAddHelpOnBtnSendCalled?this.restoreHelpOnBtnSend():this.addHelpOnBtnSend()},com.inq.flash.client.chatskins.AccessibilityHelp.prototype.addHelpOnBtnSend=function(){if(!com.inq.flash.client.chatskins.SkinControl.initialFocusClaimedBy){var t=com.inq.flash.client.chatskins.SkinControl.getSendButton(),e=com.inq.flash.client.chatskins.AccessibilityHelp;e.removeHelpOnBtnSendCallback=this.removeHelpOnBtnSend.bind(this),this.isAddHelpOnBtnSendCalled||(this.isAddHelpOnBtnSendCalled=!0,t&&t._img&&(!this.btnSendOriginalTitle&&t._img.hasAttribute("title")&&(this.btnSendOriginalTitle=t._img.getAttribute("title")),t._img.setAttribute("title","Start Chat. Double tap to start editing mode"),t._img.addEventListener("blur",e.removeHelpOnBtnSendCallback,!1),this.setFocusOnBtnSend(),this.isAccessibilityHelpOnBtnSend=!0,this.isButtonHasFirstFocus=!0))}},com.inq.flash.client.chatskins.AccessibilityHelp.prototype.restoreHelpOnBtnSend=function(){this.isAccessibilityHelpOnBtnSend&&!this.isAccessibilityHelpUsed&&this.setFocusOnBtnSend()},com.inq.flash.client.chatskins.AccessibilityHelp.prototype.setFocusOnBtnSend=function(){var t=com.inq.flash.client.chatskins.SkinControl.getSendButton();t&&(com.inq.utils.Capabilities.isPhone()?setTimeout((function(){t.setImageFocus()}),100):t.setImageFocus())},com.inq.flash.client.chatskins.AccessibilityHelp.prototype.removeHelpOnBtnSend=function(){if(this.isAccessibilityHelpOnBtnSend){var t=com.inq.flash.client.chatskins.AccessibilityHelp,e=com.inq.flash.client.chatskins.SkinControl.getSendButton();this.btnSendOriginalTitle?e._img.setAttribute("title",this.btnSendOriginalTitle):e._img.removeAttribute("title"),e._img.removeEventListener("blur",t.removeHelpOnBtnSendCallback,!1),this.isAccessibilityHelpOnBtnSend=!1,this.isAccessibilityHelpUsed=!0,t.removeHelpOnBtnSendCallback=null}},com.inq.flash.client.chatskins.AccessibilityHelp.createInstance=function(){return new com.inq.flash.client.chatskins.AccessibilityHelp},com.inq.flash.client.chatskins.AccessibilityHelp.prototype.btnSendOriginalTitle="",com.inq.flash.client.chatskins.AccessibilityHelp.prototype.isAccessibilityHelpOnBtnSend=!1,com.inq.flash.client.chatskins.AccessibilityHelp.prototype.isButtonHasFirstFocus=!1,com.inq.flash.client.chatskins.AccessibilityHelp.prototype.isAddHelpOnBtnSendCalled=!1,com.inq.flash.client.chatskins.AccessibilityHelp.prototype.isAccessibilityHelpUsed=!1,com.inq.flash.client.chatskins.AccessibilityHelp.removeHelpOnBtnSendCallback=null,function(){function t(){var t=Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"callerName"),e=StringTools.trim(t._getInput()),i=new EReg("(?=[\\d\\0\\n\\f\\r\\t\\v])(?=[^-])","g");return e=i.replace(e," "),e=(i=new EReg("\\s+","g")).replace(e," "),(i=new EReg("\\s+-|-\\s+","g")).replace(e,"-")}y(5306),y(1703),com.inq.flash.client.chatskins.SkinControl={},com.inq.flash.client.chatskins.SkinControl.inqPersistentUrl=null,com.inq.flash.client.chatskins.SkinControl.sPopCID=null,com.inq.flash.client.chatskins.SkinControl.sPerCID=null,com.inq.flash.client.chatskins.SkinControl.applicationController=null,com.inq.flash.client.chatskins.SkinControl.connectionType=null,com.inq.flash.client.chatskins.SkinControl.transcriptAgentColor=null,com.inq.flash.client.chatskins.SkinControl.transcriptCustomerColor=null,com.inq.flash.client.chatskins.SkinControl.transcriptFontSize=null,com.inq.flash.client.chatskins.SkinControl.transcriptIndent=null,com.inq.flash.client.chatskins.SkinControl.transcriptTabStops=null,com.inq.flash.client.chatskins.SkinControl.transcriptFont=null,com.inq.flash.client.chatskins.SkinControl.transcriptAgentSample=null,com.inq.flash.client.chatskins.SkinControl.warningEvery2minId=-1,com.inq.flash.client.chatskins.SkinControl.warninglast30secId=null,com.inq.flash.client.chatskins.SkinControl.timeoutTime=null,com.inq.flash.client.chatskins.SkinControl.timeoutAction=null,com.inq.flash.client.chatskins.SkinControl.initialFocusClaimedBy=null,com.inq.flash.client.chatskins.SkinControl.chatSessionEnded=!1,com.inq.flash.client.chatskins.SkinControl.showOpenerScripts=function(){com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().isAsyncChat()&&com.inq.flash.client.chatskins.SkinControl.hasLastConversationMessages&&(com.inq.flash.client.chatskins.SkinControl.conversationActive||!com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().showOpenerForEndedConversation)||(com.inq.flash.client.chatskins.SkinControl.openerScript=new com.inq.flash.client.chatskins.OpenerScript,com.inq.flash.client.chatskins.SkinControl.bChatIsVisible&&com.inq.flash.client.chatskins.SkinControl.openerScript.start())},com.inq.flash.client.chatskins.SkinControl.parseConversationTranscript=function(t){var e="string"==typeof t?JSON.parse(t):t,i="string"==typeof e.data?JSON.parse(e.data):e.data,n=!1;if(i.conversations)n=function(t){if(t&&t.length>0){for(var e=0;e<t.length;e++){var n=t[e];com.inq.flash.client.chatskins.SkinControl.topicId=n.topicID,com.inq.flash.client.chatskins.SkinControl.topicName=n.topicName,com.inq.flash.client.chatskins.SkinControl.conversationActive="active"===n.outcome||"followup"===n.outcome,s(n,e===t.length-1),com.inq.flash.client.chatskins.SkinControl.conversationActive||com.inq.flash.client.chatskins.SkinControl.addConversationSeparator()}if(com.inq.flash.client.chatskins.SkinControl.conversationActive){var o=i.customerID;o&&com.inq.flash.client.control.PersistenceManager.SetValue(INITIAL_CUSTOMER_ID,o);var a=t[t.length-1].conversationID;a&&com.inq.flash.client.control.PersistenceManager.SetValue(CONVERSATION_ID,a)}return!0}return!1}(i.conversations);else{if(com.inq.flash.client.chatskins.SkinControl.topicId=i.topicID,com.inq.flash.client.chatskins.SkinControl.topicName=i.topicName,com.inq.flash.client.chatskins.SkinControl.conversationActive="active"===i.outcome||"followup"===i.outcome,com.inq.flash.client.chatskins.SkinControl.conversationActive){var o=i.customerID;o&&com.inq.flash.client.control.PersistenceManager.SetValue(INITIAL_CUSTOMER_ID,o);var a=i.conversationID;a&&com.inq.flash.client.control.PersistenceManager.SetValue(CONVERSATION_ID,a)}n=s(i,!0)}return com.inq.flash.client.chatskins.SkinControl.getChatWindow().render(),n;function s(t,e){var i=t.messages;if(com.inq.flash.client.chatskins.SkinControl.hasLastConversationMessages=i&&i.length&&e,i&&i.length>0){for(var n=!1,o=function(t,e){if(com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().isAsyncReconnect()&&e)for(var i=t.length-1;i>=0;i--){var n=t[i];if("sub_header"===n.messageType)return n.engagementID}return null}(i,e),a=0;a<i.length;a++){var s=i[a];if("sub_header"!==s.messageType){if(com.inq.flash.client.control.FlashPeer.isHideJsonTranscriptMessages())try{if("object"==typeof JSON.parse(s.messageText))continue}catch(t){}var l,r=parseInt(s.timestamp);isNaN(r)||(l=new Date(r));var c=s["agent.alias"]||s.customerAlias||com.inq.flash.client.control.FlashVars.getCustomerName(),h=s["agent.alias"]?com.inq.flash.client.chatskins.ChatTextArea.AGENT:com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER;"_opener_"===s.agentID&&n?com.inq.flash.client.chatskins.SkinControl.AddOpenerToChatWindow(c,s.messageText,h,-1,null,l):com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(c,s.messageText,h,-1,null,"1","",l,!n)}else s.engagementID===o&&(n=!0)}return function(t,e,i,n){e&&"string"==typeof e&&(e=com.inq.flash.client.chatskins.SkinControl.prepareAsyncSurveyMessage(e,i),com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(t||"",e,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM_INFO,-1,null,"",null,n,!0))}(t.surveyAlias,t.surveyMessage,t.conversationID,l),!0}return!1}},com.inq.flash.client.chatskins.SkinControl.prepareAsyncSurveyMessage=function(t,e){return com.inq.flash.client.chatskins.SkinControl.NATIVE_POST_CHAT_SURVEY_REGEXP.test(t)&&(e=e||"",t=t.replace(/href=(?:"|')(.+?)(?:"|')/,(function(t,i){var n=i+"&conversationID="+e;return'href="#" '+com.inq.flash.client.chatskins.SkinControl.DATA_SURVEY_URL+'="'+n+'"'}))),t},com.inq.flash.client.chatskins.SkinControl.getOpener=function(){var t=null;try{t=com.inq.flash.client.chatskins.SkinControl.isClick2WebCall()||com.inq.flash.client.control.WebRTCMgr.isEngaged?window:window.parent.opener.inqFrame}catch(t){haxe.Log.trace("SkinControl.getOpener Error "+Std.string(t),{fileName:"SkinControl.hx",lineNumber:124,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"getOpener",customParams:["error"]})}return t},com.inq.flash.client.chatskins.SkinControl.StopTimer=function(){null!=com.inq.flash.client.chatskins.SkinControl.timerTimeout&&(com.inq.flash.client.chatskins.SkinControl.timerTimeout.stop(),com.inq.flash.client.chatskins.SkinControl.timerTimeout=null,com.inq.flash.client.chatskins.SkinControl.stopWarning())},com.inq.flash.client.chatskins.SkinControl.stopOpenerScript=function(t){null==t&&(t=!1),null!=com.inq.flash.client.chatskins.SkinControl.openerScript&&(haxe.Log.trace("stop OpenerScript",{fileName:"SkinControl.hx",lineNumber:141,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"stopOpenerScript"}),com.inq.flash.client.chatskins.SkinControl.openerScript.stop(t))},com.inq.flash.client.chatskins.SkinControl.getApplicationController=function(){return com.inq.flash.client.chatskins.SkinControl.applicationController},com.inq.flash.client.chatskins.SkinControl.SkinResize=function(t){try{Application.application.setWidth(Application.application.screen.getWidth()),Application.application.setHeight(Application.application.screen.getHeight())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return!0},com.inq.flash.client.chatskins.SkinControl.applyTranscriptToPersistent=function(t){com.inq.flash.client.chatskins.SkinControl.cw.setHtmlText(t)},com.inq.flash.client.chatskins.SkinControl.setSocketIP=function(t){com.inq.flash.client.chatskins.SkinControl.sSocketIP=t},com.inq.flash.client.chatskins.SkinControl.addWebRTCToStream=function(){if(!com.inq.utils.Util.getConfig("WebRTCEnabled",!1))return"";var t=com.inq.flash.client.control.WebRTCMgr.isWebRTCCapable();return com.inq.flash.client.chatskins.SkinControl.CSDL_WEBRTC_CAP+t+"^^"},com.inq.flash.client.chatskins.SkinControl.setApplicationController=function(t){haxe.Log.trace("setApplicationController: entered",{fileName:"SkinControl.hx",lineNumber:295,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"setApplicationController"}),com.inq.flash.client.chatskins.SkinControl.applicationController=t},com.inq.flash.client.chatskins.SkinControl.setTranscriptWindowSettings=function(){com.inq.flash.client.chatskins.SkinControl.transcriptAgentColor="#0000CB",com.inq.flash.client.chatskins.SkinControl.transcriptCustomerColor="#000000",com.inq.flash.client.chatskins.SkinControl.transcriptFontSize="11pt",com.inq.flash.client.chatskins.SkinControl.transcriptIndent="80",com.inq.flash.client.chatskins.SkinControl.transcriptTabStops="["+com.inq.flash.client.chatskins.SkinControl.transcriptIndent+"]",com.inq.flash.client.chatskins.SkinControl.transcriptAgentColor="#"+HxOverrides.substr("000000"+Std.string(com.inq.utils.Util.getConfig("lAgentColor",203).toString(16)),-6,null),com.inq.flash.client.chatskins.SkinControl.transcriptCustomerColor="#"+HxOverrides.substr("000000"+Std.string(com.inq.utils.Util.getConfig("lCustomerColor",0).toString(16)),-6,null),com.inq.flash.client.chatskins.SkinControl.transcriptFontSize="000000"+Std.string(com.inq.utils.Util.getConfig("pointSize","11"))+"pt",com.inq.flash.client.chatskins.SkinControl.transcriptFont=com.inq.utils.Util.getConfig("sFont","Veranda"),com.inq.flash.client.chatskins.SkinControl.transcriptAgentSample=com.inq.utils.Util.getConfig("sSampleAgentText","Jessica:  ")},com.inq.flash.client.chatskins.SkinControl.AddCustomerTextToChatWindow=function(t,e,i,n,o,a){return com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(com.inq.flash.client.control.FlashVars.getCustomerName(),com.inq.flash.messagingframework.StringUtils.htmlEncode(t),com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER,e,i,n,"",o,a)},com.inq.flash.client.chatskins.SkinControl.addAutomatonDataToChatWindow=function(t,e,i,n,o,a){return com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",t,com.inq.flash.client.chatskins.ChatTextArea.AUTOMATON_DATA,e,i,n,"",o,a)},com.inq.flash.client.chatskins.SkinControl.ReAddCustomerTextToChatWindow=function(t,e){return com.inq.flash.client.chatskins.SkinControl.hostIndx<com.inq.flash.client.chatskins.SkinControl.customerIndx?-1:(com.inq.flash.client.chatskins.SkinControl.hostIndx++,com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(com.inq.flash.client.control.FlashVars.getCustomerName(),t,com.inq.flash.client.chatskins.ChatTextArea.CUSTOMER,e))},com.inq.flash.client.chatskins.SkinControl.isContinued=function(){return!!com.inq.flash.client.control.FlashVars.isContinued()},com.inq.flash.client.chatskins.SkinControl.ClearTranscript=function(){Application.application.notificationController.hideNotification();try{null!=com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.cw.clearTranscript()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ClearTranscript error: "+Std.string(t),{fileName:"SkinControl.hx",lineNumber:353,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"ClearTranscript",customParams:["error"]})}},com.inq.flash.client.chatskins.SkinControl.clearTranscriptArray=function(){try{com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.cw.clearTranscriptArray()}catch(t){haxe.Log.trace("clearTranscriptArray error: "+Std.string(t))}},com.inq.flash.client.chatskins.SkinControl.clearOpenersArray=function(){com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.cw.clearOpenersArray()},com.inq.flash.client.chatskins.SkinControl.updateCustomerName=function(t){com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.cw.updateCustomerName(t)},com.inq.flash.client.chatskins.SkinControl.addConversationSeparator=function(){com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("","",com.inq.flash.client.chatskins.ChatTextArea.SEPARATOR,-1,null,"1",null,null,!0)},com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow=function(t,e,i,n,o,a,s,l,r){var c=-1;haxe.Log.trace("SkinControl.AddTranscriptItemToChatWindow: entered",{fileName:"SkinControl.hx",lineNumber:360,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"AddTranscriptItemToChatWindow"});try{c=r?com.inq.flash.client.chatskins.SkinControl.getChatWindow().addHistoricTranscript(t,e,i,n,s,o,l):com.inq.flash.client.chatskins.SkinControl.getChatWindow().addTranscript(t,e,i,n,o,a,s,l),com.inq.flash.client.chatskins.FormMgr.updateFormTimeExecutor(com.inq.flash.client.chatskins.SkinControl.cw)}catch(t){haxe.Log.trace("SkinControl.AddTranscriptItemToChatWindow: ERROR:"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:365,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"AddTranscriptItemToChatWindow",customParams:["error"]})}return c},com.inq.flash.client.chatskins.SkinControl.modifyDTFields=function(t,e){var i,n=window.document.getElementById(t),o=n.getElementsByTagName("INPUT");if(o.length>0)for(var a=0,s=o.length;a<s;a++)i=o[a],com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendInputState(i.name,"disabled","true",!0),o=n.getElementsByTagName("INPUT");var l=n.getElementsByTagName("A");if(l.length>0)for(var r=0,c=l.length;r<c;r++)i=l[r],com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendInputState(i.name,"disabled",e!=i.name?"true":"bold",!0),l=n.getElementsByTagName("A")},com.inq.flash.client.chatskins.SkinControl.modifyDTString=function(t,e,i){if(null==t)return null;var n;if(t=new EReg("<input","ig").split(t).join("<input disabled "),t=new EReg("(<a[^>]*)(href[\\s]*=[\\s]*['\"][^'\"]*['\"])([^>]*>)","ig").replace(t,"$1 $3"),t=new EReg("(<[^>]*)(onclick[\\s]*=[\\s]*['\"][^'\"]*return)([^>]*>)","ig").replace(t,"$1 $2 false; $3"),t=new EReg("<a","ig").replace(t,"<a style='color:gray;' "),null!=e&&e.length>0&&(n="name ='"+e+"' style='font-weight: bold; color:#323232;' ",t=new EReg("name[\\s]*=[\\s]*['\\\"]"+e+"['\\\"]","ig").split(t).join(n),t=new EReg("<a([^>]*)(name[\\s]*=[\\s]*['\\\"]"+e+"['\\\"])([^>]*)>","ig").replace(t,"<a style= 'font-weight: bold; color:#323232;' onclick = 'return false;' $1>")),null!=i)for(var o=0;o<i.length;o++){var a=i[o];n="name ='"+a+"' checked ",t=new EReg("name[\\s]*=[\\s]*['\"]"+a+"['\"]","ig").split(t).join(n)}return t},com.inq.flash.client.chatskins.SkinControl.AddOpenerToChatWindow=function(t,e,i,n,o,a){return haxe.Log.trace("SkinControl.AddOpenerToChatWindow: entered",{fileName:"SkinControl.hx",lineNumber:472,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"AddOpenerToChatWindow"}),com.inq.flash.client.chatskins.SkinControl.cw.addOpenerScript(t,e,i,n,o,a)},com.inq.flash.client.chatskins.SkinControl.MoveChatHistory=function(t){},com.inq.flash.client.chatskins.SkinControl.isInApplication=function(t){var e=!1;try{null!=Application.application.getMxmlItem(t)&&(e=!0)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;e=!1}return e},com.inq.flash.client.chatskins.SkinControl.doChatExit=function(){if(com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.applicationController.shutdownQuietly(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_DO_EXIT),com.inq.flash.client.control.FlashPeer.isThankYouEnabled()&&(com.inq.flash.client.chatskins.SkinControl.doThankYou(),com.inq.flash.client.chatskins.SkinControl.isClick2call()&&!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat())){var t=com.inq.utils.Util.getConfig("thankyouNoSubmit",null);null!=t&&Application.application.getButton("btnThankYou").setLabel(t)}},com.inq.flash.client.chatskins.SkinControl.sendCloseEventToAutomations=function(t){for(var e=!1,i=Application.application.getXFrameItems(),n=0;n<i.length;n++)i[n].getVisible()&&i[n].sendCustomEventToXForms(t,params)&&(e=!0);return e},com.inq.flash.client.chatskins.SkinControl.sendEventToAllAutomatons=function(t,e){for(var i=!1,n=Application.application.getXFrameItems(),o=0;o<n.length;o++)n[o].sendCustomEventToXForms(t,e)&&(i=!0);return i},com.inq.flash.client.chatskins.SkinControl.doThankYou=function(){if(!com.inq.flash.client.chatskins.SkinControl.isThankYouShown){var t=Application.application.getButton("btnCloseChatx")||Application.application.getButton("btnCloseChat");null!=t&&(t.styles.onClick&&(t._div.onclick=null,t._img.onclick=$bind(t,com.inq.ui.Button.prototype.doClick)),t.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionCloseThankYouNotice)),Application.application.notificationController.disable(),t.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionCloseThankYouNotice),com.inq.flash.client.chatskins.SkinControl.gotoThankyouScene()}},com.inq.flash.client.chatskins.SkinControl.agentClosesChat=function(){var t=com.inq.flash.client.control.FlashPeer.isThankYouEnabled(),e=com.inq.utils.Util.getConfig("closeChatOnAgentClose",!1);if(com.inq.flash.client.chatskins.SkinControl.closeChatSession(),com.inq.flash.client.chatskins.SkinControl.applicationController.disable(),com.inq.flash.client.control.PersistenceManager.ClearValues(),t&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.clearWindowPosition(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.Close(),com.inq.flash.client.chatskins.CoBrowseMgr.agentEndsCob(),e)com.inq.flash.client.control.PersistenceManager.Close(),com.inq.flash.client.control.MinimizeManager.Close(),com.inq.flash.client.control.FlashPeer.onBeforeChatClosed(),Application.application.getPreventChatClosed()?(Application.application.setPreventChatClosed(!1),com.inq.flash.client.chatskins.SkinControl.startPostChatTimer()):(com.inq.flash.client.chatskins.SkinControl.closeChat(),com.inq.flash.client.chatskins.SkinControl.closeParentWindow()),com.inq.aria.ModalWindow.removeCircularModalWindow();else if(t)com.inq.flash.client.chatskins.SkinControl.startPostChatTimer(),com.inq.flash.client.chatskins.SkinControl.doThankYou();else{com.inq.flash.client.chatskins.SkinControl.startPostChatTimer();var i=com.inq.flash.client.control.FlashVars.getValue("agentExitLine");i.length>0&&setTimeout((function(){com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",com.inq.utils.StringUtil.htmlDecode(i),com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1)}),1e3);var n=Application.application.getMxmlItem("fadeUserInput");n&&n.setVisible(!0);var o=Application.application.getMxmlItem("chatWindow");o&&o._div&&(o._div.setAttribute("tabIndex","-1"),o._div.setAttribute("aria-hidden","true"),o._div.setAttribute("aria-label",""),o._div.removeAttribute("role")),com.inq.flash.client.chatskins.EmailMgr.hideEmailButton(),com.inq.flash.client.chatskins.SkinControl.disableInput()}com.inq.flash.client.control.WebRTCMgr.close(),com.inq.flash.client.chatskins.SkinControl.agentClosedChat=!0},com.inq.flash.client.chatskins.SkinControl.preparingClosingChat=function(t){com.inq.flash.client.chatskins.SkinControl.closeChatSession(),com.inq.flash.client.chatskins.SkinControl.disableInput(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.startPostChatTimer(),t||(com.inq.flash.client.chatskins.ChatTextFocusMonitor.Close(),com.inq.flash.client.chatskins.ScrollMonitor.Close(),com.inq.flash.client.control.MinimizeManager.Close()),com.inq.flash.client.chatskins.SkinControl.endCobrowse(),com.inq.flash.client.control.PersistenceManager.ClearValues(),com.inq.flash.client.control.PersistenceManager.Close(),com.inq.flash.client.control.MinimizeManager.Restore(),com.inq.flash.client.control.UploadHandler.close()},com.inq.flash.client.chatskins.SkinControl.connectionLostClosingChat=function(t){com.inq.flash.client.chatskins.SkinControl.getApplicationController().isConnected()&&(Application.application.disable(t),Application.application.getPreventChatClosed()?(com.inq.flash.client.chatskins.SkinControl.startPostChatTimer(),com.inq.flash.client.chatskins.SkinControl.applicationController.shutdownQuietly(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CONNECTION_LOST),Application.application.setPreventChatClosed(!1)):(com.inq.flash.client.chatskins.SkinControl.preparingClosingChat(),com.inq.flash.client.control.FlashPeer.setDisconnectFlag(),Application.application.notificationController.notificationIsActive()||(com.inq.flash.client.control.FlashPeer.isThankYouEnabled()?(com.inq.flash.client.chatskins.ChatTextFocusMonitor.clearWindowPosition(),com.inq.flash.client.chatskins.SkinControl.doThankYou()):(com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.aria.ModalWindow.removeCircularModalWindow(),com.inq.stage.ViewportMgr.close(),com.inq.flash.client.chatskins.SkinControl.HideClientDecorations(),com.inq.flash.client.control.FlashPeer.closeChat(),com.inq.flash.client.chatskins.SkinControl.restoreFocusToMainWindow(),com.inq.flash.client.chatskins.SkinControl.closeParentWindow()))))},com.inq.flash.client.chatskins.SkinControl.closeThroughSalesforceChat=function(){var t=com.inq.flash.client.chatskins.SkinControl.getApplicationController();if(com.inq.flash.client.chatskins.SkinControl.preparingClosingChat(!0),t.isConnected()&&(com.inq.flash.client.chatskins.SkinControl.sendExitMsg(null,"closeThroughSalesforceChat"),t.disable()),com.inq.flash.client.control.WebRTCMgr.close(),com.inq.aria.ModalWindow.removeCircularModalWindow(),com.inq.flash.client.chatskins.OpenerScript.resetOpenersStopped(),com.inq.flash.client.chatskins.SkinControl.bInitialized=!1,com.inq.flash.client.chatskins.SkinControl.keyCount=0,com.inq.utils.Capabilities.isSafari()){var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();e&&e._input.blur()}},com.inq.flash.client.chatskins.SkinControl.cleanUpChatAndThankyou=function(){com.inq.flash.client.chatskins.SkinControl.closeChatSession(),com.inq.flash.client.chatskins.SkinControl.sendExitMsg(null,"cleanUpChatAndThankyou"),com.inq.flash.client.control.PersistenceManager.ClearValues(),com.inq.flash.client.control.PersistenceManager.Close(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.ClearTranscript(),com.inq.flash.client.chatskins.SkinControl.doThankYou()},com.inq.flash.client.chatskins.SkinControl.getThankYou=function(){var t=null;return com.inq.flash.client.chatskins.SkinControl.wasSaleAction()&&(t=Application.application.getCanvas("thankYouSale")),null==t&&(t=Application.application.getCanvas("thankYou")),t},com.inq.flash.client.chatskins.SkinControl.getThankYouButton=function(){var t=null;return com.inq.flash.client.chatskins.SkinControl.wasSaleAction()&&(t=Application.application.getButton("btnThankYouSale")),null==t&&(t=Application.application.getButton("btnThankYou")),t},com.inq.flash.client.chatskins.SkinControl.fireMxmlHandler=function(t){try{var e=com.inq.utils.Util.getConfig(t,null);null!=e&&e()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}},com.inq.flash.client.chatskins.SkinControl.gotoThankyouScene=function(){var t=com.inq.flash.client.chatskins.SkinControl.getThankYou(),e=com.inq.flash.client.chatskins.SkinControl.getThankYouButton();if(t&&e){var i=e.label?e.label:com.inq.flash.client.chatskins.SkinControl.DEFAULT_TY_IMAGE_LABEL,n=com.inq.flash.client.control.WebRTCMgr.webCallStatus;if(com.inq.flash.client.chatskins.BalloonNotifier.Clear(),com.inq.flash.client.chatskins.SkinControl.isThankYouShown=!0,com.inq.flash.client.chatskins.SkinControl.fireMxmlHandler("onThankYouVisible"),"started"===n||"restarted"===n||"callerror"===n?i=com.inq.utils.Util.getConfig("webCallFailure","There is a problem connecting to Agent. Please try again."):com.inq.flash.client.chatskins.SkinControl.tYImageLabel&&(i=com.inq.flash.messagingframework.StringUtils.htmlEncode(com.inq.flash.client.chatskins.SkinControl.tYImageLabel)),com.inq.flash.client.chatskins.SkinControl.wasSaleAction()){var o=com.inq.utils.Util.getConfig("thankYouSaleText",null);o&&e&&(i=o)}e.setLabel(i),e.setAttribute("title",i);try{if(com.inq.flash.client.chatskins.SkinControl.isClick2call()){var a=Application.application.getCanvas("callForm");a.setVisible(!1),(a=Application.application.getCanvas("callFormPersistent")).setVisible(!1)}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("error"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:662,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"gotoThankyouScene"})}(com.inq.utils.Capabilities.isSafari()||com.inq.utils.Capabilities.isAndroid()||com.inq.utils.Capabilities.isChromeiOS())&&com.inq.flash.client.control.FlashPeer.closeChatMonitor(!1),t.removeAttribute("aria-hidden"),t.setVisible(!0),com.inq.flash.client.control.FlashPeer.getIsBuilder()||com.inq.flash.client.chatskins.SkinControl.ClearTranscript(),e.setImageFocus()}com.inq.flash.client.control.FlashPeer.getIsBuilder()||com.inq.flash.client.chatskins.SkinControl.disableInput()},com.inq.flash.client.chatskins.SkinControl.disableOutdatedStylesheets=function(){if(com.inq.flash.client.control.FlashPeer.noV3FrameChat())for(var t=0;t<Application.application.styleLinksList.length;t++)Application.application.styleLinksList[t].parentNode.removeChild(Application.application.styleLinksList[t]);else for(t=0;t<Application.application.styleLinksList.length;t++)Application.application.styleLinksList[t].disabled=!0},com.inq.flash.client.chatskins.SkinControl.HideClientDecorations=function(){com.inq.ui.ClientBody.closeAll(),Application.application.closeMxmlItems(),Application.application.setVisible(!1),com.inq.flash.client.chatskins.SkinControl.disableOutdatedStylesheets()},com.inq.flash.client.chatskins.SkinControl.closeChat=function(){try{com.inq.flash.client.chatskins.SkinControl.removeModalWindow(),1==com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtnAdded&&com.inq.flash.client.control.MinimizeManager.dummyRestoreBtn.remove(),com.inq.stage.ViewportMgr.close(),com.inq.flash.client.chatskins.SkinControl.HideClientDecorations(),com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.control.FlashPeer.closeChat(com.inq.flash.client.chatskins.SkinControl.applicationController.isConnected()),com.inq.flash.client.control.UploadHandler.close(),com.inq.flash.client.chatskins.SkinControl.restoreFocusToMainWindow(),com.inq.flash.client.chatskins.SkinControl.hasLastConversationMessages=!1}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR "+Std.string(t),{fileName:"SkinControl.hx",lineNumber:687,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"closeChat"})}},com.inq.flash.client.chatskins.SkinControl.closeThroughThankYouScene=function(){if(com.inq.flash.client.chatskins.SkinControl.doThankYou(),com.inq.flash.client.chatskins.SkinControl.isClick2call()&&!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()){var t=com.inq.utils.Util.getConfig("thankyouNoSubmit",null);null!=t&&Application.application.getButton("btnThankYou ").setLabel(t)}com.inq.flash.client.control.FlashPeer.closePersistentWindowIfOpen()},com.inq.flash.client.chatskins.SkinControl.restoreFocusToMainWindow=function(){if(com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()){var t=com.inq.flash.client.chatskins.SkinControl.getOpener();t&&t.focus()}else window.top.focus()},com.inq.flash.client.chatskins.SkinControl.HideChat=com.inq.flash.client.chatskins.SkinControl.closeChat,com.inq.flash.client.chatskins.SkinControl.ShowChat=function(){},com.inq.flash.client.chatskins.SkinControl.scrollTranscriptToEnd=function(){com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()},com.inq.flash.client.chatskins.SkinControl.isTranscriptScrolledToBottom=function(){return!!com.inq.flash.client.chatskins.SkinControl.cw&&com.inq.flash.client.chatskins.SkinControl.cw.isScrolledToBottom()},com.inq.flash.client.chatskins.SkinControl.requestLcKillPopup=function(){},com.inq.flash.client.chatskins.SkinControl.ask4Transcript=function(){},com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons=function(t){if(haxe.Log.trace("SkinControl:showPersistentChatButtons("+Std.string(t)+");",{fileName:"SkinControl.hx",lineNumber:723,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"showPersistentChatButtons"}),!com.inq.flash.client.control.FlashPeer.isPersistentWindow()){var e=Application.application.getButton("ClickPersistent");null!=e&&e.setVisible(t)}},com.inq.flash.client.chatskins.SkinControl.showChatIDText=function(t){haxe.Log.trace("SkinControl:showChatIDText("+Std.string(t)+");",{fileName:"SkinControl.hx",lineNumber:736,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"showChatIDText"});var e=Application.application.getMxmlItem("ChatIDText");com.inq.flash.client.chatskins.SkinControl.isInApplication("ChatIDText")&&e.setVisible(t)},com.inq.flash.client.chatskins.SkinControl.killPopup=function(){haxe.Log.trace("SkinControl.killPopup: Entered",{fileName:"SkinControl.hx",lineNumber:746,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"killPopup"}),com.inq.flash.client.chatskins.SkinControl.applicationController.isConnected()&&com.inq.flash.client.chatskins.SkinControl.applicationController.shutdownQuietly(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_KILLPOPUP),com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons(!1);try{com.inq.flash.client.control.FlashPeer.closeChat()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;com.inq.flash.client.chatskins.XTrace.StackTrace(t)}},com.inq.flash.client.chatskins.SkinControl.endChatQuietPopup=function(){haxe.Log.trace("SkinControl.endChatQuietPopup: Entered",{fileName:"SkinControl.hx",lineNumber:757,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"endChatQuietPopup"}),com.inq.flash.client.chatskins.SkinControl.sendExitMsg(null,"endChatQuietPopup"),com.inq.flash.client.chatskins.SkinControl.quietPopup()},com.inq.flash.client.chatskins.SkinControl.quietPopup=function(){haxe.Log.trace("SkinControl.killPopup: Entered",{fileName:"SkinControl.hx",lineNumber:767,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"quietPopup"});try{com.inq.flash.client.control.FlashPeer.closeChat()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;com.inq.flash.client.chatskins.XTrace.StackTrace(t)}},com.inq.flash.client.chatskins.SkinControl.goToPersistentChat=function(t){var e=null;com.inq.flash.client.chatskins.SkinControl.getApplicationController().isSendMessageFail()||com.inq.flash.client.chatskins.SkinControl.chatSessionEnded||0!=com.inq.flash.client.chatskins.SkinControl.bPersistBtnPressed||(com.inq.flash.client.chatskins.SkinControl.bPersistBtnPressed=!0,null!=(e=Application.application.getButton("ClickPersistent"))&&e._img.blur(),com.inq.flash.client.control.FlashPeer.popOutChat(!0,com.inq.flash.client.chatskins.SkinControl.resizable),com.inq.flash.client.chatskins.SkinControl.removeModalWindow(),com.inq.aria.ModalWindow.removeCircularModalWindow(),com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(!0),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.bPersistBtnPressed=!1)},com.inq.flash.client.chatskins.SkinControl.PushToFrameset=function(t,e){try{var i=window.parent.document.URL,n="/"!=HxOverrides.substr(t,t.length-1,null)?t:HxOverrides.substr(t,0,t.length-1);if(i="/"!=HxOverrides.substr(i,i.length-1,null)?i:HxOverrides.substr(i,0,i.length-1),"_self"==e.toLowerCase()&&i.toLowerCase()==n.toLowerCase())return void haxe.Log.trace("SkinControl.PushToFrameset: already at target URL",{fileName:"SkinControl.hx",lineNumber:801,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"PushToFrameset"});com.inq.flash.client.chatskins.SkinControl.executeAfter((function(){return com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.hasNoOutstandingMessages()}),(function(){com.inq.flash.client.control.FlashPeer.PushToFrameset(n,e)}),"SkinControl.PushToFrameset",null,null)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;com.inq.flash.client.chatskins.XTrace.StackTrace("SkinControl.PushToFrameset:"+Std.string(t),"error")}},com.inq.flash.client.chatskins.SkinControl.enablePersistentChatButtonAndEstablishUrl=function(t){if(haxe.Log.trace("SkinControl.enablePersistentChatButtonAndEstablishUrl entered",{fileName:"SkinControl.hx",lineNumber:833,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"enablePersistentChatButtonAndEstablishUrl"}),!com.inq.flash.client.control.FlashPeer.isPersistentWindow()){var e=Application.application.getButton("ClickPersistent");if(!e.getVisible()){com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons(!0);var i=Application.application.getMxmlItem("chatWindow"),n=Std.parseInt(i.getStyle("bottom")),o=n+Std.parseInt(e.getStyle("height")),a=n;i.setStyle("bottom",""+o),e.setStyle("bottom",""+a),e.setStyle("left",i.getStyle("left")),e.setStyle("right",i.getStyle("right")),com.inq.flash.client.chatskins.SkinControl.inqPersistentUrl=t;try{var s=com.inq.flash.client.chatskins.SkinControl.getTextInputField()._getInput();0!=s.trim().length&&s!=com.inq.flash.client.chatskins.SkinControl.getIntroduction()||e.setImageFocus()}catch(t){}}}},com.inq.flash.client.chatskins.SkinControl.isClick2call=function(){return com.inq.flash.client.chatskins.SkinControl.click2call||(com.inq.flash.client.chatskins.SkinControl.click2call=com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCall")),com.inq.flash.client.chatskins.SkinControl.click2call},com.inq.flash.client.chatskins.SkinControl.isClick2WebCall=function(){return"C2WEBRTC"===com.inq.flash.client.control.FlashVars.getValue("launchType")},com.inq.flash.client.chatskins.SkinControl.getCallerNameString=function(){return 0==com.inq.flash.client.chatskins.SkinControl.callerNameString.length?com.inq.flash.client.control.FlashVars.getCustomerName():com.inq.flash.client.chatskins.SkinControl.callerNameString},com.inq.flash.client.chatskins.SkinControl.actionBtnCall=function(t){var e=com.inq.flash.client.chatskins.SkinControl;try{com.inq.flash.client.chatskins.SkinControl.click2call=!0,com.inq.flash.client.chatskins.SkinControl.callStreamData=com.inq.flash.client.chatskins.SkinControl.getCallStreamData()+com.inq.flash.client.chatskins.SkinControl.getCallFormData();var i=e.getTextInputField()._getInput();""!=i&&(com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.StopTimer());var n=com.inq.utils.Util.getConfig("thankyouNoAgentOnSubmit",null),o=com.inq.utils.Util.getConfig("thankyouAfterHoursOnSubmit",null);null==n&&null!=o&&(n=o),null==o&&null!=n&&(o=n),com.inq.flash.client.chatskins.SkinControl.applicationController.callButtonClicked(i,com.inq.flash.client.chatskins.SkinControl.callStreamData,com.inq.flash.client.chatskins.SkinControl.getCallerNameString()),com.inq.flash.client.control.FlashPeer.popOutChat(!0,!1)&&Application.application.getCanvas("callForm").setVisible(!1)}catch(t){return void haxe.Log.trace("Unknown exception : "+Std.string(t),{fileName:"SkinControl.hx",lineNumber:883,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"actionBtnCall"})}},com.inq.flash.client.chatskins.SkinControl.actionBtnSend=function(t){t&&t.originalEvent&&t.originalEvent.stopPropagation&&t.originalEvent.stopPropagation();var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();if(!com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.isAccessibilityHelpOnBtnSend){com.inq.flash.client.chatskins.ChatTextFocusMonitor.isBlurHandlerPending()&&(com.inq.flash.client.chatskins.ChatTextFocusMonitor.cancelBlurHandler(),e.setFocus(!0));try{var i=e._getInput();i.trim().length>0&&com.inq.flash.client.chatskins.SkinControl.keyCount>0&&(com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.applicationController.sendButtonClicked(i),e.clear(),com.inq.flash.client.chatskins.SkinControl.getApplicationController().isFirstMessageSent()&&e.clearPlaceholder()),com.inq.flash.client.chatskins.SkinControl.whenStoppedTyping(),e.setFocus(!0)}catch(t){}return!1}e.setFocus(!0)},com.inq.flash.client.chatskins.SkinControl.accessibilityHelp=com.inq.flash.client.chatskins.AccessibilityHelp.createInstance(),com.inq.flash.client.chatskins.SkinControl.actionBtnPopOut=function(t){return com.inq.flash.client.chatskins.SkinControl.removeModalWindow(),com.inq.flash.client.control.FlashPeer.popOutChat(!0,com.inq.flash.client.chatskins.SkinControl.resizable)},com.inq.flash.client.chatskins.SkinControl.customerClosingChat=function(){var t=com.inq.flash.client.chatskins.SkinControl.getApplicationController(),e="customerClosingChat";if(com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.ClearTranscript(),com.inq.flash.client.chatskins.SkinControl.endCobrowse(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),!com.inq.flash.client.chatskins.SkinControl.isThankYouShown)if(com.inq.flash.client.control.FlashPeer.onBeforeChatClosed(),com.inq.flash.client.chatskins.SkinControl.closeChatSession(),Application.application.getPreventChatClosed())com.inq.flash.client.chatskins.SkinControl.startPostChatTimer(),t.isConnected()&&(com.inq.flash.client.chatskins.SkinControl.sendExitMsg(null,e),t.disable()),Application.application.setPreventChatClosed(!1);else{if(com.inq.flash.client.control.PersistenceManager.ClearValues(),com.inq.flash.client.control.PersistenceManager.Close(),com.inq.flash.client.control.MinimizeManager.Close(),com.inq.flash.client.chatskins.ScrollMonitor.Close(),com.inq.flash.client.control.WebRTCMgr.close(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.Close(),com.inq.flash.client.chatskins.SkinControl.hideClientInterface(),com.inq.flash.client.chatskins.SkinControl.sendExitMsg(com.inq.flash.client.chatskins.SkinControl.customerClosedChat,e),com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()){var i=com.inq.flash.client.chatskins.SkinControl.getTextInputField();i&&i._input.blur()}t.disable(),t.msgcntAtEntry=0,com.inq.aria.ModalWindow.removeCircularModalWindow(),com.inq.flash.client.chatskins.OpenerScript.resetOpenersStopped(),com.inq.flash.client.chatskins.SkinControl.bInitialized=!1,com.inq.flash.client.chatskins.SkinControl.keyCount=0}},com.inq.flash.client.chatskins.SkinControl.hideClientInterface=function(){if(!com.inq.flash.client.control.FlashPeer.isPersistentWindow()){var t=com.inq.flash.client.chatskins.SkinControl.isThankYou,e=com.inq.flash.client.chatskins.SkinControl.isThankYouShown,i=Application.application.getCanvas("thankYou"),n=com.inq.flash.client.control.Incrementality.interacted;t&&i&&n&&!e?com.inq.flash.client.chatskins.SkinControl.closeThroughThankYouScene():com.inq.flash.client.chatskins.SkinControl.HideClientDecorations()}},com.inq.flash.client.chatskins.SkinControl.customerClosedChat=function(){com.inq.flash.client.chatskins.SkinControl.isThankYouShown||(com.inq.flash.client.chatskins.SkinControl.closeChat(),null!=Application.application.close&&Application.application.close(),com.inq.flash.client.chatskins.SkinControl.closeParentWindow()),"undefined"!=typeof surveyWindow&&setTimeout((function(){try{surveyWindow.focus()}catch(t){}}),1e3)},com.inq.flash.client.chatskins.SkinControl.actionCloseChat=function(t){void 0===t&&(t=com.inq.flash.client.control.FlashPeer.isThankYouEnabled()),com.inq.flash.client.chatskins.SkinControl.isThankYou=!!t,com.inq.flash.client.chatskins.SkinControl.customerClosingChat()},com.inq.flash.client.chatskins.SkinControl.endCobrowse=function(){com.inq.flash.client.chatskins.CoBrowseMgr.endCob()},com.inq.flash.client.chatskins.SkinControl.actionCloseThankYouNotice=function(t){return com.inq.flash.client.control.FlashPeer.onBeforeChatClosed(),Application.application.getPreventChatClosed()?(Application.application.setPreventChatClosed(!1),com.inq.flash.client.chatskins.SkinControl.restartTimer()):(com.inq.flash.client.chatskins.ScrollMonitor.Close(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.Close(),com.inq.flash.client.control.PersistenceManager.ClearValues(),com.inq.flash.client.control.PersistenceManager.Close(),com.inq.flash.client.control.MinimizeManager.Close(),com.inq.flash.client.control.WebRTCMgr.close(),com.inq.flash.client.chatskins.SkinControl.closeChat(),com.inq.flash.client.chatskins.SkinControl.closeParentWindow()),!1},com.inq.flash.client.chatskins.SkinControl.actionFocusVideo=function(t){return com.inq.flash.client.chatskins.SkinControl.isInApplication("video")&&com.inq.ui.Container._getElementById("tcChat_video",parent.document).focus(),!1},com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat=function(t){return com.inq.flash.client.control.MinimizeManager.actionRestore(),com.inq.utils.Util.getConfig(com.inq.utils.Util.xformsCloseEventFlag)&&com.inq.flash.client.chatskins.SkinControl.sendCloseEventToAutomations("onChatClose")||com.inq.flash.client.chatskins.SkinControl.actionCloseChat(),!0},com.inq.flash.client.chatskins.SkinControl.actionBtnClickToChat=function(t){},com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChatWindow=function(t){com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons(!1),com.inq.flash.client.chatskins.SkinControl.applicationController.shutdown(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CUSTOMER_CLOSED),com.inq.flash.client.control.FlashPeer.closeChat()},com.inq.flash.client.chatskins.SkinControl.actionRestoreAndExitChat=function(t){return com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(t),!0},com.inq.flash.client.chatskins.SkinControl.actionClickOnTxtInput=function(t){0==com.inq.flash.client.chatskins.SkinControl.bHaveFocus&&(com.inq.flash.client.chatskins.SkinControl.bHaveFocus=!0,haxe.Log.trace("Flash gained focus",{fileName:"SkinControl.hx",lineNumber:1067,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"actionClickOnTxtInput"}))},com.inq.flash.client.chatskins.SkinControl.actionAutoTabToPhoneField2=function(t){var e=Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField1"),i=Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField2");return null!=e&&3==StringTools.trim(e._getInput()).length&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105||39==t.keyCode)&&3==e.getCursorPosition()&&i.setFocus(),!0},com.inq.flash.client.chatskins.SkinControl.actionAutoTabToPhoneField3=function(t){var e=Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField2"),i=Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField3");return null!=e&&3==StringTools.trim(e._getInput()).length&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105||39==t.keyCode)&&3==e.getCursorPosition()&&i.setFocus(),!0},com.inq.flash.client.chatskins.SkinControl.setupButtons=function(){try{var t=Application.application.stage;null!=t&&t.addEventListener(com.inq.events.Event.RESIZE,com.inq.flash.client.chatskins.SkinControl.SkinResize)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}com.inq.flash.client.chatskins.SkinControl.isInApplication("btnPopOut")&&Application.application.getButton("btnPopOut").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.goToPersistentChat),com.inq.flash.client.chatskins.SkinControl.isInApplication("ClickPersistent")&&Application.application.getButton("ClickPersistent").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.goToPersistentChat),com.inq.flash.client.chatskins.SkinControl.isInApplication("ChatIDText")&&Application.application.getTextInput("ChatIDText").setHtmlText("ID: <"+Std.string(com.inq.flash.client.control.FlashVars.getValue("chatID"))+">"),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnSend")&&Application.application.getButton("btnSend").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionBtnSend),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCall")&&Application.application.getButton("btnCall").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionBtnCall),com.inq.flash.client.chatskins.SkinControl.isInApplication("chat_submit_phoneField1")&&Application.application.chat_submit_phoneField1.addEventListener(com.inq.events.KeyboardEvent.KEY_UP,com.inq.flash.client.chatskins.SkinControl.actionAutoTabToPhoneField2),com.inq.flash.client.chatskins.SkinControl.isInApplication("chat_submit_phoneField2")&&Application.application.chat_submit_phoneField2.addEventListener(com.inq.events.KeyboardEvent.KEY_UP,com.inq.flash.client.chatskins.SkinControl.actionAutoTabToPhoneField3),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCloseChat")&&Application.application.getButton("btnCloseChat").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat),com.inq.flash.client.chatskins.SkinControl.isInApplication("txtInput")&&com.inq.flash.client.chatskins.SkinControl.getTextInputField().addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionClickOnTxtInput),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnThankYou")&&Application.application.getButton("btnThankYou").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionCloseThankYouNotice),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnFocusVideo")&&Application.application.getButton("btnFocusVideo").addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SkinControl.actionFocusVideo),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnThankYouSale")&&Application.application.getButton("btnThankYouSale").addEventListener(com.inq.events.MouseEvent.CLICK,actionCloseThankyouNotice)},com.inq.flash.client.chatskins.SkinControl.InitThankYouGraphic=function(){haxe.Log.trace("InitThankYouGraphic()",{fileName:"SkinControl.hx",lineNumber:1150,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitThankYouGraphic"});var t=com.inq.flash.client.chatskins.SkinControl.getThankYou();t.setVisible(!1),haxe.Log.trace("InitThankYouGraphic(): btnThankYou.visible = "+(t.getVisible()?"true":"false"),{fileName:"SkinControl.hx",lineNumber:1153,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitThankYouGraphic"}),t.onRelease=function(t){com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons(!1),com.inq.flash.client.chatskins.SkinControl.applicationController.shutdown(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_ONRELEASE),com.inq.flash.client.control.FlashPeer.closeChat()}},com.inq.flash.client.chatskins.SkinControl.checkForSpecialExpression=function(t){var e={expressionList:[],text:t=com.inq.flash.client.chatskins.SkinControl.checkForGoToPersistentChatMsg(t)};return com.inq.flash.client.chatskins.SkinControl.checkForCustomerNameInputField(e)},com.inq.flash.client.chatskins.SkinControl.checkMessageForSpecialExpression=function(t){var e=t.getMessageType()==com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_OUTCOME?com.inq.flash.client.data.MessageFields.KEY_CLIENT_OUTCOME_DATA:com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA,i=t.getProperty(e);return t.getMessageType()!=com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION||t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MSG_AGENT_ALIAS)?com.inq.flash.client.chatskins.SkinControl.checkForSpecialExpression(i):{expressionList:[],text:i}},com.inq.flash.client.chatskins.SkinControl.checkForGoToPersistentChatMsg=function(t){if(haxe.Log.trace("SkinControl.as: checkForGoToPersistentChatMsg: entered",{fileName:"SkinControl.hx",lineNumber:1164,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}),null==t)return haxe.Log.trace("msg is null",{fileName:"SkinControl.hx",lineNumber:1168,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}),"";var e=t;haxe.Log.trace("SkinControl.as: checkForGoToPersistentChatMsg: msg = "+e.split("<").join("[").split(">").join("]"),{fileName:"SkinControl.hx",lineNumber:1179,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"});var i=t.indexOf("asfunction:goToPersistentChat,"),n=null;if(i>=0){haxe.Log.trace("SkinControl.as: checkForGoToPersistentChatMsg: embeded anchor for asfunction:goToPersistentChat ",{fileName:"SkinControl.hx",lineNumber:1184,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"});var o,a=-1;for(i=t.indexOf(",",i)+1;" "==HxOverrides.substr(t,i,1);)i++;var s=t.indexOf('"',i);n=(n=HxOverrides.substr(t,i,s-i)).split("&amp;").join("&"),haxe.Log.trace("SkinControl.as: checkForGoToPersistentChatMsg: URL is '"+n+"'",{fileName:"SkinControl.hx",lineNumber:1194,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}),a=t.indexOf("</",i),a=t.indexOf(">",a),o=t.lastIndexOf("<",i),haxe.Log.trace("ixAnchorStart="+o,{fileName:"SkinControl.hx",lineNumber:1204,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}),haxe.Log.trace("ixAnchorEnd="+a,{fileName:"SkinControl.hx",lineNumber:1205,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}),o<a&&(e=HxOverrides.substr(t,0,o)+HxOverrides.substr(t,a+1,null),haxe.Log.trace("OLD MESSAGE: "+t.split("<").join("&lt;").split(">").join("&gt;"),{fileName:"SkinControl.hx",lineNumber:1209,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}),haxe.Log.trace("NEW MESSAGE: "+e.split("<").join("&lt;").split(">").join("&gt;"),{fileName:"SkinControl.hx",lineNumber:1210,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"checkForGoToPersistentChatMsg"}))}return null==n||com.inq.flash.client.control.FlashPeer.isPersistentWindow()||com.inq.flash.client.chatskins.SkinControl.enablePersistentChatButtonAndEstablishUrl(n),e},com.inq.flash.client.chatskins.SkinControl.checkForCustomerNameInputField=function(t){return com.inq.ui.CustomerNameInputField.isContainsInsertionMarker(t.text)&&(t.expressionList.push(com.inq.flash.client.data.MessageFields.CUSTOMER_NAME_INPUT_FIELD),t.text=com.inq.ui.CustomerNameInputField.removeInsertionMarker(t.text)),t},com.inq.flash.client.chatskins.SkinControl.reFormatMessage=function(t){var e=t.toString();return e=(e=(e=(e=(e=(e=(e=(e=e.split("<br/></font><br/>").join("</font><br/>")).split("<br /></font><br />").join("</font><br/>")).split("</font><br/><br/>").join("</font><br/>")).split('<font face="Verdana" size="10" color="#000000">').join("<font face='Verdana' size='10' color='#000000'>")).split('<font face="Verdana" size="10" color="#0000cd">').join("<font face='Verdana' size='10' color='#0000cd'>")).split("<chatBox>").join("")).split("</chatBox>").join("")).split("<chatBox />").join(""),com.inq.flash.client.chatskins.SkinControl.checkForGoToPersistentChatMsg(t)},com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField=function(t){if(top.inqCustData&&top.inqCustData.openerSetFocus)top.inqCustData.openerSetFocus.focus(),setTimeout((function(){top.inqCustData.openerSetFocus=null}),500);else{var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();com.inq.flash.client.chatskins.SkinControl.isClick2call()?e&&!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()&&e.setFocus():Application.setFocusToBtnCloseOnOpen||(t&&com.inq.utils.Capabilities.isMobile()?com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.applyHelpOnBtnSend():e&&!com.inq.flash.client.chatskins.EmailMgr.isEmailCanvasAndButtonVisible()&&e.setFocus())}},com.inq.flash.client.chatskins.SkinControl.setFocusOnCustomerNameInput=function(){var t=Application.application.getMxmlItem(com.inq.ui.CustomerNameInputField.prototype.CONTAINER_ID);t&&t.getVisible()&&t.customerNameInput&&window.setTimeout((function(){t.customerNameInput.setUpFocus()}),100)},com.inq.flash.client.chatskins.SkinControl.setFocusOnCloseButton=function(){window.setTimeout((function(){var t=Application.application.getButton("btnCloseChat");t&&t.setImageFocus()}),500)},com.inq.flash.client.chatskins.SkinControl.getTextInputField=function(){return Application.application.getTextInput("txtInput")},com.inq.flash.client.chatskins.SkinControl.uponEnterKey=function(){com.inq.flash.client.chatskins.SkinControl.actionBtnSend(null)},com.inq.flash.client.chatskins.SkinControl.monitorCustomerTyping=function(){var t=com.inq.flash.client.chatskins.SkinControl.getApplicationController();0==com.inq.flash.client.chatskins.SkinControl.keyCount&&t.msgcntAtEntry<1&&window.setTimeout(com.inq.flash.client.control.Incrementality.onEngaged,0),com.inq.flash.client.chatskins.SkinControl.keyCount++,com.inq.flash.client.chatskins.SkinControl.bHaveFocus=!0,!t.isChatInQueue()&&t.isConnectionAccepted()&&(com.inq.flash.client.chatskins.SkinControl.isTypingInProgress()||(com.inq.flash.client.chatskins.SkinControl.setTypingActivity(!0),window.setTimeout(com.inq.flash.client.chatskins.SkinControl.whenStartTyping,0)),-1!=com.inq.flash.client.chatskins.SkinControl.timerForTyping&&window.clearTimeout(com.inq.flash.client.chatskins.SkinControl.timerForTyping),com.inq.flash.client.chatskins.SkinControl.timerForTyping=window.setTimeout(com.inq.flash.client.chatskins.SkinControl.whenStoppedTyping,com.inq.flash.client.chatskins.SkinControl.typingTimeout))},com.inq.flash.client.chatskins.SkinControl.isTypingInProgress=function(){return com.inq.flash.client.chatskins.SkinControl.typeActivityMessageInProgress},com.inq.flash.client.chatskins.SkinControl.setTypingActivity=function(t){com.inq.flash.client.chatskins.SkinControl.typeActivityMessageInProgress=t},com.inq.flash.client.chatskins.SkinControl.onInput=function(t){return/\n/.test(t.target.value)&&(t.target.value=t.target.value.replace(/\n/g,"")),window.setTimeout(com.inq.flash.client.chatskins.SkinControl.monitorCustomerTyping,0),!0},com.inq.flash.client.chatskins.SkinControl.onPaste=function(t){return window.setTimeout(com.inq.flash.client.chatskins.SkinControl.monitorCustomerTyping,0),!0},com.inq.flash.client.chatskins.SkinControl.onKeyDown=function(t){return!com.inq.flash.client.chatskins.SkinControl.isSkinActive()||t.keyCode!=com.inq.ui.Keyboard.ENTER},com.inq.flash.client.chatskins.SkinControl.onKeyPress=function(t){try{return(t.charCode?t.charCode:t.keyCode)!==com.inq.ui.Keyboard.ENTER||t.altKey||t.ctrlKey||t.shiftKey?(window.setTimeout(com.inq.flash.client.chatskins.SkinControl.monitorCustomerTyping,0),!0):(com.inq.flash.client.chatskins.SkinControl.uponEnterKey(),!1)}catch(t){haxe.Log.trace("ERROR: "+t,{fileName:"SkinControl.js",lineNumber:2010,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"onKeyPress"})}},com.inq.flash.client.chatskins.SkinControl.onKeyPressEmailInput=function(t){return t.charCode!=com.inq.ui.Keyboard.ENTER||t.altKey||t.ctrlKey||t.shiftKey?(t.keyCode==com.inq.ui.Keyboard.ESCAPE&&(com.inq.flash.client.chatskins.EmailMgr.unModalEmailCanvas(),com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_NONE_STATE),com.inq.flash.client.chatskins.EmailMgr.setState(com.inq.flash.client.chatskins.EmailMgr.SHOW_BUTTON_STATE),com.inq.flash.client.chatskins.SkinControl.getTextInputField().setFocus(!1)),!0):(com.inq.flash.client.chatskins.EmailMgr.actionBtnSendEmail(),!1)},com.inq.flash.client.chatskins.SkinControl.onKeyUp=function(t){return!com.inq.flash.client.chatskins.SkinControl.isSkinActive()||(t.keyCode==com.inq.ui.Keyboard.ENTER?(window.setTimeout(com.inq.flash.client.chatskins.SkinControl.uponEnterKey,0),!1):(window.setTimeout(com.inq.flash.client.chatskins.SkinControl.monitorCustomerTyping,0),!0))},com.inq.flash.client.chatskins.SkinControl.isSkinActive=function(){var t=window.frameElement;return null!=t&&"none"!=t.style.display},com.inq.flash.client.chatskins.SkinControl.onKeyDownCall=function(t){return!0},com.inq.flash.client.chatskins.SkinControl.onKeyUpCall=function(t){var e=com.inq.flash.client.chatskins.SkinControl;return 0==e.keyCount&&e.applicationController.msgcntAtEntry<1&&window.setTimeout((function(){com.inq.flash.client.control.Incrementality.onEngaged()}),50),e.keyCount++,!0},com.inq.flash.client.chatskins.SkinControl.onTextInputFocus=function(t){var e=com.inq.flash.client.chatskins.SkinControl;if(0==e.keyCount&&e.applicationController.msgcntAtEntry<1)try{var i=e.getTextInputField();null!=$bind(i,i.select)&&i.select()}catch(t){}return!0},com.inq.flash.client.chatskins.SkinControl.whenStoppedTyping=function(){-1!=com.inq.flash.client.chatskins.SkinControl.timerForTyping&&com.inq.flash.client.chatskins.SkinControl.isTypingInProgress()&&(window.clearTimeout(com.inq.flash.client.chatskins.SkinControl.timerForTyping),com.inq.flash.client.chatskins.SkinControl.timerForTyping=-1,com.inq.flash.client.chatskins.SkinControl.applicationController.TypingActivity(!1),com.inq.flash.client.chatskins.SkinControl.setTypingActivity(!1))},com.inq.flash.client.chatskins.SkinControl.whenStartTyping=function(){com.inq.flash.client.chatskins.SkinControl.applicationController.TypingActivity(!0)},com.inq.flash.client.chatskins.SkinControl.onTextInputFocusLoss=function(t){return com.inq.flash.client.chatskins.SkinControl.whenStoppedTyping(),!0},com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection=function(t){var e=com.inq.flash.client.chatskins.SkinControl;Application.application.setVisible(!0),1!=com.inq.utils.Util.getConfig("enableModal",!1)||com.inq.flash.client.control.FlashPeer.getIsBuilder()||com.inq.flash.client.chatskins.SkinControl.buildModalWindow();var i=e.getTextInputField();if(!com.inq.utils.Capabilities.isMobile()&&!0!==t&&!Application.setFocusToBtnCloseOnOpen)if(com.inq.flash.client.chatskins.EmailMgr.emailCanvas&&com.inq.flash.client.chatskins.EmailMgr.emailCanvas.getVisible()){var n=Application.application.getMxmlItem("emailInput");n&&n.setFocus()}else i.setFocus();Application.setFocusToBtnCloseOnOpen||e.isContinued()||0!==e.applicationController.msgcntAtEntry||(com.inq.utils.Capabilities.isMobile()?e.accessibilityHelp.applyHelpOnBtnSend():i.select())},com.inq.flash.client.chatskins.SkinControl.buildModalWindow=function(){if(setTimeout(com.inq.aria.ModalWindow.buildModalWindow,1),window.buildNuanceModalWindow)try{window.buildNuanceModalWindow()}catch(t){haxe.Log.trace("Failed to toggle buildNuanceModalWindow",{fileName:"SkinControl.js",lineNumber:2795,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"buildModalWindow"})}},com.inq.flash.client.chatskins.SkinControl.hideModalWindow=function(t){if(setTimeout((function(){com.inq.aria.ModalWindow.hideModalWindow(t)}),1),window.toggleNuanceModalWindow)try{window.toggleNuanceModalWindow(t)}catch(t){haxe.Log.trace("Failed to toggle toggleNuanceModalWindow",{fileName:"SkinControl.js",lineNumber:2819,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"hideModalWindow"})}},com.inq.flash.client.chatskins.SkinControl.removeModalWindow=function(){if(setTimeout(com.inq.aria.ModalWindow.removeModalWindow,1),window.removeNuanceModalWindow)try{window.removeNuanceModalWindow()}catch(t){haxe.Log.trace("Failed to toggle removeNuanceModalWindow",{fileName:"SkinControl.js",lineNumber:2041,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"removeModalWindow"})}},com.inq.flash.client.chatskins.SkinControl.startKeyListener=function(){var t=com.inq.flash.client.chatskins.SkinControl.getTextInputField();null!=t&&(com.inq.flash.client.chatskins.SkinControl.typingTimeout=com.inq.utils.Util.getConfig("clientTypingTimout",com.inq.flash.client.chatskins.SkinControl.typingTimeout),com.inq.flash.client.chatskins.SkinControl.isClick2call()?(t.addEventListener(com.inq.events.KeyboardEvent.KEY_UP,com.inq.flash.client.chatskins.SkinControl.onKeyUpCall),t.addEventListener(com.inq.events.KeyboardEvent.KEY_DOWN,com.inq.flash.client.chatskins.SkinControl.onKeyDeownCall)):(t.addEventListener("input",com.inq.flash.client.chatskins.SkinControl.onInput),com.inq.utils.Util.isIE&&com.inq.utils.Util.getIEMajorVer(!0)<9&&t.getInput().attachEvent("onpaste",com.inq.flash.client.chatskins.SkinControl.onPaste),t.addEventListener(com.inq.events.KeyboardEvent.KEY_PRESS,com.inq.flash.client.chatskins.SkinControl.onKeyPress),t.addEventListener(com.inq.events.FocusEvent.FOCUS_OUT,com.inq.flash.client.chatskins.SkinControl.onTextInputFocusLoss),t.addEventListener(com.inq.events.FocusEvent.FOCUS_IN,com.inq.flash.client.chatskins.SkinControl.onTextInputFocus)))},com.inq.flash.client.chatskins.SkinControl.startEmailKeyListener=function(){var t=Application.application.getTextInput("emailInput");t&&!com.inq.flash.client.chatskins.SkinControl.isClick2call()&&t.addEventListener(com.inq.events.KeyboardEvent.KEY_PRESS,com.inq.flash.client.chatskins.SkinControl.onKeyPressEmailInput)},com.inq.flash.client.chatskins.SkinControl.setupLocalCommunications=function(){},com.inq.flash.client.chatskins.SkinControl.PushEmbeddedForm=function(){},com.inq.flash.client.chatskins.SkinControl.thankYou=function(){},com.inq.flash.client.chatskins.SkinControl.setAgentConfig=function(t,e,i,n,o){null==i&&(i=!1),!Application.application.isVirtualAgent()&&com.inq.flash.client.chatskins.FontMgr.liveAgentSkin&&com.inq.ui.SkinLoader.LoadNewSkin(com.inq.flash.client.chatskins.FontMgr.liveAgentSkin),com.inq.flash.client.control.FlashPeer.setAgentConfig(t,i,e,n,o),com.inq.flash.client.chatskins.SkinControl.sendEventToAllAutomatons("onAgentAssigned")},com.inq.flash.client.chatskins.SkinControl.onTimeout=function(){if(com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.stage.DragResize.WhenDone(),null!=com.inq.flash.client.chatskins.SkinControl.applicationController)try{com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null)}catch(t){}},com.inq.flash.client.chatskins.SkinControl.shutdownPopup=function(){},com.inq.flash.client.chatskins.SkinControl.ClassInits=function(){Application.application.notificationController.init(),com.inq.flash.client.control.Incrementality.init(),com.inq.flash.client.control.XFrameWorker.init(),com.inq.flash.client.chatskins.FontMgr.init(),com.inq.flash.client.chatskins.EmailMgr.init(),com.inq.flash.client.chatskins.SndMgr.lazyInit(),com.inq.flash.client.chatskins.PrintMgr.init(),com.inq.flash.client.chatskins.FocusMonitor.init(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.init(),com.inq.flash.client.chatskins.FormMgr.init(),com.inq.flash.client.chatskins.CoBrowseMgr.init(),com.inq.flash.client.chatskins.VideoMgr.init(),com.inq.flash.client.chatskins.ScrollMonitor.init(),com.inq.flash.client.control.MinimizeManager.init(),com.inq.flash.client.control.XFrameWorker.ariaHelpOnLoadingButton(),com.inq.flash.client.control.UploadHandler.init(),com.inq.flash.client.control.WebRTCMgr(),com.inq.ui.CommandParser.addListeners(),com.inq.flash.client.control.FlashPeer.setCiFunction("ciActionBtnCloseChat",com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat),com.inq.flash.client.control.FlashPeer.setCiFunction("ciSendAutomatonDataAsCustomerMessage",com.inq.flash.client.chatskins.SkinControl.sendAutomatonDataMessage),com.inq.flash.client.control.FlashPeer.setCiFunction("ciActionBtnCloseThankyou",com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat),com.inq.flash.client.control.FlashPeer.setCiFunction("ciSendText",com.inq.flash.client.chatskins.SkinControl.actionBtnSend),com.inq.flash.client.control.FlashPeer.setCiFunction("ciActionRestoreAndExitChat",com.inq.flash.client.chatskins.SkinControl.actionRestoreAndExitChat),com.inq.flash.client.chatskins.SkinControl.InitializeAgentImage()},com.inq.flash.client.chatskins.SkinControl.sendAutomatonDataMessage=function(t){com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendAutomatonDataMessage(t)},com.inq.flash.client.chatskins.SkinControl.InitializeAutomoton=function(){com.inq.flash.client.chatskins.SkinControl.startTimer(com.inq.flash.client.chatskins.SkinControl.TIMEOUT_AVOIDANCE_SEC,(function(){com.inq.flash.client.control.PersistenceManager.SetValue(LAST_TOUCHED_TIME,(new Date).getTime(),!1)}));var t=com.inq.flash.client.control.PersistenceManager.GetValue(IFRAME_URL,null);null==t?(t=StringTools.urlDecode(com.inq.flash.client.control.FlashVars.getValue("iframeURL")),haxe.Log.trace("Flashvar iframeURL:"+t,{fileName:"SkinControl.hx",lineNumber:1576,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitializeAutomoton"})):(t=StringTools.urlDecode(t),haxe.Log.trace("Persisted iframeURL:"+t,{fileName:"SkinControl.hx",lineNumber:1580,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitializeAutomoton"}));var e=null;try{e=Application.application.getMxmlItem("autoAgentFrame")}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}null!=e?(e.setSrc(t),com.inq.flash.client.control.PersistenceManager.SetValue(IFRAME_URL,StringTools.urlEncode(t))):haxe.Log.trace("uriFrame is null. Did you proerly ID the iframe component in the mxml?",{fileName:"SkinControl.hx",lineNumber:1590,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitializeAutomoton"})},com.inq.flash.client.chatskins.SkinControl.getIntroduction=function(){return com.inq.utils.Util.getConfig("sIntroduction",null)},com.inq.flash.client.chatskins.SkinControl.showIntroductionAfterPreloadMessages=function(){var t=com.inq.flash.client.chatskins.SkinControl.getTextInputField();com.inq.flash.client.chatskins.SkinControl.cw.isCustomerMsgExist()||t.setIntroduction()},com.inq.flash.client.chatskins.SkinControl.startPostChatTimer=function(){var t=com.inq.flash.client.chatskins.SkinControl.getPostChatTimeout();setTimeout((function(){com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.closeChat()}),t)},com.inq.flash.client.chatskins.SkinControl.startTimer=function(t,e){com.inq.flash.client.control.FlashPeer.isAsyncUnauthUser()||(e||(e=function(){com.inq.flash.client.chatskins.SkinControl.timerTimeout.stop(),com.inq.flash.client.control.FlashPeer.isOne2ManyChatEnabled()||com.inq.flash.client.chatskins.SkinControl.onTimeout(),com.inq.flash.client.chatskins.SkinControl.timerTimeout=null}),com.inq.flash.client.chatskins.SkinControl.initializeTimerTimeout(t,e))},com.inq.flash.client.chatskins.SkinControl.restartTimer=function(t,e){try{if(!t){if(!com.inq.flash.client.chatskins.SkinControl.timeoutTime)throw"timeout doesn't set and doesn't saved after 'startTimer'";t=com.inq.flash.client.chatskins.SkinControl.timeoutTime}if(!e){if(!com.inq.flash.client.chatskins.SkinControl.timeoutAction)throw"actionOnTimeout doesn't set and doesn't saved after 'startTimer'";e=com.inq.flash.client.chatskins.SkinControl.timeoutAction}null!=com.inq.flash.client.chatskins.SkinControl.timerTimeout&&(com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.flash.client.chatskins.SkinControl.startTimer(t,e))}catch(i){haxe.Log.trace("Couldn't restart timer to close not started chat",{timeout:t,actionOnTimeout:e,error:i})}},com.inq.flash.client.chatskins.SkinControl.loadChatTranscriptAndSetupTimeouts=function(t,e,i){if(com.inq.flash.client.chatskins.SkinControl.isChatEngaged())e.persistentFrameReconnect();else if(null==com.inq.flash.client.chatskins.SkinControl.autoAgent||0==com.inq.flash.client.chatskins.SkinControl.autoAgent.getVisible()){if(com.inq.flash.client.chatskins.SkinControl.bChatIsVisible&&!com.inq.flash.client.control.FlashPeer.getIsBuilder()){var n,o=(new Date).getTime(),a=com.inq.flash.client.control.PersistenceManager.GetValue(CHAT_WINDOW_APPEARED,0),s=com.inq.flash.client.chatskins.SkinControl.getInitialTimeout();s!==com.inq.flash.client.control.FlashPeer.getInitialTimeout()&&com.inq.flash.client.control.PersistenceManager.SetValue("it",s,!1),0==a?(com.inq.flash.client.control.PersistenceManager.SetValue(CHAT_WINDOW_APPEARED,o,!1),n=s):n=s-(o-a)/com.inq.flash.client.chatskins.SkinControl.SEC,com.inq.flash.client.chatskins.SkinControl.startTimer(n)}i.clear(),i.select()}else com.inq.flash.client.chatskins.SkinControl.InitializeAutomoton()},com.inq.flash.client.chatskins.SkinControl.closeChatOneHourTimer=function(t){var e=new Date;com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().getHasAuthorized()||(t.getTime()<e.getTime()-com.inq.flash.client.chatskins.SkinControl.HOUR?com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null):setTimeout((function(){com.inq.flash.client.chatskins.SkinControl.closeChatOneHourTimer(t)}),2*com.inq.flash.client.chatskins.SkinControl.MIN))},com.inq.flash.client.chatskins.SkinControl.InitializeGlue=function(){var t=com.inq.flash.client.chatskins.SkinControl.getApplicationController();if(com.inq.flash.client.control.FlashPeer.setCiFunction("ciActionBtnCloseChat",com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat),!com.inq.flash.client.chatskins.SkinControl.bInitialized){com.inq.flash.client.chatskins.SkinControl.bInitialized=!0,com.inq.flash.client.chatskins.SkinControl.chatSessionEnded=!1,com.inq.flash.client.chatskins.SkinControl.click2call=!1,com.inq.flash.client.chatskins.SkinControl.callStreamData="",com.inq.flash.client.chatskins.SkinControl.callerNameString="",com.inq.flash.client.chatskins.SkinControl.chatContainer=Application.application.getCanvas("Chat"),null==com.inq.flash.client.chatskins.SkinControl.chatContainer?com.inq.flash.client.chatskins.SkinControl.bChatIsVisible=!0:com.inq.flash.client.chatskins.SkinControl.bChatIsVisible=com.inq.flash.client.chatskins.SkinControl.chatContainer.getVisible()&&com.inq.flash.client.chatskins.SkinControl.chatContainer.getEnabled(),com.inq.flash.client.chatskins.SkinControl.resizable=com.inq.utils.Util.getConfig("resizable",!0),com.inq.flash.client.chatskins.SkinControl.autoAgent=com.inq.flash.client.chatskins.SkinControl.isInApplication("autoAgent")?Application.application.getCanvas("autoAgent"):null,com.inq.flash.client.chatskins.SkinControl.cw=new com.inq.flash.client.chatskins.ChatTextArea(Application.application.getMxmlItem("chatWindow")),com.inq.flash.client.chatskins.SkinControl.ClassInits(),com.inq.flash.client.chatskins.SkinControl.stopScrollPropagation(),com.inq.flash.client.chatskins.SkinControl.textInput=com.inq.flash.client.chatskins.SkinControl.getTextInputField();try{com.inq.flash.client.control.FlashVars.getFlashVars()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("SkinControl.InitializeGlue: FlashVars threw: "+Std.string(t),{fileName:"SkinControl.hx",lineNumber:1629,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitializeGlue",customParams:["error"]})}haxe.Log.trace("SkinControl.InitializeGlue: FlashVars.flashVars.clickStream="+com.inq.flash.client.control.FlashVars.get("clickStream"),{fileName:"SkinControl.hx",lineNumber:1631,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitializeGlue"});var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();if(com.inq.flash.client.control.FlashVars.getShutdownPopup())com.inq.flash.client.chatskins.SkinControl.shutdownPopup();else{var i=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0),n=com.inq.flash.client.chatskins.SkinControl.isChatEngaged();if(com.inq.flash.client.control.FlashPeer.isPersistentWindow()?(com.inq.flash.client.chatskins.SkinControl.persistentChatInitialize(),t.msgcntAtEntry=i,com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().isAsyncChat()?(com.inq.flash.client.chatskins.SkinControl.asyncTranscriptLoading=!0,com.inq.flash.client.control.FlashPeer.getConversationTranscript((function(){com.inq.flash.client.chatskins.SkinControl.asyncTranscriptLoading=!1,n?t.persistentFrameReconnect():(com.inq.flash.client.chatskins.SkinControl.showOpenerScripts(),e.clear(),e.select(),s())}))):n?t.persistentFrameReconnect():(com.inq.flash.client.chatskins.SkinControl.showOpenerScripts(),e.clear(),e.select()),com.inq.flash.client.chatskins.SkinControl.isClick2call()&&t.processClickToCallQueueMessages(),com.inq.flash.client.chatskins.SkinControl.ShowChat(),com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection()):(com.inq.flash.client.chatskins.SkinControl.showPersistentChatButtons(!1),com.inq.flash.client.chatskins.SkinControl.getApplicationController().getChat().isAsyncChat()?(com.inq.flash.client.chatskins.SkinControl.asyncTranscriptLoading=!0,com.inq.flash.client.control.FlashPeer.getConversationTranscript((function(){n||com.inq.flash.client.chatskins.SkinControl.showOpenerScripts(),com.inq.flash.client.chatskins.SkinControl.loadChatTranscriptAndSetupTimeouts(i,t,e),com.inq.flash.client.chatskins.SkinControl.asyncTranscriptLoading=!1,s()}))):(n||com.inq.flash.client.chatskins.SkinControl.showOpenerScripts(),com.inq.flash.client.chatskins.SkinControl.loadChatTranscriptAndSetupTimeouts(i,t,e))),com.inq.flash.client.chatskins.SkinControl.isClick2WebCall()?(WebRTCMgr.init(),WebRTCMgr.webCallStatus="started",0===com.inq.flash.client.control.PersistenceManager.GetValue("wcall",0)?(WebRTCMgr.ringSnd&&WebRTCMgr.ringSnd.audio.play(),WebRTCMgr.getAndSDKInst()?WebRTCMgr.getAndSDKInst().checkPermission():WebRTCMgr.isIOSSDK()?WebRTCMgr.isIOSSDK().postMessage("checkPermission"):WebRTCMgr.accessConstrants(!0,!WebRTCMgr.isAudioOnlyWebCall()).then((function(e){e.getAudioTracks().forEach((function(t){t.stop()})),e.getVideoTracks().forEach((function(t){t.stop()})),t.processClickToWebCallQueueMessages()})).then(null,(function(){WebRTCMgr.onError("perDenied")}))):com.inq.flash.client.control.FlashPeer.isV3Continue()&&(WebRTCMgr.webCallStatus="restarted",(WebRTCMgr.isIOSSDK()||WebRTCMgr.getAndSDKInst())&&WebRTCMgr.processCallStarted()),com.inq.flash.client.chatskins.SkinControl.StopTimer()):1===com.inq.flash.client.control.PersistenceManager.GetValue("wcall",0)&&Inq.CHM.isV3Continue()&&(com.inq.flash.client.control.WebRTCMgr.webCallStatus="restarted",WebRTCMgr.isIOSSDK()||WebRTCMgr.getAndSDKInst()?WebRTCMgr.processCallStarted():com.inq.flash.client.control.FlashPeer.loadKMSlibraries()),com.inq.flash.client.chatskins.SkinControl.isInApplication("emailLayer")&&Application.application.getCanvas("emailLayer").setVisible(!1),com.inq.flash.client.chatskins.SkinControl.isInApplication("thankYou")&&Application.application.getCanvas("thankYou").setVisible(!1),haxe.Log.trace("setup the buttons",{fileName:"SkinControl.hx",lineNumber:1701,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"InitializeGlue"}),com.inq.flash.client.chatskins.SkinControl.setupButtons(),null==com.inq.flash.client.chatskins.SkinControl.autoAgent||0==com.inq.flash.client.chatskins.SkinControl.autoAgent.getVisible()){com.inq.flash.client.chatskins.SkinControl.startKeyListener(),com.inq.flash.client.chatskins.SkinControl.startEmailKeyListener();var o=Application.application.skinConfig.chatAvailableAriaMessage;if(com.inq.aria.AriaMsg.addAriaMsg(o||"A chat window is available at the end of the page."),"C2C"===this.applicationController.chat.getLaunchType()&&!com.inq.flash.client.control.MinimizeManager.minimized&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()){var a=com.inq.flash.client.control.FlashPeer.isPersistentWindow();!com.inq.utils.Util.isIE&&!com.inq.utils.Capabilities.isFF()||a?com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.isSafari()&&com.inq.utils.Capabilities.isMobile()?com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection():com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField():window.setTimeout((function(){com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField()}),1e3)}}com.inq.utils.Util.getConfig("bHideInput",!1)&&!com.inq.flash.client.chatskins.SkinControl.isContinued()?com.inq.flash.client.chatskins.SkinControl.hideInput():com.inq.flash.client.chatskins.SkinControl.showInput(!0),com.inq.flash.client.chatskins.SkinControl.fireMxmlHandler("onInitializationComplete"),com.inq.flash.client.chatskins.SkinControl.agentClosedChat=!1}}function s(){if(!t.initializeAutomatonMode()){var e=t.getMessagingFramework().getConnection();e&&e.establishConnection()}}},com.inq.flash.client.chatskins.SkinControl.isChatEngaged=function(){return com.inq.flash.client.chatskins.SkinControl.isContinued()&&(com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)>0||com.inq.flash.client.control.PersistenceManager.GetValue(CHAT_ENGAGED,!1))},com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat=function(){return com.inq.flash.client.control.FlashPeer.isPersistentWindow()},com.inq.flash.client.chatskins.SkinControl.getInitialTimeout=function(t){var e=t||com.inq.flash.client.control.FlashPeer.getInitialTimeout();return parseInt(com.inq.utils.Util.getConfig("initialTimeOut",e))},com.inq.flash.client.chatskins.SkinControl.getPostChatTimeout=function(){var t=com.inq.flash.client.chatskins.SkinControl.DEFAULT_POST_CHAT_TIMEOUT_SEC;return 1e3*parseInt(com.inq.utils.Util.getConfig("postChatTimeOut",t))},com.inq.flash.client.chatskins.SkinControl.startWarning=function(t){var e=parseInt(t),i=(new Date).getTime()+1e3*e,n=com.inq.aria.AriaMsg;e>30&&(com.inq.flash.client.chatskins.SkinControl.warninglast30secId=setTimeout((function(){(new Date).getTime()<i&&n.addAriaMsg("The chat window is closing in 30 seconds.")}),1e3*(parseInt(e)-30))),e>120&&(com.inq.flash.client.chatskins.SkinControl.warningEvery2minId=setInterval((function(){var t=(new Date).getTime(),e=parseInt((i-t)/1e3);if(t<i){var o=" "+(parseInt(e/60)>0?parseInt(e/60)+" minutes":""),a=" "+(e%60>0?e%60+" seconds":"");n.addAriaMsg("The chat window is closing in"+o+a)}else clearInterval(com.inq.flash.client.chatskins.SkinControl.warningEvery2minId)}),12e4))},com.inq.flash.client.chatskins.SkinControl.stopWarning=function(){com.inq.flash.client.chatskins.SkinControl.warningEvery2minId>0&&clearInterval(com.inq.flash.client.chatskins.SkinControl.warningEvery2minId),com.inq.flash.client.chatskins.SkinControl.warninglast30secId>0&&clearTimeout(com.inq.flash.client.chatskins.SkinControl.warninglast30secId),com.inq.aria.AriaMsg.clearAriaMsg()},com.inq.flash.client.chatskins.SkinControl.initializeTimerTimeout=function(t,e){try{if(!t)return void haxe.Log.trace("Timeout value was not set. Timeout will not occur.");var i=Math.pow(2,32)-1;(isNaN(t)||t<0||t>i)&&(haxe.Log.trace("Default time out is used if timeoutSec is negative, it is bigger than maxTimeOut, or it is a NaN"),t=com.inq.flash.client.control.FlashPeer.getInitialTimeout()),com.inq.flash.client.chatskins.SkinControl.timerTimeout=new com.inq.utils.Timer(t*com.inq.flash.client.chatskins.SkinControl.SEC),com.inq.flash.client.chatskins.SkinControl.startWarning(t)}catch(e){if(!js.Boot.__instanceof(e,String))throw e;haxe.Log.trace("An error occured with timeoutSec. Setting to default of two minutes"),t=com.inq.flash.client.control.FlashPeer.getInitialTimeout(),com.inq.flash.client.chatskins.SkinControl.timerTimeout=new com.inq.utils.Timer(t*com.inq.flash.client.chatskins.SkinControl.SEC)}com.inq.flash.client.chatskins.SkinControl.timerTimeout.run=e,com.inq.flash.client.chatskins.SkinControl.timeoutTime=t,com.inq.flash.client.chatskins.SkinControl.timeoutAction=e},com.inq.flash.client.chatskins.SkinControl.getCallStreamData=function(){var e,i,n,o,a,s,l=com.inq.utils.Util.getConfig("skinVersion","0"),r=com.inq.utils.Util.getConfig("utfenable",!1),c="",h=new EReg("[^\\d]","g");if("0"==l){var m=com.inq.utils.Util.getConfig("phoneSeparator","-");i=com.inq.utils.Util.getConfig("numberLength","10"),e="^^",s=com.inq.utils.Util.getConfig("phoneErrorMessage","Please enter a valid phone number consisting of "+i+" digits (or more for numbers with extension)");try{if(null==(n=Application.application.getMxmlItem(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"callerPhone"))||""==StringTools.trim(n._getInput()))throw s;c=StringTools.trim(n._getInput())}catch(t){try{var u=Application.application.getMxmlItem(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField1"),p=Application.application.getMxmlItem(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField2"),d=Application.application.getMxmlItem(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"phoneField3");if(null!=u&&null!=p&&null!=d&&(c=StringTools.trim(u._getInput()+p._getInput()+d._getInput())),""==c)throw t}catch(t){throw t}}if(0==r&&(c=h.replace(c,""),!(h=new EReg("^\\d{10,}$","")).match(c)))throw s;return c.length>10&&(c=HxOverrides.substr(c,0,10)+"x"+HxOverrides.substr(c,10,null)),"0-"==(o=Std.string(com.inq.utils.Util.getConfig("countryISDCode","1"))+"-")&&(o=""),c="1-"!=o?o+c:o+HxOverrides.substr(c,0,3)+Std.string(m)+HxOverrides.substr(c,3,3)+Std.string(m)+HxOverrides.substr(c,6,null),e+=com.inq.flash.client.chatskins.SkinControl.CSDL_CALLERPHONE+c,com.inq.flash.client.chatskins.SkinControl.callerNameString=t(),e}var f="";e="^^",i=com.inq.utils.Util.getConfig("numberLength","10"),s=com.inq.utils.Util.getConfig("phoneErrorMessage","Please enter a valid phone number consisting of "+i+" digits (or more for numbers with extension)");var g=[],C=[];try{for(a=1,f=null!=Application.application.getMxmlItem(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"callerPhoneExt")?StringTools.trim(Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"callerPhoneExt").getInput()):"";Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"callerPhone"+a);)g[a-1]=Application.application.getTextInput(com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE+"callerPhone"+a),a++;if(0==g.length)throw s;a=0;for(var q=!1;a<g.length;)""==StringTools.trim(g[a]._getInput())&&(q=!0),a++;if(1==q)throw s;for(a=0;a<g.length;){if(C[a]=g[a]._getInput(),0==r&&(h=new EReg("[^\\d]","g"),C[a]=h.replace(C[a],""),!(h=new EReg("^\\d{"+C[a].length+",}$","")).match(C[a])))throw s;a++}for(a=0;a<C.length;a++)c+=StringTools.trim(C[a]);if(c.length<Std.parseInt(i))throw s}catch(t){throw t}var S=com.inq.utils.Util.getConfig("phoneSeparator",null);if(null!=S){var _=c,M=0;for(a=0;a<C.length-1;)M+=C[a].length+a,_=HxOverrides.substr(_,0,M)+Std.string(S)+HxOverrides.substr(_,M,null),a++;c=_}return c=(o="0"==(o=com.inq.utils.Util.getConfig("countryISDCode","1"))?"":o+"-")+c,""!=f&&(c+="x"+f),e+=com.inq.flash.client.chatskins.SkinControl.CSDL_CALLERPHONE+c,com.inq.flash.client.chatskins.SkinControl.callerNameString=t(),e},com.inq.flash.client.chatskins.SkinControl.getCallFormData=function(){var t,e,i,n;if("0"==com.inq.utils.Util.getConfig("skinVersion","0")){e="";try{t=document.getElementById("btnCall").parentNode.getElementsByTagName("DIV");for(var o=0,a=t.length;o<a;o++)try{if(!(i=new EReg("^"+com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE,"")).match(t[o].id)||StringTools.endsWith(t[o].id,"callerPhone")||StringTools.endsWith(t[o].id,"phoneField1")||StringTools.endsWith(t[o].id,"phoneField2")||StringTools.endsWith(t[o].id,"phoneField3")||StringTools.endsWith(t[o].id,"callerName"))continue;n=Application.application.getTextInput(t[o].id),e+="^^_"+i.matchedRight()+"="+i.matchedRight()+"^^"+i.matchedRight()+"="+StringTools.trim(n._getInput())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("Error type for ,"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:2087,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"getCallFormData"})}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("HtmlPersistentButton: show button failed,"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:2091,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"getCallFormData"})}return e}e="";try{var s=1;t=document.getElementById("btnCall").parentNode.getElementsByTagName("DIV");for(var l=0,r=t.length;l<r;){var c=l++;try{if(!(i=new EReg("^"+com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE,"")).match(t[c].id)||StringTools.endsWith(t[c].id,"callerPhoneExt")||StringTools.endsWith(t[c].id,"callerName"))continue;if(StringTools.endsWith(t[c].id,"callerPhone"+s)){s++;continue}n=Application.application.getTextInput(t[c].id),e+="^^_"+i.matchedRight()+"="+i.matchedRight()+"^^"+i.matchedRight()+"="+StringTools.trim(n._getInput())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("Error type for ,"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:2123,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"getCallFormData"})}}}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("HtmlPersistentButton: show button failed,"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:2127,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"getCallFormData"})}return e},com.inq.flash.client.chatskins.SkinControl.getInitialClickstreamData=function(){var t=com.inq.flash.client.control.ClickStreamBuilder;return t.parseInitialClickstreamData()+t.IdentifyPlatform()+t.parseURLfromClickStreamData()+t.parseDFVfromClickStreamData()+com.inq.flash.client.chatskins.SkinControl.callStreamData+com.inq.flash.client.chatskins.SkinControl.addWebRTCToStream()},com.inq.flash.client.chatskins.SkinControl.getChatWindow=function(){return com.inq.flash.client.chatskins.SkinControl.cw},com.inq.flash.client.chatskins.SkinControl.updateFormFields=function(t,e,i){com.inq.flash.client.chatskins.FormMgr.updateFormFields(t,e,i,com.inq.flash.client.chatskins.SkinControl.cw)},com.inq.flash.client.chatskins.SkinControl.getInputArea=function(){return Application.application.getMxmlItem("txtInput")},com.inq.flash.client.chatskins.SkinControl.disableInput=function(){var t=com.inq.flash.client.chatskins.SkinControl.getTextInputField();com.inq.utils.Capabilities.isPhone()&&(t.blur(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur(null)),t.clearPlaceholder(),t._setInput(""),t._enable(!0),t.setVisible(!1);var e=com.inq.flash.client.chatskins.SkinControl.getSendButton();e&&e.disable()},com.inq.flash.client.chatskins.SkinControl.sendDisableInput=function(){com.inq.flash.client.chatskins.SkinControl.disableInput()},com.inq.flash.client.chatskins.SkinControl.noUnload=function(){window.onunload=function(t){return!0}},com.inq.flash.client.chatskins.SkinControl.kickOffChat=function(t){if(null==t&&(t=!1),!com.inq.flash.client.chatskins.SkinControl.bChatIsVisible)if(com.inq.flash.client.chatskins.SkinControl.bChatIsVisible=!0,null!=com.inq.flash.client.chatskins.SkinControl.chatContainer&&com.inq.flash.client.chatskins.SkinControl.chatContainer.setEnabled(!0),null==com.inq.flash.client.chatskins.SkinControl.autoAgent||0==com.inq.flash.client.chatskins.SkinControl.autoAgent.getVisible())try{t||com.inq.flash.client.chatskins.SkinControl.openerScript.start();var e=Application.application.getTextInput("txtInput");null!=e&&e.setFocus()}catch(t){}else try{com.inq.flash.client.chatskins.SkinControl.InitializeAutomoton()}catch(t){}},com.inq.flash.client.chatskins.SkinControl.onChatEngaged=function(){com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(!0),com.inq.flash.client.chatskins.SkinControl.StopTimer(),Application.setFocusToBtnCloseOnOpen?com.inq.flash.client.chatskins.SkinControl.setFocusOnCloseButton():com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField(!0)},com.inq.flash.client.chatskins.SkinControl.persistentChatInitialize=function(){try{window.onload=function(t){return!0},window.onunload=function(t){return com.inq.flash.client.control.FlashPeer.closePersistent(com.inq.flash.client.chatskins.SkinControl.applicationController.isConnected()),Application.application.close(),!0};try{com.inq.flash.client.control.FlashPeer.closePopupChatFromPersistent(),com.inq.flash.client.control.FlashPeer.setPersistentWindowActive(!0)}catch(t){}var t=com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCloseChat")?Application.application.getButton("btnCloseChat"):null,e=com.inq.flash.client.chatskins.SkinControl.isInApplication("btnPopOut")?Application.application.getButton("btnPopOut"):null,i=com.inq.flash.client.chatskins.SkinControl.isInApplication("btnPopIn")?Application.application.getButton("btnPopIn"):null;if(0==com.inq.flash.client.chatskins.SkinControl.applicationController.msgcntAtEntry&&!com.inq.flash.client.chatskins.SkinControl.isClick2call()&&!com.inq.flash.client.chatskins.SkinControl.isClick2WebCall()){var n=com.inq.flash.client.chatskins.SkinControl.getInitialTimeout();com.inq.flash.client.chatskins.SkinControl.startTimer(n)}null!=t&&null==i&&t.setVisible(!0),null!=e&&e.setVisible(!1),null!=i&&i.setVisible(!0)}catch(t){haxe.Log.trace("error"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:2295,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"persistentChatInitialize"})}try{if(com.inq.flash.client.chatskins.SkinControl.isClick2call()){var o=Application.application.getCanvas("callForm");o.setVisible(!1),(o=Application.application.getCanvas("callFormPersistent")).setVisible(!0)}}catch(t){haxe.Log.trace("error"+Std.string(t),{fileName:"SkinControl.hx",lineNumber:2306,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"persistentChatInitialize"})}},com.inq.flash.client.chatskins.SkinControl.blockService=function(t){com.inq.flash.client.control.FlashPeer.blockService(t)},com.inq.flash.client.chatskins.SkinControl.wasSaleAction=function(){return com.inq.flash.client.control.FlashPeer.wasSaleAction()},com.inq.flash.client.chatskins.SkinControl.executeCustomCommand=function(t){return com.inq.flash.client.control.FlashPeer.executeCustomCommand(t)},com.inq.flash.client.chatskins.SkinControl.getScriptLine=function(t){return com.inq.flash.client.chatskins.SkinControl.cw.getTranscriptMessage(t)},com.inq.flash.client.chatskins.SkinControl.getSendButton=function(){return Application.application.getButton("btnSend")},com.inq.flash.client.chatskins.SkinControl.hideInput=function(){com.inq.flash.client.chatskins.SkinControl.disableInput(),com.inq.flash.client.chatskins.SkinControl.showBottomImgWithoutInput(!0)},com.inq.flash.client.chatskins.SkinControl.showInput=function(t){var e=com.inq.flash.client.chatskins.SkinControl.getSendButton();null!=e&&e.enable();var i=com.inq.flash.client.chatskins.SkinControl.getTextInputField();if(null!=i){i._enable(!1);var n=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);t&&0==n?i.setIntroduction():i.restorePreviousValue(),i.setVisible(!0)}com.inq.flash.client.chatskins.SkinControl.showBottomImgWithoutInput(!1)},com.inq.flash.client.chatskins.SkinControl.showBottomImgWithoutInput=function(t){var e=Application.application.getCanvas("chat");if(null!=e){var i=e.findChild("bottomMiddleHiddenInput");if(i){i.setVisible(t);var n=e.findChild("bottomMiddle");n&&n.setVisible(!t)}var o=e.findChild("bottomLeftHiddenInput");if(o){o.setVisible(t);var a=e.findChild("bottomLeft");a&&a.setVisible(!t)}var s=e.findChild("bottomRightHiddenInput");if(s){s.setVisible(t);var l=e.findChild("bottomRight");l&&l.setVisible(!t)}}},com.inq.flash.client.chatskins.SkinControl.executeAfter=function(t,e,i,n,o){null==n&&(n=2e3),null==i&&(i="executeAfter"),t()?(haxe.Log.trace(i+": executing since condition is satisfied",{fileName:"SkinControl.hx",lineNumber:2418,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"executeAfter"}),e(),null!=o&&o()):n<=0?(haxe.Log.trace(i+": executing by timeout",{fileName:"SkinControl.hx",lineNumber:2422,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"executeAfter",customParams:["error"]}),e(),null!=o&&o()):(haxe.Log.trace(i+": waiting "+n+"ms for condition to be satisfied",{fileName:"SkinControl.hx",lineNumber:2426,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"executeAfter"}),com.inq.utils.Timer.delay((function(){com.inq.flash.client.chatskins.SkinControl.executeAfter(t,e,i,n-100,o)}),100))},com.inq.flash.client.chatskins.SkinControl.hideObscuredChatDiv=function(t,e){var i=com.inq.flash.client.control.PersistenceManager;if(t||i.GetValue(MESSAGE_COUNT,0)>0||com.inq.utils.Capabilities.isPhone()&&/Firefox|FxiOS/.test(navigator.userAgent))return null===e._input.offsetParent;var n=Application.application,o=n.getCanvas("Chat")||n.getCanvas("chat");if(com.inq.flash.client.control.FlashPeer.isAutoFixPrechatSurvey()&&o&&o.getVisible()){var a=o._div,s=a.getBoundingClientRect(),l=a.nextSibling;if(!l||!window.getComputedStyle)return!1;do{var r=l.id.substr(7);if(1==l.nodeType&&n.getMxmlItem(r)&&-1!=js.Boot.isClass(n.getMxmlItem(r).constructor).indexOf("XFrame")){var c=l.getBoundingClientRect();if("absolute"==l.style.position&&l.style["z-index"]==a.style["z-index"]&&"none"!==window.getComputedStyle(l).visibility&&c.right>s.left&&c.bottom>s.top&&c.left<s.right&&c.top<s.bottom){com.inq.flash.client.chatskins.SkinControl.getInputArea().setVisible(!1),com.inq.flash.client.chatskins.SkinControl.getSendButton().setVisible(!1);var h=com.inq.ui.Container._getElementById("tcChat_chatWindow",parent.document);return h.setAttribute("aria-hidden",!0),h.setAttribute("data-disabled",!0),!0}}}while(null!=(l=l.nextSibling))}return!1},com.inq.flash.client.chatskins.SkinControl.sendExitMsg=function(t,e){if(com.inq.flash.client.chatskins.SkinControl.applicationController.customerClosesPopup())com.inq.flash.client.chatskins.SkinControl.applicationController.sendChatExitMsg(t,e);else{"function"==typeof t&&t();var i="SkinControl.sendExitMsg: Not sending CHAT.EXIT message, applicationController.customerClosesPopup === "+com.inq.flash.client.chatskins.SkinControl.applicationController.customerClosesPopup();com.inq.flash.client.control.FlashPeer.logError(i,new Error(i))}},com.inq.flash.client.chatskins.SkinControl.cleanUp=function(){com.inq.flash.client.chatskins.SkinControl.cw=null,com.inq.flash.client.chatskins.SkinControl.objHasFocus=null,com.inq.utils.Capabilities.isChrome()?com.inq.utils.Capabilities.UnbindListener(window,"beforeunload",com.inq.flash.client.chatskins.SkinControl.unloadHandler):com.inq.flash.client.chatskins.SkinControl.unloadHandler&&com.inq.utils.Capabilities.UnbindListener(window,"unload",com.inq.flash.client.chatskins.SkinControl.unloadHandler),com.inq.flash.client.chatskins.SkinControl.chatContainer=null,com.inq.flash.client.chatskins.SkinControl.textInput=null,com.inq.flash.client.chatskins.SkinControl.autoAgent=null,clearInterval(com.inq.flash.client.chatskins.SkinControl.warningEvery2minId),com.inq.flash.client.chatskins.SkinControl.accessibilityHelp=null},com.inq.flash.client.chatskins.SkinControl.closeChatSession=function(){var t=com.inq.flash.client.chatskins.SkinControl.getApplicationController();if(!com.inq.flash.client.chatskins.SkinControl.chatSessionEnded){com.inq.flash.client.chatskins.SkinControl.chatSessionEnded=!0;var e=t.getChat().getChatID();com.inq.flash.client.control.FlashPeer.endChatSession(e)}t.getMessageHandlerByPrefix(com.inq.flash.client.data.MessageFields.TYPE_CHAT_NEED_WAIT).clearQueueMessageTimer()},com.inq.flash.client.chatskins.SkinControl.isChatSessionEnded=function(){return com.inq.flash.client.chatskins.SkinControl.chatSessionEnded},com.inq.flash.client.chatskins.SkinControl.init=function(){com.inq.flash.client.chatskins.SkinControl.isThankYouShown=!1,com.inq.flash.client.chatskins.SkinControl.msgcntAtEntry=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0),com.inq.flash.client.chatskins.SkinControl.accessibilityHelp?com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.reset():com.inq.flash.client.chatskins.SkinControl.accessibilityHelp=com.inq.flash.client.chatskins.AccessibilityHelp.createInstance()},com.inq.flash.client.chatskins.SkinControl.getTitleBarHeight=function(){return com.inq.utils.Util.getConfig("titleBarImageHeight")||com.inq.flash.client.control.FlashPeer.getTitleBarHeight()},com.inq.flash.client.chatskins.SkinControl.getSkinLocation=function(){return com.inq.utils.Util.getConfig("flashPos")||com.inq.flash.client.control.FlashPeer.getSkinLocation()},com.inq.flash.client.chatskins.SkinControl.getSkinHeight=function(){return com.inq.utils.Util.getConfig("flashDimHeight")||com.inq.flash.client.control.FlashPeer.getSkinHeight()},com.inq.flash.client.chatskins.SkinControl.getSkinWidth=function(){return com.inq.utils.Util.getConfig("flashDimWidth")||com.inq.flash.client.control.FlashPeer.getSkinWidth()},com.inq.flash.client.chatskins.SkinControl.getSkinLeft=function(){return com.inq.utils.Util.getConfig("flashPosX")||com.inq.flash.client.control.FlashPeer.getSkinLeft()},com.inq.flash.client.chatskins.SkinControl.getSkinTop=function(){return com.inq.utils.Util.getConfig("flashPosY")||com.inq.flash.client.control.FlashPeer.getSkinTop()},com.inq.flash.client.chatskins.SkinControl.getPersistentXPos=function(){return com.inq.utils.Util.getConfig("persistentXPos")||com.inq.flash.client.control.FlashPeer.getPersistentXPos()},com.inq.flash.client.chatskins.SkinControl.getPersistentYPos=function(){return com.inq.utils.Util.getConfig("persistentYPos")||com.inq.flash.client.control.FlashPeer.getPersistentYPos()},com.inq.flash.client.chatskins.SkinControl.getPersistentWidth=function(){return com.inq.utils.Util.getConfig("persistentWidth")||com.inq.flash.client.control.FlashPeer.getPersistentWidth()},com.inq.flash.client.chatskins.SkinControl.getPersistentHeight=function(){return com.inq.utils.Util.getConfig("persistentHeight")||com.inq.flash.client.control.FlashPeer.getPersistentHeight()},com.inq.flash.client.chatskins.SkinControl.isTxtInputAutofocusBlocked=function(){return com.inq.utils.Util.getConfig("blockTxtInputAutofocus",!1)},com.inq.flash.client.chatskins.SkinControl.fireCustomEvent=function(t,e){if("PrechatSurveyShown"==t){if(1==com.inq.flash.client.control.PersistenceManager.GetValue(PRE_CHAT_SURVEY_SHOWN))return;com.inq.flash.client.control.PersistenceManager.SetValue(PRE_CHAT_SURVEY_SHOWN,1)}else if("PrechatSurveyCompleted"==t){if(1==com.inq.flash.client.control.PersistenceManager.GetValue(PRE_CHAT_SURVEY_COMPLETED))return;com.inq.flash.client.control.PersistenceManager.SetValue(PRE_CHAT_SURVEY_COMPLETED,1)}com.inq.flash.client.control.FlashPeer.fireCustomEvent(t,null,null,e)},com.inq.flash.client.chatskins.SkinControl.closeParentWindow=function(){com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&window.parent.close()},com.inq.flash.client.chatskins.SkinControl.initializePanelHandler=function(t,e){if(!com.inq.utils.Util.getConfig("fixChatOnPanelOpenClose",!1)||com.inq.utils.Capabilities.isPhone()||com.inq.flash.client.control.FlashPeer.isPersistentWindow())return null;var i,n=parent.document;i=com.inq.utils.Util.getConfig("divSkin",!1)?com.inq.ui.Container._getElementById("tcChat_Skin",n):com.inq.ui.Container._getElementById("inqChatStage",n);var o={};return o.initialWidth=parseInt(i.style.width),o.initialHeight=parseInt(i.style.height),o.initialLeft=parseInt(i.style.left),o.initialTop=parseInt(i.style.top),e||com.inq.flash.client.chatskins.SkinControl.determinePanelPosition(t,o),o},com.inq.flash.client.chatskins.SkinControl.fixChatOnPanelOpenClose=function(t,e,i){if(com.inq.utils.Util.getConfig("fixChatOnPanelOpenClose",!1)&&!com.inq.utils.Capabilities.isPhone()&&!com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&null!=i){var n,o=parent.document;n=com.inq.utils.Util.getConfig("divSkin",!1)?com.inq.ui.Container._getElementById("tcChat_Skin",o):com.inq.ui.Container._getElementById("inqChatStage",o);var a=parseInt(n.style.width)-i.initialWidth,s=parseInt(n.style.height)-i.initialHeight,l=i.initialLeft,r=i.initialTop,c=!1;0==a&&0==s||(e&&com.inq.flash.client.chatskins.SkinControl.determinePanelPosition(t,i),0!=a&&i.isLeftPanel&&((l=i.initialLeft-a)<0&&(l=0),c=!0),0!=s&&((r=i.initialTop-s)<0&&(r=0),c=!0),c&&(Application.application.stg.style.left=l+"px",Application.application.stg.style.top=r+"px",Application.MoveSizeDiv2Stage(null,null,l,r)))}},com.inq.flash.client.chatskins.SkinControl.determinePanelPosition=function(t,e){e.isLeftPanel=!1,e.isTopPanel=!1;var i=parent.document;try{var n=com.inq.ui.Container._getElementById("tcChat_"+t,i);n||(n=document.getElementById(t));var o=n.getBoundingClientRect(),a=o.left,s=o.top,l=-1,r=-1;if(com.inq.utils.Util.getConfig("divSkin",!1)){var c=Application.application.getCanvas("chat")||Application.application.getCanvas("Chat");c&&(l=(h=c._div.getBoundingClientRect()).left,r=h.top)}else{var h=com.inq.ui.Container._getElementById("inqChatStage",i);l=parseInt(h.style.left),r=parseInt(h.style.top)}com.inq.utils.Util.getConfig("divSkin",!1)?(l>=a&&(e.isLeftPanel=!0),r>=s&&(e.isTopPanel=!0)):(a<1&&(e.isLeftPanel=!0),s<1&&(e.isTopPanel=!0))}catch(t){}},com.inq.flash.client.chatskins.SkinControl.stopScrollPropagation=function(){if(!1!==com.inq.utils.Capabilities.isPhone()){var t=Application.application.getCanvas("chat")||Application.application.getCanvas("Chat");t&&i(t._div);var e=Application.application.getCanvas("chatFooter");e&&i(e._div)}function i(t){com.inq.utils.Capabilities.BindListener(t,"touchmove",(function(t){t.preventDefault(),haxe.Log.trace("Prevented 'touchmove' event",{className:"skinControl",methodName:"stopScrollPropagation"})}))}},com.inq.flash.client.chatskins.SkinControl.setAgentImage=function(t){if(!com.inq.flash.client.chatskins.SkinControl.agentType||com.inq.flash.client.chatskins.SkinControl.agentType!==t)try{Application.application.getMxmlItem(com.inq.flash.client.chatskins.SkinControl.agentImageConfig.imageContainerId)._backgroundImage.src=com.inq.ui.SkinLoader.getSkinPath()+com.inq.flash.client.chatskins.SkinControl.agentImageConfig[t],com.inq.flash.client.chatskins.SkinControl.agentType=t}catch(t){haxe.Log.trace("Error while setting Agent type image "+Std.string(e),{fileName:"SkinControl.js",lineNumber:4630,className:"com.inq.flash.client.chatskins.SkinControl",methodName:"setAgentImage"})}},com.inq.flash.client.chatskins.SkinControl.InitializeAgentImage=function(){com.inq.flash.client.chatskins.SkinControl.agentImageTypeEnabled=com.inq.utils.Util.getConfig(com.inq.utils.Util.SKIN_CONFIG_KEY_AGENT_IMAGE_ENABLED,!1),!0===com.inq.flash.client.chatskins.SkinControl.agentImageTypeEnabled&&(com.inq.flash.client.chatskins.SkinControl.agentImageConfig=com.inq.utils.Util.getConfig(com.inq.utils.Util.SKIN_CONFIG_KEY_AGENT_IMAGE_CONFIG,null),null===com.inq.flash.client.chatskins.SkinControl.agentImageConfig&&(com.inq.flash.client.chatskins.SkinControl.agentImageTypeEnabled=!1))},com.inq.flash.client.chatskins.SkinControl.agentImageConfig=null,com.inq.flash.client.chatskins.SkinControl.agentImageTypeEnabled=!1,com.inq.flash.client.chatskins.SkinControl.agentType=null,com.inq.flash.client.chatskins.SkinControl.VIRTUAL_AGENT="virtualAgent",com.inq.flash.client.chatskins.SkinControl.LIVE_AGENT="liveAgent",com.inq.flash.client.chatskins.SkinControl.VIRTUAL_AGENT_IMAGE_NAME="virtualAgentImageSrc",com.inq.flash.client.chatskins.SkinControl.LIVE_AGENT_IMAGE_NAME="liveAgentImageSrc",com.inq.flash.client.chatskins.SkinControl.CSDL_CONNECTION="_ConnectionType=Connection Type^^ConnectionType=",com.inq.flash.client.chatskins.SkinControl.CSDL_CALLERPHONE="_CallerPhone=CallerPhone^^CallerPhone=",com.inq.flash.client.chatskins.SkinControl.CALL_SUBMIT_PRE="chat_submit_",com.inq.flash.client.chatskins.SkinControl.CSDL_WEBCALLADDRESS="_WebCall=WebCall^^WebCall=",com.inq.flash.client.chatskins.SkinControl.CSDL_WEBRTC_CAP="_WebRTCCapable=WebRTCCapable^^WebRTCCapable=",com.inq.flash.client.chatskins.SkinControl.callStreamData="",com.inq.flash.client.chatskins.SkinControl.callerNameString="",com.inq.flash.client.chatskins.SkinControl.customerIndx=0,com.inq.flash.client.chatskins.SkinControl.hostIndx=0,com.inq.flash.client.chatskins.SkinControl.click2call=!1,com.inq.flash.client.chatskins.SkinControl.SEC=1e3,com.inq.flash.client.chatskins.SkinControl.MIN=60*com.inq.flash.client.chatskins.SkinControl.SEC,com.inq.flash.client.chatskins.SkinControl.HOUR=60*com.inq.flash.client.chatskins.SkinControl.MIN,com.inq.flash.client.chatskins.SkinControl.DAY=24*com.inq.flash.client.chatskins.SkinControl.HOUR,com.inq.flash.client.chatskins.SkinControl.DEFAULT_POST_CHAT_TIMEOUT_SEC=3600,com.inq.flash.client.chatskins.SkinControl.TIMEOUT_AVOIDANCE_SEC=30,com.inq.flash.client.chatskins.SkinControl.timerTimeout=null,com.inq.flash.client.chatskins.SkinControl.keyCount=0,com.inq.flash.client.chatskins.SkinControl.resizable=!0,com.inq.flash.client.chatskins.SkinControl.autoAgent=null,com.inq.flash.client.chatskins.SkinControl.bInternationalization=!0,com.inq.flash.client.chatskins.SkinControl._htmlText="",com.inq.flash.client.chatskins.SkinControl.bHaveFocus=!1,com.inq.flash.client.chatskins.SkinControl.objHasFocus=null,com.inq.flash.client.chatskins.SkinControl.openerScript=null,com.inq.flash.client.chatskins.SkinControl.bInitialized=!1,com.inq.flash.client.chatskins.SkinControl.bChatIsVisible=!1,com.inq.flash.client.chatskins.SkinControl.sSocketIP=null,com.inq.flash.client.chatskins.SkinControl.cw=null,com.inq.flash.client.chatskins.SkinControl.textInput=null,com.inq.flash.client.chatskins.SkinControl.timerForTyping=-1,com.inq.flash.client.chatskins.SkinControl.typingTimeout=4e3,com.inq.flash.client.chatskins.SkinControl.userWasTyping=!1,com.inq.flash.client.chatskins.SkinControl.tYImageLabel="",com.inq.flash.client.chatskins.SkinControl.DEFAULT_TY_IMAGE_LABEL="Thank you. Close this window.",com.inq.flash.client.chatskins.SkinControl.bPersistBtnPressed=!1,com.inq.flash.client.chatskins.SkinControl.chatContainer=null,com.inq.flash.client.chatskins.SkinControl.isThankYou=!1,com.inq.flash.client.chatskins.SkinControl.isThankYouShown=!1,com.inq.flash.client.chatskins.SkinControl.typeActivityMessageInProgress=!1,com.inq.flash.client.chatskins.SkinControl.customerTypedText="",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_NOT_AUTHORIZED="1",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_AUTOMATON="2",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_DENIED="3",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CUSTOMER_CLOSED="4",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_EXIT="5",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CLIENT_COMMAND="6",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_DO_EXIT="7",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CONNECTION_LOST="8",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CMSDKDMH="9",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_CMSDEXIT="10",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_ONRELEASE="11",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_KILLPOPUP="12",com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_UNKNOWN="0",com.inq.flash.client.chatskins.SkinControl.NATIVE_POST_CHAT_SURVEY_REGEXP=/(?:launchNativePostChatSurvey)/,com.inq.flash.client.chatskins.SkinControl.DATA_SURVEY_URL="data-survey-url"}(),y(1703),com.inq.flash.client.chatskins.SndMgr=function(){},$hxClasses["com.inq.flash.client.chatskins.SndMgr"]=com.inq.flash.client.chatskins.SndMgr,com.inq.flash.client.chatskins.SndMgr.__name__=["com","inq","flash","client","chatskins","SndMgr"],com.inq.flash.client.chatskins.SndMgr.btnMuteOn=null,com.inq.flash.client.chatskins.SndMgr.btnMuteOff=null,com.inq.flash.client.chatskins.SndMgr.soundURL=null,com.inq.flash.client.chatskins.SndMgr.BTN_CHIME_ON_TEXT="Chime active",com.inq.flash.client.chatskins.SndMgr.BTN_CHIME_OFF_TEXT="Chime off",com.inq.flash.client.chatskins.SndMgr.postInit={runCallback:function(){com.inq.flash.client.chatskins.SndMgr.postInit.callback&&(com.inq.flash.client.chatskins.SndMgr.postInit.callback(),com.inq.flash.client.chatskins.SndMgr.postInit.clear())},addCallback:function(t){com.inq.flash.client.chatskins.SndMgr.postInit.callback?com.inq.utils.ConsoleLogger.detect()&&window.console.error("SndMgr.postInit: multiple callbacks not implemented"):com.inq.flash.client.chatskins.SndMgr.postInit.callback=t},clear:function(){com.inq.flash.client.chatskins.SndMgr.postInit.callback=null},callback:null},com.inq.flash.client.chatskins.SndMgr._init=function(){com.inq.flash.client.chatskins.SndMgr.lazyInitDone=!1,com.inq.flash.client.chatskins.SndMgr.postInit.clear();var t=document.getElementById("divSound");return null!=t&&(t.innerHTML="",t.parentNode.removeChild(t)),!0},com.inq.flash.client.chatskins.SndMgr.soundSrc=function(t){if(t.indexOf(":/")<0&&!t.match(/^\/\//)){var e=com.inq.ui.SkinLoader.getSkinPath();t=e+("/"===e.charAt(e.length-1)?"":"/")+t}return t},com.inq.flash.client.chatskins.SndMgr.buildSoundDiv=function(){var t=document.getElementById("divSound");null==t&&((t=document.createElement("DIV")).id="divSound",t.style.cssText="position:absolute;top:0px;left:0px;display:block;width:1px;height:1px;overflow:hidden;opacity:0.01;filter:alpha(opacity=1)",document.body.appendChild(t)),com.inq.flash.client.chatskins.SndMgr.divSound=t,com.inq.flash.client.control.WebRTCMgr.initSounds();var e=com.inq.utils.Util.getConfig("html5AudioSrc",null);if(null!=e)if(e=com.inq.flash.client.chatskins.SndMgr.soundSrc(e),com.inq.utils.Capabilities.isMobile())try{com.inq.flash.client.chatskins.SndMgr.audio=top.document.createElement("audio"),com.inq.flash.client.chatskins.SndMgr.ios=com.inq.flash.client.chatskins.SndMgr.initIosAudio(e)}catch(t){}else(!com.inq.utils.Util.isIE||com.inq.utils.Util.getIEMajorVer(!0)>=9)&&com.inq.flash.client.chatskins.SndMgr.postInit.addCallback((function(){com.inq.flash.client.chatskins.SndMgr.initHTMLAudio(e)}))},com.inq.flash.client.chatskins.SndMgr.initIosAudio=function(t,e){var i=new Audio(t);i.loop=e||!1;var n=top.document,o={};return o.audio=i,o.startAudio=function(t){var e=!1;t&&"touchstart"==t.type?(e=!0,n.removeEventListener("touchstart",o.startAudio,!1),n.removeEventListener("keydown",o.startAudio,!1)):t&&"keydown"==t.type?(e=!0,n.removeEventListener("keydown",o.startAudio,!1),com.inq.utils.Capabilities.isSafariVersion9()?n.removeEventListener("touchend",o.startAudio,!1):n.removeEventListener("touchstart",o.startAudio,!1)):t&&"touchend"==t.type&&(e=!0,n.removeEventListener("touchend",o.startAudio,!1),n.removeEventListener("keydown",o.startAudio,!1)),o.audio.play(),e&&o.audio.pause()},com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isAndroid()||com.inq.utils.Capabilities.isTablet()?n.addEventListener("touchend",o.startAudio,!1):n.addEventListener("touchstart",o.startAudio,!1),n.addEventListener("keydown",o.startAudio,!1),o},com.inq.flash.client.chatskins.SndMgr.initHTMLAudio=function(t){var e=com.inq.utils.Util.getConfig("audiodatauri",null);e&&(t=e),com.inq.flash.client.chatskins.SndMgr.audio=new Audio(t),com.inq.flash.client.chatskins.SndMgr.audioSupport=!!com.inq.flash.client.chatskins.SndMgr.audio.play},com.inq.flash.client.chatskins.SndMgr.getMute=function(){return com.inq.flash.client.chatskins.SndMgr._mute?1:0},com.inq.flash.client.chatskins.SndMgr.isMuted=function(){return com.inq.flash.client.chatskins.SndMgr._mute},com.inq.flash.client.chatskins.SndMgr.setMute=function(t){com.inq.flash.client.chatskins.SndMgr._mute=t,com.inq.flash.client.control.PersistenceManager.SetValue(MUTE_SOUND,com.inq.flash.client.chatskins.SndMgr.getMute(),!1,!0)},com.inq.flash.client.chatskins.SndMgr.init=function(){com.inq.flash.client.chatskins.SndMgr.lazyInit(),com.inq.flash.client.chatskins.SndMgr.postInit.runCallback()},com.inq.flash.client.chatskins.SndMgr.lazyInitDone=!1,com.inq.flash.client.chatskins.SndMgr.lazyInit=function(){if(!com.inq.flash.client.chatskins.SndMgr.lazyInitDone)try{var t=com.inq.utils.Util.getConfig("soundEnabled",null);com.inq.flash.client.chatskins.SndMgr.soundEnabled=!!t;var e=com.inq.ui.SkinLoader.getSkinPath(),i=com.inq.utils.Capabilities.isMobile(),n=com.inq.utils.Util.getConfig("mute",null);null!==n&&com.inq.flash.client.chatskins.SndMgr.setMute(n);var o=com.inq.flash.client.control.PersistenceManager.GetValue(MUTE_SOUND,null);if(null==o?null!==t?com.inq.flash.client.chatskins.SndMgr.setMute(!t):com.inq.flash.client.chatskins.SndMgr.setMute(i):com.inq.flash.client.chatskins.SndMgr.setMute(!!o),com.inq.flash.client.chatskins.SndMgr.soundURL=com.inq.utils.Util.getConfig("soundURL",null),null!=com.inq.flash.client.chatskins.SndMgr.soundURL&&com.inq.flash.client.chatskins.SndMgr.soundURL.indexOf(":/")<0&&(com.inq.flash.client.chatskins.SndMgr.soundURL=e+("/"===e.charAt(e.length-1)?"":"/")+com.inq.flash.client.chatskins.SndMgr.soundURL),com.inq.flash.client.chatskins.SndMgr.buildSoundDiv(),com.inq.flash.client.chatskins.SndMgr.swfSoundSuppress=com.inq.utils.Util.getConfig("swfSoundSuppress",!1),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnMuteOff")&&com.inq.flash.client.chatskins.SkinControl.isInApplication("btnMuteOn"))com.inq.flash.client.chatskins.SndMgr.btnMuteOn=Application.application.getButton("btnMuteOn"),com.inq.flash.client.chatskins.SndMgr.btnMuteOff=Application.application.getButton("btnMuteOff"),com.inq.flash.client.chatskins.SndMgr.fixButtons(),null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOn&&com.inq.flash.client.chatskins.SndMgr.btnMuteOn.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SndMgr.actionBtnMuteOff),null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOff&&com.inq.flash.client.chatskins.SndMgr.btnMuteOff.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SndMgr.actionBtnMuteOn);else if(com.inq.flash.client.chatskins.SkinControl.isInApplication("btnChime")){com.inq.flash.client.chatskins.SndMgr.btnChime=Application.application.getButton("btnChime");var a=com.inq.flash.client.chatskins.SndMgr.isMuted(),s=a?com.inq.utils.Util.getConfig("chimeOffText",com.inq.flash.client.chatskins.SndMgr.BTN_CHIME_OFF_TEXT):com.inq.utils.Util.getConfig("chimeOnText",com.inq.flash.client.chatskins.SndMgr.BTN_CHIME_ON_TEXT);(com.inq.utils.Capabilities.isIphone()||com.inq.utils.Capabilities.isIpad())&&(com.inq.flash.client.chatskins.SndMgr.btnChime._img.setAttribute("aria-live","polite"),com.inq.flash.client.chatskins.SndMgr.setAriaBusy(!0),com.inq.flash.client.chatskins.SndMgr.btnChime._img.setAttribute("alt",s)),com.inq.flash.client.chatskins.SndMgr.btnChime._img.setAttribute("aria-pressed",a?"false":"true"),com.inq.flash.client.chatskins.SndMgr.btnChime._img.setAttribute("title",s),com.inq.flash.client.chatskins.SndMgr.isMuted()&&com.inq.flash.client.chatskins.SndMgr.btnChime._backgroundImage.setAttribute("src",e+com.inq.utils.Util.getConfig("soundOffImgURL",null)),null!=com.inq.flash.client.chatskins.SndMgr.btnChime&&com.inq.flash.client.chatskins.SndMgr.btnChime.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.chatskins.SndMgr.toggleBtnChime)}else com.inq.flash.client.chatskins.SndMgr.setMute(!0);com.inq.flash.client.chatskins.SndMgr.lazyInitDone=!0}catch(t){com.inq.utils.ConsoleLogger.detect()&&window.console.error("SndMgr.init:",t)}},com.inq.flash.client.chatskins.SndMgr.actionBtnMuteOn=function(t){try{com.inq.utils.Capabilities.isMobile()||(com.inq.flash.client.chatskins.SndMgr.setMute(!0),null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOn&&null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOff?com.inq.flash.client.chatskins.SndMgr.fixButtons():null!=com.inq.flash.client.chatskins.SndMgr.btnChime&&com.inq.flash.client.chatskins.SndMgr.toggleBtnChime())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return!0},com.inq.flash.client.chatskins.SndMgr.actionBtnMuteOff=function(t){try{com.inq.utils.Capabilities.isMobile()||(com.inq.flash.client.chatskins.SndMgr.setMute(!1),null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOn&&null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOff?com.inq.flash.client.chatskins.SndMgr.fixButtons():null!=com.inq.flash.client.chatskins.SndMgr.btnChime&&com.inq.flash.client.chatskins.SndMgr.toggleBtnChime())}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return!0},com.inq.flash.client.chatskins.SndMgr.fixButtons=function(){null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOn&&null!=com.inq.flash.client.chatskins.SndMgr.btnMuteOff&&(com.inq.flash.client.chatskins.SndMgr.btnMuteOn.setVisible(com.inq.flash.client.chatskins.SndMgr.isMuted()),com.inq.flash.client.chatskins.SndMgr.btnMuteOff.setVisible(!com.inq.flash.client.chatskins.SndMgr.btnMuteOn.getVisible()))},com.inq.flash.client.chatskins.SndMgr.toggleBtnChime=function(){if(null!=com.inq.flash.client.chatskins.SndMgr.btnChime){var t=com.inq.flash.client.chatskins.SndMgr.btnChime._img,e=com.inq.flash.client.chatskins.SndMgr.btnChime._backgroundImage,i=com.inq.ui.SkinLoader.getSkinPath(),n=com.inq.utils.Util.getConfig("chimeOnText",com.inq.flash.client.chatskins.SndMgr.BTN_CHIME_ON_TEXT),o=com.inq.utils.Util.getConfig("chimeOffText",com.inq.flash.client.chatskins.SndMgr.BTN_CHIME_OFF_TEXT);"true"===t.getAttribute("aria-busy")&&com.inq.flash.client.chatskins.SndMgr.setAriaBusy(!1),com.inq.flash.client.chatskins.SndMgr.isMuted()?(com.inq.utils.Capabilities.isIphone()||com.inq.utils.Capabilities.isIpad()?com.inq.flash.client.chatskins.SndMgr.toggleBtnAnnouncedIos(n,500):com.inq.flash.client.chatskins.SndMgr.toggleBtnAnnounced(n),e.setAttribute("src",i+com.inq.utils.Util.getConfig("soundOnImgURL",null)),t.setAttribute("aria-pressed","true"),com.inq.flash.client.chatskins.SndMgr.setMute(!1)):(com.inq.utils.Capabilities.isIphone()||com.inq.utils.Capabilities.isIpad()?com.inq.flash.client.chatskins.SndMgr.toggleBtnAnnouncedIos(o):com.inq.flash.client.chatskins.SndMgr.toggleBtnAnnounced(o),e.setAttribute("src",i+com.inq.utils.Util.getConfig("soundOffImgURL",null)),t.setAttribute("aria-pressed","false"),com.inq.flash.client.chatskins.SndMgr.setMute(!0))}},com.inq.flash.client.chatskins.SndMgr.toggleBtnAnnounced=function(t){t=t||"";try{com.inq.flash.client.chatskins.SndMgr.btnChime._img.setAttribute("title",t),com.inq.utils.Timer.delay((function(){com.inq.aria.AriaMsg.addAriaMsg(t)}),500)}catch(t){com.inq.utils.ConsoleLogger.detect()&&window.console.error("SndMgr.toggleBtnAnnounced:",t)}},com.inq.flash.client.chatskins.SndMgr.toggleBtnAnnouncedIos=function(t,e){t=t||"",e=(e||0)<100?100:e;try{var i=com.inq.flash.client.chatskins.SndMgr.btnChime._img;com.inq.utils.Timer.delay((function(){i.setAttribute("title",t),i.setAttribute("alt",t)}),e)}catch(t){com.inq.utils.ConsoleLogger.detect()&&window.console.error("SndMgr.toggleBtnAnnouncedIos:",t)}},com.inq.flash.client.chatskins.SndMgr.setAriaBusy=function(t){void 0===t&&(t=!0),null!=com.inq.flash.client.chatskins.SndMgr.btnChime&&com.inq.flash.client.chatskins.SndMgr.btnChime._img.setAttribute("aria-busy",t)},com.inq.flash.client.chatskins.SndMgr.PlaySound=function(t){if(com.inq.flash.client.chatskins.SndMgr.postInit.runCallback(),com.inq.utils.Capabilities.isMobile()&&void 0!==com.inq.flash.client.chatskins.SndMgr.audio)null!=com.inq.flash.client.chatskins.SndMgr.btnChime&&com.inq.flash.client.chatskins.SndMgr.isMuted()||com.inq.flash.client.chatskins.SndMgr.ios.startAudio();else if(!com.inq.flash.client.chatskins.SndMgr.isMuted()&&com.inq.flash.client.chatskins.SndMgr.soundEnabled){if(null!=com.inq.flash.client.chatskins.SndMgr.btnChime){if(com.inq.flash.client.chatskins.SndMgr.isMuted())return}else if(null==com.inq.flash.client.chatskins.SndMgr.btnMuteOn||null==com.inq.flash.client.chatskins.SndMgr.btnMuteOff)return;com.inq.flash.client.chatskins.SndMgr.play(t)}},com.inq.flash.client.chatskins.SndMgr.play=function(t){if(com.inq.utils.Capabilities.isMobile()&&void 0!==com.inq.flash.client.chatskins.SndMgr.audio)com.inq.flash.client.chatskins.SndMgr.ios.startAudio();else if(com.inq.flash.client.chatskins.SndMgr.audioSupport)com.inq.flash.client.chatskins.SndMgr.audio.play();else if(null!=t||null!=(t=com.inq.flash.client.chatskins.SndMgr.soundURL))try{if(null!=com.inq.flash.client.chatskins.SndMgr.divSound){var e=com.inq.utils.Util.getConfig("soundSwf",null),i=null;try{i=t.split(".").pop()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;i="mp3"}if(i=null!=i?i.toLowerCase():"mp3",null!=t&&("mp3"==i||"wav"==i)){var n=window.document.getElementById("inqSounder");if(null==n){var o=o=document.createElement("BGSOUND");o.id="inqSounder",o.loop="1",document.body.insertBefore(o,null)}if(null!=(n=window.document.all.inqSounder)&&null!=n.src)return void(n.src=t)}null==e&&(e="PlaySoundFile.swf"),e=com.inq.ui.SkinLoader.getSkinPath()+"/"+e;var a=null==t?null:"soundURL="+t+" ",s=Math.floor(1e3*Math.random()),l=document.all?"":'<embed src="'+e+'" quality="high" play="true" loop="false" scale="showall" '+(null!=a?'flashvars="'+a+'" ':"")+'wmode="transparent" devicefont="false" bgcolor="#ffffff" name="PlaySoundFile" menu="false" allowfullscreen="false" allowscriptaccess="sameDomain" salign="" type="application/x-shockwave-flash" width="10" align="middle" height="10"> \n',r=com.inq.flash.client.chatskins.SndMgr.searchForMimeType(i);r||"mp3"!=i||(r=com.inq.flash.client.chatskins.SndMgr.searchForMimeType("mp4")),r?l='<embed src="'+t+'" wmode="transparent" autostart="true" loop="false" width="1" height="1" controller="false"></embed>':com.inq.flash.client.chatskins.SndMgr.swfSoundSuppress&&(l="");var c='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="sound'+s+'" data="'+e+'" width="2"  height="2"  id="PlaySoundFile" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="'+e+'" /> <param name="loop" value="false" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="bgcolor" value="#FF000" />'+(null!=t?' <param name="flashvars" value="soundURL='+t+'" />':"")+(null!=a?' <param name="flashvars" value="'+a+'" />':"")+l+"</object>";null!=t&&(c='<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" name="sound'+s+'" data="'+t+'" width="1"  height="1"  id="PlaySoundFileMediaPlayer" align="middle"> <param name="wmode" value="transparent" /> <PARAM name="SRC" VALUE="'+t+'"> <PARAM name="AUTOPLAY" VALUE="1"> <PARAM name="Filename" VALUE="'+t+'"> <PARAM name="AutoSize" VALUE="0"> <PARAM name="AutoStart" VALUE="0"> <PARAM name="ClickToPlay" VALUE="1"> <PARAM name="PlayCount" VALUE="1"> <PARAM name="ShowControls" VALUE="0"> <PARAM name="ShowAudioControls" VALUE="0"> <PARAM name="ShowDisplay" VALUE="0"> <PARAM name="ShowPositionControls" VALUE="-1"> <PARAM name="ShowStatusBar" VALUE="0"> <PARAM name="ShowTracker" VALUE="0">\n'+c+"\n</object>"),null!=t&&(c='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" name="sound'+s+'" data="'+t+'" width="2"  height="2"  id="PlaySoundFileQT" align="middle"> <param name="wmode" value="transparent" /> <PARAM name="SRC" VALUE="'+t+'"> <PARAM name="AUTOPLAY" VALUE="true"><param name="controller" value="false">\n'+c+"\n</object>"),com.inq.flash.client.chatskins.SndMgr.divSound.innerHTML=c}}catch(t){com.inq.utils.ConsoleLogger.detect()&&window.console.error("SndMgr.play:",t)}},com.inq.flash.client.chatskins.SndMgr.searchForMimeType=function(t){var e=window.navigator.mimeTypes;if(null==e||e.length<1)return!1;for(var i=0,n=e.length;i<n;){var o=e[i++].suffixes.split(",");if(!(null==o||o.length<1))for(var a=0,s=o.length;a<s;)if(t==o[a++])return!0}return!1},com.inq.flash.client.chatskins.SndMgr.prototype.__class__=com.inq.flash.client.chatskins.SndMgr,com.inq.flash.client.chatskins.SndMgr.divSound=null,com.inq.flash.client.chatskins.SndMgr._initialized=com.inq.flash.client.chatskins.SndMgr._init(),com.inq.flash.client.chatskins.SndMgr._mute=!1,com.inq.flash.client.chatskins.SndMgr.soundEnabled=!0,com.inq.flash.client.chatskins.SndMgr.swfSoundSuppress=!1,com.inq.flash.client.chatskins.VideoMgr={},com.inq.flash.client.chatskins.VideoMgr.init=function(){com.inq.flash.client.chatskins.VideoMgr.customerAcceptsVideo=com.inq.utils.Util.getConfig("customerAcceptsVideo","Customer accepts video-chat invitation."),com.inq.flash.client.chatskins.VideoMgr.customerDeclinesVideo=com.inq.utils.Util.getConfig("customerDeclinesVideo","Customer declines video-chat invitation."),com.inq.flash.client.chatskins.VideoMgr.customerStopsVideo=com.inq.utils.Util.getConfig("customerStopsVideo","Customer stops video-chat."),com.inq.flash.client.control.FlashPeer.setCiFunction("ciAcceptVideoInv",com.inq.flash.client.chatskins.VideoMgr.acceptVideo),com.inq.flash.client.control.FlashPeer.setCiFunction("ciDeclineVideoInv",com.inq.flash.client.chatskins.VideoMgr.declineVideo),com.inq.flash.client.control.FlashPeer.setCiFunction("ciStopVideo",com.inq.flash.client.chatskins.VideoMgr.stopVideo)},com.inq.flash.client.chatskins.VideoMgr.acceptVideo=function(){com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendVideoMessage(com.inq.flash.client.chatskins.VideoMgr.customerAcceptsVideo,com.inq.flash.client.data.MessageFields.DATA_CLIENT_VIDEO_ACCEPT)},com.inq.flash.client.chatskins.VideoMgr.declineVideo=function(){com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendVideoMessage(com.inq.flash.client.chatskins.VideoMgr.customerDeclinesVideo,com.inq.flash.client.data.MessageFields.DATA_CLIENT_VIDEO_DECLINE)},com.inq.flash.client.chatskins.VideoMgr.stopVideo=function(){com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendVideoMessage(com.inq.flash.client.chatskins.VideoMgr.customerStopsVideo,com.inq.flash.client.data.MessageFields.DATA_CLIENT_VIDEO_STOP)},com.inq.flash.client.chatskins.VideoMgr.customerAcceptsVideo=null,com.inq.flash.client.chatskins.VideoMgr.customerDeclinesVideo=null,com.inq.flash.client.chatskins.VideoMgr.customerStopsVideo=null,com.inq.flash.client.chatskins.XTrace=function(){},$hxClasses["com.inq.flash.client.chatskins.XTrace"]=com.inq.flash.client.chatskins.XTrace,com.inq.flash.client.chatskins.XTrace.__name__=["com","inq","flash","client","chatskins","XTrace"],com.inq.flash.client.chatskins.XTrace.redirection=function(){return haxe.Log.trace=com.inq.flash.client.chatskins.XTrace.sysTrace,!0},com.inq.flash.client.chatskins.XTrace.setRedirection=function(){haxe.Log.trace=com.inq.flash.client.chatskins.XTrace.sysTrace,haxe.Log.trace("",{fileName:"XTrace.hx",lineNumber:34,className:"com.inq.flash.client.chatskins.XTrace",methodName:"setRedirection"})},com.inq.flash.client.chatskins.XTrace.sysTrace=function(t,e){e.fileName,e.lineNumber,e.methodName,Std.string(t)},com.inq.flash.client.chatskins.XTrace.StackTrace=function(t,e){null==e&&(e="WARNING:"),t.message,t.toString(),haxe.Log.trace(e+" ",{fileName:"XTrace.hx",lineNumber:137,className:"com.inq.flash.client.chatskins.XTrace",methodName:"StackTrace"})},com.inq.flash.client.chatskins.XTrace.prototype.__class__=com.inq.flash.client.chatskins.XTrace,y(3948),y(285),y(1637),com.inq.flash.client.control.MinimizeManager={},com.inq.flash.client.control.MinimizeManager.count=0,com.inq.flash.client.control.MinimizeManager.minimized=!1,com.inq.flash.client.control.MinimizeManager.onActionRestore=!1,com.inq.flash.client.control.MinimizeManager.restoreChatInProgress=!1,com.inq.flash.client.control.MinimizeManager.minimizedBySleep=!1,com.inq.flash.client.control.MinimizeManager.onClose=function(){com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)!=com.inq.flash.client.control.MinimizeManager.IS_MINIMIZED&&null!=com.inq.flash.client.control.MinimizeManager.btnRestore||!com.inq.flash.client.control.MinimizeManager.minimized||com.inq.flash.client.control.FlashPeer.isThankYouEnabled()?com.inq.flash.client.control.MinimizeManager.Restore():com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null)},com.inq.flash.client.control.MinimizeManager.lastAgentMessage=function(t){null!=t&&t.length>0&&com.inq.flash.client.control.MinimizeManager.isMinimized()&&(com.inq.flash.client.control.MinimizeManager.count++,com.inq.flash.client.control.PersistenceManager.SetValue(MINIMIZED_COUNT,com.inq.flash.client.control.MinimizeManager.count),com.inq.flash.client.control.MinimizeManager.displayAgentMessageAndCount(t)),com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)!=com.inq.flash.client.control.MinimizeManager.IS_MINIMIZED&&null!=com.inq.flash.client.control.MinimizeManager.btnRestore||com.inq.flash.client.control.MinimizeManager.Restore()},com.inq.flash.client.control.MinimizeManager.showCloseButton=function(){var t=Application.application.getButton("btnCloseChat");null!=t&&(t.setVisible(!0),null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.setVisible(!1),null!=com.inq.flash.client.control.MinimizeManager.btnMinimize&&(com.inq.flash.client.control.MinimizeManager.btnMinimize.setVisible(!1),com.inq.flash.client.control.MinimizeManager.btnMinimize=null))},com.inq.flash.client.control.MinimizeManager.displayAgentMessageAndCount=function(t){null!=t&&t.length>0&&com.inq.flash.client.control.MinimizeManager.isMinimized()&&com.inq.flash.client.control.MinimizeManager.count>0&&(com.inq.utils.Capabilities.isIOSWebView()&&com.inq.flash.client.control.MinimizeManager.floatMinimized(),null!=com.inq.flash.client.control.MinimizeManager.agentMsgCounter&&(com.inq.flash.client.control.MinimizeManager.agentMsgCounter._setText(""+com.inq.flash.client.control.MinimizeManager.count),com.inq.flash.client.control.MinimizeManager.agentMsgCounter._visible||(com.inq.utils.Capabilities.isAndroid()&&(com.inq.flash.client.control.MinimizeManager.agentMsgCounter._div.style.opacity=1),com.inq.flash.client.control.MinimizeManager.agentMsgCounter.setVisible(!0))),null!=com.inq.flash.client.control.MinimizeManager.agentText&&(com.inq.flash.client.control.MinimizeManager.agentText._setText(t),com.inq.flash.client.control.MinimizeManager.agentText._visible||com.inq.flash.client.control.MinimizeManager.agentText.setVisible(!0)))},com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsg=function(){if(com.inq.utils.Capabilities.isPhone()){var t="orientation"in window&&!(0==window.parent.orientation||180==window.parent.orientation);if(com.inq.utils.Capabilities.isChrome()){var e=parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1],10),i=window.top;isNaN(e)||e>=33&&e<=35?t=i.outerWidth>i.outerHeight:e>=36&&(t=i.screen.width>i.screen.height)}com.inq.flash.client.control.MinimizeManager.onoffSmallScreenWarning(t&&0==com.inq.flash.client.control.MinimizeManager.minimized)}},com.inq.flash.client.control.MinimizeManager.onoffSmallScreenWarning=function(t){var e=Application.application.getCanvas("smallScreenMsg"),i=Application.application.getButton("btnSmallScreen");e&&i&&(i.setAttribute("aria-label","For better chat experience, please use portrait mode"),e.setVisible(t),t&&(i.getPrimaryObject().blur(),i.setImageFocus()))},com.inq.flash.client.control.MinimizeManager.initButtonVisibility=function(){var t;com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()?null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized?com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.setVisible(!1):null!=com.inq.flash.client.control.MinimizeManager.btnMinimize&&com.inq.flash.client.control.MinimizeManager.btnMinimize.setVisible(!1):(null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("neverShow")&&"true"==com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("neverShow")&&com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)==com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE?(com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCloseChat")&&(t=Application.application.getButton("btnCloseChat")).setVisible(!0),com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.setVisible(!1)):null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("neverShow")&&"false"==com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("neverShow")&&com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)==com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE&&com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.setVisible(!0),null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)!=com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE?com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCloseChat")&&(t=Application.application.getButton("btnCloseChat")).setVisible(!1):(t=Application.application.getButton("btnCloseChat"))&&t.setVisible(!0))},com.inq.flash.client.control.MinimizeManager.attachButtonHandlers=function(){var t=window.parent;null!=com.inq.flash.client.control.MinimizeManager.btnMinimize&&com.inq.flash.client.control.MinimizeManager.btnMinimize.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.control.MinimizeManager.actionMinimize),null!=com.inq.flash.client.control.MinimizeManager.btnRestore&&com.inq.flash.client.control.MinimizeManager.btnRestore.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.control.MinimizeManager.actionRestore),com.inq.utils.Capabilities.isAndroid()||(com.inq.utils.Capabilities.BindListener(t,"scroll",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.BindListener(t,"resize",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.BindListener(t,"orientationchange",com.inq.flash.client.control.MinimizeManager.floatMinimized)),null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.addEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.control.MinimizeManager.actionReallyMinimize),com.inq.utils.Capabilities.isIphone()&&com.inq.flash.client.control.MinimizeManager.bindHandlerForClientInputFieldsIos()},com.inq.flash.client.control.MinimizeManager.restoreState=function(){var t=com.inq.flash.client.control.PersistenceManager.GetValue(MINIMIZED_COUNT,com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED),e=!0;com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?com.inq.flash.client.control.MinimizeManager.actionRestore(null,e):com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED!=t?(com.inq.flash.client.control.MinimizeManager.count=t,com.inq.flash.client.control.MinimizeManager.actionMinimize(null,e)):com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)==com.inq.flash.client.control.MinimizeManager.IS_MINIMIZED?com.inq.flash.client.control.MinimizeManager.actionReallyMinimize(null,e):com.inq.flash.client.control.MinimizeManager.actionRestore(null,e)},com.inq.flash.client.control.MinimizeManager.iPhoneSleepAwakeHandler=function(t){com.inq.flash.client.control.MinimizeManager.isMinimized()?com.inq.flash.client.control.MinimizeManager.minimizedBySleep&&"visible"===window.top.document.visibilityState&&setTimeout((function(){com.inq.flash.client.control.MinimizeManager.actionRestore(t,!1),com.inq.flash.client.control.MinimizeManager.minimizedBySleep=!1}),1e3):"hidden"===window.parent.document.visibilityState&&(com.inq.flash.client.control.MinimizeManager.minimizedBySleep=!0,com.inq.flash.client.control.MinimizeManager.actionMinimize(t,!1))},com.inq.flash.client.control.MinimizeManager.init=function(){com.inq.flash.client.control.FlashPeer.getIsSkinLocal()||com.inq.utils.Capabilities.isPhone()&&com.inq.flash.client.chatskins.SkinControl.isInApplication("smallScreenMsg")&&(com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsg(),com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint=com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsg,com.inq.utils.Capabilities.BindListener(window.parent,"orientationchange",com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint)),com.inq.utils.Capabilities.isPhone()&&com.inq.flash.client.chatskins.SkinControl.isInApplication("zoomedScreenMsg")&&com.inq.stage.ViewportMgr.impl.toggleZoomedScreenMsg(),com.inq.utils.Capabilities.isIphone()&&window.top.document.visibilityState&&com.inq.utils.Capabilities.BindListener(window.top.document,"visibilitychange",com.inq.flash.client.control.MinimizeManager.iPhoneSleepAwakeHandler),com.inq.flash.client.control.MinimizeManager.onActionRestore=!1,com.inq.flash.client.control.MinimizeManager.count=0,com.inq.flash.client.control.MinimizeManager.minimized=!1,com.inq.flash.client.control.MinimizeManager.elMinimized=Application.application.getMxmlItem("Minimized"),com.inq.flash.client.control.MinimizeManager.btnRestore=Application.application.getButton("btnRestore"),com.inq.flash.client.control.MinimizeManager.btnMinimize=Application.application.getButton("btnMinimize"),com.inq.flash.client.control.MinimizeManager.btnReallyMinimized=Application.application.getButton("btnReallyMinimized"),com.inq.flash.client.control.MinimizeManager.agentMsgCounter=Application.application.getMxmlItem("agentMsgCounter"),com.inq.flash.client.control.MinimizeManager.agentText=Application.application.getMxmlItem("agentText"),com.inq.flash.client.control.MinimizeManager.ariaMegMini=Application.application.getMxmlItem("tc-aria-readme-mini"),null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("floatRight")&&null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("right")&&(com.inq.flash.client.control.MinimizeManager.movedMinimize=Std.parseInt(com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("floatRight"))+Std.parseInt(com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("right"))),com.inq.flash.client.control.MinimizeManager.turnOffScaling(!0),com.inq.flash.client.control.MinimizeManager.attachButtonHandlers(),com.inq.ui.SkinLoader.newSkinLoaded?com.inq.ui.SkinLoader.newSkinLoaded=!1:(com.inq.flash.client.control.MinimizeManager.restoreState(),com.inq.flash.client.control.MinimizeManager.minimizeChatIfPageChanged()),com.inq.flash.client.control.MinimizeManager.initButtonVisibility()},com.inq.flash.client.control.MinimizeManager.turnOffScaling=function(t){if(null==t&&(t=!0),com.inq.utils.Capabilities.isMobile())try{window.parent.document.createElement("DIV").innerHTML=t?'<meta name="tcChat_viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0" />':'<meta name="tcChat_viewport" content="width=device-width, initial-scale=1, maximum-scale=10.0, minimum-scale=1, user-scalable=1" />'}catch(t){haxe.Log.trace("Error: "+Std.string(t),{fileName:"MinimizeManager.hx",lineNumber:248,className:"com.inq.flash.client.control.MinimizeManager",methodName:"turnOffScaling",customParams:[t]})}},com.inq.flash.client.control.MinimizeManager.removeScalingMeta=function(){var t=com.inq.ui.Container._getElementById("tcChat_viewport",parent.document);t&&t.parentNode.removeChild(t)},com.inq.flash.client.control.MinimizeManager.Close=function(){var t=window.parent;null!=com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint&&(com.inq.utils.Capabilities.UnbindListener(window.parent,"orientationchange",com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint),com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint=null),com.inq.utils.Capabilities.UnbindListener(window.top.document,"visibilitychange",com.inq.flash.client.control.MinimizeManager.iPhoneSleepAwakeHandler),com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()||(com.inq.flash.client.control.MinimizeManager.btnMinimize&&com.inq.flash.client.control.MinimizeManager.btnMinimize.removeEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.control.MinimizeManager.actionMinimize),com.inq.flash.client.control.MinimizeManager.btnRestore&&com.inq.flash.client.control.MinimizeManager.btnRestore.removeEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.control.MinimizeManager.actionRestore),com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.removeEventListener(com.inq.events.MouseEvent.CLICK,com.inq.flash.client.control.MinimizeManager.actionReallyMinimize),com.inq.flash.client.control.MinimizeManager.btnReallyMinimized=null,com.inq.flash.client.control.MinimizeManager.elMinimized=null,com.inq.flash.client.control.MinimizeManager.btnRestore=null,com.inq.flash.client.control.MinimizeManager.btnMinimize=null,com.inq.flash.client.control.MinimizeManager.agentMsgCounter=null,com.inq.flash.client.control.MinimizeManager.agentText=null,com.inq.flash.client.control.MinimizeManager.ariaMegMini=null,com.inq.flash.client.control.MinimizeManager.btnRestoreLocation=null,com.inq.utils.Capabilities.UnbindListener(t,"scroll",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.UnbindListener(t,"resize",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.UnbindListener(t,"orientationchange",com.inq.flash.client.control.MinimizeManager.floatMinimized)),com.inq.utils.Capabilities.isIphone()&&com.inq.flash.client.control.MinimizeManager.unBindHandlerForClientInputFieldsIos()},com.inq.flash.client.control.MinimizeManager.Restore=function(){try{com.inq.flash.client.control.MinimizeManager.minimized&&com.inq.flash.client.control.MinimizeManager.actionRestore()}catch(t){haxe.Log.trace("Error: "+Std.string(t),{fileName:"MinimizeManager.hx",lineNumber:295,className:"com.inq.flash.client.control.MinimizeManager",methodName:"Restore"})}},com.inq.flash.client.control.MinimizeManager.actionReallyMinimize=function(t){return 0==com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0)?com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null):com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()||(com.inq.flash.client.control.MinimizeManager.minimized=!0,com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendMinimizedMessage(),com.inq.flash.client.control.PersistenceManager.SetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.IS_MINIMIZED),com.inq.flash.client.chatskins.SkinControl.fireCustomEvent("ChatMinimized"),null!=com.inq.ui.Stage.getInstance()&&com.inq.ui.Stage.getInstance().setVisible(!1)),!1},com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn=null,com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtnAdded=null,com.inq.flash.client.control.MinimizeManager.dummyRestoreBtn={add:function(){try{var t=com.inq.ui.Container._getElementById("tcChat_btnRestore",parent.document);com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn=t.cloneNode(!0);var e=com.inq.ui.Container._getElementById("tcChat_btnRestore_img",parent.document);e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.id=com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.id+"_talkback";for(var i=0;i<com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.childElementCount;i++)com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.children[i].id=com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.children[i].id+"_talkback";com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.style.width="100%";var n=com.inq.ui.Container._getElementByTN("footer",window.parent.document);(n.length>0?n[0]:top.document.body).appendChild(com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn),com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtnAdded=!0}catch(t){}},show:function(){if(null!=com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn)try{com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.style.display="block";var t=com.inq.ui.Container._getElementById("tcChat_btnRestore_img",parent.document);t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")}catch(t){}},hide:function(){if(null!=com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn)try{com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.style.display="none";var t=com.inq.ui.Container._getElementById("tcChat_btnRestore_img",parent.document);t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden")}catch(t){}},remove:function(){if(null!=com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn)try{var t=com.inq.ui.Container._getElementById("tcChat_btnRestore_img",parent.document);t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden"),com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.parentNode.removeChild(com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn),com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn=null,com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtnAdded=null}catch(t){}}},com.inq.flash.client.control.MinimizeManager.actionMinimize=function(t,e){if(!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()&&((com.inq.utils.Capabilities.isIpad()||com.inq.utils.Capabilities.isIphone())&&com.inq.flash.client.chatskins.SndMgr.setAriaBusy(!0),com.inq.flash.client.control.MinimizeManager.minimized=!0,com.inq.utils.Capabilities.isIphone()&&!0!==e&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.scrollToPrevious(),com.inq.flash.client.control.PersistenceManager.SetValue(MINIMIZED_COUNT,com.inq.flash.client.control.MinimizeManager.count),com.inq.flash.client.chatskins.SkinControl.fireCustomEvent("ChatMinimized"),null!=com.inq.flash.client.control.MinimizeManager.elMinimized&&(com.inq.flash.client.control.MinimizeManager.elMinimized.setVisible(!0),com.inq.utils.Capabilities.isAndroid()&&null!=com.inq.flash.client.control.MinimizeManager.agentMsgCounter&&(com.inq.flash.client.control.MinimizeManager.agentMsgCounter._div.style.opacity=0,com.inq.flash.client.control.MinimizeManager.agentMsgCounter._div.style.display="")),null!=com.inq.ui.Stage.getInstance()&&(com.inq.utils.Capabilities.isPhone()&&!0!==e||com.inq.ui.Stage.getInstance().setVisible(!1)),com.inq.utils.Capabilities.isAndroid()||com.inq.flash.client.control.MinimizeManager.floatMinimized(t),com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendMinimizedMessage(),com.inq.utils.Capabilities.isPhone()||com.inq.flash.client.chatskins.ScrollMonitor.bindAll(),com.inq.flash.client.control.FlashPeer.getIsBuilder()&&(com.inq.flash.client.control.MinimizeManager.agentText&&(com.inq.flash.client.control.MinimizeManager.agentText._setText("is there anything else I can help you with?"),com.inq.flash.client.control.MinimizeManager.agentText.setVisible(!0)),com.inq.flash.client.control.MinimizeManager.agentMsgCounter._setText(3),com.inq.flash.client.control.MinimizeManager.agentMsgCounter.setVisible(!0)),Inq.CBM&&Inq.CBM.banner&&Inq.CBM.banner.adjustRestoreDivForCobBannerRef))try{Inq.CBM.banner.adjustRestoreDivForCobBannerRef()}catch(s){haxe.Log.trace("Error: "+Std.string(s),{fileName:"MinimizeManager.js",lineNumber:731,className:"com.inq.flash.client.control.MinimizeManager",methodName:"actionMinimize",customParams:[s]})}if(com.inq.utils.Capabilities.isIphone()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.blurFocusedElement(),null!=com.inq.flash.client.control.MinimizeManager.btnRestore){if(com.inq.utils.Capabilities.isAndroid()&&com.inq.utils.Capabilities.isTablet()){var i=window.top.document.body;if(i.scrollWidth>window.top.innerWidth){var n=Application.application.getMxmlItem("Minimized"),o=n&&n.styles;o&&o.right&&o.bottom?window.top.scroll(i.clientWidth-o.right,i.clientHeight-o.bottom):o&&o.top&&o.left&&window.top.scroll(0+o.left,0+o.top)}e&&(com.inq.flash.client.control.MinimizeManager.restoreChatInProgress=!0),com.inq.utils.Timer.delay(a,500)}else com.inq.utils.Capabilities.isPhone()?(com.inq.flash.client.control.MinimizeManager.fixPhoneMinimizedWidth(),1==com.inq.utils.Util.getConfig("isTalkBackDummyRestoreBtnUsed",!1)?(null==com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn?com.inq.flash.client.control.MinimizeManager.dummyRestoreBtn.add():com.inq.flash.client.control.MinimizeManager.dummyRestoreBtn.show(),window.setTimeout((function(){com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtn.getElementsByTagName("input")[0].focus(),com.inq.ui.Stage.getInstance().setVisible(!1),com.inq.flash.client.control.FlashPeer.onChatMinimize()}),500)):(e&&(com.inq.flash.client.control.MinimizeManager.restoreChatInProgress=!0),com.inq.utils.Timer.delay(a,700))):com.inq.utils.Capabilities.isTablet()?com.inq.utils.Timer.delay(a,1e3):com.inq.flash.client.control.MinimizeManager.btnRestore.setImageFocus();function a(){com.inq.flash.client.control.MinimizeManager.btnRestore.setImageFocus(),com.inq.utils.Capabilities.isPhone()&&com.inq.ui.Stage.getInstance().setVisible(!1),com.inq.flash.client.control.FlashPeer.onChatMinimize()}}return com.inq.flash.client.chatskins.SkinControl.hideModalWindow(!1),com.inq.utils.Capabilities.isAndroid()&&Application.savePage&&null!==Application.savePage.bodyPosition&&(top.window.document.body.style.position=Application.savePage.bodyPosition,Application.savePage.bodyPosition=null),!1},com.inq.flash.client.control.MinimizeManager.actionRestore=function(t,e){if(com.inq.flash.client.control.MinimizeManager.isChatRestored=!1,!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()){if(t&&(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched=!0),com.inq.flash.client.chatskins.ChatTextFocusMonitor.saveWindowPositionForce(),com.inq.flash.client.control.MinimizeManager.count=0,com.inq.flash.client.control.MinimizeManager.minimized=!1,null!=com.inq.flash.client.control.MinimizeManager.agentMsgCounter&&com.inq.flash.client.control.MinimizeManager.agentMsgCounter.setVisible(!1),null!=com.inq.flash.client.control.MinimizeManager.agentText&&com.inq.flash.client.control.MinimizeManager.agentText.setVisible(!1),com.inq.flash.client.control.PersistenceManager.GetValue(MINIMIZED_COUNT,com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED)!=com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED&&(com.inq.flash.client.chatskins.SkinControl.hideModalWindow(!0),com.inq.flash.client.control.MinimizeManager.isChatRestored=!0),com.inq.flash.client.control.PersistenceManager.SetValue(MINIMIZED_COUNT,com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED),com.inq.flash.client.chatskins.SkinControl.fireCustomEvent("ChatRestored"),null!=com.inq.flash.client.control.MinimizeManager.elMinimized&&com.inq.flash.client.control.MinimizeManager.elMinimized.setVisible(!1),1==com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtnAdded&&com.inq.flash.client.control.MinimizeManager.dummyRestoreBtn.hide(),null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)==com.inq.flash.client.control.MinimizeManager.IS_MINIMIZED&&com.inq.flash.client.control.PersistenceManager.SetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE),com.inq.flash.client.chatskins.SkinControl.isInApplication("btnCloseChat")&&Application.application.getButton("btnCloseChat").setVisible(!0),null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&"false"==com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("neverShow")&&com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)==com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE?com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.setStyle("right",com.inq.flash.client.control.MinimizeManager.movedMinimize+"px"):null!=com.inq.flash.client.control.MinimizeManager.btnReallyMinimized&&"true"==com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.getStyle("neverShow")&&com.inq.flash.client.control.PersistenceManager.GetValue(REALLY_MINIMIZED,com.inq.flash.client.control.MinimizeManager.count)==com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE&&com.inq.flash.client.control.MinimizeManager.btnReallyMinimized.setVisible(!1),null!=com.inq.ui.Stage.getInstance()&&(com.inq.flash.client.chatskins.ScrollMonitor.moveChat(),com.inq.ui.Container.show("chat"),com.inq.ui.Stage.getInstance().setVisible(!0),Application.application.setVisible(!0)),com.inq.utils.Capabilities.isPhone()&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid())Application.SetArea(com.inq.utils.Capabilities.getViewport()),com.inq.stage.ViewportMgr.uponResize();else{var i=com.inq.ui.Container._getElementById(com.inq.ui.Container.SC_SKIN,parent.document);if(i&&0===i.clientWidth){var n=new com.inq.utils.Timer(25);n.run=function(){0!==i.clientWidth&&(Application.Resize(),n.stop())}}else Application.Resize()}null!=com.inq.ui.Stage.getInstance()&&com.inq.flash.client.chatskins.SkinControl.scrollTranscriptToEnd(),null!=com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint&&com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsg(),com.inq.utils.Capabilities.isPhone()&&com.inq.flash.client.chatskins.SkinControl.isInApplication("zoomedScreenMsg")&&com.inq.stage.ViewportMgr.impl.toggleZoomedScreenMsg(),com.inq.flash.client.control.MinimizeManager.isChatRestored&&com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendRestoredMessage(),com.inq.flash.client.chatskins.ScrollMonitor.moveChat()}return com.inq.utils.Util.getConfigAsBoolean("enableModal")&&com.inq.utils.Capabilities.isAndroid()&&com.inq.utils.Capabilities.isPhone()&&(null===Application.savePage.bodyPosition&&(Application.savePage.bodyPosition=top.window.document.body.style.position),top.window.document.body.style.position="fixed"),com.inq.flash.client.control.MinimizeManager.restoreFocusedElement(t,e,com.inq.flash.client.control.MinimizeManager.isChatRestored),com.inq.flash.client.control.FlashPeer.applyAcifCommands(),com.inq.aria.AriaMsg.clearAriaMsg(),!1},com.inq.flash.client.control.MinimizeManager.minimizeChatIfPageChanged=function(){try{if(com.inq.utils.Util.getParentReferrer()&&com.inq.utils.Capabilities.isPhone()&&1!==com.inq.utils.Util.getNavigationType()&&!com.inq.flash.client.control.MinimizeManager.isChatRestored&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()&&!com.inq.flash.client.control.FlashPeer.isCEAPIPostChatSurveyMode()&&com.inq.flash.client.control.PersistenceManager.GetValue(CHAT_ENGAGED,!1)){var t=new URL(com.inq.utils.Util.getParentReferrer()),e=t.host+t.pathname,i=com.inq.utils.Util.getParentLocation();e!==i.host+i.pathname&&com.inq.utils.Timer.delay((function(){com.inq.flash.client.control.MinimizeManager.actionMinimize()}),100)}}catch(t){}},com.inq.flash.client.control.MinimizeManager.restoreFocusedElement=function(t,e,i){var n=com.inq.flash.client.chatskins.SkinControl.getTextInputField();function o(){Application.setFocusToBtnCloseOnOpen||(com.inq.flash.client.control.MinimizeManager.onActionRestore=!0,n.setFocus(!0),window.setTimeout((function(){com.inq.flash.client.control.MinimizeManager.onActionRestore=!1}),1e3))}null==n||com.inq.flash.client.chatskins.SkinControl.agentClosedChat||Application.setFocusToBtnCloseOnOpen||(com.inq.utils.Capabilities.isMobile()?com.inq.flash.client.control.WebRTCMgr&&com.inq.flash.client.control.WebRTCMgr.isCallStarted()?com.inq.flash.client.control.WebRTCMgr.getMuteBtn().setImageFocus():com.inq.flash.client.chatskins.SkinControl.hideObscuredChatDiv(i,n)?com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection(e):com.inq.utils.Capabilities.isIpad()&&com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.isAccessibilityHelpUsed?com.inq.utils.Util.getConfigAsBoolean("enableModal")?setTimeout((function(){n.setFocus()}),500):n.setFocus():com.inq.utils.Capabilities.isIphone()?com.inq.flash.client.control.MinimizeManager.minimizedBySleep||(com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.isAccessibilityHelpUsed?(n.setVisible(!1),n.setVisible(!0),com.inq.aria.AriaMsg.clearAriaMsg(),com.inq.flash.client.control.MinimizeManager.ariaMegMini&&(com.inq.flash.client.control.MinimizeManager.ariaMegMini._div.innerHTML=""),com.inq.flash.client.chatskins.ScrollMonitor.ScrollTo(0,-1),o()):i&&t?o():com.inq.flash.client.chatskins.SkinControl.accessibilityHelp.isAddHelpOnBtnSendCalled||com.inq.flash.client.chatskins.SkinControl.initialFocusClaimedBy||window.parent.document.activeElement.blur()):i||com.inq.utils.Capabilities.isIpad()?n.setFocus():com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection(e):com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()&&8===com.inq.utils.Capabilities.getIeVersion()?window.setTimeout((function(){window.document.body.focus(),window.setTimeout((function(){n.setFocus()}))}),500):com.inq.flash.client.chatskins.SkinControl.setUpFocusAndSelection(e)),Application.setFocusToBtnCloseOnOpen&&com.inq.flash.client.chatskins.SkinControl.setFocusOnCloseButton()},com.inq.flash.client.control.MinimizeManager.isMinimized=function(){return!0===com.inq.flash.client.control.MinimizeManager.minimized||com.inq.flash.client.control.PersistenceManager.GetValue(MINIMIZED_COUNT,com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED)!==com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED},com.inq.flash.client.control.MinimizeManager.floatMinimized=function(t){if(com.inq.flash.client.control.MinimizeManager.isMinimized()&&com.inq.utils.Capabilities.isMobile()&&null!=com.inq.flash.client.control.MinimizeManager.elMinimized){if((com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater()||com.inq.utils.Capabilities.isChromeiOS()||com.inq.utils.Capabilities.isIpad())&&"fixed"==com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("position"))return t&&t.stopPropagation&&t.stopPropagation(),!1;if(null!=com.inq.flash.client.control.MinimizeManager.elMinimized._div){var e,i,n,o,a,s,l,r,c=0,h=0;e=com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("left"),i=com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("right"),n=com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("top"),o=com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("bottom"),a=com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("height"),s=com.inq.flash.client.control.MinimizeManager.elMinimized.getStyle("width");var m=com.inq.utils.Capabilities.getViewport();r=null==s?com.inq.flash.client.control.MinimizeManager.elMinimized.getWidth():com.inq.flash.client.control.MinimizeManager.elMinimized.evaluatePosition(s),l=null==a?com.inq.flash.client.control.MinimizeManager.elMinimized.getHeight():com.inq.flash.client.control.MinimizeManager.elMinimized.evaluatePosition(a),null==e&&null!=i?c=m.x+m.w-r-com.inq.flash.client.control.MinimizeManager.elMinimized.evaluatePosition(i):null!=e&&null==i&&(c=m.x+com.inq.flash.client.control.MinimizeManager.elMinimized.evaluatePosition(e)),null==n&&null!=o?h=m.y+m.h-l-com.inq.flash.client.control.MinimizeManager.elMinimized.evaluatePosition(o):null!=e&&null==i&&(h=m.y+com.inq.flash.client.control.MinimizeManager.elMinimized.evaluatePosition(n));var u=com.inq.flash.client.control.MinimizeManager.elMinimized._div;return u.style.position="absolute",u.style.left=c+"px",u.style.top=h+"px",s&&(u.style.right="auto"),!com.inq.flash.client.control.MinimizeManager.btnRestore||"fixed"!=com.inq.flash.client.control.MinimizeManager.btnRestore.styles.position||0!=h||(t&&t.stopPropagation&&t.stopPropagation(),!1)}haxe.Log.trace("ERROR: elMinimized._div is null",{fileName:"MinimizeManager.hx",lineNumber:458,className:"com.inq.flash.client.control.MinimizeManager",methodName:"floatMinimized"})}return!1},com.inq.flash.client.control.MinimizeManager.iosPositionMinimized=function(){try{var t=null,e=0,i=0,n=0;t=com.inq.ui.Container._getElementById("tcChat_Minimized",parent.document),e=window.top.document.documentElement.clientHeight,com.inq.utils.Capabilities.isChromeiOS()&&(e-=com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneCRiOS10.CHROME_IOS_HEIGHT_DIFF);var o=Application.application.getMxmlItem("Minimized");if(o&&(i=o.getHeight()),com.inq.utils.Capabilities.isIOSWebView()&&t)return void com.inq.flash.client.control.MinimizeManager.iosPositionWebViewMinimized(t,i);switch(com.inq.utils.Capabilities.getOrientation()?"portrait":"landscape"){case"landscape":n=(e-com.inq.flash.client.control.MinimizeManager.SAFARI_KEYBOARD_HEIGHT_LANDSCAPE)/2,n+=window.top.pageYOffset;break;case"portrait":n=e-(com.inq.flash.client.control.MinimizeManager.SAFARI_KEYBOARD_HEIGHT_PORTRAIT+i),n+=window.top.pageYOffset}t?(t.style.position="fixed",t.style.top=n+"px",t.style.left=window.top.pageXOffset+"px"):haxe.Log.trace("Error: geting minimize div",{fileName:"MinimizeManager.js",lineNumber:675,className:"com.inq.flash.client.control.MinimizeManager",methodName:"positionMinimize"})}catch(t){haxe.Log.trace("Error: "+Std.string(t),{fileName:"MinimizeManager.js",lineNumber:678,className:"com.inq.flash.client.control.MinimizeManager",methodName:"positionMinimize",customParams:[t]})}return!0},com.inq.flash.client.control.MinimizeManager.iosPositionWebViewMinimized=function(t,e){t.style.position="absolute",t.style.top=window.top.pageYOffset+(window.top.innerHeight-e)+"px",t.style.left=window.top.pageXOffset+"px"},com.inq.flash.client.control.MinimizeManager.fixPhoneMinimizedWidth=function(){var t=Application.application.getMxmlItem("Minimized")&&Application.application.getMxmlItem("Minimized")._div,e=window.top.innerWidth;t&&t.clientWidth>e&&(t.style.width=e+"px")},com.inq.flash.client.control.MinimizeManager.iosClientInputFocus=function(t){var e=window.parent;com.inq.utils.Capabilities.UnbindListener(e,"scroll",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.UnbindListener(e,"resize",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.UnbindListener(e,"orientationchange",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.flash.client.chatskins.ScrollMonitor.unbindAll(),window.top.addEventListener("scroll",com.inq.flash.client.control.MinimizeManager.iosPositionMinimized,!1),window.top.addEventListener("orientationchange",com.inq.flash.client.control.MinimizeManager.iosPositionMinimized,!1),(com.inq.utils.Capabilities.isIOSWebView()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isChromeiOS11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isChromeiOS12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isChromeiOS13()||com.inq.utils.Capabilities.isSafariVersion14orLater()||com.inq.utils.Capabilities.isChromeiOS14())&&com.inq.flash.client.control.MinimizeManager.iosPositionMinimized()},com.inq.flash.client.control.MinimizeManager.iosClientInputBlur=function(t){if(window.top.removeEventListener("scroll",com.inq.flash.client.control.MinimizeManager.iosPositionMinimized,!1),window.top.removeEventListener("orientationchange",com.inq.flash.client.control.MinimizeManager.iosPositionMinimized,!1),com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater()){var e=com.inq.ui.Container._getElementById("tcChat_Minimized",parent.document);e.style.position=com.inq.flash.client.control.MinimizeManager.btnRestoreLocation.position,e.style.left=com.inq.flash.client.control.MinimizeManager.btnRestoreLocation.left,e.style.top=com.inq.flash.client.control.MinimizeManager.btnRestoreLocation.top}else com.inq.flash.client.control.MinimizeManager.floatMinimized();var i=window.parent;com.inq.utils.Capabilities.BindListener(i,"scroll",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.BindListener(i,"resize",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.utils.Capabilities.BindListener(i,"orientationchange",com.inq.flash.client.control.MinimizeManager.floatMinimized),com.inq.flash.client.chatskins.ScrollMonitor.bindAll()},com.inq.flash.client.control.MinimizeManager.bindHandlerForClientInputFieldsIos=function(){if(com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater()){var t=com.inq.ui.Container._getElementById("tcChat_Minimized",parent.document);com.inq.flash.client.control.MinimizeManager.btnRestoreLocation={position:t.style.position,left:t.style.left,top:t.style.top}}for(var e=com.inq.ui.Container._getElementByTN("input",window.parent.document),i=0;i<e.length;i++)-1==e[i].className.indexOf("tcChat")&&-1==e[i].className.indexOf("tcXF")&&!0!==e[i].readOnly&&(e[i].addEventListener("focus",com.inq.flash.client.control.MinimizeManager.iosClientInputFocus,!1),e[i].addEventListener("blur",com.inq.flash.client.control.MinimizeManager.iosClientInputBlur,!1));var n=com.inq.ui.Container._getElementByTN("select",window.parent.document);for(i=0;i<n.length;i++)-1==n[i].className.indexOf("tcChat")&&-1==n[i].className.indexOf("tcXF")&&(n[i].addEventListener("focus",com.inq.flash.client.control.MinimizeManager.iosClientInputFocus,!1),n[i].addEventListener("blur",com.inq.flash.client.control.MinimizeManager.iosClientInputBlur,!1));var o=com.inq.ui.Container._getElementByTN("textarea",window.parent.document);for(i=0;i<o.length;i++)-1==o[i].className.indexOf("tcChat")&&-1==o[i].className.indexOf("tcXF")&&(o[i].addEventListener("focus",com.inq.flash.client.control.MinimizeManager.iosClientInputFocus,!1),o[i].addEventListener("blur",com.inq.flash.client.control.MinimizeManager.iosClientInputBlur,!1))},com.inq.flash.client.control.MinimizeManager.unBindHandlerForClientInputFieldsIos=function(){for(var t=com.inq.ui.Container._getElementByTN("input",window.parent.document),e=0;e<t.length;e++)-1==t[e].className.indexOf("tcChat")&&-1==t[e].className.indexOf("tcXF")&&!0!==t[e].readOnly&&(t[e].removeEventListener("focus",com.inq.flash.client.control.MinimizeManager.iosClientInputFocus,!1),t[e].removeEventListener("blur",com.inq.flash.client.control.MinimizeManager.iosClientInputBlur,!1));var i=com.inq.ui.Container._getElementByTN("select",window.parent.document);for(e=0;e<i.length;e++)-1==i[e].className.indexOf("tcChat")&&-1==i[e].className.indexOf("tcXF")&&(i[e].removeEventListener("focus",com.inq.flash.client.control.MinimizeManager.iosClientInputFocus,!1),i[e].removeEventListener("blur",com.inq.flash.client.control.MinimizeManager.iosClientInputBlur,!1));var n=com.inq.ui.Container._getElementByTN("textarea",window.parent.document);for(e=0;e<n.length;e++)-1==n[e].className.indexOf("tcChat")&&-1==n[e].className.indexOf("tcXF")&&(n[e].removeEventListener("focus",com.inq.flash.client.control.MinimizeManager.iosClientInputFocus,!1),n[e].removeEventListener("blur",com.inq.flash.client.control.MinimizeManager.iosClientInputBlur,!1))},com.inq.flash.client.control.MinimizeManager.agentMsgCounter=null,com.inq.flash.client.control.MinimizeManager.agentText=null,com.inq.flash.client.control.MinimizeManager.btnRestore=null,com.inq.flash.client.control.MinimizeManager.btnMinimize=null,com.inq.flash.client.control.MinimizeManager.btnReallyMinimized=null,com.inq.flash.client.control.MinimizeManager.IS_MINIMIZED=-1,com.inq.flash.client.control.MinimizeManager.SHOW_FAKE_MINIMIZE=-2,com.inq.flash.client.control.MinimizeManager.elMinimized=null,com.inq.flash.client.control.MinimizeManager._minimizedOffset=null,com.inq.flash.client.control.MinimizeManager.inqChatStage=null,com.inq.flash.client.control.MinimizeManager.originalScalingMeta=null,com.inq.flash.client.control.MinimizeManager.NOT_MINIMIZED=-1,com.inq.flash.client.control.MinimizeManager.META_ID="tcChat_viewport",com.inq.flash.client.control.MinimizeManager.SCALING_META='<meta name="tcChat_viewport" content="width=device-width, initial-scale=1, maximum-scale=10.0, minimum-scale=1, user-scalable=1" />',com.inq.flash.client.control.MinimizeManager.NO_SCALING_META='<meta name="tcChat_viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0" />',com.inq.flash.client.control.MinimizeManager.movedMinimize=0,com.inq.flash.client.control.MinimizeManager.displaySmallScreenMsgFnPoint=null,com.inq.flash.client.control.MinimizeManager.MODE_FIXED=0,com.inq.flash.client.control.MinimizeManager.MODE_ABSOLUTE=1,com.inq.flash.client.control.MinimizeManager.positionMode=null,com.inq.flash.client.control.MinimizeManager.touchStartPoint=null,com.inq.flash.client.control.MinimizeManager.SAFARI_KEYBOARD_HEIGHT_PORTRAIT=216,com.inq.flash.client.control.MinimizeManager.SAFARI_KEYBOARD_HEIGHT_LANDSCAPE=162,com.inq.flash.client.control.MinimizeManager.isChatRestored=!1,com.inq.flash.client.control.NotificationController=function(t){this._application=t,this._disabled=!1,this._notifications={},this._countdownTimers={},this._activeNotification=null,this._deferredNotification=null,this._timerDeferring=null,this._disconnectionTimeout=com.inq.flash.client.control.FlashPeer.getDisconnectionTimeout(),this._chatBottomPosition=0,this._elementHeight=0,this._elementBottomPosition=0},com.inq.flash.client.control.NotificationController.prototype.disable=function(){this._disabled=!0,this.clearNotificationTimeout(),this.hideNotification()},com.inq.flash.client.control.NotificationController.prototype.init=function(){var t,e=com.inq.utils.Util.getConfig(this.FLAG_NOTIFICATION_ENABLED,!1),i=com.inq.utils.Util.getConfig(this.FLAG_ADBLOCK_DETECTION_ENABLED,!1);this._deferredNotification?t=this._deferredNotification.getStyle("id"):this._activeNotification&&(t=this._activeNotification.getStyle("id")),this.clearNotificationTimeout(),this.hideNotification(),i&&(this._notifications[this.ADBLOCK_DETECTED_MESSAGE_ID]=this._application.getMxmlItem(this.ADBLOCK_DETECTED_MESSAGE_ID)),e?(this.addNotificationElements(),this.setupCountdownTimer(this.CONNECTION_ISSUES_MESSAGE_ID),this.reactivateNotification(t)):(i||(this._notifications={}),this._countdownTimers={}),t===this.ADBLOCK_DETECTED_MESSAGE_ID&&this.showAdblockDetectedMessage()},com.inq.flash.client.control.NotificationController.prototype.reactivateNotification=function(t){switch(t){case this.CONNECTION_ISSUES_MESSAGE_ID:this.showConnectionIssuesMessage();break;case this.CONNECTION_RESTORED_MESSAGE_ID:this.showConnectionRestoredMessage();break;case this.CONNECTION_FAILED_MESSAGE_ID:this.showConnectionFailedMessage()}},com.inq.flash.client.control.NotificationController.prototype.addNotificationElements=function(){this._notifications[this.CONNECTION_ISSUES_MESSAGE_ID]=this._application.getMxmlItem(this.CONNECTION_ISSUES_MESSAGE_ID),this._notifications[this.CONNECTION_RESTORED_MESSAGE_ID]=this._application.getMxmlItem(this.CONNECTION_RESTORED_MESSAGE_ID),this._notifications[this.CONNECTION_FAILED_MESSAGE_ID]=this._application.getMxmlItem(this.CONNECTION_FAILED_MESSAGE_ID)},com.inq.flash.client.control.NotificationController.prototype.setupCountdownTimer=function(t){if(this._notifications[t]){var e=this._notifications[t].getChildren();e&&e[0]&&-1!=e[0].getText().indexOf(com.inq.ui.CountdownTimer.TEMPLATE_MARKER)&&(this._countdownTimers[t]=new com.inq.ui.CountdownTimer(e[0]),this._countdownTimers[t].addEndingListener(com.inq.flash.client.chatskins.SkinControl.connectionLostClosingChat))}},com.inq.flash.client.control.NotificationController.prototype.notificationIsActive=function(){return null!=this._activeNotification},com.inq.flash.client.control.NotificationController.prototype.showNotification=function(t){if(!this._disabled&&(this._activeNotification=this._deferredNotification||this._notifications[t],this._activeNotification)){var e=this._countdownTimers[t];if(e){var i=Date.now()-this.getLastResponseTimestamp();e.setPeriod(this._disconnectionTimeout-i),e.start()}this._activeNotification.setVisible(!0),this._elementHeight=this._activeNotification.getHeight(),this._elementBottomPosition=Std.parseInt(this._activeNotification.getStyle("bottom")),this.updatePosition(),this._deferredNotification&&(this._deferredNotification=null,this._timerDeferring=null);for(var n=this._activeNotification.getChildren(),o="",a=n.length,s=0;s<a;s++)n[s]._div.innerText&&(o+=n[s]._div.innerText+" ");com.inq.aria.AriaMsg.addAriaMsg(o)}},com.inq.flash.client.control.NotificationController.prototype.hideNotification=function(){if(this._activeNotification){var t=this._activeNotification.getStyle("id"),e=this._countdownTimers[t];e&&e.stop(),this._activeNotification.setVisible(!1),this.updatePosition(),this._activeNotification=null}},com.inq.flash.client.control.NotificationController.prototype.setNotificationTimeout=function(t,e,i){this._disabled||(this._deferredNotification=this._notifications[t],this._deferredNotification&&(this._timerDeferring=setTimeout(function(){this.hideNotification(),this.showNotification(t),i&&com.inq.flash.client.chatskins.SkinControl.hideInput()}.bind(this),e)))},com.inq.flash.client.control.NotificationController.prototype.clearNotificationTimeout=function(){this._deferredNotification&&this._timerDeferring&&(clearTimeout(this._timerDeferring),this._deferredNotification=null,this._timerDeferring=null)},com.inq.flash.client.control.NotificationController.prototype.showConnectionIssuesMessage=function(){if(!this._disabled){var t=Date.now()-this.getLastResponseTimestamp(),e=this.DISPLAY_DELAY-t;e<0&&(e=0),this._deferredNotification?this.CONNECTION_ISSUES_MESSAGE_ID!=this._deferredNotification.getStyle("id")&&(this.clearNotificationTimeout(),this.setNotificationTimeout(this.CONNECTION_ISSUES_MESSAGE_ID,e,!0)):this._activeNotification&&this.CONNECTION_ISSUES_MESSAGE_ID==this._activeNotification.getStyle("id")||this.setNotificationTimeout(this.CONNECTION_ISSUES_MESSAGE_ID,e,!0)}},com.inq.flash.client.control.NotificationController.prototype.showConnectionRestoredMessage=function(){this._disabled||(this._deferredNotification&&this.CONNECTION_ISSUES_MESSAGE_ID==this._deferredNotification.getStyle("id")?this.clearNotificationTimeout():this._activeNotification&&this.CONNECTION_ISSUES_MESSAGE_ID==this._activeNotification.getStyle("id")&&(this.hideNotification(),this.showNotification(this.CONNECTION_RESTORED_MESSAGE_ID),this._application.applicationController.isConnected()&&com.inq.flash.client.chatskins.SkinControl.showInput()),com.inq.flash.client.chatskins.SkinControl.getTextInputField().setFocus(!0))},com.inq.flash.client.control.NotificationController.prototype.showConnectionFailedMessage=function(){this._disabled||this._activeNotification&&this.CONNECTION_FAILED_MESSAGE_ID==this._activeNotification.getStyle("id")||(this.hideNotification(),this.showNotification(this.CONNECTION_FAILED_MESSAGE_ID),com.inq.flash.client.chatskins.SkinControl.hideInput())},com.inq.flash.client.control.NotificationController.prototype.showAdblockDetectedMessage=function(){if(!this._disabled){this.hideNotification(),this._activeNotification=this._notifications[this.ADBLOCK_DETECTED_MESSAGE_ID],this._activeNotification&&this._activeNotification.setVisible(!0);var t=this._activeNotification.getChildren(),e="";t.forEach((function(t){t._div.innerText&&(e+=t._div.innerText+" ")})),com.inq.aria.AriaMsg.addAriaMsg(e),com.inq.flash.client.chatskins.SkinControl.hideInput(),this.updatePosition()}},com.inq.flash.client.control.NotificationController.prototype.updatePosition=function(){var t=this._activeNotification.getStyle("id"),e=this._application.getMxmlItem("chatWindow"),i=this._application.getMxmlItem("connectionRestoredMessage"),n=i?Std.parseInt(i.getStyle("bottom")):0,o=Std.parseInt(e.getStyle("bottom"))||n;this._activeNotification.getVisible()?(this._chatBottomPosition=o,this.CONNECTION_RESTORED_MESSAGE_ID==t&&(this._elementBottomPosition=this._chatBottomPosition,this._activeNotification.setStyle("bottom",""+this._elementBottomPosition),this._activeNotification.setStyle("left",e.getStyle("left")),this._activeNotification.setStyle("right",e.getStyle("right"))),this._elementBottomPosition+this._elementHeight>o&&e.setStyle("bottom",""+(this._elementBottomPosition+this._elementHeight))):e.setStyle("bottom",""+this._chatBottomPosition),com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd()},com.inq.flash.client.control.NotificationController.prototype.getLastResponseTimestamp=function(){return this._application.applicationController.getResponseTimestamp()},com.inq.flash.client.control.NotificationController.prototype.FLAG_NOTIFICATION_ENABLED="disconnectionNotification",com.inq.flash.client.control.NotificationController.prototype.FLAG_ADBLOCK_DETECTION_ENABLED="adblockDetectionEnabled",com.inq.flash.client.control.NotificationController.prototype.CONNECTION_ISSUES_MESSAGE_ID="connectionIssuesMessage",com.inq.flash.client.control.NotificationController.prototype.CONNECTION_RESTORED_MESSAGE_ID="connectionRestoredMessage",com.inq.flash.client.control.NotificationController.prototype.CONNECTION_FAILED_MESSAGE_ID="connectionFailedMessage",com.inq.flash.client.control.NotificationController.prototype.ADBLOCK_DETECTED_MESSAGE_ID="adblockDetectedMessage",com.inq.flash.client.control.NotificationController.prototype.DISPLAY_DELAY=15e3,com.inq.flash.client.control.UploadHandler={},com.inq.flash.client.control.UploadHandler.init=function(){com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.UploadHandler.engageFileUpload",com.inq.flash.client.control.UploadHandler.engageFileUpload);var t=Application.application,e=t.getMxmlItem("UploadButton"),i=t.getButton("UploadCloseButton");e&&e.input&&(com.inq.flash.client.control.UploadHandler.fileInput=e.input,com.inq.flash.client.control.UploadHandler.fileInput.addEventListener("change",com.inq.flash.client.control.UploadHandler.actionUpload),com.inq.flash.client.control.UploadHandler.closeButton=t.getButton("UploadCloseButton"),i&&(com.inq.flash.client.control.UploadHandler.closeButton=i._img,com.inq.flash.client.control.UploadHandler.closeButton.addEventListener("click",com.inq.flash.client.control.UploadHandler.actionClose)),com.inq.flash.client.control.UploadHandler.successText=t.getMxmlItem("UploadSuccess"),com.inq.flash.client.control.UploadHandler.errorTextItem=t.getMxmlItem("UploadError"))},com.inq.flash.client.control.UploadHandler.close=function(){com.inq.flash.client.control.UploadHandler.fileInput&&com.inq.flash.client.control.UploadHandler.fileInput.removeEventListener("change",com.inq.flash.client.control.UploadHandler.actionUpload),com.inq.flash.client.control.UploadHandler.fileInput=null,com.inq.flash.client.control.UploadHandler.closeButton&&com.inq.flash.client.control.UploadHandler.closeButton.removeEventListener("click",com.inq.flash.client.control.UploadHandler.actionClose),com.inq.flash.client.control.UploadHandler.closeButton=null,com.inq.flash.client.control.UploadHandler.resetAlerts(),com.inq.flash.client.control.UploadHandler.errorTextItem=null,com.inq.flash.client.control.UploadHandler.successText=null,com.inq.flash.client.control.UploadHandler.uploadForm=null},com.inq.flash.client.control.UploadHandler.actionUpload=function(t){var e=1e3*parseInt(com.inq.flash.client.control.FlashPeer.getFileTransferSize()||"5")*1e3,i=com.inq.flash.client.control.FlashVars.getValue("agID"),n=com.inq.flash.client.control.FlashPeer.getFileTransferUrl()+"/filetransfer/rest/cont/uploadFile",o=com.inq.flash.client.control.FlashVars.getValue("siteID"),a=com.inq.flash.client.control.UploadHandler.engageParms.cb;if(com.inq.flash.client.control.UploadHandler.resetAlerts(),!t.target.files)return com.inq.flash.client.control.UploadHandler.actionUploadIE(t,i,o);var s,l=new FormData,r=t.target.files[0],c=r.name;return com.inq.flash.client.control.UploadHandler.fileExtensionAllowed(c)?r.size>e?(com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.sizeError||com.inq.utils.Util.getConfig("uploadSizeError","File is too large. Please select a file that is less than "+e/1e6+" MB")),a&&a("sizeError"),"sizeError"):(l.append("file",t.target.files[0]),l.append("siteId",o),(s=new XMLHttpRequest).open("POST",n),s.send(l),void(s.onreadystatechange=function(){if(200===s.status&&s.readyState===XMLHttpRequest.DONE){var t=JSON.parse(s.response);t&&200===t.responseStatus&&(com.inq.flash.client.control.UploadHandler.sendUploadSuccessMessage(t,o,i),a&&a("success"))}else 400===s.status&&s.readyState===XMLHttpRequest.DONE?(com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.badFile||com.inq.utils.Util.getConfig("badFile","Uploaded file contains virus")),a&&a("badFile")):s.readyState===XMLHttpRequest.DONE&&(com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.serverError||com.inq.utils.Util.getConfig("uploadServerError","Server Encountered Unexpected Error")),a&&a("serverError"))})):(com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.typeError||com.inq.utils.Util.getConfig("uploadTypeError","File type not allowed to upload:"+c)),a&&a("typeError"),"typeError")},com.inq.flash.client.control.UploadHandler.actionUploadIE=function(t,e,i){var n,o,a,s=com.inq.ui.SkinLoader.skinInClient?window.top:window,l=com.inq.flash.client.control.UploadHandler.engageParms.cb,r=com.inq.flash.client.control.FlashPeer.getFileTransferUrl()+"/filetransfer/rest/cont/uploadFileIE";if(t.srcElement){if(n=t.srcElement.value,!com.inq.flash.client.control.UploadHandler.fileExtensionAllowed(n))return com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.typeError||com.inq.utils.Util.getConfig("uploadTypeError","File type not allowed to upload:"+n)),l&&l("typeError"),"typeError";com.inq.flash.client.control.UploadHandler.uploadForm||(com.inq.flash.client.control.UploadHandler.uploadForm=document.createElement("form"),(o=document.createElement("input")).setAttribute("name","siteId"),o.setAttribute("type","text"),o.value=i,com.inq.flash.client.control.UploadHandler.uploadForm.setAttribute("action",r),com.inq.flash.client.control.UploadHandler.uploadForm.setAttribute("method","post"),com.inq.flash.client.control.UploadHandler.uploadForm.setAttribute("enctype","multipart/form-data"),com.inq.flash.client.control.UploadHandler.uploadForm.setAttribute("encoding","multipart/form-data"),com.inq.flash.client.control.UploadHandler.uploadForm.setAttribute("id","IEfileUploadForm"),com.inq.flash.client.control.UploadHandler.fileInput?(com.inq.flash.client.control.UploadHandler.uploadForm.appendChild(com.inq.flash.client.control.UploadHandler.fileInput),com.inq.flash.client.control.UploadHandler.fileInput.parentElement.appendChild(com.inq.flash.client.control.UploadHandler.uploadForm)):(s.document.body.appendChild(com.inq.flash.client.control.UploadHandler.uploadForm),com.inq.flash.client.control.UploadHandler.uploadForm.appendChild(t.target)),com.inq.flash.client.control.UploadHandler.uploadForm.appendChild(o),(a=document.createElement("iframe")).setAttribute("id","upload_iframe"),a.setAttribute("name","upload_iframe"),a.setAttribute("style","border: none;display: none;"),com.inq.flash.client.control.UploadHandler.uploadForm.appendChild(a),s.frames.upload_iframe.name="upload_iframe",onmessage=function(t){if(-1!=r.indexOf(t.origin)){var n=JSON.parse(t.data);n&&"200"==n.responseStatus?(com.inq.flash.client.control.UploadHandler.sendUploadSuccessMessage(n,i,e),l&&l("success")):n&&"400"==n.responseStatus?(com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.badFile||com.inq.utils.Util.getConfig("badFile","Uploaded file contains virus")),l&&l("badFile")):(com.inq.flash.client.control.UploadHandler.showUploadFailedMessage(com.inq.flash.client.control.UploadHandler.engageParms.serverError||com.inq.utils.Util.getConfig("uploadServerError","Server Encountered Unexpected Error")),l&&l("serverError"))}},com.inq.flash.client.control.UploadHandler.uploadForm.setAttribute("target","upload_iframe")),com.inq.flash.client.control.UploadHandler.uploadForm.submit()}},com.inq.flash.client.control.UploadHandler.engageFileUpload=function(t,e){return com.inq.flash.client.control.UploadHandler.engageParms=e,com.inq.flash.client.control.UploadHandler.actionUpload(t)},com.inq.flash.client.control.UploadHandler.actionClose=function(){com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendSystemMessage("Customer has closed the file upload window."),com.inq.flash.client.control.UploadHandler.resetAlerts()},com.inq.flash.client.control.UploadHandler.resetAlerts=function(){com.inq.flash.client.control.UploadHandler.errorTextItem&&(com.inq.flash.client.control.UploadHandler.errorTextItem.setText(""),com.inq.flash.client.control.UploadHandler.errorTextItem.setVisible(!1)),com.inq.flash.client.control.UploadHandler.successText&&(com.inq.flash.client.control.UploadHandler.successText.setText(""),com.inq.flash.client.control.UploadHandler.successText.setVisible(!1))},com.inq.flash.client.control.UploadHandler.sendUploadSuccessMessage=function(t,e,i){var n=com.inq.flash.client.control.FlashPeer.getFileDeleteSetting()||"ON_CHAT_END",o=com.inq.flash.client.control.UploadHandler.engageParms.success||com.inq.utils.Util.getConfig("uploadSuccessMsg","File successfully uploaded");com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendSystemMessage(o),com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendFileUploadMessage(com.inq.flash.client.control.FlashPeer.getFileTransferApiUrl()+"/chatfiles/"+e+"/"+encodeURI(t.fileName)+"?site="+e+"&agentGroup="+i,n),com.inq.flash.client.control.UploadHandler.successText&&(com.inq.flash.client.control.UploadHandler.successText.setText(o),com.inq.flash.client.control.UploadHandler.successText.setVisible(!0)),com.inq.flash.client.control.UploadHandler.fileInput&&(com.inq.flash.client.control.UploadHandler.fileInput.value="")},com.inq.flash.client.control.UploadHandler.showUploadFailedMessage=function(t){com.inq.flash.client.control.UploadHandler.errorTextItem&&(com.inq.flash.client.control.UploadHandler.errorTextItem.setText(t),com.inq.flash.client.control.UploadHandler.errorTextItem.setVisible(!0)),com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendSystemMessage(t),com.inq.flash.client.control.UploadHandler.fileInput&&(com.inq.flash.client.control.UploadHandler.fileInput.value="")},com.inq.flash.client.control.UploadHandler.fileExtensionAllowed=function(t){var e=com.inq.flash.client.control.FlashPeer.getfileTransferExtensions(),i=t.split(".").reverse()[0],n=[];return"string"==typeof e&&(n=e.split(",")),-1!==n.indexOf(i)},com.inq.flash.client.control.UploadHandler.uploadForm=null,com.inq.flash.client.control.UploadHandler.fileInput=null,com.inq.flash.client.control.UploadHandler.closeButton=null,com.inq.flash.client.control.UploadHandler.successText=null,com.inq.flash.client.control.UploadHandler.errorTextItem=null,com.inq.flash.client.control.UploadHandler.engageParms={},com.inq.flash.client.control.WebRTCMgr=function(){var t=com.inq.flash.client.control.WebRTCMgr;com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.WebRTCMgr.engageAudio",t.engageAudio),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.WebRTCMgr.isWebRTCCapable",t.isWebRTCCapable),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.WebRTCMgr.endCall",t.endCall)},$hxClasses.registerClass(com.inq.flash.client.control.WebRTCMgr,"com.inq.flash.client.control.WebRTCMgr"),com.inq.flash.client.control.WebRTCMgr.init=function(t){var e=com.inq.flash.client.control.WebRTCMgr,i=e.getElement,n=com.inq.flash.client.chatskins.SkinControl.getApplicationController().chat,o=com.inq.utils.Util.getConfig,a=i("clientVideo",t),s=i("agentVideo",t),l=i("btnStartCall",t),r=i("btnEndCall",t),c=i("btnMuteCall",t),h=i("btnUnMuteCall",t),m=i("callRestart",t);e.chatInfo={chatId:n.chatID,agentName:n.agentName,siteId:n.getSiteID(),customerId:n.thisCustomerID,reconnectMsg:o("webCallReconnecting","WebCall reconnecting...")},e.webCallConnecting=e.webCallConnecting||i("callConnecting",t),e.webCallInProgress=e.webCallInProgress||i("callProgress",t),e.webCallError=e.webCallError||i("callError",t),e.webCallRecon=e.webCallRecon||i("callReconnect",t),e.webCallPDen=e.webCallPDen||i("callDenied",t),e.webCallCanvas=e.webCallCanvas||i("webCall",t),e.clientVideoElement=e.clientVideoElement||a&&a._div.getElementsByTagName("video")[0]||a._div,e.agentVideoElement=e.agentVideoElement||s&&s._div.getElementsByTagName("video")[0]||s._div,s&&s.getVisible()&&(e.audioOnlyChat=!1),l&&(l.removeEventListener("click",e.actionStartCall),l.addEventListener("click",e.actionStartCall)),m&&(m.removeEventListener("click",e.actionStartCall),m.addEventListener("click",e.actionStartCall)),r&&(r.removeEventListener("click",e.actionEndCall),r.addEventListener("click",e.actionEndCall)),c&&(c.removeEventListener("click",e.mute),c.addEventListener("click",e.mute)),h&&(h.removeEventListener("click",e.unmute),h.addEventListener("click",e.unmute)),e.webCallEndCallBtn=e.webCallEndCallBtn||r,e.webCallStartCallBtn=e.webCallStartCallBtn||l,e.webCallRestartBtn=e.webCallRestartBtn||m,e.muteBtn=e.muteBtn||c,e.unmuteBtn=e.unmuteBtn||h},com.inq.flash.client.control.WebRTCMgr.mute=function(){window.top.WebRTCApp||window.WebRTCApp?window.WebRTCApp?window.WebRTCApp.muteCall():window.top.WebRTCApp.muteCall():WebRTCMgr.getAndSDKInst()?WebRTCMgr.getAndSDKInst().muteCall():WebRTCMgr.isIOSSDK()&&WebRTCMgr.isIOSSDK().postMessage("mute"),WebRTCMgr.toggleElState(WebRTCMgr.muteBtn,!1),WebRTCMgr.toggleElState(WebRTCMgr.unmuteBtn,!0)},com.inq.flash.client.control.WebRTCMgr.unmute=function(){window.top.WebRTCApp||window.WebRTCApp?window.WebRTCApp?window.WebRTCApp.unMuteCall():window.top.WebRTCApp.unMuteCall():WebRTCMgr.getAndSDKInst()?WebRTCMgr.getAndSDKInst().unMuteCall():WebRTCMgr.isIOSSDK()&&WebRTCMgr.isIOSSDK().postMessage("unMute"),WebRTCMgr.toggleElState(WebRTCMgr.muteBtn,!0),WebRTCMgr.toggleElState(WebRTCMgr.unmuteBtn,!1)},com.inq.flash.client.control.WebRTCMgr.accessConstrants=function(t,e){return void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(t){var e=navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return new Promise((function(i,n){e.call(navigator,t,i,n)}))}),navigator.mediaDevices.getUserMedia({audio:t,video:e})},com.inq.flash.client.control.WebRTCMgr.initSounds=function(){var t=com.inq.utils.Util.getConfig("callDisconnectSnd",null),e=com.inq.utils.Util.getConfig("callDial",null);t&&(com.inq.flash.client.control.WebRTCMgr.disSnd=com.inq.flash.client.chatskins.SndMgr.initIosAudio(com.inq.flash.client.chatskins.SndMgr.soundSrc(t))),e&&(com.inq.flash.client.control.WebRTCMgr.ringSnd=com.inq.flash.client.chatskins.SndMgr.initIosAudio(com.inq.flash.client.chatskins.SndMgr.soundSrc(e),!0))},com.inq.flash.client.control.WebRTCMgr.initAudioCall=function(){var t=com.inq.flash.client.control.WebRTCMgr;"progress"===t.webCallStatus||t.isEngaged||(t.resetElState(),t.close(),t.audioOnlyChat=!0,t.init(!0))},com.inq.flash.client.control.WebRTCMgr.initVideoCall=function(){var t=com.inq.flash.client.control.WebRTCMgr;"progress"===t.webCallStatus||t.isEngaged||(t.resetElState(),t.close(),t.init())},com.inq.flash.client.control.WebRTCMgr.engageAudio=function(t){t.wCall="audio";var e=com.inq.flash.client.control.XFrameWorker;if(t.agentOutcome=e.DO_NOT_DISPLAY_IN_CI+e.findCustomerName(t.agentOutcome),!e.redirectToNativeSDK(t)){var i=com.inq.flash.client.control.WebRTCMgr;i.isEngaged||(i.initAudioCall(),i.engageElStatus(!0,!1,t),com.inq.flash.client.control.PersistenceManager.SetValue(WEB_CALL_MODE,WebRTCMgr.AUDIO_CALL))}},com.inq.flash.client.control.WebRTCMgr.engageCall=function(t){var e=com.inq.flash.client.chatskins.SkinControl;e.getApplicationController().isConnected()?com.inq.flash.client.control.WebRTCMgr.sendStartCallMessage():(e.applicationController.processClickToWebCallQueueMessages(t),e.StopTimer(),com.inq.flash.client.control.WebRTCMgr.ringSnd&&com.inq.flash.client.control.WebRTCMgr.ringSnd.audio.play())},com.inq.flash.client.control.WebRTCMgr.engageElStatus=function(t,e,i){var n=com.inq.flash.client.control.WebRTCMgr,o=n.getElement("webCall",t);if(n.webCallStatus="started",n.isEngaged=!0,n.toggleElState(o,!0),n.toggleElState(n.webCallConnecting,!0),!e){i&&(n.closeOnEnd=i.closeOnEnd);var a=com.inq.flash.client.chatskins.SkinControl.accessibilityHelp;return a.isAccessibilityHelpOnBtnSend&&a.removeHelpOnBtnSend(),n.getAndSDKInst()?(n.automatonParams=i,void n.getAndSDKInst().checkPermission()):n.isIOSSDK()?(n.automatonParams=i,void n.isIOSSDK().postMessage("checkPermission")):void(window.top.WebRTCApp||window.WebRTCApp?n.engageCall(i):(n.automatonParams=i,com.inq.flash.client.control.FlashPeer.loadKMSlibraries()))}},com.inq.flash.client.control.WebRTCMgr.engageVideo=function(t){var e=com.inq.flash.client.control.WebRTCMgr;e.isEngaged||(e.initVideoCall(),e.engageElStatus(!1,!1,t),com.inq.flash.client.control.PersistenceManager.SetValue(WEB_CALL_MODE,WebRTCMgr.VIDEO_CALL))},com.inq.flash.client.control.WebRTCMgr.close=function(){var t=com.inq.flash.client.control.WebRTCMgr;"progress"===t.webCallStatus||"restarted"==t.webCallStatus?t.endCall():"started"===t.webCallStatus&&t.sendWebCallEndMessage(WebRTCMgr.CALL_LEFT_MSG,t.isCustomerEndsChat,!0),t.ringSnd&&t.ringSnd.audio.pause(),t.webCallStatus="",t.webCallEndCallBtn&&(t.webCallEndCallBtn.removeEventListener("click",t.actionEndCall),t.webCallEndCallBtn=null),t.webCallStartCallBtn&&(t.webCallStartCallBtn.removeEventListener("click",t.actionStartCall),t.webCallStartCallBtn=null),t.webCallRestartBtn&&(t.webCallRestartBtn.removeEventListener("click",t.actionStartCall),t.webCallRestartBtn=null),t.muteBtn&&t.muteBtn.removeEventListener("click",t.mute),t.unmuteBtn&&t.unmuteBtn.removeEventListener("click",t.unmute),t.webCallConnecting=null,t.webCallInProgress=null,t.webCallError=null,t.clientVideoElement=null,t.agentVideoElement=null,t.webCallPDen=null,t.isEngaged=!1,t.ringSnd&&t.ringSnd.audio.pause(),clearTimeout(t.timerID)},com.inq.flash.client.control.WebRTCMgr.actionStartCall=function(){var t=com.inq.flash.client.control.WebRTCMgr;"started"!=t.webCallStatus&&(t.toggleElState(t.webCallConnecting,!0),t.webCallStatus="started",t.ringSnd&&t.ringSnd.audio.play(),window.top.WebRTCApp||window.WebRTCApp?(t.incrementCount(),t.sendStartCallMessage()):t.isIOSSDK()?t.isIOSSDK().postMessage("checkPermission"):t.getAndSDKInst()?t.getAndSDKInst().checkPermission():com.inq.flash.client.control.FlashPeer.loadKMSlibraries())},com.inq.flash.client.control.WebRTCMgr.iosSDKperGrant=function(){var t=com.inq.flash.client.control.WebRTCMgr,e=com.inq.flash.client.chatskins.SkinControl;t.automatonParams?t.engageCall(t.automatonParams):e.isClick2WebCall()&&!e.getApplicationController().isConnected()?e.applicationController.processClickToWebCallQueueMessages():t.sendStartCallMessage()},com.inq.flash.client.control.WebRTCMgr.actionEndCall=function(){com.inq.flash.client.control.WebRTCMgr.isCustomerEndsChat=!0,com.inq.flash.client.control.WebRTCMgr.endCall()},com.inq.flash.client.control.WebRTCMgr.endCall=function(t){var e=com.inq.flash.client.control.WebRTCMgr;window.top.WebRTCApp||window.WebRTCApp?window.WebRTCApp?window.WebRTCApp.endCall():window.top.WebRTCApp.endCall():e.isIOSSDK()?e.isIOSSDK().postMessage("endcall"):e.getAndSDKInst()&&e.getAndSDKInst().endCall(),"boolean"==typeof t&&(e.closeOnEnd=t),"started"!=e.webCallStatus&&"restarted"!=e.webCallStatus||e.processCallEnded()},com.inq.flash.client.control.WebRTCMgr.isAudioOnlyWebCall=function(){return com.inq.flash.client.control.WebRTCMgr.audioOnlyChat},com.inq.flash.client.control.WebRTCMgr.sendWebCallMessage=function(t,e){var i=com.inq.flash.client.chatskins.SkinControl.getApplicationController();i&&i.sendWebCallMessage(t,e)},com.inq.flash.client.control.WebRTCMgr.sendWebCallEndMessage=function(t,e,i){var n=com.inq.flash.client.chatskins.SkinControl.getApplicationController();n&&n.sendWebCallEndMessage(t,e,i)},com.inq.flash.client.control.WebRTCMgr.processAgentMessage=function(t){var e=t?t.split(","):[],i="",n=com.inq.flash.client.control.WebRTCMgr,o=n.webCallStatus;if(!(t.length<3))switch(e[0]){case"room.created":if("callerror"==n.webCallStatus)return;WebRTCMgr.isQueued=!1,(window.top.WebRTCApp||window.WebRTCApp||n.isIOSSDK()||n.getAndSDKInst())&&0===com.inq.flash.client.control.PersistenceManager.GetValue(WEB_CALL_STARTED,0)&&(n.joinCall(e[1],e[2]),n.sendWebCallMessage(com.inq.utils.Util.getConfig("webCallRoomCreated","Agent joined the Room."),""));break;case"networkErr":"ended"!=o&&"callerror"!=o||n.sendWebCallMessage("Customer closed call window. Please offer chat to customer.","");break;case"endWebcall":"restarted"==o||"started"==o?(n.webCallStatus="callerror",n.onError("WE")):"progress"==o&&(n.webCallStatus="ended",n.endCall());break;case"room.created.reconnect":if("ended"==o)return;if("initing"==e[1])i=com.inq.utils.Util.getConfig("webCallReconnecting","WebCall reconnecting..."),n.setErrorText(i,"",!0),n.sendWebCallMessage(i,"");else if("failed"==e[1])com.inq.flash.client.control.PersistenceManager.SetValue(WEB_CALL_STARTED,0),n.webCallStatus="callerror",n.onError("AI",e[2]);else if("inited"==e[1]){if("restarted"==o||"callerror"==o)return;n.webCallStatus="restarted",n.processCallStarted()}}},com.inq.flash.client.control.WebRTCMgr.joinCall=function(t,e){var i=window.top.WebRTCApp||window.WebRTCApp,n=com.inq.flash.client.control.WebRTCMgr,o=com.inq.flash.client.control.PersistenceManager;Inq.CHM.isV3Continue()&&"restarted"==n.webCallStatus&&(n.chatInfo.kurentoAppServerUrl=o.GetValue(WEB_CALL_URL,WebRTCMgr.WEBRTC_URL),n.chatInfo.authToken=o.GetValue(WEB_CALL_AUTH_TOKEN,"")),n.isIOSSDK()?window.parent.webkit.messageHandlers.tcrtc.postMessage("startcall&"+n.chatInfo.customerId+"&"+n.chatInfo.chatId+"&"+n.chatInfo.siteId+"&"+e+"&"+t):n.getAndSDKInst()?n.getAndSDKInst().joinCall(JSON.stringify({roomName:n.chatInfo.chatId,userName:n.chatInfo.customerId,siteID:n.chatInfo.siteId,token:e,url:t})):(i.setOnErrorCb(n.onError),i.setAudioOnly(n.isAudioOnlyWebCall()),i.setCallStartedCb(n.processCallStarted),i.setCallEndedCb(n.processCallEnded),i.setOnDisconnectCb(n.onDisconnect),i.setServerTmeoutCb(n.onTimeout),n.chatInfo.kurentoAppServerUrl=t,com.inq.utils.Util.getConfig("isVidyo",!0)?(i.setVideoEl(n.agentVideoElement,n.clientVideoElement),i.setTagServerUrl(com.inq.flash.client.control.FlashPeer.getVanityUrl()),n.chatInfo.token=com.inq.utils.Util.getConfig("vidyoKeyID","123")):(i.setVideoEl(n.clientVideoElement,n.agentVideoElement),n.chatInfo.authToken=e),i.initialize(n.chatInfo))},com.inq.flash.client.control.WebRTCMgr.processCallStarted=function(){var t,e=com.inq.flash.client.control.WebRTCMgr,i=com.inq.flash.client.control.PersistenceManager,n=e.toggleElState;n(e.webCallCanvas,!0),n(e.webCallConnecting,!1),n(e.webCallInProgress,!0),n(e.webCallEndCallBtn,!0),n(e.webCallStartCallBtn,!1),n(e.webCallRestartBtn,!1),n(e.webCallError,!1),n(e.webCallRecon,!1),n(e.webCallPDen,!1),t="restarted"==e.webCallStatus?com.inq.utils.Util.getConfig("webCallRestarted","Customer rejoined after dropping from the call."):com.inq.utils.Util.getConfig("webCallStarted","Customer joined the Call."),e.sendWebCallMessage(t,"started"==e.webCallStatus?e.WEBCALL_CONNECTED:e.WEBCALL_RECONNECTED),e.webCallStatus="progress",i.SetValue(WEB_CALL_STARTED,1),i.SetValue(WEB_CALL_URL,e.chatInfo.kurentoAppServerUrl),i.SetValue(WEB_CALL_AUTH_TOKEN,e.chatInfo.authToken),e.ringSnd&&e.ringSnd.audio.pause()},com.inq.flash.client.control.WebRTCMgr.processCallEnded=function(){var t=com.inq.flash.client.control.WebRTCMgr,e=com.inq.flash.client.control.PersistenceManager;if("callerror"!=t.webCallStatus){var i=t.toggleElState;i(t.webCallEndCallBtn,!1),i(t.webCallInProgress,!1),i(t.webCallConnecting,!1);var n=com.inq.utils.Util.getConfig("webCallEnded","Call ended.");"progress"==t.webCallStatus||"ended"==t.webCallStatus?t.sendWebCallEndMessage(n,t.isCustomerEndsChat):"started"==t.webCallStatus?t.sendWebCallEndMessage(WebRTCMgr.CALL_LEFT_MSG,t.isCustomerEndsChat,!0):"restarted"==t.webCallStatus&&t.sendWebCallMessage(WebRTCMgr.CALL_WS_MSG,t.WEBCALL_ERROR),t.webCallStatus="ended",e.SetValue(WEB_CALL_STARTED,0),e.SetValue(WEB_CALL_MODE,""),t.isCustomerEndsChat=!1,t.isEngaged=!1,t.ringSnd&&t.ringSnd.audio.pause(),t.closeOnEnd&&com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat(null)}},com.inq.flash.client.control.WebRTCMgr.onError=function(t,e){var i=com.inq.flash.client.control.WebRTCMgr,n=window.top.WebRTCApp||window.WebRTCApp;if("progress"!=i.webCallStatus&&"restarted"!=i.webCallStatus&&"ended"!=i.webCallStatus){i.ringSnd&&i.ringSnd.audio.pause();var o=!1,a="";switch(t){case"perDenied":o=!0,a="Chat Interface failed to access Microphone.",i.automatonParams&&com.inq.flash.client.control.XFrameWorker.setEngageParameters(i.automatonParams);break;case"AI":a="Agent failed to setup a WebRTC call.";break;case"LC":a="CI Lost Web Socket Connectivity.";break;case"WE":a="CI failed to setup WebRTC call.";break;case"TO":a="WebRTC call ended due to room/media Error.";break;case"IC":a="Customer failed to setup ICE Connection.";break;default:a="Unexpected connection error."}var s=com.inq.utils.Util.getConfig(o?"webCallPerErr":"webCallError",a),l=i.setErrorText(null,s,!1,!!o);com.inq.flash.client.control.PersistenceManager.SetValue(WEB_CALL_STARTED,0),i.isCustomerEndsChat=!1,i.isEngaged=!1,i.webCallStatus="callerror",n&&n.closeRoom(),i.isIOSSDK()&&"perDenied"==!t&&i.isIOSSDK().postMessage("endcall"),l+=e?""+e:"",i.sendWebCallMessage(l,o?i.PERM_DENIED:i.WEBCALL_ERROR),i.disSnd&&i.disSnd.audio.play()}},com.inq.flash.client.control.WebRTCMgr.setErrorText=function(t,e,i,n){var o=com.inq.flash.client.control.WebRTCMgr,a="string"==typeof t?t:e,s=o.toggleElState;if(s(o.webCallConnecting,!1),s(o.webCallInProgress,!1),s(o.webCallEndCallBtn,!1),i&&o.webCallRecon)return s(o.webCallRecon,!0),a;if(n&&o.webCallPDen)return s(o.webCallPDen,!0),a;s(o.webCallError,!0),s(o.webCallEndCallBtn,!1),s(o.muteBtn,!1),s(o.unmuteBtn,!1),com.inq.aria.AriaMsg.addAriaMsg(o.webCallError._div.innerText);var l=Application.application.getButton("redirectToContactUs");return l&&l._img&&l._img.focus(),js.Boot.__instanceof(o.webCallError,com.inq.ui.Text)&&o.webCallError.setText(a),a},com.inq.flash.client.control.WebRTCMgr.onDisconnect=function(t,e){var i=com.inq.flash.client.control.WebRTCMgr;"ended"!=i.webCallStatus&&"callerror"!=i.webCallStatus&&(i.setErrorText(t,"",!0),e||(window.WebRTCApp?window.WebRTCApp.leaveRoom():window.top.WebRTCApp.leaveRoom(),clearTimeout(i.timerID),i.timerID=setTimeout(i.onTimeout,3e3)))},com.inq.flash.client.control.WebRTCMgr.onRestart=function(t){var e=com.inq.flash.client.control.WebRTCMgr;window.WebRTCApp?window.WebRTCApp.leaveRoom():window.top.WebRTCApp.leaveRoom(),e.setErrorText(t,"",!0),e.incrementCount()},com.inq.flash.client.control.WebRTCMgr.onTimeout=function(){var t=com.inq.flash.client.control.WebRTCMgr;1===com.inq.flash.client.control.PersistenceManager.GetValue(WEB_CALL_STARTED,0)&&(t.retryCount<5?(t.webCallStatus="restarted",t.incrementCount(),t.joinCall(t.chatInfo.kurentoAppServerUrl,t.chatInfo.authToken),t.retryCount++):(t.retryCount=0,t.webCallStatus="callerror",t.onError("TO")))},com.inq.flash.client.control.WebRTCMgr.onKMSLoad=function(){var t=com.inq.flash.client.control.WebRTCMgr;if(t.isEngaged){var e=Application.application.getButton("btnEndCallA");e&&e._img&&e._img.focus(),t.engageCall(t.automatonParams)}else t.sendStartCallMessage()},com.inq.flash.client.control.WebRTCMgr.sendStartCallMessage=function(){com.inq.flash.client.control.WebRTCMgr.sendWebCallMessage((com.inq.utils.Util.getConfig("isVidyo",!0)?"true":"false")+","+(com.inq.flash.client.control.WebRTCMgr.isAudioOnlyWebCall()?"false":"true")+","+com.inq.flash.client.control.FlashPeer.getVanityUrl()+","+com.inq.utils.Util.getConfig("appKeyId","123")+","+com.inq.utils.Util.getConfig("webCallStart","Start call"),com.inq.flash.client.control.WebRTCMgr.WEBCALL_REQUESTED)},com.inq.flash.client.control.WebRTCMgr.getElement=function(t,e){return Application.application.getMxmlItem(e?t+"A":t)},com.inq.flash.client.control.WebRTCMgr.toggleElState=function(t,e){t&&t.setVisible(e)},com.inq.flash.client.control.WebRTCMgr.incrementCount=function(){com.inq.flash.client.control.WebRTCMgr.webcallCounter++,com.inq.flash.client.control.WebRTCMgr.chatInfo.counter=com.inq.flash.client.control.WebRTCMgr.webcallCounter},com.inq.flash.client.control.WebRTCMgr.resetElState=function(){var t=com.inq.flash.client.control.WebRTCMgr,e=t.toggleElState;e(t.webCallStartCallBtn,!0),e(t.webCallError,!1),e(t.webCallConnecting,!1),e(t.webCallPDen,!1),e(t.webCallRecon,!1),t.webCallStatus=""},com.inq.flash.client.control.WebRTCMgr.isWebRTCCapable=function(){var t=com.inq.flash.client.control.WebRTCMgr;return"function"==typeof(navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia)||null!=t.isIOSSDK()||null!=t.getAndSDKInst()},com.inq.flash.client.control.WebRTCMgr.setCallQueue=function(){"started"!=WebRTCMgr.webCallStatus||WebRTCMgr.isQueued||(WebRTCMgr.sendWebCallMessage("Call in Queue.",WebRTCMgr.CALL_QUEUED),WebRTCMgr.isQueued=!0)},com.inq.flash.client.control.WebRTCMgr.isIOSSDK=function(){var t=window.parent;return t.webkit&&t.webkit.messageHandlers&&t.webkit.messageHandlers.tcrtc},com.inq.flash.client.control.WebRTCMgr.getAndSDKInst=function(){return window.parent.NuanRTCSDK},com.inq.flash.client.control.WebRTCMgr.getMuteBtn=function(){return com.inq.flash.client.control.WebRTCMgr.muteBtn},com.inq.flash.client.control.WebRTCMgr.isCallStarted=function(){var t=com.inq.flash.client.control.WebRTCMgr;return t.webCallStatus&&"ended"!=t.webCallStatus&&"callerror"!=t.webCallStatus},window.WebRTCMgr=com.inq.flash.client.control.WebRTCMgr,WebRTCMgr.chatInfo=null,WebRTCMgr.webCallConnecting=null,WebRTCMgr.webCallInProgress=null,WebRTCMgr.webCallError=null,WebRTCMgr.customerVideoElement=null,WebRTCMgr.agentVideoElement=null,WebRTCMgr.webCallCanvas=null,WebRTCMgr.audioOnlyChat=!0,WebRTCMgr.webCallStatus=null,WebRTCMgr.webcallCounter=0,WebRTCMgr.isCustomerEndsChat=!1,WebRTCMgr.isEngaged=!1,WebRTCMgr.automatonParams=null,WebRTCMgr.timerID=-1,WebRTCMgr.closeOnEnd=!1,WebRTCMgr.retryCount=0,WebRTCMgr.isQueued=!1,WebRTCMgr.WEBCALL_REQUESTED="webcallRequest",WebRTCMgr.WEBCALL_CONNECTED="webcallConnected",WebRTCMgr.WEBCALL_RECONNECTED="webcallReconnected",WebRTCMgr.WEBCALL_ENDED="webcallEnded",WebRTCMgr.WEBCALL_ERROR="webcallError",WebRTCMgr.WEBCALL_LEFT="wcLEFT",WebRTCMgr.PERM_DENIED="wcDenied",WebRTCMgr.CALL_QUEUED="wcQueued",WebRTCMgr.CALL_LEFT_MSG="Customer left the call.",WebRTCMgr.CALL_WS_MSG="Customer lost web socket connection.",WebRTCMgr.WEBRTC_URL="https://webrtc-test.inq.com/",WebRTCMgr.AUDIO_CALL="AC",WebRTCMgr.VIDEO_CALL="VC",y(1299),y(5306),com.inq.flash.client.control.XFrameWorker=function(){},$hxClasses.registerClass(com.inq.flash.client.control.XFrameWorker,"com.inq.flash.client.control.XFrameWorker"),com.inq.flash.client.control.XFrameWorker.init=function(){com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.setEngageParameters",com.inq.flash.client.control.XFrameWorker.setEngageParameters),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.engageChat",com.inq.flash.client.control.XFrameWorker.engageChat),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.isChatConnected",com.inq.flash.client.control.XFrameWorker.isChatConnected),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.showLayer",com.inq.flash.client.control.XFrameWorker.showLayer),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.hideLayer",com.inq.flash.client.control.XFrameWorker.hideLayer),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.grow",com.inq.flash.client.control.XFrameWorker.grow),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.shrink",com.inq.flash.client.control.XFrameWorker.shrink),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.showLayerXcd",com.inq.flash.client.control.XFrameWorker.showLayerXcd),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.isLayerVisible",com.inq.flash.client.control.XFrameWorker.isLayerVisible),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.fireCustomEvt",com.inq.flash.client.control.XFrameWorker.fireCustomEvt),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.showAutomatonXcd",com.inq.flash.client.control.XFrameWorker.showAutomatonXcd),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.hideLayerAndEndChat",com.inq.flash.client.control.XFrameWorker.hideLayerAndEndChat),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.growXcd",com.inq.flash.client.control.XFrameWorker.growXcd),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.preparingClosingChat",com.inq.flash.client.control.XFrameWorker.preparingClosingChat),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.closeChat",com.inq.flash.client.control.XFrameWorker.closeChat),com.inq.utils.Util.publish("window.inqFrame.closeChat",com.inq.flash.client.control.XFrameWorker.closeChat),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.setAutomatonDataMapXcd",com.inq.flash.client.control.XFrameWorker.setAutomatonDataMapXcd),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.isDisplayInCI",com.inq.flash.client.control.XFrameWorker.isDisplayInCI),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.resizeStage",com.inq.flash.client.control.XFrameWorker.resizeStage),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.moveStage",com.inq.flash.client.control.XFrameWorker.moveStage),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.syncLayer",com.inq.flash.client.control.XFrameWorker.syncLayer),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.XFrameWorker.onCookiesCommitted",com.inq.flash.client.control.XFrameWorker.onCookiesCommitted),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.MinimizeManager.actionMinimize",com.inq.flash.client.control.MinimizeManager.actionMinimize),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.MinimizeManager.actionRestore",com.inq.flash.client.control.MinimizeManager.actionRestore),com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.MinimizeManager.isMinimized",com.inq.flash.client.control.MinimizeManager.isMinimized),com.inq.utils.Util.publish("window.inqFrame.XFrameWorker.setCircularModalWindow",com.inq.flash.client.control.XFrameWorker.setCircularModalWindow),com.inq.utils.Util.publish("window.inqFrame.XFrameWorker.setCircularApplication",com.inq.flash.client.control.XFrameWorker.setCircularApplication),com.inq.utils.Util.publish("window.inqFrame.XFrameWorker.removeCircularModalWindow",com.inq.flash.client.control.XFrameWorker.removeCircularModalWindow),com.inq.utils.Util.publish("window.inqFrame.XFrameWorker.isCircularTabbingEnabled",com.inq.flash.client.control.XFrameWorker.isCircularTabbingEnabled),com.inq.utils.Util.publish("window.inqFrame.XFrameWorker.transitionPage",com.inq.flash.client.control.XFrameWorker.transitionPage),com.inq.utils.Util.publish("window.inqFrame.com.inq.net.URLLoader._httpRequestHandler",com.inq.net.URLLoader._httpRequestHandler),com.inq.flash.client.control.XFrameWorker.xframeLoadingIntIdCount=0,com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId=-1,com.inq.utils.Util.publish("window.inqFrame.com.inq.flash.client.control.sendSystemMessage",com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendSystemMessage),com.inq.utils.Util.publish("ciSendText",com.inq.flash.client.chatskins.SkinControl.actionBtnSend);var t,e=com.inq.flash.client.control.PersistenceManager.GetValue(XFRAMES,{}),i=Reflect.fields(e);haxe.Log.trace("XFrameWorker.init(): restoring saved state for "+i.length+" layer(s).",{fileName:"XFrameWorker.hx",lineNumber:46,className:"com.inq.flash.client.control.XFrameWorker",methodName:"init"});for(var n=0;n<i.length;n++)"1"==e[t=i[n]]?com.inq.flash.client.control.XFrameWorker.showLayer(t):com.inq.flash.client.control.XFrameWorker.hideLayer(t);return com.inq.flash.client.control.XFrameWorker.doIFrameNotification=com.inq.utils.Util.getConfig("iFrameCanvasClosedMessage",com.inq.flash.client.control.XFrameWorker.doIFrameNotification),com.inq.flash.client.control.XFrameWorker.doIFrameNotificationToAgent=com.inq.utils.Util.getConfig("iFrameCanvasClosedMessageToAgent",com.inq.flash.client.control.XFrameWorker.doIFrameNotificationToAgent),!0},com.inq.flash.client.control.XFrameWorker.isLayerVisible=function(t){var e=!1;return com.inq.flash.client.chatskins.SkinControl.isInApplication(t)?"true"==Application.application.getMxmlItem(t).getStyle("visible")&&(e=!0):haxe.Log.trace("XFrameWorker.isLayerVisible('"+t+"', ...): layer is not in the application",{fileName:"XFrameWorker.hx",lineNumber:68,className:"com.inq.flash.client.control.XFrameWorker",methodName:"isLayerVisible",customParams:["warn"]}),e},com.inq.flash.client.control.XFrameWorker.showVideoLayer=function(t,e,i,n,o,a,s){var l=s.split(","),r=Application.application.getMxmlItem(t);try{if(js.Boot.__instanceof(r,com.inq.ui.VideoPlayer))c.setupArgs(l);else{var c,h,m,u=r._div&&r._div.children;m=u.length;for(var p=0;p<m;p++)(h=u[p].id)&&(-1!=h.indexOf("tcChat_")&&(h=h.substring(7)),c=Application.application.getMxmlItem(h),js.Boot.__instanceof(c,com.inq.ui.VideoPlayer)&&c.setupArgs(l))}r.getVisible()&&c?c.play():com.inq.flash.client.control.XFrameWorker.showLayer(t,e,i,n,o,a)}catch(t){}},com.inq.flash.client.control.XFrameWorker.showIFrameLayer=function(t,e,i,n,o,a,s){var l=Application.application.getMxmlItem(t);try{l&&l._div&&(Application.application.sendMessageWhenShowHideLayerFlag=!0,com.inq.flash.client.control.XFrameWorker.showLayer(t,e,i,n,o,a))}catch(t){}},com.inq.flash.client.control.XFrameWorker.showLayer=function(t,e,i,n,o,a){var s,l=com.inq.flash.client.chatskins.SkinControl.initializePanelHandler(t,!0);null==o&&(o=!0),null==e&&(e=!1),haxe.Log.trace("XFrameWorker.showLayer("+t+", "+Std.string(e)+", "+i+", "+n+", "+Std.string(o)+") entered",{fileName:"XFrameWorker.hx",lineNumber:84,className:"com.inq.flash.client.control.XFrameWorker",methodName:"showLayer"});var r=0,c=0;if(com.inq.flash.client.chatskins.SkinControl.isInApplication(t)){if(null!=(s=Application.application.getMxmlItem(t))){if(null!=i)if(js.Boot.__instanceof(s,com.inq.ui.XFrame)){var h=com.inq.flash.client.control.FlashPeer.parseXFrameUrl(i);h.initiator=a,s.setSrcWithBusinessUnitID(h,n),s.persistURL()}else s.setIFrameSrc(i);else s.updateSrc(n,a);if(s.loadContent(),"collapse"==s.getStyle("visibility")){try{c=Std.parseInt(s.getStyle("ucW"))}catch(t){c=0}try{r=Std.parseInt(s.getStyle("ucH"))}catch(t){r=0}if(null==c)try{c=Std.parseInt(s.getStyle("width"))}catch(t){c=0}if(null==r)try{r=Std.parseInt(s.getStyle("height"))}catch(t){c=0}null==c&&(c=0),null==r&&(r=0),s.setStyle("visibility","visible"),s.setStyle("visible","true"),s.setVisible(!0),com.inq.flash.client.control.XFrameWorker.setPersistentState(t,!0,o),Application.application.resize()}else"false"==s.getStyle("visible")&&(s.setStyle("visible","true"),s.setVisible(!0),com.inq.flash.client.control.XFrameWorker.setPersistentState(t,!0,o))}}else haxe.Log.trace("XFrameWorker.showLayer('"+t+"', ...): layer is not in the application",{fileName:"XFrameWorker.hx",lineNumber:128,className:"com.inq.flash.client.control.XFrameWorker",methodName:"showLayer",customParams:["warn"]});if(com.inq.flash.client.control.XFrameWorker.enableChatWindow(),"Chat"==t)haxe.Log.trace("XFrameWorker.showLayer: SkinControl.kickOffChat",{fileName:"XFrameWorker.hx",lineNumber:131,className:"com.inq.flash.client.control.XFrameWorker",methodName:"showLayer"}),com.inq.flash.client.chatskins.SkinControl.kickOffChat(e),haxe.Log.trace("XFrameWorker.showLayer: SkinControl.fireMxmlHandler(onShowChat)",{fileName:"XFrameWorker.hx",lineNumber:133,className:"com.inq.flash.client.control.XFrameWorker",methodName:"showLayer"}),com.inq.flash.client.chatskins.SkinControl.fireMxmlHandler("onShowChat");else if("chat"==t)com.inq.utils.Capabilities.isPhone()?com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField(!0):com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField();else if("switch"===t){com.inq.aria.AriaMsg.disableScreenReaderForChat();var m=Application.application.getButton("btnReturnToChatA");m&&m._img&&m._img.focus()}else if(com.inq.utils.Capabilities.isPhone()){var u=parent.document.activeElement;!u||"INPUT"!=u.tagName&&"TEXTAREA"!=u.tagName||u.blur(),com.inq.utils.Capabilities.isIphone()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.HasFocus()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur()}com.inq.flash.client.chatskins.SkinControl.fixChatOnPanelOpenClose(t,!0,l)},com.inq.flash.client.control.XFrameWorker.enableChatWindow=function(){var t=com.inq.ui.Container._getElementById("tcChat_chatWindow",parent.document);t&&t.hasAttribute("data-disabled")&&(com.inq.flash.client.chatskins.SkinControl.getInputArea().setVisible(!0),com.inq.flash.client.chatskins.SkinControl.getSendButton().setVisible(!0),t.removeAttribute("aria-hidden"),t.removeAttribute("data-disabled"))},com.inq.flash.client.control.XFrameWorker.showLayerXcd=function(t,e,i){var n={type:"automaton",id:i};com.inq.flash.client.control.XFrameWorker.showLayer(t,!1,null,null,e,n)},com.inq.flash.client.control.XFrameWorker.showAutomatonXcd=function(t,e,i,n){var o={type:"automaton",id:t};com.inq.flash.client.control.XFrameWorker.showLayer(e,!1,i,null,n,o)},com.inq.flash.client.control.XFrameWorker.fireCustomEvt=function(t,e,i){null!=i&&""==i&&(i=null),com.inq.flash.client.control.FlashPeer.fireCustomEvt(t,e,i)},com.inq.flash.client.control.XFrameWorker.hideLayer=function(t,e){var i,n=com.inq.flash.client.chatskins.SkinControl.initializePanelHandler(t,!1);if(null==e&&(e=!0),haxe.Log.trace("XFrameWorker.hideLayer("+t+", "+Std.string(e)+") entered",{fileName:"XFrameWorker.hx",lineNumber:156,className:"com.inq.flash.client.control.XFrameWorker",methodName:"hideLayer"}),com.inq.flash.client.chatskins.SkinControl.isInApplication(t)){var o,a;i=Application.application.getMxmlItem(t),com.inq.flash.client.control.FlashPeer.noV3FrameChat()?(a=Application.application.stg.style.height,o=Application.application.stg.style.width):(a=window.frameElement.style.height,o=window.frameElement.style.width);var s=Std.parseInt(a),l=Std.parseInt(o);i.initStyle("visibility","collapse"),!0===Application.application.sendMessageWhenShowHideLayerFlag&&(com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendSystemMessage(com.inq.flash.client.control.XFrameWorker.doIFrameNotification),Application.application.sendMessageWhenShowHideLayerFlag=!1),com.inq.flash.client.control.MinimizeManager.isMinimized()||Application.application.resize();var r=l-Std.parseInt(o),c=s-Std.parseInt(a);i.initStyle("ucH",""+c),i.initStyle("ucW",""+r),com.inq.flash.client.control.XFrameWorker.setPersistentState(t,!1,e),i.fireHidden(),i._visible=!1,"switch"===t&&com.inq.aria.AriaMsg.restoreScreenReaderForChat()}else haxe.Log.trace("XFrameWorker.hideLayer('"+t+"', ...): layer is not in the application",{fileName:"XFrameWorker.hx",lineNumber:170,className:"com.inq.flash.client.control.XFrameWorker",methodName:"hideLayer",customParams:["warn"]});com.inq.flash.client.chatskins.SkinControl.fixChatOnPanelOpenClose(t,!1,n)},com.inq.flash.client.control.XFrameWorker.hideLayerAndEndChat=function(t,e){null==e&&(e=!0),haxe.Log.trace("hideLayerAndEndChat entered",{fileName:"XFrameWorker.hx",lineNumber:176,className:"com.inq.flash.client.control.XFrameWorker",methodName:"hideLayerAndEndChat"}),com.inq.flash.client.chatskins.SkinControl.getApplicationController().shutdown(com.inq.flash.client.chatskins.SkinControl.CLOSE_CHAT_REASON_AUTOMATON),"ROOT"==t.toUpperCase()||com.inq.flash.client.control.XFrameWorker.hideLayer(t,e)},com.inq.flash.client.control.XFrameWorker.grow=function(t,e,i,n){var o,a,s=com.inq.flash.client.chatskins.SkinControl.initializePanelHandler(t,!0);if(null==i&&(i=!0),com.inq.flash.client.chatskins.SkinControl.isInApplication(t)){if(o=Application.application.getMxmlItem(t),null!=e)if(js.Boot.__instanceof(o,com.inq.ui.XFrame)){var l=com.inq.flash.client.control.FlashPeer.parseXFrameUrl(e);l.initiator=n,o.setSrcWithBusinessUnitID(l,null),o.persistURL()}else o.setSrc(e);else o.updateSrc(null,n);var r=com.inq.utils.Util.getConfig("msgVideoOpen","");r=r.replace("{accesskey}",(a="Alt",navigator.userAgent.toLowerCase().indexOf("firefox")>-1?a="Shift Alt":-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&-1==navigator.userAgent.indexOf("Android")&&navigator.platform.toUpperCase().indexOf("MAC")>=0&&(a="Control"),a)),com.inq.aria.AriaMsg.addAriaMsg(r),o.loadContent();var c=0,h=0;if("collapse"==o.getStyle("visibility")){o.setStyle("visibility","visible"),o.setStyle("visible","true"),o.setVisible(!0);var m=o.getStyle("height");null!=m&&""!=m&&(h=o.getHeight()),null!=(m=o.getStyle("width"))&&""!=m&&(c=o.getWidth())}var u=com.inq.ui.Stage.getterStageHeight()+h,p=com.inq.ui.Stage.getterStageWidth()+c;com.inq.utils.Util.getConfig("divSkin",!1)&&com.inq.utils.Capabilities.isMobile()&&(p=Std.parseInt(inqFrame.frameElement.style.width)+Std.parseInt(o.styles.width)),com.inq.flash.client.control.XFrameWorker.setPersistentState(t,!0,i),com.inq.flash.client.control.XFrameWorker.resizeStage(p,u),o.setVisible(!0),"Chat"==t&&com.inq.flash.client.chatskins.SkinControl.kickOffChat()}com.inq.flash.client.chatskins.SkinControl.fixChatOnPanelOpenClose(t,!0,s)},com.inq.flash.client.control.XFrameWorker.growXcd=function(t,e,i){var n={type:"automaton",id:i};com.inq.flash.client.control.XFrameWorker.showLayer(t,!1,null,null,e,n)},com.inq.flash.client.control.XFrameWorker.shrink=function(t,e){var i,n=com.inq.flash.client.chatskins.SkinControl.initializePanelHandler(t,!1);if(null==e&&(e=!0),haxe.Log.trace("XFrameWorker.shrink("+t+", "+Std.string(e)+") entered",{fileName:"XFrameWorker.hx",lineNumber:226,className:"com.inq.flash.client.control.XFrameWorker",methodName:"shrink"}),com.inq.flash.client.chatskins.SkinControl.isInApplication(t)){var o=com.inq.utils.Util.getConfig("msgVideoClose","");com.inq.aria.AriaMsg.addAriaMsg(o);var a=0,s=0;if("collapse"!=(i=Application.application.getMxmlItem(t)).getStyle("visibility")){var l=i.getStyle("height");null!=l&&""!=l&&(s=i.getHeight()),null!=(l=i.getStyle("width"))&&""!=l&&(a=i.getWidth())}if(i.initStyle("visible","false"),i.initStyle("visibility","collapse"),!0===Application.application.sendMessageWhenShowHideLayerFlag){var r=com.inq.flash.client.chatskins.SkinControl.getApplicationController(),c=r.appendSentText(com.inq.flash.client.control.XFrameWorker.doIFrameNotification,-1),h=new com.inq.flash.client.data.ChatCommunicationMessage(r.chat,com.inq.flash.client.control.XFrameWorker.doIFrameNotificationToAgent);""===com.inq.flash.client.control.XFrameWorker.doIFrameNotification.trim()&&(h.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"0"),h.addProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA_HIDDEN_FOR_CUSTOMER,"true")),r.sendChatCommunicationMessage(h,c),Application.application.sendMessageWhenShowHideLayerFlag=!1}com.inq.flash.client.control.MinimizeManager.isMinimized()||Application.application.resize();var m=com.inq.ui.Stage.getterStageHeight()-s,u=com.inq.ui.Stage.getterStageWidth()-a;com.inq.flash.client.control.XFrameWorker.resizeStage(u,m),com.inq.aria.ModalWindow.isCircularTabbingEnabled&&com.inq.aria.ModalWindow.setCircularModalWindow(),com.inq.flash.client.control.MinimizeManager.isMinimized()||com.inq.flash.client.chatskins.SkinControl.setFocusOnInputField(),com.inq.flash.client.control.XFrameWorker.setPersistentState(t,!1,e),com.inq.flash.client.chatskins.SkinControl.fixChatOnPanelOpenClose(t,!1,n)}},com.inq.flash.client.control.XFrameWorker.setEngageParameters=function(t){"object"!=typeof t&&(t=com.inq.flash.client.control.XFrameWorker._preparingChatParameters.apply(null,arguments)),t.agentOutcome=com.inq.flash.client.control.XFrameWorker.DO_NOT_DISPLAY_IN_CI+com.inq.flash.client.control.XFrameWorker.findCustomerName(t.agentOutcome),com.inq.flash.client.control.XFrameWorker.removeCircularModalWindow(),com.inq.flash.client.chatskins.SkinControl.getApplicationController().prepareEngageChat(t)&&com.inq.flash.client.chatskins.SkinControl.onChatEngaged()},com.inq.flash.client.control.XFrameWorker.engageChat=function(t){"object"!=typeof t&&(t=com.inq.flash.client.control.XFrameWorker._preparingChatParameters.apply(null,arguments)),t.agentOutcome=com.inq.flash.client.control.XFrameWorker.DO_NOT_DISPLAY_IN_CI+com.inq.flash.client.control.XFrameWorker.findCustomerName(t.agentOutcome),com.inq.flash.client.control.XFrameWorker.removeCircularModalWindow(),com.inq.flash.client.control.XFrameWorker.redirectToNativeSDK(t)||com.inq.flash.client.chatskins.SkinControl.getApplicationController().engageChat(t)&&com.inq.flash.client.chatskins.SkinControl.onChatEngaged()},com.inq.flash.client.control.XFrameWorker.redirectToNativeSDK=function(t){return!(void 0===window.top.NuanIJSFBridge&&!com.inq.utils.Capabilities.getIOSNativeSDKInstance()||(t.vidyoHost=com.inq.utils.Util.getConfig("vidyoHost","prod.vidyo.io"),t.appKeyId=com.inq.utils.Util.getConfig("appKeyId","123"),t.custName=com.inq.flash.client.control.FlashVars.getCustomerName(),com.inq.flash.client.chatskins.SkinControl.removeModalWindow(),com.inq.flash.client.control.MinimizeManager.talkBackDummyRestoreBtnAdded&&com.inq.flash.client.control.MinimizeManager.dummyRestoreBtn.remove(),com.inq.flash.client.control.MinimizeManager.Close(),com.inq.flash.client.chatskins.ScrollMonitor.Close(),com.inq.flash.client.chatskins.ChatTextFocusMonitor.Close(),com.inq.stage.ViewportMgr.close(),com.inq.flash.client.chatskins.SkinControl.HideClientDecorations(),com.inq.flash.client.chatskins.SkinControl.stopOpenerScript(),com.inq.flash.client.chatskins.SkinControl.StopTimer(),com.inq.aria.ModalWindow.removeCircularModalWindow(),Application.application.close(),com.inq.flash.client.control.FlashPeer.launchNativeSDK(t),0))},com.inq.flash.client.control.XFrameWorker.setCircularTabbing=function(t){t?com.inq.flash.client.control.XFrameWorker.setCircularApplication():com.inq.flash.client.control.XFrameWorker.removeCircularModalWindow()},com.inq.flash.client.control.XFrameWorker._preparingChatParameters=function(t,e,i,n,o,a,s,l,r,c){return{agentOutcome:t,clientOutcome:e,agentAttrs:i,businessUnitID:n,phone:o,agentGroupId:a,scriptTreeId:s,publicUserId:l,automatonId:r,automatonFields:c}},com.inq.flash.client.control.XFrameWorker.isChatConnected=function(){var t=com.inq.flash.client.chatskins.SkinControl,e=com.inq.flash.client.control.PersistenceManager.GetValue(MESSAGE_COUNT,0);return t.getIsPersistentChat()&&e<t.applicationController.msgcntAtEntry&&(e=t.applicationController.msgcntAtEntry),t.applicationController.isConnected()||e>0},com.inq.flash.client.control.XFrameWorker.findCustomerName=function(t){var e,i=new RegExp("CustomerDisplayName: (.*)\n","i");return i.test(t)&&(2==(e=i.exec(t)).length&&""!=e[1]&&com.inq.flash.client.control.FlashVars.setCustomerName(e[1],!0),t=t.replace(i,"")),t},com.inq.flash.client.control.XFrameWorker.preparingClosingChat=function(){com.inq.flash.client.chatskins.SkinControl.preparingClosingChat()},com.inq.flash.client.control.XFrameWorker.closeChat=function(){com.inq.flash.client.chatskins.SkinControl.isChatSessionEnded()&&!Application.application.getVisible()||com.inq.flash.client.chatskins.SkinControl.actionCloseChat()},com.inq.flash.client.control.XFrameWorker.setAutomatonDataMapXcd=function(t){if(com.inq.flash.client.control.FlashVars.setAutomatonSpecData(t),com.inq.flash.client.control.XFrameWorker.isChatConnected()){var e=new com.inq.flash.client.data.ChatAutomatonDataMapMessage(com.inq.flash.client.control.FlashVars.getChatID(),t);com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendMessage(e)}},com.inq.flash.client.control.XFrameWorker.isDisplayInCI=function(t){return t.indexOf(com.inq.flash.client.control.XFrameWorker.DO_NOT_DISPLAY_IN_CI)<0},com.inq.flash.client.control.XFrameWorker.setPersistentState=function(t,e,i){haxe.Log.trace("XFrameWorker.setPersistentState entered: layer '"+t+"' = "+Std.string(e)+", updateCookies="+Std.string(i),{fileName:"XFrameWorker.hx",lineNumber:263,className:"com.inq.flash.client.control.XFrameWorker",methodName:"setPersistentState"});var n=com.inq.flash.client.control.PersistenceManager.GetValue(XFRAMES,{});e?n[t]="1":(n[t]="0",function t(e,i,n){if(e.contains&&e.contains.size()>0)for(var o=0;o<e.contains.size();o++){var a=e.contains[o];n[a.styles.id]&&(n[a.styles.id]=i),t(a,i,n)}}(Application.getContainer(t),"0",n)),t.match(/[^0-9a-zA-Z]/)&&"undefined"!=typeof console&&console.warn("(Warning!!!) XFrame name "+t+" contains special symbols and will not be parsed in cookies! Please change XFrame name"),com.inq.flash.client.control.PersistenceManager.SetValue(XFRAMES,n,!0,i)},com.inq.flash.client.control.XFrameWorker.resizeStage=function(t,e){com.inq.flash.client.control.MinimizeManager.isMinimized()||(Application.ResizeStage(t,e),Application.application.resize(),com.inq.flash.client.chatskins.ScrollMonitor.moveChat(),com.inq.flash.client.control.XFrameWorker.hideLoadingButton())},com.inq.flash.client.control.XFrameWorker.moveStage=function(t,e,i){var n=Application.GetArea(),o=com.inq.utils.Capabilities.getViewport(),a=Application.calcChatLocation(n.w,n.h,e,i,t);if(a){var s=window.frameElement;s.style.left=Std.string(a.x)+"px",s.style.top=Std.string(a.y)+"px",Application.initialXPos=a.x-o.x,Application.initialYPos=a.y-o.y,Application.MoveStage(a.x,a.y)}else haxe.Log.trace("XFrameWorker.moveStage('"+t+"', ...): can't move persistent chat window")},com.inq.flash.client.control.XFrameWorker.syncLayer=function(t,e,i){var n,o,a={};if(com.inq.flash.client.chatskins.SkinControl.isInApplication(t)){var s,l;if(null==(n=Application.application.getMxmlItem(t))||null==n.src)return;if(-1==(o=n.src.indexOf("?")))return;for(var r=n.src.substr(o+1),c=n.src.substr(0,o+1),h=r.split("&"),m=0;m<h.length;m++){var u=h[m];-1!=(o=u.indexOf("="))?(s=HxOverrides.substr(u,0,o),l=HxOverrides.substr(u,o+1,null)):(s=u,l=null),a[s]=l}null!=i&&(a.dtid=i),null!=e&&(a.cacheid=e);for(var p="",d=Reflect.fields(a),f=0;f<d.length;f++)0!=f&&(p+="&"),p+=null!=(l=a[s=d[f]])?s+"="+l:s;c+=p,com.inq.flash.client.control.PersistenceManager.SetValue(XFORM_QUERY_STRING,p),n.setSrc(c),n.getVisible()?n.loadContent():com.inq.flash.client.control.XFrameWorker.showLayer(t)}},com.inq.flash.client.control.XFrameWorker.onCookiesCommitted=function(t){com.inq.flash.client.control.FlashPeer.onCookiesCommitted(t)},com.inq.flash.client.control.XFrameWorker.ariaHelpOnLoadingButton=function(){var t=Application.application.getMxmlItem("xframeloading"),e=com.inq.aria.AriaMsg;if(t&&1==t._visible){var i=Application.application.getButton("btnPleaseWait").label;navigator.userAgent.toLowerCase().indexOf("firefox")>-1?com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId=window.setInterval((function(){var t=Application.application.getButton("btnPleaseWait")._img;e.addAriaMsg(null!==i?i:"Chat is loading ... Please wait."),t.focus(),com.inq.flash.client.control.XFrameWorker.xframeLoadingIntIdCount>5&&(clearInterval(com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId),com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId=-1),com.inq.flash.client.control.XFrameWorker.xframeLoadingIntIdCount++}),1e3):e.addAriaMsg(null!==i?i:"Chat is loading ... Please wait.")}},com.inq.flash.client.control.XFrameWorker.hideLoadingButton=function(){var t=Application.application.getMxmlItem("xframeloading");t&&1==t._visible&&(t.setVisible(!1),com.inq.aria.AriaMsg.clearAriaMsg(),com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId&&com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId>-1&&clearInterval(com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId))},com.inq.flash.client.control.XFrameWorker.setCircularModalWindow=function(t,e,i){return com.inq.aria.ModalWindow.setCircularModalWindow(t,e,i)},com.inq.flash.client.control.XFrameWorker.setCircularApplication=function(){com.inq.aria.ModalWindow.setCircularApplication()},com.inq.flash.client.control.XFrameWorker.removeCircularModalWindow=function(){com.inq.aria.ModalWindow.removeCircularModalWindow()},com.inq.flash.client.control.XFrameWorker.isCircularTabbingEnabled=function(){return com.inq.aria.ModalWindow.isCircularTabbingEnabled},com.inq.flash.client.control.XFrameWorker.transitionPage=function(){for(var t=Application.application.getXFrameItems(),e=0;e<t.length;e++)t[e].resetScrolling()},com.inq.flash.client.control.XFrameWorker.prototype.__class__=com.inq.flash.client.control.XFrameWorker,com.inq.flash.client.control.XFrameWorker.DO_NOT_DISPLAY_IN_CI="\x3c!-- Data Pass --\x3e",com.inq.flash.client.control.XFrameWorker.xframeLoadingIntIdCount=0,com.inq.flash.client.control.XFrameWorker.xframeLoadingIntId=-1,com.inq.flash.client.control.XFrameWorker.doIFrameNotification="Panel closed",com.inq.flash.client.control.XFrameWorker.doIFrameNotificationToAgent="Panel closed",com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_AUTHENTICATED_USER_RESPONSE)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler,"com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler"),com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler.prototype.processMessage=function(t){if(!this.getController().getChat().isAsyncChat()){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CONVERSATION_ID),i=t.getPropertyAsBoolean(com.inq.flash.client.data.MessageFields.KEY_CONFIG_IS_ASYNC_ENGAGEMENT);i&&(this.getController().getChat().setAsyncChat(i),com.inq.flash.client.control.FlashPeer.setAsyncChat(i),com.inq.flash.client.control.FlashPeer.getConversationTranscript((function(){com.inq.flash.client.chatskins.SkinControl.asyncTranscriptLoading=!1})),com.inq.flash.client.control.PersistenceManager.SetValue(CONVERSATION_ID,e),com.inq.flash.client.control.FlashPeer.fireCustomerAuthenticatedEvent())}},com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.AuthenticatedUserResponseMessageHandler,function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_SETTING),this.REPLACE_STRING="_REPLACE_"},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler"]=com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatAutomatonRequestElementSettingHandler"],com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setAttribute=function(t,e,i){var n=window.document.getElementsByName(t);if(0==n.length)haxe.Log.trace("element not found by name ["+t+"]",{fileName:"ChatAutomatonRequestElementSettingHandler.hx",lineNumber:72,className:"com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler",methodName:"setAttribute",customParams:["error"]});else for(var o=0,a=n.length;o<a;){var s=n[o++];if(s.name==t){if("disabled"==e&&"A"==s.tagName){s.setAttribute("STYLE","bold"==i?"color: #323232; font-weight: bold":"color: gray");try{s.removeAttribute("onclick")}catch(t){}s.setAttribute("onclick","return false;");try{s.removeAttribute("HREF")}catch(t){}try{s.removeAttribute("href")}catch(t){}}else if("null"==i)try{s.removeAttribute(e)}catch(t){}else s.setAttribute(e,i);com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setAttributesInChatTextArea(s)}}},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.incrementOutstandingCount=function(){com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding++,haxe.Log.trace("incrementOutstandingCount: "+com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding,{fileName:"ChatAutomatonRequestElementSettingHandler.hx",lineNumber:109,className:"com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler",methodName:"incrementOutstandingCount"})},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.decrementOutstandingCount=function(){--com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding,haxe.Log.trace("decrementOutstandingCount: "+com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding,{fileName:"ChatAutomatonRequestElementSettingHandler.hx",lineNumber:122,className:"com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler",methodName:"decrementOutstandingCount"}),com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding<0&&(com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding=0)},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.getOutstandingCount=function(){return com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.hasNoOutstandingMessages=function(){return 0==com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.getOutstandingCount()},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setAttributesInChatTextArea=function(t){com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setEngaged(),com.inq.flash.client.chatskins.SkinControl.getChatWindow().updateTranscriptArray(t)},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setEngaged=function(){com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler._engaged||(com.inq.flash.client.control.Incrementality.onEngaged(),com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler._engaged=!0)},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.prototype.processMessage=function(t){if(com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler._engaged=!0,"1"==t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_ID),i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_TYPE),n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_STATE);com.inq.flash.client.chatskins.SkinControl.executeAfter((function(){return window.document.getElementsByName(e).length>0}),(function(){com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.setAttribute(e,i,n)}),"ChatAutomatonRequestElementSettingHandler.setAttribute")}else com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.decrementOutstandingCount()},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.prototype.REPLACE_STRING=null,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.prototype.chat=null,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler.outstanding=0,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestElementSettingHandler._engaged=!1}(),function(){for(var t in y(5306),com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_REQUEST),this.REPLACE_STRING="_REPLACE_"},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatAutomatonRequestMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.onChange=function(t){var e=window.document.getElementsByName(t);if(e.length>0){var i=e[e.length-1];if("checkbox"===i.type)try{com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendInputState(t,"CHECKED",i.checked?"CHECKED":"null",!0)}catch(t){}}return!1},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.processMessage=function(t){com.inq.flash.client.control.FlashPeer.debugLogDebugToTagServer("VA_DATA_PASS","processMessage triggered.");var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MSG_AGENT_ALIAS);"1"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)||com.inq.flash.client.control.Incrementality.onAgentMsg();var i=t.getProperty(com.inq.flash.client.data.MessageFields.TYPE_VA_DATA_PASS);i&&com.inq.flash.client.control.Incrementality.onVADataPass(i);var n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA),o="true"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_TRANSFER_TO_TC_LIVE_AGENT_DISABLED);n=com.inq.addons.Salesforce.scanMessage(n,o),n=this.handleCustomEventAttributes(n);var a,s=this.createOutText(t,n),l=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY);t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID)===com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.VIRTUAL_AGENT_NINA_ID&&(a=com.inq.flash.client.chatskins.ChatTextArea.VIRTUAL_AGENT_CLASS_NAME);var r=t.getPropertyAsDate(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP);this.getController().appendReceivedText(s,null!=e?e:"",-1,!0,null,l,a,r),this.setEvents(),!0===com.inq.flash.client.chatskins.SkinControl.agentImageTypeEnabled&&com.inq.flash.client.chatskins.SkinControl.setAgentImage(com.inq.flash.client.chatskins.SkinControl.VIRTUAL_AGENT)},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.setEvents=function(){setTimeout(function(){for(var t=0;t<this.events.length;t++){var e=this.events[t],i=com.inq.ui.Container._getElementById(e[1],window.parent.document);null==i&&(i=com.inq.ui.Container._getElementById(e[1])),i&&(i[e[0]]=e[2])}}.bind(this),200)},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.createOutText=function(t,e){var i="automation_"+(new Date).getTime();this.events||(this.events=[]);var n={},o=this._createSentDTEventParametersString(t,i,n);return e=this._prepareChatText(e,o,n,this.events),this._createOutText(e,i,this.events)},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype._createSentDTEventParametersString=function(t,e,i){i||(i={});var n='this, { divId: "'+e+'"';i.divId=e;var o=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_TYPE);if(null!=o&&(n.length>0&&(n+=", "),n+='type : "'+o+'"',i.type=o,o==com.inq.flash.client.data.MessageFields.DATA_CHATROOM_MEMBER_VIRTUAL_AGENT)){com.inq.flash.client.chatskins.SndMgr.PlaySound();var a=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_USERNAME);null!=a&&com.inq.flash.client.control.FlashVars.setCustomerName(a,!0)}var s=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_ID);if(null!=s){n.length>0&&(n+=", "),n+='id : "'+s+'"',i.id=s;var l=com.inq.flash.client.control.FlashPeer.getSurveyAuxParams();null==l&&(l={}),l.Auto=!0;var r,c=l.automatonList;r=null==c?new Array:c.split(",");for(var h=!1,m=0;m<r.length;){var u=r[m];if(++m,u==s){h=!0;break}}h||(r[r.length]=s),l.automatonList=r.join(","),com.inq.flash.client.control.FlashPeer.setSurveyAuxParams(l)}if(null!=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_DT_QUESTION)){n.length>0&&(n+=", ");var p=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_DT_QUESTION);n+='loggedQuestion : "'+p+'"',i.loggedQuestion=p}if(null!=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_STATE)){n.length>0&&(n+=", ");var d=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_STATE);n+='state : "'+d+'"',i.state=d}if(null!=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA_MODEL)){n.length>0&&(n+=", ");var f=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_AUTOMATON_DATA_MODEL);n+="model : "+f,i.model=JSON.parse(f)}return n+"}"},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype._prepareChatText=function(t,e,i,n){i||(i={}),n||(n=this.events=[]);for(var o,a=/onclick(.*?)sendDTEvent\("(.*)",?(.*)\).*?["']/,s=1;o=t.match(a);){var l=this.DT_EVENT_ID_PREFIX+(new Date).getTime()+s;s+=1;var r='id="'+l+'"';function c(t){return function(e){var n=(e=e||window.event).target||e.srcElement;return com.inq.flash.client.control.FlashPeer.prepareDataAndSendDTEvent(t,n,i)}}t=t.replace(a,r),n.push(["onclick",l,c(o[2])])}if((a=/onclick(.*?)sendVALinkClicked\(event\).*?["']/).test(t)){var h=this.VA_LINK_ID_PREFIX+(new Date).getTime(),m='id="'+h+'"';t=t.replace(a,m),com.inq.utils.Capabilities.isIphone()&&(t=t.replace(/href="#"/g,'href="#notdefinedanchor"')),n.push(["onclick",h,function(t){return Application.sendVALinkClicked(t)}])}var u,p,d=/((onclick|ontouchend)(.*?)startChat)(\(.*?\))"\s/g,f=/(startChat\(')(.*?)('\)")/,g=/((onclick|ontouchend)(.*?)prepare)(\(.*?\))"\s/g,C=/(prepare\(')(.*?)('\)")/,q=/((onclick|ontouchend)(.*?)endChat)(\(.*?\))"\s/g;return d.test(t)?(f.test(t)&&(p=t.match(f)[2]),u=function(){return com.inq.addons.Salesforce.startChat(p)},t=this._cleanMessageAddEvent(n,d,t,u)):g.test(t)?(C.test(t)&&(p=t.match(C)[2]),u=function(){return com.inq.addons.Salesforce.prepare(p)},t=this._cleanMessageAddEvent(n,g,t,u)):q.test(t)&&(u=function(){return com.inq.addons.Salesforce.endChat()},t=this._cleanMessageAddEvent(n,q,t,u)),t},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype._cleanMessageAddEvent=function(t,e,i,n){for(var o,a=com.inq.utils.Capabilities.isIphone()?"ontouchend":"onclick",s=/(id=")(.*?)(")/,l=(i=i.replace(e,"")).match(/id=".*?"/g),r=0;r<l.length;r++){var c=l[r];-1===c.indexOf(this.VA_LINK_ID_PREFIX)&&-1===c.indexOf(this.DT_EVENT_ID_PREFIX)&&(o=c.match(s)[2])}return t.push([a,o,n]),i},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype._createOutText=function(t,e,i){i||(i=[]);var n="<span id='"+e+"' >"+t+"</span>",o=document.createElement("DIV");o.innerHTML=n;for(var a=o.getElementsByTagName("INPUT"),s=0,l=a.length;s<l;s++){var r=a[s].name;if(null!=r&&""!=r){var c="automaton_input_"+(new Date).getTime()+s,h=a[s];if("checkbox"==h.type||"text"==h.type){a[s].setAttribute("id",c);var m=function(t){var e=this;return function(i){com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.onChange(t),e.setEvents()}}.bind(this);i.push(["onchange",c,m(r)])}}}n=o.innerHTML;var u=new EReg("<\\s*P\\b\\s*[^>]*>","ig"),p=new EReg("<\\s*/P\\s*>","ig");return n=u.replace(n,"<br/><br/>"),p.replace(n,"")},com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.REPLACE_STRING=null,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.VIRTUAL_AGENT_NINA_ID="virtualAssistant.nina",com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.chat=null,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler,com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.DT_EVENT_ID_PREFIX="automaton_sendDTEvent_",com.inq.flash.client.control.messagehandlers.ChatAutomatonRequestMessageHandler.prototype.VA_LINK_ID_PREFIX="automaton_vaLink_"}(),com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_COMMUNICATION_SURVEY)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler,"com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler"),com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler.prototype.processMessage=function(t){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_AGENT_ALIAS)||"",i=com.inq.flash.client.chatskins.SkinControl.checkMessageForSpecialExpression(t).text,n="1"===t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY),o=parseInt(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR))||-1,a=t.getPropertyAsDate(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP);i=com.inq.flash.client.chatskins.SkinControl.prepareAsyncSurveyMessage(i),n||(com.inq.flash.client.chatskins.SkinControl.getApplicationController().setFlagChatInQueue(!1),com.inq.flash.client.chatskins.FocusMonitor.startTitlebarFlash(),com.inq.flash.client.control.MinimizeManager.lastAgentMessage(i),com.inq.flash.client.chatskins.SndMgr.PlaySound()),com.inq.flash.client.control.MinimizeManager.displayAgentMessageAndCount(i),this.getController().appendReceivedText(i,e,o,!1,null,n,null,a,!0)},com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatCommunicationSurveyMessageHandler,com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_DENIED_RECONNECT)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler,"com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler"),com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler.prototype.processMessage=function(t){this.getController().onLostConnection()},com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatDeniedReconnectMessageHandler,function(){for(var t in com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_SYSTEM)},$hxClasses["com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler"]=com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler,com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","ChatSystemMessageHandler"],com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler.prototype.processMessage=function(t){var e=t.getProperty("client.display.text");if(null!=e){var i=StringTools.trim(e);com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",i,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY))}else{var n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA);com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("bob",n,com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY))}},com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.ChatSystemMessageHandler}(),function(){for(var t in com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_NINA_COACH_CHAT_TAKE_OVER)},$hxClasses["com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler"]=com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler,com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler.__name__=["com","inq","flash","client","control","messagehandlers","NinaCoachChatTakeOverMessageHandler"],com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler.prototype.processMessage=function(t){this.setAgent(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_AGENT_ID),t,!1),"1"!==t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)&&com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow("",t.getProperty(com.inq.flash.client.data.MessageFields.KEY_DISPLAY_TEXT),com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,-1,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY))},com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.NinaCoachChatTakeOverMessageHandler}(),y(5306),com.inq.flash.client.control.messagehandlers.NeedWaitHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_NEED_WAIT),haxe.Log.trace("NeedWaitHandler.Constructor",{fileName:"NeedWaitHandler.hx",lineNumber:103,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"new"}),com.inq.flash.client.control.messagehandlers.NeedWaitHandler.cntMessage=-1,this.needwaitMessageFirstDefault=com.inq.utils.Util.getConfig("needwaitMessageFirstDefault",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_FIRST_DEFAULT),this.needwaitMessageDefault=com.inq.utils.Util.getConfig("needwaitMessageDefault",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_DEFAULT),this.needwaitMessageNoAgentAvailable=com.inq.utils.Util.getConfig("needwaitMessageNoAgentAvailable",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_DEFAULT),this.needwaitMessageFirstNoAgentAvailable=com.inq.utils.Util.getConfig("needwaitMessageFirstNoAgentAvailable",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_DEFAULT),this.needwaitMessageFirst=com.inq.utils.Util.getConfig("needwaitMessageFirst",null),this.needwaitMessageFirstSoon=com.inq.utils.Util.getConfig("needwaitMessageFirstSoon",null),this.needwaitMessageFirstMinutes=com.inq.utils.Util.getConfig("needwaitMessageFirstMinutes",null),this.needwaitMessageFirstSeconds=com.inq.utils.Util.getConfig("needwaitMessageFirstSeconds",null),this.needwaitMessage=com.inq.utils.Util.getConfig("needwaitMessage",null),this.needwaitMessageMinutes=com.inq.utils.Util.getConfig("needwaitMessageMinutes",null),this.needwaitMessageSeconds=com.inq.utils.Util.getConfig("needwaitMessageSeconds",null),this.needwaitMessageSoon=com.inq.utils.Util.getConfig("needwaitMessageSoon",null),this.useMinuteForWaitMessageSoon=com.inq.utils.Util.getConfig("useMinuteForWaitMessageSoon",!1),this.needwaitSoon=com.inq.utils.Util.getConfig("needwaitSoon",10),this.needwaitPeriod=com.inq.utils.Util.getConfig("needwaitPeriod",null),this.needWaitSequenceMessages=com.inq.utils.Util.getConfig("needWaitSequenceMessages",null),this.processingBehavior=com.inq.utils.Util.getConfig("processingBehavior",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.LEGACY_MESSAGE_PROCESSING),this.queueMessagingHandler=new com.inq.flash.client.control.messagehandlers.QueueMessagingHandler(this),this.isEnabled=this.queueMessagingHandler.isEnabled||null!=this.needwaitMessageFirst&&null!=this.needwaitMessage&&null!=this.needwaitPeriod,this.needwaitThreshold=null!=this.needwaitPeriod?10*this.needwaitPeriod-1:10,this.curCountHit=0,this.curNum=0,this.processingBehavior!=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SEQUENCE_MESSAGE_PROCESSING||this.queueMessagingHandler.isEnabled||(this.isEnabled=!0,this.initNeedWaitSequenceList(this.needWaitSequenceMessages)),this.lastProcessedWaitMsg=(new Date).getTime(),haxe.Log.trace("NeedWaitHandler isEnabled = "+Std.string(this.isEnabled),{fileName:"NeedWaitHandler.hx",lineNumber:136,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"new"})},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.NeedWaitHandler,"com.inq.flash.client.control.messagehandlers.NeedWaitHandler"),com.inq.flash.client.control.messagehandlers.NeedWaitHandler.cntMessage=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.incrementCounter=function(){com.inq.flash.client.control.messagehandlers.NeedWaitHandler.cntMessage++},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.initNeedWaitSequenceList=function(t){haxe.Log.trace("start initNeedWaitSequenceList function",{fileName:"NeedWaitHandler.hx",lineNumber:369,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"initNeedWaitSequenceList"}),t||(t=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_SEQUENCE_MESSAGE,com.inq.flash.client.control.FlashPeer.logErrorToServer("Skin file "+com.inq.ui.SkinLoader.getSkinURL()+" contains wrong configuration of needWait sequence messages"));var e=t.split("//");com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList=new Array,this.curNum=com.inq.flash.client.control.PersistenceManager.GetValue(QUEUE_MESSAGE_ID,0);for(var i=this.curNum;i<e.length;){var n=e[i];++i;var o=n.split("|");haxe.Log.trace("Part s of message"+t,{fileName:"NeedWaitHandler.hx",lineNumber:376,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"initNeedWaitSequenceList"});var a=new com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage;if(a.setNeedWaitMessage(o[0]),i==e.length&&-1!=Std.parseInt(o[1])){a.setCountHit(-1);var s=com.inq.flash.client.control.FlashPeer.getSkin();com.inq.flash.client.control.FlashPeer.logError("Skin file "+s+" contains wrong count hint value, last count hint value should be -1",{message:""})}else i==this.curNum+1?(this.curCountHit=com.inq.flash.client.control.PersistenceManager.GetValue(QUEUE_MESSAGE_COUNT,Std.parseInt(o[1])),a.setCountHit(this.curCountHit)):a.setCountHit(Std.parseInt(o[1]));a.setTimeShift(Std.parseFloat(o[2])),com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList.push(a)}},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.sendQueueingMsgString=function(t,e,i){e=com.inq.utils.StringUtil.escapeSpecialCharacters(e);var n=new Date,o=com.inq.flash.client.chatskins.SkinControl.AddTranscriptItemToChatWindow(t,e,com.inq.flash.client.chatskins.ChatTextArea.AGENT,-1,null,i,"",n);com.inq.flash.client.chatskins.SkinControl.getApplicationController().sendQueueingText(e,o,t)},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.sequenceMessageProcessing=function(t,e){var i=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_DEFAULT,n=(new Date).getTime(),o=(n-this.lastProcessedWaitMsg)/1e3;o<com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getTimeShift()?haxe.Log.trace("NeedWaitHandler (sequenceMessageProcessing): period is to short "+o,{fileName:"NeedWaitHandler.hx",lineNumber:323,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"sequenceMessageProcessing"}):(haxe.Log.trace("NeedWaitHandler (sequenceMessageProcessing): message period is: "+o+" secs",{fileName:"NeedWaitHandler.hx",lineNumber:327,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"sequenceMessageProcessing"}),com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getCountHit()>1?(com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].decrCount(),i=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getNeedWaitMessage()):1==com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getCountHit()?(i=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList.shift().getNeedWaitMessage(),this.curNum++):-1==com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getCountHit()&&(i=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getNeedWaitMessage()),com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList.length>0?this.curCountHit=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.needWaitSequenceList[0].getCountHit():this.curCountHit=0,com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_ID,this.curNum),com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_COUNT,this.curCountHit),this.sendQueueingMsgString(t,i),this.lastProcessedWaitMsg=n)},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.legacyMessageProcessing=function(t,e){var i;if(0==++com.inq.flash.client.control.messagehandlers.NeedWaitHandler.cntMessage)return i=this.substituteWaitTime(t,this.needwaitMessageFirst,this.needwaitMessageFirstSoon,this.needwaitMessageFirstSeconds,this.needwaitMessageFirstMinutes,this.needwaitMessageFirstNoAgentAvailable,this.needwaitMessageFirstDefault),i=this.substituteQPFromMessage(i,this.needwaitMessageFirstDefault,t),this.sendQueueingMsgString(e,i,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)),void(this.lastProcessedWaitMsg=(new Date).getTime());var n=(new Date).getTime(),o=(n-this.lastProcessedWaitMsg)/1e3;o<3?haxe.Log.trace("NeedWaitHandler: period is to short "+o,{fileName:"NeedWaitHandler.hx",lineNumber:297,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"legacyMessageProcessing"}):o>=this.needwaitThreshold&&(haxe.Log.trace("NeedWaitHandler: message period is: "+o+" secs",{fileName:"NeedWaitHandler.hx",lineNumber:301,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"legacyMessageProcessing"}),i=this.substituteWaitTime(t,this.needwaitMessage,this.needwaitMessageSoon,this.needwaitMessageSeconds,this.needwaitMessageMinutes,this.needwaitMessageNoAgentAvailable,this.needwaitMessageDefault),i=this.substituteQPFromMessage(i,this.needwaitMessageDefault,t),this.sendQueueingMsgString(e,i,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY)),this.lastProcessedWaitMsg=n,++com.inq.flash.client.control.messagehandlers.NeedWaitHandler.cntMessage)},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.substituteWaitTime=function(t,e,i,n,o,a,s){var l=e,r=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_EST_ASSIGN_TIME);if(null!=r){var c=Std.parseInt(r),h=Math.floor(c/1e3),m=Math.floor(h/60),u=Math.floor(h%60),p=Math.round(h/60),d=Math.floor(h);m>0&&null!=o?(l=this.substituteText(o,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTE_WAIT_TIME,""+m),l=this.substituteText(l,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTES_ONLY_WAIT_TIME,""+p),l=this.substituteText(l,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECOND_WAIT_TIME,""+u)):-1==c&&null!=a?l=a:(h<this.needwaitSoon||0==c)&&null!=i?l=this.useMinuteForWaitMessageSoon?this.substituteText(i,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTES_ONLY_WAIT_TIME,""+m):this.substituteText(i,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECOND_WAIT_TIME,""+u):null!=n?(l=this.substituteText(n,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECOND_WAIT_TIME,""+u),l=this.substituteText(l,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECONDS_ONLY_WAIT_TIME,""+d)):(l=this.substituteText(e,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECOND_WAIT_TIME,""+u),l=this.substituteText(l,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECONDS_ONLY_WAIT_TIME,""+d),l=this.substituteText(l,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTE_WAIT_TIME,""+m),l=this.substituteText(l,s,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTES_ONLY_WAIT_TIME,""+p))}return l},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.substituteText=function(t,e,i,n){return null==n?e:t.replace(i,n)},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.substituteTextFromMessage=function(t,e,i,n,o){var a=n.getProperty(o);return this.substituteText(t,e,i,a)},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.substituteQPFromMessage=function(t,e,i){return this.substituteText(t,e,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.QUEUE_POSITION,i.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_POS))},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.substituteQP=function(t,e,i){return this.substituteText(t,e,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.QUEUE_POSITION,i)},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.processMessage=function(t){haxe.Log.trace("Processing message behavior: "+this.processingBehavior,{fileName:"NeedWaitHandler.hx",lineNumber:146,className:"com.inq.flash.client.control.messagehandlers.NeedWaitHandler",methodName:"processMessage"}),"true"==t.data.isWaitMsgFirst&&(com.inq.flash.client.control.messagehandlers.NeedWaitHandler.cntMessage=-1);var e={queuePos:t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_POS),queueTime:t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_EST_ASSIGN_TIME)};if(com.inq.flash.client.chatskins.SkinControl.sendEventToAllAutomatons("onChatInQueue",e),this.isEnabled){com.inq.flash.client.chatskins.SkinControl.getApplicationController().setFlagChatInQueue(!0);var i=com.inq.flash.client.control.FlashVars.getFlashVars().agentName;com.inq.utils.Util.isDefaultAgentAlias()&&(i=com.inq.utils.Util.getConfig("defaultAgentAlias","&nbsp;")),this.queueMessagingHandler.isEnabled?this.queueMessagingHandler.msgProcessing(t,i):this.processingBehavior==com.inq.flash.client.control.messagehandlers.NeedWaitHandler.LEGACY_MESSAGE_PROCESSING?this.legacyMessageProcessing(t,i):this.processingBehavior==com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SEQUENCE_MESSAGE_PROCESSING&&this.sequenceMessageProcessing(i,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY))}},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.clearQueueMessageTimer=function(){this.queueMessagingHandler.clearPendingTimer()},com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.processingBehavior=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needWaitSequenceMessages=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.isEnabled=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitThreshold=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitPeriod=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitSoon=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageMinutes=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageSeconds=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageSoon=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.useMinuteForWaitMessageSoon=!1,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessage=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageFirstMinutes=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageFirstSeconds=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageFirstSoon=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageFirst=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageNoAgentAvailable=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageFirstNoAgentAvailable=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageDefault=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.needwaitMessageFirstDefault=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.lastProcessedWaitMsg=null,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.NeedWaitHandler,com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_FIRST_DEFAULT="Sorry for the delay, please wait",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_DEFAULT="Still busy, please wait",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.APPX_WAIT_TIME="<<APPX-WAIT-TIME>>",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTE_WAIT_TIME="<<MINUTE-WAIT-TIME>>",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.MINUTES_ONLY_WAIT_TIME="<<MINUTES-ONLY-WAIT-TIME>>",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECOND_WAIT_TIME="<<SECOND-WAIT-TIME>>",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SECONDS_ONLY_WAIT_TIME="<<SECONDS-ONLY-WAIT-TIME>>",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.QUEUE_POSITION="<<QUEUE-POSITION>>",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_SEQUENCE_MESSAGE=com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_FIRST_DEFAULT+"|1|30//"+com.inq.flash.client.control.messagehandlers.NeedWaitHandler.NEED_WAIT_MESSAGE_DEFAULT+"|-1|60",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.LEGACY_MESSAGE_PROCESSING="LEGACY_MESSAGE_PROCESSING",com.inq.flash.client.control.messagehandlers.NeedWaitHandler.SEQUENCE_MESSAGE_PROCESSING="SEQUENCE_MESSAGE_PROCESSING",com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage=function(){},$hxClasses["com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage"]=com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage,com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.__name__=["com","inq","flash","client","control","messagehandlers","NeedWaitSequenceMessage"],com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.decrCount=function(){var t=this.getCountHit();this.setCountHit(t-1)},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.incrCount=function(){var t=this.getCountHit();this.setCountHit(t+1)},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.getCountHit=function(){return this.countHit},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.setCountHit=function(t){return this.countHit=t},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.getTimeShift=function(){return this.timeShift},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.setTimeShift=function(t){return this.timeShift=t},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.getNeedWaitMessage=function(){return this.needWaitMessage},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.setNeedWaitMessage=function(t){return this.needWaitMessage=t},com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.countHit=null,com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.timeShift=null,com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.needWaitMessage=null,com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage.prototype.__class__=com.inq.flash.client.control.messagehandlers.NeedWaitSequenceMessage,com.inq.flash.client.control.messagehandlers.QueueMessagingHandler=function(t){this.needWaitHandler=t,this.spec=this.getQueueMessagingSpec(),this.isEnabled=!!this.spec,this.setId=null,this.set=null,this.lastProcessedQueueMsg=Date.now(),this.currentPosition=null,this.currentEstTime=null,this.currentTimeout=null,this.isAgentAvailable=!0,this.pendingTimer=null},$hxClasses.registerClass(com.inq.flash.client.control.messagehandlers.QueueMessagingHandler,"com.inq.flash.client.control.messagehandlers.QueueMessagingHandler"),com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.getQueueMessagingSpec=function(){var t=com.inq.flash.client.control.FlashPeer.getQueueMessagingSpec();if(t){var e=this.QMS.EWT_REMAINING_IN_SECONDS;t[this.QMS.SETS].sort((function(t,i){return t[e]-i[e]}))}return t},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.msgProcessing=function(t,e){this.currentPosition=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_POS),this.currentEstTime=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_WAIT_EST_ASSIGN_TIME),this.keyReplay=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY),this.agentName=e,-1==this.currentEstTime?(this.isAgentAvailable&&this.pendingTimer&&(clearTimeout(this.pendingTimer),this.pendingTimer=null),this.isAgentAvailable=!1):(!this.isAgentAvailable&&this.pendingTimer&&(clearTimeout(this.pendingTimer),this.pendingTimer=null),this.isAgentAvailable=!0),this.pendingTimer||this.startTimer()},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.startTimer=function(){var t=this.nextWaitTime(),e=this;t>=0?(this.currentTimeout=t,this.pendingTimer=setTimeout((function(){e.displayQueueMessage()}),t)):this.pendingTimer=null},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.clearPendingTimer=function(){this.pendingTimer&&(clearTimeout(this.pendingTimer),this.pendingTimer=null)},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.nextWaitTime=function(){var t=Math.floor(this.currentEstTime/1e3),e=-1,i=((new Date).getTime()-this.lastProcessedQueueMsg)/1e3;return this.isAgentAvailable?(this.updateActiveSet(t),e=parseInt(this.set[this.QMS.MESSAGES][this.msgId][this.QMS.REPEAT_INTERVAL_IN_SECONDS])-i):e=parseInt(this.spec[this.QMS.AGENT_OFFLINE_REPEAT_INTERVAL])-i,e>0?1e3*e:0},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.displayQueueMessage=function(){if(com.inq.flash.client.chatskins.SkinControl.applicationController.isChatInQueue()&&!this.needWaitHandler.framework.isSendMessageFail()){var t;if(this.isAgentAvailable){this.currentEstTime&&this.currentTimeout&&(this.currentEstTime-=this.currentTimeout),this.currentEstTime<0&&(this.currentEstTime=0);var e=parseInt(this.currentEstTime);isNaN(e)||(this.updateActiveSet(e/1e3),t=this.substituteEWT(this.set[this.QMS.MESSAGES][this.msgId][this.QMS.MESSAGE_TEXT],e),t=this.substituteQP(t,this.currentPosition),this.updateMsgOrder())}else t=this.spec[this.QMS.AGENT_OFFLINE_MSG]||this.needWaitHandler.needwaitMessageDefault;this.needWaitHandler.sendQueueingMsgString(this.agentName,t,this.keyReplay),this.lastProcessedQueueMsg=Date.now(),this.startTimer()}else this.pendingTimer=null},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.updateActiveSet=function(t){for(var e=this.spec[this.QMS.SETS],i=0,n=this.QMS.MESSAGE_ORDER,o=1;o<e.length;o++)if(t<=e[o][this.QMS.EWT_REMAINING_IN_SECONDS]){i=o;break}null==this.setId?(this.setId=i,this.set=e[i],this.msgId=com.inq.flash.client.control.PersistenceManager.GetValue(QUEUE_MESSAGE_ID,0),this.msgCount=com.inq.flash.client.control.PersistenceManager.GetValue(QUEUE_MESSAGE_COUNT,0),this.set[this.QMS.MESSAGES].sort((function(t,e){return t[n]-e[n]}))):this.setId!=i&&(this.setId=i,this.set=e[i],this.msgId=0,this.msgCount=0,com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_ID,this.msgId),com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_COUNT,this.msgCount),this.set[this.QMS.MESSAGES].sort((function(t,e){return t[n]-e[n]})))},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.isThresholdAgentOfflineMsg=function(){return((new Date).getTime()-this.lastProcessedQueueMsg)/1e3>=Std.parseInt(this.spec[this.QMS.AGENT_OFFLINE_REPEAT_INTERVAL])},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.isThresholdMsg=function(){return((new Date).getTime()-this.lastProcessedQueueMsg)/1e3>=Std.parseInt(this.set[this.QMS.MESSAGES][this.msgId][this.QMS.REPEAT_INTERVAL_IN_SECONDS])},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.substituteEWT=function(t,e){if(""==t)return t;var i=t,n=Math.floor(e/1e3),o={MINUTES:Math.floor(n/60),MINUTES_ONLY:Math.round(n/60),SECONDS:Math.floor(n%60),SECONDS_ONLY:Math.floor(n)};for(var a in o.FULL=o.MINUTES+(o.SECONDS<10?":0":":")+o.SECONDS,this.EWT)i=this.substituteText(i,this.EWT[a],o[a]);return i},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.updateMsgOrder=function(){this.msgCount++,com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_COUNT,this.msgCount);var t=this.set[this.QMS.MESSAGES];t[this.msgId][this.QMS.DISPLAY_TIMES]<=this.msgCount&&(t[this.msgId+1]?(this.msgId++,com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_ID,this.msgId),this.msgCount=0,com.inq.flash.client.control.PersistenceManager.SetValue(QUEUE_MESSAGE_COUNT,this.msgCount)):haxe.Log.trace("[QueueMessagingHandler] Was reached the threshold of the queue messaging. There is no next message. Message count: "+this.msgCount))},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.substituteQP=function(t,e){return this.needWaitHandler.substituteQP(t,this.needWaitHandler.needwaitMessageDefault,e)},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.substituteText=function(t,e,i){return this.needWaitHandler.substituteText(t,this.needWaitHandler.needwaitMessageDefault,e,i)},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.EWT={FULL:"<<FULL>>",MINUTES:"<<MINUTES>>",MINUTES_ONLY:"<<MINUTES-ONLY>>",SECONDS:"<<SECONDS>>",SECONDS_ONLY:"<<SECONDS-ONLY>>"},com.inq.flash.client.control.messagehandlers.QueueMessagingHandler.prototype.QMS={AGENT_OFFLINE_MSG:"aom",AGENT_OFFLINE_REPEAT_INTERVAL:"aori",SETS:"qms",EWT_REMAINING_IN_SECONDS:"ewt",MESSAGES:"qm",MESSAGE_ORDER:"mo",MESSAGE_TEXT:"mt",DISPLAY_TIMES:"dt",REPEAT_INTERVAL_IN_SECONDS:"ris"},function(){for(var t in y(1703),com.inq.flash.client.control.messagehandlers.PersistentActiveHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_GET_PERSISTENT_DOMAIN)},$hxClasses["com.inq.flash.client.control.messagehandlers.PersistentActiveHandler"]=com.inq.flash.client.control.messagehandlers.PersistentActiveHandler,com.inq.flash.client.control.messagehandlers.PersistentActiveHandler.__name__=["com","inq","flash","client","control","messagehandlers","PersistentActiveHandler"],com.inq.flash.client.control.messagehandlers.PersistentActiveHandler.__super__=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype)com.inq.flash.client.control.messagehandlers.PersistentActiveHandler.prototype[t]=com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.prototype[t];com.inq.flash.client.control.messagehandlers.PersistentActiveHandler.prototype.processMessage=function(t){var e=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY);if(com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat())if(null==e||"1"!=e){var i=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA);if(null==i||0==i.length){var n=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_PROTODOMAIN);this.getController().acknowledgeChatPersistent(n)}else if(window.parent.location.href!=i){com.inq.flash.client.chatskins.SkinControl.noUnload();try{window.parent.opener=null}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("PersistentActiveHandler.processMessage: "+Std.string(t),{fileName:"PersistentActiveHandler.hx",lineNumber:35,className:"com.inq.flash.client.control.messagehandlers.PersistentActiveHandler",methodName:"processMessage"})}window.parent.location.href=i}}else haxe.Log.trace("replay",{fileName:"PersistentActiveHandler.hx",lineNumber:42,className:"com.inq.flash.client.control.messagehandlers.PersistentActiveHandler",methodName:"processMessage"})},com.inq.flash.client.control.messagehandlers.PersistentActiveHandler.prototype.__class__=com.inq.flash.client.control.messagehandlers.PersistentActiveHandler}(),com.inq.flash.client.control.messagehandlers.ChatWebCallMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_WEBCALL)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatWebCallMessageHandler,"com.inq.flash.client.control.messagehandlers.ChatWebCallMessageHandler"),com.inq.flash.client.control.messagehandlers.ChatWebCallMessageHandler.prototype.processMessage=function(t){com.inq.flash.client.control.WebRTCMgr.processAgentMessage(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_WEBCALL_ACTION))},com.inq.flash.client.control.messagehandlers.ChatVideoPlayerStatusMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_VIDEOPLAYER_STATUS)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatVideoPlayerStatusMessageHandler,"com.inq.flash.client.control.messagehandlers.ChatVideoPlayerStatusMessageHandler"),com.inq.flash.client.control.messagehandlers.ChatAutomatonDataMessageHandler=function(){com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler.call(this,com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA)},$hxClasses.extend(com.inq.flash.client.control.messagehandlers.ClientApplicationMessageHandler,com.inq.flash.client.control.messagehandlers.ChatAutomatonDataMessageHandler,"com.inq.flash.client.control.messagehandlers.ChatAutomatonDataMessageHandler"),com.inq.flash.client.control.messagehandlers.ChatAutomatonDataMessageHandler.prototype.processMessage=function(t){t.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA);var e=t.getProperty("messageText"),i=StringTools.trim(e),n=-1,o=t.getPropertyAsDate(com.inq.flash.client.data.MessageFields.KEY_MESSAGE_TIMESTAMP);null!=t.getProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR)&&(n=parseInt(t.getProperty(com.inq.flash.client.data.MessageFields.KEY_LINE_NR))),com.inq.flash.client.chatskins.SkinControl.addAutomatonDataToChatWindow(i,n,null,t.getProperty(com.inq.flash.client.data.MessageFields.KEY_REPLAY),o)},com.inq.flash.client.data.ChatAutomatonDataMessage=function(t,e){com.inq.flash.messagingframework.Message.call(this),this.setMessageType(com.inq.flash.client.data.MessageFields.TYPE_CHAT_AUTOMATON_DATA),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CHAT_ID,t.getChatID()),this.addPropertyIfNotNull(com.inq.flash.client.data.MessageFields.KEY_CHAT_DATA,e),this.addProperty(com.inq.flash.client.data.MessageFields.KEY_RETURN_RECEIPT,"1")},$hxClasses.extend(com.inq.flash.messagingframework.Message,com.inq.flash.client.data.ChatAutomatonDataMessage,"com.inq.flash.client.data.ChatAutomatonDataMessage"),com.inq.flash.messagingframework.Participant=function(t,e,i){this.participantType=t,this.ID=e,this.username=i},$hxClasses["com.inq.flash.messagingframework.Participant"]=com.inq.flash.messagingframework.Participant,com.inq.flash.messagingframework.Participant.__name__=["com","inq","flash","messagingframework","Participant"],com.inq.flash.messagingframework.Participant.prototype.getType=function(){return this.participantType},com.inq.flash.messagingframework.Participant.prototype.getUsername=function(){return this.username},com.inq.flash.messagingframework.Participant.prototype.getID=function(){return this.ID},com.inq.flash.messagingframework.Participant.prototype.username=null,com.inq.flash.messagingframework.Participant.prototype.participantType=null,com.inq.flash.messagingframework.Participant.prototype.ID=null,com.inq.flash.messagingframework.Participant.prototype.__class__=com.inq.flash.messagingframework.Participant,com.inq.flash.messagingframework.util||(com.inq.flash.messagingframework.util={}),com.inq.flash.messagingframework.util.XTrace=function(){},$hxClasses["com.inq.flash.messagingframework.util.XTrace"]=com.inq.flash.messagingframework.util.XTrace,com.inq.flash.messagingframework.util.XTrace.__name__=["com","inq","flash","messagingframework","util","XTrace"],com.inq.flash.messagingframework.util.XTrace.redirection=function(){return haxe.Log.trace=com.inq.flash.messagingframework.util.XTrace.sysTrace,!0},com.inq.flash.messagingframework.util.XTrace.setRedirection=function(){haxe.Log.trace=com.inq.flash.messagingframework.util.XTrace.sysTrace,haxe.Log.trace("",{fileName:"XTrace.hx",lineNumber:34,className:"com.inq.flash.messagingframework.util.XTrace",methodName:"setRedirection"})},com.inq.flash.messagingframework.util.XTrace.sysTrace=function(t,e){e.fileName,e.lineNumber,e.methodName,Std.string(t)},com.inq.flash.messagingframework.util.XTrace.StackTrace=function(t,e){null==e&&(e="WARNING:");var i=t.getStackTrace();haxe.Log.trace(e+" "+i,{fileName:"XTrace.hx",lineNumber:133,className:"com.inq.flash.messagingframework.util.XTrace",methodName:"StackTrace"})},com.inq.flash.messagingframework.util.XTrace.prototype.__class__=com.inq.flash.messagingframework.util.XTrace,com.inq.stage.IDragResize=function(){},$hxClasses["com.inq.stage.IDragResize"]=com.inq.stage.IDragResize,com.inq.stage.IDragResize.__name__=["com","inq","stage","IDragResize"],com.inq.stage.IDragResize.prototype.whenDone=null,com.inq.stage.IDragResize.prototype.setDragBorder=null,com.inq.stage.IDragResize.prototype.setTop=null,com.inq.stage.IDragResize.prototype.setLeft=null,com.inq.stage.IDragResize.prototype.getDefaultMax=null,com.inq.stage.IDragResize.prototype.getDefaultMin=null,com.inq.stage.IDragResize.prototype.__class__=com.inq.stage.IDragResize,com.inq.stage.DragResize=function(){this.className="DragResize",this.styleSaved="",this.cursor="default",this.pDraggerNow=null,this.touchIdentifier=com.inq.stage.DragResize.TOUCH_IDENTIFER_UNUSED},$hxClasses["com.inq.stage.DragResize"]=com.inq.stage.DragResize,com.inq.stage.DragResize.__name__=["com","inq","stage","DragResize"],com.inq.stage.DragResize.o=null,com.inq.stage.DragResize.typeof=function(t){return typeof t},com.inq.stage.DragResize.WhenDone=function(){null!=com.inq.stage.DragResize.instance&&com.inq.stage.DragResize.instance.whenDone(),com.inq.stage.DragResize.instance=null},com.inq.stage.DragResize.stopEvent=function(t){var e=t||Application.application.getPanelWindow().event;return null!=e.preventDefault&&e.preventDefault(),null!=e.stopPropagation&&e.stopPropagation(),!1},com.inq.stage.DragResize.prototype._removeEventListener=function(t,e,i){null!=window.removeEventListener?t.removeEventListener(e,i,!1):null!=window.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=null},com.inq.stage.DragResize.prototype._attachEventListener=function(t,e,i){null!=window.addEventListener?t.addEventListener(e,i,!1):null!=window.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},com.inq.stage.DragResize.prototype.bindClosures=function(){this.uponTouchStartClosure=$bind(this,this.uponTouchStart),this.uponTouchCancelClosure=$bind(this,this.uponTouchCancel),this.uponTouchEndClosure=$bind(this,this.uponTouchEnd),this.uponTouchDragClosure=$bind(this,this.uponTouchDrag),this.uponMouseDragStartClosure=$bind(this,this.uponDragStart),this.uponMouseOutClosure=$bind(this,this.uponMouseOut),this.uponMouseDragClosure=$bind(this,this.uponDrag),this.uponMouseDropClosure=$bind(this,this.uponDrop)},com.inq.stage.DragResize.prototype.init=function(t,e){com.inq.flash.client.control.FlashPeer.isPersistentWindow()||com.inq.utils.Util.getConfig("fullPage",!1)||null!=t&&(this.dragImage=this.fixDragImage(t),this.obj=t,null!=t[com.inq.stage.DragResize.INSTANCE_LABEL]?haxe.Log.trace("o already has property for "+com.inq.stage.DragResize.INSTANCE_LABEL+": "+t[com.inq.stage.DragResize.INSTANCE_LABEL],{fileName:"DragResize.hx",lineNumber:862,className:"com.inq.stage.DragResize",methodName:"init"}):(t[com.inq.stage.DragResize.INSTANCE_LABEL]=this,e[com.inq.stage.DragResize.INSTANCE_LABEL]=this,this.root=e&&null!=e?e:t,this.bindClosures(),this.isSupported("touchstart")&&(this.obj[com.inq.stage.DragResize.INSTANCE_LABEL]=this,this._attachEventListener(this.dragImage,"touchstart",this.uponTouchStartClosure)),this.isSupported("mousedown")&&this._attachEventListener(this.dragImage,"mousedown",this.uponMouseDragStartClosure)))},com.inq.stage.DragResize.prototype.fixDragImage=function(t){var e,i,n=0;if("IMG"==t.nodeName.toUpperCase()){e=t.parentNode;var o=document.createElement("DIV");return o.id=t.id,o.style.cssText="background-color:#007700; opacity:0.4; "+Std.string(t.style.cssText),o.title=t.title,e.insertBefore(o,t),t.style.height=t.style.width="100%",t.style.position="absolute",t.style.top=t.style.left="0px",t.id=o.id+"_image",e.removeChild(t),o}if("DIV"==t.nodeName.toUpperCase()){var a=t.getElementsByTagName("IMG");if(a.length>0){var s=null;for(n=0,i=a.length;n<i;){var l=n++;if(a[l].parentNode==t){s=a[l];break}}if(null!=s&&(e=s.parentNode)==t){var r=document.createElement("INPUT");return r.type="image",null==s.src||""==s.src?r.src=Application.application.getClearImage():r.src=s.src,r.style.cssText=Std.string(t.style.cssText)+"; top:0px; left:0px; height: 100%; width: 100%;display:block;padding:0;margin:0;",r.className="tcChat",r.name="DragSafe",u(r),e.replaceChild(r,s),r}}var c=null,h=t.getElementsByTagName("INPUT");if(h.length>0){for(n=0,i=h.length;n<i;){var m=n++;if(h[m].parentNode==t){c=h[m];break}}null!=c&&"DragSafe"!=c.name&&(c.name="DragSafe",c.style.cssText=Std.string(t.style.cssText)+"; top:0px; left:0px; height: 100%; width: 100%;display: block;padding:0;margin:0;",c.className="tcChat",u(c))}}function u(t){t.setAttribute("aria-hidden","true"),t.setAttribute("alt",""),t.setAttribute("tabindex","-1")}return t},com.inq.stage.DragResize.prototype.isLeftClick=function(t){var e,i=t||Application.application.getPanelWindow().event;return e="Netscape"==window.navigator.appName?t.which:window.parent.event.button,0==i.type.indexOf("touch")||1==e},com.inq.stage.DragResize.prototype.fireDone=function(){this.whenDone()},com.inq.stage.DragResize.prototype.fireDoneState=function(){com.inq.stage.DragResize.instance=this,window.setTimeout(com.inq.stage.DragResize.WhenDone,1)},com.inq.stage.DragResize.prototype.removeTouchEvents=function(){this._attachEventListener(this.dragImage,"mousedown",this.uponMouseDragStartClosure),this._removeEventListener(com.inq.stage.DragResize.doc,"touchcancel",this.uponTouchCancelClosure),this._removeEventListener(com.inq.stage.DragResize.doc,"touchend",this.uponTouchEndClosure),this._removeEventListener(com.inq.stage.DragResize.doc,"touchmove",this.uponTouchDragClosure)},com.inq.stage.DragResize.prototype.removeMouseEvents=function(){this._attachEventListener(this.dragImage,"touchstart",this.uponTouchStartClosure),this._removeEventListener(com.inq.stage.DragResize.doc,"mouseout",this.uponMouseOutClosure),this._removeEventListener(com.inq.stage.DragResize.doc,"mousemove",this.uponMouseDragClosure),this._removeEventListener(com.inq.stage.DragResize.doc,"mouseup",this.uponMouseDropClosure)},com.inq.stage.DragResize.prototype.addTouchEvents=function(){this._removeEventListener(this.dragImage,"mousedown",this.uponMouseDragStartClosure),this._attachEventListener(com.inq.stage.DragResize.doc,"touchcancel",this.uponTouchCancelClosure),this._attachEventListener(com.inq.stage.DragResize.doc,"touchend",this.uponTouchEndClosure),this._attachEventListener(com.inq.stage.DragResize.doc,"touchmove",this.uponTouchDragClosure)},com.inq.stage.DragResize.prototype.addMouseEvents=function(){this._removeEventListener(this.obj,"touchstart",this.uponTouchStartClosure),this._attachEventListener(com.inq.stage.DragResize.doc,"mouseout",this.uponMouseOutClosure),this._attachEventListener(com.inq.stage.DragResize.doc,"mousemove",this.uponMouseDragClosure),this._attachEventListener(com.inq.stage.DragResize.doc,"mouseup",this.uponMouseDropClosure)},com.inq.stage.DragResize.prototype.removeEvents=function(){this.removeMouseEvents(),this.fireDoneState()},com.inq.stage.DragResize.prototype.uponTouchCancel=function(t){var e=t||Application.application.getPanelWindow().event;return null!=e.preventDefault&&e.preventDefault(),!1},com.inq.stage.DragResize.prototype.uponTouchEnd=function(t){try{var e=t||Application.application.getPanelWindow().event;if(null!=e.preventDefault&&e.preventDefault(),this.touch=this.getTouchByIdentifer(e),null==this.touch)return!1;this.restoreStyle();var i={X:this.touch.pageX-this.touchOffsetX,Y:this.touch.pageY-this.touchOffsetY};this.repositionTouch(i),this.removeTouchEvents(),this.done()}catch(t){window.alert("ERROR: uponTouchEnd: "+Std.string(t))}return!1},com.inq.stage.DragResize.prototype.getTouchByIdentifer=function(t){try{var e=t.changedTouches;if(null==e)return null;if(this.touchIdentifier==com.inq.stage.DragResize.TOUCH_IDENTIFER_UNUSED)return null;if(null==e.identifiedTouch){for(var i=0,n=e.length;i<n;){var o=i++;if(e[o].identifier==this.touchIdentifier)return e[o]}return null}return e.identifiedTouch(this.touchIdentifier)}catch(t){window.alert("ERROR: getTouchByIdentifer: "+Std.string(t))}return null},com.inq.stage.DragResize.prototype.done=function(){this.touchIdentifier=com.inq.stage.DragResize.TOUCH_IDENTIFER_UNUSED,this.restoreStyle(),window.setTimeout($bind(this,this.whenDone),1)},com.inq.stage.DragResize.prototype.uponDrop=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();var i=this.getPosition(e);return this.removeEvents(),this.done(),this.reposition(i)},com.inq.stage.DragResize.prototype.uponMouseOut=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();var i=this.getPosition(e),n=!1,o=this.getScreenMax();return i.Y<0&&(i.Y=0,n=!0),i.X<0&&(i.X=0,n=!0),i.Y>=o.Y&&(i.Y=o.Y,n=!0),i.X>=o.X&&(i.X=o.X,n=!0),n?(this.removeEvents(),this.restoreStyle(),this.reposition(i),this.fireDoneState(),!1):this.uponDrag(e)},com.inq.stage.DragResize.prototype.getScreenMax=function(){return{X:com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()+com.inq.flash.client.chatskins.ScrollMonitor.getScrollWidth(),Y:com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()+com.inq.flash.client.chatskins.ScrollMonitor.getScrollHeight()}},com.inq.stage.DragResize.prototype.repositionTouch=function(t){try{if(null!=this.pLast&&t.X==this.pLast.X&&t.Y==this.pLast.Y)return!1;var e,i;i=t.X,t.X!=this.pLast.X&&i>=this.pMin.X&&i<this.pMax.X?this.setLeft(i):i>=this.pMax.X?this.setLeft(i=this.pMax.X):i<this.pMin.X&&this.setLeft(i=this.pMin.X),e=t.Y,t.Y!=this.pLast.Y&&e>=this.pMin.Y&&e<this.pMax.Y?this.setTop(e):e>=this.pMax.Y?this.setTop(e=this.pMax.Y):e<this.pMin.Y&&this.setTop(e=this.pMin.Y),this.pDraggerNow={X:i,Y:e},this.pLast=t}catch(t){window.alert("ERROR: repositionTouch: "+Std.string(t))}return!1},com.inq.stage.DragResize.prototype.reposition=function(t){var e=t.Y-this.deltaY,i=t.X-this.deltaX;return this.pDraggerNow.X>this.pMax.X||this.pDraggerNow.Y>this.pMax.Y?(i<this.pMin.X?this.pDraggerNow.X=this.pMin.X:i>=parent.window.document.body.scrollWidth?this.pDraggerNow.X=parent.window.document.body.scrollWidth:this.pDraggerNow.X=i,e<this.pMin.Y?this.pDraggerNow.Y=this.pMin.Y:e>=parent.window.document.body.scrollHeight?this.pDraggerNow.Y=parent.window.document.body.scrollHeight:this.pDraggerNow.Y=e):(i>=this.pMin.X&&i<this.pMax.X?this.pDraggerNow.X=i:i>=this.pMax.X?this.pDraggerNow.X=this.pMax.X:i<this.pMin.X&&(this.pDraggerNow.X=this.pMin.X),e>=this.pMin.Y&&e<this.pMax.Y?this.pDraggerNow.Y=e:e>=this.pMax.Y?this.pDraggerNow.Y=this.pMax.Y:e<this.pMin.Y&&(this.pDraggerNow.Y=this.pMin.Y)),this.setTop(this.pDraggerNow.Y),this.setLeft(this.pDraggerNow.X),this.pLast=t,!1},com.inq.stage.DragResize.prototype.uponTouchDrag=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();try{if(this.touch=this.getTouchByIdentifer(e),null==this.touch)return!1;var i={X:this.touch.pageX-this.touchOffsetX,Y:this.touch.pageY-this.touchOffsetY};this.repositionTouch(i)}catch(t){window.alert("uponTouchDrag ERROR: "+Std.string(t))}return!1},com.inq.stage.DragResize.prototype.uponDrag=function(t){var e=t||Application.application.getPanelWindow().event;if(this.obj.dragging)return!1;this.obj.dragging=!0,null!=e.preventDefault&&e.preventDefault();var i=this.getPosition(e);return this.reposition(i),this.obj.dragging=!1,!1},com.inq.stage.DragResize.prototype.uponDragOverFromStage=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();var i=this.getAbsolutePosition(e);return this.reposition(i),!1},com.inq.stage.DragResize.prototype.uponDragEndFromStage=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();var i=this.getAbsolutePosition(e);return this.removeEvents(),this.restoreStyle(),this.reposition(i),this.fireDoneState(),!1},com.inq.stage.DragResize.prototype.uponTouchStart=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();var i=this.obj;this.pStart={X:Std.parseInt(this.root.style.left),Y:Std.parseInt(this.root.style.top)};var n=i.style;return this.touchIdentifier!=com.inq.stage.DragResize.TOUCH_IDENTIFER_UNUSED||(this.touch=e.changedTouches[0],this.touchOffsetX=Math.round(this.touch.pageX)-Std.parseInt(n.left),this.touchOffsetY=Math.round(this.touch.pageY)-Std.parseInt(n.top),this.touchIdentifier=this.touch.identifier,this.pMin=this.getDefaultMin(),this.pMax=this.getDefaultMax(),this.saveStyle(),i.style.cursor=this.cursor,this.addTouchEvents(),this.setDragBorder(),this.pLast={X:this.touch.pageX-this.clickOffsetX,Y:this.touch.pageY-this.clickOffsetY}),!1},com.inq.stage.DragResize.prototype.uponDragStart=function(t){var e=t||Application.application.getPanelWindow().event;null!=e.preventDefault&&e.preventDefault();var i=this.obj;return!!this.isLeftClick(e)&&(this.pStart={X:Std.parseInt(this.root.style.left),Y:Std.parseInt(this.root.style.top)},this.pDraggerStart={X:Std.parseInt(i.style.left),Y:Std.parseInt(i.style.top)},this.draggerHeight=Std.parseInt(i.style.height),this.draggerWidth=Std.parseInt(i.style.width),this.pDraggerNow={X:this.pDraggerStart.X,Y:this.pDraggerStart.Y},this.pLast=this.getPosition(e),this.deltaX=this.pLast.X-this.pDraggerStart.X,this.deltaY=this.pLast.Y-this.pDraggerStart.Y,this.pMin=this.getDefaultMin(),this.pMax=this.getDefaultMax(),this.saveStyle(),i.style.cursor=this.cursor,this.setDragBorder(),com.inq.stage.DragResize.instance=this,this.addMouseEvents(),!1)},com.inq.stage.DragResize.prototype.setDragBorder=function(){},com.inq.stage.DragResize.prototype.getDefaultMax=function(){return{X:1e4,Y:1e4}},com.inq.stage.DragResize.prototype.getDefaultMin=function(){return{X:0,Y:0}},com.inq.stage.DragResize.prototype.setLeft=function(t){window.alert("setLeft override failed")},com.inq.stage.DragResize.prototype.setTop=function(t){window.alert("setTop override failed")},com.inq.stage.DragResize.prototype.whenDone=function(){},com.inq.stage.DragResize.prototype.getAbsolutePosition=function(t){for(var e=this.getPosition(t),i=window.frameElement;null!=i&&(e.X+=i.offsetLeft,e.Y+=i.offsetTop,"BODY"!=(i=i.offsetParent).tagName););return e},com.inq.stage.DragResize.prototype.getTarget=function(t){var e=null;return t||(t=Application.application.getPanelWindow().event),t.target?e=t.target:t.srcElement&&(e=t.srcElement),3==e.nodeType&&(e=e.parentNode),e},com.inq.stage.DragResize.prototype.isSupported=function(t){return"on"+t in document.documentElement},com.inq.stage.DragResize.prototype.restoreStyle=function(){this.obj.style.cssText=this.styleSaved},com.inq.stage.DragResize.prototype.saveStyle=function(){this.styleSaved=this.obj.style.cssText},com.inq.stage.DragResize.prototype.getPositionIE=function(t){return{X:window.parent.event.clientX,Y:window.parent.event.clientY}},com.inq.stage.DragResize.prototype.getPositionGecko=function(t){return{X:t.clientX,Y:t.clientY}},com.inq.stage.DragResize.prototype.getPosition=function(t){return{X:t.clientX,Y:t.clientY}},com.inq.stage.DragResize.prototype.uponMouseDropClosure=null,com.inq.stage.DragResize.prototype.uponMouseDragClosure=null,com.inq.stage.DragResize.prototype.uponMouseOutClosure=null,com.inq.stage.DragResize.prototype.uponMouseDragStartClosure=null,com.inq.stage.DragResize.prototype.uponTouchDragClosure=null,com.inq.stage.DragResize.prototype.uponTouchEndClosure=null,com.inq.stage.DragResize.prototype.uponTouchCancelClosure=null,com.inq.stage.DragResize.prototype.uponTouchStartClosure=null,com.inq.stage.DragResize.prototype.deltaY=null,com.inq.stage.DragResize.prototype.deltaX=null,com.inq.stage.DragResize.prototype.pMax=null,com.inq.stage.DragResize.prototype.pMin=null,com.inq.stage.DragResize.prototype.rootWidth=null,com.inq.stage.DragResize.prototype.rootHeight=null,com.inq.stage.DragResize.prototype.draggerHeight=null,com.inq.stage.DragResize.prototype.draggerWidth=null,com.inq.stage.DragResize.prototype.pDraggerNow=null,com.inq.stage.DragResize.prototype.pDraggerStart=null,com.inq.stage.DragResize.prototype.pStart=null,com.inq.stage.DragResize.prototype.pLast=null,com.inq.stage.DragResize.prototype.touchIdentifier=null,com.inq.stage.DragResize.prototype.touchOffsetY=null,com.inq.stage.DragResize.prototype.touchOffsetX=null,com.inq.stage.DragResize.prototype.clickOffsetY=null,com.inq.stage.DragResize.prototype.clickOffsetX=null,com.inq.stage.DragResize.prototype.touch=null,com.inq.stage.DragResize.prototype.styleSaved=null,com.inq.stage.DragResize.prototype.cursor=null,com.inq.stage.DragResize.prototype.root=null,com.inq.stage.DragResize.prototype.dragImage=null,com.inq.stage.DragResize.prototype.obj=null,com.inq.stage.DragResize.prototype.className=null,com.inq.stage.DragResize.prototype.__class__=com.inq.stage.DragResize,com.inq.stage.DragResize.__interfaces__=[com.inq.stage.IDragResize],com.inq.stage.DragResize.TOUCH_IDENTIFER_UNUSED=-1,com.inq.stage.DragResize.INSTANCE_LABEL="instDragResize",com.inq.stage.DragResize.doc=window.parent.document,com.inq.stage.DragResize.instance=null,com.inq.stage.DragResize.DEFAULT_BORDER_COLOR="SlateGray",function(){for(var t in com.inq.stage.Immovable=function(){com.inq.stage.DragResize.call(this),this.className="Immovable",this.cursor=""},$hxClasses["com.inq.stage.Immovable"]=com.inq.stage.Immovable,com.inq.stage.Immovable.__name__=["com","inq","stage","Immovable"],com.inq.stage.Immovable.__super__=com.inq.stage.DragResize,com.inq.stage.DragResize.prototype)com.inq.stage.Immovable.prototype[t]=com.inq.stage.DragResize.prototype[t];com.inq.stage.Immovable.MakeImmovable=function(){var t=new com.inq.stage.Immovable,e=window.parent.document,i=com.inq.ui.Container._getElementById("inqChatStage",e),n=com.inq.ui.Container._getElementById("inqTitleBar",e);return t.init(n,i),t},com.inq.stage.Immovable.immobilize=function(t){com.inq.utils.Capabilities.BindListener(t,"touchmove",com.inq.stage.DragResize.stopEvent)},com.inq.stage.Immovable.prototype.whenDone=function(){},com.inq.stage.Immovable.prototype.uponDragStart=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponTouchEnd=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponDrop=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponMouseOut=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponTouchCancel=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponTouchDrag=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponDrag=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.uponTouchStart=function(t){return com.inq.stage.DragResize.stopEvent(t)},com.inq.stage.Immovable.prototype.__class__=com.inq.stage.Immovable,com.inq.stage.Immovable.__interfaces__=[com.inq.stage.IDragResize]}(),function(){for(var t in com.inq.stage.Move=function(){com.inq.stage.DragResize.call(this),this.className="Move",this.cursor="move"},$hxClasses["com.inq.stage.Move"]=com.inq.stage.Move,com.inq.stage.Move.__name__=["com","inq","stage","Move"],com.inq.stage.Move.__super__=com.inq.stage.DragResize,com.inq.stage.DragResize.prototype)com.inq.stage.Move.prototype[t]=com.inq.stage.DragResize.prototype[t];com.inq.stage.Move.setDragable=function(){if(!com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()){var t=new com.inq.stage.Move,e=window.parent.document,i=com.inq.ui.Container._getElementById("inqChatStage",e),n=com.inq.ui.Container._getElementById("inqTitleBar",e);t.init(n,i)}},com.inq.stage.Move.prototype.setTop=function(t){this.obj.style.top=t+"px"},com.inq.stage.Move.prototype.setLeft=function(t){this.obj.style.left=t+"px"},com.inq.stage.Move.prototype.setDragBorder=function(){var t=Std.parseInt(this.root.style.height),e=Std.parseInt(this.root.style.width);this.obj.style.cursor=this.cursor,this.obj.style.borderStyle="solid",this.obj.style.borderWidth="7px",this.obj.style.borderColor=com.inq.utils.Util.getConfig("dragBorderColor",com.inq.stage.DragResize.DEFAULT_BORDER_COLOR),this.obj.style.height=t-7+"px",this.obj.style.width=e-7+"px"},com.inq.stage.Move.prototype.whenDone=function(){this.root.style.left=Std.string(this.pDraggerNow.X)+"px",this.root.style.top=Std.string(this.pDraggerNow.Y)+"px";var t={X:this.pDraggerNow.X,Y:this.pDraggerNow.Y};Application.MoveStage(t.X,t.Y);var e=com.inq.utils.Capabilities.getViewport();Application.initialXPos=t.X-e.x,Application.initialYPos=t.Y-e.y},com.inq.stage.Move.prototype.getDefaultMax=function(){var t=Std.parseInt(this.root.style.width),e=Std.parseInt(this.root.style.height);return{X:com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()+com.inq.flash.client.chatskins.ScrollMonitor.getScrollWidth()-t,Y:com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()+com.inq.flash.client.chatskins.ScrollMonitor.getScrollHeight()-e}},com.inq.stage.Move.prototype.getDefaultMin=function(){return{X:com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft(),Y:com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()}},com.inq.stage.Move.prototype.__class__=com.inq.stage.Move,com.inq.stage.Move.__interfaces__=[com.inq.stage.IDragResize]}(),function(){for(var t in com.inq.stage.Resize=function(){com.inq.stage.DragResize.call(this),this.className="Resize",this.cursor="se-resize"},$hxClasses["com.inq.stage.Resize"]=com.inq.stage.Resize,com.inq.stage.Resize.__name__=["com","inq","stage","Resize"],com.inq.stage.Resize.__super__=com.inq.stage.DragResize,com.inq.stage.DragResize.prototype)com.inq.stage.Resize.prototype[t]=com.inq.stage.DragResize.prototype[t];com.inq.stage.Resize.setResizable=function(){if(!com.inq.flash.client.control.FlashPeer.isPersistentWindow()&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()){for(var t=new com.inq.stage.Resize,e=window.parent.document,i=com.inq.ui.Container._getElementById("inqChatStage",e),n=com.inq.ui.Container._getElementById("inqDivResizeCorner",e),o=0;o<n.length;o++)n[o].setAttribute("aria-hidden","true"),n[o].setAttribute("alt",""),n[o].setAttribute("tabindex","-1");t.init(n,i)}},com.inq.stage.Resize.prototype.whenDone=function(){this.titlebar.style.cssText=this.titlebarStyle,Application.ResizeStage(this.newWidth,this.newHeight)},com.inq.stage.Resize.prototype.setDragBorder=function(){this.stageLeft=this.root.style.left,this.stageTop=this.root.style.top;var t=Std.parseInt(this.root.style.height),e=Std.parseInt(this.root.style.width);this.obj.style.cursor="se-resize",this.titlebar=com.inq.ui.Container._getElementById("inqTitleBar",parent.document),null==this.titlebarStyle&&(this.titlebarStyle=this.titlebar.style.cssText),this.titlebar.style.top=this.root.style.top,this.titlebar.style.left=this.root.style.left,this.titlebar.style.borderStyle="dashed",this.titlebar.style.cursor="se-resize",this.titlebar.style.borderWidth="3px",this.titlebar.style.borderColor=com.inq.utils.Util.getConfig("dragBorderColor",com.inq.stage.DragResize.DEFAULT_BORDER_COLOR),this.titlebar.style.height=t-3+"px",this.titlebar.style.width=e-3+"px"},com.inq.stage.Resize.prototype.setTop=function(t){this.newHeight=t-this.pStart.Y+this.draggerHeight,this.titlebar.style.height=this.newHeight+"px",this.obj.style.top=t+"px"},com.inq.stage.Resize.prototype.setLeft=function(t){this.newWidth=t-this.pStart.X+this.draggerWidth,this.titlebar.style.width=this.newWidth+"px",this.obj.style.left=t+"px"},com.inq.stage.Resize.prototype.getDefaultMax=function(){var t=Std.parseInt(this.obj.style.width),e=Std.parseInt(this.obj.style.height);return{X:com.inq.flash.client.chatskins.ScrollMonitor.getScrollLeft()+com.inq.flash.client.chatskins.ScrollMonitor.getScrollWidth()-t,Y:com.inq.flash.client.chatskins.ScrollMonitor.getScrollTop()+com.inq.flash.client.chatskins.ScrollMonitor.getScrollHeight()-e}},com.inq.stage.Resize.prototype.getDefaultMin=function(){return{X:this.pStart.X+Application.getMinWidth(),Y:this.pStart.Y+Application.getMinHeight()}},com.inq.stage.Resize.prototype.uponDrop=function(t){return this.titlebar.style.cssText=this.titlebarStyle,com.inq.stage.DragResize.prototype.uponDrop.call(this,t)},com.inq.stage.Resize.prototype.newHeight=null,com.inq.stage.Resize.prototype.newWidth=null,com.inq.stage.Resize.prototype.titlebarStyle=null,com.inq.stage.Resize.prototype.titlebar=null,com.inq.stage.Resize.prototype.stageLeft=null,com.inq.stage.Resize.prototype.stageTop=null,com.inq.stage.Resize.prototype.__class__=com.inq.stage.Resize,com.inq.stage.Resize.__interfaces__=[com.inq.stage.IDragResize]}(),com.inq.stage.ViewportMgr=function(){},$hxClasses.registerClass(com.inq.stage.ViewportMgr,"com.inq.stage.ViewportMgr"),com.inq.stage.ViewportMgr.VIEWPORT_ID="tcChat_viewport",com.inq.stage.ViewportMgr.impl=null,com.inq.stage.ViewportMgr.init=function(){null==com.inq.stage.ViewportMgr.impl&&(com.inq.stage.ViewportMgr.impl=com.inq.stage.ViewportMgr.getImplementation())},com.inq.stage.ViewportMgr.close=function(){null!=com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.hide(),com.inq.stage.ViewportMgr.impl=null},com.inq.stage.ViewportMgr.visible=function(t){t?com.inq.stage.ViewportMgr.show():com.inq.stage.ViewportMgr.hide()},com.inq.stage.ViewportMgr.show=function(){com.inq.flash.client.control.MinimizeManager.isMinimized()||(null==com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.init(),com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.impl.show(),(com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isSafariVersion13()||com.inq.utils.Capabilities.isSafariVersion14orLater()||com.inq.utils.Capabilities.getUserAgent().toLowerCase().indexOf("crios")>-1)&&com.inq.utils.Capabilities.isPhone()&&void 0!==com.inq.flash.client.chatskins.ChatTextFocusMonitor.closing&&!1===com.inq.flash.client.chatskins.ChatTextFocusMonitor.closing&&!com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()&&com.inq.utils.Timer.delay($bind(com.inq.stage.ViewportMgr.impl,com.inq.stage.ViewportMgr.impl.resizeChat),50))},com.inq.stage.ViewportMgr.hide=function(){null==com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.init(),com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.impl.hide()},com.inq.stage.ViewportMgr.uponResize=function(){null==com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.init(),com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.impl.uponResize()},com.inq.stage.ViewportMgr.getChatZoomLevel=function(){return com.inq.stage.ViewportMgr.init(),com.inq.stage.ViewportMgr.impl.getChatZoomLevel()},com.inq.stage.ViewportMgr.getImplementation=function(){return com.inq.flash.client.control.FlashPeer.isEmbeddedThemeValid()?new com.inq.stage.ViewportMgrImplBase:com.inq.utils.Capabilities.isPhone()?com.inq.utils.Capabilities.isWindowsPhone()?new com.inq.stage.ViewportMgrImplPhoneWindows:com.inq.utils.Capabilities.isAndroid()?com.inq.utils.Capabilities.isAndroid("Android 2")?new com.inq.stage.ViewportMgrImplPhoneAndroid_2:new com.inq.stage.ViewportMgrImplPhoneAndroid:new com.inq.stage.ViewportMgrImplPhone:com.inq.utils.Capabilities.isTablet()?new com.inq.stage.ViewportMgrImplTablet:new com.inq.stage.ViewportMgrImplBase},com.inq.stage.ViewportMgr.prototype.__class__=com.inq.stage.ViewportMgr,com.inq.stage.ViewportMgrImplBase=function(){this.isShown=!1},$hxClasses.registerClass(com.inq.stage.ViewportMgrImplBase,"com.inq.stage.ViewportMgrImplBase"),com.inq.stage.ViewportMgrImplBase.prototype.isShown=!1,com.inq.stage.ViewportMgrImplBase.prototype.hide=function(){this.isShown&&(this.isShown=!1)},com.inq.stage.ViewportMgrImplBase.prototype.show=function(){this.isShown||(this.isShown=!0)},com.inq.stage.ViewportMgrImplBase.prototype.saveScrollPosition=function(){this.currentScroll={X:top.pageXOffset,Y:top.pageYOffset}},com.inq.stage.ViewportMgrImplBase.prototype.uponResize=function(){},com.inq.stage.ViewportMgrImplBase.prototype.getChatZoomLevel=function(){return window.top.innerWidth/window.top.document.documentElement.offsetWidth},com.inq.stage.ViewportMgrImplBase.prototype.__class__=com.inq.stage.ViewportMgrImplBase,com.inq.stage.ViewportMgrImplMobile=function(){com.inq.stage.ViewportMgrImplBase.call(this),this.clientWindow=window.parent,this.clientDocument=this.clientWindow.document,this.headHtml=null,this.clientViewportElement=null,this.clientViewportContent=null,this.chatViewportElement=null,this.chatViewportClient=null,this.getViewportElement(),this.isShown=!1,this.phoneWidth=0,this.restoreWidth=window.top.innerWidth,this.touchListener=$bind(this,this.uponTouch),this.resizeListener=$bind(this,this.uponResize),this.orientationListener=$bind(this,this.uponOrientationChange);var t=window.top.document.getElementsByName("viewport");null==t||0==t.length?(com.inq.utils.Capabilities.isAndroid()&&com.inq.utils.Capabilities.isTablet()?this.restoreWidth=window.top.document.body.clientWidth:this.restoreWidth=window.top.document.documentElement.offsetWidth,this.createViewportElement("width=device-width"),com.inq.utils.Capabilities.isAndroid()&&com.inq.utils.Capabilities.isTablet()?this.phoneWidth=window.top.document.documentElement.clientWidth:this.phoneWidth=window.top.document.documentElement.offsetWidth,this.adjustViewport(),this.restoreContent=null,this.clientViewportContent=null):(this.chatViewportClient=t[0],this.clientViewportContent=this.chatViewportClient.content)},$hxClasses.extend(com.inq.stage.ViewportMgrImplBase,com.inq.stage.ViewportMgrImplMobile,"com.inq.stage.ViewportMgrImplMobile"),com.inq.stage.ViewportMgrImplMobile.prototype.createViewportElement=function(t){if(null==this.chatViewportElement){var e=com.inq.ui.Container._getElementByTN("head",this.clientDocument);null==e||e.length<1||(this.headHtml=e[0],null==this.chatViewportElement&&(this.chatViewportElement=this.clientDocument.createElement("META"),this.chatViewportElement.name="viewport",this.chatViewportElement.id=com.inq.stage.ViewportMgr.VIEWPORT_ID,this.chatViewportElement.content=t,this.chatViewportElement.setAttribute("id",com.inq.stage.ViewportMgr.VIEWPORT_ID),this.chatViewportElement.setAttribute("name","viewport"),this.chatViewportElement.setAttribute("content",t),this.headHtml.appendChild(this.chatViewportElement)))}},com.inq.stage.ViewportMgrImplMobile.prototype.modifyViewport=function(t){null!=this.chatViewportElement?(this.chatViewportElement.name="viewport",this.chatViewportElement.content=t,this.chatViewportElement.setAttribute("name","viewport"),this.chatViewportElement.setAttribute("content",t)):null!=this.chatViewportClient&&(this.chatViewportClient.content=t)},com.inq.stage.ViewportMgrImplMobile.prototype.RestoreViewport=function(){try{var t=1;try{t=this.phoneWidth/this.restoreWidth}catch(e){haxe.Log.trace("error: "+Std.string(e),{fileName:"ViewportMgrImplMobile.hx",lineNumber:248,className:"com.inq.stage.ViewportMgrImplMobile",methodName:"RestoreViewport"}),t=1}null!=this.chatViewportClient&&null!=this.clientViewportContent?this.modifyViewport(this.clientViewportContent):t>=.25&&t<=5?this.modifyViewport("width=device-width, initial-scale="+t+", minimum-scale=0.25, maximum-scale=5, user-scalable=yes"):this.modifyViewport("width="+this.restoreWidth+", minimum-scale=0.25, maximum-scale=5, user-scalable=yes")}catch(t){haxe.Log.trace("RestoreViewport ERROR: "+t)}},com.inq.stage.ViewportMgrImplMobile.prototype.getViewportElement=function(){this.clientViewportElement=null;var t=this.clientDocument.getElementsByName("viewport");if(null!=t&&t.length>0)for(var e=0,i=t.length;e<i;){var n=t[e++];"meta"==(""+n.tagName).toLowerCase()&&(n.id==com.inq.stage.ViewportMgr.VIEWPORT_ID?this.chatViewportElement=n:this.clientViewportElement=n)}},com.inq.stage.ViewportMgrImplMobile.prototype.getDeviceWidth=function(){return this.clientWindow.innerWidth},com.inq.stage.ViewportMgrImplMobile.prototype.getInitialWidth=function(){return this.clientWindow.innerWidth},com.inq.stage.ViewportMgrImplMobile.prototype.fixPositioning=function(){com.inq.flash.client.chatskins.ScrollMonitor.ScrollToNearTop(),Application.application.setStyle("zoom",""+Application.initialZoom),this.resizeToViewport()},com.inq.stage.ViewportMgrImplMobile.prototype.resizeToViewport=function(){com.inq.flash.client.chatskins.ChatTextFocusMonitor.resizeToViewport("ViewportMgr: fixPositioning")},com.inq.stage.ViewportMgrImplMobile.prototype.hide=function(){if(!0===this.isShown)try{com.inq.utils.Capabilities.UnbindListener(this.clientDocument,"touchmove",this.touchListener),com.inq.utils.Capabilities.UnbindListener(this.clientWindow,"orientationchange",this.orientationListener),com.inq.utils.Capabilities.UnbindListener(this.clientWindow,"resize",this.resizeListener),this.clientDocument.body.style.minHeight="",this.restoreWidth==this.clientWidth&&this.clientViewportContent&&(com.inq.flash.client.chatskins.ChatTextFocusMonitor.closing||com.inq.flash.client.control.MinimizeManager.minimized)?com.inq.utils.Timer.delay($bind(this,(function(){this.RestoreViewport()})),100):this.RestoreViewport(),com.inq.stage.ViewportMgr.impl.currentScroll&&(this.clientLeftOffset=com.inq.stage.ViewportMgr.impl.currentScroll.X,this.clientTopOffset=com.inq.stage.ViewportMgr.impl.currentScroll.Y),this.clientWindow.scrollTo(this.clientLeftOffset,this.clientTopOffset),this.isShown=!1,com.inq.stage.ViewportMgr.impl.currentScroll=null}catch(t){haxe.Log.trace("ViewportMgrImpStd._hide: ERROR:"+Std.string(t))}},com.inq.stage.ViewportMgrImplMobile.prototype.calcPhoneWidth=function(){0==this.phoneWidth&&(this.modifyViewport("width=device-width"),this.phoneWidth=window.top.document.documentElement.offsetWidth,this.adjustViewport())},com.inq.stage.ViewportMgrImplMobile.prototype.show=function(){if(0==this.isShown)try{this.clientLeftOffset=this.clientWindow.pageXOffset,this.clientTopOffset=this.clientWindow.pageYOffset,this.clientDocument.body.style.minHeight=this.clientDocument.documentElement.offsetHeight+1+"px",com.inq.utils.Capabilities.BindListener(this.clientWindow,"resize",this.resizeListener),com.inq.utils.Capabilities.BindListener(this.clientWindow,"orientationchange",this.orientationListener),com.inq.utils.Capabilities.BindListener(this.clientDocument,"touchmove",this.touchListener),this.clientWidth=this.getInitialWidth(),this.calcPhoneWidth(),this.fixedWidthViewport(),Application.initialZoom=this.clientWindow.innerWidth/this.phoneWidth,com.inq.utils.Capabilities.isAndroidWebView()||com.inq.utils.Capabilities.isIOSWebView()||this.fixPositioning(),this.isShown=!0}catch(t){com.inq.utils.Capabilities.UnbindListener(this.clientWindow,"resize",this.resizeListener),com.inq.utils.Capabilities.UnbindListener(this.clientWindow,"orientationchange",this.orientationListener),com.inq.utils.Capabilities.UnbindListener(this.clientDocument,"touchmove",this.touchListener),this.isShown=!1}},com.inq.stage.ViewportMgrImplMobile.prototype.resizeChat=function(){this.hide(),this.phoneWidth=0,this.show(),com.inq.utils.Capabilities.isIOSWebView()&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.resizeToViewport()},com.inq.stage.ViewportMgrImplMobile.prototype.adjustViewport=function(){var t=1;try{t=this.phoneWidth/this.restoreWidth}catch(t){haxe.Log.trace("error: "+Std.string(t),{fileName:"ViewportMgrImplMobile.hx",lineNumber:87,className:"com.inq.stage.ViewportMgrImplMobile",methodName:"adjustViewport"})}t>=.25&&t<=5?this.modifyViewport("width=device-width, initial-scale="+t+", minimum-scale=0.25, maximum-scale=5, user-scalable=yes"):this.modifyViewport("width="+this.restoreWidth+", minimum-scale=0.25, maximum-scale=5, user-scalable=yes")},com.inq.stage.ViewportMgrImplMobile.prototype.fixedWidthViewport=function(){(com.inq.utils.Capabilities.isSafariVersion9()||com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12())&&com.inq.utils.Capabilities.isPhone()?this.modifyViewport(com.inq.stage.ViewportMgrImplMobile.FIXED_CONTENT_IOS):this.modifyViewport(com.inq.stage.ViewportMgrImplMobile.FIXED_CONTENT)},com.inq.stage.ViewportMgrImplMobile.prototype.uponTouch=function(t){com.inq.utils.Capabilities.isPhone()?com.inq.stage.ViewportMgr.impl&&!0===com.inq.stage.ViewportMgr.impl.zoomedScreenMsgIsVisible||t.preventDefault():2==t.touches.length&&t.preventDefault()},com.inq.stage.ViewportMgrImplMobile.prototype.uponOrientationChange=function(t){if(com.inq.ui.Stage.getInstance().getVisible()){com.inq.utils.Timer.delay($bind(this,this.resizeChat),200);for(var e=Application.application.getXFrameItems(),i=0;i<e.length;i++)e[i].resetScrolling()}com.inq.utils.Capabilities.setOrigViewPortHeight()},com.inq.stage.ViewportMgrImplMobile.prototype.toggleZoomedScreenMsg=function(){null==com.inq.stage.ViewportMgr.impl&&com.inq.stage.ViewportMgr.init();var t=Application.application.getCanvas(com.inq.stage.ViewportMgr.impl.zoomedScreenMsgId);if(t&&(t.setVisible(!1),com.inq.stage.ViewportMgr.impl.zoomedScreenMsgIsVisible=!1),0!=com.inq.utils.Capabilities.getOrientation()&&t&&com.inq.utils.Capabilities.isPhone()&&(com.inq.utils.Capabilities.isSafariVersion10()||com.inq.utils.Capabilities.isSafariVersion11()||com.inq.utils.Capabilities.isSafariVersion12())&&com.inq.utils.Capabilities.getZoom()>1.1){t.setVisible(!0),window.top.scrollTo(0,0),com.inq.stage.ViewportMgr.impl.zoomedScreenMsgIsVisible=!0;var e=new com.inq.utils.Timer(4680),i=com.inq.aria.AriaMsg;i.clearAriaMsg(),e.run=function(){i.addAriaMsg("For a better chat experience, please zoom out.",com.inq.flash.client.chatskins.ChatTextArea.SYSTEM,!0),e.stop()}}},com.inq.stage.ViewportMgrImplMobile.prototype.orientationListener=null,com.inq.stage.ViewportMgrImplMobile.prototype.resizeListener=null,com.inq.stage.ViewportMgrImplMobile.prototype.touchListener=null,com.inq.stage.ViewportMgrImplMobile.prototype.restoreWidth=null,com.inq.stage.ViewportMgrImplMobile.prototype.phoneWidth=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientTopOffset=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientLeftOffset=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientWidth=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientDocument=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientWindow=null,com.inq.stage.ViewportMgrImplMobile.prototype.chatViewportClient=null,com.inq.stage.ViewportMgrImplMobile.prototype.chatViewportElement=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientViewportContent=null,com.inq.stage.ViewportMgrImplMobile.prototype.clientViewportElement=null,com.inq.stage.ViewportMgrImplMobile.prototype.headHtml=null,com.inq.stage.ViewportMgrImplMobile.prototype.zoomedScreenMsgIsVisible=!1,com.inq.stage.ViewportMgrImplMobile.prototype.zoomedScreenMsgId="zoomedScreenMsg",com.inq.stage.ViewportMgrImplMobile.DEFAULT_CONTENT="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=yes",com.inq.stage.ViewportMgrImplMobile.FIXED_CONTENT="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes",com.inq.stage.ViewportMgrImplMobile.FIXED_CONTENT_IOS="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no",com.inq.stage.ViewportMgrImplMobile.prototype.__class__=com.inq.stage.ViewportMgrImplMobile,com.inq.stage.ViewportMgrImplPhone=function(){com.inq.stage.ViewportMgrImplMobile.call(this)},$hxClasses.extend(com.inq.stage.ViewportMgrImplMobile,com.inq.stage.ViewportMgrImplPhone,"com.inq.stage.ViewportMgrImplPhone"),com.inq.stage.ViewportMgrImplPhone.prototype.fixPositioning=function(){com.inq.stage.ViewportMgrImplMobile.prototype.fixPositioning.call(this),this.clientDocument.documentElement.offsetHeight<window.top.innerHeight&&(this.clientDocument.body.style.minHeight=window.top.innerHeight+"px"),0!=this.clientWindow.pageYOffset||com.inq.utils.Capabilities.isAndroidWebView()||com.inq.utils.Capabilities.isIOSWebView()||this.clientWindow.scrollTo(this.clientWindow.pageXOffset,1)},com.inq.stage.ViewportMgrImplPhone.prototype.__class__=com.inq.stage.ViewportMgrImplPhone,com.inq.stage.ViewportMgrImplPhoneAndroid=function(){com.inq.stage.ViewportMgrImplPhone.call(this)},$hxClasses.extend(com.inq.stage.ViewportMgrImplPhone,com.inq.stage.ViewportMgrImplPhoneAndroid,"com.inq.stage.ViewportMgrImplPhoneAndroid"),com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.uponResizeId=0,com.inq.stage.ViewportMgrImplPhoneAndroid.FIXED_CONTENT="width=device-width, initial-scale=1.0, maximum-scale=1.0",com.inq.stage.ViewportMgrImplPhoneAndroid.chatWindowZoomLevel=1,com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.calcPhoneWidth=function(){if(0==this.phoneWidth){this.modifyViewport("width=device-width"),com.inq.ui.Stage.getInstance();var t=com.inq.ui.Stage.getStageElement();Application.application.applyStyle(),this.phoneWidth=t.offsetWidth}},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.fixedWidthViewport=function(){this.modifyViewport("width=device-width, user-scalable=no");try{com.inq.ui.Container._getElementById("inqDivResizeCorner",parent.document).style.display=""}catch(t){}},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.uponResizeAction=function(){this.uponResizeId=0,com.inq.ui.Stage.getInstance().getVisible()&&(Application.SetArea(com.inq.utils.Capabilities.getViewport()),com.inq.flash.client.chatskins.SkinControl.cw.scrollToEnd())},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.uponResize=function(t){0!=this.uponResizeId&&window.clearTimeout(this.uponResizeId),this.uponResizeId=com.inq.utils.Capabilities.waitFor(com.inq.utils.Capabilities.viewportStopsMoving(300),100,this.uponResizeAction)},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.resizeToViewport=function(){com.inq.flash.client.chatskins.ScrollMonitor.unbindAll(),com.inq.stage.ViewportMgrImplPhoneAndroid.chatWindowZoomLevel!=Application.initialZoom&&(Application.initialZoom=com.inq.stage.ViewportMgrImplPhoneAndroid.chatWindowZoomLevel,Application.application.setStyle("zoom",""+Application.initialZoom));try{Application.SetArea(com.inq.utils.Capabilities.getViewport()),Application.Resize()}catch(t){haxe.Log.trace("Error: "+t,{fileName:"ViewportMgrImplPhoneAndroid.js",lineNumber:111,className:"com.inq.stage.ViewportMgrImplPhoneAndroid",methodName:"resizeToViewport"})}com.inq.flash.client.chatskins.ScrollMonitor.bindAll()},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.getChatWindowZoomLevel=function(){return com.inq.stage.ViewportMgrImplPhoneAndroid.chatWindowZoomLevel},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.RestoreViewport=function(){com.inq.stage.ViewportMgrImplPhone.prototype.RestoreViewport.call(this);try{com.inq.ui.Container._getElementById("inqDivResizeCorner",parent.document).style.display="none"}catch(t){}},com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.fixPositioning=function(){com.inq.stage.ViewportMgrImplMobile.prototype.fixPositioning.call(this),0==this.clientWindow.pageYOffset&&this.clientWindow.scrollTo(this.clientWindow.pageXOffset,1)},com.inq.stage.ViewportMgrImplPhoneAndroid_2=function(){com.inq.stage.ViewportMgrImplPhoneAndroid.call(this)},$hxClasses.extend(com.inq.stage.ViewportMgrImplPhoneAndroid,com.inq.stage.ViewportMgrImplPhoneAndroid_2,"com.inq.stage.ViewportMgrImplPhoneAndroid_2"),com.inq.stage.ViewportMgrImplPhoneAndroid_2.prototype.getInitialWidth=function(){this.createViewportElement("");var t=this.clientWindow.document.body.clientWidth,e=this.clientWindow.innerWidth,i=this.clientDocument.createElement("DIV");i.style.cssText="position: fixed; top: 3px; left: 3px; right: 3px; bottom: 3px; background-color: red; display: block;",i.id="tcChat_TestDiv",this.clientDocument.body.appendChild(i);var n=i.clientWidth;return this.clientWindow.alert("body width is "+t+"\ndiv width is "+n+"\ninner width is "+e),this.clientDocument.body.removeChild(i),t},com.inq.stage.ViewportMgrImplPhoneAndroid_2.prototype.__class__=com.inq.stage.ViewportMgrImplPhoneAndroid_2,com.inq.stage.ViewportMgrImplPhoneWindows=function(){com.inq.stage.ViewportMgrImplPhoneAndroid.call(this)},$hxClasses.extend(com.inq.stage.ViewportMgrImplPhoneAndroid,com.inq.stage.ViewportMgrImplPhoneWindows,"com.inq.stage.ViewportMgrImplPhoneWindows"),com.inq.stage.ViewportMgrImplPhoneWindows.prototype.addCssChatAction=function(){try{var t=document.getElementsByTagName("head")[0],e=document.createElement("Meta");e.setAttribute("http-equiv","X-UA-Compatible"),e.setAttribute("content","IE=edge"),e.id="metaTagEdge",t.insertBefore(e,t.firstChild);var i=document.getElementById("tcAjustChatAction");null!=i&&i.parentNode.removeChild(i);var n=document.createElement("style");n.id="tcAjustChatAction",n.appendChild(document.createTextNode("html, * {  touch-action: pan-y pan-x !important;    -ms-touch-action: pan-y pan-x !important;} body {  touch-action: none !important;    -ms-touch-action: none !important;} .tcChat {\ttouch-action: pan-y pan-x !important;\t-ms-touch-action: pan-y pan-x !important;}")),t.appendChild(n),window.top.document.body.style["-ms-touch-action"]="none"}catch(t){alert("Error in function addCssChatAction: "+t)}},com.inq.stage.ViewportMgrImplPhoneWindows.prototype.removeCssChatAction=function(){var t=document.getElementById("tcAjustChatAction");null!=t&&t.parentNode.removeChild(t);var e=document.getElementById("metaTagEdge");null!=e&&e.parentNode.removeChild(e),window.top.document.body.style["-ms-touch-action"]=""},com.inq.stage.ViewportMgrImplPhoneWindows.prototype.show=function(){com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.show.call(this),this.addCssChatAction()},com.inq.stage.ViewportMgrImplPhoneWindows.prototype.hide=function(){com.inq.stage.ViewportMgrImplPhoneAndroid.prototype.hide.call(this),this.removeCssChatAction()},com.inq.stage.ViewportMgrImplPhoneWindows.prototype.fixPositioning=function(){com.inq.stage.ViewportMgrImplMobile.prototype.fixPositioning.call(this),0==this.clientWindow.pageYOffset&&this.clientWindow.scrollTo(this.clientWindow.pageXOffset,1)},com.inq.stage.ViewportMgrImplTablet=function(){com.inq.stage.ViewportMgrImplMobile.call(this),null==this.clientViewportElement&&(this.createViewportElement(""),this.RestoreViewport())},$hxClasses.extend(com.inq.stage.ViewportMgrImplMobile,com.inq.stage.ViewportMgrImplTablet,"com.inq.stage.ViewportMgrImplTablet"),com.inq.stage.ViewportMgrImplTablet.prototype.hide=function(){!0===this.isShown&&(this.isShown=!1)},com.inq.stage.ViewportMgrImplTablet.prototype.show=function(){!0!==this.isShown&&(this.isShown=!0)},com.inq.stage.ViewportMgrImplTablet.prototype.__class__=com.inq.stage.ViewportMgrImplTablet,y(5306),com.inq.ui.AbstractTextInput=function(t){if(com.inq.ui.Container.call(this,t),this.maxChars=0,""==window.document.body.style.fontFamily)try{window.document.body.style.fontFamily=com.inq.utils.Util.getConfig("sFont","Verdana, Arial, Helvetica");var e=com.inq.utils.Util.getConfig("pointSize",null);null!==e&&(window.document.body.style.fontSize=Std.string(e)+"pt")}catch(t){haxe.Log.trace("could not set font family and point size",{fileName:"AbstractTextInput.hx",lineNumber:26,className:"com.inq.ui.AbstractTextInput",methodName:"new"})}},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.AbstractTextInput,"com.inq.ui.AbstractTextInput"),com.inq.ui.AbstractTextInput._isWindowsChromeWindowsMac=/(Windows|Linux|Macintosh).*AppleWebKit?.*Chrome/i.test(navigator.userAgent),com.inq.ui.AbstractTextInput.prototype.usePlaceholder=function(){return com.inq.utils.Capabilities.isIe10Phone()},com.inq.ui.AbstractTextInput.isViewable=function(t){for(var e=t;null!=e;){try{if(null!=e.style&&("none"==e.style.display||"false"==e.style.visible))return!1}catch(t){}e=e.parentNode}return!0},com.inq.ui.AbstractTextInput.prototype.getCursorPosition=function(){if(null!=this._input.createTextRange&&null!=this.document.selection&&this.document.selection.createRange){var t=this.document.selection.createRange().duplicate();return t.moveEnd("character",StringTools.trim(this._getInput()).length),""==t.text?StringTools.trim(this._getInput()).length:StringTools.trim(this._getInput()).lastIndexOf(t.text)}return this._input.selectionStart},com.inq.ui.AbstractTextInput.prototype._enable=function(t){if(this._div.childNodes&&this._div.childNodes.length>0)for(var e=0,i=this._div.childNodes.length;e<i;){var n=e++;try{this._div.childNodes[n].disabled=t}catch(t){}}},com.inq.ui.AbstractTextInput.prototype._isDisable=function(){var t=!0;if(this._div.childNodes&&this._div.childNodes.length>0)for(var e=0,i=this._div.childNodes.length;e<i;){var n=e++;try{t=t&&!!this._div.childNodes[n].disabled}catch(t){}}return t},com.inq.ui.AbstractTextInput.prototype.select=function(){},com.inq.ui.AbstractTextInput.prototype._setInput=function(t,e){if(com.inq.utils.Capabilities.isWindowsPhone())if(this.pendingTimer)this.pendingValue=t;else{var i=this;this.pendingValue=t,this.pendingTimer=com.inq.utils.Timer.delay((function(){i.setText?i.setText(t,e):i._input.value=i.pendingValue,i.pendingTimer=null,i.pendingValue=null}),1)}else this.setText?this.setText(t,e):this._input.value=t},com.inq.ui.AbstractTextInput.prototype.clear=function(){this._setInput("","")},com.inq.ui.AbstractTextInput.prototype._getInput=function(){return com.inq.utils.Capabilities.isWindowsPhone()&&this.pendingTimer?this.pendingValue:this._input.value},com.inq.ui.AbstractTextInput.prototype.setFocus=function(t){if((!com.inq.utils.Capabilities.isIphone()||t)&&(!com.inq.utils.Capabilities.isIe10Phone()||t)&&(com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched||!(com.inq.utils.Capabilities.isSafari()&&com.inq.utils.Capabilities.isTablet()||com.inq.utils.Capabilities.isChromeiOS10()||com.inq.utils.Capabilities.isChromeiOS11())||t)&&(!com.inq.flash.client.control.FlashPeer.getIsBuilder()||com.inq.flash.client.chatskins.ChatTextFocusMonitorImplBase.isTouched)&&(!com.inq.utils.Capabilities.isPhone()||com.inq.utils.Capabilities.getOrientation()||null==Application.application.getCanvas("smallScreenMsg"))&&com.inq.ui.AbstractTextInput.isViewable(this._input)&&!this._isDisable())try{var e=this._input;if(e){if(com.inq.ui.AbstractTextInput._isWindowsChromeWindowsMac&&!com.inq.utils.Capabilities.isAndroidWebView()){var i=window.top,n=i.scrollY,o=i.scrollX,a=Application.GetArea(),s=Application.application._div.style.cssText;Application.application._div.style.cssText="position: absolute; top: "+n+"px; right: "+o+"px; height: 1px; width: 1px;display: block;",com.inq.flash.client.control.MinimizeManager.isMinimized()||(Application.application._div.style.cssText=s,Application.MoveSizeDiv2Stage(a.w,a.h,a.x,a.y),(top.document.activeElement!=e||t)&&e.focus())}else(top.document.activeElement!=e||t)&&(com.inq.utils.Util.isIE?window.setTimeout((function(){e.focus()}),500):e.focus());e.ownerDocument.activeElement!==e&&(void 0!==Application.application.setFocusTimeout&&!1!==Application.application.setFocusTimeout||(Application.application.setFocusTimeout=window.setTimeout((function(){top.document.activeElement!=e&&e.focus(),Application.application.setFocusTimeout=!1}),1)))}}catch(t){haxe.Log.trace("ERROR: Could not set focus",{fileName:"AbstractTextInput.js",lineNumber:200,className:"com.inq.ui.AbstractTextInput",methodName:"setFocus"})}},com.inq.ui.AbstractTextInput.prototype.setID=function(t){com.inq.ui.Container.prototype.setID.call(this,t),null!=this._input&&(this._input.id=Std.string(this._div.id)+"_input")},com.inq.ui.AbstractTextInput.prototype._onKey=function(t,e){var i=new com.inq.events.KeyboardEvent(e);return i.keyCode=null!=t?t.which:Application.application.getPanelWindow().event.keyCode,this.dispatchEvent(i)},com.inq.ui.AbstractTextInput.prototype._onInput=function(t){this.dispatchEvent(t),this.textPasted&&(this._setInput(this.applyFilter(this._getInput())),this.textPasted=!1)},com.inq.ui.AbstractTextInput.prototype._onKeyPress=function(t){var e=new com.inq.events.KeyboardEvent(com.inq.events.KeyboardEvent.KEY_PRESS);if(e.keyCode=null!=t?t.which:Application.application.getPanelWindow().event.keyCode,e.charCode=null!=t?t.which:Application.application.getPanelWindow().event.charCode,e.ctrlKey=null!=t?t.ctrlKey:!!Application.application.getPanelWindow().event.ctrlKey,e.altKey=null!=t?t.altKey:!!Application.application.getPanelWindow().event.altKey,e.shiftKey=null!=t?t.shiftKey:!!Application.application.getPanelWindow().event.shiftKey,e.charCode=e.keyCode=e.charCode||e.keyCode,e.ctrlKey||e.keyCode<32)return this.dispatchEvent(e);var i=this.getStyle("maxChars");if(this.maxChars=null!=i?Std.parseInt(i):0,this.maxChars>0&&this._getInput().length-this._getSelectedText().length>=this.maxChars)return!1;var n=this.getStyle("restrict");if(null!=n){var o=String.fromCharCode(e.keyCode);if(n.indexOf(o)<0)return!1}return this.dispatchEvent(e)},com.inq.ui.AbstractTextInput.prototype.validateAndFormat=function(){var t=!0,e=this._getInput()?this.applyFilter(this._getInput()):null;if(e){var i=this.getStyle("validate");if(i){var n=new EReg(i,"");n.match(e)||(this.setFocus(),t=!1)}var o=this.getStyle("format");null!=o&&(e=n.replace(e,o)),this._setInput(e)}return t},com.inq.ui.AbstractTextInput.prototype._isVisible=function(){for(var t=this._input;t;){if("none"==t.style.display.toLowerCase())return!1;if("BODY"==(t=t.parentNode).tagName.toUpperCase())break}return!0},com.inq.ui.AbstractTextInput.prototype.applyFilter=function(t){var e,i="",n=this.getStyle("restrict");if(null!=n)for(var o=0,a=t.length;o<a;){var s=o++;e=HxOverrides.substr(t,s,1),n.indexOf(e)>=0&&(i+=e)}else i=t;var l=this.getStyle("maxChars");return this.maxChars=null!=l?Std.parseInt(l):0,this.maxChars>0&&this.maxChars<i.length&&(i=HxOverrides.substr(i,0,this.maxChars)),i},com.inq.ui.AbstractTextInput.prototype._onFocus=function(t,e){var i=new com.inq.events.KeyboardEvent(e);return i.keyCode=null!=t?t.which:Application.application.getPanelWindow().event.keyCode,this.dispatchEvent(i)},com.inq.ui.AbstractTextInput.prototype._onKeyUp=function(t){try{return this._onKey(t,com.inq.events.KeyboardEvent.KEY_UP)}catch(t){}return!0},com.inq.ui.AbstractTextInput.prototype._getSelectedText=function(){if(null!=this._input.selectionStart&&null!=this._input.selectionEnd)return this._getInput().substring(this._input.selectionStart,this._input.selectionEnd);if(null!=this._input.createTextRange&&null!=this.document.selection&&this.document.selection.createRange){var t=this.document.selection.createRange(),e=this._input.createTextRange();if(null!=e&&null!=t&&t.text.length>0&&e.text.indexOf(t.text)>=0)return t.text}return""},com.inq.ui.AbstractTextInput.prototype._onKeyDown=function(t){if(t||(t=Application.application.getPanelWindow().event),t.keyCode==com.inq.ui.Keyboard.ESCAPE&&com.inq.utils.Util.getConfig("escToClose",!1))return!1;try{return this._onKey(t,com.inq.events.KeyboardEvent.KEY_DOWN)}catch(t){}return!0},com.inq.ui.AbstractTextInput.prototype._onFocusOut=function(t){try{return!!this.validateAndFormat()&&this._onFocus(t,com.inq.events.FocusEvent.FOCUS_OUT)}catch(t){}return!0},com.inq.ui.AbstractTextInput.prototype._onChange=function(t){return this.validateAndFormat()},com.inq.ui.AbstractTextInput.prototype._onPaste=function(t){this.textPasted=!0},com.inq.ui.AbstractTextInput.prototype._onFocusIn=function(t){try{return this._onFocus(t,com.inq.events.FocusEvent.FOCUS_IN)}catch(t){}return!0},com.inq.ui.AbstractTextInput.prototype.blur=function(){this._input&&this._input.blur()},com.inq.ui.AbstractTextInput.prototype._doClick=function(t){this.setFocus();try{var e=new com.inq.events.MouseEvent(com.inq.events.MouseEvent.CLICK);return this.dispatchEvent(e)}catch(t){haxe.Log.trace("ERROR in _doClick",{fileName:"AbstractTextInput.hx",lineNumber:732,className:"com.inq.ui.AbstractTextInput",methodName:"_doClick"})}return!0},com.inq.ui.AbstractTextInput.prototype.setupInput=function(t){this._input=t,this._input.container=this,this.clear(),this._input.oninput=$bind(this,this._onInput),this._input.onkeypress=$bind(this,this._onKeyPress),this._input.onkeyup=$bind(this,this._onKeyUp),this._input.onkeydown=$bind(this,this._onKeyDown),this._input.onblur=$bind(this,this._onFocusOut),this._input.onfocus=$bind(this,this._onFocusIn),this._input.onchange=$bind(this,this._onChange),this._div.onclick=$bind(this,this._doClick),com.inq.utils.Capabilities.BindListener(this._input,"paste",$bind(this,this._onPaste))},com.inq.ui.AbstractTextInput.prototype.setIntroduction=function(t){var e=t||com.inq.flash.client.chatskins.SkinControl.getIntroduction();this._placeholder||null==e||(this._placeholder=new com.inq.ui.Placeholder(this._input,e))},com.inq.ui.AbstractTextInput.prototype.clearPlaceholder=function(){this._placeholder&&this._placeholder.clear()},com.inq.ui.AbstractTextInput.prototype.cleanUp=function(){this._placeholder=null},com.inq.ui.AbstractTextInput.prototype.getInput=function(){return this._input},com.inq.ui.AbstractTextInput.prototype.disabled=null,com.inq.ui.AbstractTextInput.prototype.text=null,com.inq.ui.AbstractTextInput.prototype.maxChars=null,com.inq.ui.AbstractTextInput.prototype._introduction=null,com.inq.ui.AbstractTextInput.prototype._placeholder=null,com.inq.ui.AbstractTextInput.prototype._input=null,com.inq.ui.AbstractTextInput.prototype.pendingValue=null,com.inq.ui.AbstractTextInput.prototype.pendingTimer=null,com.inq.ui.ArrayCollection=function(){this._collection=new Array},$hxClasses.registerClass(com.inq.ui.ArrayCollection,"com.inq.ui.ArrayCollection"),com.inq.ui.ArrayCollection.prototype.getItemAt=function(t){return t<this._collection.length?this._collection[t]:null},com.inq.ui.ArrayCollection.prototype.getLength=function(){return this._collection.length},com.inq.ui.ArrayCollection.prototype.addItem=function(t){this._collection[this._collection.length]=t},com.inq.ui.ArrayCollection.prototype.length=null,com.inq.ui.ArrayCollection.prototype._collection=null,com.inq.ui.ArrayCollection.prototype.__class__=com.inq.ui.ArrayCollection,y(1703),com.inq.ui.BalloonOverlaying=function(t,e,i,n,o){com.inq.ui.Container.call(this),this._element=i,this._parent=o,this._styleName=e,this._styleDef=null,this._text=n,this._parentContainer=o,this.cornerRadius=6,this._style=com.inq.utils.Util.getConfig(e,null),null==this._style&&(this._style="BalloonNotify"==e?";color:white;background-color:navy;":"BalloonWarn"==e?";color:yellow;background-color:red;":";color:black;background-color:white;"),this.render(this._parentContainer)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.BalloonOverlaying,"com.inq.ui.BalloonOverlaying"),com.inq.ui.BalloonOverlaying._doClick=function(t){var e=window;(null!=t?t.target:e.event.srcElement).container.doClick()},com.inq.ui.BalloonOverlaying.prototype.applyStyle=function(){this.buildStyle()},com.inq.ui.BalloonOverlaying.prototype.setID=function(t){com.inq.ui.Container.prototype.setID.call(this,t),null!=this._img&&(this._img.id=t+"_img")},com.inq.ui.BalloonOverlaying.prototype.setHandCursor=function(t){"true"===t.toLowerCase()?this._useHandCursor=!0:this._useHandCursor=!1,this.useHandCursor=this._useHandCursor?"true":"false"},com.inq.ui.BalloonOverlaying.prototype.destroy=function(){if(null!=this._div.parentNode)try{this._div.parentNode.removeChild(this._div)}catch(t){if(!js.Boot.__instanceof(t,Error))throw t}return this._element},com.inq.ui.BalloonOverlaying.prototype.buildStyle=function(){this.render(this._parentContainer)},com.inq.ui.BalloonOverlaying.prototype.doClick=function(){var t=new com.inq.events.MouseEvent(com.inq.events.MouseEvent.CLICK);t.target=this,t.currentTarget=this,this.dispatchEvent(t)},com.inq.ui.BalloonOverlaying.prototype._fixSizesAndPositions=function(){for(var t=this._div.getElementsByTagName("*"),e=this._div.getElementsByTagName("TABLE")[0],i=null,n=null,o=null,a=null,s=null,l=null,r=null,c=null,h=null,m=null,u=null,p=null,d=null,f=null,g=null,C=null,q=null,S=null,_=0,M=t.length;_<M;_++){var T=t[_];if(null!=T){var E=T.getAttribute("name");if(null!=E&&""!=E)switch(E){case"blnSpanText":i=T;break;case"blnCellText":break;case"blnTd1":S=t[_];break;case"blnSpanCornerLT":o=T;break;case"blnSpanCornerRT":a=T;break;case"blnSpanCornerLB":s=T;break;case"blnSpanCornerRB":l=T;break;case"blnBackground":r=T;break;case"blnBackgroundEW":c=T;break;case"blnBackgroundNS":h=T;break;case"blnLeftArrows":m=T;break;case"blnRightArrows":u=T;break;case"blnTopArrows":p=T;break;case"blnBottomArrows":d=T;break;case"blnUpArrowLeft":f=T;break;case"blnUpArrowRight":g=T;break;case"blnLeftArrowTop":C=T;break;case"blnClearOverlay":n=T;break;case"blnLeftArrowBottom":q=T;break;default:haxe.Log.trace("item named "+E+" not used",{fileName:"BalloonOverlaying.hx",lineNumber:397,className:"com.inq.ui.BalloonOverlaying",methodName:"_fixSizesAndPositions"})}}}if(com.inq.ui.BalloonOverlaying.bIE6&&o.offsetWidth>18){var y=25;for(o.style.fontSize=y+"pt";o.offsetWidth>18;)--y,o.style.fontSize=y+"pt";l.style.fontSize=s.style.fontSize=a.style.fontSize=y+"pt",o.style.left="0px",o.style.top="0px",a.style.left="-8px",a.style.top="0px",s.style.left="0px",s.style.top="-8px",l.style.left="-8px",l.style.top="-8px",f.style.top="0px",f.style.left="-1px",g.style.top="0px",g.style.left="-1px"}m.style.display="",u.style.display="none",p.style.display="none",d.style.display="none",C.style.display="",q.style.display="none";var k=Math.round(this.cornerRadius/2);i.parentNode.style.padding=k+"px";var A=e.offsetWidth-S.offsetWidth,b=i.offsetWidth;i.parentNode.style.width=b+"px";var v=i.offsetHeight;i.parentNode.style.height=v+"px",v+=2*k,b+=2*k,e.style.height=v+"px",e.style.width=b+A+"px",r.style.width=b+"px",r.style.height=v+"px",c.style.left="0px",c.style.right="0px",c.style.top=this.cornerRadius+"px",c.style.bottom="",c.style.height=v-2*this.cornerRadius+"px",c.style.width=b+"px",h.style.top="0px",h.style.bottom="",h.style.left=this.cornerRadius+"px",h.style.right="",h.style.width=b-2*this.cornerRadius+"px",h.style.height=v+"px",a.parentNode.style.left=b-this.cornerRadius+"px",a.parentNode.style.right="",l.parentNode.style.left=b-this.cornerRadius+"px",l.parentNode.style.right="",l.parentNode.style.top=v-this.cornerRadius+"px",l.parentNode.style.bottom="",s.parentNode.style.top=v-this.cornerRadius+"px",s.parentNode.style.bottom="",this._div.style.width=e.style.width,this._div.style.height=e.style.height,n.style.width=e.style.width,n.style.height=e.style.height;for(var I=0,w=t.length;I<w;I++){var F=t[I].getAttribute("name");null!=F&&""!=F&&"blnArrowLeft"===F&&(t[I].style.height=("TABLE"==t[I].tagName?v:v/2)+"px")}},com.inq.ui.BalloonOverlaying.prototype.render=function(t){var e=0,i=0;null==t&&(t=window.document.body);for(var n=this._element;n!=t&&(e+=n.offsetLeft,i+=n.offsetTop,null!=(n=n.offsetParent)););var o=i+=t.offsetTop,a=(e+=t.offsetLeft)+3,s=t.clientWidth,l=s>400?400:s,r=t.clientWidth-com.inq.ui.BalloonOverlaying.HOT_OFFSET_X+a,c=a-com.inq.ui.BalloonOverlaying.HOT_OFFSET_X,h=o-com.inq.ui.BalloonOverlaying.HOT_OFFSET_Y;r<l&&(l=r);var m=this._style;this._div.innerHTML='<span style="'+m+'">foo</span>',this._color=this._div.firstChild.style.backgroundColor;var u='<table cellpadding="0" cellspacing="0" border="0" align="left" valign="top" style="color:'+this._color+";width:"+l+'px;border-style:none;border-width:0px;margin:0px;padding:0px;"><tbody><tr style="border-style:none;border-width:0px; margin:0px;padding:0px;"><td name="blnLeftArrows" style="width:8px;border:0px; margin:0px; padding:0px"><table name="blnArrowLeft" cellpadding="0" width="8" cellspacing="0" border="0" style="height:100%;width:8px;border:0px; margin:0px; padding:0px;" height="100%"><tbody><TR name="blnArrowLeft" width="8" style="color:'+this._color+';height:50%;border:0px;margin:0px;padding:0px;"><td width="8" align="center" valign="top" style="border:0px; height:inherit; margin:0px; width:8px; "><div style="position:relative;top:'+this.cornerRadius+'px;left:0px;width:8px;height:9px;overflow:hidden;"><SPAN name="blnLeftArrowTop" style="position:absolute;top:-3px;left:-2px;font-family:Arial;font-size:12px">&#9668;\x3c!-- left arrow --\x3e</span></div></TD></tr>';u+='<TR name="blnArrowLeft" width="8" style="height:50%;border:0px; margin:0px; padding:0px;"><td width="8" align="right" valign="bottom" style="border:0px; height:inherit; margin:0px; width:8px; "><div style="position:relative;height:100%;width:inherit;top:0px;left:0px;"><div style="position:absolute;bottom:'+this.cornerRadius+'px;left:0px;width:8px;height:9px;overflow:hidden;">\n<SPAN name="blnLeftArrowBottom" style="position:absolute;top:-3px;left:-2px;color:'+this._color+';font-family:Arial;font-size:12px">&#9668;\x3c!-- left arrow --\x3e</span></div></div></TD></tr></tbody></TABLE></td>',u+='<td name="blnTd1" align="left" valign="top" style="width:100%;margin-style:none;margin-width:0px;border:0px;padding:0px;"><table cellpadding="0" cellspacing="0" border="0" align="left" valign="top" width="100%" style="width:100%;margin:0px;border:0px;padding:0px"><tbody><tr align="left" valign="top" style="margin:0px;border:0px;padding:0px"><TD name="blnTopArrows" style="margin:0px;border:0px;padding:0px"><table cellpadding="0" cellspacing="0" border="0" height="8" width="100%" style="height:8px;border-style:none; border-width:0px;; margin:0px; padding:0px"><tbody style="border-style:none; border-width:0px;height:8px;margin:0px;padding:0px"><tr align="left" valign="top" style="border-style:none; border-width:0px;margin:0px;padding:0px">\n<td  width="50%" align="left" style="border-style:none; border-width:0px;margin:0px;padding:0px">\n<div style="position:relative;top:0px;left:'+this.cornerRadius+'px;width:8px;height:8px;overflow:hidden;"><span name="blnUpArrowLeft" style="position:absolute;top:-3px;left:-2px;background-color:transparent; color:'+this._color+'; font-family:Arial; font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;">&#9650;\x3c!-- up arrow --\x3e</span></div></td><td  width="50%"  align="right" style="margin:0px;border:0px;padding:0px"><div style="position:relative;top:0px;right:'+this.cornerRadius+'px;width:8px;height:8px;overflow:hidden;"><span name="blnUpArrowRight" style="position:absolute;top:-3px;left:-2px;background-color:transparent; color:'+this._color+';font-family:Arial; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; ">&#9650;\x3c!-- up arrow --\x3e</span></div></td></TR></tbody></table></TD></TR>',u+='<tr align="left" valign="top" style="width:100%;margin:0px;border:0px;padding:0px"><td width="100%" height="100%" align="left" valign="top" style="height:auto;margin:0px;border:0px;padding:0px"  name="blnCellText"><div style="border-style:none; border-width:0px; height:100%; left:0px; position:relative; top:0px; width:100%;"><div style="background-color:transparent;width:100%;height:100%;position:absolute;left:0px;right:0px;"><div style="position:absolute;top:0px;left:0px;height:'+this.cornerRadius+"px;width:"+this.cornerRadius+'px;overflow:hidden;"><span name="blnSpanCornerLT" style="color:'+this._color+'; ;position:absolute;margin:0px;left:-2px;top:-12px;font-family:Arial; font-size:28px;">&#9679;\x3c!-- UTF-25CF: Black Circle --\x3e</span></div><div  style="position:absolute;top:0px;right:0px;height:'+this.cornerRadius+"px;width:"+this.cornerRadius+'px;overflow:hidden;"><span name="blnSpanCornerRT" style="color:'+this._color+'; position:absolute;margin:0px;left:-9px;top:-12px;font-family:Arial; font-size:28px;">&#9679;\x3c!-- UTF-25CF: Black Circle --\x3e</span></div><div style="position:absolute;bottom:0px;left:0px;height:'+this.cornerRadius+"px;width:"+this.cornerRadius+'px;overflow:hidden;"><span name="blnSpanCornerLB" style="color:'+this._color+';position:absolute;margin:0px;left:-2px;top:-18px;font-family:arial; font-size:28px;">&#9679;\x3c!-- UTF-25CF: Black Circle --\x3e</span></div><div style="position:absolute;bottom:0px;right:0px;height:'+this.cornerRadius+"px;width:"+this.cornerRadius+'px;overflow:hidden;"><span name="blnSpanCornerRB" style="color:'+this._color+'; position:absolute;margin:0px;left:-9px;top:-18px;font-family:arial; font-size:28px;">&#9679;\x3c!-- UTF-25CF: Black Circle --\x3e</span></div>',u+='<div name="blnBackground" style="position:absolute;top:0px;bottom:0px;left:0px;right:0px;"><div style="background-color:'+this._color+';"><div name="blnBackgroundEW" style="position:absolute;top:'+this.cornerRadius+"px;bottom:"+this.cornerRadius+"px;left:0px;right:0px;background-color:"+this._color+';"><div style="overflow: hidden; width:100%; height:100%;"></div></div><div name="blnBackgroundNS" style="position:absolute;top:0px;bottom:0px;left:'+this.cornerRadius+"px;right:"+this.cornerRadius+"px;background-color:"+this._color+';"><div style="overflow: hidden; width:100%; height:100%;"></div></div></div></div><div style="width:100%;position:absolute;top:0px;left:0px;border-style:none;border-width:0px;"><span name="blnSpanText" class="box-contents" style="background-color:transparent;font-family:Comic Sans MS; font-size:10pt; ">\n'+this._text+"</span></div></div></div></td></tr>",u+='<tr style="margin:0px;border:0px;padding:0px"><td  name="blnBottomArrows" style="margin:0px;border:0px;padding:0px"><table cellpadding="0" cellspacing="0" border="0" align="left" valign="top" width="100%" style="border-style:none;border-width:0px;padding:0px;margin:0px;"><tbody><tr align="left" valign="top" style="border-color:#3d24e4; border-style:solid; border-width:0px;margin:0px;padding:0px"><td width="50%" align="left" valign="top" style="border-color:#3d24e4; border-style:solid; border-width:0px;margin:0px;padding:0px"><div style="position:relative;top:0px;left:7px;width:8px;height:8px;overflow:hidden;"><span style="position:absolute;top:-4px;left:-2px;background-color:transparent;color:'+this._color+';font-family:Arial;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;">&#9660;\x3c!-- UTF-25BC: Black Down-Pointing Triangle --\x3e</span></div></td><td  width="50%" align="right" style="margin:0px;border:0px;padding:0px"><div style="position:relative;top:0px;right:7px;width:8px;height:8px;overflow:hidden;"><span  class="box-contents" style="position:absolute;top:-4px;left:-2px;background-color:transparent;color:'+this._color+';font-family:Arial;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal; ">&#9660;</span></div></td></TR></tbody></table></td></tr></tbody></table></td>',u+='<td name="blnRightArrows" width="8" style="border:0px; margin:0px; padding:0px;"><table name="blnArrowLeft" cellpadding="0" cellspacing="0" border="0" align="left" valign="top" width="8" style="width:8px;border:0px; margin:0px; padding:0px;"><tbody><TR name="blnArrowLeft" style="height:50%;width:8px;border:0px; margin:0px; padding:0px;"><td width="8" align="center" valign="top" style="border:0px; height:inherit; margin:0px; max-width:8px; width:8px;"><div style="position:relative;top:'+this.cornerRadius+'px;left:0px;width:8px;height:9px;overflow:hidden;"><SPAN style="position:relative;top:-3px;left:-2px;color:'+this._color+';font-family:Arial;font-size:12px">&#9658;\x3c!-- right pointer --\x3e</span></div></TD></TR><TR name="blnArrowLeft" width="8" style="height:50%;width:8px;border:0px; margin:0px; padding:0px;"><td width="8" align="center" valign="bottom" style="border:0px; height:inherit; margin:0px; max-width:8px; width:8px; "><div style="position:relative;height:100%;width:inherit;top:0px;left:0px;"><div style="position:absolute;bottom:'+this.cornerRadius+'px;left:0px;width:8px;height:9px;overflow:hidden;"><SPAN style="position:relative;top:-3px;left:-2px;color:'+this._color+';font-family:Arial;font-size:12px">&#9658;\x3c!-- right pointer --\x3e</span></div></div></TD></TR></tbody></TABLE></td></tr></tbody></TABLE>',u+='<div name="blnClearOverlay" style="position:absolute;top:0px;left:0px;width:100%;height:100%;cursor:pointer;"><input type="image"  style="width:100%;height:100%;opacity:0.01;filter:alpha(opacity=1)" /></div>\n',this._div.innerHTML=u,this._div.style.cssText="z-index: 102;position:absolute;top: "+h+"px;left: "+c+"px;color: "+this._color+";background-color: transparent;width: "+l+"px;margin: 0px;",this._img=this._div.getElementsByTagName("input")[0],this._div.container=this,this._img.container=this,this._img.src=Application.application.getClearImage(),this._img.onclick=com.inq.ui.BalloonOverlaying._doClick,null==this._div.parentNode?t.appendChild(this._div):this._div.parentNode!=t&&(this._div.parentNode.removeChild(this._div),t.appendChild(this._div));for(var p=this._div.getElementsByTagName("SPAN"),d=0,f=p.length;d<f;d++)"box-contents"==p[d].className&&(p[d].className=this._styleName,p[d].style.cssText=m+";background-color:transparent");this._fixSizesAndPositions(),this._div.style.left=c+"px",this._div.style.top=h+"px"},com.inq.ui.BalloonOverlaying.prototype.fixIERendering=function(t,e){var i=t.childNodes[1].clientHeight,n=t.childNodes[1].clientWidth;t.style.height=i+13+"px";for(var o=t.getElementsByTagName("DIV"),a=0,s=o.length;a<s;a++)"balloon_background1"==o[a].name?(o[a].style.height=(i-40<0?0:i-40)+"px",o[a].style.width=n+"px",null!=e&&(o[a].style.backgroundColor=e),o[a].style.bottom="",o[a].style.right=""):"balloon_background2"==o[a].name&&(o[a].style.height=i+"px",o[a].style.width=(n-40<0?0:n-40)+"px",null!=e&&(o[a].style.backgroundColor=e),o[a].style.bottom="",o[a].style.right="")},com.inq.ui.BalloonOverlaying.prototype.cornerRadius=null,com.inq.ui.BalloonOverlaying.prototype._parentContainer=null,com.inq.ui.BalloonOverlaying.prototype._styleDef=null,com.inq.ui.BalloonOverlaying.prototype._styleName=null,com.inq.ui.BalloonOverlaying.prototype._color=null,com.inq.ui.BalloonOverlaying.prototype._text=null,com.inq.ui.BalloonOverlaying.prototype._element=null,com.inq.ui.BalloonOverlaying.prototype._img=null,com.inq.ui.BalloonOverlaying.prototype._useHandCursor=null,com.inq.ui.BalloonOverlaying.prototype.useHandCursor=null,com.inq.ui.BalloonOverlaying.prototype.__class__=com.inq.ui.BalloonOverlaying,com.inq.ui.BalloonOverlaying.HOT_OFFSET_X=0,com.inq.ui.BalloonOverlaying.HOT_OFFSET_Y=0,com.inq.ui.BalloonOverlaying.CLASS_STYLE='z-index:102;font-family:"Comic Sans MS";font-size:10pt;background-color:red; color:yellow;',com.inq.ui.BalloonOverlaying.bIE6="Microsoft Internet Explorer"==window.navigator.appName&&(window.navigator.appVersion.indexOf("MSIE 6.0")>=0||window.navigator.appVersion.indexOf("MSIE 5.")>=0),y(1703),com.inq.ui.Button=function(t,e,i){if(com.inq.ui.Container.call(this,t),this._useHandCursor=!1,this._text=i||"",e)for(var n=0;n<e.length;n++)this.setUpSkin(e[n]);var o=this.BTN_MARKUP_PREFIX+this._text+"</button>";this._div.innerHTML=this.IMG_MARKUP+this.TABLE_MARKUP+o,this._skin=this._div.getElementsByTagName("img")[0],this._img=this._div.getElementsByTagName("button")[0],this._span=this._div.getElementsByTagName("td")[0],this._table=this._div.getElementsByTagName("table")[0],this._div.container=this,this._img.container=this,this._table.container=this,this._skin.container=this,this._span.container=this,this.currentState=0,this.stateLabelList=null,com.inq.utils.Capabilities.isIphone()?(t.includes("btnCloseChat")&&this._img.addEventListener("click",$bind(this,this.doClick)),this._img.ontouchend=$bind(this,this.iPhoneHandleButtonPress)):(this._img.onmouseover=$bind(this,this.doMouseOver),this._img.onmouseout=$bind(this,this.doMouseOut),this._img.onclick=$bind(this,this.doClick),this._table.onclick=$bind(this,this.doClick))},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Button,"com.inq.ui.Button"),com.inq.ui.Button.prototype.softClick=function(){var t=this._div.ownerDocument,e=t.defaultView,i=t.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,e,1,0,0,0,0,!1,!1,!1,!1,0,null),this._img.dispatchEvent(i)},com.inq.ui.Button.prototype.applyStyle=function(){var t;com.inq.ui.Container.prototype.applyStyle.call(this),this.fixButtonSize(),t="background-color:transparent;width:100%;height:100%;",null!=this.getStyle("color")&&(t+="color: "+Std.string(this.getStyle("color"))+";"),null!=this.getStyle("fontFamily")&&(t+=" font-family: "+Std.string(this.getStyle("fontFamily"))+";"),null!=this.getStyle("fontSize")&&(t+=" font-size: "+Std.string(this.getStyle("fontSize"))+"pt;"),null!=this.getStyle("textAlign")&&(t+="text-align:"+Std.string(this.getStyle("textAlign"))+";"),null!=this.getStyle("verticalAlign")?t+="vertical-align:"+Std.string(this.getStyle("verticalAlign"))+";":t+="vertical-align:middle;",this._span.style.cssText=t;var e=this._div.id,i=this._div.style;-1==e.indexOf("btnPopOut")&&-1==e.indexOf("btnMinimize")||!com.inq.flash.client.chatskins.SkinControl.getIsPersistentChat()||(i.display="none"),-1!=e.indexOf("btnPrint")&&(com.inq.utils.Capabilities.isIOSWebView()||com.inq.utils.Capabilities.isAndroidWebView())&&(i.display="none")},com.inq.ui.Button.prototype.fixButtonSize=function(){var t=this._img.getBoundingClientRect(),e=this._div.getBoundingClientRect(),i=t.height-e.height,n=t.width-e.width;i>0&&(this._img.style.height=parseInt(this._img.style.height)-i+"px"),n>0&&(this._img.style.width=parseInt(this._img.style.width)-n+"px")},com.inq.ui.Button.prototype.initAttribute=function(t,e){t="alt"==t?"title":t,com.inq.ui.Button.__super__.prototype.initAttribute.call(this,t,e)},com.inq.ui.Button.prototype.setUpSkin=function(t){this.loadImage("upSkin",t,"width:100%;height:100%")},com.inq.ui.Button.prototype.loadImage=function(t,e,i){if(null!=this._div){if(null==e||""==e)return;if(this.setStyle(t,e),this._backgroundImage=this.getNewImage(),this._backgroundImage.setAttribute("style",i),this._backgroundImage.onload=$bind(this,this.whenLoaded),this._backgroundImage.src=e,com.inq.utils.Capabilities.isIpad()||com.inq.utils.Capabilities.isIphone()){var n=this.styles.toolTip;n=n||"",this._backgroundImage.alt=n+" new image",this._backgroundImage.setAttribute("aria-hidden","true")}else com.inq.utils.Capabilities.isAndroid()||navigator.platform.toUpperCase().indexOf("MAC")>=0?this._backgroundImage.setAttribute("aria-hidden","true"):this._backgroundImage.alt="";this._backgroundImage.setAttribute("tabindex","-1")}},com.inq.ui.Button.prototype.onLoadImage=function(t){try{var e=t,i=this._div;this._loadWidth=e.width,this._loadHeight=e.height,e.style.height="100%",e.style.width="100%",null!=this.styles.height||null!=this.styles.top&&null!=this.styles.bottom||(this.styles.height=""+Std.string(this._loadHeight)),null!=this.styles.width||null!=this.styles.left&&null!=this.styles.right||(this.styles.width=""+Std.string(this._loadWidth)),null!=t.elementStyle&&(t.style.cssText=t.elementStyle),null!=i.firstChild&&"IMAGE"==i.firstChild.tagName&&i.removeChild(i.firstChild),i.insertBefore(t,i.firstChild),this.resize()}catch(t){if(!js.Boot.__instanceof(t,Error))throw t;haxe.Log.trace("ERROR: "+Std.string(t),{fileName:"Button.hx",lineNumber:195,className:"com.inq.ui.Button",methodName:"onLoadImage"})}},com.inq.ui.Button.prototype.setID=function(t){com.inq.ui.Container.prototype.setID.call(this,t),null!=this._skin&&(this._skin.id=Std.string(this._div.id)+"_skin"),null!=this._img&&(this._img.id=Std.string(this._div.id)+"_img"),null!=this._span&&(this._span.id=Std.string(this._div.id)+"_span"),null!=this._table&&(this._table.id=Std.string(this._div.id)+"_table")},com.inq.ui.Button.prototype.setHandCursor=function(t){"true"===t.toLowerCase()?this._useHandCursor=!0:this._useHandCursor=!1,this.useHandCursor=this._useHandCursor?"true":"false"},com.inq.ui.Button.prototype.setLabel=function(t){this.label=t,this._span.innerHTML=t,this._span.setAttribute("aria-hidden","true");var e=this._span.getElementsByTagName("A");if(null!=e&&e.length>0){null!=this._div.parentNode&&this._div.insertBefore(this._img,this._table);for(var i=0,n=e.length;i<n;){var o=e[i++],a=[o.href],s=[null!=o.target?o.target:"_self"];o.href="javascript:void(0);",o.target="_top",o.container=this,o.onclick=function(t,e){return function(){return com.inq.flash.client.control.FlashPeer.PushToFrameset(e[0],t[0],!0),!0}}(s,a)}}},com.inq.ui.Button.prototype.applyAttributeMap=function(){for(var t in this.attributeMap)if(this.attributeMap.hasOwnProperty(t))switch(t){case"aria-live":case"aria-hidden":this._div.setAttribute(t,this.attributeMap[t]);break;case"tooltip":this._img.setAttribute("title",this.attributeMap[t]);break;case"data-state-label-list":this.initializeStateLabelList(this.attributeMap[t]);break;default:this.getPrimaryObject().setAttribute(t,this.attributeMap[t])}},com.inq.ui.Button.prototype.setAttribute=function(t,e){switch(t){case"aria-live":case"aria-hidden":this._div.setAttribute(t,e);break;case"tooltip":this._img.setAttribute("title",e),this._table.setAttribute("title",e);break;default:this.getPrimaryObject().setAttribute(t,e)}},com.inq.ui.Button.prototype.getPrimaryObject=function(){return this._img},com.inq.ui.Button.prototype.buildStyle=function(){com.inq.ui.Container.prototype.buildStyle.call(this);var t="true"==this.getStyle("useHandCursor")?"pointer":"default";this._style+="cursor: "+t+";",this._span.style.cursor=t,this._table.style.cursor=t,this._img.style.cursor=t},com.inq.ui.Button.prototype.doMouseOut=function(){var t=this._skin.src;null!=this.upSkin&&t!=this.upSkin&&(this._skin.src=this.upSkin,this._skin.style.height=this._div.style.height,this._skin.style.width=this._div.style.width)},com.inq.ui.Button.prototype.doMouseOver=function(){var t=this._skin.src;null!=this.overSkin&&t!=this.overSkin&&(this._skin.src=this.overSkin,this._skin.style.height=this._div.style.height,this._skin.style.width=this._div.style.width)},com.inq.ui.Button.prototype.iPhoneHandleButtonPress=function(t){try{return this.hasEventListener(com.inq.events.MouseEvent.CLICK)?(t&&t.stopPropagation&&t.stopPropagation(),this.doClick(t)):t&&t.currentTarget&&"tcChat_minimize_img"===t.currentTarget.id&&com.inq.flash.client.control.MinimizeManager.isMinimized()||this.onClick(),com.inq.stage.ViewportMgr.impl&&!0===com.inq.stage.ViewportMgr.impl.zoomedScreenMsgIsVisible&&window.top.scrollTo(0,0),!1}catch(t){return console.log("[ MOB-777 ] ERROR in Button.iPhoneHandleButtonPress! "+t),!0}},com.inq.ui.Button.prototype.doClick=function(t){var e=new com.inq.events.MouseEvent(com.inq.events.MouseEvent.CLICK,t);this.dispatchEvent(e)},com.inq.ui.Button.prototype.setOnClick=function(t){this._img.onclick=t,this._table.onclick=t},com.inq.ui.Button.prototype.getHtmlLabelObject=function(){var t=null;return void 0!==this._img?t=this._img:void 0!==this._div&&(t=this._div.firstChild),t},com.inq.ui.Button.prototype.setImageFocus=function(){this._img&&this._img.focus()},com.inq.ui.Button.prototype.whenLoaded=function(){com.inq.ui.Container.prototype.whenLoaded.call(this),com.inq.flash.client.control.FlashPeer.getIsBuilder()&&window.parent.EventManager.calculateButtonContainer(this.styles.id)},com.inq.ui.Button.prototype.enable=function(){this.setVisible(!0)},com.inq.ui.Button.prototype.disable=function(){this.setVisible(!1)},com.inq.ui.Button.prototype.initializeStateLabelList=function(t){try{var e=JSON.parse(t);if(!Array.isArray(e))throw new Error("Incorrect format of data-state-label-list="+t);this.stateLabelList=e}catch(t){com.inq.flash.client.control.FlashPeer.logError(t.message+", skin URL: "+com.inq.ui.SkinLoader.getSkinURL())}},com.inq.ui.Button.prototype.getStateLabelByIndex=function(t){return this.stateLabelList?this.stateLabelList[t]:null},com.inq.ui.Button.prototype.getStateLabel=function(){return this.stateLabelList?this.stateLabelList[this.currentState]:null},com.inq.ui.Button.prototype.setState=function(t){if(this.currentState=t,this.stateLabelList){var e=this.getStateLabel();this.setAttribute("title",e),this.announceStateChanging()}},com.inq.ui.Button.prototype.setupDefaultStateLabels=function(t){if(Array.isArray(this.stateLabelList))for(var e=0;e<t.length;e++){var i=this.getStateLabelByIndex(e);"string"==typeof i&&i.trim().length||(this.stateLabelList[e]=t[e])}},com.inq.ui.Button.prototype.announceStateChanging=function(){var t=this.getStateLabel();!t||com.inq.utils.Capabilities.isSafariVersion12()||com.inq.utils.Capabilities.isChromeiOS12()||com.inq.aria.AriaMsg.addAriaMsg(t)},com.inq.ui.Button.prototype.BTN_MARKUP_PREFIX='<button type="button" draggable="false" style="border: none; position: absolute; left:0; top: 0; width: 100%; height: 100%; background-color: transparent;">',com.inq.ui.Button.prototype.IMG_MARKUP='<img aria-hidden="true" style="display: none;" alt="" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/>',com.inq.ui.Button.prototype.TABLE_MARKUP='<table role="presentation" style="position: absolute; left: 0;top: 0;height: 100%;width: 100%; margin: auto;"><tr><td><div></div></td></tr></table>',com.inq.ui.Button.prototype._table=null,com.inq.ui.Button.prototype._skin=null,com.inq.ui.Button.prototype._span=null,com.inq.ui.Button.prototype._img=null,com.inq.ui.Button.prototype._useHandCursor=null,com.inq.ui.Button.prototype.label=null,com.inq.ui.Button.prototype.useHandCursor=null,com.inq.ui.Button.prototype.overSkin=null,com.inq.ui.Button.prototype.upSkin=null,com.inq.ui.Button.prototype.__class__=com.inq.ui.Button,com.inq.ui.Canvas=function(t){com.inq.ui.Container.call(this,t)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Canvas,"com.inq.ui.Canvas"),com.inq.ui.Canvas.prototype.resize=function(){com.inq.ui.Container.prototype.resize.call(this)},com.inq.ui.Canvas.prototype.applySkinAttribute=function(){var t=this.getStyle("accesskey");null!=t&&this._div.setAttribute("accesskey",t);var e=this.getStyle("tabindex");null!=e&&this._div.setAttribute("tabindex",e),null!=this.getStyle("nativescroll")&&(this.scroller=new com.inq.ui.NativeScroller(this._div,!0))},com.inq.ui.Canvas.prototype.applyStyle=function(){com.inq.ui.Container.prototype.applyStyle.call(this),this.scroller&&this.scroller.applyOverflowStyle()},com.inq.ui.Canvas.prototype.removeAttribute=function(t){this._div&&this._div.removeAttribute(t)},com.inq.ui.Canvas.prototype.cleanUp=function(){this.scroller&&this.scroller.cleanUp()},com.inq.ui.Canvas.prototype.__class__=com.inq.ui.Canvas,y(1299),com.inq.ui.ClientBody=function(){com.inq.ui.Container.call(this,null,null,window.parent.document)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.ClientBody,"com.inq.ui.ClientBody"),com.inq.ui.ClientBody.prototype.determineExistingElement=function(t){return window.parent.document.body},com.inq.ui.ClientBody.closeAll=function(){for(var t=Reflect.fields(com.inq.ui.ClientBody._collection),e=0,i=t.length;e<i;){var n=""+t[e++],o=com.inq.ui.ClientBody._collection[n];null!=o._div.id&&0==o._div.id.indexOf("tcChat_")&&(o.removeFromBody(),com.inq.ui.ClientBody._collection[n]=null)}},com.inq.ui.ClientBody.registerElement=function(t){var e=t.getID();null==e&&(e="inq_"+Math.round(3141593*Math.random()),t.setID(e)),null!=t&&(com.inq.ui.ClientBody._collection[e]=t)},com.inq.ui.ClientBody.getElement=function(t){return com.inq.ui.ClientBody._collection[t]},com.inq.ui.ClientBody.prototype.resize=function(){},com.inq.ui.ClientBody.prototype.cleanUp=function(){com.inq.ui.ClientBody._collection=new com.inq.utils.Dictionary},com.inq.ui.ClientBody.prototype.__class__=com.inq.ui.ClientBody,com.inq.ui.ClientBody._collection=new com.inq.utils.Dictionary,y(5306),com.inq.ui.CommandParser=function(){com.inq.ui.Container.call(this)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.CommandParser,"com.inq.ui.CommandParser"),com.inq.ui.CommandParser.evaluateSymbolicReference=function(t){var e=t.split("."),i=e.shift(),n=window.parent,o=n.document,a=e.join(".");if("FlashVars"==i)return com.inq.flash.client.control.FlashVars.get(a);if("Window"==i){var s=n;try{for(a=e.shift();null!=a;){if(null==s[a])throw"Item "+a+" not found in "+t;if((s=s[a])==window)throw"Cannot access IJSF internals: "+t;a=e.shift()}}catch(t){throw"Window item not accessible: "+Std.string(t)}return""+Std.string(s)}if("InputField"==i){try{var l=com.inq.ui.Container._getElementById(a,o);if(null!=l&&null!=l.value)return l.value}catch(t){haxe.Log.trace("Window item not accessible: "+Std.string(t),{fileName:"CommandParser.hx",lineNumber:75,className:"com.inq.ui.CommandParser",methodName:"evaluateSymbolicReference"})}return""}var r=Application.application.getMxmlItem(i),c=0;if(null!=r){switch(a){case"top":c=r.getY();break;case"left":c=r.getX();break;case"right":c=r.getX()+r.getWidth();break;case"bottom":c=r.getY()+r.getHeight();break;case"width":c=r.getWidth();break;case"height":c=r.getHeight();break;case"visible":c=r.getVisible();break;default:c=0}return""+c}return"0"},com.inq.ui.CommandParser.InitializeKeywordMap=function(){return{IF:"if(",THEN:"){",ELSE:"}else{",END:"}",TRUE:"(true)",FALSE:"(false)",AND:"&&",OR:"||",EQ:"==",NE:"!=",NOT:"!"}},com.inq.ui.CommandParser.getNextToken=function(t,e){null==e&&(e=0);for(var i=HxOverrides.substr(t,e,null),n=new EReg("^([\"'])(?:(?=(\\\\?))\\2.)*?\\1","m"),o=new EReg("^([-+]?\\d+(\\.\\d+)?)","m"),a=new EReg("^\\b(IF|THEN|ELSE|END|TRUE|FALSE|AND|OR|EQ|NE|NOT)\\b","m"),s=new EReg("^\\b((\\w*)(\\.(\\w*)\\b)+)\\b","m"),l=new EReg("^(email|hide|show|hideLayer|showLayer|shrink|grow|fire|popout|close|send|call|minimize|restore|resizeChatWindow|init|play|pause)\\b","m"),r=new EReg("^\\b((resizeChatWindow)\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\))\\s*","m"),c=new EReg("^\\b((hide|show|hideLayer|showLayer|shrink|grow|fire|init|play|pause)\\s*\\(\\s*([\\w\\.]+)\\s*\\))\\s*","m"),h=new EReg("^(\\b(close|popout|send|call|minimize|email|restore)\\(\\s*\\))\\s*","m"),m=null,u="",p=i.charAt(0);-1!=" \t\r\n".indexOf(p);)++e,p=(i=HxOverrides.substr(i,1,null)).charAt(0);if(""==i)m="";else if("'"==p||'"'==p){if(!n.match(i))throw com.inq.ui.CommandParser.showErrorLocation(t,e),"invalid literal at offset "+e+" token in: "+t;e+=(m=n.matched(0)).length}else if(o.match(i))e+=(m=o.matched(0)).length;else if(a.match(i))e+=(m=a.matched(0)).length,m=com.inq.ui.CommandParser.KEYWORD_MAP[m];else if(s.match(i)){e+=(m=s.matched(0)).length;var d=com.inq.ui.CommandParser.evaluateSymbolicReference(m);m=!0===d||!1===d||"true"===d||"false"===d||o.match(""+Std.string(d))?""+Std.string(d):com.inq.utils.StringUtil.toJsonString(""+Std.string(d))}else{if(!l.match(i))throw com.inq.ui.CommandParser.showErrorLocation(t,e),"Invalid token at offset "+e+" token in: "+t;var f=l.matched(0);if(c.match(i))e+=(m=c.matched(0)).length,m="exposedCmds."+f+"("+com.inq.utils.StringUtil.toJsonString(c.matched(3))+");";else if(r.match(i))e+=(m=r.matched(0)).length,u=r.matched(3)+","+r.matched(4),m="exposedCmds."+f+"("+com.inq.utils.StringUtil.toJsonString(u)+");";else{if(!h.match(i))throw com.inq.ui.CommandParser.showErrorLocation(t,e+f.length),"Invalid parameter for function "+f+" at offset "+e+f.length+" token in: "+t;e+=(m=h.matched(0)).length,m="exposedCmds."+f+"();"}}return{token:m,remainder:HxOverrides.substr(t,e,null),offset:e}},com.inq.ui.CommandParser.showErrorLocation=function(t,e){var i="";i=new EReg("\\S","gm").replace(t," "),i=HxOverrides.substr(i,0,e)+"^",haxe.Log.trace("Error in logic string:\n"+t+"\n"+i,{fileName:"CommandParser.hx",lineNumber:231,className:"com.inq.ui.CommandParser",methodName:"showErrorLocation"})},com.inq.ui.CommandParser.executeLogic=function(t,e,i){if(null==e&&(e=!1),null==t||""==t)return!0;var n,o="",a=0;try{do{n=com.inq.ui.CommandParser.getNextToken(t,a),o+=Std.string(n.token),a=n.offset}while(""!==n.remainder);var s=function(){},l={};e?(l.hide=s,l.show=s,l.hideLayer=s,l.showLayer=s,l.grow=s,l.shrink=s,l.close=s,l.popout=s,l.send=s,l.call=s,l.fire=s,l.minimize=s,l.restore=s,l.resizeChatWindow=s,l.email=s):(l.hide=com.inq.ui.Container.hide,l.show=com.inq.ui.Container.show,l.hideLayer=com.inq.flash.client.control.XFrameWorker.hideLayer,l.showLayer=com.inq.flash.client.control.XFrameWorker.showLayer,l.grow=com.inq.flash.client.control.XFrameWorker.grow,l.shrink=com.inq.flash.client.control.XFrameWorker.shrink,l.close=com.inq.flash.client.chatskins.SkinControl.actionBtnCloseChat,l.popout=com.inq.flash.client.chatskins.SkinControl.actionBtnPopOut,l.send=com.inq.flash.client.chatskins.SkinControl.actionBtnSend,l.call=com.inq.flash.client.chatskins.SkinControl.actionBtnCall,l.fire=com.inq.flash.client.chatskins.SkinControl.fireCustomEvent,l.minimize=com.inq.flash.client.control.MinimizeManager.actionMinimize,l.restore=com.inq.flash.client.control.MinimizeManager.actionRestore,l.resizeChatWindow=Application.ResizeStage,l.email=com.inq.flash.client.chatskins.EmailMgr.actionBtnSendEmail,l.init=com.inq.ui.Container.initializeClass,l.play=com.inq.ui.Container.playVideo,l.pause=com.inq.ui.Container.closeVideo,l.stop=com.inq.ui.Container.stopVideo),window.exposedCmds=l;for(var r=o.split(/;/),c=0;c<r.length;c++)if(r[c]){var h=r[c].split(/[.[\]'"()]/);if(null!==h&&h.length>3){var m=h[3]?h[3].split(","):[];l[h[1]].apply(this,m)}}}catch(e){return haxe.Log.trace("Could not run event on component "+i.getID()+"\nfor: "+t+"\nError:"+Std.string(e)+"\nJS: "+o,{fileName:"CommandParser.js",lineNumber:387,className:"com.inq.ui.CommandParser",methodName:"executeLogic"}),!1}return!0},com.inq.ui.CommandParser.addListeners=function(){for(var t,e,i=Application.keySet();i.length>0;)e=i.pop(),null!=(t=Application.getContainer(e))&&t.addMxmlListeners()},com.inq.ui.CommandParser.prototype.__class__=com.inq.ui.CommandParser,com.inq.ui.CommandParser.WHITESPACE=" \t\r\n",com.inq.ui.CommandParser.KEYWORD_MAP=com.inq.ui.CommandParser.InitializeKeywordMap(),com.inq.ui.CountdownTimer=function(t){this._time=0,this._timerId=null,this._parent=t,this._element=document.createElement("span"),this._listeners=[],this._parent.replaceTextOntoElement(com.inq.ui.CountdownTimer.TEMPLATE_MARKER,this._element)},com.inq.ui.CountdownTimer.prototype.show=function(){this._element.style.display=""},com.inq.ui.CountdownTimer.prototype.hide=function(){this._element.style.display="none"},com.inq.ui.CountdownTimer.prototype.getVisible=function(){return 0!=this._element.offsetHeight&&0!=this._element.offsetWidth},com.inq.ui.CountdownTimer.prototype.getElement=function(){return this._element},com.inq.ui.CountdownTimer.prototype.setTime=function(t){var e=t-(new Date).getTime();this.setPeriod(e)},com.inq.ui.CountdownTimer.prototype.setPeriod=function(t){this._time=t>0?1e3*Math.round(t/1e3):0},com.inq.ui.CountdownTimer.prototype.start=function(){this._timerId=setInterval(function(){this._time-=com.inq.ui.CountdownTimer.INTERVAL,this._time<=0&&(this.stop(),this.timerEnded()),this.updateValue(this.formattedValue(this._time))}.bind(this),com.inq.ui.CountdownTimer.INTERVAL),this.updateValue(this.formattedValue(this._time),!0)},com.inq.ui.CountdownTimer.prototype.stop=function(){clearInterval(this._timerId),this._time=0},com.inq.ui.CountdownTimer.prototype.updateValue=function(t,e){(this.getVisible()||e)&&(this._element.innerHTML=t)},com.inq.ui.CountdownTimer.prototype.formattedValue=function(t){var e=(t=Math.floor(t/1e3))%60;return e<10&&(e="0"+e),Math.floor(t/60)+":"+e},com.inq.ui.CountdownTimer.prototype.addEndingListener=function(t){"function"==typeof t&&this._listeners.push(t)},com.inq.ui.CountdownTimer.prototype.removeEndingListener=function(t){if("function"==typeof t)for(var e=0;e<this._listeners.length;e++)this._listeners[e]==t&&this._listeners.splice(e,1)},com.inq.ui.CountdownTimer.prototype.timerEnded=function(){for(var t=0;t<this._listeners.length;t++)this._listeners[t]()},com.inq.ui.CountdownTimer.TEMPLATE_MARKER="{{COUNTDOWN-TIMER}}",com.inq.ui.CountdownTimer.INTERVAL=1e3,com.inq.ui.Html=function(t,e,i){t=this.defineTagName(t),this._div=com.inq.ui.Container.getElementById(e)||i.document.createElement(t),com.inq.ui.Container.call(this,e,null,i.document),com.inq.ui.ClientBody.registerElement(this)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Html,"com.inq.ui.Html"),com.inq.ui.Html.prototype.determineExistingElement=function(t){return this._div},com.inq.ui.Html.prototype.defineTagName=function(t){return t.toUpperCase().split(":")[1]||t},com.inq.ui.Html.prototype.buildStyle=function(){this._div.id==com.inq.ui.Container.SC_TITLEBAR||this._div.id==com.inq.ui.Container.SC_RESIZE?this.buildNewStyle():this.buildClientElementStyle()},com.inq.ui.Html.prototype.setVisible=function(t){try{var e=!("false"==t||null==t||0==t);this._div.style.display=e?"":"none",this.styles.visible=e?"true":"false",this._visible=e,this._visible?this.fireVisible():this.fireHidden()}catch(t){}},com.inq.ui.Html.prototype.setID=function(t){var e=0==t.indexOf("tcChat_")||0==t.indexOf("inq"),i="tcChat_"+t;e||(this._div.id=i),this.styles.id=t,com.inq.ui.ClientBody.registerElement(this)},com.inq.ui.Html.prototype.applyStyles=function(){com.inq.ui.Container.prototype.applyStyle.call(this)},com.inq.ui.Html.prototype._getText=function(){return this._div.innerHTML},com.inq.ui.Html.prototype._setText=function(t){return this._div.innerHTML=t,t},com.inq.ui.Html.prototype._setStyle=function(t){return this._style=t,this._style},com.inq.ui.Html.prototype.removeFromBody=function(){var t=this._div.parentNode;null!=t&&t.removeChild(this._div)},com.inq.ui.Html.prototype.text=null,com.inq.ui.Html.prototype.style=null,com.inq.ui.Html.prototype.__class__=com.inq.ui.Html;com.inq.ui.Literal=function(t){com.inq.ui.Container.call(this,t),this.styles={}},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Literal,"com.inq.ui.Literal "),com.inq.ui.Literal.prototype.buildStyle=function(){var t="";for(var e in this.styles)switch(e){case"id":this._div.setAttribute("id",this.styles[e]),this._id=this.styles[e];break;case"class":this._div.setAttribute("class",this.styles[e]);break;case"src":this._div.setAttribute("src",this.styles[e]);break;case"type":this._div.setAttribute("type",this.styles[e]);break;case"tabindex":this._div.setAttribute("tabindex",this.styles[e]);break;case"role":this._div.setAttribute("role",this.styles[e]);break;case"innerHTML":this._div.innerHTML=this.styles[e];break;case"innerText":this._div.innerText=this.styles[e];default:t=t+e+":"+this.styles[e]+";"}this._style=t},com.inq.ui.Literal.prototype.applyStyle=function(){this.buildStyle(),this._div.style.cssText=this._style},com.inq.ui.Literal.prototype.__class__=com.inq.ui.Literal,com.inq.ui.IFrame=function(t){com.inq.ui.Container.call(this,t),this.initStyle("id",t),this._div.innerHTML='<IFRAME width="100%" height="100%" scrolling="NO" frameborder="0"></IFRAME>',this._iframe=this._div.getElementsByTagName("IFRAME")[0],this.setScrolling("no")},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.IFrame,"com.inq.ui.IFrame"),com.inq.ui.IFrame.prototype.setScrolling=function(t){null!=this._div&&(this.scrolling=t,this._iframe.scrolling=t,this._iframe.setAttribute("scrolling",t))},com.inq.ui.IFrame.prototype.setSrc=function(t){if(null!=this._div){if(this.src=t,null==this.src||""==this.src)return;this._iframe.src=this.evaluateString(this.src)}},com.inq.ui.IFrame.prototype.setHandCursor=function(t){"true"===t.toLowerCase()?this._useHandCursor=!0:this._useHandCursor=!1,this.useHandCursor=this._useHandCursor?"true":"false"},com.inq.ui.IFrame.prototype.resize=function(){this.applyStyle()},com.inq.ui.IFrame.prototype.setLabel=function(t){this.label=t},com.inq.ui.IFrame.prototype.buildStyle=function(){com.inq.ui.Container.prototype.buildStyle.call(this),this._useHandCursor&&(this._style+="cursor: pointer;");var t=this.getStyle("accesskey");null!=t&&this._div.setAttribute("accesskey",t);var e=this.getStyle("tabindex");null!=e&&this._div.setAttribute("tabindex",e)},com.inq.ui.IFrame.prototype._iframe=null,com.inq.ui.IFrame.prototype._anchor=null,com.inq.ui.IFrame.prototype._img=null,com.inq.ui.IFrame.prototype._useHandCursor=null,com.inq.ui.IFrame.prototype.label=null,com.inq.ui.IFrame.prototype.useHandCursor=null,com.inq.ui.IFrame.prototype.__class__=com.inq.ui.IFrame,com.inq.ui.Image=function(t){com.inq.ui.Container.call(this,t),null!=this._div&&(this._div.alt="",this._div.setAttribute("aria-hidden","true"))},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Image,"com.inq.ui.Image"),com.inq.ui.Image.prototype.setSrc=function(t){if(haxe.Log.trace("Image.setSrc: "+Std.string(t),{fileName:"Image.hx",lineNumber:19,className:"com.inq.ui.Image",methodName:"setSrc"}),null!=this._div){if(this.src=t,null==this.src||""==this.src)return;this._backgroundImage=this.getNewImage(),this._backgroundImage.onload=$bind(this,this.whenLoaded),this._backgroundImage.src=this.src,this._backgroundImage.alt="",this._backgroundImage.setAttribute("aria-hidden","true"),this._backgroundImage.setAttribute("tabindex","-1")}},com.inq.ui.Image.prototype._img=null,com.inq.ui.Image.prototype.__class__=com.inq.ui.Image,com.inq.ui.Keyboard=function(){},$hxClasses.registerClass(com.inq.ui.Keyboard,"com.inq.ui.Keyboard"),com.inq.ui.Keyboard.capsLock=null,com.inq.ui.Keyboard.isAccessible=function(){return!0},com.inq.ui.Keyboard.numLock=null,com.inq.ui.Keyboard.prototype.__class__=com.inq.ui.Keyboard,com.inq.ui.Keyboard.BACKSPACE=8,com.inq.ui.Keyboard.CAPS_LOCK=20,com.inq.ui.Keyboard.CONTROL=17,com.inq.ui.Keyboard.DELETE=46,com.inq.ui.Keyboard.DOWN=40,com.inq.ui.Keyboard.END=35,com.inq.ui.Keyboard.ENTER=13,com.inq.ui.Keyboard.ESCAPE=27,com.inq.ui.Keyboard.F1=112,com.inq.ui.Keyboard.F2=113,com.inq.ui.Keyboard.F3=114,com.inq.ui.Keyboard.F4=115,com.inq.ui.Keyboard.F5=116,com.inq.ui.Keyboard.F6=117,com.inq.ui.Keyboard.F7=118,com.inq.ui.Keyboard.F8=119,com.inq.ui.Keyboard.F9=120,com.inq.ui.Keyboard.F10=121,com.inq.ui.Keyboard.F11=122,com.inq.ui.Keyboard.F12=123,com.inq.ui.Keyboard.F13=124,com.inq.ui.Keyboard.F14=125,com.inq.ui.Keyboard.F15=126,com.inq.ui.Keyboard.HOME=36,com.inq.ui.Keyboard.PAUSE=19,com.inq.ui.Keyboard.INSERT=45,com.inq.ui.Keyboard.LEFT=37,com.inq.ui.Keyboard.NUMPAD_0=96,com.inq.ui.Keyboard.NUMPAD_1=97,com.inq.ui.Keyboard.NUMPAD_2=98,com.inq.ui.Keyboard.NUMPAD_3=99,com.inq.ui.Keyboard.NUMPAD_4=100,com.inq.ui.Keyboard.NUMPAD_5=101,com.inq.ui.Keyboard.NUMPAD_6=102,com.inq.ui.Keyboard.NUMPAD_7=103,com.inq.ui.Keyboard.NUMPAD_8=104,com.inq.ui.Keyboard.NUMPAD_9=105,com.inq.ui.Keyboard.NUMPAD_ADD=107,com.inq.ui.Keyboard.NUMPAD_DECIMAL=110,com.inq.ui.Keyboard.NUMPAD_DIVIDE=111,com.inq.ui.Keyboard.NUMPAD_ENTER=108,com.inq.ui.Keyboard.NUMPAD_MULTIPLY=106,com.inq.ui.Keyboard.NUMPAD_SUBTRACT=109,com.inq.ui.Keyboard.PAGE_DOWN=34,com.inq.ui.Keyboard.PAGE_UP=33,com.inq.ui.Keyboard.RIGHT=39,com.inq.ui.Keyboard.SHIFT=16,com.inq.ui.Keyboard.SPACE=32,com.inq.ui.Keyboard.TAB=9,com.inq.ui.Keyboard.UP=38,com.inq.ui.TextInput=function(t){com.inq.ui.AbstractTextInput.call(this,t),this._div.innerHTML='<textarea style="height:100%;width:100%"></textarea>',this._text=this._div.getElementsByTagName("TEXTAREA")[0],this.setupInput(this._text),this._input&&(this._input.container=this),this._offsetTop=0,this._previousValue=""},$hxClasses.extend(com.inq.ui.AbstractTextInput,com.inq.ui.TextInput,"com.inq.ui.TextInput"),com.inq.ui.TextInput.getContainer=function(t){return t.container},com.inq.ui.TextInput.prototype.buildStyle=function(){com.inq.utils.Capabilities.isAndroid()&&this._input.setAttribute("autocomplete","off"),com.inq.ui.AbstractTextInput.prototype.buildStyle.call(this),null!=this.styles.value&&this.setText(this.evaluateString(this.styles.value)),null!=this.styles.text&&this.setText(this.evaluateString(this.styles.text));var t=this.getStyle("title");null!=t&&(this._text.title=t)},com.inq.ui.TextInput.prototype.applyAttributeMap=function(){for(var t in this.attributeMap)if(this.attributeMap.hasOwnProperty(t))switch(t){case"aria-live":case"aria-hidden":this._div.setAttribute(t,this.attributeMap[t]);break;default:this.getPrimaryObject().setAttribute(t,this.attributeMap[t])}},com.inq.ui.TextInput.prototype.getPrimaryObject=function(){return this._input},com.inq.ui.TextInput.prototype.getOffsetTop=function(){return 0!=this._offsetTop||(this._offsetTop=com.inq.flash.client.chatskins.ScrollMonitor.getOffsetTopToStage(this._input)),this._offsetTop},com.inq.ui.TextInput.prototype.applyStyle=function(){if(com.inq.ui.AbstractTextInput.prototype.applyStyle.call(this),com.inq.utils.Capabilities.isPhone()&&com.inq.utils.Capabilities.isAndroid("Android 4.0.4;")){var t=this.getStyle("left"),e=this.getStyle("top"),i=this.getStyle("bottom"),n=this.getStyle("right"),o=this.getStyle("width"),a=this.getStyle("height");this._input.style.top=null!=e?e+"px":null,this._input.style.bottom=null!=i?i+"px":null,this._input.style.right=null!=n?n+"px":null,this._input.style.left=null!=t?t+"px":null,this._input.style.width=null!=o?o+"px":null,this._input.style.height=null!=a?a+"px":null,this._input.style.position="fixed"}else com.inq.utils.Capabilities.isIphone()&&(this._input.style.minHeight=this._div.clientHeight+"px")},com.inq.ui.TextInput.prototype.setText=function(t,e){this._text.value!=t&&(this._previousValue=e||""==e?e:this._text.value,this._text.value=t)},com.inq.ui.TextInput.prototype.getText=function(){return this._text.value},com.inq.ui.TextInput.prototype.getHtmlLabelObject=function(){var t=null;return void 0!==this._input?t=this._input:void 0!==this._div&&(t=this._div.firstChild),t},com.inq.ui.TextInput.prototype.restorePreviousValue=function(){this.setText(this._previousValue)},com.inq.ui.Label=function(t){com.inq.ui.TextInput.call(this),this._div.innerHTML='<input type="text" style="height:100%;width:100%"></input>',this._input=this._div.getElementsByTagName("input")[0],this._input.disabled=!0,null!=t&&(this._input.value=t)},$hxClasses.extend(com.inq.ui.TextInput,com.inq.ui.Label,"com.inq.ui.Label"),com.inq.ui.Label.prototype.__class__=com.inq.ui.Label,com.inq.ui.LineInput=function(t){com.inq.ui.AbstractTextInput.call(this,t),this._div.innerHTML='<input type="text" style="height:100%;width:100%"></input>',this.setupInput(this._div.getElementsByTagName("input")[0])},$hxClasses.extend(com.inq.ui.AbstractTextInput,com.inq.ui.LineInput,"com.inq.ui.LineInput"),com.inq.ui.LineInput.prototype.buildStyle=function(){com.inq.ui.AbstractTextInput.prototype.buildStyle.call(this),null!=this.styles.value&&(this._div.getElementsByTagName("INPUT")[0].value=this.evaluateString(this.styles.value))},com.inq.ui.LineInput.prototype.getText=function(){return this._getInput()},com.inq.ui.Screen=function(){com.inq.ui.Container.call(this)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Screen,"com.inq.ui.Screen"),com.inq.ui.Screen.prototype.__class__=com.inq.ui.Screen,com.inq.ui.Stage=function(){if(com.inq.ui.Container.call(this),null!=com.inq.ui.Stage.stage)throw"Stage is not a singleton";com.inq.stage.ViewportMgr.init(),com.inq.ui.Stage.stage=this,com.inq.ui.Stage._dragBar=com.inq.ui.Container._getElementById("inqTitleBar",parent.document)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.Stage,"com.inq.ui.Stage"),com.inq.ui.Stage.height=null,com.inq.ui.Stage.width=null,com.inq.ui.Stage.stageLeft=null,com.inq.ui.Stage.stageTop=null,com.inq.ui.Stage.prototype.determineExistingElement=function(t){return window.frameElement},com.inq.ui.Stage.getInstance=function(){return null==com.inq.ui.Stage.stage&&(com.inq.ui.Stage.stage=new com.inq.ui.Stage),com.inq.ui.Stage.stage},com.inq.ui.Stage.getterStageHeight=function(){var t=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg.style:window.frameElement.style;return t.height.indexOf("%")>=0?null!=window.innerHeight?window.innerHeight:com.inq.ui.Stage.getOffsetHeight():Std.parseInt(t.height)},com.inq.ui.Stage.getterStageWidth=function(){var t=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg.style:window.frameElement.style;return t.width.indexOf("%")>=0?null!=window.innerWidth?window.innerWidth:com.inq.ui.Stage.getOffsetWidth():Std.parseInt(t.width)},com.inq.ui.Stage.getOffsetHeight=function(){var t=0,e=window,i=e.document;return null==e.innerHeight?0==(t=null!=i.documentElement&&0!=i.documentElement.offsetHeight?i.documentElement.offsetHeight:i.body.offsetHeight)&&(t=i.body.offsetHeight):t=e.innerHeight,t},com.inq.ui.Stage.getStageLeft=function(){return Std.parseInt(com.inq.ui.Stage.getStageElement().style.left)},com.inq.ui.Stage.getStageTop=function(){return Std.parseInt(com.inq.ui.Stage.getStageElement().style.top)},com.inq.ui.Stage.getOffsetWidth=function(){var t=0,e=window,i=e.document;return null==e.innerWidth?0==(t=null!=i.documentElement&&0!=i.documentElement.offsetWidth?i.documentElement.offsetWidth:i.body.offsetWidth)&&(t=i.body.offsetWidth):t=e.innerWidth,t},com.inq.ui.Stage.getStageElement=function(){try{if(!com.inq.ui.Stage.stage)return null;var t=com.inq.ui.Container._getElementById("tcChat_Skin",parent.document);if(null!=t&&com.inq.ui.Stage.stage._div!=t){t.style.cssText=com.inq.ui.Stage.stage._div.style.cssText;var e=Std.parseInt(com.inq.ui.Stage.stage._div.style.width),i=Std.parseInt(com.inq.ui.Stage.stage._div.style.height),n=com.inq.flash.client.control.FlashPeer.noV3FrameChat()?Application.application.stg:window.frameElement;null!=n&&(n.style.display="none"),com.inq.ui.Stage.stage._div=t,Application.MoveSizeDiv2Stage(e,i)}}catch(t){}return com.inq.ui.Stage.stage._div},com.inq.ui.Stage.prototype.setObjectFocus=function(t){this.focus=t,t.setFocus()},com.inq.ui.Stage.prototype.getVisible=function(t){return"none"!=this._div.style.display},com.inq.ui.Stage.prototype.setVisible=function(t){try{com.inq.ui.Stage.getStageElement(),com.inq.stage.ViewportMgr.visible(t),this.styles.visible=t?"true":"false",this._div.style.display=t?"":"none",Application.IsPersistent()||(com.inq.ui.Stage._dragBar.style.display=t?"":"none",Application.application.setVisibleResizeCorner(t))}catch(t){haxe.Log.trace(t,{fileName:"Stage.hx",lineNumber:58,className:"com.inq.ui.Stage",methodName:"setVisible"})}},com.inq.ui.Stage.prototype.focus=null,com.inq.ui.Stage.prototype.__class__=com.inq.ui.Stage,com.inq.ui.Stage._dragBar=null,com.inq.ui.Stage.stage=null,y(1299),com.inq.ui.StyleSheet=function(){this.styleNames={}},$hxClasses.registerClass(com.inq.ui.StyleSheet,"com.inq.ui.StyleSheet"),com.inq.ui.StyleSheet.prototype.transform=function(t){return null},com.inq.ui.StyleSheet.prototype.setStyle=function(t,e){var i="";if(js.Boot.__instanceof(e,String))i=e;else for(var n=Reflect.fields(e),o=0,a=n.length;o<a;){var s=n[o++],l=s;switch(s.toLowerCase()){case"fontfamily":l="font-family";break;case"fontsize":l="font-size";break;case"fontweight":l="font-weight";break;case"fontstyle":l="font-style";break;case"fontsizeadjust":l="font-size-adjust";break;case"fontstretch":l="font-stretch";break;case"fontvariant":l="font-variant";break;case"lineheight":l="line-height";break;case"textalign":l="text-align";break;case"textdecoration":l="text-decoration";break;case"textindent":l="text-indent";break;case"textshadow":l="text-shadow";break;case"texttransform":l="text-transform";break;default:l=s}var r=e[s];i+=l+":"+Std.string(r)+";"}this.styleNames[t]=i},com.inq.ui.StyleSheet.prototype.parseCSS=function(t){},com.inq.ui.StyleSheet.prototype.getStyle=function(t){return this.styleNames[t]},com.inq.ui.StyleSheet.prototype.clear=function(){this.styleNames={}},com.inq.ui.StyleSheet.prototype.styleNames=null,com.inq.ui.StyleSheet.prototype.__class__=com.inq.ui.StyleSheet,com.inq.ui.Text=function(t){com.inq.ui.TextInput.call(this),this._div.innerHTML='<span style="height:100%;width:100%"></span>',this._text=this._div.getElementsByTagName("SPAN")[0],this._updatable=!0,null!=t&&this.setText(t)},$hxClasses.extend(com.inq.ui.TextInput,com.inq.ui.Text,"com.inq.ui.Text"),com.inq.ui.Text.prototype.applyAttributeMap=function(){for(var t in this.attributeMap)this.attributeMap.hasOwnProperty(t)&&("role"===t?this._text.setAttribute(t,this.attributeMap[t]):this._div.setAttribute(t,this.attributeMap[t]))},com.inq.ui.Text.prototype.setText=function(t){this._updatable&&(this._text.innerHTML=t)},com.inq.ui.Text.prototype.getText=function(){return this.getStyle("text")},com.inq.ui.Text.prototype.replaceTextOntoElement=function(t,e){var i=this._text.childNodes[0].nodeValue,n=i.indexOf(t);if(-1!=n){var o=i.slice(0,n),a=i.slice(n+t.length);this._text.childNodes[0].nodeValue=o,this._text.appendChild(e),this._text.appendChild(document.createTextNode(a)),this._updatable=!1}},com.inq.ui.Text.prototype.applyStyle=function(){com.inq.ui.Container.prototype.applyStyle.call(this);var t=this._div.id.toLowerCase();if((navigator.userAgent.indexOf("MSIE 7")>=0||t.indexOf("failedsend")>=0||t.indexOf("successsend")>=0)&&(t.indexOf("emailtitle")>=0||t.indexOf("emaildescription")>=0||t.indexOf("failedsend")>=0||t.indexOf("successsend")>=0))try{var e=this._div.style;this.styles.bottom?e.top=-(parseInt(this.styles.bottom)+this._text.offsetHeight)+"px":e.top=parseInt(e.top)+this._div.clientHeight-this._text.offsetHeight+"px"}catch(t){haxe.Log.trace("com.inq.ui.Text::applyStyle:"+t,{fileName:"Text.js",lineNumber:50,className:"com.inq.ui.Text",methodName:"applyStyle"})}},com.inq.ui.TextArea=function(t){com.inq.ui.Container.call(this,t),this._div.innerHTML='<div id="tc_chat_box'+t+'"><div style="background-color:transparent;overflow: hidden; overflow-x: hidden; overflow-y: hidden;"></div></div>',this._ta=this._div.getElementsByTagName("DIV")[0],this._tableContainer=this._div.getElementsByTagName("DIV")[1],this._setHtmlText(""),this.setStyle("backgroundColor","#FFFFFF"),this._tableContainer.innerHTML="",this._ta.style.cssText="position:absolute; top:0px; left:0px; height:100%; width:100%; overflow:auto; overflow-x:hidden; overflow-y:auto;",this.bindListeners(),this.tableCreated=!1,this.scrollBtn=Application.application.getMxmlItem("scrollBtn"),this.nativeScroller=new com.inq.ui.NativeScroller(this._ta),this._ta.onscroll=$bind(this,this.doScroll)},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.TextArea,"com.inq.ui.TextArea"),com.inq.ui.TextArea.prototype._getStyleSheet=function(){return this._styleSheet},com.inq.ui.TextArea.prototype._setStyleSheet=function(t){return null},com.inq.ui.TextArea.prototype._setHtmlText=function(t){this._tableContainer.innerHTML=t},com.inq.ui.TextArea.prototype._addTranscriptToTable=function(t){t=this.reformatTranscriptByNewLines(t),this.tableCreated?this._ta.getElementsByTagName("table")[0].innerHTML=t:(this._setHtmlText('<table role="presentation">'+t+"</table>"),this.tableCreated=!0)},com.inq.ui.TextArea.prototype.reformatTranscriptByNewLines=function(t){return t.split("\n").join("<br/>")},com.inq.ui.TextArea.prototype._getHtmlText=function(){return null==this._tableContainer?"":this._tableContainer.innerHTML},com.inq.ui.TextArea.prototype.setID=function(t){com.inq.ui.Container.prototype.setID.call(this,t),null!=this._tableContainer&&(this._tableContainer.id=Std.string(this._div.id)+"_span")},com.inq.ui.TextArea.prototype.isScrolledToBottom=function(){return this._ta.scrollHeight-Math.ceil(this._ta.scrollTop)<=this._ta.clientHeight+10},com.inq.ui.TextArea.prototype.getMaxScrollPosition=function(){var t=this._ta.scrollWidth,e=this._ta.scrollHeight;return new com.inq.utils.Point(t,e)},com.inq.ui.TextArea.prototype.scrollToPosition=function(t){this._ta.scrollTop=t.y},com.inq.ui.TextArea.prototype.scrollToBottom=function(){var t=this.getMaxScrollPosition().y;this.scrollToPosition(new com.inq.utils.Point(0,t))},com.inq.ui.TextArea.prototype.scrollToTop=function(){this.scrollToPosition(new com.inq.utils.Point(0,0))},com.inq.ui.TextArea.prototype.buildStyle=function(){com.inq.ui.Container.prototype.buildStyle.call(this);var t=this.getStyle("tabindex");null!=t&&this._div.setAttribute("tabindex",t)},com.inq.ui.TextArea.prototype.applyStyle=function(t){com.inq.ui.Container.prototype.applyStyle.call(this);var e=this.styles.alt;e=e||"",null!=this._backgroundImage&&(this._backgroundImage.alt=e)},com.inq.ui.TextArea.prototype.bindListeners=function(){com.inq.utils.Capabilities.isIphone()?com.inq.utils.Capabilities.BindListener(this._ta,"touchend",this.commonClickHandler):com.inq.utils.Capabilities.BindListener(this._ta,"click",this.commonClickHandler)},com.inq.ui.TextArea.prototype.cleanUp=function(){com.inq.utils.Capabilities.isIphone()?com.inq.utils.Capabilities.UnbindListener(this._ta,"touchend",this.commonClickHandler):com.inq.utils.Capabilities.UnbindListener(this._ta,"click",this.commonClickHandler),this.nativeScroller.cleanUp()},com.inq.ui.TextArea.prototype.commonClickHandler=function(t){var e=t&&t.target;e&&e.hasAttribute(com.inq.flash.client.chatskins.SkinControl.DATA_SURVEY_URL)&&Application.launchPostChatSurvey(t)},com.inq.ui.TextArea.prototype.resize=function(){com.inq.ui.Container.prototype.resize.call(this),this.scrollBtn&&0===this._ta.scrollTop&&this.scrollBtn.setVisible(!1)},com.inq.ui.TextArea.prototype.doScroll=function(t){var e=new com.inq.events.Event(com.inq.events.Event.SCROLL,t);this.dispatchEvent(e)},com.inq.ui.TextArea.prototype.htmlText=null,com.inq.ui.TextArea.prototype.styleSheet=null,com.inq.ui.TextArea.prototype._ta=null,com.inq.ui.TextArea.prototype._tableContainer=null,com.inq.ui.TextArea.prototype._textarea=null,com.inq.ui.TextArea.prototype._styleSheet=null,com.inq.ui.TextField=function(){},$hxClasses.registerClass(com.inq.ui.TextField,"com.inq.ui.TextField"),com.inq.ui.TextField.prototype.__class__=com.inq.ui.TextField,com.inq.ui.FileInput=function(t){com.inq.ui.Container.call(this,t),this._div.innerHTML="<input id='uploadInput' name='file' type='file' style=\"position:absolute;left:-9999px;\"/>",this.input=this._div.getElementsByTagName("input")[0]},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.FileInput,"com.inq.ui.FileInput"),com.inq.ui.FileInput.prototype.buildStyle=function(){com.inq.ui.Container.prototype.buildStyle.call(this)},com.inq.ui.FileInput.prototype.applyStyle=function(){com.inq.ui.Container.prototype.applyStyle.call(this);var t=this._htmlLabel;t&&(t.style.position="",t.style.left="",t.style.display="inline-block",t.style.width="100%",t.style.height="100%")},com.inq.ui.FileInput.prototype.input=null,com.inq.ui.VideoTag=function(t){com.inq.ui.Container.call(this,t),com.inq.utils.Util.getConfig("isVidyo",!0)||(this._div.innerHTML="<video id='videoInOut' autoplay width='100%' height='100%' style='position:absolute;' poster='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'></video>")},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.VideoTag,"com.inq.ui.VideoTag"),com.inq.ui.VideoTag.prototype.buildStyle=function(){com.inq.ui.Container.prototype.buildStyle.call(this)},com.inq.ui.VideoTag.prototype.applyStyle=function(){com.inq.ui.Container.prototype.applyStyle.call(this)},y(1299),com.inq.ui.XFrame=function(t){com.inq.ui.IFrame.call(this,t),this.initStyle("id",t),this.__src=null,this.__oldSource=null,this.__initOnLoad=!1,com.inq.utils.Capabilities.isPhone()||(com.inq.utils.Capabilities.isIpad()||com.inq.utils.Capabilities.isIOSWebView())&&this.initFocusOnTouch(),this.initFocusHandler()},$hxClasses.extend(com.inq.ui.IFrame,com.inq.ui.XFrame,"com.inq.ui.XFrame"),com.inq.ui.XFrame.prototype.readPersistedURL=function(t){return com.inq.flash.client.control.PersistenceManager.GetValue(com.inq.ui.XFrame.PERSISTENT_URL_COOKIE_PREFIX+this.getID(),t)},com.inq.ui.XFrame.prototype.cloneXFrameData=function(){for(var t={},e=Reflect.fields(this.__src),i=0,n=e.length;i<n;){var o=e[i++];"cacheId"!=o&&(t[o]=this.__src[o])}return t},com.inq.ui.XFrame.prototype.persistURL=function(){com.inq.flash.client.control.PersistenceManager.SetValue(com.inq.ui.XFrame.PERSISTENT_URL_COOKIE_PREFIX+this.getID(),this.cloneXFrameData())},com.inq.ui.XFrame.prototype.loadContent=function(){com.inq.ui.IFrame.prototype.loadContent.call(this),this.setInnerHTML(this.__src)},com.inq.ui.XFrame.prototype.setInitOnLoad=function(t){null!=this._div&&"true"==t&&(null==this.__src?this.__initOnLoad=!0:this.setInnerHTML(this.__src,null,!0))},com.inq.ui.XFrame.prototype.getInitOnLoad=function(){return this.__initOnLoad},com.inq.ui.XFrame.prototype.updateSrc=function(t,e){com.inq.ui.IFrame.prototype.updateSrc.call(this,t,e),null!=this.__src&&(t&&(this.__src.params.businessUnitID=t),this.__src.initiator=e)},com.inq.ui.XFrame.prototype.setSrcWithBusinessUnitID=function(t,e){null!=this._div&&(this.__src=t,this.__initOnLoad&&(this.__initOnLoad=!1,this.setInnerHTML(this.__src,e,!0)))},com.inq.ui.XFrame.prototype.setSrc=function(t){var e=com.inq.flash.client.control.FlashPeer.parseXFrameUrl(t);return null==this.__src&&(e=this.readPersistedURL(e)),this.setSrcWithBusinessUnitID(e)},com.inq.ui.XFrame.prototype.getIJSF=function(){var t=""==window.location.port?"":":"+window.location.port;return window.location.protocol+"//"+(window.location.host+t+window.location.pathname)},com.inq.ui.XFrame.prototype.equal=function(t,e){if(null==t)return null==e;var i=Reflect.fields(t);if(i.length!=Reflect.fields(e).length)return!1;for(var n=0,o=i.length;n<o;){var a=n++;if(t[i[a]]==e[i[a]])return!1}return!0},com.inq.ui.XFrame.prototype.setInnerHTML=function(t,e,i){if(null==this.__oldSource||this.__oldSource.url!=t.url||!this.equal(this.__oldSource.params,this.__oldSource.params)){this.__oldSource=t;var n=this.evaluateString(t.url);this._iframe=com.inq.flash.client.control.FlashPeer.createXFrame(this._div,n,e,this.scrolling,t.params,t.initiator,{type:"chat",id:this.getID()},i)}},com.inq.ui.XFrame.prototype.sendCustomEventToXForms=function(t,e){return!!(this._iframe&&this._iframe.contentWindow&&this._iframe.contentWindow.TCXForm)&&this._iframe.contentWindow.TCXForm.sendCustomEvent(t,e)},com.inq.ui.XFrame.prototype.initFocusOnTouch=function(){this.touchStart=$bind(this,this.setFocusOnTouch),com.inq.utils.Capabilities.BindListener(this._div,"touchstart",this.touchStart)},com.inq.ui.XFrame.prototype.setFocusOnTouch=function(t){"INPUT"==t.target.nodeName.toUpperCase()&&(t.target.onfocus||(t.target.blur(),t.target.onfocus=com.inq.flash.client.chatskins.ChatTextFocusMonitor.onFocus,t.target.onblur=com.inq.flash.client.chatskins.ChatTextFocusMonitor.onBlur))},com.inq.ui.XFrame.prototype.resetScrolling=function(){-1!=this.containerOrigTopPos&&(this._div.style.top=this.containerOrigTopPos+"px",this._div.style.height=this.originalHeight+"px",this.containerHeight=0,this.originalHeight=this._div.clientHeight)},com.inq.ui.XFrame.prototype.initTouchScrolling=function(){this.touchStart=$bind(this,this.initTouchStart),com.inq.utils.Capabilities.BindListener(this._div,"touchstart",this.touchStart),this.touchMove=$bind(this,this.initTouchMove),com.inq.utils.Capabilities.BindListener(this._div,"touchmove",this.touchMove),this.touchEnd=$bind(this,this.initTouchEnd),com.inq.utils.Capabilities.BindListener(this._div,"touchend",this.touchEnd)},com.inq.ui.XFrame.prototype.initFocusHandler=function(){this.focusBindedHandler=$bind(this,this.focusHandler),com.inq.utils.Capabilities.BindListener(window,"focus",this.focusBindedHandler)},com.inq.ui.XFrame.prototype.focusHandler=function(){var t=com.inq.flash.client.control.PersistenceManager.GetValue(LAST_FOCUSED),e=(new Date).getTime(),i=com.inq.flash.client.chatskins.SkinControl.getInitialTimeout()*com.inq.flash.client.chatskins.SkinControl.SEC;t&&t+i<e&&!com.inq.flash.client.control.PersistenceManager.GetValue(CHAT_ENGAGED)?(haxe.Log.trace("Closing outdated chat because timeout has expired, last focused: "+new Date(t),{fileName:"XFrame.js",lineNumber:302,className:"XFrame",methodName:"focusHandler"}),com.inq.flash.client.chatskins.SkinControl.closeChat()):com.inq.flash.client.control.PersistenceManager.SetValue(LAST_FOCUSED,e,!0,!0)},com.inq.ui.XFrame.prototype.initTouchStart=function(t){var e,i,n;if(this.touchStartPos=(t.touches?t.touches[0]:t).screenY,this.touchLastPos=this.touchStartPos,this.containerTopPos=parseInt(this._div.style.top),n=this._div.clientHeight,0==this.containerHeight||n<this.originalHeight){this.originalHeight=n,this.containerHeight=this.originalHeight,this.containerOrigTopPos=parseInt(this._div.style.top),i=(e=this._div.children).length;for(var o=0;o<i;o++)if(e[o].scrollHeight>this.containerHeight){var a=window.getComputedStyle(e[o].firstElementChild);this.containerHeight=e[o].scrollHeight,a&&(this.containerHeight=this.containerHeight-parseInt(a.marginTop)-parseInt(a.marginBottom))}(this.hasSpecificElements(this._div,"INPUT")||this.hasSpecificElements(this._div,"SELECT")||this.hasSpecificElements(this._div,"TEXTAREA"))&&(this._div.style.height=this.containerHeight+"px")}else this.containerHeight>n&&(this.originalHeight=n,this._div.style.height=this.containerHeight+"px");com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari.forceFocus(t)},com.inq.ui.XFrame.prototype.initTouchMove=function(t){var e=t.touches?t.touches[0]:t;return this.touchLastPos=e.screenY,t.preventDefault(),!1},com.inq.ui.XFrame.prototype.initTouchEnd=function(t){var e,i=Application.GetArea();Math.abs(this.touchLastPos-this.touchStartPos)>50&&(i&&this.containerTopPos+this.containerHeight>i.h||this.containerTopPos<this.containerOrigTopPos&&this.touchLastPos>this.touchStartPos)&&(this.containerTopPos=this.containerTopPos+(this.touchLastPos-this.touchStartPos),this.containerTopPos=this.containerTopPos>this.containerOrigTopPos?this.containerOrigTopPos:this.containerTopPos,e=this.containerHeight-(i.h-this.containerOrigTopPos),this.containerTopPos=this.containerOrigTopPos-this.containerTopPos>e?this.containerOrigTopPos-e:this.containerTopPos,this._div.style.top=this.containerTopPos+"px")},com.inq.ui.XFrame.prototype.cleanUp=function(){com.inq.utils.Capabilities.UnbindListener(this._div,"touchstart",this.touchStart),com.inq.utils.Capabilities.UnbindListener(this._div,"touchmove",this.touchMove),com.inq.utils.Capabilities.UnbindListener(this._div,"touchend",this.touchEnd),com.inq.utils.Capabilities.UnbindListener(window,"focus",this.focusBindedHandler)},com.inq.ui.XFrame.prototype.hasSpecificElements=function(t,e){for(var i=t.getElementsByTagName(e),n=0;n<i.length;n++)if((i[n].offsetWidth||i[n].offsetHeight||i[n].getClientRects().length)&&("INPUT"==e&&"text"==i[n].type.toLowerCase()||"INPUT"!=e))return!0;return!1},com.inq.ui.XFrame.prototype.initOnLoad=null,com.inq.ui.XFrame.prototype.__initOnLoad=null,com.inq.ui.XFrame.prototype.__oldSource=null,com.inq.ui.XFrame.prototype.__src=null,com.inq.ui.XFrame.prototype.__class__=com.inq.ui.XFrame,com.inq.ui.XFrame.PERSISTENT_URL_COOKIE_PREFIX="CX_",com.inq.ui.XFrame.prototype.touchStartPos=0,com.inq.ui.XFrame.prototype.touchLastPos=0,com.inq.ui.XFrame.prototype.containerTopPos=0,com.inq.ui.XFrame.prototype.containerOrigTopPos=-1,com.inq.ui.XFrame.prototype.containerHeight=0,com.inq.ui.XFrame.prototype.originalHeight=0,com.inq.ui.Placeholder=function(t,e){this._element=t,this._value="",com.inq.utils.Capabilities.isWindowsPhone()||!com.inq.utils.Util.isIE&&"placeholder"in this._element?this._customPlaceholder=null:this._customPlaceholder=new com.inq.ui.CustomPlaceholder(this),this.setValue(e)},$hxClasses.extend(com.inq.ui.Placeholder,com.inq.ui.Placeholder,"com.inq.ui.Placeholder"),com.inq.ui.Placeholder.prototype.toggle=function(){this._customPlaceholder&&this._customPlaceholder.toggle()},com.inq.ui.Placeholder.prototype.getValue=function(){return this._customPlaceholder?this._customPlaceholder.getValue():this._element.placeholder},com.inq.ui.Placeholder.prototype.setValue=function(t){this._customPlaceholder?this._customPlaceholder.setValue(t):this._element.placeholder=t},com.inq.ui.Placeholder.prototype.clear=function(){this.setValue("")},y(5306),com.inq.ui.CustomerNameInputField=function(t){this._initialized=!1,this._closed=!1,this._autofocus=!1,this._disableEventListener=!1,this._messageId=t,this._container=Application.application.getMxmlItem(this.CONTAINER_ID);var e=this._container?this._container.customerNameInput:null;if(e){if(!e._closed)return e}else this._input=Application.application.getMxmlItem(this.INPUT_FIELD_ID),this._sendButton=Application.application.getMxmlItem(this.SEND_BUTTON_ID),this.init()},com.inq.ui.CustomerNameInputField.prototype.init=function(){if(!com.inq.flash.client.control.FlashVars.isCustomerNameUpdated()&&this._container&&this._input&&this._sendButton){if(this._container.customerNameInput=this,this.submit=this.submit.bind(this),this._sendButton.addEventListener(com.inq.events.MouseEvent.CLICK,this.submit),this.submitOnEnter=this.submitOnEnter.bind(this),this._input.addEventListener(com.inq.events.KeyboardEvent.KEY_UP,this.submitOnEnter),this._autofocus="true"==this._input.getStyle("autofocus"),this._autofocus&&(this.onBlur=this.onBlur.bind(this),this._input.addEventListener(com.inq.events.FocusEvent.FOCUS_OUT,this.onBlur)),this._input._input){var t=com.inq.flash.client.chatskins.ChatTextFocusMonitor;this._input._input.onfocus=t.onFocus,this._input._input.onblur=t.onBlur}this._initialized=!0}},com.inq.ui.CustomerNameInputField.prototype.show=function(){if(this._initialized&&!this._closed){this._container.getVisible()||this._container.setVisible(!0);var t=Application.application.getPanelWindow(),e=com.inq.ui.Container._getElementById(this._messageId,t.document);e&&this._container._div.parentNode!=e&&e.appendChild(this._container._div)}},com.inq.ui.CustomerNameInputField.prototype.setUpFocus=function(){this._autofocus&&!this._shown_first_time&&(com.inq.utils.Capabilities.isMobile()?(this.setUpAriaMessages(),this._sendButton._img.focus(),com.inq.flash.client.chatskins.SkinControl.initialFocusClaimedBy=this._sendButton._img):(this._input.setFocus(),com.inq.flash.client.chatskins.SkinControl.initialFocusClaimedBy=this._input)),this._shown_first_time=!0},com.inq.ui.CustomerNameInputField.prototype.setUpAriaMessages=function(){com.inq.aria.AriaMsg.addAriaMsg("Double tap to enter your name.");var t=Application.application.getPanelWindow(),e=com.inq.ui.Container._getElementById(this._messageId,t.document);try{com.inq.utils.Capabilities.isIphone()&&(this._sendButton._img.title=e.parentNode.children[0].innerText+e.parentNode.children[1].innerText+". Double tap to enter your name. "+this._sendButton._img.title)}catch(t){}},com.inq.ui.CustomerNameInputField.prototype.hide=function(){this._initialized&&!this._closed&&this._container.getVisible()&&(this._container.setVisible(!1),this._container._div.parentNode.removeChild(this._container._div))},com.inq.ui.CustomerNameInputField.prototype.submitOnEnter=function(t){return t&&t.keyCode==com.inq.ui.Keyboard.ENTER&&this.submit(),!0},com.inq.ui.CustomerNameInputField.prototype.submit=function(){var t=this._input.getText();if(""!=t){com.inq.flash.client.control.FlashVars.setCustomerName(t,!0),Application.application.applicationController.updateUsername();var e=com.inq.flash.client.chatskins.SkinControl.getTextInputField();e&&e.setFocus(!0),this.cancel()}else this._input._input.focus()},com.inq.ui.CustomerNameInputField.prototype.cancel=function(){this.hide(),this._sendButton.removeEventListener(com.inq.events.MouseEvent.CLICK,this.submit),this._input.removeEventListener(com.inq.events.KeyboardEvent.KEY_UP,this.submitOnEnter),this._input.removeEventListener(com.inq.events.FocusEvent.FOCUS_OUT,this.onBlur),this._input._input&&(this._input._input.onfocus=null,this._input._input.onblur=null),this._closed=!0,this._container=null,this._input=null,this._sendButton=null},com.inq.ui.CustomerNameInputField.prototype.onBlur=function(){this._disableEventListener||(this._autofocus=!1)},com.inq.ui.CustomerNameInputField.prototype.disableEventListener=function(){this._disableEventListener=!0},com.inq.ui.CustomerNameInputField.prototype.enableEventListener=function(){this._disableEventListener=!1},com.inq.ui.CustomerNameInputField.isContainsInsertionMarker=function(t){return-1!=t.indexOf(com.inq.ui.CustomerNameInputField.INSERTION_MARKER)},com.inq.ui.CustomerNameInputField.removeInsertionMarker=function(t){var e=t.replace(com.inq.ui.CustomerNameInputField.INSERTION_MARKER,"");return 0!=e.length?e:"\n"},com.inq.ui.CustomerNameInputField.prototype.CONTAINER_ID="customerNameInput",com.inq.ui.CustomerNameInputField.prototype.INPUT_FIELD_ID="customerNameInputField",com.inq.ui.CustomerNameInputField.prototype.SEND_BUTTON_ID="customerNameSendButton",com.inq.ui.CustomerNameInputField.INSERTION_MARKER="{{CUSTOMER_NAME_INPUT}}",com.inq.ui.CustomPlaceholder=function(t){this._parent=t,this._element=t._element,this._value="",this._placeholder=null,this.initialize()},$hxClasses.extend(com.inq.ui.CustomPlaceholder,com.inq.ui.CustomPlaceholder,"com.inq.ui.CustomPlaceholder"),com.inq.ui.CustomPlaceholder.prototype.show=function(){this._placeholder.style.display="block"},com.inq.ui.CustomPlaceholder.prototype.hide=function(){this._placeholder.style.display="none"},com.inq.ui.CustomPlaceholder.prototype.toggle=function(){""==this._element.value?this.show():this.hide()},com.inq.ui.CustomPlaceholder.prototype.getValue=function(){return this._value},com.inq.ui.CustomPlaceholder.prototype.setValue=function(t){this._value=t,this._placeholder.innerHTML=t},com.inq.ui.CustomPlaceholder.prototype.initialize=function(){this._placeholder=document.createElement("span"),com.inq.flash.client.control.FlashPeer.getIsBuilder()?haxe.Timer.delay(this.applyStyles.bind(this),500):this.applyStyles(),this._element.parentNode.insertBefore(this._placeholder,this._element),this.setupListeners(),this.toggle()},com.inq.ui.CustomPlaceholder.prototype.applyStyles=function(){this._placeholder.style.position="absolute",this._placeholder.style.color="#aaa",this._placeholder.style.fontSize=window.getComputedStyle&&window.getComputedStyle(this._element).fontSize||this._element.currentStyle&&this._element.currentStyle.fontSize,this._placeholder.style.fontFamily=window.getComputedStyle&&window.getComputedStyle(this._element).fontFamily||this._element.currentStyle&&this._element.currentStyle.fontFamily},com.inq.ui.CustomPlaceholder.prototype.setupListeners=function(){com.inq.utils.Capabilities.BindListener(this._element,"input",$bind(this,this.toggle));var t=com.inq.utils.Util.getIEMajorVer(!0);0<t&&t<=8?(com.inq.utils.Capabilities.BindListener(this._element,"propertychange",$bind(this,this.toggle)),com.inq.utils.Capabilities.BindListener(this._element,"keyup",$bind(this,this.toggle)),com.inq.utils.Capabilities.BindListener(this._element,"paste",$bind(this,this._onCut)),com.inq.utils.Capabilities.BindListener(this._element,"cut",$bind(this,this._onCut))):9==t&&(com.inq.utils.Capabilities.BindListener(this._element,"keyup",$bind(this,this._onKeyup)),com.inq.utils.Capabilities.BindListener(this._element,"cut",$bind(this,this._onCut)))},com.inq.ui.CustomPlaceholder.prototype._onKeyup=function(t){t||(t=Application.application.getPanelWindow().event),t.keyCode!=com.inq.ui.Keyboard.BACKSPACE&&t.keyCode!=com.inq.ui.Keyboard.DELETE||this.toggle()},com.inq.ui.CustomPlaceholder.prototype._onCut=function(t){var e=this;setTimeout((function(){e.toggle()}),0)},com.inq.ui.VideoPlayer=function(t){com.inq.ui.Container.call(this,t),this.pInst=null,this.closeEl=null},$hxClasses.extend(com.inq.ui.Container,com.inq.ui.VideoPlayer,"com.inq.ui.VideoPlayer"),com.inq.ui.VideoPlayer.prototype.init=function(){this.pInst=com.inq.flash.client.chatskins.VideoPlayerBase.init(this.getStyle("type")),com.inq.flash.client.chatskins.VideoPlayerBase.loadExternalScript(this.getStyle("src"),this)},com.inq.ui.VideoPlayer.prototype.applyStyle=function(){com.inq.ui.Container.prototype.applyStyle.call(this),null===this.pInst&&this.init()},com.inq.ui.VideoPlayer.prototype.close=function(){this.pInst.close()},com.inq.ui.VideoPlayer.prototype.loadedScript=function(){this.pInst.setup(this)},com.inq.ui.VideoPlayer.prototype.play=function(){var t=null,e=this.pInst;com.inq.utils.Capabilities.isMobile()&&Application.application.getTextInput("txtInput").blur(),e.play(),this.closeEl||(t=this._div.parentElement.querySelectorAll('div[id^="'+(this.pInst.isDivC()?"tcChat_":"")+'btnCloseVideo"]'))&&t.length>0&&(this.closeEl=t[0],t[0].addEventListener("click",(function(){e.abandon()})))},com.inq.ui.VideoPlayer.prototype.pause=function(){this.pInst.pause()},com.inq.ui.VideoPlayer.prototype.setupArgs=function(t){this.pInst.clear(),this.pInst.setup(this,t)},com.inq.ui.VideoPlayer.prototype.cleanUp=function(){this.pInst.clear()},com.inq.ui.NativeScroller=function(t,e){this._container=t,this._useScrollForChildren=!0===e,this._scrollableElements=[],this._mutationObserver=new MutationObserver(function(){this.updateScrollableElementsList()}.bind(this)),this.touchStartHandler=this.touchStartHandler.bind(this),this.touchMoveHandler=this.touchMoveHandler.bind(this),this.initNativeScrolling()},com.inq.ui.NativeScroller.prototype.applyOverflowStyle=function(){this._container.style.overflow="scroll",this._container.style.webkitOverflowScrolling="touch"},com.inq.ui.NativeScroller.prototype.initNativeScrolling=function(){com.inq.utils.Capabilities.BindListener(this._container,"touchstart",this.touchStartHandler),com.inq.utils.Capabilities.BindListener(this._container,"touchmove",this.touchMoveHandler),this._mutationObserver.observe(this._container,{childList:!0,attributes:!0,subtree:!0})},com.inq.ui.NativeScroller.prototype.updateScrollableElementsList=function(){this._useScrollForChildren?this._scrollableElements=this._getScrollableChildren():this._scrollableElements=[this._container]},com.inq.ui.NativeScroller.prototype.touchStartHandler=function(t){this.startLocation=this.getTouchLocation(t),com.inq.flash.client.chatskins.ChatTextFocusMonitorImplIphoneSafari.forceFocus(t)},com.inq.ui.NativeScroller.prototype.touchMoveHandler=function(t){for(var e=0;e<this._scrollableElements.length;e++){var i=this._scrollableElements[e];i.contains(t.target)&&("vertical"===this._getSwipeDirection(t)?this._onVerticalSwipe(i,t):this._onHorizontalSwipe(i,t))}},com.inq.ui.NativeScroller.prototype._onHorizontalSwipe=function(t,e){var i=this.getTouchLocation(e);this.startLocation.x>i.x?t.scrollLeft+t.clientWidth<t.scrollWidth&&e.stopPropagation():t.scrollLeft>0&&e.stopPropagation()},com.inq.ui.NativeScroller.prototype._onVerticalSwipe=function(t,e){var i=this.getTouchLocation(e);this.startLocation.y>i.y?t.scrollTop+t.clientHeight<t.scrollHeight&&e.stopPropagation():t.scrollTop>0&&e.stopPropagation()},com.inq.ui.NativeScroller.prototype._getSwipeDirection=function(t){var e=this.getTouchLocation(t),i=this.startLocation.x-e.x,n=this.startLocation.y-e.y;return Math.abs(n)>Math.abs(i)?"vertical":"horizontal"},com.inq.ui.NativeScroller.prototype._getScrollableChildren=function(){for(var t=this._container.getElementsByTagName("*"),e=[],i=0;i<t.length;i++){var n=t[i];this._isScrollable(n)&&e.push(n)}return e},com.inq.ui.NativeScroller.prototype._isScrollable=function(t){var e=i(!0);return i(!1)||e;function i(e){var i=e?"scrollTop":"scrollLeft",n=0!==t[i];if(!n){if(e){if(t.scrollHeight===t.clientHeight)return!1}else if(t.scrollWidth===t.clientWidth)return!1;t[i]=1,n=1===t[i],t[i]=0}return n}},com.inq.ui.NativeScroller.prototype.cleanUp=function(){com.inq.utils.Capabilities.UnbindListener(this._container,"touchstart",this.touchStartHandler),com.inq.utils.Capabilities.UnbindListener(this._container,"touchmove",this.touchMoveHandler),this._mutationObserver.disconnect()},com.inq.ui.NativeScroller.prototype.getTouchLocation=function(t){var e=t.touches?t.touches[0]:t;return new com.inq.utils.Point(e.screenX,e.screenY)},com.inq.utils.JsonML=function(){},$hxClasses["com.inq.utils.JsonML"]=com.inq.utils.JsonML,com.inq.utils.JsonML.__name__=["com","inq","utils","JsonML"],com.inq.utils.JsonML.jsonToXml=function(t){var e=Xml.createDocument();return com.inq.utils.JsonML._jsonToXmlNode(t,e),e},com.inq.utils.JsonML._jsonToXmlNode=function(t,e){var i;if(Array.isArray(t)&&0!=t.length){i=t[0];var n=Xml.createElement(i);if(e.addChild(n),t.length>1&&"object"==typeof t[1]&&!Array.isArray(t[1])){var o=t[1];for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];n.set(a,s.toString())}}for(var l=1;l<t.length;l++){var r=t[l];if("object"!=typeof r||Array.isArray(r))if("string"==typeof r){var c=Xml.createPCData(r);n.addChild(c)}else com.inq.utils.JsonML._jsonToXmlNode(r,n)}}else haxe.Log.trace("Error: Could not run _jsonToXmlNode. Object is Not an JsonML array: "+t,{fileName:"JsonML.js",lineNumber:99,className:"com.inq.utils.JsonML",methodName:"_jsonToXmlNode"})},com.inq.utils.JsonML.prototype.__class__=com.inq.utils.JsonML,haxe.Timer=function(t){var e=this;this.id=window.setInterval((function(){e.run()}),t)},$hxClasses["haxe.Timer"]=haxe.Timer,haxe.Timer.__name__=["haxe","Timer"],haxe.Timer.delay=function(t,e){var i=new haxe.Timer(e);return i.run=function(){i.stop(),t()},i},haxe.Timer.measure=function(t,e){var i=haxe.Timer.stamp(),n=t();return haxe.Log.trace(haxe.Timer.stamp()-i+"s",e),n},haxe.Timer.stamp=function(){return(new Date).getTime()/1e3},haxe.Timer.prototype.run=function(){},haxe.Timer.prototype.stop=function(){null!=this.id&&(window.clearInterval(this.id),this.id=null)},haxe.Timer.prototype.id=null,haxe.Timer.prototype.__class__=haxe.Timer,function(){for(var t in com.inq.utils.Timer=function(t){haxe.Timer.call(this,t)},$hxClasses["com.inq.utils.Timer"]=com.inq.utils.Timer,com.inq.utils.Timer.__name__=["com","inq","utils","Timer"],com.inq.utils.Timer.__super__=haxe.Timer,haxe.Timer.prototype)com.inq.utils.Timer.prototype[t]=haxe.Timer.prototype[t];com.inq.utils.Timer.delay=function(t,e){var i=new com.inq.utils.Timer(e);return i.run=function(){i.stop(),t()},i},com.inq.utils.Timer.prototype.__class__=com.inq.utils.Timer}(),haxe.Resource=function(){},$hxClasses["haxe.Resource"]=haxe.Resource,haxe.Resource.__name__=["haxe","Resource"],haxe.Resource.content=[],haxe.Resource.listNames=function(){for(var t=[],e=0,i=haxe.Resource.content;e<i.length;){var n=i[e];++e,t.push(n.name)}return t},haxe.Resource.getString=function(t){for(var e=0,i=haxe.Resource.content;e<i.length;){var n=i[e];if(++e,n.name==t)return null!=n.str?n.str:haxe.Unserializer.run(n.data).toString()}return null},haxe.Resource.getBytes=function(t){for(var e=0,i=haxe.Resource.content;e<i.length;){var n=i[e];if(++e,n.name==t)return null!=n.str?haxe.io.Bytes.ofString(n.str):haxe.Unserializer.run(n.data)}return null},haxe.Resource.prototype.__class__=haxe.Resource,y(1703),haxe.Stack=function(){},$hxClasses["haxe.Stack"]=haxe.Stack,haxe.Stack.__name__=["haxe","Stack"],haxe.Stack.callStack=function(){var t=Error.prepareStackTrace;Error.prepareStackTrace=function(t,e){for(var i=[],n=0;n<e.length;){var o=e[n];++n;var a=null,s=o.getFunctionName();if(null!=s){var l=s.lastIndexOf(".");if(l>=0){var r=HxOverrides.substr(s,0,l),c=HxOverrides.substr(s,l+1,null);a=haxe.StackItem.Method(r,c)}}i.push(haxe.StackItem.FilePos(a,o.getFileName(),o.getLineNumber()))}return i};var e=haxe.Stack.makeStack((new Error).stack);return e.shift(),Error.prepareStackTrace=t,e},haxe.Stack.exceptionStack=function(){return[]},haxe.Stack.toString=function(t){for(var e=new StringBuf,i=0;i<t.length;){var n=t[i];++i,e.b+=Std.string("\nCalled from "),haxe.Stack.itemToString(e,n)}return e.b},haxe.Stack.itemToString=function(t,e){switch(e){case CFunction:t.b+=Std.string("a C function");break;case Module(m):t.b+=Std.string("module "),t.b+=Std.string(m);break;case FilePos(s1,file,line):null!=s1&&(haxe.Stack.itemToString(t,s1),t.b+=Std.string(" (")),t.b+=Std.string(file),t.b+=Std.string(" line "),t.b+=Std.string(line),null!=s1&&(t.b+=Std.string(")"));break;case Method(cname,meth):t.b+=Std.string(cname),t.b+=Std.string("."),t.b+=Std.string(meth);break;case Lambda(n):t.b+=Std.string("local function #"),t.b+=Std.string(n)}},haxe.Stack.makeStack=function(t){if("string"==typeof t){for(var e=t.split("\n"),i=[],n=0;n<e.length;){var o=e[n];++n,i.push(haxe.StackItem.Module(o))}return i}return t},haxe.Stack.prototype.__class__=haxe.Stack,haxe.Unserializer=function(t){this.buf=t,this.length=t.length,this.pos=0,this.scache=[],this.cache=[];var e=haxe.Unserializer.DEFAULT_RESOLVER;null==e&&(e=Type,haxe.Unserializer.DEFAULT_RESOLVER=e),this.setResolver(e)},$hxClasses["haxe.Unserializer"]=haxe.Unserializer,haxe.Unserializer.__name__=["haxe","Unserializer"],haxe.Unserializer.initCodes=function(){for(var t=[],e=0,i=haxe.Unserializer.BASE64.length;e<i;){var n=e++;t[haxe.Unserializer.BASE64.charCodeAt(n)]=n}return t},haxe.Unserializer.run=function(t){return new haxe.Unserializer(t).unserialize()},haxe.Unserializer.prototype.unserialize=function(){var t,e,i,n,o,a,s,l,r,c;switch(this.buf.charCodeAt(this.pos++)){case 110:return null;case 116:return!0;case 102:return!1;case 122:return 0;case 105:return this.readDigits();case 100:for(var h=this.pos;(t=this.buf.charCodeAt(this.pos))>=43&&t<58||101==t||69==t;)this.pos++;return Std.parseFloat(HxOverrides.substr(this.buf,h,this.pos-h));case 121:if(e=this.readDigits(),58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<e)throw"Invalid string length";return i=HxOverrides.substr(this.buf,this.pos,e),this.pos+=e,i=StringTools.urlDecode(i),this.scache.push(i),i;case 107:return Math.NaN;case 109:return Math.NEGATIVE_INFINITY;case 112:return Math.POSITIVE_INFINITY;case 97:var m=[];for(this.cache.push(m);;){if(104==(t=this.buf.charCodeAt(this.pos))){this.pos++;break}117==t?(this.pos++,n=this.readDigits(),m[m.length+n-1]=null):m.push(this.unserialize())}return m;case 111:return o={},this.cache.push(o),this.unserializeObject(o),o;case 114:if((n=this.readDigits())<0||n>=this.cache.length)throw"Invalid reference";return this.cache[n];case 82:if((n=this.readDigits())<0||n>=this.scache.length)throw"Invalid string reference";return this.scache[n];case 120:throw this.unserialize();case 99:if(a=this.unserialize(),null==(s=this.resolver.resolveClass(a)))throw"Class not found "+a;return o=Type.createEmptyInstance(s),this.cache.push(o),this.unserializeObject(o),o;case 119:if(a=this.unserialize(),null==(l=this.resolver.resolveEnum(a)))throw"Enum not found "+a;return r=this.unserializeEnum(l,this.unserialize()),this.cache.push(r),r;case 106:if(a=this.unserialize(),null==(l=this.resolver.resolveEnum(a)))throw"Enum not found "+a;this.pos++;var u=this.readDigits(),p=Type.getEnumConstructs(l)[u];if(null==p)throw"Unknown enum index "+a+"@"+u;return r=this.unserializeEnum(l,p),this.cache.push(r),r;case 108:var d=new List;for(this.cache.push(d);104!=this.buf.charCodeAt(this.pos);)d.add(this.unserialize());return this.pos++,d;case 98:var f=new Hash;for(this.cache.push(f);104!=this.buf.charCodeAt(this.pos);)i=this.unserialize(),f.set(i,this.unserialize());return this.pos++,f;case 113:var g=new IntHash;for(this.cache.push(g),t=this.buf.charCodeAt(this.pos++);58==t;)c=this.readDigits(),g.set(c,this.unserialize()),t=this.buf.charCodeAt(this.pos++);if(104!=t)throw"Invalid IntHash format";return g;case 118:var C=HxOverrides.strDate(HxOverrides.substr(this.buf,this.pos,19));return this.cache.push(C),this.pos+=19,C;case 115:e=this.readDigits();var q=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<e)throw"Invalid bytes length";var S=haxe.Unserializer.CODES;null==S&&(S=haxe.Unserializer.initCodes(),haxe.Unserializer.CODES=S);for(var _,M,T,E=3&e,y=3*(e>>2)+(E>=2?E-1:0),k=(c=this.pos)+(e-E),A=haxe.io.Bytes.alloc(y),b=0;c<k;){_=S[q.charCodeAt(c++)],M=S[q.charCodeAt(c++)],A.b[b++]=255&(_<<2|M>>4),T=S[q.charCodeAt(c++)],A.b[b++]=255&(M<<4|T>>2);var v=S[q.charCodeAt(c++)];A.b[b++]=255&(T<<6|v)}return E>=2&&(_=S[q.charCodeAt(c++)],M=S[q.charCodeAt(c++)],A.b[b++]=255&(_<<2|M>>4),3==E&&(T=S[q.charCodeAt(c++)],A.b[b++]=255&(M<<4|T>>2))),this.pos+=e,this.cache.push(A),A;case 67:if(a=this.unserialize(),null==(s=this.resolver.resolveClass(a)))throw"Class not found "+a;if(o=Type.createEmptyInstance(s),this.cache.push(o),o.hxUnserialize(this),103!=this.buf.charCodeAt(this.pos++))throw"Invalid custom data";return o}throw this.pos--,"Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos},haxe.Unserializer.prototype.unserializeEnum=function(t,e){if(58!=this.buf.charCodeAt(this.pos++))throw"Invalid enum format";var i=this.readDigits();if(0==i)return Type.createEnum(t,e);for(var n=[];i-- >0;)n.push(this.unserialize());return Type.createEnum(t,e,n)},haxe.Unserializer.prototype.unserializeObject=function(t){for(;;){if(this.pos>=this.length)throw"Invalid object";if(103==this.buf.charCodeAt(this.pos))break;var e=this.unserialize();if(!js.Boot.__instanceof(e,String))throw"Invalid object key";var i=this.unserialize();t[e]=i}this.pos++},haxe.Unserializer.prototype.readDigits=function(){for(var t=0,e=!1,i=this.pos;;){var n=this.buf.charCodeAt(this.pos);if(n!=n)break;if(45!=n){if(n<48||n>57)break;t=10*t+(n-48),this.pos++}else{if(this.pos!=i)break;e=!0,this.pos++}}return e&&(t*=-1),t},haxe.Unserializer.prototype.get=function(t){return this.buf.charCodeAt(t)},haxe.Unserializer.prototype.getResolver=function(){return this.resolver},haxe.Unserializer.prototype.setResolver=function(t){this.resolver=null==t?{resolveClass:function(t){return null},resolveEnum:function(t){return null}}:t},haxe.Unserializer.prototype.resolver=null,haxe.Unserializer.prototype.scache=null,haxe.Unserializer.prototype.cache=null,haxe.Unserializer.prototype.length=null,haxe.Unserializer.prototype.pos=null,haxe.Unserializer.prototype.buf=null,haxe.Unserializer.prototype.__class__=haxe.Unserializer,haxe.Unserializer.DEFAULT_RESOLVER=Type,haxe.Unserializer.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",haxe.Unserializer.CODES=null,haxe.io.Bytes=function(t,e){this.length=t,this.b=e},$hxClasses["haxe.io.Bytes"]=haxe.io.Bytes,haxe.io.Bytes.__name__=["haxe","io","Bytes"],haxe.io.Bytes.alloc=function(t){for(var e=[];0<t;)e.push(0);return new haxe.io.Bytes(t,e)},haxe.io.Bytes.ofString=function(t){for(var e=[],i=0,n=t.length;i<n;){var o=i++,a=t.charCodeAt(o);a<=127?e.push(a):a<=2047?(e.push(192|a>>6),e.push(128|63&a)):a<=65535?(e.push(224|a>>12),e.push(128|a>>6&63),e.push(128|63&a)):(e.push(240|a>>18),e.push(128|a>>12&63),e.push(128|a>>6&63),e.push(128|63&a))}return new haxe.io.Bytes(e.length,e)},haxe.io.Bytes.ofData=function(t){return new haxe.io.Bytes(t.length,t)},haxe.io.Bytes.prototype.getData=function(){return this.b},haxe.io.Bytes.prototype.toHex=function(){for(var t,e=new StringBuf,i=[],n=0,o=16;n<o;)t=n++,i.push(HxOverrides.cca("0123456789abcdef",t));for(n=0,o=this.length;n<o;){t=n++;var a=this.b[t];e.b+=String.fromCharCode(i[a>>4]),e.b+=String.fromCharCode(i[15&a])}return e.b},haxe.io.Bytes.prototype.toString=function(){return this.readString(0,this.length)},haxe.io.Bytes.prototype.readString=function(t,e){if(t<0||e<0||t+e>this.length)throw haxe.io.Error.OutsideBounds;for(var i="",n=this.b,o=String.fromCharCode,a=t,s=t+e;a<s;){var l=n[a++];if(l<128){if(0==l)break;i+=o(l)}else i+=o(l<224?(63&l)<<6|127&n[a++]:l<240?(31&l)<<12|(127&n[a++])<<6|127&n[a++]:(15&l)<<18|(127&n[a++])<<12|n[a++]<<6&127|127&n[a++])}return i},haxe.io.Bytes.prototype.compare=function(t){for(var e=this.b,i=t.b,n=this.length<t.length?this.length:t.length,o=0;o<n;){var a=o++;if(e[a]!=i[a])return e[a]-i[a]}return this.length-t.length},haxe.io.Bytes.prototype.sub=function(t,e){if(t<0||e<0||t+e>this.length)throw haxe.io.Error.OutsideBounds;return new haxe.io.Bytes(e,this.b.slice(t,t+e))},haxe.io.Bytes.prototype.blit=function(t,e,i,n){if(t<0||i<0||n<0||t+n>this.length||i+n>e.length)throw haxe.io.Error.OutsideBounds;var o,a=this.b,s=e.b;if(a==s&&t>i)for(o=n;o>0;)a[--o+t]=s[o+i];else for(var l=0;l<n;)a[(o=l++)+t]=s[o+i]},haxe.io.Bytes.prototype.set=function(t,e){this.b[t]=255&e},haxe.io.Bytes.prototype.get=function(t){return this.b[t]},haxe.io.Bytes.prototype.b=null,haxe.io.Bytes.prototype.length=null,haxe.io.Bytes.prototype.__class__=haxe.io.Bytes,haxe.xml._Fast.NodeAccess=function(t){this.__x=t},$hxClasses["haxe.xml._Fast.NodeAccess"]=haxe.xml._Fast.NodeAccess,haxe.xml._Fast.NodeAccess.__name__=["haxe","xml","_Fast","NodeAccess"],haxe.xml._Fast.NodeAccess.prototype.resolve=function(t){var e=this.__x.elementsNamed(t).next();if(null==e)throw(this.__x.nodeType==Xml.Document?"Document":this.__x.getNodeName())+" is missing element "+t;return new haxe.xml.Fast(e)},haxe.xml._Fast.NodeAccess.prototype.__x=null,haxe.xml._Fast.NodeAccess.prototype.__class__=haxe.xml._Fast.NodeAccess,haxe.xml._Fast.AttribAccess=function(t){this.__x=t},$hxClasses["haxe.xml._Fast.AttribAccess"]=haxe.xml._Fast.AttribAccess,haxe.xml._Fast.AttribAccess.__name__=["haxe","xml","_Fast","AttribAccess"],haxe.xml._Fast.AttribAccess.prototype.resolve=function(t){if(this.__x.nodeType==Xml.Document)throw"Cannot access document attribute "+t;var e=this.__x.get(t);if(null==e)throw this.__x.getNodeName()+" is missing attribute "+t;return e},haxe.xml._Fast.AttribAccess.prototype.__x=null,haxe.xml._Fast.AttribAccess.prototype.__class__=haxe.xml._Fast.AttribAccess,haxe.xml._Fast.HasAttribAccess=function(t){this.__x=t},$hxClasses["haxe.xml._Fast.HasAttribAccess"]=haxe.xml._Fast.HasAttribAccess,haxe.xml._Fast.HasAttribAccess.__name__=["haxe","xml","_Fast","HasAttribAccess"],haxe.xml._Fast.HasAttribAccess.prototype.resolve=function(t){if(this.__x.nodeType==Xml.Document)throw"Cannot access document attribute "+t;return this.__x.exists(t)},haxe.xml._Fast.HasAttribAccess.prototype.__x=null,haxe.xml._Fast.HasAttribAccess.prototype.__class__=haxe.xml._Fast.HasAttribAccess,haxe.xml._Fast.HasNodeAccess=function(t){this.__x=t},$hxClasses["haxe.xml._Fast.HasNodeAccess"]=haxe.xml._Fast.HasNodeAccess,haxe.xml._Fast.HasNodeAccess.__name__=["haxe","xml","_Fast","HasNodeAccess"],haxe.xml._Fast.HasNodeAccess.prototype.resolve=function(t){return this.__x.elementsNamed(t).hasNext()},haxe.xml._Fast.HasNodeAccess.prototype.__x=null,haxe.xml._Fast.HasNodeAccess.prototype.__class__=haxe.xml._Fast.HasNodeAccess,haxe.xml._Fast.NodeListAccess=function(t){this.__x=t},$hxClasses["haxe.xml._Fast.NodeListAccess"]=haxe.xml._Fast.NodeListAccess,haxe.xml._Fast.NodeListAccess.__name__=["haxe","xml","_Fast","NodeListAccess"],haxe.xml._Fast.NodeListAccess.prototype.resolve=function(t){for(var e=new List,i=this.__x.elementsNamed(t);i.hasNext();){var n=i.next();e.add(new haxe.xml.Fast(n))}return e},haxe.xml._Fast.NodeListAccess.prototype.__x=null,haxe.xml._Fast.NodeListAccess.prototype.__class__=haxe.xml._Fast.NodeListAccess,haxe.xml.Fast=function(t){if(t.nodeType!=Xml.Document&&t.nodeType!=Xml.Element)throw"Invalid nodeType "+Std.string(t.nodeType);this.x=t,this.node=new haxe.xml._Fast.NodeAccess(t),this.nodes=new haxe.xml._Fast.NodeListAccess(t),this.att=new haxe.xml._Fast.AttribAccess(t),this.has=new haxe.xml._Fast.HasAttribAccess(t),this.hasNode=new haxe.xml._Fast.HasNodeAccess(t)},$hxClasses["haxe.xml.Fast"]=haxe.xml.Fast,haxe.xml.Fast.__name__=["haxe","xml","Fast"],haxe.xml.Fast.prototype.getElements=function(){var t=this.x.elements();return{hasNext:$bind(t,t.hasNext),next:function(){var e=t.next();return null==e?null:new haxe.xml.Fast(e)}}},haxe.xml.Fast.prototype.getInnerHTML=function(){for(var t=new StringBuf,e=this.x.iterator();e.hasNext();){var i=e.next();t.b+=Std.string(i.toString())}return t.b},haxe.xml.Fast.prototype.getInnerData=function(){var t=this.x.iterator();if(!t.hasNext())throw this.getName()+" does not have data";var e=t.next(),i=t.next();if(null!=i){if(e.nodeType==Xml.PCData&&i.nodeType==Xml.CData&&""==StringTools.trim(e.getNodeValue())){var n=t.next();if(null==n||n.nodeType==Xml.PCData&&""==StringTools.trim(n.getNodeValue())&&null==t.next())return i.getNodeValue()}throw this.getName()+" does not only have data"}if(e.nodeType!=Xml.PCData&&e.nodeType!=Xml.CData)throw this.getName()+" does not have data";return e.getNodeValue()},haxe.xml.Fast.prototype.getName=function(){return this.x.nodeType==Xml.Document?"Document":this.x.getNodeName()},haxe.xml.Fast.prototype.elements=null,haxe.xml.Fast.prototype.hasNode=null,haxe.xml.Fast.prototype.has=null,haxe.xml.Fast.prototype.att=null,haxe.xml.Fast.prototype.nodes=null,haxe.xml.Fast.prototype.node=null,haxe.xml.Fast.prototype.innerHTML=null,haxe.xml.Fast.prototype.innerData=null,haxe.xml.Fast.prototype.name=null,haxe.xml.Fast.prototype.x=null,haxe.xml.Fast.prototype.__class__=haxe.xml.Fast,com.inq.addons.Salesforce=(t="initiated",i="loading",o="loaded",a="prepared",s="started",l=null,r="not_initiated",c=!1,h={},u=null,p=null,d=!1,f=function(e){!1===c&&!0===e&&(c=!0,(h=com.inq.utils.Util.getConfig("salesforcechatsupport",{})).license&&h.deploymentid&&h.organizationid&&h.instanceURL?(h.containerName||(h.containerName="mediumChatDiv"),h.transcriptLabel||(h.transcriptLabel="VA Transcript\n"),h.title||(h.title="Salesforce Content"),r=t):M.error("salesforcechatsupport is not correctly configured in skin","init"))},g=function(e,n){if(n=n||function(){},r!==t){var s="SalesForce is not inited or already prepared";return M.error(s,"prepare"),void n(s)}var c=/.*onclick="window.inqFrame.Salesforce.startChat\('(.*?)'\).*/g.exec(e);c&&2===c.length&&(h.license=c[1]),(l=window.top)._laq||(l._laq=[]),function(t,e,n,o){null==com.inq.ui.Container._getElementById(t,o.document)&&((u=o.document.createElement("script")).id=t,u.src=e),null!==n&&(u.readyState?u.onreadystatechange=function(){"loaded"!==u.readyState&&"complete"!==u.readyState||(u.onreadystatechange=null,n())}:u.onload=function(){n()}),r=i,com.inq.ui.Container._getElementByTN("head",o.document)[0].appendChild(u)}("salesforceDeploymentScript",h.deploymentURL,(function(){r=o;var t=com.inq.flash.client.chatskins.SkinControl.cw,i="";try{for(var s=0;s<t.arrayTranscripts.length;s++)1!=t.arrayTranscripts[s].MsgType&&2!=t.arrayTranscripts[s].MsgType||(i+=t.arrayTranscripts[s].Id+": "+t.arrayTranscripts[s].Msg+"\n")}catch(t){}!function(t,e){var i,n=/data-custom="(.*?)"/;if(n.test(t))try{var o=n.exec(t);i=JSON.parse(decodeURIComponent(o[1]));for(var a=0;a<i.length;a++){var s=l.liveagent,r=i[a];try{r.forEach((function(t){for(var i=0;i<t.arguments.length;i++)"_TRANSCRIPT_"===t.arguments[i]&&(t.arguments[i]=e);s=s[t.funName].apply(s,t.arguments)}))}catch(e){M.error("Error: executeCustomData "+t,"prepare.executeCustomData")}}}catch(e){M.error("Error: while getting custArgsObj "+t,"prepare.executeCustomData")}}(e,i);try{l.liveagent.init(h.instanceURL,h.deploymentid,h.organizationid),l.liveagent.enableLogging(),l._laq.push((function(){try{l.liveagent.showWhenOnline(h.license,com.inq.ui.Container._getElementById("liveagent_button_online_"+h.license,l.document))}catch(t){M.error("fail to change SF start button with error: "+t.getMessage(),"prepare")}})),l.liveagent.addButtonEventHandler(h.license,(function(t){t===l.liveagent.BUTTON_EVENT.BUTTON_AVAILABLE&&r===o&&(r=a,d&&q())})),n()}catch(t){M.error("Error while initiating SF Live Agent Chat with error-"+t.getMessage(),"prepare"),S(),n("Failed to setup SalesForce liveagent")}}),l)},C=function(t){M.info("SF Live Agent engagement is started","startChat"),t&&(h.license=t),r===i||r===o?d=!0:r===a?q():M.error("Error: while starting chat","startChat")},q=function(){var t,e,i;function n(t){var e=t.data;"exitChat"===e?S():"minimizeChat"===e?com.inq.flash.client.control.MinimizeManager.actionMinimize():"expandChat"===e?com.inq.flash.client.chatskins.ChatTextFocusMonitor.expandChat():"shrinkChat"===e&&com.inq.flash.client.chatskins.ChatTextFocusMonitor.shrinkChat()}r===a?("none",(i=com.inq.ui.Container._getElementById("liveagent_button_online_"+h.license,l.document))&&(i.style.display="none"),e=com.inq.ui.Container._getElementById("tcChat_Skin",l.document),(p=l.document.createElement("DIV")).id="nonInqChatDiv",p.style.cssText="position:absolute;top:0px;left:0px;width:100%;height:100%;opacity:1;z-index:9999999;background:#000;",t="<IFRAME id='"+h.containerName+"' NAME=\""+h.containerName+'" title="'+h.title+'" width="100%" height="100%"></IFRAME>',p.innerHTML=t,e.appendChild(p),h.keepPreviousChat?com.inq.flash.client.chatskins.SkinControl.hideInput():setTimeout(com.inq.flash.client.chatskins.SkinControl.closeThroughSalesforceChat,200),l.liveagent.startChatWithWindow(h.license,h.containerName),M.info("liveagent.startChatWithWindow is called","startChat"),l.addEventListener?l.addEventListener("message",n,!1):l.attachEvent&&l.attachEvent("onmessage",n),r=s):M.error("Error: while showing chat","showChat")},S=function(){h.keepPreviousChat?com.inq.flash.client.chatskins.SkinControl.showInput():com.inq.flash.client.chatskins.SkinControl.actionCloseChat(),_()},_=function(){c&&(l=l||window.top,c=!1,r="not_initiated",d=!1,l.liveagent=null,l.liveAgentDeployment=null,u&&(u.parentNode&&u.parentNode.removeChild(u),u=null),p&&(p.parentNode&&p.parentNode.removeChild(p),p=null))},M={error:function(t,e){com.inq.flash.client.control.FlashPeer.logErrorToServer("SalesForce."+e+": "+t)},info:function(t,e){com.inq.flash.client.control.FlashPeer.logInfoToServer("SalesForce."+e+": "+t)}},com.inq.utils.Util.publish("window.inqFrame.Salesforce.prepare",g),com.inq.utils.Util.publish("window.inqFrame.Salesforce.startChat",C),com.inq.utils.Util.publish("window.inqFrame.Salesforce.endChat",S),{name:"com.inq.addons.Salesforce",init:f,reset:_,getStatus:function(){return r},scanMessage:function(t,e,i){var n,o;return i=i||function(){},e&&(o=com.inq.utils.Util.getConfig("salesforcechatsupport",{}),t='<span><div onclick="window.inqFrame.Application.sendVALinkClicked(event);"><a onclick="window.inqFrame.Salesforce.startChat()" ontouchend="window.inqFrame.Salesforce.startChat()">'+(n=n||o.ninaFailConnectMsg||"Click here to chat with a live agent now.")+"</a></div></span>"),t.indexOf('onclick="window.inqFrame.Salesforce.startChat(')>=0?(f(!0),g(t,(function(t){t?M.error("SF failed: "+t,"scanMessage"):M.info("SF chat is ready","scanMessage"),i(t)}))):i("chatText does not contain 'startChat' method"),t},prepare:g,startChat:C,isStarted:function(){return r===s},endChat:S}),window.$bind=function(t,e){var i=function(){return i.method.apply(i.scope,arguments)};return i.scope=t,i.method=e,i},window.$bindAll=function(t,e){function i(t){return"function"==typeof t&&!("scope"in t)}if(e)e.forEach((function(e){i(t[e])&&(t[e]=$bind(t,t[e]))}));else for(m in t)i(t[m])&&(t[m]=$bind(t,t[m]))},Object.defineProperty(String.prototype,"__class__",{value:$hxClasses.String=String,enumerable:!1}),String.__name__=["String"],Object.defineProperty(Array.prototype,"__class__",{value:$hxClasses.Array=Array,enumerable:!1}),Array.__name__=["Array"],Object.defineProperty(Date.prototype,"__class__",{value:$hxClasses.Date=Date,enumerable:!1}),Date.__name__=["Date"],window.Int=$hxClasses.Int={__name__:["Int"]},window.Dynamic=$hxClasses.Dynamic={__name__:["Dynamic"]},window.Float=$hxClasses.Float=Number,Float.__name__=["Float"],window.Bool=$hxClasses.Bool=Boolean,Bool.__ename__=["Bool"],window.Class=$hxClasses.Class={__name__:["Class"]},window.Enum={},window.Void=$hxClasses.Void={__ename__:["Void"]},Array.prototype.indexOf&&(HxOverrides.remove=function(t,e){var i=t.indexOf(e);return-1!=i&&(t.splice(i,1),!0)}),Math.__name__=["Math"],Math.NaN=Number.NaN,Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,$hxClasses.Math=Math,Math.isFinite=function(t){return isFinite(t)},Math.isNaN=function(t){return isNaN(t)},"undefined"!=typeof document&&(js.Lib.document=document),"undefined"!=typeof window&&(js.Lib.window=window),com.inq.flash.client.control.FlashPeer.getIsSkinLocal()&&8==com.inq.utils.Capabilities.getIeVersion()&&(window.Application=Application),com.inq.flash.client.control.FlashPeer.getIsBuilder()&&Application.main(),com.inq.utils.Util.publish("Application.main",Application.main),com.inq.utils.Util.publish("Application.fpInit",com.inq.flash.client.control.FlashPeer.init)}();
//# sourceMappingURL=InqFramework.js.map