spnx.jp Open in urlscan Pro
151.101.65.195  Public Scan

URL: https://spnx.jp/spnx.js
Submission Tags: falconsandbox
Submission: On April 12 via api from US — Scanned from JP

Form analysis 0 forms found in the DOM

Text Content

!function(n){var r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=10)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.postRecommendation=e.initPageview=e.getConstants=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};n(5);var i=n(2),o=n(3),s=n(1),a=n(4),u=void 0,d=void 0,c=void 0,l=[],h={siteId:"",modules:[]},f=(e.getConstants=function(){return{siteId:u,clientId:d,pageviewId:c,modules:l,params:h}},function(){document.addEventListener("click",function(t){var e,n,r,o=function(t){for(;t;){if("a"===(t.nodeName||t.tagName).toLowerCase())return t;t=t.parentNode}return null}(t.target||t.srcElement);o&&(e=o,n=t.target,r=(0,s.getBodyForClickLinkEvent)(e,n),(0,i.callApi)("postEventClickLink",{body:r}))})});e.initPageview=function(t){return h=r({},h,t),u=t.siteId,(0,o.getClientId)().then(function(t){var e={siteId:u,clientId:d=t,currentUrl:window.location.href,title:document.title,userAgent:navigator.userAgent};return(0,i.callApi)("postEventViewPage",{body:e}).then(function(t){return c=t.data.pageviewId,f(),(0,a.initIntersectionObserver)(),t})})},e.postRecommendation=function(e){var t={moduleId:e.moduleId,length:e.length,pageviewId:c,siteId:u,clientId:d,currentUrl:window.location.href,title:document.title,userAgent:navigator.userAgent,language:navigator.language,referer:document.referrer},n="banner"===e.type?"postRecommendationBanner":"postRecommendationPost";return(0,i.callApi)(n,{body:t}).then(function(t){return l.push({moduleId:e.moduleId,recommendationId:t.data.recommendationId}),t}).catch(function(t){return t})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getModuleElmFromModuleId=e.getBodyForClickLinkEvent=e.getPostUrlsFromModule=void 0;var d=n(0),r=(e.getPostUrlsFromModule=function(t){var e=r(t).querySelectorAll("a"),n=[];return e.length&&e.forEach(function(t){n.push(t.href)}),n},e.getBodyForClickLinkEvent=function(t,e){var n=function(t){for(;t;){if(t.dataset&&t.dataset.spnxModule)return t;t=t.parentNode}return null}(t),r=(0,d.getConstants)(),o="IMG"===e.nodeName||e.querySelector("img")?"thumbnail":"text",i={siteId:r.siteId,clientId:r.clientId,pageviewId:r.pageviewId,url:t.href};if(n){var s=n.dataset.spnxModule,a=r.params.modules.find(function(t){return t.id===s})||{},u=r.modules.find(function(t){return t.moduleId===s});u&&(i.recommendationId=u.recommendationId),i.moduleId=s,i.appearance=o,t.dataset.spnxItemId&&(i.itemId=t.dataset.spnxItemId),i.itemType=a.type||n.dataset.spnxModuleType||"post"}return i},e.getModuleElmFromModuleId=function(t){return document.querySelector('[data-spnx-module="'+t+'"]')})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.callApi=void 0;var h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};n(6);var f={postEventViewPage:{path:"https://api.spnx.jp/api/v1/event/view/page",method:"POST"},postEventViewModule:{path:"https://api.spnx.jp/api/v1/event/view/module",method:"POST"},postEventClickLink:{path:"https://api.spnx.jp/api/v1/event/click/link",method:"POST"},getRecommendation:{path:"https://api.spnx.jp/api/v1/recommendation",method:"GET"},postRecommendationPost:{path:"https://api.spnx.jp/api/v1/recommendation/post",method:"POST"},postRecommendationBanner:{path:"https://api.spnx.jp/api/v1/recommendation/banner",method:"POST"}};e.callApi=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n="";e.query&&(n="?"+Object.keys(e.query).map(function(t){return t+"="+e.query[t]}).join("&"));var r,o,i,s,a,u,d,c,l=f[t].path;return l=e.itemId?l+"/"+e.itemId:l,l=f[t].optionPath?l+f[t].optionPath:l,l+=n,"postEventClickLink"===t||"postEventViewModule"===t?(f[t].method,r=l,o=e.body,i=new FormData,Object.keys(o).forEach(function(t){o[t]&&i.append(t,o[t])}),void navigator.sendBeacon(r,i)):(s=f[t].method,a=l,u=e.body,d=!0,c=void 0!==u?JSON.stringify(u):null,new Promise(function(n,r){var o={method:s,headers:new Headers({"Content-Type":"application/json"}),mode:"cors",credentials:"include",accept:"application/json",body:c};"GET"===s&&(delete o.body,delete o.headers),function e(t){return fetch(a,t).then(function(t){t.ok?n(t):d?(d=!1,e(o)):r(t)})}(o)})).then(function(t){return t.json()}).then(function(t){return t}).catch(function(e){return e.json().then(function(t){return Promise.reject(h({},t,{status:e.status}))})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initRelayIframe=e.getClientId=void 0;var r,o=n(7),i=(r=o)&&r.__esModule?r:{default:r};var s=void 0,a=(e.getClientId=function(){var r=void 0;return a().then(function(t){var e=window.localStorage.spnxfpcId,n=t.spnxClientId;return e?r=e:(n?r=n:(r=(0,i.default)(),d("spnxClientId",r)),window.localStorage.spnxfpcId=r)})},function(){return new Promise(function(e,n){var r=0;!function t(){return s?e(s):10<++r?n():void setTimeout(t,100)}()})}),u=document.createElement("iframe");u.style.display="none",u.src="https://spnx.jp/relay.html";e.initRelayIframe=function(){return document.body.appendChild(u),new Promise(function(t){u.onload=function(){return c(),window.addEventListener("message",l),t()}})};var d=function(t,e){var n={type:"setValue",name:t,value:e};u.contentWindow.postMessage(n,"https://spnx.jp")},c=function(t){var e={type:"getValue",name:t};u.contentWindow.postMessage(e,"https://spnx.jp")},l=function(t){"https://spnx.jp"===event.origin&&(s=t.data)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInViewModule=e.initIntersectionObserver=void 0;var o=n(0),i=n(1),s=n(2),r=n(1),a=void 0,u=[],d=function(t){var e=(0,i.getPostUrlsFromModule)(t);if(e.length&&!u.includes(t)){u.push(t);var n=(0,o.getConstants)(),r={siteId:n.siteId,clientId:n.clientId,pageviewId:n.pageviewId,moduleId:t,urls:e};(0,s.callApi)("postEventViewModule",{body:r})}},c=function(t){var e=t.boundingClientRect||t.getBoundingClientRect();return 0<e.height&&0<e.width&&.9<window.innerHeight/e.bottom};e.initIntersectionObserver=function(){for(var t=[],e=0;e<10;e++)t.push(e/10);a=new IntersectionObserver(function(t){t.forEach(function(t){if(c(t)){var e=t.target.dataset.spnxModule;d(e)}})},{rootMargin:"0px",threshold:t}),document.querySelectorAll("[data-spnx-module]").forEach(function(t){return e=t,void a.observe(e);var e})},e.isInViewModule=function(t){var e=(0,r.getModuleElmFromModuleId)(t);e&&c(e)&&d(t)}},function(t,e){!function(m,y){"use strict";if("IntersectionObserver"in m&&"IntersectionObserverEntry"in m&&"intersectionRatio"in m.IntersectionObserverEntry.prototype)"isIntersecting"in m.IntersectionObserverEntry.prototype||Object.defineProperty(m.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});else{var e=[];t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},t.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(n(m,"resize",this._checkForIntersections,!0),n(y,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in m&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(y,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,r(m,"resize",this._checkForIntersections,!0),r(y,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},t.prototype._checkForIntersections=function(){var a=this._rootIsInDom(),u=a?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(t){var e=t.element,n=v(e),r=this._rootContainsTarget(e),o=t.entry,i=a&&r&&this._computeTargetAndRootIntersection(e,u),s=t.entry=new d({time:m.performance&&performance.now&&performance.now(),target:e,boundingClientRect:n,rootBounds:u,intersectionRect:i});o?a&&r?this._hasCrossedThreshold(o,s)&&this._queuedEntries.push(s):o&&o.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=m.getComputedStyle(t).display){for(var n,r,o,i,s,a,u,d,c=v(t),l=g(t),h=!1;!h;){var f=null,p=1==l.nodeType?m.getComputedStyle(l):{};if("none"==p.display)return;if(l==this.root||l==y?(h=!0,f=e):l!=y.body&&l!=y.documentElement&&"visible"!=p.overflow&&(f=v(l)),f&&(n=f,r=c,void 0,o=Math.max(n.top,r.top),i=Math.min(n.bottom,r.bottom),s=Math.max(n.left,r.left),a=Math.min(n.right,r.right),d=i-o,!(c=0<=(u=a-s)&&0<=d&&{top:o,bottom:i,left:s,right:a,width:u,height:d})))break;l=g(l)}return c}},t.prototype._getRootRect=function(){var t;if(this.root)t=v(this.root);else{var e=y.documentElement,n=y.body;t={top:0,left:0,right:e.clientWidth||n.clientWidth,width:e.clientWidth||n.clientWidth,bottom:e.clientHeight||n.clientHeight,height:e.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},t.prototype._expandRectByRootMargin=function(n){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?n.width:n.height)/100}),e={top:n.top-t[0],right:n.right+t[1],bottom:n.bottom+t[2],left:n.left-t[3]};return e.width=e.right-e.left,e.height=e.bottom-e.top,e},t.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},t.prototype._rootIsInDom=function(){return!this.root||o(y,this.root)},t.prototype._rootContainsTarget=function(t){return o(this.root||y,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},m.IntersectionObserver=t,m.IntersectionObserverEntry=d}function d(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function t(t,e){var n,r,o,i=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){n(),o=null},r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function n(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function r(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function v(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function o(t,e){for(var n=e;n;){if(n==t)return!0;n=g(n)}return!1}function g(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}(window,document)},function(t,e,n){"use strict";n.r(e),n.d(e,"Headers",function(){return d}),n.d(e,"Request",function(){return y}),n.d(e,"Response",function(){return g}),n.d(e,"DOMException",function(){return w}),n.d(e,"fetch",function(){return I});var a={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(a.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&-1<r.indexOf(Object.prototype.toString.call(t))};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a.iterable&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function l(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function h(t){var e=new FileReader,n=l(e);return e.readAsArrayBuffer(t),n}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:a.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a.arrayBuffer&&a.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t,e,n,r=c(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=l(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=i(t),e=s(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[i(t)]},d.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},d.prototype.set=function(t,e){this.map[i(t)]=s(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),u(n)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),u(n)},a.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var n,r,o=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),-1<m.indexOf(r)?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function v(t){var o=new FormData;return t.trim().split("&").forEach(function(t){if(t){var e=t.split("="),n=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(n),decodeURIComponent(r))}}),o}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];g.redirect=function(t,e){if(-1===b.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})};var w=self.DOMException;try{new w}catch(t){(w=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function I(o,s){return new Promise(function(r,t){var e=new y(o,s);if(e.signal&&e.signal.aborted)return t(new w("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var t,o,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",o=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var e=t.split(":"),n=e.shift().trim();if(n){var r=e.join(":").trim();o.append(n,r)}}),o)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;r(new g(n,e))},i.onerror=function(){t(new TypeError("Network request failed"))},i.ontimeout=function(){t(new TypeError("Network request failed"))},i.onabort=function(){t(new w("Aborted","AbortError"))},i.open(e.method,e.url,!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&a.blob&&(i.responseType="blob"),e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),e.signal&&(e.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",n)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}I.polyfill=!0,self.fetch||(self.fetch=I,self.Headers=d,self.Request=y,self.Response=g)},function(t,e,n){var p,m,y=n(8),v=n(9),g=0,b=0;t.exports=function(t,e,n){var r=e&&n||0,o=e||[],i=(t=t||{}).node||p,s=void 0!==t.clockseq?t.clockseq:m;if(null==i||null==s){var a=y();null==i&&(i=p=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=m=16383&(a[6]<<8|a[7]))}var u=void 0!==t.msecs?t.msecs:(new Date).getTime(),d=void 0!==t.nsecs?t.nsecs:b+1,c=u-g+(d-b)/1e4;if(c<0&&void 0===t.clockseq&&(s=s+1&16383),(c<0||g<u)&&void 0===t.nsecs&&(d=0),1e4<=d)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=u,m=s;var l=(1e4*(268435455&(u+=122192928e5))+(b=d))%4294967296;o[r++]=l>>>24&255,o[r++]=l>>>16&255,o[r++]=l>>>8&255,o[r++]=255&l;var h=u/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=255&h,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var f=0;f<6;++f)o[r+f]=i[f];return e||v(o)}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var o=[],n=0;n<256;++n)o[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,r=o;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")}},function(t,e,n){"use strict";var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a=n(0),r=n(3),u=n(4),d=n(11);window.spnx=function(t,e){(0,r.initRelayIframe)().then(function(){return(0,a.initPageview)(t)}).then(function(){return t.backdoor&&"true"!==window.localStorage.spnx_backdoor?t.modules:(i=t,new Promise(function(n){var r=[],o=0;i.modules.forEach(function(e){(0,a.postRecommendation)(s({},e,{moduleId:e.id})).then(function(t){if(t.data&&((0,d.renderModule)(e.id,t.data),(0,u.isInViewModule)(e.id)),r.push(s({},e,{data:t.data})),++o===i.modules.length)return n(r)})})}));var i}).then(function(t){return e(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderModule=void 0;var r,s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(12),a=(r=o)&&r.__esModule?r:{default:r},u=n(0);var d=["href","title","img","background"];e.renderModule=function(t,e){var n=document.querySelector('[data-spnx-module="'+t+'"]');if(n){var o=n.querySelector("[data-spnx-container]")||n,i=document.querySelector('[data-spnx-template="'+t+'"] [data-spnx-item]');n.dataset.recommendationId=e.recommendationId,i&&e.recommendedItems.forEach(function(r){r=s({},r.additionalData,r);var t=i.cloneNode(!0);d.forEach(function(e){(t.querySelector("[data-spnx-attr="+e+"]")?t.querySelectorAll("[data-spnx-attr="+e+"]"):t.querySelectorAll("[data-spnx-item-"+e+"]")).forEach(function(t){return function(t,e,n){var r="href"===t?n.url:"img"===t||"background"===t?n.thumbnail:n[t];switch(!r&&e.hasAttribute("data-spnx-default")&&(r=e.dataset.spnxDefault),t){case"href":e.setAttribute("href",r),e.dataset.spnxItemId=n.itemId;break;case"title":e.hasAttribute("data-spnx-item-title")&&(e.textContent=r);break;case"img":e.src=r;break;case"background":e.style.backgroundImage="url('"+r+"')"}}(e,t,r)})}),t.querySelectorAll("[data-spnx-text]").forEach(function(t){!function(t,e,n){var r=!n[t]&&e.hasAttribute("data-spnx-default")?e.dataset.spnxDefault:n[t];if(Array.isArray(r)&&(r=r.join(e.dataset.spnxArray||"")),e.hasAttribute("data-spnx-date-type")){var o=(0,u.getConstants)(),i=e.dataset.spnxDateType||o.params.dateFormat;r=(0,a.default)(r,i)}e.textContent=r}(t.dataset.spnxText,t,r)}),t.querySelectorAll("[data-spnx-display-only-when-key][data-spnx-display-only-when-value]").forEach(function(t){var e=t.dataset.spnxDisplayOnlyWhenKey,n=t.dataset.spnxDisplayOnlyWhenValue;String(r[e])===String(n)&&(t.style.display="")}),o.appendChild(t)})}}},function(e,n,r){var o;!function(t){"use strict";var w,I,_,T=(w=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,I=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,_=/[^-+\dA-Z]/g,function(t,e,n,r){if(1!==arguments.length||"string"!==(null===(o=t)?"null":void 0===o?"undefined":"object"!=typeof o?typeof o:Array.isArray(o)?"array":{}.toString.call(o).slice(8,-1).toLowerCase())||/\d/.test(t)||(e=t,t=void 0),(t=t||new Date)instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");var o,i=(e=String(T.masks[e]||e||T.masks.default)).slice(0,4);"UTC:"!==i&&"GMT:"!==i||(e=e.slice(4),n=!0,"GMT:"===i&&(r=!0));var s,a=n?"getUTC":"get",u=t[a+"Date"](),d=t[a+"Day"](),c=t[a+"Month"](),l=t[a+"FullYear"](),h=t[a+"Hours"](),f=t[a+"Minutes"](),p=t[a+"Seconds"](),m=t[a+"Milliseconds"](),y=n?0:t.getTimezoneOffset(),v=function(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);var n=new Date(e.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=e.getTimezoneOffset()-n.getTimezoneOffset();e.setHours(e.getHours()-r);var o=(e-n)/6048e5;return 1+Math.floor(o)}(t),g=(0===(s=t.getDay())&&(s=7),s),b={d:u,dd:E(u),ddd:T.i18n.dayNames[d],dddd:T.i18n.dayNames[d+7],m:c+1,mm:E(c+1),mmm:T.i18n.monthNames[c],mmmm:T.i18n.monthNames[c+12],yy:String(l).slice(2),yyyy:l,h:h%12||12,hh:E(h%12||12),H:h,HH:E(h),M:f,MM:E(f),s:p,ss:E(p),l:E(m,3),L:E(Math.round(m/10)),t:h<12?T.i18n.timeNames[0]:T.i18n.timeNames[1],tt:h<12?T.i18n.timeNames[2]:T.i18n.timeNames[3],T:h<12?T.i18n.timeNames[4]:T.i18n.timeNames[5],TT:h<12?T.i18n.timeNames[6]:T.i18n.timeNames[7],Z:r?"GMT":n?"UTC":(String(t).match(I)||[""]).pop().replace(_,""),o:(0<y?"-":"+")+E(100*Math.floor(Math.abs(y)/60)+Math.abs(y)%60,4),S:["th","st","nd","rd"][3<u%10?0:(u%100-u%10!=10)*u%10],W:v,N:g};return e.replace(w,function(t){return t in b?b[t]:t.slice(1,t.length-1)})});function E(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}T.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},T.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},void 0===(o=function(){return T}.call(n,r,n,e))||(e.exports=o)}()}]);