//tealium universal tag - utag.10 ut4.0.202604170832, Copyright 2026 Tealium.com Inc. All Rights Reserved.
window.uetq=window.uetq||[];try{(function(id,loader){var u={id:id},md5;utag.o[loader].sender[id]=u;utag.globals=utag.globals||{};if(utag.ut===undefined){utag.ut={};}
var match=/ut\d\.(\d*)\..*/.exec(utag.cfg.v);if(utag.ut.loader===undefined||!match||parseInt(match[1])<41){u.loader=function(o,a,b,c,l,m){utag.DB(o);a=document;if(o.type=="iframe"){m=a.getElementById(o.id);if(m&&m.tagName=="IFRAME"){b=m;}else{b=a.createElement("iframe");}o.attrs=o.attrs||{};utag.ut.merge(o.attrs,{"height":"1","width":"1","style":"display:none"},0);}else if(o.type=="img"){utag.DB("Attach img: "+o.src);b=new Image();}else{b=a.createElement("script");b.language="javascript";b.type="text/javascript";b.async=1;b.charset="utf-8";}if(o.id){b.id=o.id;}for(l in utag.loader.GV(o.attrs)){b.setAttribute(l,o.attrs[l]);}b.setAttribute("src",o.src);if(typeof o.cb=="function"){if(b.addEventListener){b.addEventListener("load",function(){o.cb();},false);}else{b.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){this.onreadystatechange=null;o.cb();}};}}if(o.type!="img"&&!m){l=o.loc||"head";c=a.getElementsByTagName(l)[0];if(c){utag.DB("Attach to "+l+": "+o.src);if(l=="script"){c.parentNode.insertBefore(b,c);}else{c.appendChild(b);}}}};}else{u.loader=utag.ut.loader;}
if(utag.ut.typeOf===undefined){u.typeOf=function(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();};}else{u.typeOf=utag.ut.typeOf;}
if(utag.ut.md5===undefined){md5=function(t,n){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!=typeof global&&global.crypto&&(r=global.crypto),!r&&"function"==typeof require)try{r=require("crypto")}catch(t){}var e=function(){if(r){if("function"==typeof r.getRandomValues)
try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),o={},s=o.lib={},a=s.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(o=0;o<i;o+=4)n[e+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,r=this.sigBytes;n[r>>>2]&=4294967295<<32-r%4*8,n.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(e());return new c.init(n,t)}}),u=o.enc={},f=u.Hex={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e+=2)r[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new c.init(r,n/2)}},h=u.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))}
return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e++)r[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new c.init(r,n)}},d=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},l=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var r,e=this._data,i=e.words,o=e.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=n?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,f=t.min(4*u,o);if(u){for(var h=0;h<u;h+=s)this._doProcessBlock(i,h);r=i.splice(0,u),e.sigBytes-=f}
return new c.init(r,f)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(s.Hasher=l.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,r){return new t.init(r).finalize(n)}},_createHmacHelper:function(t){return function(n,r){return new p.HMAC.init(t,r).finalize(n)}}}),o.algo={});return o}(Math);(function(t){var n=md5,r=n.lib,e=r.WordArray,i=r.Hasher,o=n.algo,s=[];!function(){for(var n=0;n<64;n++)s[n]=4294967296*t.abs(t.sin(n+1))|0}();var a=o.MD5=i.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,n){for(var r=0;r<16;r++){var e=n+r,i=t[e];t[e]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}
var o=this._hash.words,a=t[n+0],d=t[n+1],l=t[n+2],p=t[n+3],y=t[n+4],g=t[n+5],w=t[n+6],v=t[n+7],_=t[n+8],m=t[n+9],B=t[n+10],x=t[n+11],b=t[n+12],S=t[n+13],H=t[n+14],z=t[n+15],C=o[0],M=o[1],A=o[2],D=o[3];C=c(C,M,A,D,a,7,s[0]),D=c(D,C,M,A,d,12,s[1]),A=c(A,D,C,M,l,17,s[2]),M=c(M,A,D,C,p,22,s[3]),C=c(C,M,A,D,y,7,s[4]),D=c(D,C,M,A,g,12,s[5]),A=c(A,D,C,M,w,17,s[6]),M=c(M,A,D,C,v,22,s[7]),C=c(C,M,A,D,_,7,s[8]),D=c(D,C,M,A,m,12,s[9]),A=c(A,D,C,M,B,17,s[10]),M=c(M,A,D,C,x,22,s[11]),C=c(C,M,A,D,b,7,s[12]),D=c(D,C,M,A,S,12,s[13]),A=c(A,D,C,M,H,17,s[14]),C=u(C,M=c(M,A,D,C,z,22,s[15]),A,D,d,5,s[16]),D=u(D,C,M,A,w,9,s[17]),A=u(A,D,C,M,x,14,s[18]),M=u(M,A,D,C,a,20,s[19]),C=u(C,M,A,D,g,5,s[20]),D=u(D,C,M,A,B,9,s[21]),A=u(A,D,C,M,z,14,s[22]),M=u(M,A,D,C,y,20,s[23]),C=u(C,M,A,D,m,5,s[24]),D=u(D,C,M,A,H,9,s[25]),A=u(A,D,C,M,p,14,s[26]),M=u(M,A,D,C,_,20,s[27]),C=u(C,M,A,D,S,5,s[28]),D=u(D,C,M,A,l,9,s[29]),A=u(A,D,C,M,v,14,s[30]),C=f(C,M=u(M,A,D,C,b,20,s[31]),A,D,g,4,s[32]),D=f(D,C,M,A,_,11,s[33]),A=f(A,D,C,M,x,16,s[34]),M=f(M,A,D,C,H,23,s[35]),C=f(C,M,A,D,d,4,s[36]),D=f(D,C,M,A,y,11,s[37]),A=f(A,D,C,M,v,16,s[38]),M=f(M,A,D,C,B,23,s[39]),C=f(C,M,A,D,S,4,s[40]),D=f(D,C,M,A,a,11,s[41]),A=f(A,D,C,M,p,16,s[42]),M=f(M,A,D,C,w,23,s[43]),C=f(C,M,A,D,m,4,s[44]),D=f(D,C,M,A,b,11,s[45]),A=f(A,D,C,M,z,16,s[46]),C=h(C,M=f(M,A,D,C,l,23,s[47]),A,D,a,6,s[48]),D=h(D,C,M,A,v,10,s[49]),A=h(A,D,C,M,H,15,s[50]),M=h(M,A,D,C,g,21,s[51]),C=h(C,M,A,D,b,6,s[52]),D=h(D,C,M,A,p,10,s[53]),A=h(A,D,C,M,B,15,s[54]),M=h(M,A,D,C,d,21,s[55]),C=h(C,M,A,D,_,6,s[56]),D=h(D,C,M,A,z,10,s[57]),A=h(A,D,C,M,w,15,s[58]),M=h(M,A,D,C,S,21,s[59]),C=h(C,M,A,D,y,6,s[60]),D=h(D,C,M,A,x,10,s[61]),A=h(A,D,C,M,l,15,s[62]),M=h(M,A,D,C,m,21,s[63]),o[0]=o[0]+C|0,o[1]=o[1]+M|0,o[2]=o[2]+A|0,o[3]=o[3]+D|0},_doFinalize:function(){var n=this._data,r=n.words,e=8*this._nDataBytes,i=8*n.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(e/4294967296),s=e;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return a},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,n,r,e,i,o,s){var a=t+(n&r|~n&e)+i+s;return(a<<o|a>>>32-o)+n}function u(t,n,r,e,i,o,s){var a=t+(n&e|r&~e)+i+s;return(a<<o|a>>>32-o)+n}function f(t,n,r,e,i,o,s){var a=t+(n^r^e)+i+s;return(a<<o|a>>>32-o)+n}function h(t,n,r,e,i,o,s){var a=t+(r^(n|~e))+i+s;return(a<<o|a>>>32-o)+n}n.MD5=i._createHelper(a),n.HmacMD5=i._createHmacHelper(a)}(Math));}else{md5=utag.ut.md5;}
u.ev={"view":1,"link":1};u.initialized=false;u.scriptrequested=false;u.queue=[];u.generateLookupId=function(data_layer){var lookup_id="";if(u.toBoolean(u.data.generate_event_id)){lookup_id=data_layer.tealium_random;if(typeof lookup_id!=="undefined"){utag.globals[lookup_id]=window.utag.globals[lookup_id]||{};}else{lookup_id=Math.random().toFixed(16).substring(2);utag.DB("send:10: The tealium_random variable was not defined. Any generated event IDs will not be collected by Tealium Collect. Please ensure you are using the latest version of utag.js to generate a tealium_random value.");}}
return lookup_id;};u.generateEventIdHelper=function(event_name,data_layer,lookup_id){var hash_input=(data_layer.tealium_timestamp_epoch||(function(){var d=new Date();return Math.floor(d.getTime()/1000);})())+"_"+lookup_id+"_"+event_name+"_"+u.id;var event_id=md5.MD5(hash_input).toString();return event_id;};u.generateEventId=function(event_name,data_layer,lookup_id){var event_id="";if(u.toBoolean(u.data.generate_event_id)){var event_name_prefix="microsoft_event_id";var event_name_normalized=event_name.replace(/ /g,"_").toLowerCase();if(data_layer.tealium_random){event_id=u.data.event_id||u.generateEventIdHelper(event_name,data_layer,lookup_id);if(window.utag.globals[data_layer.tealium_random]){window.utag.globals[data_layer.tealium_random][event_name_prefix+"_"+event_name_normalized]=event_id;window.utag.globals[data_layer.tealium_random][event_name_prefix+"_"+event_name_normalized+"_"+u.id]=event_id;}}else{utag.DB("send:10: Event ID Generation is enabled, but the tealium_random value was not found in the data layer. No event ID was generated for "+event_name);}
window.utag.globals[lookup_id][event_name_prefix+"_"+event_name_normalized]=event_id;}
return event_id;};u.map_func=function(arr,obj,item){var i=arr.shift();obj[i]=obj[i]||{};if(arr.length>0){u.map_func(arr,obj[i],item);}else{obj[i]=item;}};u.clearEmptyKeys=function(object){for(var key in object){if(object[key]===""||object[key]===undefined){delete object[key];}}
return object;};u.toBoolean=function(val){val=val||"";if(val&&val.toLowerCase&&val.toLowerCase()==="disabled")return false;return val===true||val.toLowerCase()==="true"||val.toLowerCase()==="on"||val.toLowerCase()==="enabled";};u.items=function(eventData){var i,config,items=[];if(eventData&&u.typeOf(eventData.product_id)==="array"&&eventData.product_id.length>0){for(i=0;i<eventData.product_id.length;i++){config={};if(eventData.product_brand){config.brand=eventData.product_brand[i];}else{config.brand=u.data.product_brand[i];}
if(eventData.product_category){config.category=eventData.product_category[i];}else{config.category=u.data.product_category[i];}
if(eventData.product_creative_name){config.creative_name=eventData.product_creative_name[i];}else{config.creative_name=u.data.product_creative_name[i];}
if(eventData.product_creative_slot){config.creative_slot=eventData.product_creative_slot[i];}else{config.creative_slot=u.data.product_creative_slot[i];}
if(eventData.product_id){config.id=eventData.product_id[i];}else{config.id=u.data.product_id[i];}
if(eventData.product_location_id){config.location_id=eventData.product_location_id[i];}else{config.location_id=u.data.product_location_id[i];}
if(eventData.product_name){config.name=eventData.product_name[i];}else{config.name=u.data.product_name[i];}
if(eventData.product_unit_price){config.price=eventData.product_unit_price[i];}else{config.price=u.data.product_unit_price[i];}
if(eventData.product_quantity){config.quantity=eventData.product_quantity[i];}else{config.quantity=u.data.product_quantity[i];}
items.push(config);}}else if(eventData&&u.data.product_id.length>0){for(i=0;i<u.data.product_id.length;i++){config={};if(eventData.product_brand){config.brand=eventData.product_brand[i];}else{config.brand=u.data.product_brand[i];}
if(eventData.product_category){config.category=eventData.product_category[i];}else{config.category=u.data.product_category[i];}
if(eventData.product_creative_name){config.creative_name=eventData.product_creative_name[i];}else{config.creative_name=u.data.product_creative_name[i];}
if(eventData.product_creative_slot){config.creative_slot=eventData.product_creative_slot[i];}else{config.creative_slot=u.data.product_creative_slot[i];}
if(eventData.product_id){config.id=eventData.product_id[i];}else{config.id=u.data.product_id[i];}
if(eventData.product_location_id){config.location_id=eventData.product_location_id[i];}else{config.location_id=u.data.product_location_id[i];}
if(eventData.product_name){config.name=eventData.product_name[i];}else{config.name=u.data.product_name[i];}
if(eventData.product_unit_price){config.price=eventData.product_unit_price[i];}else{config.price=u.data.product_unit_price[i];}
if(eventData.product_quantity){config.quantity=eventData.product_quantity[i];}else{config.quantity=u.data.product_quantity[i];}
items.push(config);}}else if(u.data.product_id.length>0){for(i=0;i<u.data.product_id.length;i++){config={};if(u.data.product_brand){config.brand=u.data.product_brand[i];}
if(u.data.product_category){config.category=u.data.product_category[i];}
if(u.data.product_creative_name){config.creative_name=u.data.product_creative_name[i];}
if(u.data.product_creative_slot){config.creative_slot=u.data.product_creative_slot[i];}
if(u.data.product_id){config.id=u.data.product_id[i];}
if(u.data.product_location_id){config.location_id=u.data.product_location_id[i];}
if(u.data.product_name){config.name=u.data.product_name[i];}
if(u.data.product_unit_price){config.price=u.data.product_unit_price[i];}
if(u.data.product_quantity){config.quantity=u.data.product_quantity[i];}
items.push(config);}}
return items;};u.promotions=function(eventData){var i,config,items=[];if(eventData&&u.typeOf(eventData.promotion_id)==="array"&&eventData.promotion_id.length>0){for(i=0;i<eventData.promotion_id.length;i++){config={};if(eventData.promotion_creative_name){config.creative_name=eventData.promotion_creative_name[i];}else{config.creative_name=u.data.promotion_creative_name[i];}
if(eventData.promotion_creative_slot){config.creative_slot=eventData.promotion_creative_slot[i];}else{config.creative_slot=u.data.promotion_creative_slot[i];}
if(eventData.promotion_id){config.id=eventData.promotion_id[i];}else{config.id=u.data.promotion_id[i];}
if(eventData.promotion_name){config.name=eventData.promotion_name[i];}else{config.name=u.data.promotion_name[i];}
items.push(config);}}else if(eventData&&u.data.promotion_id.length>0){for(i=0;i<u.data.promotion_id.length;i++){config={};if(eventData.promotion_creative_name){config.creative_name=eventData.promotion_creative_name[i];}else{config.creative_name=u.data.promotion_creative_name[i];}
if(eventData.promotion_creative_slot){config.creative_slot=eventData.promotion_creative_slot[i];}else{config.creative_slot=u.data.promotion_creative_slot[i];}
if(eventData.promotion_id){config.id=eventData.promotion_id[i];}else{config.id=u.data.promotion_id[i];}
if(eventData.promotion_name){config.name=eventData.promotion_name[i];}else{config.name=u.data.promotion_name[i];}
items.push(config);}}else if(u.data.promotion_id.length>0){for(i=0;i<u.data.promotion_id.length;i++){config={};if(u.data.promotion_creative_name){config.creative_name=u.data.promotion_creative_name[i];}
if(u.data.promotion_creative_slot){config.creative_slot=u.data.purchaseId[i];}
if(u.data.promotion_id){config.id=u.data.promotion_id[i];}
if(u.data.promotion_name){config.name=u.data.promotion_name[i];}
items.push(config);}}
return items;};u.event_map={"add_payment_info":[],"add_to_cart":[{"name":"event_value"},{"name":"currency"},{"name":"items"}],"add_to_wishlist":[{"name":"event_value"},{"name":"currency"},{"name":"items"}],"begin_checkout":[{"name":"event_value"},{"name":"currency"},{"name":"items"},{"name":"coupon"}],"checkout_progress":[{"name":"event_value"},{"name":"currency"},{"name":"items"},{"name":"coupon"},{"name":"checkout_step"},{"name":"checkout_option"}],"exception":[{"name":"description"},{"name":"fatal"}],"generate_lead":[{"name":"event_value"},{"name":"currency"},{"name":"transaction_id"}],"login":[{"name":"method"}],"page_view":[],"purchase":[{"name":"transaction_id"},{"name":"event_value"},{"name":"currency"},{"name":"tax"},{"name":"shipping"},{"name":"items"},{"name":"coupon"},{"name":"revenue_value"}],"refund":[{"name":"transaction_id"},{"name":"event_value"},{"name":"currency"},{"name":"tax"},{"name":"shipping"},{"name":"items"}],"remove_from_cart":[{"name":"event_value"},{"name":"currency"},{"name":"items"}],"screen_view":[{"name":"screen_name"}],"search":[{"name":"search_term"}],"select_content":[{"name":"items"},{"name":"promotion"},{"name":"content_type"},{"name":"content_id"}],"set_checkout_option":[{"name":"checkout_step"},{"name":"checkout_option"}],"share":[{"name":"method"},{"name":"content_type"},{"name":"content_id"}],"sign_up":[{"name":"method"}],"timing_complete":[{"name":"name"},{"name":"event_value"}],"view_item":[{"name":"items"}],"view_item_list":[{"name":"items"}],"view_promotion":[{"name":"promotions"}],"view_search_results":[{"name":"search_term"}],"retail":[{"name":"event_action"},{"name":"ecomm_prodid"},{"name":"ecomm_pagetype"},{"name":"ecomm_totalvalue"},{"name":"ecomm_category"}],"travel":[{"name":"event_action"},{"name":"travel_destid"},{"name":"travel_originid"},{"name":"travel_pagetype"},{"name":"travel_startdate"},{"name":"travel_enddate"},{"name":"travel_totalvalue"}],"hotel":[{"name":"event_action"},{"name":"currency"},{"name":"hct_base_price"},{"name":"hct_total_price"},{"name":"hct_checkin_date"},{"name":"hct_checkout_date"},{"name":"hct_length_of_stay"},{"name":"hct_partner_hotel_id"},{"name":"hct_booking_xref"},{"name":"hct_pagetype"}]};u.std_params={"event_value":function(_event){if(u.data[_event]&&u.data[_event].event_value){return u.data[_event].event_value;}else if(u.data.event_value){return u.data.event_value;}else if(u.data[_event]&&u.data[_event].order_subtotal){return u.data[_event].order_subtotal;}else{return u.data.order_subtotal;}},"event_action":function(_event){if(u.data[_event]&&u.data[_event].event_action){return u.data[_event].event_action;}else{return u.data.event_action;}},"event_label":function(_event){if(u.data[_event]&&u.data[_event].event_label){return u.data[_event].event_label;}else{return u.data.event_label;}},"event_category":function(_event){if(u.data[_event]&&u.data[_event].event_category){return u.data[_event].event_category;}else{return u.data.event_category;}},"currency":function(_event){if(u.data[_event]&&u.data[_event].order_currency){return u.data[_event].order_currency;}else{return u.data.order_currency;}},"items":function(_event){return u.items(u.data[_event]);},"coupon":function(_event){if(u.data[_event]&&u.data[_event].order_coupon_code){return u.data[_event].order_coupon_code;}else{return u.data.order_coupon_code;}},"checkout_step":function(_event){if(u.data[_event]&&u.data[_event].checkout_step){return u.data[_event].checkout_step;}else{return u.data.checkout_step;}},"checkout_option":function(_event){if(u.data[_event]&&u.data[_event].checkout_option){return u.data[_event].checkout_option;}else{return u.data.checkout_option;}},"description":function(_event){if(u.data[_event]&&u.data[_event].description){return u.data[_event].description;}else{return u.data.description;}},"fatal":function(_event){if(u.data[_event]&&u.data[_event].fatal){return u.data[_event].fatal;}else{return u.data.fatal;}},"tax":function(_event){if(u.data[_event]&&u.data[_event].order_tax){return u.data[_event].order_tax;}else{return u.data.order_tax;}},"shipping":function(_event){if(u.data[_event]&&u.data[_event].order_shipping){return u.data[_event].order_shipping;}else{return u.data.order_shipping;}},"transaction_id":function(_event){if(u.data[_event]&&u.data[_event].order_id){return u.data[_event].order_id;}else{return u.data.order_id;}},"revenue_value":function(_event){if(u.data[_event]&&u.data[_event].revenue_value){return u.data[_event].revenue_value;}},"method":function(_event){if(u.data[_event]&&u.data[_event].method){return u.data[_event].method;}else{return u.data.method;}},"screen_name":function(_event){if(u.data[_event]&&u.data[_event].screen_name){return u.data[_event].screen_name;}else{return u.data.screen_name;}},"search_term":function(_event){if(u.data[_event]&&u.data[_event].search_term){return u.data[_event].search_term;}else{return u.data.search_term;}},"promotions":function(_event){return u.promotions(u.data[_event]);},"content_type":function(_event){if(u.data[_event]&&u.data[_event].content_type){return u.data[_event].content_type;}else{return u.data.content_type;}},"content_id":function(_event){if(u.data[_event]&&u.data[_event].content_id){return u.data[_event].content_id;}else{return u.data.content_id;}},"name":function(_event){if(u.data[_event]&&u.data[_event].name){return u.data[_event].name;}else{return u.data.name;}},"ecomm_prodid":function(_event){if(u.data[_event]&&u.data[_event].ecomm_prodid){return u.data[_event].ecomm_prodid;}else{return u.data.ecomm_prodid;}},"ecomm_pagetype":function(_event){if(u.data[_event]&&u.data[_event].ecomm_pagetype){return u.data[_event].ecomm_pagetype;}else{return u.data.ecomm_pagetype;}},"ecomm_totalvalue":function(_event){if(u.data[_event]&&u.data[_event].ecomm_totalvalue){return u.data[_event].ecomm_totalvalue;}else{return u.data.ecomm_totalvalue;}},"ecomm_category":function(_event){if(u.data[_event]&&u.data[_event].ecomm_category){return u.data[_event].ecomm_category;}else{return u.data.ecomm_category;}},"travel_destid":function(_event){if(u.data[_event]&&u.data[_event].travel_destid){return u.data[_event].travel_destid;}else{return u.data.travel_destid;}},"travel_originid":function(_event){if(u.data[_event]&&u.data[_event].travel_originid){return u.data[_event].travel_originid;}else{return u.data.travel_originid;}},"travel_pagetype":function(_event){if(u.data[_event]&&u.data[_event].travel_pagetype){return u.data[_event].travel_pagetype;}else{return u.data.travel_pagetype;}},"travel_startdate":function(_event){if(u.data[_event]&&u.data[_event].travel_startdate){return u.data[_event].travel_startdate;}else{return u.data.travel_startdate;}},"travel_enddate":function(_event){if(u.data[_event]&&u.data[_event].travel_enddate){return u.data[_event].travel_enddate;}else{return u.data.travel_enddate;}},"travel_totalvalue":function(_event){if(u.data[_event]&&u.data[_event].travel_totalvalue){return u.data[_event].travel_totalvalue;}else{return u.data.travel_totalvalue;}},"hct_base_price":function(_event){if(u.data[_event]&&u.data[_event].hct_base_price){return u.data[_event].hct_base_price;}else if(u.data.hct_base_price){return u.data.hct_base_price;}else if(u.data[_event]&&u.data[_event].hct_bpr){return u.data[_event].hct_bpr;}else{return u.data.hct_bpr;}},"hct_total_price":function(_event){if(u.data[_event]&&u.data[_event].hct_total_price){return u.data[_event].hct_total_price;}else if(u.data.hct_total_price){return u.data.hct_total_price;}else if(u.data[_event]&&u.data[_event].hct_tpr){return u.data[_event].hct_tpr;}else{return u.data.hct_tpr;}},"hct_checkin_date":function(_event){if(u.data[_event]&&u.data[_event].hct_checkin_date){return u.data[_event].hct_checkin_date;}else if(u.data.hct_checkin_date){return u.data.hct_checkin_date;}else if(u.data[_event]&&u.data[_event].hct_cid){return u.data[_event].hct_cid;}else{return u.data.hct_cid;}},"hct_checkout_date":function(_event){if(u.data[_event]&&u.data[_event].hct_checkout_date){return u.data[_event].hct_checkout_date;}else if(u.data.hct_checkout_date){return u.data.hct_checkout_date;}else if(u.data[_event]&&u.data[_event].hct_cod){return u.data[_event].hct_cod;}else{return u.data.hct_cod;}},"hct_length_of_stay":function(_event){if(u.data[_event]&&u.data[_event].hct_length_of_stay){return u.data[_event].hct_length_of_stay;}else if(u.data.hct_length_of_stay){return u.data.hct_length_of_stay;}else if(u.data[_event]&&u.data[_event].hct_los){return u.data[_event].hct_los;}else{return u.data.hct_los;}},"hct_partner_hotel_id":function(_event){if(u.data[_event]&&u.data[_event].hct_partner_hotel_id){return u.data[_event].hct_partner_hotel_id;}else if(u.data.hct_partner_hotel_id){return u.data.hct_partner_hotel_id;}else if(u.data[_event]&&u.data[_event].hct_pid){return u.data[_event].hct_pid;}else{return u.data.hct_pid;}},"hct_booking_xref":function(_event){if(u.data[_event]&&u.data[_event].hct_booking_xref){return u.data[_event].hct_booking_xref;}else if(u.data.hct_booking_xref){return u.data.hct_booking_xref;}else if(u.data[_event]&&u.data[_event].hct_bid){return u.data[_event].hct_bid;}else{return u.data.hct_bid;}},"hct_pagetype":function(_event){if(u.data[_event]&&u.data[_event].hct_pagetype){return u.data[_event].hct_pagetype;}else{return u.data.hct_pagetype;}}};u.CONSENT_VALUE={granted:"granted",denied:"denied"}
u.getConsentValue=function(consent_type){var validConsentValues=[u.CONSENT_VALUE.granted,u.CONSENT_VALUE.denied];if(consent_type&&validConsentValues.indexOf(consent_type)>-1){return consent_type;}
if(utag.gdpr&&u.toBoolean(u.data.tealium_consent)){var consentState=utag.gdpr.getConsentState();if(consentState===1){return u.CONSENT_VALUE.granted;}
if(consentState===-1||consentState===0){return u.CONSENT_VALUE.denied;}
if(Array.isArray(consentState)){return utag.gdpr.getSelectedCategories().indexOf('analytics')===-1?u.CONSENT_VALUE.denied:u.CONSENT_VALUE.granted;}}
return u.CONSENT_VALUE.denied;};u.sendIdSyncPixel=function(){try{if(typeof sessionStorage!=="undefined"&&sessionStorage.getItem("msft_id_sync_fired")==="true"){return;}
if(u.getConsentValue(u.data.ad_storage)!==u.CONSENT_VALUE.granted){return;}
if(!u.data.customer_id||!u.data.visitor_id){return;}
var syncUrl="https://c.bing.com/c.gif?"+
"Red3="+encodeURIComponent(u.data.customer_id)+
"&VID="+encodeURIComponent(u.data.visitor_id)+
(u.data.user_id&&"&UID="+encodeURIComponent(u.data.user_id));u.loader({type:"img",src:syncUrl});if(typeof sessionStorage!=="undefined"){sessionStorage.setItem("msft_id_sync_fired","true");}}catch(e){}};u.sendEvent=function(event_name,event_data,data_layer,lookup_id){var event_id=u.generateEventId(event_name,data_layer,lookup_id);if(event_id)event_data.event_id=event_id;window.uetq.push("event",event_name,event_data);};u.map={"product_id":"product_id","product_name":"product_name","product_category":"product_category","product_quantity":"product_quantity","product_unit_price":"product_unit_price","tealium_event:view_item":"view_item","tealium_event:view_item_list":"view_item_list","tealium_event:view_promotion":"view_promotion"};u.extend=[];u.loader_cb=function(a,b,c,lookup_id){utag.DB("send:10:CALLBACK");if(!u.initialized){var o={ti:u.data.tagid,enableAutoSpaTracking:u.toBoolean(u.data.enableAutoSpaTracking)};o.q=uetq;uetq=new UET(o);uetq.push("pageLoad");u.initialized=true;}
var i,j,event_param,_event;for(i=0;i<u.data.event.length;i++){_event=u.data.event[i];u.data.eventData[_event]=u.data.eventData[_event]||{};if(u.event_map[_event]){for(j=0;j<u.event_map[_event].length;j++){event_param=u.event_map[_event][j];u.data.eventData[_event][event_param.name]=u.std_params[event_param.name](_event);if(u.data.eventData[_event][event_param.name]===undefined&&event_param.required){utag.DB(u.id+": Event: "+_event+": Required attribute not populated");}}}else{u.data.eventData[_event]=u.data[_event];}
var data={},keyname,event_action;var customEventData={};for(keyname in u.data.custom){customEventData[keyname]=u.data.custom[keyname];}
if(u.data[_event]&&u.data[_event].custom){for(keyname in u.data[_event].custom){customEventData[keyname]=u.data[_event].custom[keyname];}}
switch(_event){case"add_payment_info":case"page_view":u.sendEvent(_event,u.data[_event],b,lookup_id);break;case"add_to_cart":case"remove_from_cart":case"add_to_wishlist":case"begin_checkout":case"checkout_progress":data={event_value:u.data.eventData[_event].event_value,currency:u.data.eventData[_event].currency,items:u.data.eventData[_event].items};if(_event==="begin_checkout"||_event==="checkout_progress"){data.coupon=u.data.eventData[_event].coupon;}
if(_event==="checkout_progress"){data.checkout_step=u.data.eventData[_event].checkout_step;data.checkout_option=u.data.eventData[_event].checkout_option;}
for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"exception":data={description:u.data.eventData[_event].description,fatal:u.data.eventData[_event].fatal};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"generate_lead":case"purchase":case"refund":data={event_value:u.data.eventData[_event].event_value,currency:u.data.eventData[_event].currency,transaction_id:u.data.eventData[_event].transaction_id};if(_event==="purchase"){data.coupon=u.data.eventData[_event].coupon;data.revenue_value=u.data.eventData[_event].revenue_value;}
if(_event==="purchase"||_event==="refund"){data.tax=u.data.eventData[_event].tax;data.shipping=u.data.eventData[_event].shipping;data.items=u.data.eventData[_event].items;}
for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"login":case"sign_up":case"share":data={method:u.data.eventData[_event].method};if(_event==="share"){data.content_type=u.data.eventData[_event].content_type;data.content_id=u.data.eventData[_event].content_id;}
for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"select_content":data={items:u.data.eventData[_event].items,promotions:u.data.eventData[_event].promotions,content_type:u.data.eventData[_event].content_type,content_id:u.data.eventData[_event].content_id};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"set_checkout_option":data={checkout_step:u.data.eventData[_event].checkout_step,checkout_option:u.data.eventData[_event].checkout_option};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"screen_view":data={screen_name:u.data.eventData[_event].screen_name};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"search":case"view_search_results":data={search_term:u.data.eventData[_event].search_term};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"view_item":case"view_item_list":data={items:u.data.eventData[_event].items};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"timing_complete":data={name:u.data.eventData[_event].name,event_value:u.data.eventData[_event].event_value};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"view_promotion":data={promotions:u.data.eventData[_event].promotions};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);u.sendEvent(_event,data,b,lookup_id);break;case"retail":data={ecomm_pagetype:u.data.eventData[_event].ecomm_pagetype,ecomm_prodid:u.data.eventData[_event].ecomm_prodid,ecomm_totalvalue:u.data.eventData[_event].ecomm_totalvalue,ecomm_category:u.data.eventData[_event].ecomm_category};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);event_action=u.data.eventData[_event].event_action||"";u.sendEvent(event_action,data,b,lookup_id);break;case"travel":data={travel_destid:u.data.eventData[_event].travel_destid,travel_originid:u.data.eventData[_event].travel_originid,travel_pagetype:u.data.eventData[_event].travel_pagetype,travel_startdate:u.data.eventData[_event].travel_startdate,travel_endadate:u.data.eventData[_event].travel_endadate,travel_totalvalue:u.data.eventData[_event].travel_totalvalue};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);event_action=u.data.eventData[_event].event_action||"";u.sendEvent(event_action,data,b,lookup_id);break;case"hotel":data={hct_base_price:u.data.eventData[_event].hct_base_price,hct_total_price:u.data.eventData[_event].hct_total_price,currency:u.data.eventData[_event].currency,hct_checkin_date:u.data.eventData[_event].hct_checkin_date,hct_checkout_date:u.data.eventData[_event].hct_checkout_date,hct_length_of_stay:u.data.eventData[_event].hct_length_of_stay,hct_partner_hotel_id:u.data.eventData[_event].hct_partner_hotel_id,hct_pagetype:u.data.eventData[_event].hct_pagetype};for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);event_action=u.data.eventData[_event].event_action||"";u.sendEvent(event_action,data,b,lookup_id);break;case"update_consent":data={ad_storage:u.data.ad_storage};utag.ut.merge(data,u.data.eventData[_event],1);data.ad_storage=u.getConsentValue(data.ad_storage);window.uetq.push("consent","update",data);break;default:data={};for(keyname in u.data.eventData[_event]){if(keyname!=="event_action"&&keyname!=="custom"){data[keyname]=u.data.eventData[_event][keyname];}}
if(data.event_category===undefined){data.event_category=u.data.event_category||"";}
if(data.event_label===undefined){data.event_label=u.data.event_label||"";}
if(data.event_value===undefined){data.event_value=u.data.event_value||"";}
for(keyname in customEventData){data[keyname]=customEventData[keyname];}
u.clearEmptyKeys(data);event_action=(u.data.eventData[_event]&&u.data.eventData[_event].event_action)||u.data.event_action||"";u.sendEvent(event_action,data,b,lookup_id);break;}}
utag.DB("send:10:CALLBACK:COMPLETE");};u.callBack=function(){var data={};while(data=u.queue.shift()){u.data=data.data;u.loader_cb(data.a,data.b,data.c,data.lookup_id);}};u.send=function(a,b){if(u.ev[a]||u.ev.all!==undefined){utag.DB("send:10");utag.DB(b);var c,d,e,f,h;u.data={qsp_delim:"&",kvp_delim:"=",base_url:"//bat.bing.com/bat.js",tagid:"5188005",ad_storage:b["microsoft_ad_storage_consent"]||"granted",tealium_consent:"false",id_sync_beacon:"enabled",generate_event_id:"true",event_id:"",customer_id:"",visitor_id:"",user_id:"",em:"",ph:"",product_id:[],product_name:[],product_brand:[],product_category:[],product_quantity:[],product_unit_price:[],product_creative_slot:[],product_creative_name:[],product_location_id:[],promotion_creative_name:[],promotion_creative_slot:[],promotion_id:[],promotion_name:[],enableAutoSpaTracking:false,event:[],eventData:{},custom:{}};utag.DB("send:10:EXTENSIONS");utag.DB(b);c=[];for(d in utag.loader.GV(u.map)){if(b[d]!==undefined&&b[d]!==""){e=u.map[d].split(",");for(f=0;f<e.length;f++){u.map_func(e[f].split("."),u.data,b[d]);}}else{h=d.split(":");if(h.length===2&&b[h[0]]===h[1]){if(u.map[d]){u.data.event=u.data.event.concat(u.map[d].split(","));}}}}
utag.DB("send:10:MAPPINGS");utag.DB(u.data);u.data.order_id=u.data.order_id||b._corder||"";u.data.order_subtotal=u.data.order_subtotal||b._csubtotal||"";u.data.order_shipping=u.data.order_shipping||b._cship||"";u.data.order_tax=u.data.order_tax||b._ctax||"";u.data.order_currency=u.data.order_currency||b._ccurrency||"";u.data.order_coupon_code=u.data.order_coupon_code||b._cpromo||"";if(u.data.product_id.length===0&&b._cprod!==undefined){u.data.product_id=b._cprod.slice(0);}
if(u.data.product_name.length===0&&b._cprodname!==undefined){u.data.product_name=b._cprodname.slice(0);}
if(u.data.product_brand.length===0&&b._cbrand!==undefined){u.data.product_brand=b._cbrand.slice(0);}
if(u.data.product_category.length===0&&b._ccat!==undefined){u.data.product_category=b._ccat.slice(0);}
if(u.data.product_quantity.length===0&&b._cquan!==undefined){u.data.product_quantity=b._cquan.slice(0);}
if(u.data.product_unit_price.length===0&&b._cprice!==undefined){u.data.product_unit_price=b._cprice.slice(0);}
if(u.data.event.length===0&&b._cevent!==undefined){u.data.event=(u.typeOf(b._cevent)==="array")?b._cevent.slice(0):[b._cevent];}
u.data.ad_storage=u.getConsentValue(u.data.ad_storage);if(u.toBoolean(u.data.id_sync_beacon)){u.sendIdSyncPixel();}
if(!u.data.tagid){utag.DB(u.id+": Tag not fired: Required attribute not populated");return;}
var lookup_id=u.generateLookupId(b);if(u.initialized){u.loader_cb(a,b,c,lookup_id);}else{u.queue.push({data:u.data,a:a,b:b,c:c,lookup_id:lookup_id});window.uetq.push('set',{pid:{em:u.data.em,ph:u.data.ph}});window.uetq.push('consent','default',{ad_storage:u.data.ad_storage,});if(!u.scriptrequested){u.scriptrequested=true;u.loader({"type":"script","src":u.data.base_url,"cb":u.callBack,"loc":"script","id":"utag_10","attrs":{}});}}
utag.DB("send:10:COMPLETE");}};utag.o[loader].loader.LOAD(id);}("10","trendmicro.rowshop"));}catch(error){utag.DB(error);}
