/*! pako 1.0.4 nodeca/pako with Dojo/AMD/RequireJS Fix */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.pako=t()}}(function(){return function t(e,a,n){function r(s,h){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!h&&l)return l(s,!0);if(i)return i(s,!0);var o=new Error("Cannot find module '"+s+"'");throw o.code="MODULE_NOT_FOUND",o}var _=a[s]={exports:{}};e[s][0].call(_.exports,function(t){var a=e[s][1][t];return r(a?a:t)},_,_.exports,t,e,a,n)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;h[254]=h[254]=1,a.string2buf=function(t){var e,a,n,i,s,h=t.length,l=0;for(i=0;i>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},a.buf2binstring=function(t){return n(t,t.length)},a.binstring2buf=function(t){for(var e=new r.Buf8(t.length),a=0,n=e.length;a4)o[r++]=65533,a+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&a1?o[r++]=65533:i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|1023&i)}return n(o,r)},a.utf8border=function(t,e){var a;for(e=e||t.length,e>t.length&&(e=t.length),a=e-1;a>=0&&128===(192&t[a]);)a--;return a<0?e:0===a?e:a+h[t[a]]>e?a:e}},{"./common":1}],3:[function(t,e,a){"use strict";function n(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){s=a>2e3?2e3:a,a-=s;do r=r+e[n++]|0,i=i+r|0;while(--s);r%=65521,i%=65521}return r|i<<16|0}e.exports=n},{}],4:[function(t,e,a){"use strict";function n(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function r(t,e,a,n){var r=i,s=n+a;t^=-1;for(var h=n;h>>8^r[255&(t^e[h])];return t^-1}var i=n();e.exports=r},{}],5:[function(t,e,a){"use strict";function n(t,e){return t.msg=O[e],e}function r(t){return(t<<1)-(t>4?9:0)}function i(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(j.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function h(t,e){U._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function o(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function _(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,j.arraySet(e,t.input,t.next_in,r,a),1===t.state.wrap?t.adler=D(t.adler,e,r,a):2===t.state.wrap&&(t.adler=I(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)}function d(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-dt?t.strstart-(t.w_size-dt):0,o=t.window,_=t.w_mask,d=t.prev,u=t.strstart+_t,f=o[i+s-1],c=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do if(a=e,o[a+s]===c&&o[a+s-1]===f&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do;while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&is){if(t.match_start=e,s=n,n>=h)break;f=o[i+s-1],c=o[i+s]}}while((e=d[e&_])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function u(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-dt)){j.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,a=t.hash_size,e=a;do n=t.head[--e],t.head[e]=n>=s?n-s:0;while(--a);a=s,e=a;do n=t.prev[--e],t.prev[e]=n>=s?n-s:0;while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=_(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=ot)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(u(t),0===t.lookahead&&e===q)return vt;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,h(t,!1),0===t.strm.avail_out))return vt;if(t.strstart-t.block_start>=t.w_size-dt&&(h(t,!1),0===t.strm.avail_out))return vt}return t.insert=0,e===N?(h(t,!0),0===t.strm.avail_out?kt:zt):t.strstart>t.block_start&&(h(t,!1),0===t.strm.avail_out)?vt:vt}function c(t,e){for(var a,n;;){if(t.lookahead=ot&&(t.ins_h=(t.ins_h<=ot)if(n=U._tr_tally(t,t.strstart-t.match_start,t.match_length-ot),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ot){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<=ot&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=ot-1)),t.prev_length>=ot&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-ot,n=U._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-ot),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=r&&(t.ins_h=(t.ins_h<=ot&&t.strstart>0&&(r=t.strstart-1,n=s[r],n===s[++r]&&n===s[++r]&&n===s[++r])){i=t.strstart+_t;do;while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ot?(a=U._tr_tally(t,1,t.match_length-ot),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=U._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(h(t,!1),0===t.strm.avail_out))return vt}return t.insert=0,e===N?(h(t,!0),0===t.strm.avail_out?kt:zt):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?vt:yt}function m(t,e){for(var a;;){if(0===t.lookahead&&(u(t),0===t.lookahead)){if(e===q)return vt;break}if(t.match_length=0,a=U._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(h(t,!1),0===t.strm.avail_out))return vt}return t.insert=0,e===N?(h(t,!0),0===t.strm.avail_out?kt:zt):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?vt:yt}function b(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}function w(t){t.window_size=2*t.w_size,i(t.head),t.max_lazy_match=E[t.level].max_lazy,t.good_match=E[t.level].good_length,t.nice_match=E[t.level].nice_length,t.max_chain_length=E[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ot-1,t.match_available=0,t.ins_h=0}function v(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new j.Buf16(2*ht),this.dyn_dtree=new j.Buf16(2*(2*it+1)),this.bl_tree=new j.Buf16(2*(2*st+1)),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new j.Buf16(lt+1),this.heap=new j.Buf16(2*rt+1),i(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new j.Buf16(2*rt+1),i(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function y(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=Y,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ft:bt,t.adler=2===e.wrap?0:1,e.last_flush=q,U._tr_init(e),H):n(t,K)}function k(t){var e=y(t);return e===H&&w(t.state),e}function z(t,e){return t&&t.state?2!==t.state.wrap?K:(t.state.gzhead=e,H):K}function x(t,e,a,r,i,s){if(!t)return K;var h=1;if(e===G&&(e=6),r<0?(h=0,r=-r):r>15&&(h=2,r-=16),i<1||i>$||a!==Z||r<8||r>15||e<0||e>9||s<0||s>W)return n(t,K);8===r&&(r=9);var l=new v;return t.state=l,l.strm=t,l.wrap=h,l.gzhead=null,l.w_bits=r,l.w_size=1<R||e<0)return t?n(t,K):K;if(h=t.state,!t.output||!t.input&&0!==t.avail_in||h.status===wt&&e!==N)return n(t,0===t.avail_out?P:K);if(h.strm=t,a=h.last_flush,h.last_flush=e,h.status===ft)if(2===h.wrap)t.adler=0,l(h,31),l(h,139),l(h,8),h.gzhead?(l(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),l(h,255&h.gzhead.time),l(h,h.gzhead.time>>8&255),l(h,h.gzhead.time>>16&255),l(h,h.gzhead.time>>24&255),l(h,9===h.level?2:h.strategy>=Q||h.level<2?4:0),l(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(l(h,255&h.gzhead.extra.length),l(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(t.adler=I(t.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=ct):(l(h,0),l(h,0),l(h,0),l(h,0),l(h,0),l(h,9===h.level?2:h.strategy>=Q||h.level<2?4:0),l(h,xt),h.status=bt);else{var u=Z+(h.w_bits-8<<4)<<8,f=-1;f=h.strategy>=Q||h.level<2?0:h.level<6?1:6===h.level?2:3,u|=f<<6,0!==h.strstart&&(u|=ut),u+=31-u%31,h.status=bt,o(h,u),0!==h.strstart&&(o(h,t.adler>>>16),o(h,65535&t.adler)),t.adler=1}if(h.status===ct)if(h.gzhead.extra){for(_=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),s(t),_=h.pending,h.pending!==h.pending_buf_size));)l(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=pt)}else h.status=pt;if(h.status===pt)if(h.gzhead.name){_=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),s(t),_=h.pending,h.pending===h.pending_buf_size)){d=1;break}d=h.gzindex_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),0===d&&(h.gzindex=0,h.status=gt)}else h.status=gt;if(h.status===gt)if(h.gzhead.comment){_=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),s(t),_=h.pending,h.pending===h.pending_buf_size)){d=1;break}d=h.gzindex_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),0===d&&(h.status=mt)}else h.status=mt;if(h.status===mt&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&s(t),h.pending+2<=h.pending_buf_size&&(l(h,255&t.adler),l(h,t.adler>>8&255),t.adler=0,h.status=bt)):h.status=bt),0!==h.pending){if(s(t),0===t.avail_out)return h.last_flush=-1,H}else if(0===t.avail_in&&r(e)<=r(a)&&e!==N)return n(t,P);if(h.status===wt&&0!==t.avail_in)return n(t,P);if(0!==t.avail_in||0!==h.lookahead||e!==q&&h.status!==wt){var c=h.strategy===Q?m(h,e):h.strategy===V?g(h,e):E[h.level].func(h,e);if(c!==kt&&c!==zt||(h.status=wt),c===vt||c===kt)return 0===t.avail_out&&(h.last_flush=-1),H;if(c===yt&&(e===T?U._tr_align(h):e!==R&&(U._tr_stored_block(h,0,0,!1),e===L&&(i(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),s(t),0===t.avail_out))return h.last_flush=-1,H}return e!==N?H:h.wrap<=0?F:(2===h.wrap?(l(h,255&t.adler),l(h,t.adler>>8&255),l(h,t.adler>>16&255),l(h,t.adler>>24&255),l(h,255&t.total_in),l(h,t.total_in>>8&255),l(h,t.total_in>>16&255),l(h,t.total_in>>24&255)):(o(h,t.adler>>>16),o(h,65535&t.adler)),s(t),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?H:F)}function C(t){var e;return t&&t.state?(e=t.state.status,e!==ft&&e!==ct&&e!==pt&&e!==gt&&e!==mt&&e!==bt&&e!==wt?n(t,K):(t.state=null,e===bt?n(t,M):H)):K}function S(t,e){var a,n,r,s,h,l,o,_,d=e.length;if(!t||!t.state)return K;if(a=t.state,s=a.wrap,2===s||1===s&&a.status!==ft||a.lookahead)return K;for(1===s&&(t.adler=D(t.adler,e,d,0)),a.wrap=0,d>=a.w_size&&(0===s&&(i(a.head),a.strstart=0,a.block_start=0,a.insert=0),_=new j.Buf8(a.w_size),j.arraySet(_,e,d-a.w_size,a.w_size,0),e=_,d=a.w_size),h=t.avail_in,l=t.next_in,o=t.input,t.avail_in=d,t.next_in=0,t.input=e,u(a);a.lookahead>=ot;){n=a.strstart,r=a.lookahead-(ot-1);do a.ins_h=(a.ins_h<=0;)t[e]=0}function r(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function i(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function s(t){return t<256?lt[t]:lt[256+(t>>>7)]}function h(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function l(t,e,a){t.bi_valid>W-a?(t.bi_buf|=e<>W-t.bi_valid,t.bi_valid+=a-W):(t.bi_buf|=e<>>=1,a<<=1;while(--e>0);return a>>>1}function d(t){16===t.bi_valid?(h(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function u(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,_=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=V;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;ac&&(i=c,p++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(_[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)r=t.heap[--a],r>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}function f(t,e,a){var n,r,i=new Array(V+1),s=0;for(n=1;n<=V;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=_(i[h]++,h))}}function c(){var t,e,a,n,i,s=new Array(V+1);for(a=0,n=0;n>=7;n8?h(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function m(t,e,a,n){g(t),n&&(h(t,a),h(t,~a)),D.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function b(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)w(t,i,a);r=l;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],w(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,w(t,i,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],u(t,e),f(i,o,t.bl_count)}function k(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h=3&&0===t.bl_tree[2*rt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function B(t,e,a,n){var r;for(l(t,e-257,5),l(t,a-1,5),l(t,n-4,4),r=0;r>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return O;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return q;for(e=32;e0?(t.strm.data_type===T&&(t.strm.data_type=A(t)),y(t,t.l_desc),y(t,t.d_desc),s=x(t),r=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=r&&(r=i)):r=i=a+5,a+4<=r&&e!==-1?S(t,e,a,n):t.strategy===I||i===r?(l(t,(N<<1)+(n?1:0),3),v(t,st,ht)):(l(t,(R<<1)+(n?1:0),3),B(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),v(t,t.dyn_ltree,t.dyn_dtree)),p(t),n&&g(t)}function U(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(ot[a]+M+1)]++,t.dyn_dtree[2*s(e)]++),t.last_lit===t.lit_bufsize-1}var D=t("../utils/common"),I=4,O=0,q=1,T=2,L=0,N=1,R=2,H=3,F=258,K=29,M=256,P=M+1+K,G=30,J=19,Q=2*P+1,V=15,W=16,X=7,Y=256,Z=16,$=17,tt=18,et=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],at=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],nt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],it=512,st=new Array(2*(P+2));n(st);var ht=new Array(2*G);n(ht);var lt=new Array(it);n(lt);var ot=new Array(F-H+1);n(ot);var _t=new Array(K);n(_t);var dt=new Array(G);n(dt);var ut,ft,ct,pt=!1;a._tr_init=C,a._tr_stored_block=S,a._tr_flush_block=j,a._tr_tally=U,a._tr_align=E},{"../utils/common":1}],8:[function(t,e,a){"use strict";function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=n},{}],"/lib/deflate.js":[function(t,e,a){"use strict";function n(t){if(!(this instanceof n))return new n(t);this.options=l.assign({level:b,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:w,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var a=h.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==p)throw new Error(_[a]);if(e.header&&h.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=h.deflateSetDictionary(this.strm,r),a!==p)throw new Error(_[a]);this._dict_set=!0}}function r(t,e){var a=new n(e);if(a.push(t,!0),a.err)throw a.msg||_[a.err];return a.result}function i(t,e){return e=e||{},e.raw=!0,r(t,e)}function s(t,e){return e=e||{},e.gzip=!0,r(t,e)}var h=t("./zlib/deflate"),l=t("./utils/common"),o=t("./utils/strings"),_=t("./zlib/messages"),d=t("./zlib/zstream"),u=Object.prototype.toString,f=0,c=4,p=0,g=1,m=2,b=-1,w=0,v=8;n.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:e===!0?c:f,"string"==typeof t?r.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new l.Buf8(i),r.next_out=0,r.avail_out=i),a=h.deflate(r,n),a!==g&&a!==p)return this.onEnd(a),this.ended=!0,!1;0!==r.avail_out&&(0!==r.avail_in||n!==c&&n!==m)||("string"===this.options.to?this.onData(o.buf2binstring(l.shrinkBuf(r.output,r.next_out))):this.onData(l.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||0===r.avail_out)&&a!==g);return n===c?(a=h.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===p):n!==m||(this.onEnd(p),r.avail_out=0,!0)},n.prototype.onData=function(t){this.chunks.push(t)},n.prototype.onEnd=function(t){t===p&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=n,a.deflate=r,a.deflateRaw=i,a.gzip=s},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")}); /*! UI SDK Core 5.5 */ if(window.TLT){throw"Attempting to recreate TLT. Library may be included more than once on the page."}window.TLT=(function(){function r(F,x,y,G){var D=null,H=null,C=TLT.getService("queue"),A=TLT.getModule("replay"),E=TLT.getModule("TLCookie"),z=null,B=TLT.utils.getOriginAndPath();if(!x||typeof x!=="string"){return}if(!y||typeof y!=="string"){y=""}H={type:2,screenview:{type:F,name:x,url:B.path,host:B.origin,referrer:y}};if(F==="LOAD"){z={type:"screenview_load",name:x}}else{if(F==="UNLOAD"){z={type:"screenview_unload",name:x}}}if(z&&A){D=A.onevent(z)}if(D){H.dcid=D}if(F==="LOAD"||F==="UNLOAD"){C.post("",H,"DEFAULT")}if(z&&E){E.onevent(z)}}function s(y){var z,x=TLT.getService("queue");if(!y||!y.coords){return}z={type:13,geolocation:{lat:y.coords.latitude,"long":y.coords.longitude,accuracy:Math.ceil(y.coords.accuracy)}};x.post("",z,"DEFAULT")}function m(){var y,x=TLT.getService("queue");y={type:13,geolocation:{errorCode:201,error:"Permission denied."}};x.post("",y,"DEFAULT")}var v=(new Date()).getTime(),q,w={},b={},e=false,g=null,o=(function(){var y,A=[];function z(F){var E=u.getService("browser"),B=u.getCoreConfig().framesBlacklist,D,C;y=y||[];F=F||null;if(typeof B!=="undefined"&&B.length>0){for(C=0;C0){y=y.concat(D)}}A=A.concat(E.queryAll("iframe",F))}}function x(B){if(u.utils.indexOf(A,B)<0){z(B.ownerDocument)}return u.utils.indexOf(y,B)>-1}x.clearCache=function(){y=null};return x}()),p=null,h={config:["getConfig","updateConfig","getCoreConfig","updateCoreConfig","getModuleConfig","updateModuleConfig","getServiceConfig","updateServiceConfig"],queue:["post","setAutoFlush","flushAll"],browserBase:["getXPathFromNode","processDOMEvent"]},t=(function(){var x={};return{normalizeModuleEvents:function(C,A,F,z){var y=x[C],E=false,B=false,D=u.getService("browser");F=F||u._getLocalTop();z=z||F.document;if(y){return}x[C]={loadFired:false,pageHideFired:false};u.utils.forEach(A,function(G){switch(G.name){case"load":E=true;A.push(u.utils.mixin(u.utils.mixin({},G),{name:"pageshow"}));break;case"unload":B=true;A.push(u.utils.mixin(u.utils.mixin({},G),{name:"pagehide"}));A.push(u.utils.mixin(u.utils.mixin({},G),{name:"beforeunload"}));break;case"change":if(u.utils.isLegacyIE&&u.getFlavor()==="w3c"){A.push(u.utils.mixin(u.utils.mixin({},G),{name:"propertychange"}))}break}});if(!E&&!B){delete x[C];return}x[C].silentLoad=!E;x[C].silentUnload=!B;if(!E){A.push({name:"load",target:F})}if(!B){A.push({name:"unload",target:F})}},canPublish:function(y,A){var z;if(x.hasOwnProperty(y)===false){return true}z=x[y];switch(A.type){case"load":z.pageHideFired=false;z.loadFired=true;return !z.silentLoad;case"pageshow":z.pageHideFired=false;A.type="load";return !z.loadFired&&!z.silentLoad;case"pagehide":A.type="unload";z.loadFired=false;z.pageHideFired=true;return !z.silentUnload;case"unload":case"beforeunload":A.type="unload";z.loadFired=false;return !z.pageHideFired&&!z.silentUnload}return true},isUnload:function(y){return typeof y==="object"?(y.type==="unload"||y.type==="beforeunload"||y.type==="pagehide"):false}}}()),c={},a={},j=function(){},l=null,k=true,d=function(){},i=false,n=(function(){var x=window.location,z=x.pathname,y=x.hash,A="";return function(){var D=x.pathname,B=x.hash,C=A;if(D!==z){C=D+B}else{if(B!==y){C=B}}if(C!==A){if(A){r("UNLOAD",A)}r("LOAD",C);A=C;z=D;y=B}}}()),f=function(A,H){var B,z,C,G=false,x=u.getService("browser"),y=u.getCoreConfig().blockedElements,E,F,D;if(!y||!y.length){f=function(){return false};return G}if(!A||!A.nodeType){return G}H=H||u.utils.getDocument(A);for(B=0,C=y.length;BA.cbOrder){break}}G.splice(z,0,A)}}}}catch(D){return false}return true},redirectQueue:function(D){var C,B,E,z,G,x,y,F=this.utils,A;if(!D||!D.length){return D}z=a.messageRedirect;if(!z){return D}if(!F.isArray(z)){G=[z]}else{G=z}A=u.getService("serializer");for(B=0,x=G.length;B-1){if(typeof y.instance.onmessage==="function"){y.instance.onmessage(A)}}}}}},listen:function(x,z){var y=null;if(this.isStarted(x)){y=w[x];if(u.utils.indexOf(y.messages,z)===-1){y.messages.push(z)}}},fail:function(z,y,x){z="UIC FAILED. "+z;try{u.destroy(!!x)}finally{u.utils.clog(z);throw new u.UICError(z,y)}},UICError:(function(){function x(y,z){this.message=y;this.code=z}x.prototype=new Error();x.prototype.name="UICError";x.prototype.constructor=x;return x}()),getFlavor:function(){return"w3c"}};d=function(){var z=u.getCoreConfig(),A=null,y=u.utils.getValue(z,"inactivityTimeout",600000);if(!y){d=function(){};return}function x(){u.utils.clog("UIC self-terminated due to inactivity timeout.");u.destroy()}d=function(){if(A){clearTimeout(A);A=null}A=setTimeout(x,y)};d()};j=function(O,A){var N,F,D,M,J,L,z,E,G,K,I,y,x,H;if(e){u.utils.clog("TLT.init() called more than once. Ignoring.");return}if(TLT&&TLT.replay){return}N=u.getService("config");N.updateConfig(O);L=N.getModuleConfig("TLCookie")||{};K=L.sessionizationCookieName||"TLTSID";I=u.utils.getCookieValue(K);if(I==="DND"){if(g!=="destroyed"){u.destroy()}return}if(!u._updateModules()){if(g!=="destroyed"){u.destroy()}return}if(N.subscribe){N.subscribe("configupdated",u._reinitConfig)}e=true;g="loaded";try{if(typeof TLFExtensionNotify==="function"){TLFExtensionNotify("Initialized")}}catch(C){}F={type:"load",target:window.window,srcElement:window.window,currentTarget:window.window,bubbles:true,cancelBubble:false,cancelable:true,timeStamp:+new Date(),customLoad:true};M=u.getService("browserBase");D=new M.WebEvent(F);u._publishEvent(D);E=u.getService("ajax");z=u.getServiceConfig("queue");G=z.queues||[];for(H=0;H-1){k=l.path.match(/(.*)(\/.*app.*)/);if(k!==null){l.path=k[2]}}return l},getIFrameWindow:function(l){var j=null;if(!l){return j}try{j=l.contentWindow||(l.contentDocument?l.contentDocument.parentWindow:null)}catch(k){}return j},getTagName:function(k){var j="";if(g.isUndefOrNull(k)){return j}if(k===document||k.nodeType===9){j="document"}else{if(k===window||k===window.window){j="window"}else{if(typeof k==="string"){j=k.toLowerCase()}else{if(k.tagName){j=k.tagName.toLowerCase()}else{if(k.nodeName){j=k.nodeName.toLowerCase()}else{j=""}}}}}return j},getTlType:function(l){var j,k,m="";if(g.isUndefOrNull(l)||!l.type){return m}j=l.type.toLowerCase();k=j+":";if(l.subType){k+=l.subType.toLowerCase()}m=d[k]||j;return m},isIFrameDescendant:function(k){var j=g.getWindow(k);return(j?(j!=TLT._getLocalTop()):false)},getOrientationMode:function(j){var k="INVALID";if(typeof j!=="number"){return k}switch(j){case 0:case 180:case 360:k="PORTRAIT";break;case 90:case -90:case 270:k="LANDSCAPE";break;default:k="UNKNOWN";break}return k},clog:(function(j){return function(){}}(window)),trim:function(j){if(!j||!j.toString){return j}return j.toString().replace(/^\s+|\s+$/g,"")},ltrim:function(j){if(!j||!j.toString){return j}return j.toString().replace(/^\s+/,"")},rtrim:function(j){if(!j||!j.toString){return j}return j.toString().replace(/\s+$/,"")},setCookie:function(r,j,q,t,m){var o,p,n,l,k="",s;if(!r){return}r=encodeURIComponent(r);j=encodeURIComponent(j);n=(m||location.hostname).split(".");s=";path="+(t||"/");if(typeof q==="number"){if(this.isIE){l=new Date();l.setTime(l.getTime()+(q*1000));k=";expires="+l.toUTCString()}else{k=";max-age="+q}}for(p=n.length,o=(p===1?1:2);o<=p;o+=1){document.cookie=r+"="+j+";domain="+n.slice(-o).join(".")+s+k;if(this.getCookieValue(r)===j){break}if(p===1){document.cookie=r+"="+j+s+k}}},getCookieValue:function(p,r){var m,n,l,q,k=null,j;try{r=r||document.cookie;if(!p||!p.toString){return null}p+="=";j=p.length;q=r.split(";");for(m=0,n=q.length;m-1?l:k.length]=[m,n]};this.get=function(m){var l=k[j(k,m)];return(l?l[1]:undefined)};this.clear=function(){k=[]};this.has=function(l){return(j(k,l)>=0)};this.remove=function(m){var l=j(k,m);if(l>=0){k.splice(l,1)}};this["delete"]=this.remove}}())};if(typeof TLT==="undefined"||!TLT){window.TLT={}}TLT.utils=g}());(function(){TLT.EventTarget=function(){this._handlers={}};TLT.EventTarget.prototype={constructor:TLT.EventTarget,publish:function(c,f){var d=0,a=0,b=this._handlers[c],e={type:c,data:f};if(typeof b!=="undefined"){for(a=b.length;d1){c=j[0];e=j[1]}else{c=j[0];e=j[0]}h[c]=(function(i){return function(){var k=d.utils.convertToArray(arguments);k.unshift(f);return d[i].apply(d,k)}}(e))}h.utils=d.utils;return h}}());TLT.addService("config",function(a){function d(f,e){a.utils.extend(true,f,e);c.publish("configupdated",c.getConfig())}var b={core:{},modules:{},services:{}},c=a.utils.extend(false,a.utils.createObject(new TLT.EventTarget()),{getConfig:function(){return b},updateConfig:function(e){d(b,e)},getCoreConfig:function(){return b.core},updateCoreConfig:function(e){d(b.core,e)},getServiceConfig:function(e){return b.services[e]||{}},updateServiceConfig:function(f,e){if(typeof b.services[f]==="undefined"){b.services[f]={}}d(b.services[f],e)},getModuleConfig:function(e){return b.modules[e]||{}},updateModuleConfig:function(f,e){if(typeof b.modules[f]==="undefined"){b.modules[f]={}}d(b.modules[f],e)},destroy:function(){b={core:{},modules:{},services:{}}}});return c});TLT.addService("queue",function(w){var B=w.utils,I=null,f={},o=600000,g=w.getService("ajax"),n=w.getService("browser"),p=w.getService("encoder"),k=w.getService("serializer"),F=w.getService("config"),i=w.getService("message"),s=null,H={},c=true,v={5:{limit:300,count:0},6:{limit:400,count:0}},m=[],r=false,l=(function(){var N={};function Q(R){return typeof N[R]!=="undefined"}function J(R,S){if(!Q(R)){N[R]={lastOffset:0,data:[],queueId:R,url:S.url,eventThreshold:S.eventThreshold,sizeThreshold:S.sizeThreshold||0,size:-1,serializer:S.serializer,encoder:S.encoder,crossDomainEnabled:!!S.crossDomainEnabled,crossDomainIFrame:S.crossDomainIFrame}}return N[R]}function L(R){if(Q(R)){delete N[R]}}function O(R){if(Q(R)){return N[R]}return null}function M(S){var R=O(S);if(R!==null){R.data=[]}}function P(R){var S=null;if(Q(R)){S=O(R).data;M(R)}return S}function K(T,V){var R=null,U=null,X=window.tlBridge,S=window.iOSJSONShuttle;try{U=k.serialize(V)}catch(W){U="Serialization failed: "+(W.name?W.name+" - ":"")+W.message;V={error:U}}if((typeof X!=="undefined")&&(typeof X.addMessage==="function")){X.addMessage(U)}else{if((typeof S!=="undefined")&&(typeof S==="function")){S(U)}else{if(Q(T)){R=O(T);R.data.push(V);R.data=w.redirectQueue(R.data);if(R.sizeThreshold){U=k.serialize(R.data);R.size=U.length}return R.data.length}}}return 0}return{exists:Q,add:J,remove:L,reset:function(){N={}},get:O,clear:M,flush:P,push:K}}());function b(J){if(J&&J.id){B.extend(true,m[J.id-1],{xhrRspEnd:i.createMessage({type:0}).offset,success:J.success,statusCode:J.statusCode,statusText:J.statusText})}}function q(){return window.location.pathname}function a(L,P,M,O){var J=l.get(L),N={name:P,value:M},K=null;if(typeof P!=="string"||typeof M!=="string"){return}if(!J.headers){J.headers={once:[],always:[]}}K=!!O?J.headers.always:J.headers.once;K.push(N)}function G(L,O){var N=0,K=0,J=l.get(L),P=J.headers,M=null;O=O||{};function Q(S,U){var T=0,R=0,V=null;for(T=0,R=S.length;T(o+60000)){return}R.lastOffset=Q[S-1].offset;M["X-Tealeaf-MessageTypes"]=h(Q);Q=i.wrapMessages(Q);if(I.xhrLogging){U=Q.serialNumber;m[U-1]={serialNumber:U,xhrReqStart:O};Q.log={xhr:m}}if(X){Q=k.serialize(Q,X)}if(K){P=p.encode(Q,K);if(P){if(P.data&&!P.error){Q=P.data;M["Content-Encoding"]=P.encoding}else{Q=P.error}}}E();G(L,M);if(R.crossDomainEnabled){V=B.getIFrameWindow(R.crossDomainIFrame);if(!V){return}N={request:{id:U,url:R.url,async:!W,headers:M,data:Q}};if(!B.isIE&&typeof window.postMessage==="function"){V.postMessage(N,R.crossDomainIFrame.src)}else{try{V.sendMessage(N)}catch(T){return}}}else{g.sendRequest({id:U,oncomplete:b,url:R.url,async:!W,headers:M,data:Q})}y(L)}function e(M){var J=null,L=I.queues,K=0;for(K=0;Ko){l.flush(L);w.destroy();return}}K=l.push(L,O);M=J.size;if((K>=J.eventThreshold||M>=J.sizeThreshold)&&c&&w.getState()!=="unloading"){A(L)}}function t(L){var J,K=false;if(!L||!L.type){return true}J=v[L.type];if(J){J.count+=1;if(J.count>J.limit){K=true;if(J.count===J.limit+1){j("DEFAULT",{type:16,dataLimit:{messageType:L.type,maxCount:J.limit}})}}}return K}function d(L){var K=null,O=I.queues,N="",M=0,J=0;for(M=0;M0){C(K.qid,K.timerInterval)}});F.subscribe("configupdated",x);r=true}function D(){if(c){e(!I.asyncReqOnUnload)}F.unsubscribe("configupdated",x);z();l.reset();I=null;s=null;r=false}return{init:function(){if(!r){u(F.getServiceConfig("queue")||{})}else{}},destroy:function(){D()},_getQueue:function(J){return l.get(J).data},setAutoFlush:function(J){if(J===true){c=true}else{c=false}},flush:function(J){J=J||s.qid;if(!l.exists(J)){throw new Error("Queue: "+J+" does not exist!")}A(J)},flushAll:function(J){return e(!!J)},post:function(K,L,J){if(!w.isInitialized()){return}J=J||d(K);if(!l.exists(J)){return}if(!t(L)){j(J,L)}}}});TLT.addService("browserBase",function(r){var h,L=r.utils,i={optgroup:true,option:true,nobr:true},q={},e,n=null,A,w,g,u,F=false;function s(){e=r.getService("config");n=r.getService("serializer");A=e?e.getServiceConfig("browser"):{};w=A.hasOwnProperty("blacklist")?A.blacklist:[];g=A.hasOwnProperty("customid")?A.customid:[]}function b(){s();if(e){e.subscribe("configupdated",s)}F=true}function G(){if(e){e.unsubscribe("configupdated",s)}F=false}function v(P){var N,M,O;if(!P||!P.id||typeof P.id!=="string"){return false}for(N=0,M=w.length;N1){S[S.length]='["'+O[Q][0]+'",'+O[Q][1]+"]"}else{S[S.length]="["+n.serialize(O[Q][0],"json")+"]"}}return("["+S.join(",")+"]")}}());function K(N){var O={left:-1,top:-1},M;N=N||document;M=N.documentElement||N.body.parentNode||N.body;O.left=Math.round((typeof window.pageXOffset==="number")?window.pageXOffset:M.scrollLeft);O.top=Math.round((typeof window.pageYOffset==="number")?window.pageYOffset:M.scrollTop);return O}function J(M){return M&&typeof M.originalEvent!=="undefined"&&typeof M.isDefaultPrevented!=="undefined"&&!M.isSimulated}function k(M){if(!M){return null}if(M.type&&M.type.indexOf("touch")===0){if(J(M)){M=M.originalEvent}if(M.type==="touchstart"){M=M.touches[M.touches.length-1]}else{if(M.type==="touchend"){M=M.changedTouches[0]}}}return M}function t(P){var S=P||window.event,R=document.documentElement,M=document.body,Q=false,O=null,N=0;if(J(S)){S=S.originalEvent}if(typeof P==="undefined"||typeof S.target==="undefined"){S.target=S.srcElement||window.window;S.timeStamp=Number(new Date());if(S.pageX===null||typeof S.pageX==="undefined"){S.pageX=S.clientX+((R&&R.scrollLeft)||(M&&M.scrollLeft)||0)-((R&&R.clientLeft)||(M&&M.clientLeft)||0);S.pageY=S.clientY+((R&&R.scrollTop)||(M&&M.scrollTop)||0)-((R&&R.clientTop)||(M&&M.clientTop)||0)}S.preventDefault=function(){this.returnValue=false};S.stopPropagation=function(){this.cancelBubble=true}}if(window.chrome&&S.path!==undefined&&S.type==="click"){if(S.path.length===undefined){return S}for(N=0;N=0&&V.indexthis.fullXpathList.length){return false}for(T=0,R=S.fullXpathList.length;T body",document)[0]){u.Sizzle=s}}catch(r){try{if(v===w(document).find("html > body").get()[0]){u.Sizzle=function(z,y){return w(y).find(z).get()}}}catch(p){d.fail("Sizzle was not found",e.NO_QUERY_SELECTOR)}}}}else{u.css=function(z,y){y=y||document;return y.querySelectorAll(z)}}return u.css(q,t)}},n=(function(){var p=new l.WeakMap();return{add:function(q){var r=p.get(q)||[o(q),0];r[1]+=1;p.set(q,r);return r[0]},find:function(q){var r=p.get(q);return r?r[0]:null},remove:function(q){var r=p.get(q);if(r){r[1]-=1;if(r[1]<=0){p.remove(q)}}}}}());function i(){a.xpath=f.queryDom.xpath;if(typeof document.addEventListener==="function"){g=function(r,p,q){r.addEventListener(p,q,b)};c=function(r,p,q){r.removeEventListener(p,q,b)}}else{if(typeof document.attachEvent!=="undefined"){g=function(r,p,q){r.attachEvent("on"+p,q)};c=function(r,p,q){r.detachEvent("on"+p,q)}}else{throw new Error("Unsupported browser")}}k=true}return{init:function(){if(!k){i()}else{}},destroy:function(){k=false},getServiceName:function(){return"W3C"},query:function(s,q,p){try{return a.find(s,q,p)[0]||null}catch(r){return[]}},queryAll:function(s,q,p){try{return a.find(s,q,p)}catch(r){return[]}},subscribe:function(p,s,q){var r=n.add(q);g(s,p,r)},unsubscribe:function(p,t,q){var r=n.find(q);if(r){try{c(t,p,r)}catch(s){}n.remove(q)}}}});TLT.addService("ajax",function(d){var i=d.utils,g,k=false,h=false;function e(n){var m="",l=[];for(m in n){if(n.hasOwnProperty(m)){l.push([m,n[m]])}}return l}function f(n){var m="",l="?";for(m in n){if(n.hasOwnProperty(m)){l+=encodeURIComponent(m)+"="+encodeURIComponent(n[m])+"&"}}return l.slice(0,-1)}function j(l){var n,o=false,m=f(l.headers);if(typeof l.data==="string"){n=l.data}else{n=l.data?new Uint8Array(l.data):""}o=navigator.sendBeacon(l.url+m,n);return o}function a(m){if(typeof m!=="function"){return}return function l(o){var q,n,p=false;if(!o){return}q=o.target;if(!q){return m(o)}n=q.status;if(n>=200&&n<300){p=true}m({headers:i.extractResponseHeaders(q.getAllResponseHeaders()),responseText:q.responseText,statusCode:n,statusText:q.statusText,id:q.id,success:p})}}function c(t){var s=g(),m=[["X-Requested-With","XMLHttpRequest"]],r=0,n=typeof t.async!=="boolean"?true:t.async,p="",q=null,o,l;if(t.headers){m=m.concat(e(t.headers))}if(t.contentType){m.push(["Content-Type",t.contentType])}s.open(t.type.toUpperCase(),t.url,n);for(o=0,l=m.length;o=200&&s.status<300)});s=null}};s.send(t.data||null);q();if(t.timeout){r=window.setTimeout(function(){if(!s){return}s.onreadystatechange=function(){};if(s.readyState!==4){s.abort();if(typeof t.error==="function"){t.error({id:t.id,statusCode:s.status,statusText:"timeout",success:false})}}t.oncomplete({id:t.id,headers:i.extractResponseHeaders(s.getAllResponseHeaders()),responseText:(s.responseText||null),statusCode:s.status,statusText:"timeout",success:false});s=null},t.timeout)}}function b(){var l=d.getServiceConfig("queue");if(typeof window.XMLHttpRequest!=="undefined"){g=function(){return new XMLHttpRequest()}}else{g=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}k=!!l.useBeacon&&(typeof navigator.sendBeacon==="function");h=true}return{init:function(){if(!h){b()}},destroy:function(){h=false},sendRequest:function(l){var n=d.getState()==="unloading",m;l.type=l.type||"POST";if((n||!l.async)&&k){m=j(l);if(!m){c(l)}}else{c(l)}}}});TLT.addService("domCapture",function(x){var h=x.getService("config"),i=x.getService("browserBase"),u,g,e={captureFrames:false,removeScripts:true,removeComments:true},S={childList:true,attributes:true,attributeOldValue:true,characterData:true,subtree:true},a=(typeof window.MutationObserver!=="undefined"),v,E=S,J=[],T=[],t=[],w=0,C=100,c=false,o=false,K=false,F=1,q=function(){},r=function(){},z=function(){},W=x.utils;function D(){T=[];t=[];w=0;c=false}function O(aa){var Z,Y,X;if(!aa||!aa.length){return}aa=aa.sort(function(ac,ab){return ac.compare(ab)});for(Z=0;Z=C){if(!c){c=true}return}for(ac=0,X=aa.length;ac=0;Y-=1){X[Y].parentNode.removeChild(X[Y])}}return aa}function H(Z,X){var Y,aa;for(Y=0;Z.hasChildNodes()&&Y"}return X}function Q(ad,ae){var ac,Z,ab,aa,Y,X;if(!ae){return}aa=ad.getElementsByTagName("input");Y=ae.getElementsByTagName("input");if(Y){for(ac=0,X=Y.length;acZ.maxLength){ad={errorCode:101,error:"Captured length ("+ae+") exceeded limit ("+Z.maxLength+")."}}}return ad}}});TLT.addService("encoder",function(a){var f={},g=null,b=null,d=false;function e(j){var i=null;if(!j){return i}i=f[j];if(i&&typeof i.encode==="string"){i.encode=a.utils.access(i.encode)}return i}function h(i){f=i;g.subscribe("configupdated",b);d=true}function c(){g.unsubscribe("configupdated",b);d=false}b=function(){g=a.getService("config");h(g.getServiceConfig("encoder")||{})};return{init:function(){g=a.getService("config");if(!d){h(g.getServiceConfig("encoder")||{})}else{}},destroy:function(){c()},encode:function(m,l){var k,i,j={data:null,encoding:null,error:null};if((typeof m!=="string"&&!m)||!l){j.error="Invalid "+(!m?"data":"type")+" parameter.";return j}k=e(l);if(!k){j.error="Specified encoder ("+l+") not found.";return j}if(typeof k.encode!=="function"){j.error="Configured encoder ("+l+") encode method is not a function.";return j}try{i=k.encode(m)}catch(n){j.error="Encoding failed: "+(n.name?n.name+" - ":"")+n.message;return j}if(!i||a.utils.getValue(i,"buffer",null)===null){j.error="Encoder ("+l+") returned an invalid result.";return j}j.data=i.buffer;j.encoding=k.defaultEncoding;return j}}});TLT.addService("message",function(v){var O=v.utils,q=0,s=0,G=0,j=0,r=new Date(),i=v.getService("browserBase"),b=v.getService("browser"),h=v.getService("config"),z=h.getServiceConfig("message")||{},m=window.location.href,L=window.location.hostname,P=z.hasOwnProperty("privacy")?z.privacy:[],c,C={},M={lower:"x",upper:"X",numeric:"9",symbol:"@"},f=parseFloat((window.devicePixelRatio||1).toFixed(2)),g=window.screen||{},a=g.width||0,x=g.height||0,N=i.getNormalizedOrientation(),k=!O.isiOS?a:Math.abs(N)===90?x:a,B=!O.isiOS?x:Math.abs(N)===90?a:x,J=(window.screen?window.screen.height-window.screen.availHeight:0),I=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,F=false;function e(R){var Q="",S=R.timestamp||(new Date()).getTime();delete R.timestamp;this.type=R.type;this.offset=S-r.getTime();this.screenviewOffset=0;if(R.type===2){q=s;s=S;if(R.screenview.type==="UNLOAD"){this.screenviewOffset=S-(q||r.getTime())}}else{if(s){this.screenviewOffset=S-s}}if(!this.type){return}this.count=(j+=1);this.fromWeb=true;for(Q in R){if(R.hasOwnProperty(Q)){this[Q]=R[Q]}}}C.PVC_MASK_EMPTY=function(Q){return""};C.PVC_MASK_BASIC=function(R){var Q="XXXXX";if(typeof R!=="string"){return""}return(R.length?Q:"")};C.PVC_MASK_TYPE=function(U){var R,T=0,Q=0,S="";if(typeof U!=="string"){return S}R=U.split("");for(T=0,Q=R.length;T=0;T-=1){W=c[T];if(typeof W.pattern==="object"){W.cRegex=new RegExp(W.pattern.regex,W.pattern.flags)}else{c.splice(T,1)}}}function y(){if(h.subscribe){h.subscribe("configupdated",w)}w();F=true}function H(){h.unsubscribe("configupdated",w);F=false}return{init:function(){if(!F){y()}else{}},destroy:function(){H()},applyPrivacyToNode:p,applyPrivacyToMessage:o,applyPrivacyToTarget:D,applyPrivacyPatterns:E,isPrivacyMatched:t,createMessage:function(Q){if(typeof Q.type==="undefined"){throw new TypeError("Invalid queueEvent given!")}return o(new e(Q))},wrapMessages:function(R){var Q={messageVersion:"9.0.0.0",serialNumber:(G+=1),sessions:[{id:v.getPageId(),startTime:r.getTime(),timezoneOffset:r.getTimezoneOffset(),messages:R,clientEnvironment:{webEnvironment:{libVersion:"5.5.0.1814",domain:L,page:m,referrer:document.referrer,screen:{devicePixelRatio:f,deviceWidth:k,deviceHeight:B,deviceToolbarHeight:J,width:I,height:n,orientation:N}}}}]},S=Q.sessions[0].clientEnvironment.webEnvironment.screen;S.orientationMode=O.getOrientationMode(S.orientation);return Q}}});TLT.addService("serializer",function(core){function serializeToJSON(obj){var str,key,len=0;if(typeof obj!=="object"||obj===null){switch(typeof obj){case"function":case"undefined":return"null";case"string":return'"'+obj.replace(/\"/g,'\\"')+'"';default:return String(obj)}}else{if(Object.prototype.toString.call(obj)==="[object Array]"){str="[";for(key=0,len=obj.length;key0){str=str.substring(0,str.length-1)}str+=String.fromCharCode(str.charCodeAt(0)+2);return str}var configService=core.getService("config"),serialize={},parse={},defaultSerializers={json:(function(){if(typeof window.JSON!=="undefined"){return{serialize:window.JSON.stringify,parse:window.JSON.parse}}return{serialize:serializeToJSON,parse:function(data){return eval("("+data+")")}}}())},updateConfig=null,isInitialized=false;function addObjectIfExist(paths,rootObj,propertyName){var i,len,obj;paths=paths||[];for(i=0,len=paths.length;it){localStorage.removeItem(x)}else{v=u[1]}}return v}function s(v,u){var t;if(!localStorage||!v){return}u=u||a();t=Date.now()+h;localStorage.setItem(v,t+"|"+u);return f(v)}function e(t){var w=[],v=p.getValue(t,"sessionIDUsesCookie",true),u=p.getValue(t,"sessionIDUsesStorage",false);if(t.tlAppKey){n=t.tlAppKey;w.push({name:"X-Tealeaf-SaaS-AppKey",value:n})}if(t.visitorCookieName){b=t.visitorCookieName}if(t.wcxCookieName){g=t.wcxCookieName}o=p.getCookieValue(g);if(o){w.push({name:"X-WCXSID",value:o})}if(t.sessionizationCookieName){l=t.sessionizationCookieName}if(u){h=p.getValue(t,"sessionIDStorageTTL",600000);m=f(l)}if(!m&&v){m=p.getCookieValue(l)}if(!m){if(o){m=o}else{if(u){m=s(l)}if(!m&&v){m=j()}}}if(!m){m="Check7UIC7Cookie7Configuration77"}w.push({name:"X-Tealeaf-SaaS-TLTSID",value:m});if(w.length){TLT.registerBridgeCallbacks([{enabled:true,cbType:"addRequestHeaders",cbFunction:function(){return w}}])}}function q(y){var v,u,t=false,x,w=i.appCookieWhitelist;if(!w||!w.length){return t}for(v=0,u=w.length;v=0){try{C=decodeURIComponent(u.substr(0,w))}catch(B){C=u.substr(0,w)}}t=u.substr(w+1);if(q(C)){try{z[C]=decodeURIComponent(t)}catch(A){z[C]=t}}}if(c&&!z[b]){z[b]=c}d.post({type:14,cookies:z})}return{init:function(){i=d.getConfig()||{};e(i);k()},destroy:function(){if(i.sessionIDUsesStorage){s(l,m)}},onevent:function(t){switch(t.type){case"screenview_load":if(p.getValue(i,"appCookieWhitelist.length",0)){k();r()}break;default:break}}}});if(TLT&&typeof TLT.addModule==="function"){TLT.addModule("overstat",function(e){var A=e.utils,p={},C={updateInterval:250,hoverThresholdMin:1000,hoverThresholdMax:2*60*1000,gridCellMaxX:10,gridCellMaxY:10,gridCellMinWidth:20,gridCellMinHeight:20},d=50;function y(H){var I=e.getConfig()||{},J=I[H];return typeof J==="number"?J:C[H]}function G(N,H){var M=A.getValue(N,"webEvent.target",{}),I=A.getValue(M,"element.tagName")||"",J=I.toLowerCase()==="input"?A.getValue(M,"element.type"):"",L=A.getTlType(M),K={type:9,event:{hoverDuration:N.hoverDuration,hoverToClick:A.getValue(H,"hoverToClick")},target:{id:M.id||"",idType:M.idType||"",name:M.name||"",tlType:L,type:I,subType:J,position:{width:A.getValue(M,"element.offsetWidth",0),height:A.getValue(M,"element.offsetHeight",0),relXY:N.relXY}}};if((typeof K.target.id)===undefined||K.target.id===""){return}e.post(K)}function i(H){if(H&&!H.nodeType&&H.element){H=H.element}return H}function s(H){H=i(H);return !H||H===document.body||H===document.html||H===document}function j(H){H=i(H);if(!H){return null}return H.parentNode}function n(H){H=i(H);if(!H){return null}return H.offsetParent||H.parentElement||j(H)}function w(I,J){var H=0;if(!J||J===I){return false}J=j(J);while(!s(J)&&H++=d){A.clog("Overstat isChildOf() hit iterations limit")}return false}function E(H){if(H.nativeEvent){H=H.nativeEvent}return H}function z(H){return E(H).target}function h(H){H=i(H);if(!H){return -1}return H.nodeType||-1}function D(H){H=i(H);if(!H){return""}return H.tagName?H.tagName.toUpperCase():""}function t(H){if(!H){return}if(H.nativeEvent){H=H.nativeEvent}if(H.stopPropagation){H.stopPropagation()}else{if(H.cancelBubble){H.cancelBubble()}}}function m(I){var H=D(I);return h(I)!==1||H==="TR"||H==="TBODY"||H==="THEAD"}function g(H){if(!H){return""}if(H.xPath){return H.xPath}H=i(H);return e.getXPathFromNode(H)}function B(I,H){var J=p[I];if(J&&J[H]){return J[H]()}}function v(I,K,J,H){this.xPath=I!==null?g(I):"";this.domNode=I;this.hoverDuration=0;this.hoverUpdateTime=0;this.gridX=Math.max(K,0);this.gridY=Math.max(J,0);this.parentKey="";this.updateTimer=-1;this.disposed=false;this.childKeys={};this.webEvent=H;this.getKey=function(){return this.xPath+":"+this.gridX+","+this.gridY};this.update=function(){var M=new Date().getTime(),L=this.getKey();if(this.hoverUpdateTime!==0){this.hoverDuration+=M-this.hoverUpdateTime}this.hoverUpdateTime=M;clearTimeout(this.updateTimer);this.updateTimer=setTimeout(function(){B(L,"update")},y("updateInterval"))};this.dispose=function(L){clearTimeout(this.updateTimer);delete p[this.getKey()];this.disposed=true;if(L){var M=this.clone();p[M.getKey()]=M;M.update()}};this.process=function(P){clearTimeout(this.updateTimer);if(this.disposed){return false}var N=false,O=this,M=null,L=0;if(this.hoverDuration>=y("hoverThresholdMin")){this.hoverDuration=Math.min(this.hoverDuration,y("hoverThresholdMax"));N=true;G(this,{hoverToClick:!!P});while(typeof O!=="undefined"&&L++=d){A.clog("Overstat process() hit iterations limit")}}else{this.dispose(P)}return N};this.clone=function(){var L=new v(this.domNode,this.gridX,this.gridY);L.parentKey=this.parentKey;return L}}function F(J,H,K,I){return new v(J,H,K,I)}function r(J){if(J&&J.position){return{x:J.position.x,y:J.position.y}}J=i(J);var H=J&&J.getBoundingClientRect?J.getBoundingClientRect():null,N=H?H.left:(J?J.offsetLeft:0),M=H?H.top:(J?J.offsetHeight:0),P=N,O=M,K=0,I=0,L=n(J),Q=0;while(L&&Q++=d){A.clog("Overstat calculateNodeOffset() hit iterations limit")}if(isNaN(N)){N=0}if(isNaN(M)){M=0}return{x:N,y:M}}function a(L,J,I){L=i(L);var K=r(L),H=J-K.x,M=I-K.y;if(!isFinite(H)){H=0}if(!isFinite(M)){M=0}return{x:H,y:M}}function x(H,I){H=Math.floor(Math.min(Math.max(H,0),1)*100)/100;I=Math.floor(Math.min(Math.max(I,0),1)*100)/100;return H+","+I}function f(L,O,N){L=i(L);var J=L.getBoundingClientRect?L.getBoundingClientRect():null,T=J?J.width:L.offsetWidth,K=J?J.height:L.offsetHeight,M=T&&T>0?Math.max(T/y("gridCellMaxX"),y("gridCellMinWidth")):y("gridCellMinWidth"),Q=K&&K>0?Math.max(K/y("gridCellMaxY"),y("gridCellMinHeight")):y("gridCellMinHeight"),I=Math.floor(O/M),H=Math.floor(N/Q),S=T>0?O/T:0,P=K>0?N/K:0,R="";if(!isFinite(I)){I=0}if(!isFinite(H)){H=0}R=x(S,P);return{x:I,y:H,relXY:R}}function c(M){var N=M,O=M.getKey(),I={},J=null,L=null,K=false,H=0;I[O]=true;while(typeof N!=="undefined"&&H++=d){A.clog("Overstat cleanupHoverEvents() hit iterations limit")}N=p[N.parentKey]}for(J in p){if(p.hasOwnProperty(J)&&!I[J]){N=p[J];if(N){if(!K){K=N.process()}else{N.dispose()}}}}}function u(I,K){var L=null,H=null,J=false;for(H in p){if(p.hasOwnProperty(H)){L=p[H];if(L&&L.domNode===I&&L.getKey()!==K){if(!J){J=L.process()}else{L.dispose()}}}}}function b(L,J,K){if(!J){J=L.target}if(s(J)){return null}if(A.isiOS||A.isAndroid){return null}var H,Q,M,P,N,O,I;if(!m(J)){H=a(J,L.position.x,L.position.y);Q=f(J,H.x,H.y);M=new v(J,Q.x,Q.y,L);M.relXY=Q.relXY;P=M.getKey();if(p[P]){M=p[P]}else{p[P]=M}M.update();if(!K){I=n(J);if(I){O=b(L,I,true);if(O!==null){N=O.getKey();P=M.getKey();if(P!==N){M.parentKey=N}}}c(M)}}else{M=b(L,n(J),K)}return M}function q(H){H=E(H);if(w(H.target,H.relatedTarget)){return}u(H.target)}function l(J){var K=null,H=null,I=false;for(H in p){if(p.hasOwnProperty(H)){K=p[H];if(K){if(!I){I=K.process(true)}else{K.dispose()}}}}}function o(H){e.performFormCompletion(true)}function k(I){var H=A.getValue(I,"target.id");if(!H){return}switch(I.type){case"mousemove":b(I);break;case"mouseout":q(I);break;case"click":l(I);break;case"submit":o(I);break;default:break}}return{init:function(){},destroy:function(){var I,H;for(I in p){if(p.hasOwnProperty(I)){p[I].dispose();delete p[I]}}},onevent:function(H){if(typeof H!=="object"||!H.type){return}k(H)},onmessage:function(H){},createHoverEvent:F,cleanupHoverEvents:c,eventMap:p}})}else{}if(TLT&&typeof TLT.addModule==="function"){TLT.addModule("performance",function(a){var g={loadReceived:false,unloadReceived:false,perfEventSent:false},e=0,c,h=a.utils;function f(l,k){if(typeof l!=="string"){return false}if(!k||typeof k!=="object"){return false}return(k[l]===true)}function b(m,k){var o=0,l={},p="",n=0;if(!m||typeof m!=="object"||!m.navigationStart){return{}}o=m.navigationStart;for(p in m){if(Object.prototype.hasOwnProperty.call(m,p)||typeof m[p]==="number"){if(!f(p,k)){n=m[p];if(typeof n==="number"&&n&&p!=="navigationStart"){l[p]=n-o}else{l[p]=n}}}}return l}function d(m){var n=0,l,k;if(m){l=(m.responseEnd>0&&m.responseEndl){n=k-l}}return n}function i(l){var k=a.getStartTime();if(l.timestamp>k&&!e){e=l.timestamp-k}}function j(n){var l="UNKNOWN",o={type:7,performance:{}},k,p,m;if(!n||g.perfEventSent){return}p=n.performance||{};m=p.timing;k=p.navigation;if(m){o.performance.timing=b(m,c.filter);o.performance.timing.renderTime=d(m)}else{if(c.calculateRenderTime){o.performance.timing={renderTime:e,calculated:true}}else{return}}if(c.renderTimeThreshold&&o.performance.timing.renderTime>c.renderTimeThreshold){o.performance.timing.invalidRenderTime=o.performance.timing.renderTime;delete o.performance.timing.renderTime}if(k){switch(k.type){case 0:l="NAVIGATE";break;case 1:l="RELOAD";break;case 2:l="BACKFORWARD";break;default:l="UNKNOWN";break}o.performance.navigation={type:l,redirectCount:k.redirectCount}}a.post(o);g.perfEventSent=true}return{init:function(){c=a.getConfig()},destroy:function(){c=null},onevent:function(k){if(typeof k!=="object"||!k.type){return}switch(k.type){case"load":g.loadReceived=true;i(k);setTimeout(function(){if(a.isInitialized()){j(window)}},h.getValue(c,"delay",2000));break;case"unload":g.unloadReceived=true;if(!g.perfEventSent){j(window)}break;default:break}},onmessage:function(k){}}})}else{}TLT.addModule("replay",function(aj){var ak=aj.utils,I=0,ae={scale:0,timestamp:0},X={},F=null,e=[],Y=0,D=true,Z=null,A=null,T=false,l=0,R="",y="",L=(new Date()).getTime(),k=0,N=null,ah=null,M=null,B=null,af=null,S=null,V=0,v=0,ac=null,u={inFocus:false},J=null,aa=aj.getConfig()||{},x=ak.getValue(aa,"viewPortWidthHeightLimit",10000),ad=1,C=1,O,ab={cellMaxX:10,cellMaxY:10,cellMinWidth:20,cellMinHeight:20};function s(){var al;for(al in X){if(X.hasOwnProperty(al)){X[al].visitedCount=0}}}function r(an){var al=false,am="|button|image|submit|reset|",ao=null;if(typeof an!=="object"||!an.type){return al}switch(an.type.toLowerCase()){case"input":ao="|"+(an.subType||"")+"|";if(am.indexOf(ao.toLowerCase())===-1){al=false}else{al=true}break;case"select":case"textarea":al=false;break;default:al=true;break}return al}function h(am){var al=[];am=am.parentNode;while(am){al.push(am);am=am.parentNode}return al}function w(al){return ak.some(al,function(an){var am=ak.getTagName(an);if(am==="a"||am==="button"){return an}return null})}function n(al){var am=al.type,an=al.target;if(typeof am==="string"){am=am.toLowerCase()}else{am="unknown"}if(am==="blur"){am="focusout"}if(am==="change"){if(an.type==="INPUT"){switch(an.subType){case"text":case"date":case"time":am=an.subType+"Change";break;default:am="valueChange";break}}else{if(an.type==="TEXTAREA"){am="textChange"}else{am="valueChange"}}}return am}function z(al,an,am){var ao=null;if(!al){return ao}an=an||{};an.eventOn=D;D=false;if(am){ao="dcid-"+ak.getSerialNumber()+"."+(new Date()).getTime()+"s";window.setTimeout(function(){an.dcid=ao;aj.performDOMCapture(al,an)},am)}else{delete an.dcid;ao=aj.performDOMCapture(al,an)}return ao}function H(am,az,an){var au,ar,aB=false,ao={},aA=false,aq,aw,ay=null,at=0,ax,av,al,ap;if(!am||(!az&&!an)){return ay}if(!az&&!(am==="load"||am==="unload")){return ay}aa=aj.getConfig()||{};aA=ak.getValue(aa,"domCapture.enabled",false);if(!aA||ak.isLegacyIE){return ay}aw=ak.getValue(aa,"domCapture.triggers")||[];for(au=0,ax=aw.length;!aB&&au0){an.target.dwell=aw.dwell}if(typeof aw.visitedCount==="number"){an.target.visitedCount=aw.visitedCount}if(typeof aw.prevState!=="undefined"){an.prevState=aw.prevState}if(au){an.event.subType=au}av=w(at);an.target.isParentLink=!!av;if(av){if(av.href){an.target.currState=an.target.currState||{};an.target.currState.href=an.target.currState.href||av.href}if(av.value){an.target.currState=an.target.currState||{};an.target.currState.value=an.target.currState.value||av.value}if(av.innerText||av.textContent){an.target.currState=an.target.currState||{};an.target.currState.innerText=ak.trim(an.target.currState.innerText||av.innerText||av.textContent)}}if(ak.isUndefOrNull(an.target.currState)){delete an.target.currState}if(ak.isUndefOrNull(an.target.name)){delete an.target.name}if(an.event.type!=="click"||r(ap)){ao=H(an.event.type,ap);if(ao){an.dcid=ao}}return an}function E(al){aj.post(al)}function G(ap){var an=0,al,aq=ap.length,at,ar,ao,au={mouseout:true,mouseover:true},am=[];for(an=0;an=0;ao--){e[ao].target.visitedCount=X[aq].visitedCount}}al=e[e.length-1];if(al){al.target.dwell=X[aq].dwell;al.focusInOffset=X[aq].focusInOffset;al.target.visitedCount=X[aq].visitedCount;if(al.event.type==="click"){if(!r(al.target)){al.target.currState=ak.getValue(am,"target.state")||ak.getValue(am,"target.currState");an=true}}else{if(al.event.type==="focus"){an=true}}if(an){al.event.type="blur";al.event.tlEvent="focusout";ap=H(al.event.type,am.target);if(ap){al.dcid=ap}}}G(e)}function m(ap,an){var am=false,ao=e.length,al=ao>0?e[ao-1]:null;if(!al){return am}if(al.target.id!==ap&&al.target.tltype!=="selectList"){if(an.type==="focus"||an.type==="click"||an.type==="change"){d(al.target.id,al);am=true}}return am}function c(am,al){if(typeof X[am]!=="undefined"&&!X[am].hasOwnProperty("focus")){o(am,al)}U(al,am);if(typeof X[am]!=="undefined"&&typeof X[am].prevState!=="undefined"){if(e[e.length-1].target.tlType==="textBox"||e[e.length-1].target.tlType==="selectList"){e[e.length-1].target.prevState=X[am].prevState}}}function q(aq){var ap,au,am,al,ao=ak.getValue(aq,"target.element",{}),av=ak.getValue(aq,"target.size.width",ao.offsetWidth),an=ak.getValue(aq,"target.size.height",ao.offsetHeight),at=ak.getValue(aq,"target.position.x",0),ar=ak.getValue(aq,"target.position.y",0);ap=av?Math.max(av/ab.cellMaxX,ab.cellMinWidth):ab.cellMinWidth;au=an?Math.max(an/ab.cellMaxY,ab.cellMinHeight):ab.cellMinHeight;am=Math.floor(at/ap);al=Math.floor(ar/au);if(!isFinite(am)){am=0}if(!isFinite(al)){al=0}return am+","+al}function b(ap,an){var am,al=true,ao=0;if(an.target.type==="select"&&J&&J.target.id===ap){J=null;return}if(!u.inFocus){o(ap,an)}ao=e.length;if(ao&&ak.getValue(e[ao-1],"event.type")!=="change"){c(ap,an)}am=q(an);ao=e.length;if(an.position.x===0&&an.position.y===0&&ao&&ak.getValue(e[ao-1],"target.tlType")==="radioButton"){al=false}else{an.target.position.relXY=am}if(ao&&ak.getValue(e[ao-1],"target.id")===ap){if(al){e[ao-1].target.position.relXY=am}}else{U(an,ap);if(r(an.target)){d(ap,an)}}J=an}function a(am){var al=am.orientation,an={type:4,event:{type:"orientationchange"},target:{prevState:{orientation:I,orientationMode:ak.getOrientationMode(I)},currState:{orientation:al,orientationMode:ak.getOrientationMode(al)}}};E(an);I=al}function ai(am){var al=false;if(!am){return al}al=(ae.scale===am.scale&&Math.abs((new Date()).getTime()-ae.timestamp)<500);return al}function j(al){ae.scale=al.scale;ae.rotation=al.rotation;ae.timestamp=(new Date()).getTime()}function K(){var al,am;al=ad-C;if(isNaN(al)){am="INVALID"}else{if(al<0){am="CLOSE"}else{if(al>0){am="OPEN"}else{am="NONE"}}}return am}function g(ap){var av=document.documentElement,ar=document.body,aw=window.screen,am=aw.width,an=aw.height,aq=ak.getValue(ap,"orientation",0),at=!ak.isiOS?am:Math.abs(aq)===90?an:am,ao={type:1,clientState:{pageWidth:document.width||(!av?0:av.offsetWidth),pageHeight:Math.max((!document.height?0:document.height),(!av?0:av.offsetHeight),(!av?0:av.scrollHeight)),viewPortWidth:window.innerWidth||av.clientWidth,viewPortHeight:window.innerHeight||av.clientHeight,viewPortX:Math.round(window.pageXOffset||(!av?(!ar?0:ar.scrollLeft):av.scrollLeft||0)),viewPortY:Math.round(window.pageYOffset||(!av?(!ar?0:ar.scrollTop):av.scrollTop||0)),deviceOrientation:aq,event:ak.getValue(ap,"type")}},au=ao.clientState,al;A=A||ao;if(au.event==="unload"&&au.viewPortHeight===au.pageHeight&&au.viewPortWidth===au.pageWidth){if(A.clientState.viewPortHeightau.pageHeight){au.viewPortY=au.pageHeight-au.viewPortHeight}if(au.viewPortY<0){au.viewPortY=0}al=!au.viewPortWidth?1:(at/au.viewPortWidth);au.deviceScale=al.toFixed(3);au.viewTime=0;if(B&&af){au.viewTime=af.getTime()-B.getTime()}if(ap.type==="scroll"){au.viewPortXStart=A.clientState.viewPortX;au.viewPortYStart=A.clientState.viewPortY}return ao}function p(){var al;if(Z){al=Z.clientState;if(al.viewPortHeight>0&&al.viewPortHeight0&&al.viewPortWidthau){aq=false}}}return aq}function t(al){var an={type:4,event:{type:al.type},target:{id:ak.getValue(al,"target.id"),idType:ak.getValue(al,"target.idType"),currState:ak.getValue(al,"target.state")}},am;am=H(al.type,al.target);if(am){an.dcid=am}E(an)}function Q(am){var al=ak.getValue(aa,"geolocation"),an;if(!al||!al.enabled){return}an=al.triggers||[];if(!an.length){return}if(an[0].event===am){TLT.logGeolocation()}}return{init:function(){e=[]},destroy:function(){d(F);e=[];if(p.timeoutId){window.clearTimeout(p.timeoutId);p.timeoutId=0}if(T){window.onerror=null;T=false}},onevent:function(am){var ap=null,an=null,al,ao;if(typeof am!=="object"||!am.type){return}if(f(am,N)){N=am;return}N=am;ap=ak.getValue(am,"target.id");if(Object.prototype.toString.call(X[ap])!=="[object Object]"){X[ap]={}}m(ap,am);ac=new Date();switch(am.type){case"hashchange":break;case"focus":an=o(ap,am);break;case"blur":an=d(ap,am);break;case"click":an=b(ap,am);break;case"change":an=c(ap,am);break;case"orientationchange":an=a(am);break;case"touchstart":ag(am);break;case"touchend":an=i(am);break;case"loadWithFrames":TLT.logScreenviewLoad("rootWithFrames");break;case"load":I=am.orientation;B=new Date();if(typeof window.orientation!=="number"||ak.isAndroid){ao=(window.screen.width>window.screen.height?90:0);al=window.orientation;if(Math.abs(al)!==ao&&!(al===180&&ao===0)){ak.isLandscapeZeroDegrees=true;if(Math.abs(al)===180||Math.abs(al)===0){I=90}else{if(Math.abs(al)===90){I=0}}}}setTimeout(function(){if(aj.isInitialized()){P(am)}},100);Q(am.type);TLT.logScreenviewLoad("root");break;case"screenview_load":M=new Date();s();an=H("load",null,am.name);break;case"screenview_unload":an=H("unload",null,am.name);break;case"resize":case"scroll":if(!af){af=new Date()}S=new Date();P(am);break;case"unload":if(e!==null){G(e)}af=new Date();P(am);TLT.logScreenviewUnload("root");break;default:t(am);break}F=ap;return an},onmessage:function(){}}});