/",t),i},buildEventString:function(e){var t=this.eventMapping(e);return this.buildEventStringPure(t,this.dataLayer())},buildProductStringPure:function(e,t,n){var r=this._parseProducts(t,n);return this._generateProductString(e,r) },buildListStringPure:function(e,t){return this._getCollection(t,e.collection).join(e.list_delimiter)},buildEventStringPure:function(e,t){var n=this._findBaseEvents({},e.events,t);return n=this._findCoreEvents(n,e.core,t),n=this._findProductEvents(n,e.products,t),this._generateEventString(n)},_getCollection:function(e,t){var n=r.deepGet(e,t);return null===n&&(this.logger.warn("Collection path returned null.",t),n=[]),"object"==typeof n&&!1===Array.isArray(n)&&(this.logger.debug("Collection path: "+t+" is type Object. Converted to Array."),n=[r.deepGet(e,t)]),n},_parseProducts:function(e,t){var n={};for(var a in e)for(var i=this._getCollection(t,e[a].collection),o=e[a].attributes,s=0;s=0?(i=this._cleanse4ProductString(i),e=r.deepSetArray(e,[t,n,a],i)):this.logger.error("AA_setProductStringCore : Invalid name, ",a),e},_setProductEvar:function(e,t,n,a,i){return e=r.copy(e),a.match(/e[Vv]ar[1-9][0-9]{0,2}/)?(a=a.replace(/v/,"V"),""!==(i=this._cleanse4ProductString(i))&&(e=r.deepSetArray(e,[t,n,"eVars",a],i))):this.logger.error("AA_setProductEvar : Invalid eVar, "+a),e},_setProductEvent:function(e,t,n,a,i){return e=r.copy(e),i&&!isNaN(Number(i))&&0!=Number(i)?e=r.deepSetArray(e,[t,n,"events",a],Number(i)):("boolean"==typeof i||i&&!isNaN(Number(i)))&&(e=r.deepSetArray(e,[t,n,"events",a],i)),e},_generateEventString:function(e){var t=[];for(var n in e){var r=n+"";void 0!==e[n]&&null!==e[n]&&(r=n+"="+e[n]),t.push(r)}return t.sort(this._eventSortFn()).join(",")},_generateProductString:function(e,t){var n=e&&e.split(",")||[];for(var r in t){var a=t[r];for(var i in a){var o=this._generateSingleProductString(a[i],i,r);n.push(o)}}return n.join(",")},_generateSingleProductString:function(e,t,n){var r=this._generateProductStringEvents(e.events),a=this._generateProductStringEVars(e.eVars);return[e.category||n,this._productPID(e.product,n,t),e.quantity||"",this._productCost(e.price,e.quantity),r.sort(this._eventSortFn()).join("|"),a.sort(this._evarSortFn()).join("|")].join(";")},_productCost:function(e,t){return(e||0)*(t||0)||""},_productPID:function(e,t,n){return e||t+"_"+n},_generateProductStringEvents:function(e){var t=[];for(var n in e)"boolean"==typeof e[n]?t.push(n+"="+(e[n]?1:0)):e[n]?t.push(n+"="+e[n]):t.push(n+"");return t},_generateProductStringEVars:function(e){var t=[];for(var n in e)void 0!==e[n]&&t.push(n+"="+e[n]);return t},_findBaseEvents:function(e,t,n){for(var a in e=r.copy(e),t=t||{}){var i=r.dataLayerGet(n,t[a]);e=this._setEvent(e,a,i)}return e},_findCoreEvents:function(e,t,n){if(e=r.copy(e),t)for(var a in t)if(0==a.indexOf("event")){var i=r.dataLayerGet(n,t[a]);e=this._setEvent(e,a,i)}return e},_findProductEvents:function(e,t,n){for(var a in e=r.copy(e),t)for(var i=this._getCollection(n,t[a].collection),o=t[a].attributes,s=0;s0){var r=t[0];t=t.slice(1);var a=e[r];n=void 0===a?null:this.deepGetArray(a,t)}return n},t.prototype.deepSetArray=function(e,t,n){return this.deepSetArrayMutable(this.copy(e),t,n)},t.prototype.copy=function(e){return JSON.parse(JSON.stringify(e))},t.prototype.assign=function(){if(Object.assign)return Object.assign.apply(this,arguments);var e=this.argumentsToArray(arguments),t=e.shift();return t&&e.forEach((function(e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})),t},t.prototype.deepSetArrayMutable=function(e,t,n){if(t.length>1){var r=t[0];t=t.slice(1),e[r]=e[r]||{},e[r]=this.deepSetArray(e[r],t,n)}else 1===t.length&&(e[t[0]]=n);return e},e.exports=new t}}}},core:{displayName:"Core",hostedLibFilesBaseUrl:"https://assets.adobedtm.com/extensions/EP205185a6537e4aacbdc36b05eb266113/",modules:{"core/src/lib/dataElements/javascriptVariable.js":{name:"javascript-variable",displayName:"JavaScript Variable",script:function(e,t,n){"use strict";var r=n("../helpers/getObjectProperty.js");e.exports=function(e){return r(window,e.path)}}},"core/src/lib/dataElements/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e){"use strict";e.exports=function(e,t){return e.source(t)}}},"core/src/lib/dataElements/queryStringParameter.js":{name:"query-string-parameter",displayName:"Query String Parameter",script:function(e,t,n){"use strict";var r=n("@adobe/reactor-window"),a=n("@adobe/reactor-query-string");e.exports=function(e){var t=a.parse(r.location.search);if(!e.caseInsensitive)return t[e.name];for(var n=e.name.toLowerCase(),i=Object.keys(t),o=0;ot})),greaterThanOrEqual:s((function(e,t){return e>=t})),isTrue:function(e){return!0===e},isTruthy:function(e){return Boolean(e)},isFalse:function(e){return!1===e},isFalsy:function(e){return!e}};e.exports=function(e){return l[e.comparison.operator](e.leftOperand,e.rightOperand,Boolean(e.comparison.caseInsensitive))}}},"core/src/lib/actions/customCode.js":{name:"custom-code",displayName:"Custom Code",script:function(e,t,n,r){"use strict";var a,i,o,s=n("@adobe/reactor-document"),c=n("./helpers/decorateCode"),l=n("./helpers/loadCodeSequentially"),u=n("../../../node_modules/postscribe/dist/postscribe"),d=r.getExtensionSettings(),p=(a=function(e){u(s.body,e,{beforeWriteToken:function(e){return d.cspNonce&&"script"===e.tagName&&(e.attrs.nonce=d.cspNonce),e},error:function(e){r.logger.error(e.msg)}})},i=[],o=function(){if(s.body)for(;i.length;)a(i.shift());else setTimeout(o,20)},function(e){i.push(e),o()}),f=function(){if(s.currentScript)return s.currentScript.async;for(var e=s.querySelectorAll("script"),t=0;t\n"+t+"\n"},s=function(e,t){var n="__runScript"+ ++a;return _satellite[n]=function(t){t.call(e.event.element,e.event,e.event.target),delete _satellite[n]},'"},c={javascript:function(e,t){return e.settings.global?o(e,t):s(e,t)},html:function(e,t){return i(e)?r.replaceTokens(t,e.event):t}};e.exports=function(e,t){return c[e.settings.language](e,t)}}},"core/src/lib/actions/helpers/loadCodeSequentially.js":{script:function(e,t,n){"use strict";var r=n("@adobe/reactor-promise"),a=n("./getSourceByUrl"),i=r.resolve();e.exports=function(e){var t=new r((function(t){var n=a(e);r.all([n,i]).then((function(e){var n=e[0];t(n)}))}));return i=t,t}}},"core/node_modules/postscribe/dist/postscribe.js":{script:function(e,t){var n,r;n=this,r=function(){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=r(n(1));e.exports=a.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}function i(){}function o(){var e=g.shift();if(e){var t=d.last(e);t.afterDequeue(),e.stream=s.apply(void 0,e),t.afterStreamStart()}}function s(e,t,n){function r(e){e=n.beforeWrite(e),m.write(e),n.afterWrite(e)}(m=new u.default(e,n)).id=f++,m.name=n.name||m.id,c.streams[m.name]=m;var a=e.ownerDocument,s={close:a.close,open:a.open,write:a.write,writeln:a.writeln};l(a,{close:i,open:i,write:function(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:null,r=p+t;u.existy(n)&&""!==n?e.setAttribute(r,n):e.removeAttribute(r)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.root=t,this.options=n,this.doc=t.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new l.default("",{autoFix:n.autoFix}),this.actuals=[t],this.proxyHistory="",this.proxyRoot=this.doc.createElement(t.nodeName),this.scriptStack=[],this.writeQueue=[],s(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var t=this.writeQueue.shift();u.isFunction(t)?this._callFunction(t):this._writeImpl(t)}},e.prototype._callFunction=function(e){var t={type:"function",value:e.name||e.toString()};this._onScriptStart(t),e.call(this.win,this.doc),this._onScriptDone(t)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var t=void 0,n=void 0,r=void 0,a=[];(t=this.parser.readToken())&&!(n=u.isScript(t))&&!(r=u.isStyle(t));)(t=this.options.beforeWriteToken(t))&&a.push(t);a.length>0&&this._writeStaticTokens(a),n&&this._handleScriptToken(t),r&&this._handleStyleToken(t)},e.prototype._writeStaticTokens=function(e){var t=this._buildChunk(e);return t.actual?(t.html=this.proxyHistory+t.actual,this.proxyHistory+=t.proxy,this.proxyRoot.innerHTML=t.html,d&&(t.proxyInnerHTML=this.proxyRoot.innerHTML),this._walkChunk(),d&&(t.actualInnerHTML=this.root.innerHTML),t):null},e.prototype._buildChunk=function(e){for(var t=this.actuals.length,n=[],r=[],a=[],i=e.length,o=0;o)/," "+p+"id="+l+" $1")),s.attrs.id!==g&&s.attrs.id!==f&&a.push("atomicTag"===s.type?"":"<"+s.tagName+" "+p+"proxyof="+l+(s.unary?" />":">"))}}else r.push(c),a.push("endTag"===s.type?c:"")}return{tokens:e,raw:n.join(""),actual:r.join(""),proxy:a.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,t=[this.proxyRoot];u.existy(e=t.shift());){var n=1===e.nodeType;if(!n||!o(e,"proxyof")){n&&(this.actuals[o(e,"id")]=e,s(e,"id"));var r=e.parentNode&&o(e.parentNode,"proxyof");r&&this.actuals[r].appendChild(e)}t.unshift.apply(t,u.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var t=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,(function(){t._onScriptDone(e)})))},e.prototype._handleStyleToken=function(e){var t=this.parser.clear();t&&this.writeQueue.unshift(t),e.type=e.attrs.type||e.attrs.TYPE||"text/css",(e=this.options.beforeWriteToken(e))&&this._writeStyleToken(e),t&&this.write()},e.prototype._writeStyleToken=function(e){var t=this._buildStyle(e);this._insertCursor(t,f),e.content&&(t.styleSheet&&!t.sheet?t.styleSheet.cssText=e.content:t.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var t=this.doc.createElement(e.tagName);return t.setAttribute("type",e.type),u.eachKey(e.attrs,(function(e,n){t.setAttribute(e,n)})),t},e.prototype._insertCursor=function(e,t){this._writeImpl('');var n=this.doc.getElementById(t);n&&n.parentNode.replaceChild(e,n)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){e===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},e.prototype._writeScriptToken=function(e,t){var n=this._buildScript(e),r=this._shouldRelease(n),a=this.options.afterAsync;e.src&&(n.src=e.src,this._scriptLoadHandler(n,r?a:function(){t(),a()}));try{this._insertCursor(n,g),n.src&&!r||t()}catch(e){this.options.error(e),t()}},e.prototype._buildScript=function(e){var t=this.doc.createElement(e.tagName);return u.eachKey(e.attrs,(function(e,n){t.setAttribute(e,n)})),e.content&&(t.text=e.content),t},e.prototype._scriptLoadHandler=function(e,t){function n(){e=e.onload=e.onreadystatechange=e.onerror=null}function r(){n(),null!=t&&t(),t=null}function a(e){n(),o(e),null!=t&&t(),t=null}function i(e,t){var n=e["on"+t];null!=n&&(e["_on"+t]=n)}var o=this.options.error;i(e,"load"),i(e,"error"),c(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){a({msg:"onload handler failed "+t+" @ "+e.src})}r()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){return void a({msg:"onerror handler failed "+t+" @ "+e.src})}a({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&r()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();t.default=m},function(e){var t;t=function(){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=r(n(1));e.exports=a.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=a(n(2)),s=a(n(3)),c=r(n(6)),l=n(5),u={comment:/^");if(t>=0)return new l.CommentToken(e.substr(4,t-1),t+3)}function a(e){var t=e.indexOf("<");return new l.CharsToken(t>=0?t:e.length)}function i(e){var t,n,r;if(-1!==e.indexOf(">")){var a=e.match(u.startTag);if(a){var i=(t={},n={},r=a[2],a[2].replace(u.attr,(function(e,a){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",n[arguments[5]]=!0):t[a]=arguments[2]||arguments[3]||arguments[4]||u.fillAttr.test(a)&&a||"":t[a]="",r=r.replace(e,"")})),{v:new l.StartTagToken(a[1],a[0].length,t,n,!!a[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))});if("object"===(void 0===i?"undefined":c(i)))return i.v}}}function o(e){var t=i(e);if(t){var n=e.slice(t.length);if(n.match(new RegExp("","i"))){var r=n.match(new RegExp("([\\s\\S]*?)","i"));if(r)return new l.AtomicTagToken(t.tagName,r[0].length+t.length,t.attrs,t.booleanAttrs,r[1])}}}function s(e){var t=e.match(u.endTag);if(t)return new l.EndTagToken(t[1],t[0].length)}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.comment=r,t.chars=a,t.startTag=i,t.atomicTag=o,t.endTag=s;var l=n(4),u={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.EndTagToken=t.AtomicTagToken=t.StartTagToken=t.TagToken=t.CharsToken=t.CommentToken=t.Token=void 0;var a=n(5),i=(t.Token=function e(t,n){r(this,e),this.type=t,this.length=n,this.text=""},t.CommentToken=function(){function e(t,n){r(this,e),this.type="comment",this.length=n||(t?t.length:0),this.text="",this.content=t}return e.prototype.toString=function(){return"