/*! * Bazaarvoice bv-loader v13.6.4 * Fri Nov 19 2021 17:31:05 GMT+0000 (Coordinated Universal Time) * * Capabilities: * * api@0.8.0 * inline_ratings@2.2.3 * rating_summary@2.55.0 * ratings@0.1.23 * reviews@0.4.0 * swat-submission@4.5.2 * * http://bazaarvoice.com * * Copyright 2021 Bazaarvoice. All rights reserved. * */(()=>{var e={353:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var r,o=n(788),a=n.n(o),i=n(920),s=function(){var e={timeout:6e4};return r||(r=new i((function(t,n){a().loadScript("https://analytics-static.ugc.bazaarvoice.com/prod/static/3/bv-analytics.js",e,(function(e){e?n(e):t()}))})))}},426:(e,t,n)=>{var r=n(422),o=r.document&&(r.document.currentScript||r.document.querySelector('script[src*="bv.js"]'));e.exports=o},621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>dt});var r,o,a=n(690),i=n(304),s=n(611),c=n.n(s),u=n(318),l=n(886),f=n(422),d="ADDED",m="REMOVED",p=["data-bv-show","name"],h=[],v="",g=new WeakMap,y=function(e,t){return e.matches?e.matches(t):e.msMatchesSelector(t)},b=function(e){var t=g.get(e);t&&(t.watches.forEach((function(t){(0,t.callback)(m,e)})),t.observer.disconnect(),g.delete(e))},w=function(e){return new f.MutationObserver((function(t){t.forEach((function(t){y(e,v)?function(e,t){g.get(e).watches.forEach((function(n){(0,n.callback)("UPDATED",e,t)}))}(e,t):b(e)}))}))},E=function(e,t){var n,r=h.filter((function(t){var n=t.selector;return y(e,n)})),o=r.reduce((function(e,t){var n=t.attributes,r=void 0===n?[]:n;return e.concat(r)}),[]),a=r;g.has(e)?(n=g.get(e).observer,t&&(a=[t])):n=w(e),n.observe(e,{attributes:!0,attributeFilter:o.length?o:void 0}),g.set(e,{watches:r,observer:n}),a.forEach((function(t){(0,t.callback)(d,e)}))},S=function(e){for(var t=e.length,n=0;n0)for(var u=0;u0)for(var h=0;h0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";Z.cookies={consent:e,source:t}},I={};T().call(I);var M=function(e){if(e===A){var t=V.get(A);void 0===t?R():R("true"===t.toLowerCase(),"site"),I.trigger("change",A)}};V.on("change",M),M(A),Object.defineProperty(I,A,{get:function(){return Z.cookies},set:function(e){R(e&&!0===e.consent,"manual"),I.trigger("change",A)}});const D=I;var q=n(426),U=n.n(q),z=/[,\s]\s*/,F="bvCallback",W=function(){if(!U())return[];var e=U().getAttribute("data-bv-preload");return e?e.split(z):[]}(),$=U()&&U().getAttribute("data-bv-callback")||F,H=U()&&U().getAttribute("data-bv-display-code"),Q=U()&&U().getAttribute("data-bv-hostname");function J(){return(J=Object.assign||function(e){for(var t=1;t1?n-1:0),o=1;o1?t-1:0),r=1;ri?(r.totalActualBVLoadTime+=l,i=f):f>i&&ca?(r.totalActualOtherLoadTime+=l,a=f):f>a&&c0?"".concat(e[0].toUpperCase()).concat(e.slice(1,e.length)):e})).join("");e[n]=he(t.startTime)})),me(pe(e))},ye=n(974),be="bv_metrics",we=function(){return ye.create(be,!0,72e5/864e5),!0},Ee=!!ye.read(be)||!Math.floor(1e3*Math.random())&&we();const Se=function(e,t,n,r){if(Ee&&t.length){we();var o={type:"performance",name:"Display",scope:e,metrics:t};n&&(o.bvProduct=n),r&&(o.bvProductVersion=r),Y.trackEvent("Diagnostic",o)}};var ke=n(423),Oe={},Te={},_e=n.n(ke)()(Array),xe=function(e,t){e.filter((function(e){return!e.dataset.bvReady})).forEach((function(e){var n=e.dataset.bvShow;Oe[n]&&Oe[n].forEach((function(r){if("spotlights"===n&&t){var o=e.parentElement;e.removeAttribute("data-bv-ready"),o.replaceChild(e.cloneNode(!1),e)}else r(e),e.dataset.bvReady=!0}))}))},Ce=function(e){e.filter((function(e){return e.dataset.bvReady})).forEach((function(e){var t=e.dataset.bvShow;Te[t]&&Te[t].forEach((function(t){t(e),delete e.dataset.bvReady}))}))},Pe=function(e,t){Oe[e]||(Oe[e]=[]),Oe[e].push(t),function(e){return _e.then((function(t){var n=document.querySelectorAll("[".concat("data-bv-show","]"));return t.prototype.filter.call(n,(function(t){return!e||t.dataset.bvShow===e}))}))}(e).then(xe)},Ne=["data-bv-product-id","data-bv-productId","data-bv-productid","data-bv-show","data-bv-subject-id"],Be=a.Z.apps.reduce((function(e,t){var n=t.publicName;return e[t.name]=n,e}),{}),je=Object.keys(Be).reduce((function(e,t){return e[Be[t]]=function(){},e}),{}),Ae=function(e,t,r){var o=e.config.name,a=Be[o],i=r.bvShow=r.createMark("bvShow");a&&(je[a]=function(){t()(),e.ready((function(){i.start(),Pe(a,(function(t){n.g.BV&&n.g.BV.Spotlights&&"spotlights"===a&&delete n.g.BV.Spotlights,e.trigger("container_added",t)})),function(e,t){Te[e]||(Te[e]=[]),Te[e].push(t)}(a,(function(t){e.trigger("container_removed",t)}))})),je[a]=function(){}})},Ve=function(e){e.forEach((function(e){var t=e.dataset.bvShow;je[t]&&je[t]()}))},Ze=n(788),Le=n.n(Ze),Re=n(920);function Ie(){return(Ie=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=10&&Number(o)>=13&&t){var a=Ke(t,2)[1];return Number(a)>=11}return!1}return!0}():!nt.noModule&&nt.isFirefox?function(){var e=tt.match(/(?:firefox\/)([\d.]+)/);if(e&&e.length){var t=Ke(e,2)[1];return Number(t)>54}return!1}():nt.noModule;const rt=nt;var ot=n.g.BV,at=function(e){return e&&e.split(",").map((function(e){return e.trim()}))||[]}(_.disabled);function it(e,t){var r=t.createMark("register",e.name);r.end=r.start();var o=new(Je())({name:e.name});u.Z.registerProperty(e.name,o);var a=t.createMark("app",e.name),i=a.createMark("configure"),s=a.createMark("load"),c=a.createMark("render");a.configure=i,a.load=s,a.render=c,u.Z[e.name].perfMark=a;var l=u.Z[e.name]._analytics=K({name:e.name,source:"bv-loader"});ot.global.loadUserSegment.then((function(e){l.setCommonData({displaySegment:e})})),"api"===e.name&&(u.Z[e.name].analytics=l),o.setErrorHandler((function(t,r){return function(e,t,r){t instanceof Error||(t=new Error(t));var o=n.g.console;o&&o.error&&o.error(t),u.Z[e]._analytics.trackError({message:t.message||t,stack:t.stack,type:"BV Application ".concat(r.event," ").concat(t.name||"Error")}),(0,ee.Z)().then((function(n){r.app=e,n(t,{extra:r})}))}(e.name,t,r)}));var f=function(){at.some((function(t){return~[e.name,e.publicName].indexOf(t)}))?Y.trackEvent("Feature",{type:"Used",name:"AppDisabled",detail1:e.name}):function(e,t,n){n.load.end=n.load.start();var r=e.sourcePath;if(e.legacyPath&&!rt.doModernLoad&&(r=e.legacyPath),Le().loadScript(r,{timeout:6e4},(function(r){Ge(r,e,t,n)})),e.configUrl){var o=n.createMark("load","config");o.end=o.start(),Le().loadScript(e.configUrl,{timeout:3e4},(function(){o.end()}))}}(e,o,a),f=function(){}};if(W.some((function(t){return t===e.name}))||!e.defer)f();else{var d=o.configure,m=o.ready,p=o.render,h=function(e,t){return f(),o.configure=d,o.ready=m,o.render=p,o[e].apply(this,t)};["configure","ready","render"].forEach((function(e){o[e]=function(){return h.call(this,e,arguments)}}))}Ae(o,(function(){return f}),a),r.end()}T().call(Je().prototype);var st=n(353),ct=n(920);function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1||ft.navigator.userAgent.indexOf("Trident/");if(u.Z.privacy=D,u.Z.pixel=K({commonData:{bvProduct:"pixel"},name:"pixel",source:"bv-loader"}),a.Z.isCurationsEnabled){ft.crl8=ft.crl8=ft.crl8||{};var r=!1,o=[],i=function(){r=!0,o.forEach((function(e){e()}))};ft.crl8.ready=function(e){r?e():o.push(e)}}(a.Z.apps.forEach((function(e){return it(e,t)})),u.Z.curations&&u.Z.curations.on("curations_loaded",i),k({selector:"[data-bv-show]",attributes:Ne,callback:function(e,t){var n=[t];e===d?(Ve(n),xe(n)):e===m?Ce(n):(Ve(n),Ce(n),xe(n,!0))}}),ft.$BV&&"ui"in ft.$BV||a.Z.isPreview||(ft.$BV=Ue()),"container"===(_.pageType||void 0)&&(a.Z.isConversations?ft.$BV.container("global",{}):ft.$BV.ui("submission_container",{})),(0,st.M)(),$)&&(ft[$]?p(ft[$]):Object.defineProperty(ft,$,{get:function(){return n},set:function(e){n=e,p(e)}}));t.end();var s=ut(t.measures,1)[0],c=s.duration,l=s.startTime,f=l+c;try{Y.trackEvent("Diagnostic",{name:"timeToRunScout",type:"Performance",startTime:l.toFixed(4),endTime:f.toFixed(4),elapsedMs:c.toFixed(4)})}catch(e){}function p(e){if("function"!=typeof e)throw Error("The BV Callback must be a function.");setTimeout((function(){e.call(null,u.Z)}))}Ee&&(new ct((function(t){"interactive"===e.readyState?t():e.addEventListener("DOMContentLoaded",(function(){t()}))})).then((function(){Se("page",function(){var e=de.devicePixelRatio,t=de.innerHeight,n=de.innerWidth,r=de.navigator,o={devicePixelRatio:e,screenHeight:t,screenWidth:n};r.connection&&(o.effectiveType=r.connection.effectiveType,o.downlink=r.connection.downlink);var a=ne.getEntriesByType("navigation").shift();return a&&["connectEnd","connectStart","domainLookupStart","domainLookupEnd","domComplete","domInteractive","domContentLoadedEventStart","fetchStart","loadEventEnd","requestStart","responseStart","responseEnd","secureConnectionStart"].forEach((function(e){o[e]=he(a[e])})),me(pe(o))}()),Se("bv-loader",function(){var e={},t=ne.getEntriesByType("resource").filter((function(e){return!!e.name.match(le.Z.bvLoaderRegex)})).shift();t&&["connectEnd","connectStart","domainLookupStart","domainLookupEnd","domComplete","domInteractive","domContentLoadedEventStart","fetchStart","loadEventEnd","requestStart","responseStart","responseEnd","secureConnectionStart"].forEach((function(n){e[n]=he(t[n])}));var n,r,o=(n="requestedApp",r=a.Z.apps.map((function(e){return e.name})),r.map((function(e){return{name:n,value:e}}))).concat(pe(e));return me(o)}())})),window.addEventListener("unload",(function(){for(var e in Se("resources",ge()),ft.BV._render.layouts)Se("render",ve(e,!0),e)})))}},690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={deployment:{client:"comedmkt",site:"main_site",environment:"production",locale:"en_US"},dataEnvironment:"prod",serverEnvironment:"prod",vpc:"prod",piiDataRegion:"unitedStates",cookiesOptIn:!1,displayCode:"10948",domains:[{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".comedmarketplace.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".bazaarvoice.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".localhost"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".d-c-euweb-marketplace-comed-ui-01.azurewebsites.net"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".s-c-euweb-marketplace-comed-ui-01.azurewebsites.net"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".azstg-secure.comed.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".aztest.comed.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".marketplacedevcentral.blob.core.windows.net"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".marketplaceprodcentral.azureedge.net"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".secure.comed.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".comed.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"translate.googleusercontent.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"webcache.googleusercontent.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"translate.baiducontent.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:".bazaarvoice.com"},{firstPartyCookieEnabled:!0,thirdPartyCookieEnabled:!0,domain:"localhost"}],scoutVersion:"13.6.4",splitTestingEnabled:!1,isConversations:!0,isPreview:!1,legacyScoutUrl:"https://display.ugc.bazaarvoice.com/static/comedmkt/main_site/en_US/bvapi.js",paths:{root:"https://apps.bazaarvoice.com",splitTests:"https://apps.bazaarvoice.com/splitTests.json",componentTemplate:"https://apps.bazaarvoice.com/components/components-<%= version %>.min.js",renderTemplate:"https://apps.bazaarvoice.com/render/render-<%= version %>.min.js",layoutRoot:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/layouts"},render:{},webAnalyticsIntegrationConfigs:[],apps:[{name:"api",version:"0.8.0",defer:!1,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/api/api-0.8.0.js",legacyPath:"https://apps.bazaarvoice.com/apps/api/api-0.8.0.legacy.js",publicName:"api",configUrl:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/api-config.js"},{name:"inline_ratings",version:"2.2.3",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/inline_ratings/inline_ratings-2.2.3.js",legacyPath:null,publicName:"inline_rating",configUrl:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/inline_ratings-config.js"},{name:"rating_summary",version:"2.55.0",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/rating_summary/rating_summary-2.55.0.js",legacyPath:null,publicName:"rating_summary",configUrl:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/rating_summary-config.js"},{name:"ratings",version:"0.1.23",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/ratings/ratings-0.1.23.js",legacyPath:null,publicName:"ratings",configUrl:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/ratings-config.js"},{name:"reviews",version:"0.4.0",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/reviews/reviews-0.4.0.js",legacyPath:null,publicName:"reviews",configUrl:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/reviews-config.js"},{name:"swat-submission",version:"4.5.2",defer:!0,hasConfig:!0,sourcePath:"https://apps.bazaarvoice.com/apps/swat-submission/swat-submission-4.5.2.js",legacyPath:null,publicName:"multi_submission",configUrl:"https://apps.bazaarvoice.com/deployments/comedmkt/main_site/production/en_US/swat-submission-config.js"}]}},318:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(530),o=n.n(r),a=n(690),i=n(422),s=console.warn.bind(console),c=["API_BASE_URL","Date","_bvapijs","_internal","_options","_staticAssetRegistry","configure","define","easyXDM","extensions","global","initialData","name","options","performance","pixel","privacy","_private","registerProperty","_render","requestAnimationFrame","require","requirejs","serverRender","_spotlightsConfig","Spotlights","staticAssetLoader","ud","ui"].concat(a.Z.apps.map((function(e){return e.name})));if("Proxy"in i){var u=i.Proxy;i.BV=new u(i.BV||{},{set:function(e,t,n){return~c.indexOf(t)||s("Unexpected property '".concat(t,"' assigned to window.BV. Valid assignment to the BV variable requires approval from the BV Loader Team.")),e[t]=n,!0}})}const l=o().namespace("BV")},334:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(690),o=new RegExp("/deployments/([^/]+)/(?:[^/]+/){3}bv\\.js");const a={appNameRegex:function(e){return new RegExp("".concat(r.Z.paths.root,"/apps/").concat(e,"/").concat(e,"-[^/]+.js"))},layoutNameRegex:function(e){return new RegExp("".concat(r.Z.paths.layoutRoot,"/").concat(e,".json"))},renderRegex:r.Z.deployment.local?new RegExp("render.js"):new RegExp("".concat(r.Z.paths.root,"/render/render-[^/]+.js")),bvLoaderRegex:o,parseClient:function(e){var t=o.exec(e);if(t)return t[1]},errorReportPath:"".concat(r.Z.paths.root,"/errors")}},183:(e,t,n)=>{"use strict";n.r(t);var r=n(318),o=n(886),a=n(197);r.Z._private={},(0,o.Z)(r.Z._private,{ponyfills:r.Z.global.ponyfills,SystemJS:r.Z.global.SystemJS,loadUserSegment:r.Z.global.loadUserSegment,errorReporter:a.Z}),Object.freeze(r.Z._private)},197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(753),o=n.n(r),a=n(690),i=n(390),s=n(304),c=n(334),u=n(353),l=n(920),f=n(306).i8,d=n(422);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.extra,r=t.renderVersion,o=t.componentsVersion,a=t.component,i=(0,u.M)().then((function(){return p(e,{extra:n,renderVersion:r,componentsVersion:o,component:a})})).catch((function(){return p(e,{extra:n,renderVersion:r,componentsVersion:o,component:a})}));return i.then((function(e){return h(e)}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.extra,r=t.renderVersion,o=t.componentsVersion,c=t.component,u=v(e),l={timestamp:new Date(Date.now()).toISOString(),logger:"bv.js",platform:"javascript",sdk:{name:"bv-loader",version:f},level:"error",release:f,tags:{components_release:o,bv_loader_release:f,render_release:r,client:a.Z.deployment.client,deployment_zone:a.Z.deployment.site,data_environment:a.Z.dataEnvironment,locale:a.Z.deployment.locale,component:c,load_id:d.BVA?d.BVA.loadId:void 0},environment:a.Z.serverEnvironment,exception:u,extra:n},m=(0,i.detect)();return m&&(l.contexts={browser:{name:m.name,version:m.version}}),(0,s.vd)().then((function(e){Object.defineProperty(l.tags,"bv_segment",{value:e})})).then((function(){return l}))}function h(e){var t=new XMLHttpRequest;return new l((function(n,r){t.onreadystatechange=function(){if(t.readyState===XMLHttpRequest.DONE)if(200===t.status){var e;try{e=JSON.parse(t.responseText)}catch(e){r("Unable to JSON.parse server response: ".concat(t.responseText,"."))}n(e)}else r("The call to the server was not successful.")},t.open("POST",c.Z.errorReportPath),t.timeout=1e4,t.ontimeout=function(){t.abort()},t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(e))}))}function v(e){var t=function(e){var t;try{t=o().parse(e)}catch(e){return}return{frames:t.map((function(e){return{filename:e.fileName,function:e.functionName,lineno:e.lineNumber,colno:e.columnNumber}}))}}(e);return{type:e.name,value:e.message,stacktrace:t}}const g=function(){return new l((function(e){e(m)}))}},886:(e,t,n)=>{"use strict";function r(e,t){Object.keys(t).forEach((function(n){void 0!==t[n]&&Object.defineProperty(e,n,{value:t[n]})}))}n.d(t,{Z:()=>r})},304:(e,t,n)=>{"use strict";n.d(t,{vd:()=>w});var r=n(974),o=n.n(r),a=n(318),i=n(690),s=n(920),c=new Map;var u=n(920);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?r:o;i.sort((function(e,t){return new Date(e.startDate)-new Date(t.startDate)})),t=i.shift()}catch(e){throw new Error("Something went wrong when choosing a split test.\n Please ensure that all defined tests are valid. ".concat(e))}return t}function w(){if(!i.Z.splitTestingEnabled)return u.resolve(m);var e,t=(e="bv_segment",d.location.search.substr(1).split("&").filter((function(t){return t.split("=")[0]===e})).map((function(e){return e.split("=")[1]}))[0]);if(t)return u.resolve(t);var n=o().read(v);if(n){var r;try{r=JSON.parse(n)}catch(e){}if(r){var a=r.segment;if(a){var s=u.resolve(a);return s.then((function(){return e=r.testId,void y().then((function(t){var n=l(t.filter((function(t){return t.id===e})),1)[0];n&&n.forceExpire&&o().remove(v)}));var e})),s}}}return y().then(b).then((function(e){if(!e)return m;var t=new Date(e.start).getTime();if(t<=Date.now()){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12096e5,n=Date.now()-e;return(t-n)/p}(t,e.duration);if(n>0){var r=e.id,a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=0,n=Object.keys(e).sort();n.length;){var r=n.pop(),o=e[r];if(g<=t+o)return r;t+=o}return m}(e.splits),i=JSON.stringify({testId:r,segment:a});return o().create(v,i,n),a||m}}}))}},388:function(e,t){var n,r,o;r=[],void 0===(o="function"==typeof(n=function(){function e(e){if(!(e=e||{}).name||"string"!=typeof e.name)throw new TypeError("config.name is required and must be string");this.name=e.name,this.commonData=e.commonData||{},this._verify(),this.q.push(["create",e]);for(var t,n,r=["Staging","Audience","Anonymous"],o=0;o=1&&!e?n=setInterval(d,a):0===r.length&&e&&(clearInterval(n),n=null)}function c(e){for(var t=0;t=r?0:Math.min(r-n.top,n.height)}function f(e){var t,n=e.getBoundingClientRect(),r=u().width;return n.left<=0?(t=Math.max(n.left+n.width,0),t=Math.min(t,r)):n.left>=r?0:Math.min(r-n.left,n.width)}function d(){for(var e,t,n,o=0;on.minTime&&n.callback():(n.inViewAt=t,0===n.minTime&&n.callback()):delete n.inViewAt}function m(e){this.id=e}m.prototype.remove=function(){c(this.id)},e.prototype.trackEventWhenVisible=function(e,n){var r=this;if(!e||"string"!=typeof e.cl)throw new TypeError("data.cl must exist and be a string");return new m(i(n,(function(){var n=t({},r.commonData,e);r.trackEvent(n.cl,n)})))},e.prototype.trackInView=function(e,n){var r=this;return new m(i(n=t({},n,{minTime:0}),(function(){var n=t({},r.commonData,e,{name:"InView",type:"Used",interaction:"0"});r.trackEvent("Feature",n)})))},e.prototype.trackViewedCGC=function(e,n){var r=this;return new m(i(n,(function(){var n=t({},r.commonData,e,{name:"ViewedUGC",type:"Used",interaction:"1"});r.trackEvent("Feature",n)})))}}()}(),e})?n.apply(t,r):n)||(e.exports=o)},424:(e,t,n)=>{var r=n(920);function o(e,t,n){if("function"!=typeof t)throw new Error("A function must be provided to process the queue");var r=e.length;function o(){var r=e.shift();n?t(r):setTimeout((function(){t(r)}),0)}for(;e.length>0;)o();return r}function a(e){return this.config=e,this._readyQueue=[],this._renderQueue=[],this._configQueue=[],this._promise=new r(function(e,t){this._resolve=e,this._reject=t}.bind(this)),this}a.prototype.ready=function(e){return"function"==typeof e&&this._readyQueue.push(e),this._promise},a.prototype.render=function(e){return this._renderQueue.push(e)},a.prototype.configure=function(e){return this._configQueue.push(e)};var i=function(e,t){"function"==typeof t&&t(e,this)};a.prototype.processReady=function(e){var t=i.bind(this,e);o.call(this,this._readyQueue,t,!0),this._readyQueue.push=t,this.ready=function(e){return t(e),this._promise},e?this._reject(e):this._resolve(this)},a.prototype.processQueue=function(e){o.call(this,this._renderQueue,e),this.render=this._renderQueue.push=e},a.prototype.processConfig=function(e){o.call(this,this._configQueue,e,!0),this.configure=this._configQueue.push=e},e.exports=a},974:(e,t,n)=>{var r=n(422);e.exports={create:function(e,t,n,o,a){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var s=n?";expires="+i.toGMTString():"",c=encodeURIComponent(e)+"="+encodeURIComponent(t)+s+";path=/"+(o?";domain="+o:"")+(a?";secure":"");r.document.cookie=c},read:function(e){var t,n=encodeURIComponent(e)+"=",o=r.document.cookie.split(";");for(t=0;t{var r=n(422).Date,o=r&&r.now,a="function"==typeof o;function i(){return o.call(r)}function s(){return(new r).getTime()}e.exports={now:function(){return(a?i:s)()}}},611:e=>{function t(e,t){if("."===e.charAt(0)&&t){var n=("."+t).lastIndexOf(e);return n>=0&&n===1+t.length-e.length}return t===e||t==="www."+e}e.exports=function(e,n){var r={},o={isValid:!1,get:function(e){return r[e]}},a=function(e,n){for(var r=0;r{var r=Array.prototype,o=r.indexOf,a=r.slice;function i(e){n.g.console.error(e)}function s(e){this.eventErrorHandler=e}function c(e,t){var n,r,o=this.events=this.events||{},a=e.split(/\s+/),i=a.length;for(n=0;n=0;n--)try{r[e][n].apply(this,t)}catch(n){(this.eventErrorHandler||i).call(this,n,{event:e,data:t})}return this}}function d(e,t){var n,r;if(o&&e.indexOf===o)return e.indexOf(t);for(n=0,r=e.length;n{var r,o=n(920),a=n(10),i={},s=/function\s+([^\(\s]+)/;e.exports=function(e){return new o((function(t){a((function(){var n=e.name;n||(n=s.exec(e.toString())[1]),r||((r=document.createElement("iframe")).src="about:blank",r.style.display="none",r.height="0",r.width="0",r.tabIndex="-1",r.title="empty",r.className="hidden",document.body.appendChild(r)),i[n]||(i[n]=r.contentWindow[n]),t(i[n])}))}))}},422:(e,t,n)=>{"use strict";e.exports=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}()},788:(e,t,n)=>{var r=n(422),o=n(530),a=r.document,i={};function s(){return a.getElementsByTagName("script")[0]}function c(e){return!e||"loaded"===e||"complete"===e||"uninitialized"===e}function u(e,t,n){if(!e||"string"!=typeof e)throw new Error("`url` must be a string");if(t.namespaceName&&"string"!=typeof t.namespaceName)throw new Error("`options.namespaceName` must be a string");if(t.forceLoad&&"boolean"!=typeof t.forceLoad)throw new Error("`options.forceLoad` must be a boolean");if("number"!=typeof t.timeout)throw new Error("`options.timeout` must be a number");if(n&&"function"!=typeof n)throw new Error("`callback` must be a function")}e.exports={_clearLoadedUrls:function(e){e?o.namespace(e).loadedUrls={}:i={}},loadScript:function(e,t,n){var r,l=i;if("function"==typeof t&&(n=t,t=null),(t=t||{}).timeout=t.timeout||1e4,u(e,t,n),t.namespaceName&&(r=o.namespace(t.namespaceName),l=r.loadedUrls||{}),t.forceLoad||!l[e]){var f,d=a.createElement("script"),m=!1;if(t.attributes)for(f in t.attributes)d.setAttribute(f,t.attributes[f]);d.onreadystatechange=d.onload=function(){!m&&c(d.readyState)&&h()},d.onerror=function(){m||h(new Error("Error: could not load "+e))};var p=setTimeout((function(){m||h(new Error("Error: script timeout "+e))}),t.timeout);setTimeout((function(){d.src=e;var t=s();t.parentNode.insertBefore(d,t)}),0)}else"function"==typeof n&&n();function h(o){m=!0,clearTimeout(p),d.onload=d.onreadystatechange=d.onerror=null,d.parentNode.removeChild(d),o||(l[e]=!0,t.namespaceName?r.loadedUrls=l:i=l),"function"==typeof n&&n(o)}},loadStyleSheet:function(e,t,n){var l,f=i;if("function"==typeof t&&(n=t,t=null),(t=t||{}).timeout=t.timeout||1e4,u(e,t,n),"injectionNode"in t&&!(t.injectionNode instanceof r.Element))throw new Error("`options.injectionNode` must be a DOM node");if(t.namespaceName&&(l=o.namespace(t.namespaceName),f=l.loadedUrls||{}),t.forceLoad||!f[e]){var d,m=a.createElement("link"),p=!1;if(t.attributes)for(d in t.attributes)m.setAttribute(d,t.attributes[d]);m.onreadystatechange=m.onload=function(){!p&&c(m.readyState)&&v()},m.onerror=function(){p||v(new Error("Error: could not load "+e))};var h=setTimeout(m.onerror,t.timeout);setTimeout((function(){m.media="only x",m.rel="stylesheet",m.type="text/css",m.href=e,setTimeout((function(){m.media="all"}),0);var n=t.injectionNode||s().parentNode;try{n.appendChild(m)}catch(e){v(new Error("Error: could not append LINK element"))}}),0)}else"function"==typeof n&&n();function v(r){p=!0,clearTimeout(h),m.onload=m.onreadystatechange=m.onerror=null,r||(f[e]=!0,t.namespaceName?l.loadedUrls=f:i=f),"function"==typeof n&&n(r)}}}},530:(e,t,n)=>{var r=n(422);function o(e){this.name=e}o.prototype.registerProperty=function(e,t){if(this.hasOwnProperty(e))throw new Error("Cannot register "+e+" because a property with that name already exists on window."+this.name);return this[e]=t,this},e.exports={namespace:function(e){if(void 0===r[e])Object.defineProperty(r,e,{value:new o(e)});else{if("object"!=typeof r[e])throw new Error("Namespace "+e+" cannot be created. A non-object variable is already assigned to window."+e);if(!(r[e]instanceof o))for(var t in o.call(r[e],e),o.prototype)r[e][t]=o.prototype[t]}return r[e]}}},921:e=>{e.exports={timeline:[]}},453:(e,t,n)=>{var r=n(422),o=n(921).timeline,a=r.performance,i=a&&a.getEntries,s="function"==typeof i;function c(){return i.call(a)}function u(){return o}e.exports={getEntries:function(){return(s?c:u)()}}},966:(e,t,n)=>{var r=n(422),o=n(453).getEntries,a=r.performance,i=a&&a.getEntriesByName,s="function"==typeof i;function c(e,t){return i.call(a,e,t)}function u(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'getEntriesByName' on 'Performance': 1 argument required, but only 0 present.");return o().filter((function(n){if(n.name===e&&(void 0===t||n.entryType===t))return n}))}e.exports={getEntriesByName:function(e,t){var n=arguments.length>0,r=s?c:u;return n?r(e,t):r()}}},105:(e,t,n)=>{var r=n(422),o=n(453).getEntries,a=r.performance,i=a&&a.getEntriesByType,s="function"==typeof i;function c(e){return i.call(a,e)}function u(e){if(0===arguments.length)throw new TypeError("Failed to execute 'getEntriesByType' on 'Performance': 1 argument required, but only 0 present.");return o().filter((function(t){return t.entryType===e}))}e.exports={getEntriesByType:function(e){var t=arguments.length>0,n=s?c:u;return t?n(e):n()}}},916:(e,t,n)=>{e.exports.getEntries=n(453).getEntries,e.exports.getEntriesByName=n(966).getEntriesByName,e.exports.getEntriesByType=n(105).getEntriesByType,e.exports.now=n(755).now,e.exports.mark=n(202).mark,e.exports.measure=n(165).measure},202:(e,t,n)=>{var r=n(422),o=n(755),a=n(921).timeline,i=r.performance,s=i&&i.mark,c="function"==typeof s,u={navigationStart:1,unloadEventStart:1,unloadEventEnd:1,redirectStart:1,redirectEnd:1,fetchStart:1,domainLookupStart:1,domainLookupEnd:1,connectStart:1,connectEnd:1,secureConnectionStart:1,requestStart:1,responseStart:1,responseEnd:1,domLoading:1,domInteractive:1,domContentLoadedEventStart:1,domContentLoadedEventEnd:1,domComplete:1,loadEventStart:1,loadEventEnd:1};function l(e){return s.call(i,e)}function f(e){if(arguments.length<1)throw new SyntaxError("Cannot set mark without a name");if(e in u)throw new SyntaxError('Cannot set mark with reserved name "'+e+'"');var t={entryType:"mark",name:e,startTime:o.now(),duration:0};a.push(t)}e.exports={mark:function(e){var t=arguments.length>0,n=c?l:f;return t?n(e):n()}}},165:(e,t,n)=>{var r=n(422),o=n(755).now,a=n(105).getEntriesByType,i=n(921).timeline,s=r.performance,c=s&&s.measure,u="function"==typeof c;function l(e,t,n){return void 0===t?c.call(s,e):void 0===n?c.call(s,e,t):c.call(s,e,t,n)}function f(e,t,n){if(arguments.length<1)throw new TypeError("Failed to execute 'measure' on 'Performance': 1 argument required, but only 0 present.");var r,s=a("mark"),c=0,u=o();if(void 0!==t){if(!(r=s.filter((function(e){return e.entryName===t}))).length)throw new Error("Failed to execute 'measure' on 'Performance': The mark '"+t+"' does not exist.");c=r[r.length-1].startTime}if(void 0!==n){if(!(r=s.filter((function(e){return e.entryName===n}))).length)throw new Error("Failed to execute 'measure' on 'Performance': The mark '"+n+"' does not exist.");u=r[r.length-1].startTime}var l={entryType:"measure",name:e,startTime:c,duration:u-c};i.push(l)}e.exports={measure:function(e,t,n){var r=arguments.length>0,o=u?l:f;return r?o(e,t,n):o()}}},755:(e,t,n)=>{var r=n(422),o=n(411),a=r.performance,i=a&&a.now,s="function"==typeof i,c=o.now();function u(){return i.call(a)}function l(){return o.now()-c}a&&a.timing&&"number"==typeof a.timing.navigationStart&&(c=a.timing.navigationStart),e.exports={now:function(){return(s?u:l)()}}},920:(e,t,n)=>{var r=n(422);if(void 0!==r.Promise&&r.Promise.toString().match(/\[native code]/))e.exports=r.Promise;else{var o=setTimeout;function a(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void d((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,o}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t{function t(e,t){document.body&&(t.disconnect(),e())}e.exports=function(e){if(document.body)e();else{var n=new MutationObserver((function(){t(e,n)}));n.observe(document.documentElement,{childList:!0,subtree:!0}),t(e,n)}}},390:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),a=this.extractLocation(r?r[1]:o.pop()),i=o.join(" ")||void 0,s=["eval",""].indexOf(a[0])>-1?void 0:a[0];return new e({functionName:i,fileName:s,lineNumber:a[1],columnNumber:a[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],a=2,i=r.length;a/,"$2").replace(/\([^\)]*\)/g,"")||void 0;a.match(/\(([^\)]*)\)/)&&(n=a.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:i,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}})?r.apply(t,o):r)||(e.exports=a)}()},508:function(e,t){var n,r,o;!function(a,i){"use strict";r=[],void 0===(o="function"==typeof(n=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],a=["fileName","functionName","source"],i=["args"],s=r.concat(o,a,i);function c(e){if(e instanceof Object)for(var n=0;n{"use strict";e.exports={i8:"13.6.4"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e=n(422);if(e.BV&&e.BV._private){console&&console.warn&&console.warn("BV Loader should only be called once per page.")}else n(621).Z()})()})(); //# sourceURL=https://apps.bazaarvoice.com/bv.js