!function t(e,i,r){function n(s,a){if(!i[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=i[s]={exports:{}};e[s][0].call(c.exports,function(t){var i=e[s][1][t];return n(i?i:t)},c,c.exports,t,e,i,r)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s=o;r=0<=o?++n:--n)i(t.charCodeAt(r));return e.toString(16).substring(1)},t.prototype.origin=function(){var t;return t=this.elem.src||this.elem.getAttribute("src"),window.location.protocol.match(/^https/)||(t=t.replace(/^https/,"http")),t.match(/(^.*\/)/)[0].replace(/javascripts\/$/,"").replace(/\/$/,"")},t.prototype.buildIframe=function(){return this.iframe=document.createElement("iframe"),this.iframe.id=this.id,this.iframe.scrolling="no",this.iframe.src=this.url,this.iframe.style.border="0",this.iframe.style.overflowY="hidden",this.iframe.style.transition="height 100ms linear",this.iframe.width="100%",this.iframe},t.prototype.setupListeners=function(){return o.listen("resizePlayer",this.iframe)},t.prototype.setupSubscribeButton=function(){var t;return t=new s(this.iframe),t.listen()},t.prototype.replaceElem=function(){return this.iframe.className+=this.elem.className,this.elem.parentNode.replaceChild(this.iframe,this.elem)},t.prototype.injectConfiguration=function(){return window.addEventListener("message",function(t){return function(e){var i,r;try{r=JSON.parse(e.data||e.originalEvent.data)}catch(n){return}if(r.id===t.iframe.id&&"sendConfig"===r.listenTo)return i=t.configuration.constructor===String?t.configuration:JSON.stringify(t.configuration),t.iframe.contentWindow.postMessage(i,"*")}}(this),!1)},t}(),new(r=function(){function t(){var t,e,i,r,o;if(o=[],e=document.querySelectorAll("script.podigee-podcast-player, div.podigee-podcast-player"),0!==e.length){for(i=0,r=e.length;i=s;r=0<=s?++n:--n)i(t.charCodeAt(r));return e.toString(16).substring(1)},t.prototype.listen=function(){return window.addEventListener("message",function(t){return function(e){var i,r;try{i=JSON.parse(e.data||e.originalEvent.data)}catch(n){return}if("subscribeButtonTrigger"===i.listenTo&&i.id===t.referenceId)return r=i.detail,r.id=t.id,e=new CustomEvent("openSubscribeButtonPopup",{detail:r}),document.body.dispatchEvent(e)}}(this),!1)},t}(),e.exports=r},{}]},{},[1]);