/*! For license information please see tracking.js.LICENSE.txt */ !function(){"use strict";var e={1359:function(e,t){var o=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function r(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var n,a,s=[];for(a in"string"!==typeof t&&(t="?"),e)if(o.call(e,a)){if((n=e[a])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),a=r(a),n=r(n),null===a||null===n)continue;s.push(a+"="+n)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,o=/([^=?#&]+)=?([^&]*)/g,r={};t=o.exec(e);){var a=n(t[1]),s=n(t[2]);null===a||null===s||a in r||(r[a]=s)}return r}},3062:function(e){e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},2225:function(e,t,o){var n=o(3062),r=o(1359),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function p(e){return(e||"").toString().replace(a,"")}var d=[["#","hash"],["?","query"],function(e,t){return f(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],w={hash:1,query:1};function h(e){var t,n=("undefined"!==typeof window?window:"undefined"!==typeof o.g?o.g:"undefined"!==typeof self?self:{}).location||{},r={},a=typeof(e=e||n);if("blob:"===e.protocol)r=new g(unescape(e.pathname),{});else if("string"===a)for(t in r=new g(e,{}),w)delete r[t];else if("object"===a){for(t in e)t in w||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=i.test(e.href))}return r}function f(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function m(e,t){e=(e=p(e)).replace(s,""),t=t||{};var o,n=l.exec(e),r=n[1]?n[1].toLowerCase():"",a=!!n[2],i=!!n[3],c=0;return a?i?(o=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(o=n[2]+n[4],c=n[2].length):i?(o=n[3]+n[4],c=n[3].length):o=n[4],"file:"===r?c>=2&&(o=o.slice(2)):f(r)?o=n[4]:r?a&&(o=o.slice(2)):c>=2&&f(t.protocol)&&(o=n[4]),{protocol:r,slashes:a||f(r),slashesCount:c,rest:o}}function g(e,t,o){if(e=(e=p(e)).replace(s,""),!(this instanceof g))return new g(e,t,o);var a,i,c,l,w,v,C=d.slice(),y=typeof t,_=this,b=0;for("object"!==y&&"string"!==y&&(o=t,t=null),o&&"function"!==typeof o&&(o=r.parse),a=!(i=m(e||"",t=h(t))).protocol&&!i.slashes,_.slashes=i.slashes||a&&t.slashes,_.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!f(_.protocol)))&&(C[3]=[/(.*)/,"pathname"]);be&&t)).forEach((([e,t])=>{const n=Array.isArray(t)?t.join(","):t;o.append(`mkt_tags.${e}`,n)})),o.toString()}catch(e){return console.warn("Failed to parse snowplow categories:",e),""}}};var g=m;const{SB_DEFAULT_CHANNEL_ID:v}=window.envVars,C=new class{constructor(e,t){this.map=e,this.defaultId=t}getValue(e){return this.map[e]||this.defaultId}}({"/amazonsellers":"amazon_us","/amazonsellers/":"amazon_us"},v);if(g.init(C),window.LUX=window.LUX||{},window.LUX.trackErrors=!1,window.dataLayer=window.dataLayer||[],window.sbJsVars&&window.sbJsVars.gtmCategories){const e={event:"postCategories"};Object.entries(JSON.parse(window.sbJsVars.gtmCategories)).forEach((([t,o])=>{var n;e[(n=t,n.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((e,t)=>t.toUpperCase())))]=1===o.length?o[0]:o.join(",")})),window.dataLayer.push(e)}window.location.search.includes("ignore-error=1")&&window.dataLayer.push({event:"ignore-error"})}()}();