/*! Script generated at: 2025-12-23T00:31:32.461Z */ /*! For license information please see index.js.LICENSE.txt */ !function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define("Happierleads",[],t):"object"===typeof exports?exports.Happierleads=t():e.Happierleads=t()}(this,(function(){return function(e){var t={};function __webpack_require__(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,i){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(__webpack_require__.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)__webpack_require__.d(i,n,function(t){return e[t]}.bind(null,n));return i},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="/",__webpack_require__(__webpack_require__.s=32)}([function(e,t,i){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function _has(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!==typeof i)throw new TypeError(i+"must be non-object");for(var n in i)_has(i,n)&&(e[n]=i[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),a);else for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"",t="[a-zA-Z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\.]+",i=new RegExp("".concat(t,"?@").concat(t,"\\.").concat(t),"g"),a=n(new Set(e.match(i)||[])).filter((function(e){return!/\.\./.test(e)})).map((function(e){return e.toLowerCase()}));return a}},function(e,t,i){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,i){"use strict";e.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){i-=o=i>2e3?2e3:i;do{r=r+(a=a+t[n++]|0)|0}while(--o);a%=65521,r%=65521}return a|r<<16|0}},function(e,t,i){"use strict";var n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();e.exports=function(e,t,i,a){var r=n,o=a+i;e^=-1;for(var s=a;s>>8^r[255&(e^t[s])];return-1^e}},function(e,t,i){"use strict";var n=i(0),a=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(l){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){r=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function buf2binstring(e,t){if(t<65534&&(e.subarray&&r||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o>>6,t[o++]=128|63&i):i<65536?(t[o++]=224|i>>>12,t[o++]=128|i>>>6&63,t[o++]=128|63&i):(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63,t[o++]=128|i>>>6&63,t[o++]=128|63&i);return t},t.buf2binstring=function(e){return buf2binstring(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;i4)l[n++]=65533,i+=r-1;else{for(a&=2===r?31:3===r?15:7;r>1&&i1?l[n++]=65533:a<65536?l[n++]=a:(a-=65536,l[n++]=55296|a>>10&1023,l[n++]=56320|1023&a)}return buf2binstring(l,n)},t.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;i>=0&&128===(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},function(e,t,i){"use strict";e.exports=function(){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}},function(e,t,i){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==i)throw new Error(o[i]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var d;if(d="string"===typeof t.dictionary?r.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(i=n.deflateSetDictionary(this.strm,d)))throw new Error(o[i]);this._dict_set=!0}}function deflate(e,t){var i=new Deflate(t);if(i.push(e,!0),i.err)throw i.msg||o[i.err];return i.result}Deflate.prototype.push=function(e,t){var i,o,s=this.strm,d=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"===typeof e?s.input=r.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new a.Buf8(d),s.next_out=0,s.avail_out=d),1!==(i=n.deflate(s,o))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(r.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==i);return 4===o?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),s.avail_out=0,!0)},Deflate.prototype.onData=function(e){this.chunks.push(e)},Deflate.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=Deflate,t.deflate=deflate,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,deflate(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,deflate(e,t)}},function(e,t,i){"use strict";var n,a=i(0),r=i(13),o=i(3),s=i(4),l=i(2),d=-2,h=258,c=262,u=103,f=113,_=666;function err(e,t){return e.msg=l[t],t}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){for(var t=e.length;--t>=0;)e[t]=0}function flush_pending(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),0!==i&&(a.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function flush_block_only(e,t){r._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,flush_pending(e.strm)}function put_byte(e,t){e.pending_buf[e.pending++]=t}function putShortMSB(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function read_buf(e,t,i,n){var r=e.avail_in;return r>n&&(r=n),0===r?0:(e.avail_in-=r,a.arraySet(t,e.input,e.next_in,r,i),1===e.state.wrap?e.adler=o(e.adler,t,r,i):2===e.state.wrap&&(e.adler=s(e.adler,t,r,i)),e.next_in+=r,e.total_in+=r,r)}function longest_match(e,t){var i,n,a=e.max_chain_length,r=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-c?e.strstart-(e.w_size-c):0,d=e.window,u=e.w_mask,f=e.prev,_=e.strstart+h,p=d[r+o-1],m=d[r+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(d[(i=t)+o]===m&&d[i+o-1]===p&&d[i]===d[r]&&d[++i]===d[r+1]){r+=2,i++;do{}while(d[++r]===d[++i]&&d[++r]===d[++i]&&d[++r]===d[++i]&&d[++r]===d[++i]&&d[++r]===d[++i]&&d[++r]===d[++i]&&d[++r]===d[++i]&&d[++r]===d[++i]&&r<_);if(n=h-(_-r),r=_-h,n>o){if(e.match_start=t,o=n,n>=s)break;p=d[r+o-1],m=d[r+o]}}}while((t=f[t&u])>l&&0!==--a);return o<=e.lookahead?o:e.lookahead}function fill_window(e){var t,i,n,r,o,s=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-c)){a.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=i=e.hash_size;do{n=e.head[--t],e.head[t]=n>=s?n-s:0}while(--i);t=i=s;do{n=e.prev[--t],e.prev[t]=n>=s?n-s:0}while(--i);r+=s}if(0===e.strm.avail_in)break;if(i=read_buf(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=i,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=r._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,n=r._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<15&&(s=2,n-=16),r<1||r>9||8!==i||n<8||n>15||t<0||t>9||o<0||o>4)return err(e,d);8===n&&(n=9);var l=new DeflateState;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(fill_window(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,flush_block_only(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-c&&(flush_block_only(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(flush_block_only(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(flush_block_only(e,!1),e.strm.avail_out),1)})),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],t.deflateInit=function(e,t){return deflateInit2(e,t,8,15,8,0)},t.deflateInit2=deflateInit2,t.deflateReset=deflateReset,t.deflateResetKeep=deflateResetKeep,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,0):d},t.deflate=function(e,t){var i,a,o,l;if(!e||!e.state||t>5||t<0)return e?err(e,d):d;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||a.status===_&&4!==t)return err(e,0===e.avail_out?-5:d);if(a.strm=e,i=a.last_flush,a.last_flush=t,42===a.status)if(2===a.wrap)e.adler=0,put_byte(a,31),put_byte(a,139),put_byte(a,8),a.gzhead?(put_byte(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),put_byte(a,255&a.gzhead.time),put_byte(a,a.gzhead.time>>8&255),put_byte(a,a.gzhead.time>>16&255),put_byte(a,a.gzhead.time>>24&255),put_byte(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),put_byte(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(put_byte(a,255&a.gzhead.extra.length),put_byte(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,0),put_byte(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),put_byte(a,3),a.status=f);else{var c=8+(a.w_bits-8<<4)<<8;c|=(a.strategy>=2||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(c|=32),c+=31-c%31,a.status=f,putShortMSB(a,c),0!==a.strstart&&(putShortMSB(a,e.adler>>>16),putShortMSB(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),flush_pending(e),o=a.pending,a.pending!==a.pending_buf_size));)put_byte(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),flush_pending(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindexo&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),flush_pending(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindexo&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.status=u)}else a.status=u;if(a.status===u&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&flush_pending(e),a.pending+2<=a.pending_buf_size&&(put_byte(a,255&e.adler),put_byte(a,e.adler>>8&255),e.adler=0,a.status=f)):a.status=f),0!==a.pending){if(flush_pending(e),0===e.avail_out)return a.last_flush=-1,0}else if(0===e.avail_in&&rank(t)<=rank(i)&&4!==t)return err(e,-5);if(a.status===_&&0!==e.avail_in)return err(e,-5);if(0!==e.avail_in||0!==a.lookahead||0!==t&&a.status!==_){var p=2===a.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(fill_window(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(flush_block_only(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(flush_block_only(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?1:2}(a,t):3===a.strategy?function(e,t){for(var i,n,a,o,s=e.window;;){if(e.lookahead<=h){if(fill_window(e),e.lookahead<=h&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+h;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(i=r._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(flush_block_only(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(flush_block_only(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?1:2}(a,t):n[a.level].func(a,t);if(3!==p&&4!==p||(a.status=_),1===p||3===p)return 0===e.avail_out&&(a.last_flush=-1),0;if(2===p&&(1===t?r._tr_align(a):5!==t&&(r._tr_stored_block(a,0,0,!1),3===t&&(zero(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),flush_pending(e),0===e.avail_out))return a.last_flush=-1,0}return 4!==t?0:a.wrap<=0?1:(2===a.wrap?(put_byte(a,255&e.adler),put_byte(a,e.adler>>8&255),put_byte(a,e.adler>>16&255),put_byte(a,e.adler>>24&255),put_byte(a,255&e.total_in),put_byte(a,e.total_in>>8&255),put_byte(a,e.total_in>>16&255),put_byte(a,e.total_in>>24&255)):(putShortMSB(a,e.adler>>>16),putShortMSB(a,65535&e.adler)),flush_pending(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==u&&t!==f&&t!==_?err(e,d):(e.state=null,t===f?err(e,-3):0):d},t.deflateSetDictionary=function(e,t){var i,n,r,s,l,h,c,u,f=t.length;if(!e||!e.state)return d;if(2===(s=(i=e.state).wrap)||1===s&&42!==i.status||i.lookahead)return d;for(1===s&&(e.adler=o(e.adler,t,f,0)),i.wrap=0,f>=i.w_size&&(0===s&&(zero(i.head),i.strstart=0,i.block_start=0,i.insert=0),u=new a.Buf8(i.w_size),a.arraySet(u,t,f-i.w_size,i.w_size,0),t=u,f=i.w_size),l=e.avail_in,h=e.next_in,c=e.input,e.avail_in=f,e.next_in=0,e.input=t,fill_window(i);i.lookahead>=3;){n=i.strstart,r=i.lookahead-2;do{i.ins_h=(i.ins_h<=0;)e[t]=0}var a=256,r=286,o=30,s=15,l=[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],d=[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],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);zero(u);var f=new Array(60);zero(f);var _=new Array(512);zero(_);var p=new Array(256);zero(p);var m=new Array(29);zero(m);var w,g,b,v=new Array(o);function StaticTreeDesc(e,t,i,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function TreeDesc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function d_code(e){return e<256?_[e]:_[256+(e>>>7)]}function put_short(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function send_bits(e,t,i){e.bi_valid>16-i?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=i-16):(e.bi_buf|=t<>>=1,i<<=1}while(--t>0);return i>>>1}function gen_codes(e,t,i){var n,a,r=new Array(16),o=0;for(n=1;n<=s;n++)r[n]=o=o+i[n-1]<<1;for(a=0;a<=t;a++){var l=e[2*a+1];0!==l&&(e[2*a]=bi_reverse(r[l]++,l))}}function init_block(e){var t;for(t=0;t8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function smaller(e,t,i,n){var a=2*t,r=2*i;return e[a]>1;i>=1;i--)pqdownheap(e,r,i);a=d;do{i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,r,1),n=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=n,r[2*a]=r[2*i]+r[2*n],e.depth[a]=(e.depth[i]>=e.depth[n]?e.depth[i]:e.depth[n])+1,r[2*i+1]=r[2*n+1]=a,e.heap[1]=a++,pqdownheap(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,n,a,r,o,l,d=t.dyn_tree,h=t.max_code,c=t.stat_desc.static_tree,u=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(r=0;r<=s;r++)e.bl_count[r]=0;for(d[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<573;i++)(r=d[2*d[2*(n=e.heap[i])+1]+1]+1)>p&&(r=p,m++),d[2*n+1]=r,n>h||(e.bl_count[r]++,o=0,n>=_&&(o=f[n-_]),l=d[2*n],e.opt_len+=l*(r+o),u&&(e.static_len+=l*(c[2*n+1]+o)));if(0!==m){do{for(r=p-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(r=p;0!==r;r--)for(n=e.bl_count[r];0!==n;)(a=e.heap[--i])>h||(d[2*a+1]!==r&&(e.opt_len+=(r-d[2*a+1])*d[2*a],d[2*a+1]=r),n--)}}(e,t),gen_codes(r,h,e.bl_count)}function scan_tree(e,t,i){var n,a,r=-1,o=t[1],s=0,l=7,d=4;for(0===o&&(l=138,d=3),t[2*(i+1)+1]=65535,n=0;n<=i;n++)a=o,o=t[2*(n+1)+1],++s>=7;n0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=r&&(r=o)):r=o=i+5,i+4<=r&&-1!==t?_tr_stored_block(e,t,i,n):4===e.strategy||o===r?(send_bits(e,2+(n?1:0),3),compress_block(e,u,f)):(send_bits(e,4+(n?1:0),3),function(e,t,i,n){var a;for(send_bits(e,t-257,5),send_bits(e,i-1,5),send_bits(e,n-4,4),a=0;a>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(p[i]+a+1)]++,e.dyn_dtree[2*d_code(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){send_bits(e,2,3),send_code(e,256,u),function(e){16===e.bi_valid?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,i){"use strict";var n=i(15),a=i(0),r=i(5),o=i(7),s=i(2),l=i(6),d=i(18),h=Object.prototype.toString;function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(s[i]);if(this.header=new d,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=r.string2buf(t.dictionary):"[object ArrayBuffer]"===h.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(s[i])}function inflate(e,t){var i=new Inflate(t);if(i.push(e,!0),i.err)throw i.msg||s[i.err];return i.result}Inflate.prototype.push=function(e,t){var i,s,l,d,c,u=this.strm,f=this.options.chunkSize,_=this.options.dictionary,p=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"===typeof e?u.input=r.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new a.Buf8(f),u.next_out=0,u.avail_out=f),(i=n.inflate(u,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&_&&(i=n.inflateSetDictionary(this.strm,_)),i===o.Z_BUF_ERROR&&!0===p&&(i=o.Z_OK,p=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&i!==o.Z_STREAM_END&&(0!==u.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(u.output,u.next_out),d=u.next_out-l,c=r.buf2string(u.output,l),u.next_out=d,u.avail_out=f-d,d&&a.arraySet(u.output,u.output,l,d,0),this.onData(c)):this.onData(a.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(p=!0)}while((u.avail_in>0||0===u.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),u.avail_out=0,!0)},Inflate.prototype.onData=function(e){this.chunks.push(e)},Inflate.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=Inflate,t.inflate=inflate,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,inflate(e,t)},t.ungzip=inflate},function(e,t,i){"use strict";var n=i(0),a=i(3),r=i(4),o=i(16),s=i(17),l=-2,d=12,h=30;function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function inflateReset(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)):l}function inflateReset2(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,inflateReset(e))):l}function inflateInit2(e,t){var i,n;return e?(n=new InflateState,e.state=n,n.window=null,0!==(i=inflateReset2(e,t))&&(e.state=null),i):l}var c,u,f=!0;function fixedtables(e){if(f){var t;for(c=new n.Buf32(512),u=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,c,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,u,0,e.work,{bits:5}),f=!1}e.lencode=c,e.lenbits=9,e.distcode=u,e.distbits=5}function updatewindow(e,t,i,a){var r,o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((r=o.wsize-o.wnext)>a&&(r=a),n.arraySet(o.window,t,i-a,r,o.wnext),(a-=r)?(n.arraySet(o.window,t,i-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,i.check=r(i.check,L,2,0),w=0,g=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",i.mode=h;break}if(8!==(15&w)){e.msg="unknown compression method",i.mode=h;break}if(g-=4,I=8+(15&(w>>>=4)),0===i.wbits)i.wbits=I;else if(I>i.wbits){e.msg="invalid window size",i.mode=h;break}i.dmax=1<>8&1),512&i.flags&&(L[0]=255&w,L[1]=w>>>8&255,i.check=r(i.check,L,2,0)),w=0,g=0,i.mode=3;case 3:for(;g<32;){if(0===p)break e;p--,w+=c[f++]<>>8&255,L[2]=w>>>16&255,L[3]=w>>>24&255,i.check=r(i.check,L,4,0)),w=0,g=0,i.mode=4;case 4:for(;g<16;){if(0===p)break e;p--,w+=c[f++]<>8),512&i.flags&&(L[0]=255&w,L[1]=w>>>8&255,i.check=r(i.check,L,2,0)),w=0,g=0,i.mode=5;case 5:if(1024&i.flags){for(;g<16;){if(0===p)break e;p--,w+=c[f++]<>>8&255,i.check=r(i.check,L,2,0)),w=0,g=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((y=i.length)>p&&(y=p),y&&(i.head&&(I=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,c,f,y,I)),512&i.flags&&(i.check=r(i.check,c,y,f)),p-=y,f+=y,i.length-=y),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===p)break e;y=0;do{I=c[f+y++],i.head&&I&&i.length<65536&&(i.head.name+=String.fromCharCode(I))}while(I&&y>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=d;break;case 10:for(;g<32;){if(0===p)break e;p--,w+=c[f++]<>>=7&g,g-=7&g,i.mode=27;break}for(;g<3;){if(0===p)break e;p--,w+=c[f++]<>>=1)){case 0:i.mode=14;break;case 1:if(fixedtables(i),i.mode=20,6===t){w>>>=2,g-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=h}w>>>=2,g-=2;break;case 14:for(w>>>=7&g,g-=7&g;g<32;){if(0===p)break e;p--,w+=c[f++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=h;break}if(i.length=65535&w,w=0,g=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(y=i.length){if(y>p&&(y=p),y>m&&(y=m),0===y)break e;n.arraySet(u,c,f,y,_),p-=y,f+=y,m-=y,_+=y,i.length-=y;break}i.mode=d;break;case 17:for(;g<14;){if(0===p)break e;p--,w+=c[f++]<>>=5,g-=5,i.ndist=1+(31&w),w>>>=5,g-=5,i.ncode=4+(15&w),w>>>=4,g-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=h;break}i.have=0,i.mode=18;case 18:for(;i.have>>=3,g-=3}for(;i.have<19;)i.lens[N[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,D={bits:i.lenbits},C=s(0,i.lens,0,19,i.lencode,0,i.work,D),i.lenbits=D.bits,C){e.msg="invalid code lengths set",i.mode=h;break}i.have=0,i.mode=19;case 19:for(;i.have>>16&255,O=65535&B,!((S=B>>>24)<=g);){if(0===p)break e;p--,w+=c[f++]<>>=S,g-=S,i.lens[i.have++]=O;else{if(16===O){for(R=S+2;g>>=S,g-=S,0===i.have){e.msg="invalid bit length repeat",i.mode=h;break}I=i.lens[i.have-1],y=3+(3&w),w>>>=2,g-=2}else if(17===O){for(R=S+3;g>>=S)),w>>>=3,g-=3}else{for(R=S+7;g>>=S)),w>>>=7,g-=7}if(i.have+y>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=h;break}for(;y--;)i.lens[i.have++]=I}}if(i.mode===h)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=h;break}if(i.lenbits=9,D={bits:i.lenbits},C=s(1,i.lens,0,i.nlen,i.lencode,0,i.work,D),i.lenbits=D.bits,C){e.msg="invalid literal/lengths set",i.mode=h;break}if(i.distbits=6,i.distcode=i.distdyn,D={bits:i.distbits},C=s(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,D),i.distbits=D.bits,C){e.msg="invalid distances set",i.mode=h;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(p>=6&&m>=258){e.next_out=_,e.avail_out=m,e.next_in=f,e.avail_in=p,i.hold=w,i.bits=g,o(e,v),_=e.next_out,u=e.output,m=e.avail_out,f=e.next_in,c=e.input,p=e.avail_in,w=i.hold,g=i.bits,i.mode===d&&(i.back=-1);break}for(i.back=0;z=(B=i.lencode[w&(1<>>16&255,O=65535&B,!((S=B>>>24)<=g);){if(0===p)break e;p--,w+=c[f++]<>E)])>>>16&255,O=65535&B,!(E+(S=B>>>24)<=g);){if(0===p)break e;p--,w+=c[f++]<>>=E,g-=E,i.back+=E}if(w>>>=S,g-=S,i.back+=S,i.length=O,0===z){i.mode=26;break}if(32&z){i.back=-1,i.mode=d;break}if(64&z){e.msg="invalid literal/length code",i.mode=h;break}i.extra=15&z,i.mode=22;case 22:if(i.extra){for(R=i.extra;g>>=i.extra,g-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;z=(B=i.distcode[w&(1<>>16&255,O=65535&B,!((S=B>>>24)<=g);){if(0===p)break e;p--,w+=c[f++]<>E)])>>>16&255,O=65535&B,!(E+(S=B>>>24)<=g);){if(0===p)break e;p--,w+=c[f++]<>>=E,g-=E,i.back+=E}if(w>>>=S,g-=S,i.back+=S,64&z){e.msg="invalid distance code",i.mode=h;break}i.offset=O,i.extra=15&z,i.mode=24;case 24:if(i.extra){for(R=i.extra;g>>=i.extra,g-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=h;break}i.mode=25;case 25:if(0===m)break e;if(y=v-m,i.offset>y){if((y=i.offset-y)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=h;break}y>i.wnext?(y-=i.wnext,k=i.wsize-y):k=i.wnext-y,y>i.length&&(y=i.length),x=i.window}else x=u,k=_-i.offset,y=i.length;y>m&&(y=m),m-=y,i.length-=y;do{u[_++]=x[k++]}while(--y);0===i.length&&(i.mode=21);break;case 26:if(0===m)break e;u[_++]=i.length,m--,i.mode=21;break;case 27:if(i.wrap){for(;g<32;){if(0===p)break e;p--,w|=c[f++]<>>=v=b>>>24,_-=v,0===(v=b>>>16&255))O[r++]=65535&b;else{if(!(16&v)){if(0===(64&v)){b=p[(65535&b)+(f&(1<>>=v,_-=v),_<15&&(f+=z[n++]<<_,_+=8,f+=z[n++]<<_,_+=8),b=m[f&g];i:for(;;){if(f>>>=v=b>>>24,_-=v,!(16&(v=b>>>16&255))){if(0===(64&v)){b=m[(65535&b)+(f&(1<l){e.msg="invalid distance too far back",i.mode=30;break e}if(f>>>=v,_-=v,k>(v=r-o)){if((v=k-v)>h&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(x=0,S=u,0===c){if(x+=d-v,v2;)O[r++]=S[x++],O[r++]=S[x++],O[r++]=S[x++],y-=3;y&&(O[r++]=S[x++],y>1&&(O[r++]=S[x++]))}else{x=r-k;do{O[r++]=O[x++],O[r++]=O[x++],O[r++]=O[x++],y-=3}while(y>2);y&&(O[r++]=O[x++],y>1&&(O[r++]=O[x++]))}break}}break}}while(n>3,f&=(1<<(_-=y<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n=1&&0===N[E];E--);if(T>E&&(T=E),0===E)return h[c++]=20971520,h[c++]=20971520,f.bits=1,0;for(O=1;O0&&(0===e||1!==E))return-1;for(Z[1]=0,S=1;S852||2===e&&D>592)return 1;for(;;){v=S-I,u[z]b?(y=j[P+u[z]],k=B[L+u[z]]):(y=96,k=0),_=1<>I)+(p-=_)]=v<<24|y<<16|k|0}while(0!==p);for(_=1<>=1;if(0!==_?(R&=_-1,R+=_):R=0,z++,0===--N[S]){if(S===E)break;S=t[i+u[z]]}if(S>T&&(R&w)!==m){for(0===I&&(I=T),g+=O,C=1<<(A=S-I);A+I852||2===e&&D>592)return 1;h[m=R&w]=T<<24|A<<16|g-c|0}}return 0!==R&&(h[g+R]=S-I<<24|64<<16|0),f.bits=T,0}},function(e,t,i){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,i){var n=i(20),a=i(21),r=i(22),o=i(23);e.exports=function(e){return n(e)||a(e)||r(e)||o()}},function(e,t,i){var n=i(8);e.exports=function(e){if(Array.isArray(e))return n(e)}},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,i){var n=i(8);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,i){var n,a;!function(r){if(void 0===(a="function"===typeof(n=r)?n.call(t,i,t,e):n)||(e.exports=a),!0,e.exports=r(),!!0){var o=window.Cookies,s=window.Cookies=r();s.noConflict=function(){return window.Cookies=o,s}}}((function(){function extend(){for(var e=0,t={};e254)return!1;if(!n.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},function(e,t,i){"use strict";i.r(t);var n=i(9),a=i.n(n);function asyncGeneratorStep(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(d){return void i(d)}s.done?t(l):Promise.resolve(l).then(n,a)}var r=function(){var e,t=(e=function*(e,t,i,n,r,o,s,l,d){if(!s){var h=localStorage.getItem("activeTabId"),c=window.happierleadsRequestLocked;if(o!==h||!0===c)return!1}if(s){var u=localStorage.getItem("hl_lead_id"),f=localStorage.getItem("hl_basic_tracking_sent"),_=localStorage.getItem("hl_last_sent_email"),p=t&&t!==_;if("true"===f&&!p)return!1;if((!u||p)&&"stop-tracking-visitor"!==l){var m={clientId:e,email:t,emailSource:i,hostname:r,eventData:d,eventName:l,href:window.location.href,pathname:window.location.pathname,scriptVersion:n,happierleadsExtraInfo:window.happierleadsExtraInfo};localStorage.setItem("hl_basic_tracking_sent","true"),t&&localStorage.setItem("hl_last_sent_email",t);var w=JSON.stringify(m),g=a.a.gzip(w);return window.happierleadsRequestLocked=!0,yield fetch("https://tracking.happierleads.com/v3/basic-tracking",{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip"},body:g}).then((function(e){if(window.happierleadsRequestLocked=!1,e&&200===e.status)return e.json()})).then((e=>{e&&e.meta&&e.meta.leadId?localStorage.setItem("hl_lead_id",e.meta.leadId):localStorage.setItem("hl_lead_id","not_found")})).catch((e=>{window.happierleadsRequestLocked=!1}))}}},function(){var t=this,i=arguments;return new Promise((function(n,a){var r=e.apply(t,i);function _next(e){asyncGeneratorStep(r,n,a,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(r,n,a,_next,_throw,"throw",e)}_next(void 0)}))});return function(e,i,n,a,r,o,s,l,d){return t.apply(this,arguments)}}(),o=i(1),s=i.n(o),l=i(24),helpers_getEmailsFromCookiesAndStorage=()=>{var e;try{e=s()(JSON.stringify(l.get()))}catch(t){}if(!e)try{e=s()(JSON.stringify(localStorage))}catch(t){}if(!e)try{e=s()(window.location.href)}catch(t){}return e},d=i(10),h=i.n(d);function App_asyncGeneratorStep(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(d){return void i(d)}s.done?t(l):Promise.resolve(l).then(n,a)}function App_asyncToGenerator(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var r=e.apply(t,i);function _next(e){App_asyncGeneratorStep(r,n,a,_next,_throw,"next",e)}function _throw(e){App_asyncGeneratorStep(r,n,a,_next,_throw,"throw",e)}_next(void 0)}))}}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var c=i(31);function debounce(e,t){var i;return function(){for(var n=arguments.length,a=new Array(n),r=0;r{clearTimeout(i),e(...a)};clearTimeout(i),i=setTimeout(later,t)}}var u=class{constructor(){var e=this;_defineProperty(this,"isScriptActive",!0),_defineProperty(this,"startTracking",!0),_defineProperty(this,"mode","Full"),_defineProperty(this,"trackingCode","null"),_defineProperty(this,"clientId","bwZkjWc5jfzjSdJfydh57B"),_defineProperty(this,"lastTimeSentToServer",void 0),_defineProperty(this,"interval",8e3),_defineProperty(this,"utm",void 0),_defineProperty(this,"email",void 0),_defineProperty(this,"emailSource",void 0),_defineProperty(this,"currentTabId",void 0),_defineProperty(this,"hostname",void 0),_defineProperty(this,"version","5.9.0"),_defineProperty(this,"init",App_asyncToGenerator((function*(){if(window.events=[],window.identify={emitEvent:(e,t)=>{var i=new CustomEvent("Identify",{detail:{eventName:e,eventData:t}});window.dispatchEvent(i)}},console.log("Tracking Pixel with clientId: ".concat(e.clientId," is on the Page:"),e.version),!0===e.startTracking&&e.trackUniqueVisitor(),-1===window.location.search.indexOf("hl_ignore"))if(window.runTimes||(window.runTimes=0),window.runTimes++,e.isScriptActive){var t=String(e.trackingCode||"").trim().normalize().toUpperCase();if(t&&"null"!==t&&"NULL"!==t&&"null"!==t&&"UNDEFINED"!==t&&"undefined"!==t){var i=document.createElement("script");i.defer=!0,i.src="https://data.processwebsitedata.com/cscripts/".concat(e.trackingCode,".js"),document.body.appendChild(i)}if(e.currentTabId=Math.random().toString(36).substr(2,9),localStorage.setItem("activeTabId",e.currentTabId),e.utm=h()(window.location.search),window.location.hostname&&window.location.hostname.match(/^www\.(.*)$/)&&window.location.hostname.match(/^www\.(.*)$/).length>0?e.hostname=window.location.hostname.match(/^www\.(.*)$/)[1]:e.hostname=window.location.hostname,"?happierleadsVerify=true"===window.location.search||"?trackingIPPixelVerify=true"===window.location.search){e.email="info@"+e.hostname;var n=document.createElement("div");n.id="happierleadsScript",n.innerHTML="Tracking Pixel is succesfully installed",n.style.cssText="position:absolute;padding-top:10px;text-align: center;top:0px;width:100%;height:50px;z-index:10000;background:#0026EA",document.body.appendChild(n)}(window.requestIdleCallback||(e=>setTimeout(e,1)))((()=>{e.initEmailDetection()}))}else console.log("Your Trial has Expired, or your account run out of credits. If you have an agency account check also the website limits. Please upgrade or talk to our team.");else console.log("HL is ignored")}))),console.log("G",this.mode,this.isScriptActive,this.startTracking,this.trackingCode,this.clientId,this.version,"type",typeof this.mode,typeof this.isScriptActive,typeof this.startTracking,typeof this.trackingCode,typeof this.clientId,typeof this.version),"Full"===this.mode&&console.log("Full Mode");var{init:t}=this;window.addEventListener("Identify",(e=>{var{eventName:t,eventData:i}=e.detail;this.handleCustomEvent(t,i)})),this.isInactive?console.log("The Tracking Pixel is inactive. To re-activate automatically your account, please log in to our Dashboard at least once every three months."):(-1!==window.location.search.indexOf("gtm_debug")||"undefined"===typeof window&&"undefined"===typeof document||!window||window.hlRunning||-1!==window.location.hostname.indexOf("appspot")||-1!==window.location.hostname.indexOf("appengine")?window.hlRunning?console.log("Tracking Pixel is installed multiple times. Do not worry we only run one instance"):console.log("Tracking Pixel loaded but in preview mode. You should publish the GTM to make it"):(window.hlRunning=!0,t()),(window.location.hostname.indexOf("appspot")>-1||window.location.hostname.indexOf("appengine")>-1)&&setTimeout((()=>{-1!==window.location.search.indexOf("gtm_debug")||"undefined"===typeof window&&"undefined"===typeof document||!window||window.hlRunning||-1!==window.location.hostname.indexOf("appspot")||-1!==window.location.hostname.indexOf("appengine")||(window.hlRunning=!0,t())}),3e3))}handleCustomEvent(e,t){this.pushDataToServer(!0,e,t)}extractEmailFromText(e){if(e&&e.indexOf("@")>-1){var t=new RegExp("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\\.[a-zA-Z0-9._-]+)","gi");return e.match(t)&&e.match(t)[0]?e.match(t)[0]:null}return null}initEmailDetection(){var e=this,t=0,checkStoredEmails=()=>{if(!(t>=30)){t++;for(var e="",i=0;i0){for(var l=window.events.length-1;l>=0;l--){var d=window.events[l];d.data&&d.data.text&&this.isValidEmail(d.data.text)&&s.length{if(!e||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName)return!1;var t=(e.type||"").toLowerCase(),i=(e.name||"").toLowerCase(),n=(e.id||"").toLowerCase(),a=(e.placeholder||"").toLowerCase(),r=e.getAttribute("data-email"),o=(e.getAttribute("aria-label")||"").toLowerCase(),s=(e.getAttribute("autocomplete")||"").toLowerCase();return"email"===t||i.includes("email")||i.includes("e-mail")||i.includes("user")||i.includes("login")||n.includes("email")||n.includes("e-mail")||n.includes("user")||n.includes("login")||a.includes("email")||a.includes("e-mail")||a.includes("@")||o.includes("email")||o.includes("e-mail")||"email"===s||"username"===s||null!==r},i=debounce((e=>{var t=e.target;if(t.matches("input, textarea")){var i=t.value;this.isValidEmail(i)&&(this.email=i,this.emailSource="input",this.saveCompanyToLocalStorage(!0))}}),5e3),n=debounce((e=>{var t=e.target;if(isEmailField(t)){var i=t.value;this.isValidEmail(i)&&(this.email=i,this.emailSource="input-enhanced",this.saveCompanyToLocalStorage(!0))}}),3e3),a=debounce((e=>{try{var t,i=(null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||"",n=this.extractEmailFromText(i);this.isValidEmail(n)&&(this.email=n,this.emailSource="paste-event",this.saveCompanyToLocalStorage(!0))}catch(e){}}),1e3),detectAutofill=()=>{try{document.querySelectorAll("input").forEach((e=>{if(isEmailField(e)&&e.value){var t=e.value;this.isValidEmail(t)&&(this.email=t,this.emailSource="autofill",this.saveCompanyToLocalStorage(!0))}}))}catch(e){}},checkDataLayer=()=>{try{var e,t;if(window.dataLayer&&Array.isArray(window.dataLayer)){var i=JSON.stringify(window.dataLayer),n=this.extractEmailFromText(i);this.isValidEmail(n)&&(this.email=n,this.emailSource="datalayer",this.saveCompanyToLocalStorage(!0))}var a=[window.user,window.currentUser,window.userData,window._user,window.__user,window.userProfile,window.profile,window.account,null===(e=window.analytics)||void 0===e||null===(t=e.user)||void 0===t?void 0:t.call(e)];for(var r of a)if(r){var o=JSON.stringify(r),s=this.extractEmailFromText(o);if(this.isValidEmail(s)){this.email=s,this.emailSource="window-object",this.saveCompanyToLocalStorage(!0);break}}}catch(l){}};document.addEventListener("keyup",i,{passive:!0}),document.addEventListener("input",n,{passive:!0,capture:!0}),document.addEventListener("change",(e=>{var t=e.target;if(isEmailField(t)){var i=t.value;this.isValidEmail(i)&&(this.email=i,this.emailSource="change-event",this.saveCompanyToLocalStorage(!0))}}),{passive:!0,capture:!0}),document.addEventListener("submit",(e=>{var t=e.target;if("FORM"===t.tagName){['input[type="email"]','input[name*="email" i]','input[id*="email" i]','input[placeholder*="email" i]',"input[data-email]",'input[autocomplete="email"]','input[name*="user" i]','input[name*="login" i]'].forEach((i=>{try{t.querySelectorAll(i).forEach((e=>{var t=e.value;this.isValidEmail(t)&&(this.email=t,this.emailSource="form-submit",this.saveCompanyToLocalStorage(!0))}))}catch(e){}}))}}),{passive:!0,capture:!0}),document.addEventListener("paste",a,{passive:!0,capture:!0}),document.addEventListener("animationstart",(e=>{if("onAutoFillStart"===e.animationName){var t=e.target;if(isEmailField(t)&&t.value){var i=t.value;this.isValidEmail(i)&&(this.email=i,this.emailSource="autofill-animation",this.saveCompanyToLocalStorage(!0))}}}),{capture:!0}),(()=>{var e;try{var t=window.location.search,i=t.match(/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/);if(i)e=i[0];else{var n=this.extractDomain(t);n&&(e="x-visitor@".concat(n))}}catch(a){}e&&this.isValidEmail(e)&&(this.email=e,this.emailSource="url",this.saveCompanyToLocalStorage(!0))})(),(()=>{try{for(var e="",t=0;t{try{var e=document.createElement("style");e.textContent="\n @keyframes onAutoFillStart { from {/**/} to {/**/} }\n input:-webkit-autofill { animation-name: onAutoFillStart; }\n ",document.head.appendChild(e)}catch(t){}})(),(()=>{try{new MutationObserver((e=>{for(var t of e)t.addedNodes.length&&t.addedNodes.forEach((e=>{if(1===e.nodeType){if(isEmailField(e)&&e.value){var t=e.value;this.isValidEmail(t)&&(this.email=t,this.emailSource="mutation-observer",this.saveCompanyToLocalStorage(!0))}if(e.querySelectorAll)e.querySelectorAll('input[type="email"], input[name*="email" i], input[id*="email" i]').forEach((e=>{e.value&&this.isValidEmail(e.value)&&(this.email=e.value,this.emailSource="mutation-observer",this.saveCompanyToLocalStorage(!0))}))}}))})).observe(document.body,{childList:!0,subtree:!0})}catch(e){}})(),(()=>{try{var t=window.fetch;window.fetch=App_asyncToGenerator((function*(){var i=yield t(...arguments),n=i.clone();try{var a=yield n.text(),r=e.extractEmailFromText(a);e.isValidEmail(r)&&(e.email=r,e.emailSource="api-fetch",e.saveCompanyToLocalStorage(!0))}catch(o){}return i}));var i=XMLHttpRequest.prototype.open,n=XMLHttpRequest.prototype.send,a=this;XMLHttpRequest.prototype.open=function(){for(var e=arguments.length,t=new Array(e),n=0;n{detectAutofill(),checkDataLayer()}),2e3),setInterval((()=>{checkDataLayer()}),1e4)}saveCompanyToLocalStorage(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.email){var t=localStorage.getItem("hl_last_sent_email"),i=localStorage.getItem("changed_email_b");this.email!==t&&this.email!==i?(e=!0,localStorage.setItem("changed_email_b",this.email)):i===this.email&&"undefined"!==i&&(e=!1)}this.pushDataToServer(e)}trackUniqueVisitor(){var e=this;return App_asyncToGenerator((function*(){var t=function(){try{if(window===window.parent)return window.location.href;try{return window.parent.location.href}catch(e){return console.warn("Cannot access parent URL due to cross-origin policy"),document.referrer||window.location.href}}catch(e){return window.location.href}}();"Full"===e.mode&&e.trackFullMode(t)}))()}trackFullMode(e){var t=this;return App_asyncToGenerator((function*(){if(!(()=>{try{var e=navigator.userAgent.toLowerCase();return!!["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandexbot","sogou","exabot","facebot","facebookexternalhit","ia_archiver","crawler","spider","bot","crawling","phantomjs","headless","selenium","webdriver","scrapy","python-requests","curl","wget","ahrefsbot","semrushbot","mj12bot","dotbot","rogerbot","twitterbot","slackbot","telegrambot","whatsapp","linkedinbot","pinterestbot","discordbot","applebot","petalbot","bytespider","gptbot","chatgpt-user","claudebot","anthropic-ai","cohere-ai"].some((t=>e.includes(t)))||!!navigator.webdriver||!navigator.language||0===navigator.languages.length||!navigator.plugins||0===navigator.plugins.length||!!(window.callPhantom||window._phantom||window.__nightmare||window.Buffer)}catch(t){return!1}})()){var i="hl_full_mode_pages",n=[];try{var a=localStorage.getItem(i);a&&(n=JSON.parse(a))}catch(o){n=[]}if(!(n.length>=7)&&!n.includes(e)){n.push(e),localStorage.setItem(i,JSON.stringify(n));var r={clientId:t.clientId,page:e,utm:t.utm||{}};try{fetch("https://page-visits-full.revealid.xyz/page-visits-full",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).catch((()=>{}))}catch(o){}}}}))()}pushDataToServer(){var e=arguments,t=this;return App_asyncToGenerator((function*(){var i=e.length>0&&void 0!==e[0]&&e[0],n=e.length>1&&void 0!==e[1]?e[1]:null,a=e.length>2&&void 0!==e[2]?e[2]:null,o=t.isNotADoubleRequest();if(t.clientId&&(o||i))try{yield r(t.clientId,t.email,t.emailSource,t.version,t.hostname,t.currentTabId,i,n,a)}catch(s){}}))()}isNotDouble(){return new Date-new Date(localStorage.getItem("lastTimeSentToServer"))>=this.interval}isNotADoubleRequest(){return localStorage.getItem("lastTimeSentToServer")?!!this.isNotDouble()&&this.itIsNotDouble():this.itIsNotDouble()}itIsNotDouble(){return localStorage.setItem("lastTimeSentToServer",(new Date).toString()),!0}extractDomain(e){var t=e.match(/(?:https?:\/\/)?(?:www\.)?([^@\s/]+@)?([^@\s/]+\.[^@\s/]+)/i);if(!t||!t[2])return null;try{var i=t[1]?t[2]:t[0];return new URL(i.includes("http")?i:"http://".concat(i)).hostname}catch(n){return null}}isValidEmail(e){if(!e||!c.validate(e))return!1;try{return e.length>4&&e.length<25&&"co.uk"!==e&&-1===e.indexOf("jpg")&&-1===e.indexOf(".htm")&&-1===e.indexOf("x-")&&-1===e.indexOf("visitor")&&-1===e.indexOf("test")&&-1===e.indexOf("test")&&-1===e.indexOf("png")&&-1===e.indexOf("sales@")&&-1===e.indexOf("info@")&&-1===e.indexOf("support@")&&-1===e.indexOf("help@")&&-1===e.indexOf("contact@")&&-1===e.indexOf("admin@")&&-1===e.indexOf("service@")&&-1===e.indexOf("hello@")&&-1===e.indexOf("marketing@")&&-1===e.indexOf("team@")&&-1===e.indexOf("office@")&&-1===e.indexOf("noreply@")&&-1===e.indexOf("enquiry@")&&-1===e.indexOf("webmaster@")&&-1===e.indexOf("customerservice@")&&-1===e.indexOf("@email.com")&&-1===e.indexOf("billing@")&&-1===e.indexOf("technical@")&&-1===e.indexOf("hr@")&&-1===e.indexOf("press@")&&-1===e.indexOf("publicrelations@")&&-1===e.indexOf("compliance@")&&-1===e.indexOf("feedback@")&&-1===e.indexOf("inquiries@")&&-1===e.indexOf("legal@")&&-1===e.indexOf("newsletter@")&&-1===e.indexOf("privacy@")&&-1===e.indexOf("webinfo@")&&-1===e.indexOf("customercare@")&&-1===e.indexOf("account@")&&-1===e.indexOf("booking@")&&-1===e.indexOf("reservation@")&&-1===e.indexOf("order@")&&-1===e.indexOf("tickets@")&&-1===e.indexOf("subscribe@")&&-1===e.indexOf("donotreply@")&&-1===e.indexOf("update@")&&-1===e.indexOf("no-reply@")&&-1===e.indexOf("unsubscribe@")&&-1===e.indexOf("confirm@")&&-1===e.indexOf("notifications@")&&-1===e.indexOf("alerts@")&&-1===e.indexOf("hr@")&&-1===e.indexOf("cloudwaysapps")&&-1===e.indexOf("wordpress")&&-1===e.indexOf("example")&&-1===e.indexOf("@email")&&-1===e.indexOf("nonprofit")&&-1===e.indexOf("partners")&&-1===e.indexOf(this.hostname.replace("www.",""))&&-1===this.hostname.indexOf(e)&&-1===e.indexOf(this.hostname.replace("www.","").slice(-6))&&-1===this.hostname.slice(-6).indexOf(e)&&c.validate(e)}catch(t){return!1}}};t.default=u}])}));