!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("tccl",[],e):"object"==typeof exports?exports["tccl"]=e():t["tccl"]=e()}(window,function(){return n=[function(t,e,n){"use strict";e.parseCookie=e.isSupported=e.isCorporateHost=e.getWindow=e.getNavigator=e.getHost=e.getDocument=e.getBaseHost=void 0;n(2);function o(){return u.window}function r(){return u.document}var i,a,s,u=(i="",s={document:a=Object.create({get cookie(){return i},set cookie(t){i=t}})},n={},"undefined"==typeof window?{window:s,document:a,navigator:n}:{window:window||s,document:window.document||a,navigator:navigator||n});function c(){return u.navigator}function f(){var t=o().location;return t&&t.hostname?t.hostname:""}function p(){var t=f(),e=t.split(".");return t=2<=e.length&&"co.uk"===(t=e.splice(e.length-2).join("."))?e.pop()+"."+t:t}e.getBaseHost=p,e.getDocument=r,e.getHost=f,e.getNavigator=c,e.getWindow=o,e.isCorporateHost=function(t){t=t||p();return!!~t.indexOf("godaddy.com")||!!~t.indexOf("secureserver.net")},e.isSupported=function(){var t=c().userAgent.toLowerCase();return!/msie [1-8]\./.test(t)},e.parseCookie=function(t){for(var e=t.split(";"),n=Object.create(null),o=0;o=r.length)break;e=r[o++]}else{if((o=r.next()).done)break;e=o.value}var i=e;if(t.startsWith(i+"."))return!1}return!0}function l(t,e){"debug"===t&&(0,a.setDebug)(e)}function d(t){var i={identity:{realm:t["tcc.realm"]},site:{privateLabelId:t["tcc.privateLabelId"]},timing:{manual:t["tcc.manualPagePerf"]},page:{spa:t["tcc.spa"],id:t["tcc.pageId"],contentGroup:t["tcc.gaContentGroup"]||t["tcc.contentGroup"]},cookie:{sameSite:t["tcc.cookies.sameSite"]}};Object.keys(i).forEach(function(r){Object.keys(i[r]).forEach(function(t){var e,n,o;o=i[e=r][n=t],t=f.default.get(e)||{},o&&(t[n]=o),f.default.set(e,t)})})}function h(){var t=function(){for(var n={},t=0;t>>32-e}t.exports=function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var o=unescape(encodeURIComponent(t));t=Array(o.length);for(var r=0;r>>0,y=h,h=d,d=v(l,30)>>>0,l=p,p=g;n[0]=n[0]+p>>>0,n[1]=n[1]+l>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+h>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},function(t,e,n){"use strict";e.sha256=function(t){function m(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function b(t,e){return t>>>e|t<<32-e}function _(t,e){return t>>>e}return function(t){for(var e="0123456789abcdef",n="",o=0;o<4*t.length;o++)n+=(e[0|t[o>>2]>>8*(3-o%4)+4&15]||"")+(e[0|t[o>>2]>>8*(3-o%4)&15]||"");return n}(function(t,e){var n,o,r,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=Array(64),u=void 0,c=void 0,f=void 0,p=void 0,l=void 0,d=void 0,h=void 0,y=void 0,g=void 0,v=void 0;for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,g=0;g>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n>6|192):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128)),e+=String.fromCharCode(63&o|128))}return e}(t)),8*t.length))}},function(t,e,n){"use strict";e.__esModule=!0;var o,r=n(6);n=new((o=r)&&o.__esModule?o:{default:o}).default;e.default=n},function(t,e,n){"use strict";e.init=void 0;var o,r=n(1),i=n(17),n=(o=i)&&o.__esModule?o:{default:o};var a,s="_trfq",u=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(c,a=n.default),c.prototype.process=function(e){a.prototype.pushLog.call(this,e);try{var t=Array.prototype.slice.call(e,1),n=e[0];this.handlers[n]?this.handlers[n].apply(null,t):(0,r.error)("Invalid command sent to data layer",this.dataLayerName,e)}catch(t){(0,r.error)("Unable to process",e,t)}},c);function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,a.call(this,s));return e.handlers=t,e.start(),e}e.init=function(t){return new u(t)}},function(t,e,n){"use strict";e.__esModule=!0;var a=n(18);o.prototype.handleSchema=function(t,e,n,o,r,i){n=new a.SchemaDefinitionBlock(this.commandSchemaDefinitions,t,e,n);n.schema.handler&&(i=i||n.schema.sinks||[],o=n.parse(o,i),new n.schema.handler(this).load(n.type,n.version,i,o,r,n.schema.config))},n=o;function o(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),this.commandSchemaDefinitions=t}e.default=n},function(t,e,n){"use strict";e.STRING_TYPE="string",e.OPTIONAL_FIELD="OPTIONAL",e.REQUIRED_FIELD="REQUIRED",e.CALCULATED_FIELD="CALCULATED",e.MAPPING="map",e.SUBSTITUTE="sub"},function(t,e,n){"use strict";e.__esModule=!0;var o,r=n(4),n=(o=r)&&o.__esModule?o:{default:o};n.default.merge({"tccl.perfOn":!0,"tccl.buildVersion":"2.0.2","tccl.buildEnv":"prod","tccl.buildName":"tccl"}),e.default=n.default},function(t,e,n){"use strict";e.__esModule=!0,e.withCookieCache=void 0;var o,r=n(0),i=n(36);n=new((o=i)&&o.__esModule?o:{default:o}).default;e.default=n,e.withCookieCache=function(t){try{var e=(0,r.getDocument)().cookie,n=void 0;Object.defineProperty(document,"cookie",{get:function(){return e},set:function(t){(n=n||Object.getOwnPropertyDescriptor(Document.prototype,"cookie")).set.call(document,t),e=n.get.call(document)},configurable:!0,enumerable:!0}),t()}finally{delete(0,r.getDocument)().cookie}}},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);r.prototype._executeFn=function(e){try{e()}catch(t){(0,o.error)("Exception while executing onLoad callback",e,t)}},r.prototype._triggerOnLoad=function(){this._loaded=!0;for(var t=0;t