PageSourceSearch

https://www.koelsch-radio.de/wp-content/themes/cmms-theme-koelsch_radio/assets/dist/2.6/app.js

js koelsch-radio.de collected 2026-09-24 18:05:50 UTC 295,742 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Share.js","swiper.js","ActionCalendar.js","Crawl.js","EventMeta.js","Events.js","EventShortcut.js","style.js","style.css","LoadMoreButton.js","FeatureCta.js","Form.js","Gallery.js","EditorSwiper.js","GalleryShortcutList.js","GalleryShortcut.js","Headline.js","InPageNavigation.js","JobGrid.js","LastVideo.js","Line.js","LogoSlider.js","Map.js","MediaLink.js","Parallax.js","Poll.js","PostShortcutList.js","PostShortcut.js","RelatedContents.js","ScheduleDetail.js","ScheduleWidget.js","ShowToolbar.js","Author.js","JobMeta.js","TeamMember.js","SocialIcon.js","TermList.js","SocialEmbed.js","Actions.js","SliderWrapper.js","ChannelSlider.js","ChannelTeaser.js","PlaylistWidget.js","PodcastEpisodes.js","PodcastGrid.js","PodcastTeaser.js","PostGrid.js","PromoSlider.js","SongSearch.js","Team.js","TopFivePosts.js","Traffic.js","TrafficMap.js","TrafficWidget.js","Weather.js","WeatherWidget.js","GalleryTeaser.js","EventFilter.js"])))=>i.map(i=>d[i]);
2var Cu=Object.defineProperty;var Mo=e=>{throw TypeError(e)};var Tu=(e,t,n)=>t in e?Cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>Tu(e,typeof t!="symbol"?t+"":t,n),Hr=(e,t,n)=>t.has(e)||Mo("Cannot "+n);var h=(e,t,n)=>(Hr(e,t,"read from private field"),n?n.call(e):t.get(e)),x=(e,t,n)=>t.has(e)?Mo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,s)=>(Hr(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),q=(e,t,n)=>(Hr(e,t,"access private method"),n);var zo=(e,t,n,s)=>({set _(i){ne(e,t,i,n)},get _(){return h(e,t,s)}});import{d as Pu,S as Vu,N as Du,P as $u,A as Iu,f as Nu,K as Ou,a as Bu}from"./swiper.js";function $V(){import.meta.url,import("_").catch(()=>1),(async function*(){})().next()}var ks;class Ru{constructor(){x(this,ks,null)}set(t){ne(this,ks,t)}get(){return h(this,ks)}}ks=new WeakMap;const Nc=new Ru,jo={path:"/"};class kr{static get(t){const n=document.cookie.split(";");for(const s in n){const i=n[s].split("=");if(i.length>1&&String(i[0]).trim()===String(t))return decodeURIComponent(String(i[1]).trim())}return null}static set(t,n,s=jo){let i="";for(const r in s)i+=" ".concat(r,"=").concat(s[r],";");document.cookie="".concat(t,"=").concat(encodeURIComponent(n),";").concat(i)}static delete(t,n={}){kr.set(t,"",Object.assign({},jo,n,{"max-age":0}))}}function xu(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))}function Lu(){return!!(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i))}const Uo={NAV:"BASE_VIEW_NAV",HANDLE_RESPONSE:"BASE_VIEW_HANDLE_RESPONSE"},Tn={ELEMENT_PROVIDER_READY:"ELEMENT_PROVIDER_READY",AFTER_CONSENT:"SOYLENT_AFTER_CONSENT",APP_MOUNT_READY:"APP_MOUNT_READY"},Mu={AUDIO_ENDED:"PLAYER_AUDIO_ENDED"};var Ke;class zu{constructor(){x(this,Ke,{})}on(t,n){h(this,Ke)[t]||(h(this,Ke)[t]=[]),h(this,Ke)[t].push(n)}off(t,n){if(!h(this,Ke)[t])return;const s=h(this,Ke)[t].indexOf(n);s>=0&&h(this,Ke)[t].splice(s,1)}dispatch(t,...n){h(this,Ke)[t]&&h(this,Ke)[t].forEach(s=>s(...n))}}Ke=new WeakMap;const rn=new zu,k=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Ho="soylent_smartbanner",ju={name:"SmartBanner",data(){return{smartBannerSettings:null,closed:!1,consentReady:!1}},computed:{isActive(){let e=this.getSettings();if(!e||this.consentReady===!1)return null;if(e.active)return!!e.active}},methods:{consentReadyAction(){this.consentReady=!0},getSettings(){return"soylent_settings"in window&&"smart_banner"in window.soylent_settings?window.soylent_settings.smart_banner:null},showOnStartup(){let e=this.getSettings();return e&&"show_on_startup"in e?!!e.show_on_startup:!1},getUrl(){return this.smartBannerSettings?Lu()?"https://apps.apple.com/de/app/".concat(this.smartBannerSettings.id_ios):"https://play.google.com/store/apps/details?id=".concat(this.smartBannerSettings.id_android):""},close(){this.setDeactivateCookie(),this.closed=!0},setDeactivateCookie(){let e=new Date;e.setTime(e.getTime()+720*60*60*1e3),kr.set(Ho,!0,{path:"/",expires:e.toGMTString()})}},beforeMount(){this.smartBannerSettings=this.getSettings(),this.closed=!!kr.get(Ho),this.showOnStartup()?this.consentReadyAction():rn.on(Tn.AFTER_CONSENT,this.consentReadyAction)}},un=window.Vue.createElementVNode,Fr=window.Vue.openBlock,Fo=window.Vue.createElementBlock,Go=window.Vue.createCommentVNode,Yo=window.Vue.toDisplayString,Uu=window.Vue.Transition,Hu=window.Vue.withCtx,Fu=window.Vue.createVNode,Gu=window.Vue.Teleport,Yu=window.Vue.createBlock,Wu={key:0,id:"soylent_smartbanner",class:"smartbanner"},Ku=["href"],qu=["src"],Ju={class:"smartbanner__text"},Qu={class:"smartbanner__title"},Zu={class:"smartbanner__description"};function Xu(e,t,n,s,i,r){return Fr(),Yu(Gu,{to:"body"},[Fu(Uu,{name:"slide-down"},{default:Hu(()=>[r.isActive&&!i.closed?(Fr(),Fo("div",Wu,[un("div",{onClick:t[0]||(t[0]=(...o)=>r.close&&r.close(...o)),class:"iconSet smartbanner__close"},"close"),un("a",{href:r.getUrl(),onClick:t[1]||(t[1]=(...o)=>r.close&&r.close(...o)),target:"_blank",rel:"nofollow",class:"smartbanner__cta"},[i.smartBannerSettings.logo?(Fr(),Fo("img",{key:0,src:i.smartBannerSettings.logo,class:"smartbanner__thumb"},null,8,qu)):Go("",!0),un("div",Ju,[un("span",Qu,Yo(i.smartBannerSettings.label),1),un("span",Zu,Yo(i.smartBannerSettings.description),1)]),t[2]||(t[2]=un("div",{class:"smartbanner__button"},"Öffnen",-1))],8,Ku)])):Go("",!0)]),_:1})])}const eh=k(ju,[["render",Xu]]),je="soylent_settings"in window&&window.soylent_settings.app_mode||!1;var Zt;class th{constructor(){x(this,Zt,[])}add(t){if(typeof t!="string"){console.error("[soylent:featureProvider] Cannot add feature, the passed flag is not a string",t);return}h(this,Zt).push(t)}has(t){return h(this,Zt).includes(t)}remove(t){const n=h(this,Zt).indexOf(t);h(this,Zt).splice(n,1)}}Zt=new WeakMap;function Po(){return"__soylent"in window||(window.__soylent={}),"featureProvider"in window.__soylent||(window.__soylent.featureProvider=new th),window.__soylent.featureProvider}
2const Oc="Sso",nh={name:"PageNotificationItem",data(){return{closed:!1,timeoutId:null}},props:{notification:{type:Object}},methods:{close(){this.closed=!0},openUrl(){const e=this.notification.url;if(e)try{const t=new URL(e,window.location.origin);if(!["http:","https:"].includes(t.protocol))return;if(t.origin===window.location.origin){const n="".concat(t.pathname).concat(t.search).concat(t.hash);this.$router.push(n)}else window.open(t.href,"_blank","noopener,noreferrer");this.closed=!0}catch(t){this.closed=!0}finally{this.closed=!0}}},beforeMount(){this.notification.lifetime_in_seconds!==""&&(this.notification.lifetime_in_seconds<=0?this.close():this.timeoutId=setTimeout(()=>{this.close()},this.notification.lifetime_in_seconds*1e3))},unmounted(){this.timeoutId&&clearTimeout(this.timeoutId)}},Wo=window.Vue.toDisplayString,Gr=window.Vue.createElementVNode,Ls=window.Vue.openBlock,Ko=window.Vue.createElementBlock,qo=window.Vue.createCommentVNode,sh=window.Vue.resolveDynamicComponent,Jo=window.Vue.withCtx,Qo=window.Vue.createBlock,rh=window.Vue.withKeys,ih=window.Vue.resolveDirective,oh=window.Vue.withDirectives,ah=window.Vue.Transition,lh={class:"page-notification__title"},ch={class:"page-notification__description"},dh={key:0,class:"page-notification__button"};function uh(e,t,n,s,i,r){const o=ih("focustrap");return Ls(),Qo(ah,{name:"slide-up"},{default:Jo(()=>[n.notification&&!i.closed?oh((Ls(),Ko("div",{key:0,onKeydown:t[2]||(t[2]=rh((...a)=>r.close&&r.close(...a),["esc"])),class:"page-notification"},[(Ls(),Qo(sh(n.notification.url?"button":"div"),{onClick:t[0]||(t[0]=a=>n.notification.url?r.openUrl():null),class:"page-notification__body"},{default:Jo(()=>[Gr("span",lh,Wo(n.notification.title),1),Gr("span",ch,Wo(n.notification.text),1),n.notification.url?(Ls(),Ko("span",dh,"Öffnen")):qo("",!0)]),_:1})),Gr("button",{onClick:t[1]||(t[1]=(...a)=>r.close&&r.close(...a)),class:"iconSet page-notification__close"},"close")],32)),[[o]]):qo("",!0)]),_:1})}const hh=k(nh,[["render",uh]]),ph={name:"PageNotifications",components:{PageNotificationItem:hh},data(){return{closed:!0}},computed:{storeCurrentData(){return this.$store.state.app.currentData},notifications(){return this.storeCurrentData.page_notifications&&this.storeCurrentData.page_notifications.length>0?this.storeCurrentData.page_notifications:null},notification(){return this.storeCurrentData.page_notifications&&this.storeCurrentData.page_notifications.length>0?this.storeCurrentData.page_notifications[0]:null}},methods:{close(){this.closed=!0},openUrl(){this.$router.push(this.notification.url),this.closed=!0}},watch:{notification:{handler(e){this.closed=!1},deep:!0,immediate:!0}}},_h=window.Vue.renderList,mh=window.Vue.Fragment,Yr=window.Vue.openBlock,Zo=window.Vue.createElementBlock,fh=window.Vue.resolveComponent,wh=window.Vue.createBlock,gh=window.Vue.createCommentVNode,yh={key:0,class:"page-notification__wrapper"};function vh(e,t,n,s,i,r){const o=fh("PageNotificationItem");return r.notifications?(Yr(),Zo("div",yh,[(Yr(!0),Zo(mh,null,_h(r.notifications,(a,l)=>(Yr(),wh(o,{notification:a,key:"notification_".concat(a.id)},null,8,["notification"]))),128))])):gh("",!0)}const bh=k(ph,[["render",vh]]);var Te;class Eh{constructor(){x(this,Te,{})}on(t,n,s={}){const{priority:i=10}=s;h(this,Te)[t]||(h(this,Te)[t]=[]),h(this,Te)[t]["p".concat(i)]||(h(this,Te)[t]["p".concat(i)]=[]),h(this,Te)[t]["p".concat(i)].push(n)}off(t,n,s={}){const{priority:i=10}=s;if(console.debug("[SoylentFilterProvider] Unsubscribing "+t),!h(this,Te)[t]||!h(this,Te)[t]["p".concat(i)])return;const r=h(this,Te)[t]["p".concat(i)].indexOf(n);r>=0?(h(this,Te)[t]["p".concat(i)].splice(r,1),console.debug("[SoylentFilterProvider] Callback removed ")):(console.debug("[SoylentFilterProvider] Callback not found "),console.debug(n))}filter(t,n,s={},...i){const{once:r=!1}=s;let o=0;if(!h(this,Te)[t])return n;const a=h(this,Te)[t];return Object.keys(a).sort((l,c)=>parseInt(l.substring(1),10)-parseInt(c.substring(1),10)).forEach(l=>{a[l].forEach(c=>{(r&&o<1||!r)&&(n=c(n,...i)),o++})}),n}}Te=new WeakMap;const xs=new Eh,Vo=null,Sr="PAUSED",bt="PLAYING",Rn="BUFFERING",Bc="ERROR",we="AUDIO",ie="PODCAST",ge="CHANNEL",kh="CHA
2NNEL",Sh="canplay",Xo="durationchange",ea="ended",ta="error",na="pause",sa="play",ra="playing",ia="progress",oa="timeupdate",aa="stalled",la="waiting",ca="seeking",Pn="skip_next",Ah="skip_prev",Rc="player_filter__source_url";var Xt,Vn;class Ch{constructor(){x(this,Xt);x(this,Vn);ne(this,Xt,null),ne(this,Vn,window.soylent_settings.tcf_query_key),this.getTcfString(),xs.on(Rc,this.filter.bind(this))}filter(t){if(h(this,Xt)){const n=t.includes("?")?"&":"?";t="".concat(t).concat(n).concat(h(this,Vn),"=").concat(h(this,Xt)),console.debug("[PlayerSourceFilter] - added TCF-String")}return t}getTcfString(){"__tcfapi"in window&&h(this,Vn)&&__tcfapi("getTCData",2,(t,n)=>{n&&"tcString"in t&&ne(this,Xt,t.tcString)})}}Xt=new WeakMap,Vn=new WeakMap;const Th=100,Ph={data:function(){return{resizeTimer:null}},components:{PageNotifications:bh,SmartBanner:eh},computed:{layoutComponent:function(){return Nc.get()},classNames:function(){return{"--loading":this.$store.getters.isLoading,"--header_open":this.$store.getters.scrollOffset.y===0,"--menu_open":this.menuOpen,"--sub-menu__open":this.subMenuOpen,"--with_search":this.$store.getters.isSearchOpen,"--with_category-modal":this.categoryModalOpen}},categoryModalOpen:function(){return this.$store.getters.isCategoryModalOpen},menuOpen:function(){return this.$store.getters.isMenuOpen},subMenuOpen:function(){return this.$store.getters.isSubMenuOpen},hasSmartBanner(){return!je&&xu()},hasLoginActive(){return Po().has(Oc)?this.isAuth:!1},isAuth(){return this.$store.state.sso.auth}},methods:{onWindowChange:function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.setScrollOffset.bind(this),Th)},setScrollOffset:function(){this.$store.dispatch("setScrollOffset",{x:window.pageXOffset,y:window.pageYOffset}),window.pageYOffset>0&&this.$store.dispatch("setRenderedFullPage",!0)},fetchCurrentData:function(){window.isDynamicRenderer||(this.$store.dispatch("getCurrentData"),setTimeout(()=>{this.fetchCurrentData()},60*1e3))},consentReadyEvent(){new Ch,window.UC_UI.isConsentRequired()?window.addEventListener("UC_UI_VIEW_CHANGED",function(e){e.detail.view==="NONE"&&rn.dispatch(Tn.AFTER_CONSENT)}):rn.dispatch(Tn.AFTER_CONSENT)},afterConsent(){const e=new Event(Tn.AFTER_CONSENT);window.dispatchEvent(e)}},mounted(){"current_data"in window.soylent_settings&&window.soylent_settings.current_data&&this.fetchCurrentData()},watch:{categoryModalOpen:function(e){e===!0?document.body.style.overflow="hidden":document.body.style.overflow=""},menuOpen:function(e){e===!0?document.body.style.overflow="hidden":document.body.style.overflow=""},hasLoginActive:function(e){e===!0&&this.$store.dispatch("BookmarksOnlineStore/fetchBookmarks")}},created(){window.addEventListener("scroll",this.onWindowChange),window.addEventListener("resize",this.onWindowChange),this.$nextTick(()=>{this.onWindowChange(),!window.UC_UI||!UC_UI.isInitialized()?window.addEventListener("UC_UI_INITIALIZED",this.consentReadyEvent):this.consentReadyEvent()})},beforeUnmount(){window.removeEventListener("scroll",this.onWindowChange),window.removeEventListener("resize",this.onWindowChange)}},da=window.Vue.resolveComponent,Wr=window.Vue.openBlock,ua=window.Vue.createBlock,Vh=window.Vue.createCommentVNode,Dh=window.Vue.createVNode,$h=window.Vue.resolveDynamicComponent,Ih=window.Vue.normalizeClass,Nh=window.Vue.createElementVNode,Oh=window.Vue.Fragment,Bh=window.Vue.createElementBlock;function Rh(e,t,n,s,i,r){const o=da("SmartBanner"),a=da("PageNotifications");return Wr(),Bh(Oh,null,[r.hasSmartBanner?(Wr(),ua(o,{key:0})):Vh("",!0),Dh(a),Nh("div",{id:"app",class:Ih(r.classNames)},[(Wr(),ua($h(r.layoutComponent)))],2)],64)}const xh=k(Ph,[["render",Rh]]);function Lh(){return xc().__VUE_DEVTOOLS_GLOBAL_HOOK__}function xc(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Mh=typeof Proxy=="function",zh="devtools-plugin:setup",jh="plugin:settings:set";let hn,no;function Uh(){var e;return hn!==void 0||(typeof window<"u"&&window.performance?(hn=!0,no=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(hn=!0,no=globalThis.perf_hooks.performance):hn=!1),hn}function Hh(){return Uh()?no.now():Date.now()}class Fh{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const o in t.settings){const a=t.settings[o];s[o]=a.defaultValue}const i="__vue-devtools-plugin-settings__".concat(t.id);let r=Object.assign({},s);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(r,a)}catch(o){}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch(a){}r=o},now(){return Hh()}},n&&n.on(jh,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Gh(e,t){const n=e,s=xc(),i=Lh(),r=Mh&&n.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(zh,e,t);else{const o=r?new Fh(n,i):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}window.Vue.getCurrentInstance;window.Vue.inject;window.Vue.onActivated;window.Vue.onDeactivated;window.Vue.onUnmounted;window.Vue.watch;const Sn=typeof document<"u";function Lc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 23,525 bytes, line 2
2function Yh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Lc(e.default)}const Z=Object.assign;function Kr(e,t){const n={};for(const s in t){const i=t[s];n[s]=qe(i)?i.map(e):e(i)}return n}const ws=()=>{},qe=Array.isArray;function ha(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Mc=/#/g,Wh=/&/g,Kh=/\//g,qh=/=/g,Jh=/\?/g,zc=/\+/g,Qh=/%5B/g,Zh=/%5D/g,jc=/%5E/g,Xh=/%60/g,Uc=/%7B/g,ep=/%7C/g,Hc=/%7D/g,tp=/%20/g;function Do(e){return e==null?"":encodeURI(""+e).replace(ep,"|").replace(Qh,"[").replace(Zh,"]")}function np(e){return Do(e).replace(Uc,"{").replace(Hc,"}").replace(jc,"^")}function so(e){return Do(e).replace(zc,"%2B").replace(tp,"+").replace(Mc,"%23").replace(Wh,"%26").replace(Xh,"`").replace(Uc,"{").replace(Hc,"}").replace(jc,"^")}function sp(e){return so(e).replace(qh,"%3D")}function rp(e){return Do(e).replace(Mc,"%23").replace(Jh,"%3F")}function ip(e){return rp(e).replace(Kh,"%2F")}function bs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const op=/\/$/,ap=e=>e.replace(op,"");function qr(e,t,n="/"){let s,i={},r="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),r=t.slice(l,a>0?a:t.length),i=e(r.slice(1))),a>=0&&(s=s||t.slice(0,a),o=t.slice(a,t.length)),s=up(s!=null?s:t,n),{fullPath:s+r+o,path:s,query:i,hash:bs(o)}}function lp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function pa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function cp(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&xn(t.matched[s],n.matched[i])&&Fc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!dp(e[n],t[n]))return!1;return!0}function dp(e,t){return qe(e)?_a(e,t):qe(t)?_a(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function _a(e,t){return qe(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function up(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let r=n.length-1,o,a;for(o=0;o<s.length;o++)if(a=s[o],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o).join("/")}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ro=(function(e){return e.pop="pop",e.push="push",e})({}),Jr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function hp(e){if(!e)if(Sn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ap(e)}const pp=/^[^#]+#/;function _p(e,t){return e.replace(pp,"#")+t}function mp(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Lr=()=>({left:window.scrollX,top:window.scrollY});function fp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=mp(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ma(e,t){return(history.state?history.state.position-t:-1)+e}const io=new Map;function wp(e,t){io.set(e,t)}function gp(e){const t=io.get(e);return io.delete(e),t}function yp(e){return typeof e=="string"||e&&typeof e=="object"}function Gc(e){return typeof e=="string"||typeof e=="symbol"}let de=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Yc=Symbol("");de.MATCHER_NOT_FOUND+"",de.NAVIGATION_GUARD_REDIRECT+"",de.NAVIGATION_ABORTED+"",de.NAVIGATION_CANCELLED+"",de.NAVIGATION_DUPLICATED+"";function Ln(e,t){return Z(new Error,{type:e,[Yc]:!0},t)}function dt(e,t){return e instanceof Error&&Yc in e&&(t==null||!!(e.type&t))}const vp=["params","query","hash"];function bp(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of vp)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ep(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const i=n[s].replace(zc," "),r=i.indexOf("="),o=bs(r<0?i:i.slice(0,r)),a=r<0?null:bs(i.slice(r+1));if(o in t){let l=t[o];qe(l)||(l=t[o]=[l]),l.push(a)}else t[o]=a}return t}function fa(e){let t="";for(let n in e){const s=e[n];if(n=sp(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(qe(s)?s.map(i=>i&&so(i)):[s&&so(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function kp(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=qe(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const Sp=Symbol(""),wa=Symbol(""),$o=Symbol(""),Io=Symbol(""),oo=Symbol("");function Hn(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ot(e,t,n,s,i,r=o=>o()){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=p=>{p===!1?l(Ln(de.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?l(p):yp(p)?l(Ln(de.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(o&&s.enterCallbacks[i]===o&&typeof p=="function"&&o.push(p),a())},u=r(()=>e.call(s&&s.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(p=>l(p))})}function Qr(e,t,n,s,i=r=>r()){const r=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Lc(l)){const c=(l.__vccOpts||l)[t];c&&r.push(Ot(c,n,s,o,a,i))}else{let c=l();r.push(()=>c.then(u=>{if(!u)throw new Error("Couldn't resolve component \"".concat(a,'" at "').concat(o.path,'"'));const d=Yh(u)?u.default:u;o.mods[a]=u,o.components[a]=d;const p=(d.__vccOpts||d)[t];return p&&Ot(p,n,s,o,a,i)()}))}}return r}function Ap(e,t){const n=[],s=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const a=t.matched[o];a&&(e.matched.find(c=>xn(c,a))?s.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>xn(c,l))||i.push(l))}return[n,s,i]}const at=window.Vue.computed,Wc=window.Vue.defineComponent;window.Vue.getCurrentInstance;const Kc=window.Vue.h,Mn=window.Vue.inject,Cp=window.Vue.nextTick,Zr=window.Vue.provide,Tp=window.Vue.reactive,Pp=window.Vue.ref,Vp=window.Vue.shallowReactive,Dp=window.Vue.shallowRef,gs=window.Vue.unref,$p=window.Vue.watch;window.Vue.watchEffect;let Ip=()=>location.protocol+"//"+location.host;function qc(e,t){const{pathname:n,search:s,hash:i}=t,r=e.indexOf("#");if(r>-1){let o=i.includes(e.slice(r))?e.slice(r).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),pa(a,"")}return pa(n,e)+s+i}function Np(e,t,n,s){let i=[],r=[],o=null;const a=({state:p})=>{const _=qc(e,location),C=n.value,v=t.value;let z=0;if(p){if(n.value=_,t.value=p,o&&o===C){o=null;return}z=v?p.position-v.position:0}else s(_);i.forEach(U=>{U(n.value,C,{delta:z,type:ro.pop,direction:z?z>0?Jr.forward:Jr.back:Jr.unknown})})};function l(){o=n.value}function c(p){i.push(p);const _=()=>{const C=i.indexOf(p);C>-1&&i.splice(C,1)};return r.push(_),_}function u(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(Z({},p.state,{scroll:Lr()}),"")}}function d(){for(const p of r)p();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:d}}function ga(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?Lr():null}}function Op(e){const{history:t,location:n}=window,s={value:qc(e,n)},i={value:t.state};i.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,c,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ip()+e+l;try{t[u?"replaceState":"pushState"](c,"",p),i.value=c}catch(_){console.error(_),n[u?"replace":"assign"](p)}}function o(l,c){r(l,Z({},t.state,ga(i.value.back,l,i.value.forward,!0),c,{position:i.value.position}),!0),s.value=l}function a(l,c){const u=Z({},i.value,t.state,{forward:l,scroll:Lr()});r(u.current,u,!0),r(l,Z({},ga(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:i,push:a,replace:o}}function Bp(e){e=hp(e);const t=Op(e),n=Np(e,t.state,t.location,t.replace);function s(r,o=!0){o||n.pauseListeners(),history.go(r)}const i=Z({location:"",base:e,go:s,createHref:_p.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Qt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var _e=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(_e||{});const Rp={type:Qt.Static,value:""},xp=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[Rp]];if(!e.startsWith("/"))throw new Error('Invalid path "'.concat(e,'"'));function t(_){throw new Error("ERR (".concat(n,')/"').concat(c,'": ').concat(_))}let n=_e.Static,s=n;const i=[];let r;function o(){r&&i.push(r),r=[]}let a=0,l,c="",u="";function d(){c&&(n===_e.Static?r.push({type:Qt.Static,value:c}):n===_e.Param||n===_e.ParamRegExp||n===_e.ParamRegExpEnd?(r.length>1&&(l==="*"||l==="+")&&t("A repeatable param (".concat(c,") must be alone in its segment. eg: '/:ids+.")),r.push({type:Qt.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==_e.ParamRegExp){s=n,n=_e.EscapeNext;continue}switch(n){case _e.Static:l==="/"?(c&&d(),o()):l===":"?(d(),n=_e.Param):p();break;case _e.EscapeNext:p(),n=s;break;case _e.Param:l==="("?n=_e.ParamRegExp:xp.test(l)?p():(d(),n=_e.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case _e.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=_e.ParamRegExpEnd:u+=l;break;case _e.ParamRegExpEnd:d(),n=_e.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===_e.ParamRegExp&&t('Unfinished custom RegExp for param "'.concat(c,'"')),d(),o(),i}const ya="[^/]+?",Mp={sensitive:!1,strict:!1,start:!0,end:!0};var Se=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Se||{});const zp=/[.+*?^${}()[\]/\\]/g;function jp(e,t){const n=Z({},Mp,t),s=[];let i=n.start?"^":"";const r=[];for(const c of e){const u=c.length?[]:[Se.Root];n.strict&&!c.length&&(i+="/");for(let d=0;d<c.length;d++){const p=c[d];let _=Se.Segment+(n.sensitive?Se.BonusCaseSensitive:0);if(p.type===Qt.Static)d||(i+="/"),i+=p.value.replace(zp,"\\$&"),_+=Se.Static;else if(p.type===Qt.Param){const{value:C,repeatable:v,optional:z,regexp:U}=p;r.push({name:C,repeatable:v,optional:z});const $=U||ya;if($!==ya){_+=Se.BonusCustomRegExp;try{"".concat($)}catch(oe){throw new Error('Invalid custom RegExp for param "'.concat(C,'" (').concat($,"): ")+oe.message)}}let G=v?"((?:".concat($,")(?:/(?:").concat($,"))*)"):"(".concat($,")");d||(G=z&&c.length<2?"(?:/".concat(G,")"):"/"+G),z&&(G+="?"),i+=G,_+=Se.Dynamic,z&&(_+=Se.BonusOptional),v&&(_+=Se.BonusRepeatable),$===".*"&&(_+=Se.BonusWildcard)}u.push(_)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=Se.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function a(c){const u=c.match(o),d={};if(!u)return null;for(let p=1;p<u.length;p++){const _=u[p]||"",C=r[p-1];d[C.name]=_&&C.repeatable?_.split("/"):_}return d}function l(c){let u="",d=!1;for(const p of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const _ of p)if(_.type===Qt.Static)u+=_.value;else if(_.type===Qt.Param){const{value:C,repeatable:v,optional:z}=_,U=C in c?c[C]:"";if(qe(U)&&!v)throw new Error('Provided param "'.concat(C,'" is an array but it is not repeatable (* or + modifiers)'));const $=qe(U)?U.join("/"):U;if(!$)if(z)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error('Missing required param "'.concat(C,'"'));u+=$}}return u||"/"}return{re:o,score:s,keys:r,parse:a,stringify:l}}function Up(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Se.Static+Se.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Se.Static+Se.Segment?1:-1:0}function Jc(e,t){let n=0;const s=e.score,i=t.score;for(;n<s.length&&n<i.length;){const r=Up(s[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-s.length)===1){if(va(s))return 1;if(va(i))return-1}return i.length-s.length}function va(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Hp={strict:!1,end:!0,sensitive:!1};function Fp(e,t,n){const s=jp(Lp(e.path),n),i=Z(s,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Gp(e,t){const n=[],s=new Map;t=ha(Hp,t);function i(d){return s.get(d)}function r(d,p,_){const C=!_,v=Ea(d);v.aliasOf=_&&_.record;const z=ha(t,d),U=[v];if("alias"in d){const oe=typeof d.alias=="string"?[d.alias]:d.alias;for(const he of oe)U.push(Ea(Z({},v,{components:_?_.record.components:v.components,path:he,aliasOf:_?_.record:v})))}let $,G;for(const oe of U){const{path:he}=oe;if(p&&he[0]!=="/"){const le=p.record.path,ae=le[le.length-1]==="/"?"":"/";oe.path=p.record.path+(he&&ae+he)}if($=Fp(oe,p,z),_?_.alias.push($):(G=G||$,G!==$&&G.alias.push($),C&&d.name&&!ka($)&&o(d.name)),Qc($)&&l($),v.children){const le=v.children;for(let ae=0;ae<le.length;ae++)r(le[ae],$,_&&_.children[ae])}_=_||$}return G?()=>{o(G)}:ws}function o(d){if(Gc(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const p=Kp(d,n);n.splice(p,0,d),d.record.name&&!ka(d)&&s.set(d.record.name,d)}function c(d,p){let _,C={},v,z;if("name"in d&&d.name){if(_=s.get(d.name),!_)throw Ln(de.MATCHER_NOT_FOUND,{location:d});z=_.record.name,C=Z(ba(p.params,_.keys.filter(G=>!G.optional).concat(_.parent?_.parent.keys.filter(G=>G.optional):[]).map(G=>G.name)),d.params&&ba(d.params,_.keys.map(G=>G.name))),v=_.stringify(C)}else if(d.path!=null)v=d.path,_=n.find(G=>G.re.test(v)),_&&(C=_.parse(v),z=_.record.name);else{if(_=p.name?s.get(p.name):n.find(G=>G.re.test(p.path)),!_)throw Ln(de.MATCHER_NOT_FOUND,{location:d,currentLocation:p});z=_.record.name,C=Z({},p.params,d.params),v=_.stringify(C)}const U=[];let $=_;for(;$;)U.unshift($.record),$=$.parent;return{name:z,path:v,params:C,matched:U,meta:Wp(U)}}e.forEach(d=>r(d));function u(){n.length=0,s.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function ba(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Ea(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ka(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Kp(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;Jc(e,t[r])<0?s=r:n=r+1}const i=qp(e);return i&&(s=t.lastIndexOf(i,s-1)),s}function qp(e){let t=e;for(;t=t.parent;)if(Qc(t)&&Jc(e,t)===0)return t}function Qc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Sa(e){const t=Mn($o),n=Mn(Io),s=at(()=>{const l=gs(e.to);return t.resolve(l)}),i=at(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(xn.bind(null,u));if(p>-1)return p;const _=Aa(l[c-2]);return c>1&&Aa(u)===_&&d[d.length-1].path!==_?d.findIndex(xn.bind(null,l[c-2])):p}),r=at(()=>i.value>-1&&e_(n.params,s.value.params)),o=at(()=>i.value>-1&&i.value===n.matched.length-1&&Fc(n.params,s.value.params));function a(l={}){if(Xp(l)){const c=t[gs(e.replace)?"replace":"push"](gs(e.to)).catch(ws);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:at(()=>s.value.href),isActive:r,isExactActive:o,navigate:a}}function Jp(e){return e.length===1?e[0]:e}const Qp=Wc({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Sa,setup(e,{slots:t}){const n=Tp(Sa(e)),{options:s}=Mn($o),i=at(()=>({[Ca(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ca(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Jp(t.default(n));return e.custom?r:Kc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),Zp=Qp;function Xp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function e_(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!qe(i)||i.length!==s.length||s.some((r,o)=>r.valueOf()!==i[o].valueOf()))return!1}return!0}function Aa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ca=(e,t,n)=>e!=null?e:t!=null?t:n,t_=Wc({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Mn(oo),i=at(()=>e.route||s.value),r=Mn(wa,0),o=at(()=>{let c=gs(r);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=at(()=>i.value.matched[o.value]);Zr(wa,at(()=>o.value+1)),Zr(Sp,a),Zr(oo,i);const l=Pp();return $p(()=>[l.value,a.value,e.name],([c,u,d],[p,_,C])=>{u&&(u.instances[d]=c,_&&_!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=_.leaveGuards),u.updateGuards.size||(u.updateGuards=_.updateGuards))),c&&u&&(!_||!xn(u,_)||!p)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,p=d&&d.components[u];if(!p)return Ta(n.default,{Component:p,route:c});const _=d.props[u],C=_?_===!0?c.params:typeof _=="function"?_(c):_:null,z=Kc(p,Z({},C,t,{onVnodeUnmounted:U=>{U.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Ta(n.default,{Component:z,route:c})||z}}});function Ta(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const n_=t_;function s_(e){const t=Gp(e.routes,e),n=e.parseQuery||Ep,s=e.stringifyQuery||fa,i=e.history,r=Hn(),o=Hn(),a=Hn(),l=Dp(St);let c=St;Sn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Kr.bind(null,m=>""+m),d=Kr.bind(null,ip),p=Kr.bind(null,bs);function _(m,E){let y,D;return Gc(m)?(y=t.getRecordMatcher(m),D=E):D=m,t.addRoute(D,y)}function C(m){const E=t.getRecordMatcher(m);E&&t.removeRoute(E)}function v(){return t.getRoutes().map(m=>m.record)}function z(m){return!!t.getRecordMatcher(m)}function U(m,E){if(E=Z({},E||l.value),typeof m=="string"){const P=qr(n,m,E.path),Q=t.resolve({path:P.path},E),ke=i.createHref(P.fullPath);return Z(P,Q,{params:p(Q.params),hash:bs(P.hash),redirectedFrom:void 0,href:ke})}let y;if(m.path!=null)y=Z({},m,{path:qr(n,m.path,E.path).path});else{const P=Z({},m.params);for(const Q in P)P[Q]==null&&delete P[Q];y=Z({},m,{params:d(P)}),E.params=d(E.params)}const D=t.resolve(y,E),K=m.hash||"";D.params=u(p(D.params));const M=lp(s,Z({},m,{hash:np(K),path:D.path})),N=i.createHref(M);return Z({fullPath:M,hash:K,query:s===fa?kp(m.query):m.query||{}},D,{redirectedFrom:void 0,href:N})}function $(m){return typeof m=="string"?qr(n,m,l.value.path):Z({},m)}function G(m,E){if(c!==m)return Ln(de.NAVIGATION_CANCELLED,{from:E,to:m})}function oe(m){return ae(m)}function he(m){return oe(Z($(m),{replace:!0}))}function le(m,E){const y=m.matched[m.matched.length-1];if(y&&y.redirect){const{redirect:D}=y;let K=typeof D=="function"?D(m,E):D;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=$(K):{path:K},K.params={}),Z({query:m.query,hash:m.hash,params:K.path!=null?{}:m.params},K)}}function ae(m,E){const y=c=U(m),D=l.value,K=m.state,M=m.force,N=m.replace===!0,P=le(y,D);if(P)return ae(Z($(P),{state:typeof P=="object"?Z({},K,P.state):K,force:M,replace:N}),E||y);const Q=y;Q.redirectedFrom=E;let ke;return!M&&cp(s,D,y)&&(ke=Ln(de.NAVIGATION_DUPLICATED,{to:Q,from:D}),V(D,D,!0,!1)),(ke?Promise.resolve(ke):dn(Q,D)).catch(me=>dt(me)?dt(me,de.NAVIGATION_GUARD_REDIRECT)?me:g(me):B(me,Q,D)).then(me=>{if(me){if(dt(me,de.NAVIGATION_GUARD_REDIRECT))return ae(Z({replace:N},$(me.to),{state:typeof me.to=="object"?Z({},K,me.to.state):K,force:M}),E||Q)}else me=Qe(Q,D,!0,N,K);return kt(Q,D,me),me})}function R(m,E){const y=G(m,E);return y?Promise.reject(y):Promise.resolve()}function ye(m){const E=O.values().next().value;return E&&typeof E.runWithContext=="function"?E.runWithContext(m):m()}function dn(m,E){let y;const[D,K,M]=Ap(m,E);y=Qr(D.reverse(),"beforeRouteLeave",m,E);for(const P of D)P.leaveGuards.forEach(Q=>{y.push(Ot(Q,m,E))});const N=R.bind(null,m,E);return y.push(N),te(y).then(()=>{y=[];for(const P of r.list())y.push(Ot(P,m,E));return y.push(N),te(y)}).then(()=>{y=Qr(K,"beforeRouteUpdate",m,E);for(const P of K)P.updateGuards.forEach(Q=>{y.push(Ot(Q,m,E))});return y.push(N),te(y)}).then(()=>{y=[];for(const P of M)if(P.beforeEnter)if(qe(P.beforeEnter))for(const Q of P.beforeEnter)y.push(Ot(Q,m,E));else y.push(Ot(P.beforeEnter,m,E));return y.push(N),te(y)}).then(()=>(m.matched.forEach(P=>P.enterCallbacks={}),y=Qr(M,"beforeRouteEnter",m,E,ye),y.push(N),te(y))).then(()=>{y=[];for(const P of o.list())y.push(Ot(P,m,E));return y.push(N),te(y)}).catch(P=>dt(P,de.NAVIGATION_CANCELLED)?P:Promise.reject(P))}
2function kt(m,E,y){a.list().forEach(D=>ye(()=>D(m,E,y)))}function Qe(m,E,y,D,K){const M=G(m,E);if(M)return M;const N=E===St,P=Sn?history.state:{};y&&(D||N?i.replace(m.fullPath,Z({scroll:N&&P&&P.scroll},K)):i.push(m.fullPath,K)),l.value=m,V(m,E,y,N),g()}let W;function f(){W||(W=i.listen((m,E,y)=>{if(!X.listening)return;const D=U(m),K=le(D,X.currentRoute.value);if(K){ae(Z(K,{replace:!0,force:!0}),D).catch(ws);return}c=D;const M=l.value;Sn&&wp(ma(M.fullPath,y.delta),Lr()),dn(D,M).catch(N=>dt(N,de.NAVIGATION_ABORTED|de.NAVIGATION_CANCELLED)?N:dt(N,de.NAVIGATION_GUARD_REDIRECT)?(ae(Z($(N.to),{force:!0}),D).then(P=>{dt(P,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&!y.delta&&y.type===ro.pop&&i.go(-1,!1)}).catch(ws),Promise.reject()):(y.delta&&i.go(-y.delta,!1),B(N,D,M))).then(N=>{N=N||Qe(D,M,!1),N&&(y.delta&&!dt(N,de.NAVIGATION_CANCELLED)?i.go(-y.delta,!1):y.type===ro.pop&&dt(N,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),kt(D,M,N)}).catch(ws)}))}let w=Hn(),S=Hn(),L;function B(m,E,y){g(m);const D=S.list();return D.length?D.forEach(K=>K(m,E,y)):console.error(m),Promise.reject(m)}function b(){return L&&l.value!==St?Promise.resolve():new Promise((m,E)=>{w.add([m,E])})}function g(m){return L||(L=!m,f(),w.list().forEach(([E,y])=>m?y(m):E()),w.reset()),m}function V(m,E,y,D){const{scrollBehavior:K}=e;if(!Sn||!K)return Promise.resolve();const M=!y&&gp(ma(m.fullPath,0))||(D||!y)&&history.state&&history.state.scroll||null;return Cp().then(()=>K(m,E,M)).then(N=>N&&fp(N)).catch(N=>B(N,m,E))}const A=m=>i.go(m);let j;const O=new Set,X={currentRoute:l,listening:!0,addRoute:_,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:z,getRoutes:v,resolve:U,options:e,push:oe,replace:he,go:A,back:()=>A(-1),forward:()=>A(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:S.add,isReady:b,install(m){m.component("RouterLink",Zp),m.component("RouterView",n_),m.config.globalProperties.$router=X,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>gs(l)}),Sn&&!j&&l.value===St&&(j=!0,oe(i.location).catch(D=>{}));const E={};for(const D in St)Object.defineProperty(E,D,{get:()=>l.value[D],enumerable:!0});m.provide($o,X),m.provide(Io,Vp(E)),m.provide(oo,l);const y=m.unmount;O.add(m),m.unmount=function(){O.delete(m),O.size<1&&(c=St,W&&W(),W=null,l.value=St,j=!1,L=!1),y()}}};function te(m){return m.reduce((E,y)=>E.then(()=>ye(y)),Promise.resolve())}return X}function r_(e){return Mn(Io)}const i_=window.Vue.inject,o_=window.Vue.effectScope,a_=window.Vue.reactive,Zc=window.Vue.watch,l_=window.Vue.computed;var Xc="store";function ed(e){return e===void 0&&(e=null),i_(e!==null?e:Xc)}function jn(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function td(e){return e!==null&&typeof e=="object"}function c_(e){return e&&typeof e.then=="function"}function d_(e,t){return function(){return e(t)}}function nd(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var s=t.indexOf(e);s>-1&&t.splice(s,1)}}function sd(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Mr(e,n,[],e._modules.root,!0),No(e,n,t)}function No(e,t,n){var s=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={},a={},l=o_(!0);l.run(function(){jn(r,function(c,u){o[u]=d_(c,e),a[u]=l_(function(){return o[u]()}),Object.defineProperty(e.getters,u,{get:function(){return a[u].value},enumerable:!0})})}),e._state=a_({data:t}),e._scope=l,e.strict&&m_(e),s&&n&&e._withCommit(function(){s.data=null}),i&&i.stop()}function Mr(e,t,n,s,i){var r=!n.length,o=e._modules.getNamespace(n);if(s.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=s),!r&&!i){var a=Oo(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=s.state})}var c=s.context=u_(e,o,n);s.forEachMutation(function(u,d){var p=o+d;h_(e,p,u,c)}),s.forEachAction(function(u,d){var p=u.root?d:o+d,_=u.handler||u;p_(e,p,_,c)}),s.forEachGetter(function(u,d){var p=o+d;__(e,p,u,c)}),s.forEachChild(function(u,d){Mr(e,t,n.concat(d),u,i)})}
2function u_(e,t,n){var s=t==="",i={dispatch:s?e.dispatch:function(r,o,a){var l=Ar(r,o,a),c=l.payload,u=l.options,d=l.type;return(!u||!u.root)&&(d=t+d),e.dispatch(d,c)},commit:s?e.commit:function(r,o,a){var l=Ar(r,o,a),c=l.payload,u=l.options,d=l.type;(!u||!u.root)&&(d=t+d),e.commit(d,c,u)}};return Object.defineProperties(i,{getters:{get:s?function(){return e.getters}:function(){return rd(e,t)}},state:{get:function(){return Oo(e.state,n)}}}),i}function rd(e,t){if(!e._makeLocalGettersCache[t]){var n={},s=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,s)===t){var r=i.slice(s);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function h_(e,t,n,s){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){n.call(e,s.state,o)})}function p_(e,t,n,s){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var a=n.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},o);return c_(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function __(e,t,n,s){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return n(s.state,s.getters,r.state,r.getters)})}function m_(e){Zc(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Oo(e,t){return t.reduce(function(n,s){return n[s]},e)}function Ar(e,t,n){return td(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var f_="vuex bindings",Pa="vuex:mutations",Xr="vuex:actions",pn="vuex",w_=0;function g_(e,t){Gh({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[f_]},function(n){n.addTimelineLayer({id:Pa,label:"Vuex Mutations",color:Va}),n.addTimelineLayer({id:Xr,label:"Vuex Actions",color:Va}),n.addInspector({id:pn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===pn)if(s.filter){var i=[];ld(i,t._modules.root,s.filter,""),s.rootNodes=i}else s.rootNodes=[ad(t._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===pn){var i=s.nodeId;rd(t,i),s.state=b_(k_(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===pn){var i=s.nodeId,r=s.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){s.set(t._state.data,r,s.state.value)})}}),t.subscribe(function(s,i){var r={};s.payload&&(r.payload=s.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(pn),n.sendInspectorState(pn),n.addTimelineEvent({layerId:Pa,event:{time:Date.now(),title:s.type,data:r}})}),t.subscribeAction({before:function(s,i){var r={};s.payload&&(r.payload=s.payload),s._id=w_++,s._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:Xr,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:r}})},after:function(s,i){var r={},o=Date.now()-s._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},s.payload&&(r.payload=s.payload),r.state=i,n.addTimelineEvent({layerId:Xr,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:r}})}})})}var Va=8702998,y_=6710886,v_=16777215,id={label:"namespaced",textColor:v_,backgroundColor:y_};function od(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function ad(e,t){return{id:t||"root",label:od(t),tags:e.namespaced?[id]:[],children:Object.keys(e._children).map(function(n){return ad(e._children[n],t+n+"/")})}}function ld(e,t,n,s){s.includes(n)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:t.namespaced?[id]:[]}),Object.keys(t._children).forEach(function(i){ld(e,t._children[i],n,s+i+"/")})}function b_(e,t,n){t=n==="root"?t:t[n];var s=Object.keys(t),i={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(s.length){var r=E_(t);i.getters=Object.keys(r).map(function(o){return{key:o.endsWith("/")?od(o):o,editable:!1,value:ao(function(){return r[o]})}})}return i}function E_(e){var t={};return Object.keys(e).forEach(function(n){var s=n.split("/");if(s.length>1){var i=t,r=s.pop();
2s.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[r]=ao(function(){return e[n]})}else t[n]=ao(function(){return e[n]})}),t}function k_(e,t){var n=t.split("/").filter(function(s){return s});return n.reduce(function(s,i,r){var o=s[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?o:o._children},t==="root"?e:e.root._children)}function ao(e){try{return e()}catch(t){return t}}var Je=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=(typeof s=="function"?s():s)||{}},cd={namespaced:{configurable:!0}};cd.namespaced.get=function(){return!!this._rawModule.namespaced};Je.prototype.addChild=function(t,n){this._children[t]=n};Je.prototype.removeChild=function(t){delete this._children[t]};Je.prototype.getChild=function(t){return this._children[t]};Je.prototype.hasChild=function(t){return t in this._children};Je.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Je.prototype.forEachChild=function(t){jn(this._children,t)};Je.prototype.forEachGetter=function(t){this._rawModule.getters&&jn(this._rawModule.getters,t)};Je.prototype.forEachAction=function(t){this._rawModule.actions&&jn(this._rawModule.actions,t)};Je.prototype.forEachMutation=function(t){this._rawModule.mutations&&jn(this._rawModule.mutations,t)};Object.defineProperties(Je.prototype,cd);var ln=function(t){this.register([],t,!1)};ln.prototype.get=function(t){return t.reduce(function(n,s){return n.getChild(s)},this.root)};ln.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(s,i){return n=n.getChild(i),s+(n.namespaced?i+"/":"")},"")};ln.prototype.update=function(t){dd([],this.root,t)};ln.prototype.register=function(t,n,s){var i=this;s===void 0&&(s=!0);var r=new Je(n,s);if(t.length===0)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}n.modules&&jn(n.modules,function(a,l){i.register(t.concat(l),a,s)})};ln.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1],i=n.getChild(s);i&&i.runtime&&n.removeChild(s)};ln.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1];return n?n.hasChild(s):!1};function dd(e,t,n){if(t.update(n),n.modules)for(var s in n.modules){if(!t.getChild(s))return;dd(e.concat(s),t.getChild(s),n.modules[s])}}function S_(e){return new Pe(e)}var Pe=function(t){var n=this;t===void 0&&(t={});var s=t.plugins;s===void 0&&(s=[]);var i=t.strict;i===void 0&&(i=!1);var r=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ln(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,a=this,l=a.dispatch,c=a.commit;this.dispatch=function(p,_){return l.call(o,p,_)},this.commit=function(p,_,C){return c.call(o,p,_,C)},this.strict=i;var u=this._modules.root.state;Mr(this,u,[],this._modules.root),No(this,u),s.forEach(function(d){return d(n)})},Bo={state:{configurable:!0}};Pe.prototype.install=function(t,n){t.provide(n||Xc,this),t.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&g_(t,this)};Bo.state.get=function(){return this._state.data};Bo.state.set=function(e){};Pe.prototype.commit=function(t,n,s){var i=this,r=Ar(t,n,s),o=r.type,a=r.payload,l={type:o,payload:a},c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(d){d(a)})}),this._subscribers.slice().forEach(function(u){return u(l,i.state)}))};Pe.prototype.dispatch=function(t,n){var s=this,i=Ar(t,n),r=i.type,o=i.payload,a={type:r,payload:o},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,s.state)})}catch(u){}var c=l.length>1?Promise.all(l.map(function(u){return u(o)})):l[0](o);return new Promise(function(u,d){c.then(function(p){try{s._actionSubscribers.filter(function(_){return _.after}
2).forEach(function(_){return _.after(a,s.state)})}catch(_){}u(p)},function(p){try{s._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(a,s.state,p)})}catch(_){}d(p)})})}};Pe.prototype.subscribe=function(t,n){return nd(t,this._subscribers,n)};Pe.prototype.subscribeAction=function(t,n){var s=typeof t=="function"?{before:t}:t;return nd(s,this._actionSubscribers,n)};Pe.prototype.watch=function(t,n,s){var i=this;return Zc(function(){return t(i.state,i.getters)},n,Object.assign({},s))};Pe.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Pe.prototype.registerModule=function(t,n,s){s===void 0&&(s={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Mr(this,this.state,t,this._modules.get(t),s.preserveState),No(this,this.state)};Pe.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var s=Oo(n.state,t.slice(0,-1));delete s[t[t.length-1]]}),sd(this)};Pe.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Pe.prototype.hotUpdate=function(t){this._modules.update(t),sd(this,!0)};Pe.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Pe.prototype,Bo);var Ve=hd(function(e,t){var n={};return ud(t).forEach(function(s){var i=s.key,r=s.val;r=e+r,n[i]=function(){if(!(e&&!pd(this.$store,"mapGetters",e)))return this.$store.getters[r]},n[i].vuex=!0}),n}),Ue=hd(function(e,t){var n={};return ud(t).forEach(function(s){var i=s.key,r=s.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var c=this.$store.dispatch;if(e){var u=pd(this.$store,"mapActions",e);if(!u)return;c=u.context.dispatch}return typeof r=="function"?r.apply(this,[c].concat(a)):c.apply(this.$store,[r].concat(a))}}),n});function ud(e){return A_(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function A_(e){return Array.isArray(e)||td(e)}function hd(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function pd(e,t,n){var s=e._modulesNamespaceMap[n];return s}const vt=(function e(t){function n(i,r,o){var a,l={};if(Array.isArray(i))return i.concat(r);for(a in i)l[o?a.toLowerCase():a]=i[a];for(a in r){var c=o?a.toLowerCase():a,u=r[a];l[c]=c in l&&typeof u=="object"?n(l[c],u,c=="headers"):u}return l}function s(i,r,o,a,l){var c=typeof i!="string"?(r=i).url:i,u={config:r},d=n(t,r),p={};a=a||d.data,(d.transformRequest||[]).map(function(_){a=_(a,d.headers)||a}),d.auth&&(p.authorization=d.auth),a&&typeof a=="object"&&typeof a.append!="function"&&typeof a.text!="function"&&(a=JSON.stringify(a),p["content-type"]="application/json");try{p[d.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+d.xsrfCookieName+"=([^;]*)"))[2])}catch(_){}return d.baseURL&&(c=c.replace(/^(?!.*\/\/)\/?/,d.baseURL+"/")),d.params&&(c+=(~c.indexOf("?")?"&":"?")+(d.paramsSerializer?d.paramsSerializer(d.params):new URLSearchParams(d.params))),(d.fetch||fetch)(c,{method:(o||d.method||"get").toUpperCase(),body:a,headers:n(d.headers,p,!0),credentials:d.withCredentials?"include":l}).then(function(_){for(var C in _)typeof _[C]!="function"&&(u[C]=_[C]);return d.responseType=="stream"?(u.data=_.body,u):_[d.responseType||"text"]().then(function(v){u.data=v,u.data=JSON.parse(v)}).catch(Object).then(function(){return(d.validateStatus?d.validateStatus(_.status):_.ok)?u:Promise.reject(u)})})}return t=t||{},s.request=s,s.get=function(i,r){return s(i,r,"get")},s.delete=function(i,r){return s(i,r,"delete")},s.head=function(i,r){return s(i,r,"head")},s.options=function(i,r){return s(i,r,"options")},s.post=function(i,r,o){return s(i,o,"post",r)},s.put=function(i,r,o){return s(i,o,"put",r)},s.patch=function(i,r,o){return s(i,o,"patch",r)},s.all=Promise.all.bind(Promise),s.spread=function(i){return i.apply.bind(i,i)},s.CancelToken=typeof AbortController=="function"?AbortController:Object,s.defaults=t,s.create=e,s})(),lo="soylent_component_data_",C_={state:{headerHeight:64,loading:!1,menuOpen:!1,subMenuOpen:!1,pageData:{},pageDebugData:null,pageTemplate:null,scrollOffset:{x:0,y:0},categoryModalOpen:!1,searchOpen:!1,currentData:{},hasFavorites:!1,componentData:{},loadedScripts:[],renderedFullPage:!1,renderedImages:0},mutations:{SET_HAS_FAVORITES(e,t){e.hasFavorites=t},CLOSE_CATEGORY_MODAL(e){e.categoryModalOpen=!1},CLOSE_MENU(e){e.menuOpen=!1},CLOSE_SUB_MENU(e){e.subMenuOpen=!1},CLOSE_SEARCH(e){e.searchOpen=!1},SET_LOADING(e,t){e.loading=t},SET_CURRENT_DATA(e,t){e.currentData=t},SET_PAGE_DATA(e,t){e.pageData=t},SET_PAGE_DEBUG_DATA(e,t){e.pageDebugData=t},SET_PAGE_TEMPLATE(e,t){e.pageTemplate=t},SET_SCROLL_OFFSET(e,t){e.scrollOffset=t},SET_HEADER_HEIGHT(e,t){e.headerHeight=t},SET_SUB_MENU_OPEN(e,t){e.subMenuOpen=t},TOGGLE_CATEGORY_MODAL(e){e.categoryModalOpen=!e.categoryModalOpen},TOGGLE_MENU(e){e.menuOpen=!e.menuOpen},TOGGLE_SEARCH(e){e.searchOpen=!e.searchOpen},SET_SCRIPT_LOADED(e,t){e.loadedScripts.includes(t)||e.loadedScripts.push(t)},UPDATE_COMPONENT_DATA(e,t){!1 in t||("persistent"in t&&t.persistent===!0&&window.localStorage.setItem(lo+t.key,JSON.stringify(t.value)),e.componentData[t.key]=t.value)},SET_RENDERED_FULL_PAGE(e,t){e.renderedFullPage=t},SET_RENDERED_IMAGES(e,t){e.renderedImages=t},INCREASE_RENDERED_IMAGES(e){e.renderedImages++},RESET_RENDERED_IMAGES(e){e.renderedImages=0}},getters:{hasFavorites(e){return e.hasFavorites},currentData(e){return e.currentData},headerHeight(e){return e.headerHeight},isLoading(e){return e.loading},isCategoryModalOpen(e){return e.categoryModalOpen},isMenuOpen(e){return e.menuOpen},isSubMenuOpen(e){return e.subMenuOpen},isSearchOpen(e){return e.searchOpen},pageData(e){return e.pageData},pageDebugData(e){return e.pageDebugData},pageTemplate(e){return e.pageTemplate},scrollOffset(e){return e.scrollOffset},isScriptLoaded:e=>t=>e.loadedScripts.includes(t),componentData(e){return e.componentData},renderedFullPage(e){return e.renderedFullPage},renderedImages(e){return e.renderedImages}},actions:{setHasFavorites(e,t){e.commit("SET_HAS_FAVORITES",t)},closeCategoryModal(e){e.commit("CLOSE_CATEGORY_MODAL")},closeMenu(e){e.commit("CLOSE_MENU")},closeSubMenu(e){e.commit("CLOSE_SUB_MENU")},closeSearch(e){e.commit("CLOSE_SEARCH")},setHeaderHeight(e,t){e.commit("SET_HEADER_HEIGHT",t)}
2,setLoading(e,t){e.commit("SET_LOADING",!!t)},getCurrentData(e){vt.get("/cache/soylent/current_data.json").then(t=>{const n=t.data;e.commit("SET_CURRENT_DATA",n)}).catch(t=>{if(!t.response){console.debug(t);return}console.debug(t.response)})},setPageData(e,t){e.commit("SET_PAGE_DATA",t)},setPageDebugData(e,t){e.commit("SET_PAGE_DEBUG_DATA",t)},setPageTemplate(e,t){e.commit("SET_PAGE_TEMPLATE",t)},setScrollOffset(e,t){e.commit("SET_SCROLL_OFFSET",t)},setScriptLoaded(e,t){e.commit("SET_SCRIPT_LOADED",t)},setSubMenuOpen(e){e.commit("SET_SUB_MENU_OPEN",!0)},toggleCategoryModal(e){e.commit("TOGGLE_CATEGORY_MODAL")},toggleMenu(e){e.commit("TOGGLE_MENU")},toggleSearch(e){e.commit("TOGGLE_SEARCH")},setComponentData(e,t){e.commit("UPDATE_COMPONENT_DATA",t)},setRenderedFullPage(e,t){e.commit("SET_RENDERED_FULL_PAGE",t)},setRenderedImages(e,t){e.commit("SET_RENDERED_IMAGES",t)},increaseRenderedImages(e){e.commit("INCREASE_RENDERED_IMAGES")},resetRenderedImages(e){e.commit("RESET_RENDERED_IMAGES")}}};let T_=!1,P_=null;const V_={state:{modalVisible:T_,modalType:P_},mutations:{SET_MODAL_VISIBLE(e,t){e.modalVisible=t},SET_MODAL_TYPE(e,t){e.modalType=t}},getters:{modalVisible(e){return e.modalVisible},modalType(e){return e.modalType}},actions:{setModalVisible(e,t){e.commit("SET_MODAL_VISIBLE",t)},setModalType(e,t){e.commit("SET_MODAL_TYPE",t)}}},_d="SHOW_READER",md="HIDE_READER",fd="SHOW_READER_AUTOPLAY",wd="SET_READER_AUTOPLAY",D_={[_d](e){return e.show=!0,!0},[fd](e){return e.show=!0,e.autoplay=!0,!0},[wd](e,t){return e.autoplay=t,!0},[md](e,t){return e.show=!1,e.autoplay=!1,!0}},$_={show:e=>e.show,autoplay:e=>e.autoplay},I_={showReader:function({commit:e},t){return e(_d,t)},showReaderAutoplay:function({commit:e},t){return e(fd,t)},setReaderAutoplay:function({commit:e},t){return e(wd,t)},hideReader:function({commit:e},t){return e(md,t)}},N_={state:{show:!1,autoplay:!1},namespaced:!0,mutations:D_,getters:$_,actions:I_},O_={app:C_,modal:V_,reader:N_},F=S_({modules:O_});window.soylentRegisterStoreModule=function(e,t){if(F.hasModule(e)){console.debug("[soylent] Cannot register store module [".concat(e,"] as it already exists"));return}F.registerModule(e,t)};Object.keys(window.localStorage).forEach(e=>{const t=new RegExp("^".concat(lo.replace(/\./g,"."),"(.+)$"),"i"),n=e.match(t);n&&F.dispatch("setComponentData",{key:n[1],value:JSON.parse(window.localStorage.getItem("".concat(lo).concat(n[1]))),persistant:!1})});const B_={RESPONSE_DATA:"BASE_VIEW__RESPONSE_DATA"},gd={SHOW_RESTRICTED:"BLOCK__SHOW_RESTRICTED"};function R_(e,t=document.body){if(e.substr(0,1)==="<")return document.createElement(e.replace(/[</>]/g,""));const n=x_(e,t);return n.length>=1?n[0]:null}function x_(e,t=[document.body]){let n=[];return t=t&&t.constructor===Array?t:[t],t.forEach(function(s){n=n.concat([].slice.call((s||document).querySelectorAll(e)))}),n}function yd(e){let t=(e||"").split("-");return t=t.map(n=>n.substr(0,1).toUpperCase()+n.substr(1)),t.join("")}function L_(e){const t=/(<([^>]+)>)/ig;return e.replace(t,"")}const M_={name:"ElementHeader",props:["headline","settings"]},z_=window.Vue.toDisplayString,j_=window.Vue.openBlock,U_=window.Vue.createElementBlock,H_={class:"headline element-header"};function F_(e,t,n,s,i,r){return j_(),U_("h2",H_,z_(n.headline),1)}const G_=k(M_,[["render",F_]]);var en;class Ro{constructor(){x(this,en,{})}set(t){if(typeof t!="object"){console.error("[soylent:componentProvider] set failed, you did not pass a collection",t);return}Object.assign(h(this,en),t)}has(t){return Object.keys(h(this,en)).indexOf(t)>=0}get(){return h(this,en)}getByName(t,n=null){return this.has(t)?h(this,en)[t]:n}}en=new WeakMap;const Ee=new Ro;class _n{static isAvailable(){return typeof window<"u"&&!!window.UC_UI}static isInitialized(){return!this.isAvailable()||typeof window.UC_UI.isInitialized!="function"?!1:window.UC_UI.isInitialized()}static getServicesBaseInfo(){if(!this.isInitialized()||typeof window.UC_UI.getServicesBaseInfo!="function")return[];const t=window.UC_UI.getServicesBaseInfo();return Array.isArray(t)?t:[]}static hasConsent(t=[]){if(!Array.isArray(t)||t.length===0)return!0;const n=this.isAvailable(),s=this.isInitialized();if(!n||!s)return!1;const i=t.map(a=>
2String(a).trim().toLowerCase()).filter(Boolean);return i.length===0?!0:this.getServicesBaseInfo().some(a=>{const l=a==null?void 0:a.consent;if(!((l==null?void 0:l.status)===!0||l===!0))return!1;const u=[a==null?void 0:a.name,a==null?void 0:a.serviceName,a==null?void 0:a.dataProcessor,a==null?void 0:a.categoryName].map(d=>String(d!=null?d:"").trim().toLowerCase()).filter(Boolean);return i.some(d=>u.includes(d))})}static hasService(t=[]){if(!Array.isArray(t)||t.length===0)return!0;const n=this.isAvailable(),s=this.isInitialized();if(!n||!s)return null;const i=t.map(a=>String(a).trim().toLowerCase()).filter(Boolean);return i.length===0?!0:this.getServicesBaseInfo().some(a=>{const l=[a==null?void 0:a.name,a==null?void 0:a.serviceName,a==null?void 0:a.dataProcessor,a==null?void 0:a.categoryName].map(c=>String(c!=null?c:"").trim().toLowerCase()).filter(Boolean);return i.some(c=>l.includes(c))})}static getServiceState(t=[]){const n=this.hasService(t);return n===!0?"matched":n===!1?"missing":"unknown"}static onConsentChanged(t){typeof t=="function"&&(window.addEventListener("UC_UI_INITIALIZED",t),window.addEventListener("UC_UI_VIEW_CHANGED",t))}static offConsentChanged(t){typeof t=="function"&&(window.removeEventListener("UC_UI_INITIALIZED",t),window.removeEventListener("UC_UI_VIEW_CHANGED",t))}static openPrivacySettings(){return this.isAvailable()&&typeof window.UC_UI.showSecondLayer=="function"?(window.UC_UI.showSecondLayer(),!0):!1}static findServiceIds(t=[]){if(!Array.isArray(t)||t.length===0)return[];const n=t.map(i=>String(i).trim().toLowerCase()).filter(Boolean);return n.length===0?[]:this.getServicesBaseInfo().filter(i=>{const r=[i==null?void 0:i.name,i==null?void 0:i.serviceName,i==null?void 0:i.dataProcessor,i==null?void 0:i.categoryName].map(o=>String(o!=null?o:"").trim().toLowerCase()).filter(Boolean);return n.some(o=>r.includes(o))}).map(i=>i==null?void 0:i.id).filter(Boolean)}static acceptServices(t=[]){if(!this.isAvailable()||typeof window.UC_UI.acceptService!="function")return Promise.resolve(!1);const n=this.findServiceIds(t);return n.length===0?Promise.resolve(!1):Promise.all(n.map(s=>window.UC_UI.acceptService(s))).then(()=>(window.dispatchEvent(new CustomEvent("consent-changed",{detail:{source:"usercentrics",ids:n}})),!0)).catch(()=>!1)}}const ms="none",co="manual",Cr="usercentrics",Y_="Content freischalten",W_="Dieser Inhalt benötigt eine manuelle Freischaltung",K_="Content freischalten",q_="Dieser Inhalt benötigt eine manuelle Freischaltung";function J_(e){return parseInt(e,10)===1}function vd(e=[]){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):[]}function Q_({consentNeeded:e,usercentricsAvailable:t,usercentricsServices:n}){return J_(e)?t&&vd(n).length>0?Cr:co:ms}function Da(e){return e?window.localStorage.getItem(e)==="1":!1}function $a(e){e&&(window.localStorage.setItem(e,"1"),window.dispatchEvent(new CustomEvent("consent-changed",{detail:{identifier:e}})))}function Ia(e){return e===Cr?{buttonLabel:Y_,text:W_}:{buttonLabel:K_,text:q_}}const Z_={name:"CustomHtmlBlock",props:["element"],data(){return{agreed:!1,forceManualFallback:!1}},computed:{usercentricsDps(){var e;return String((e=this.element.data.usercentrics_dps)!=null?e:"").trim()},usercentricsServices(){return vd([this.usercentricsDps])},usercentricsAvailable(){var e,t;return(t=(e=this.element.data)==null?void 0:e.usercentrics_available)!=null?t:!1},consentKey(){return this.element.data.uid},configuredConsentMode(){return Q_({consentNeeded:this.element.data.consent_needed,usercentricsAvailable:this.usercentricsAvailable,usercentricsServices:this.usercentricsServices})},activeConsentMode(){return this.configuredConsentMode===ms?ms:this.forceManualFallback?co:this.configuredConsentMode},canLoad:function(){return this.activeConsentMode===ms||this.agreed},consentButtonLabel:function(){return this.element.data.blocker_button_label?this.element.data.blocker_button_label:Ia(this.activeConsentMode).buttonLabel},consentText:function(){return this.element.data.blocker_text?this.element.data.blocker_text:Ia(this.activeConsentMode).text},elementClasses:function(){return this.element.display_type&&this.element.display_subtype?[this.element.display_type,this.element.display_subtype]:[this.element.type,this.element.subtype]}},methods:{agree(){if(this.activeConsentMode===Cr){const e=_n.getServiceState(this.usercentricsServices);if(e==="missing")this.forceManualFallback=!0;else if(e==="matched"){_n.acceptServices(this.usercentricsServices).then(t=>{if(t){this.refreshConsentState(),this.canLoad&&this.initScripts();return}this.forceManualFallback=!0,this.agreed=!0,$a(this.consentKey),this.initScripts()});return}else return}this.agreed=!0,$a(this.consentKey),this.initScripts()},onConsentChanged(e){var t;if(this.activeConsentMode!==Cr){const n=(t=e==null?void 0:e.detail)==null?void 0:t.identifier;if(n&&n!==this.consentKey)return}this.refreshConsentState(),this.canLoad&&this.initScripts()},refreshConsentState(){if(this.activeConsentMode===ms){this.agreed=!0;return}if(this.activeConsentMode===co){this.agreed=Da(this.consentKey);return}const e=_n.getServiceState(this.usercentricsServices);if(e==="missing"){this.forceManualFallback=!0,this.agreed=Da(this.consentKey);return}if(e==="unknown"){this.agreed=!1;return}this.agreed=_n.hasConsent(this.usercentricsServices)}
2,loadScript(e,t=!0){if(t===!0&&this.$store.getters.isScriptLoaded(e.identifier))return;const n=document.createElement(e.type);if(e.attr)for(const s in e.attr)s==="innerText"?n[s]=e.attr[s]:n.setAttribute(s,e.attr[s]);t?(this.$store.dispatch("setScriptLoaded",e.identifier),document.body.appendChild(n)):this.$refs.html_data.appendChild(n)},initScripts(){this.element.data.scripts_always&&this.element.data.scripts_always.forEach(e=>{this.loadScript(e,!1)}),this.element.data.scripts_once&&this.element.data.scripts_once.forEach(e=>{this.loadScript(e,!0)})}},watch:{canLoad(e,t){e&&!t&&this.initScripts()}},mounted(){_n.onConsentChanged(this.onConsentChanged),window.addEventListener("consent-changed",this.onConsentChanged),this.refreshConsentState(),this.canLoad&&this.initScripts()},beforeUnmount(){_n.offConsentChanged(this.onConsentChanged),window.removeEventListener("consent-changed",this.onConsentChanged)}},ei=window.Vue.openBlock,ti=window.Vue.createElementBlock;window.Vue.createCommentVNode;const Na=window.Vue.toDisplayString,Oa=window.Vue.createElementVNode,X_=window.Vue.normalizeClass,em=["innerHTML"],tm={key:1,class:"consent-wrapper"},nm={class:"consent-text"};function sm(e,t,n,s,i,r){return ei(),ti("div",{class:X_(["element",r.elementClasses])},[r.canLoad?(ei(),ti("div",{key:0,innerHTML:n.element.data.html_data,ref:"html_data"},null,8,em)):(ei(),ti("div",tm,[Oa("p",nm,Na(r.consentText),1),Oa("a",{class:"consent-button",onClick:t[0]||(t[0]=(...o)=>r.agree&&r.agree(...o))},Na(r.consentButtonLabel),1)]))],2)}const rm=k(Z_,[["render",sm]]),bd={name:"EditorElement",props:{element:{type:Object,default:function(){return{type:null,subtype:null,data:{}}}}}},im={name:"Placeholder",extends:bd},Ba=window.Vue.toDisplayString,om=window.Vue.createElementVNode,am=window.Vue.createTextVNode,lm=window.Vue.openBlock,cm=window.Vue.createElementBlock,dm=window.Vue.createCommentVNode,um={key:0,class:"element default"};function hm(e,t,n,s,i,r){return this.$production_mode?dm("",!0):(lm(),cm("div",um,[t[0]||(t[0]=am(" I am a placeholder, you need to implement me: ",-1)),om("code",null,".element."+Ba(e.element.type||"")+"."+Ba(e.element.subtype||""),1)]))}const pm=k(im,[["render",hm]]);function _m(){return window.soylentEditorElementProvider||(window.soylentEditorElementProvider=new Ro,window.soylentEditorElementProvider.set({CustomHtmlBlock:rm,Placeholder:pm})),window.soylentEditorElementProvider}const ys=_m(),mm=new Event(Tn.ELEMENT_PROVIDER_READY);window.dispatchEvent(mm);const fm={name:"IdvlEditorSlot",components:ys.get(),props:["element"],data(){return{defaultElement:"placeholder"}},computed:{elementComponent:function(){const e=this.getElementComponentName([this.element.type||"",this.element.subtype||""].join("-"));return this.hasElement(e)?e:this.hasElement(e+"Default")?e+"Default":(console.debug("%c[idvl-editor-slot] Element not found","color:white;background:darkred;",e,this.element,ys.get()),this.getElementComponentName(this.defaultElement))},elementKey:function(){return this.elementComponent==="SoylentPostShortcutListDefault"||this.elementComponent==="SoylentPostShortcutList"?this.element.data.archive_url:this.elementComponent==="SoylentOpenerMedia"?this.element.data.media_id:Date.now()+" _ "+Math.random()},slotHeadline:function(){return this.element.slot_settings.soylent_headline||""},elementHeader:function(){return Ee.getByName("elementHeader",G_)},slotClasses:function(){return this.element.slot_settings.css||""}},methods:{hasElement(e){return ys.has(e)},getElementComponentName(e){return yd(e||"")}}},Ra=window.Vue.resolveDynamicComponent,ni=window.Vue.openBlock,xa=window.Vue.createBlock,La=window.Vue.createCommentVNode,wm=window.Vue.normalizeClass,gm=window.Vue.createElementBlock;function ym(e,t,n,s,i,r){return ni(),gm("div",{class:wm(["slot",r.slotClasses])},[r.slotHeadline?(ni(),xa(Ra(r.elementHeader),{key:0,headline:r.slotHeadline,settings:n.element.slot_settings},null,8,["headline","settings"])):La("",!0),n.element.type?(ni(),xa(Ra(r.elementComponent),{element:n.element,key:r.elementKey},null,8,["element"])):La("",!0)],2)}const Ed=k(fm,[["render",ym]]),kd=()=>{let e=new Date().getTime(),t=performance&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{let s=Math.random()*16;return e>0?(s=(e+s)%16|0,e=Math.floor(e/16)):(s=(t+s)%16|0,t=Math.floor(t/16)),(n=="x"?s:s&7|8).toString(16)})},vm="get",bm="post",Sd={get:(e,t)=>new si({...t,url:e}),post:(e,t,n={})=>new si({...n,data:t,method:bm,url:e}),request:e=>new si(e)},Ma=Object.freeze({data:null,headers:{},method:vm,onUploadProgress:null,signal:null,url:""});var ce,xr,Ad;class si{constructor(t=Ma){x(this,xr);x(this,ce);return t=Object.assign({},Ma,t),ne(this,ce,new XMLHttpRequest),h(this,ce).open(t.method,t.url),Object.keys(t.headers).forEac
2h(n=>h(this,ce).setRequestHeader(n,t.headers[n])),typeof t.onUploadStart=="function"&&(h(this,ce).upload.onloadstart=t.onUploadStart()),typeof t.onUploadProgress=="function"&&(h(this,ce).upload.onprogress=n=>{n.lengthComputable&&t.onUploadProgress(n.loaded,n.total)}),t.signal&&t.signal.addEventListener&&t.signal.addEventListener("abort",()=>{h(this,ce).abort()}),new Promise((n,s)=>{h(this,ce).onload=()=>{if(h(this,ce).status>=200&&h(this,ce).status<300){if(h(this,ce).getResponseHeader("Content-Type")==="application/json")try{n(JSON.parse(h(this,ce).response))}catch(r){}n(h(this,ce).response)}else s({status:h(this,ce).status,statusText:h(this,ce).statusText})},h(this,ce).onerror=()=>{s({status:h(this,ce).status,statusText:h(this,ce).statusText})},t.data?(t.data.constructor!==FormData&&typeof t.data=="object"&&(t.data=q(this,xr,Ad).call(this,t.data)),h(this,ce).send(t.data)):h(this,ce).send()})}}ce=new WeakMap,xr=new WeakSet,Ad=function(t){const n=new FormData;for(const s in t)n.append(s,t[s]);return n};const Em={name:"IdvlEditorBlock",components:{IdvlEditorSlot:Ed},props:["block"],data:function(){return{uuid:kd()}},computed:{anchor:function(){let e=null;return this.block.settings&&this.block.settings.soylent_anchor&&this.block.settings.soylent_anchor.length&&(e=this.block.settings.soylent_anchor),e},padding:function(){let e="--padding_default";return this.block.settings&&this.block.settings.soylent_padding&&(e="".concat(this.block.settings.soylent_padding)),e},blockWrapperClass:function(){let e="";return this.block.settings&&this.block.settings.soylent_class&&(e=this.block.settings.soylent_class),e},showBlock(){return this.block.settings&&this.block.settings.soylent_access_restriction?this.block.settings.soylent_access_restriction===""?!0:xs.filter(gd.SHOW_RESTRICTED,this.block.settings.soylent_access_restriction==="no_auth",{},this.block.settings.soylent_access_restriction,this.block):!0}},methods:{elementKey:function(e){return"el-".concat(this.uuid,"-").concat(e)},retrieveElements:function(){this.block.retrieve_restricted_url&&Sd.get(this.block.retrieve_restricted_url).then(e=>{this.block.elements=e})}},mounted(){this.showBlock&&this.retrieveElements()},watch:{showBlock:function(e){e===!0&&this.retrieveElements()}}},Ms=window.Vue.openBlock,ri=window.Vue.createElementBlock,za=window.Vue.createCommentVNode,km=window.Vue.renderList,Sm=window.Vue.Fragment,Am=window.Vue.resolveComponent,Cm=window.Vue.createBlock,ja=window.Vue.normalizeClass,Tm=window.Vue.createElementVNode,Pm=["id"];function Vm(e,t,n,s,i,r){const o=Am("idvl-editor-slot");return r.showBlock?(Ms(),ri("div",{key:0,class:ja(["block-wrapper",r.padding,r.blockWrapperClass])},[r.anchor?(Ms(),ri("div",{key:0,class:"block-anchor",id:r.anchor},null,8,Pm)):za("",!0),Tm("div",{class:ja(["block",n.block.block_type])},[(Ms(!0),ri(Sm,null,km(n.block.elements,(a,l)=>(Ms(),Cm(o,{key:r.elementKey(l),element:a},null,8,["element"]))),128))],2)],2)):za("",!0)}const uo=k(Em,[["render",Vm]]),Dm={name:"IdvlEditor",components:{IdvlEditorBlock:uo},props:["blocks"],data:function(){return{editorDataVersion:"",maxItems:0}},computed:{elementIdvlEditorBlock:function(){return Ee.getByName("idvlEditorBlock",uo)},getBlocks(){let e=this.$store.getters.renderedFullPage?this.blocks.length:20,t=this.blocks.filter(n=>n!==null);return t=t.slice(0,e),t}},watch:{blocks(){this.bumpEditorDataVersion()}},methods:{blockKey(e,t){return e!==null?"block_id_"+e.id:"block_index"+t},bumpEditorDataVersion:function(){this.editorDataVersion="".concat(Date.now(),"_").concat(Math.random())}},updated(){this.$nextTick(function(){window.dispatchEvent(new Event("repainted"))})}},$m=window.Vue.renderList,Im=window.Vue.Fragment,ii=window.Vue.openBlock,Ua=window.Vue.createElementBlock,Nm=window.Vue.resolveDynamicComponent,Om=window.Vue.createBlock;function Bm(e,t,n,s,i,r){return ii(),Ua("div",{class:"idvl-editor",key:e.editorDataVersion},[(ii(!0),Ua(Im,null,$m(r.getBlocks,(o,a)=>(ii(),Om(Nm(r.elementIdvlEditorBlock),{key:r.blockKey(o,a),block:o},null,8,["block"]))),128))])}const Cd=k(Dm,[["render",Bm]]),Rm={name:"IdvlEditorTemplate",components:{IdvlEditor:Cd},props:["data"]}
2,xm=window.Vue.resolveComponent,Lm=window.Vue.openBlock,Mm=window.Vue.createBlock;function zm(e,t,n,s,i,r){const o=xm("idvl-editor");return Lm(),Mm(o,{blocks:n.data.blocks},null,8,["blocks"])}const jm=k(Rm,[["render",zm]]),ho=new Ro;ho.set({IdvlEditorTemplateDefault:jm});function Td(e,t=500){e&&setTimeout(()=>{let n=document.querySelector(e);n&&n.scrollIntoView({behavior:"instant",block:"start",inline:"nearest"})},t)}class Um{static track(t){if("IOMm"in window&&t.ivw)try{IOMm("pageview",{cp:t.ivw})}catch(n){console.debug("[InfOnline] pv exception:",n.getMessage())}else t.ivw&&console.debug("[InfOnline] not loaded")}}var Ie,Dn,Mt,Pd,Vd,Dd;class Hm{constructor(){x(this,Mt);x(this,Ie);x(this,Dn)}updateMarkup(t){ne(this,Ie,t),q(this,Mt,Pd).call(this),q(this,Mt,Vd).call(this),q(this,Mt,Dd).call(this)}}Ie=new WeakMap,Dn=new WeakMap,Mt=new WeakSet,Pd=function(){const t=document.querySelector('link[rel="canonical"]');if(h(this,Ie).canonical)if(t)t.setAttribute("href",h(this,Ie).canonical);else{const n=document.createElement("link");n.rel="canonical",n.href=h(this,Ie).canonical,document.getElementsByTagName("head")[0].appendChild(n)}else t&&t.remove()},Vd=function(){if(!("meta"in h(this,Ie)))return;const t=Object.keys(h(this,Ie).meta);t.forEach(n=>{const s=n.indexOf(":")===-1?"name":"property",i=document.querySelectorAll("meta["+s+'="'+n+'"]')[0],r=h(this,Ie).meta[n];if(i)r&&r!=="false"?i.setAttribute("content",r):i.remove();else{const o=document.createElement("meta");o.setAttribute(s,n),o.content=h(this,Ie).meta[n],document.getElementsByTagName("head")[0].appendChild(o)}}),document.querySelectorAll('meta[property^="og:"]').forEach(n=>{t.includes(n.getAttribute("property"))||n.remove()})},Dd=function(){if("json_ld"in h(this,Ie)){if(!h(this,Dn)){let t=document.querySelector('script[type="application/ld+json"]');t||(t=document.createElement("script"),t.type="application/ld+json",document.getElementsByTagName("head")[0].appendChild(t)),ne(this,Dn,t)}h(this,Dn).innerHTML=JSON.stringify(h(this,Ie).json_ld)}};const Fm=new Hm;class Gm{constructor(){this.instance=("0000"+Math.round(Math.random()*1e3)).substring(-4),this.enabled=!1,this.payloadQueue=[],this.callbacks=[],window.ReactNativeWebView&&(window.wlBasePassPayload=this.dispatchPayload.bind(this),this.enabled=!0)}init(){this.sendPayload("launch")}sendPayload(t,n=!1){if(!this.enabled){this.payloadQueue.push(t),console.debug("[bridge] Queued payload",t);return}if(this.payloadQueue.length&&!n&&(this.payloadQueue.forEach(s=>this.sendPayload(s,!0)),this.payloadQueue=[]),t!==null){console.debug("[bridge] Send payload",t);try{t=JSON.stringify(t),window.ReactNativeWebView.postMessage(t)}catch(s){console.debug("[bridge] Could not send payload",s,t)}}}dispatchPayload(t){return console.debug("[bridge] Got payload",t),this.callbacks.forEach(n=>{const{cb:s,type:i}=n;if(!i.length||i===String(t.type))try{s(Object.assign({instance:this.instance},t))}catch(r){console.debug("[bridge] Could not fire callback",s,this.callbacks)}}),!0}onPayload(t,n=""){typeof t=="function"&&this.callbacks.push({cb:t,type:String(n)})}}const ue=new Gm,Ym={name:"BaseView",components:ho.get(),data(){var e;return{lastUri:null,uri:(e=document.location.pathname)!=null?e:null,hash:null,base:document.body.dataset.base,classes:[],title:"",template:null,data:null,debug:null,defaultTemplate:"idvl-editor",firstCall:!0}},computed:{templateComponent:function(){this.template="idvl-editor";let e=this.getTemplateComponentName(this.template);return this.hasTemplate(e)?(this.$store.dispatch("setPageTemplate",e),e):this.hasTemplate(e+"Default")?(this.$store.dispatch("setPageTemplate",e+"Default"),e+"Default"):(this.$store.dispatch("setPageTemplate",null),console.debug("%c[base-view] Template not found","color:white;background:darkred;",e,this.template),this.getTemplateComponentName(this.defaultTemplate,"default"))}},beforeRouteUpdate(e,t,n){n(),this.nav(e.path,e.hash)},beforeUpdate(){this.classes.length>0&&(document.body.className=this.classes.join(" ")),this.maybeAddAppNativeClass()},updated(){this.handleScripts(),this.scrollToAnchor()},methods:{...Ue(["resetRenderedImages"]),nav(e,t="",n=!1){if(this.resetRenderedImages(),this.hash=t,!n&&e===this.uri){this.scrollToAnchor();return}n||(this.lastUri=this.uri,this.uri=e);let s="/headless"+e;"pll_headless_language"in window&&(s="/"+window.pll_headless_language+s.replace(window.pll_headless_language+"/","")),this.$store.dispatch("set
2Loading",!0),rn.dispatch(Uo.NAV),vt.get(s).then(i=>this.handleResponse(i)).catch(i=>{if(!i.response){console.debug(i);return}this.handleResponse(i.response)}).finally(()=>{this.$store.dispatch("setLoading",!1),document.title=this.title,this.$nextTick(()=>{if(this.dispatchPageLoadEvent(e,this.title,this.lastUri),window._paq)try{this.lastUri!==null&&window._paq.push(["setReferrerUrl",this.lastUri]),window._paq.push(["setCustomUrl",e]),window._paq.push(["setDocumentTitle",this.title]),window._paq.push(["trackPageView"])}catch(i){}if(window.qy)try{window.qy.tracking.track("fix:view",{identifier:e,type:"web",occurredon:new Date().toISOString()})}catch(i){}})})},reload(){this.nav(this.uri,this.hash,!0)},handleResponse(e){if(!e.data){console.error("[base-view] data node missing in response");return}const t=xs.filter(B_.RESPONSE_DATA,e.data);if(t.redirect&&t.redirect!==this.uri&&this.$router.replace(t.redirect),this.classes=t.classes||[],this.title=t.title||"",this.template=t.template||null,this.data=t.data||null,this.debug=t.debug||null,this.executeTracking(t.data.tracking),t.data.seo&&Fm.updateMarkup(t.data.seo),!this.classes.includes("suppress-cmp"))try{window.cmmsCmpSpawnIfNecessary()}catch(n){}this.template!==null&&this.classes.push(this.template),this.$store.dispatch("setPageData",this.data),this.$store.dispatch("setPageDebugData",this.debug),rn.dispatch(Uo.HANDLE_RESPONSE)},handleScripts(){},hasTemplate(e){return ho.has(e)},getTemplateComponentName(e,t=""){return yd((e||"")+"-template"+t)},scrollToAnchor(){this.hash&&this.hash.length&&R_(this.hash)&&Td(this.hash,300)},executeTracking(e){Um.track(e)},maybeAddAppNativeClass(){je&&this.$nextTick(()=>{document.body.classList.add("app-native")})},dispatchPageLoadEvent(e,t,n=null){document.dispatchEvent(new CustomEvent("Page:Load",{cancelable:!0,bubbles:!0,detail:{uri:e,title:t,referer:n}}))}},created(){this.maybeAddAppNativeClass(),this.template=null,this.data=window.soylent_page_data,this.$store.dispatch("setPageData",this.data),this.dispatchPageLoadEvent(this.uri,document.title),ue.onPayload(e=>{const{eventType:t}=e;t==="reload"&&this.reload()},"event")}},Wm=window.Vue.resolveDynamicComponent,Ha=window.Vue.openBlock,Km=window.Vue.createBlock,qm=window.Vue.createElementBlock,Jm={class:"content"};function Qm(e,t,n,s,i,r){return Ha(),qm("main",Jm,[(Ha(),Km(Wm(r.templateComponent),{data:i.data},null,8,["data"]))])}const Zm=k(Ym,[["render",Qm]]),Lt=s_({history:Bp(),linkExactActiveClass:"-active --active",linkActiveClass:"-active --active",routes:[{path:"/:pathMatch(.*)*",component:Zm}],scrollBehavior:function(e,t,n){try{clearTimeout(Lt.timeout)}catch(i){}n?F.dispatch("setScrollOffset",n):F.dispatch("setScrollOffset",{x:0,y:0});let s=300;return e.hash?(t.href||(po=e.hash),!1):e.href===t.href?!1:new Promise((i,r)=>{Lt.timeout=setTimeout(()=>{i({left:0,top:n?n.top:0})},s)})}});Lt.beforeEach((e,t,n)=>{e.hash!==""&&F.dispatch("setRenderedFullPage",!0),n()});Lt.afterEach(e=>{e.hash!==""&&document.getElementById(e.hash.slice(1)).focus()});Lt.timeout=null;let po=null;window.onload=function(){po!==null&&Td(po)};function Fa(e,t=2,n="0"){return e.toString().padStart(t,n)}const Xm={appendDurationPrefix:function(e){return e+" Min."},firstNLetters:function(e,t){return e.substring(0,t)},everythingExceptFirstNLetters:function(e,t){return e.substring(t)},padLeft:function(e,t=2,n="0"){return Fa(e,t,n)},date:{dayMonth:function(e){return Fa(e.d)+". "+e.m_txt}},germanDayMonth:function(e){const t=new Date(e);return t.getDate()+". "+t.toLocaleString("de-DE",{month:"long"})},germanDateFull:function(e){const t=new Date(e);return t.getDate()+". "+t.toLocaleString("de-DE",{month:"short",year:"numeric"})},formatDateShort:function(e){const t=new Date(e),n=t.getDate().toString().padStart(2,"0"),s=(t.getMonth()+1).toString().padStart(2,"0");return n+"."+s+"."+t.getFullYear()},hourMinute:function(e){const t=new Date(e);return t.getHours().toString().padStart(2,"0")+":"+t.getMinutes().toString().padStart(2,"0")},cutTimeFromDate:function(e){const t=new Date(e);return"".concat(t.toLocaleDateString("de-DE",{day:"numeric",month:"short",year:"numeric"}))}};function ef(){Ae.config.globalProperties.$filters=Xm}function _o(e){if(typeof e>"u"||!e)return"";const t=Ae.config.globalProperties.$baseUrl.replace(":8080","");
2return e.indexOf(t)===0?e.substr(t.length):e}function tf(e){const t=window.location.origin;if(e.startsWith(t))return e.replace(t,"");const n=new URL(e);return n.pathname+n.search+n.hash}const $d="SET_AUTH_DATA",Id="SET_REDIRECT_PATH",nf={[$d](e,t){return e.auth=t.auth,e.loginUrl=t.login_url,e.registerUrl=t.register_url,e.logoutUrl=t.logout_url,e.userData=t.data},[Id](e,t){return e.redirectPath=t}},sf={auth:e=>e.auth,loginUrl:e=>e.loginUrl,registerUrl:e=>e.registerUrl,logoutUrl:e=>e.logoutUrl,redirectPath:e=>e.redirectPath,userData:e=>e.userData,userName:e=>e.userData!==null&&"username"in e.userData?e.userData.username:"",userMail:e=>e.userData!==null&&"email"in e.userData?e.userData.email:"",userNameReadable:e=>e.userData!==null&&"name"in e.userData?e.userData.name:""},rf={setAuthData:function({commit:e},t){return e($d,t)},setRedirectPath:function({commit:e},t){return e(Id,t)}},of={state:{auth:!1,loginUrl:"",registerUrl:"",logoutUrl:"",redirectPath:"",userData:null},namespaced:!0,mutations:nf,getters:sf,actions:rf};var tn;class af{constructor(){x(this,tn,{})}set(t){if(typeof t!="object"){console.error("[soylent:serviceProvider] set failed, you did not pass a collection",t);return}Object.assign(h(this,tn),t)}has(t){return Object.keys(h(this,tn)).indexOf(t)>=0}get(){return h(this,tn)}getByName(t){return this.has(t)?h(this,tn)[t]:null}}tn=new WeakMap;function oi(){return"__soylent"in window||(window.__soylent={}),"serviceProvider"in window.__soylent||(window.__soylent.serviceProvider=new af),window.__soylent.serviceProvider}var wt;class lf{constructor(){x(this,wt)}init(t){ne(this,wt,t),h(this,wt).registerModule("sso",of),xs.on(gd.SHOW_RESTRICTED,(n,s)=>s==="auth"?h(this,wt).state.sso.auth:s==="no_auth"?!h(this,wt).state.sso.auth:n,{priority:1}),this.getAuthData()}getAuthData(){Sd.get("/cmms-api/v3/sso/profile/status").then(t=>{h(this,wt).dispatch("sso/setAuthData",t)}).catch(t=>{console.error("[auth]",t)})}getLoginUrl(t){const n=r_();return t||(t=h(this,wt).getters["sso/loginUrl"]),typeof t<"u"&&t!==null?n&&"path"in n?t="".concat(t,"?redirect=").concat(encodeURI(n.path)):t="".concat(t,"?redirect=").concat(encodeURI(window.location.pathname)):console.error("[auth] Login url undefined"),t}}wt=new WeakMap;function cf(){return oi().has("SSOService")||oi().set({SSOService:new lf}),oi().getByName("SSOService")}var Nd=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Tr=Nd.join(","),Od=typeof Element>"u",on=Od?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pr=!Od&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Vr=function(t,n){var s;n===void 0&&(n=!0);var i=t==null||(s=t.getAttribute)===null||s===void 0?void 0:s.call(t,"inert"),r=i===""||i==="true",o=r||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Vr(t.parentNode));return o},df=function(t){var n,s=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return s===""||s==="true"},Bd=function(t,n,s){if(Vr(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Tr));return n&&on.call(t,Tr)&&i.unshift(t),i=i.filter(s),i},Dr=function(t,n,s){for(var i=[],r=Array.from(t);r.length;){var o=r.shift();if(!Vr(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),l=a.length?a:o.children,c=Dr(l,!0,s);s.flatten?i.push.apply(i,c):i.push({scopeParent:o,candidates:c})}else{var u=on.call(o,Tr);u&&s.filter(o)&&(n||!t.includes(o))&&i.push(o);var d=o.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(o),p=!Vr(d,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(o
vendor: 4,546 bytes, line 2
2));if(d&&p){var _=Dr(d===!0?o.children:d.children,!0,s);s.flatten?i.push.apply(i,_):i.push({scopeParent:o,candidates:_})}else r.unshift.apply(r,o.children)}}return i},Rd=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Jt=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||df(t))&&!Rd(t)?0:t.tabIndex},uf=function(t,n){var s=Jt(t);return s<0&&n&&!Rd(t)?0:s},hf=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},xd=function(t){return t.tagName==="INPUT"},pf=function(t){return xd(t)&&t.type==="hidden"},_f=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(s){return s.tagName==="SUMMARY"});return n},mf=function(t,n){for(var s=0;s<t.length;s++)if(t[s].checked&&t[s].form===n)return t[s]},ff=function(t){if(!t.name)return!0;var n=t.form||Pr(t),s=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=s(window.CSS.escape(t.name));else try{i=s(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var r=mf(i,t.form);return!r||r===t},wf=function(t){return xd(t)&&t.type==="radio"},gf=function(t){return wf(t)&&!ff(t)},yf=function(t){var n,s=t&&Pr(t),i=(n=s)===null||n===void 0?void 0:n.host,r=!1;if(s&&s!==t){var o,a,l;for(r=!!((o=i)!==null&&o!==void 0&&(a=o.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!r&&i;){var c,u,d;s=Pr(i),i=(c=s)===null||c===void 0?void 0:c.host,r=!!((u=i)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return r},Ga=function(t){var n=t.getBoundingClientRect(),s=n.width,i=n.height;return s===0&&i===0},vf=function(t,n){var s=n.displayCheck,i=n.getShadowRoot;if(s==="full-native"&&"checkVisibility"in t){var r=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!r}var o=getComputedStyle(t),a=o.visibility;if(a==="hidden"||a==="collapse")return!0;var l=on.call(t,"details>summary:first-of-type"),c=l?t.parentElement:t;if(on.call(c,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="full-native"||s==="legacy-full"){if(typeof i=="function"){for(var u=t;t;){var d=t.parentElement,p=Pr(t);if(d&&!d.shadowRoot&&i(d)===!0)return Ga(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=u}if(yf(t))return!t.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return Ga(t);return!1},bf=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var s=0;s<n.children.length;s++){var i=n.children.item(s);if(i.tagName==="LEGEND")return on.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},$r=function(t,n){return!(n.disabled||pf(n)||vf(n,t)||_f(n)||bf(n))},mo=function(t,n){return!(gf(n)||Jt(n)<0||!$r(t,n))},Ef=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ld=function(t){var n=[],s=[];return t.forEach(function(i,r){var o=!!i.scopeParent,a=o?i.scopeParent:i,l=uf(a,o),c=o?Ld(i.candidates):a;l===0?o?n.push.apply(n,c):n.push(a):s.push({documentOrder:r,tabIndex:l,item:i,isScope:o,content:c})}),s.sort(hf).reduce(function(i,r){return r.isScope?i.push.apply(i,r.content):i.push(r.content),i},[]).concat(n)},kf=function(t,n){n=n||{};var s;return n.getShadowRoot?s=Dr([t],n.includeContainer,{filter:mo.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ef}):s=Bd(t,n.includeContainer,mo.bind(null,n)),Ld(s)},Sf=function(t,n){n=n||{};var s;return n.getShadowRoot?s=Dr([t],n.includeContainer,{filter:$r.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):s=Bd(t,n.includeContainer,$r.bind(null,n)),s},mn=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return on.call(t,Tr)===!1?!1:mo(n,t)},Af=Nd.concat("iframe:not([inert]):not([inert] *)").join(","),ai=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return on.call(t,Af)===!1?!1:$r(n,t)};function fo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function Cf(e){if(Array.isArray(e))return fo(e)}function Ya(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=Md(e))||t){n&&(e=n);var s=0,i=function(){};return{s:i,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(l){throw l},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,r=l},f:function(){try{o||n.return==null||n.return()}finally{if(a)throw r}}}}function Tf(e,t,n){return(t=If(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pf(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,s)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wa(Object(n),!0).forEach(function(s){Tf(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Df(e){return Cf(e)||Pf(e)||Md(e)||Vf()}function $f(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function If(e){var t=$f(e,"string");return typeof t=="symbol"?t:t+""}function Md(e,t){if(e){if(typeof e=="string")return fo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fo(e,t):void 0}}var gt={getActiveTrap:function(t){return(t==null?void 0:t.length)>0?t[t.length-1]:null},activateTrap:function(t,n){var s=gt.getActiveTrap(t);n!==s&&gt.pauseTrap(t);var i=t.indexOf(n);i===-1||t.splice(i,1),t.push(n)},deactivateTrap:function(t,n){var s=t.indexOf(n);s!==-1&&t.splice(s,1),gt.unpauseTrap(t)},pauseTrap:function(t){var n=gt.getActiveTrap(t);n==null||n._setPausedState(!0)},unpauseTrap:function(t){var n=gt.getActiveTrap(t);n&&!n._isManuallyPaused()&&n._setPausedState(!1)}},Nf=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Of=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},vs=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Bf=function(t){return vs(t)&&!t.shiftKey},Rf=function(t){return vs(t)&&t.shiftKey},qa=function(t){return setTimeout(t,0)},Fn=function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,s):t},zs=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},xf=[],Lf=function(t,n){var s=(n==null?void 0:n.document)||document,i=(n==null?void 0:n.trapStack)||xf,r=Ka({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:Bf,isKeyBackward:Rf},n),o={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(f,w,S){return f&&f[w]!==void 0?f[w]:r[S||w]},c=function(f,w){var S=typeof(w==null?void 0:w.composedPath)=="function"?w.composedPath():void 0;return o.containerGroups.findIndex(function(L){var B=L.container,b=L.tabbableNodes;return B.contains(f)||(S==null?void 0:S.includes(B))||b.find(function(g){return g===f})})},u=function(f){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.hasFallback,L=S===void 0?!1:S,B=w.params,b=B===void 0?[]:B,g=r[f];if(typeof g=="function"&&(g=g.apply(void 0,Df(b))),g===!0&&(g=void 0),!g){if(g===void 0||g===!1)return g;throw new Error("`".concat(f,"` was specified but was not a node, or did not return a node"))}var V=g;if(typeof g=="string"){try{V=s.querySelector(g)}catch(A){throw new Error("`".concat(f,'` appears to be an invali
2d selector; error="').concat(A.message,'"'))}if(!V&&!L)throw new Error("`".concat(f,"` as selector refers to no known node"))}return V},d=function(f){var w=f.activeElement;return w?w.shadowRoot&&w.shadowRoot.activeElement!==null?d(w.shadowRoot):w:null},p=function(){var f=u("initialFocus",{hasFallback:!0});if(f===!1)return!1;if(f===void 0||f&&!ai(f,r.tabbableOptions)){var w=d(s);if(c(w)>=0)f=w;else{var S=o.tabbableGroups[0],L=S&&S.firstTabbableNode;f=L||u("fallbackFocus")}}else f===null&&(f=u("fallbackFocus"));if(!f)throw new Error("Your focus-trap needs to have at least one focusable element");return f},_=function(){if(o.containerGroups=o.containers.map(function(f){var w=kf(f,r.tabbableOptions),S=Sf(f,r.tabbableOptions),L=w.length>0?w[0]:void 0,B=w.length>0?w[w.length-1]:void 0,b=S.find(function(A){return mn(A)}),g=S.slice().reverse().find(function(A){return mn(A)}),V=!!w.find(function(A){return Jt(A)>0});return{container:f,tabbableNodes:w,focusableNodes:S,posTabIndexesFound:V,firstTabbableNode:L,lastTabbableNode:B,firstDomTabbableNode:b,lastDomTabbableNode:g,nextTabbableNode:function(j){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=w.indexOf(j);return X<0?O?S.slice(S.indexOf(j)+1).find(function(te){return mn(te)}):S.slice(0,S.indexOf(j)).reverse().find(function(te){return mn(te)}):w[X+(O?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(f){return f.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(f){return f.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},C=function(f){if(f!==!1&&f!==d(document)){if(!f||!f.focus){C(p());return}f.focus({preventScroll:!!r.preventScroll}),o.mostRecentlyFocusedNode=f,Nf(f)&&f.select()}},v=function(f){var w=u("setReturnFocus",{params:[f]});return w||(w===!1?!1:f)},z=function(f){var w=f.target,S=f.event,L=f.isBackward,B=L===void 0?!1:L;w=w||zs(S),_();var b=null;if(o.tabbableGroups.length>0){var g=c(w,S),V=g>=0?o.containerGroups[g]:void 0;if(g<0)B?b=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:b=o.tabbableGroups[0].firstTabbableNode;else if(B){var A=o.tabbableGroups.findIndex(function(E){var y=E.firstTabbableNode;return w===y});if(A<0&&(V.container===w||ai(w,r.tabbableOptions)&&!mn(w,r.tabbableOptions)&&!V.nextTabbableNode(w,!1))&&(A=g),A>=0){var j=A===0?o.tabbableGroups.length-1:A-1,O=o.tabbableGroups[j];b=Jt(w)>=0?O.lastTabbableNode:O.lastDomTabbableNode}else vs(S)||(b=V.nextTabbableNode(w,!1))}else{var X=o.tabbableGroups.findIndex(function(E){var y=E.lastTabbableNode;return w===y});if(X<0&&(V.container===w||ai(w,r.tabbableOptions)&&!mn(w,r.tabbableOptions)&&!V.nextTabbableNode(w))&&(X=g),X>=0){var te=X===o.tabbableGroups.length-1?0:X+1,m=o.tabbableGroups[te];b=Jt(w)>=0?m.firstTabbableNode:m.firstDomTabbableNode}else vs(S)||(b=V.nextTabbableNode(w))}}else b=u("fallbackFocus");return b},U=function(f){var w=zs(f);if(!(c(w,f)>=0)){if(Fn(r.clickOutsideDeactivates,f)){a.deactivate({returnFocus:r.returnFocusOnDeactivate});return}Fn(r.allowOutsideClick,f)||f.preventDefault()}},$=function(f){var w=zs(f),S=c(w,f)>=0;if(S||w instanceof Document)S&&(o.mostRecentlyFocusedNode=w);else{f.stopImmediatePropagation();var L,B=!0;if(o.mostRecentlyFocusedNode)if(Jt(o.mostRecentlyFocusedNode)>0){var b=c(o.mostRecentlyFocusedNode),g=o.containerGroups[b].tabbableNodes;if(g.length>0){var V=g.findIndex(function(A){return A===o.mostRecentlyFocusedNode});V>=0&&(r.isKeyForward(o.recentNavEvent)?V+1<g.length&&(L=g[V+1],B=!1):V-1>=0&&(L=g[V-1],B=!1))}}else o.containerGroups.some(function(A){return A.tabbableNodes.some(function(j){return Jt(j)>0})})||(B=!1);else B=!1;B&&(L=z({target:o.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(o.recentNavEvent)})),C(L||o.mostRecentlyFocusedNode||p())}o.recentNavEvent=void 0},G=function(f){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=f;var S=z({event:f,isBackward:w});S&&(vs(f)&&f.preventDefault(),C(S))},oe=function(f){(r.isKeyForward(f)||r.isKeyBackward(f))&&G(f,r.isKeyBackward(f))},he=function(f){Of(f)&&Fn(r.escapeDeactivates,f)!==!1&&(f.preventDefault(),a.deactivate())},le=function(f){var w=zs(f);c(w,f)>=0||Fn(r.clickOutsideDeactivates,f)||Fn(r.allowOutsideClick,f)||(f.preventDefault(),f.stopImmediatePropagation())},ae=function(){if(o.active){gt.activateTrap(i,a);var f;return r.delayInitialFocus?f=new Promise(function(w){o.delayInitialFocusTimer=qa(function(){C(p()),w()})}):C(p()),s.addEventListener("focusin",$,!0),s.addEventListener("mousedown",U,{capture:!0,passive:!1}),s.addEventListener("touchstart",U,{capture:!0,passive:!1}),s.addEventListener("click",le,{capture:!0,passive:!1}),s.addEventListener("keydown",oe,{capture:!0,passive:!1}),s.addEventListener("keydown",he),f}},R=function(f){o.active&&!o.paused&&a._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var w=new Set,S=new Set,L=Ya(f),B;try{for(L.s();!(B=L.n()).done;){var b=B.value;w.add(b);for(var g=typeof ShadowRoot<"u"&&b.getRootNode()instanceof ShadowRoot,V=b;V;){w.add(V);var A=V.parentElement,j=[];A?j=A.children:!A&&g&&(j=V.getRootNode().children,A=V.getRootNode().host,g=typeof ShadowRoot<"u"&&A.getRootNode()instanceof ShadowRoot);var O=Ya(j),X;try{for(O.s();!(X=O.n()).done;){var te=X.value;S.add(te)}}catch(m){O.e(m)}finally{O.f()}V=A}}}catch(m){L.e(m)}finally{L.f()}w.forEach(function(m){S.delete(m)}),o.adjacentElements=S},ye=function(){if(o.active)return s.removeEventListener("focusin",$,!0),s.removeEventListener("mousedown",U,!0),s.removeEventListener("touchstart",U,!0),s.removeEventListener("click",le,!0),s.removeEventListener("keydown",oe,!0),s.removeEventListener("keydown",he),a},dn=function(f){var w=o.mostRecentlyFocusedNode;
2if(w){var S=f.some(function(B){var b=Array.from(B.removedNodes);return b.some(function(g){return g===w||typeof g.contains=="function"&&g.contains(w)})});if(S&&o.containers.some(function(B){return B==null?void 0:B.isConnected})){_();var L=p();C(L)}}},kt=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(dn):void 0,Qe=function(){kt&&(kt.disconnect(),o.active&&!o.paused&&o.containers.map(function(f){kt.observe(f,{subtree:!0,childList:!0})}))};return a={get active(){return o.active},get paused(){return o.paused},activate:function(f){if(o.active)return this;var w=l(f,"onActivate"),S=l(f,"onPostActivate"),L=l(f,"checkCanFocusTrap"),B=gt.getActiveTrap(i),b=!1;if(B&&!B.paused){var g;(g=B._setSubtreeIsolation)===null||g===void 0||g.call(B,!1),b=!0}try{L||_(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=d(s),w==null||w({trap:a});var V=function(){L&&_();var O=function(){a._setSubtreeIsolation(!0),Qe(),S==null||S({trap:a})},X=ae();X?X.then(O):O()};if(L)return L(o.containers.concat()).then(V,V),this;V()}catch(j){if(B===gt.getActiveTrap(i)&&b){var A;(A=B._setSubtreeIsolation)===null||A===void 0||A.call(B,!0)}throw j}return this},deactivate:function(f){if(!o.active)return this;var w=Ka({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},f);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||a._setSubtreeIsolation(!1),o.alreadySilent.clear(),ye(),o.active=!1,o.paused=!1,Qe(),gt.deactivateTrap(i,a);var S=l(w,"onDeactivate"),L=l(w,"onPostDeactivate"),B=l(w,"checkCanReturnFocus"),b=l(w,"delayReturnFocus"),g=l(w,"returnFocus","returnFocusOnDeactivate");S==null||S({trap:a});var V=function(){g&&C(v(o.nodeFocusedBeforeActivation)),L==null||L({trap:a})},A=function(){b&&g?qa(V):V()};return g&&B?(B(v(o.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(f){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,f)):this},unpause:function(f){return o.active?(o.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,f)):this},updateContainerElements:function(f){var w=[].concat(f).filter(Boolean);return o.containers=w.map(function(S){return typeof S=="string"?s.querySelector(S):S}),r.isolateSubtrees&&R(o.containers),o.active&&(_(),o.paused||a._setSubtreeIsolation(!0)),Qe(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(f,w){if(o.paused===f)return this;if(o.paused=f,f){var S=l(w,"onPause"),L=l(w,"onPostPause");S==null||S({trap:a}),ye(),a._setSubtreeIsolation(!1),Qe(),L==null||L({trap:a})}else{var B=l(w,"onUnpause"),b=l(w,"onPostUnpause");B==null||B({trap:a});var g=function(){_();var A=function(){a._setSubtreeIsolation(!0),Qe(),b==null||b({trap:a})},j=ae();j?j.then(A):A()};g()}return this}},_setSubtreeIsolation:{value:function(f){r.isolateSubtrees&&o.adjacentElements.forEach(function(w){var S;f?r.isolateSubtrees==="aria-hidden"?((w.ariaHidden==="true"||((S=w.getAttribute("aria-hidden"))===null||S===void 0?void 0:S.toLowerCase())==="true")&&o.alreadySilent.add(w),w.setAttribute("aria-hidden","true")):((w.inert||w.hasAttribute("inert"))&&o.alreadySilent.add(w),w.setAttribute("inert",!0)):o.alreadySilent.has(w)||(r.isolateSubtrees==="aria-hidden"?w.removeAttribute("aria-hidden"):w.removeAttribute("inert"))})}}}),a.updateContainerElements(t),a};let xt;const Mf=e=>{xt=Lf(e,{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1,fallbackFocus:document.body})},Ja=(e,t)=>{if(t.value||t.value===void 0){const n=t.arg?[e,...t.arg]:e;Mf(n),setTimeout(()=>{xt.activate()},100),console.debug("[focus-trap] activated")}else xt&&xt.active&&(xt.deactivate(),console.debug("[focus-trap] deactivated"))},zf={mounted(e,t){Ja(e,t)},updated(e,t){Ja(e,t)},unmounted(e,t){xt&&xt.active&&(xt.deactivate(),console.debug("[focus-trap] deactivated"))}},zr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
2ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ir(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Nr(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>n.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:Ir(t[s])&&Ir(e[s])&&Object.keys(t[s]).length>0?t[s].__swiper__?e[s]=t[s]:Nr(e[s],t[s]):e[s]=t[s]})}function jf(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Uf(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Hf(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Ff(e=""){const t=e.split(" ").map(s=>s.trim()).filter(s=>!!s),n=[];return t.forEach(s=>{n.indexOf(s)<0&&n.push(s)}),n.join(" ")}function wr(e=""){return e.replace(/-[a-z]/g,t=>t.toUpperCase().replace("-",""))}const Qa=e=>{if(parseFloat(e)===Number(e))return Number(e);if(e==="true"||e==="")return!0;if(e==="false")return!1;if(e==="null")return null;if(e!=="undefined")return e},Za=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function Xa(e,t,n){const s={},i={};Nr(s,Pu);const r=[...zr,"on"],o=r.map(l=>l.replace(/_/,""));r.forEach(l=>{l=l.replace("_",""),typeof e[l]<"u"&&(i[l]=e[l])});const a=[...e.attributes];return typeof t=="string"&&typeof n<"u"&&a.push({name:t,value:n}),a.forEach(l=>{const c=Za.filter(u=>l.name.indexOf("".concat(u,"-"))===0)[0];if(c){const u=wr(c),d=wr(l.name.split("".concat(c,"-"))[1]);typeof i[u]>"u"&&(i[u]={}),i[u]===!0&&(i[u]={enabled:!0}),i[u][d]=Qa(l.value)}else{const u=wr(l.name);if(!o.includes(u))return;const d=Qa(l.value);i[u]&&Za.includes(l.name)?(i[u].constructor!==Object&&(i[u]={}),i[u].enabled=d):i[u]=d}}),Nr(s,i),s.navigation?s.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...s.navigation!==!0?s.navigation:{}}:s.navigation===!1&&delete s.navigation,s.scrollbar?s.scrollbar={el:".swiper-scrollbar",...s.scrollbar!==!0?s.scrollbar:{}}:s.scrollbar===!1&&delete s.scrollbar,s.pagination?s.pagination={el:".swiper-pagination",...s.pagination!==!0?s.pagination:{}}:s.pagination===!1&&delete s.pagination,{params:s,passedParams:i}}function Gf({swiper:e,slides:t,passedParams:n,changedParams:s,nextEl:i,prevEl:r,scrollbarEl:o,paginationEl:a}){const l=s.filter(R=>R!=="children"&&R!=="direction"&&R!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:p,virtual:_,thumbs:C}=e;let v,z,U,$,G,oe,he,le;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(v=!0),s.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(z=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||a)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(U=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(c.scrollbar||c.scrollbar===!1)&&p&&!p.el&&($=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||r)&&(n.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(G=!0);const ae=R=>{e[R]&&(e[R].destroy(),R==="navigation"?(e.isElement&&(e[R].prevEl.remove(),e[R].nextEl.remove()),c[R].prevEl=void 0,c[R].nextEl=void 0,e[R].prevEl=void 0,e[R].nextEl=void 0):(e.isElement&&e[R].el.remove(),c[R].el=void 0,e[R].el=void 0))};s.includes("loop")&&e.isElement&&(c.loop&&!n.loop?oe=!0:!c.loop&&n.loop?he=!0:le=!0),l.forEach(R=>{if(Ir(c[R])&&Ir(n[R]))Nr(c[R],n[R]),(R==="navigation"||R==="pagination"||R==="scrollbar")&&"enabled"in n[R]&&!n[R].enabled&&ae(R);else{const ye=n[R];(ye===!0||ye===!1)&&(R==="navigation"||R==="pagination"||R==="scrollbar")?ye===!1&&ae(R):c[R]=n[R]}}),l.includes("controller")&&!z&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),s.includes("children")&&t&&_&&c.virtual.enabled&&(_.slides=t,_.update(!0)),s.includes("children")&&t&&c.loop&&(le=!0),v&&C.init()&&C.update(!0),z&&(e.controller.control=c.controller.control),U&&(e.isElement&&(!a||typeof a=="str
2ing")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(a)),a&&(c.pagination.el=a),u.init(),u.render(),u.update()),$&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(o)),o&&(c.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),G&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(r))),i&&(c.navigation.nextEl=i),r&&(c.navigation.prevEl=r),d.init(),d.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&e.changeDirection(n.direction,!1),(oe||le)&&e.loopDestroy(),(he||le)&&e.loopCreate(),e.update()}const Yf="@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}",Wf=":root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}:host(.swiper-vertical)>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight swiper-slide{height:auto}:host(.swiper-autoheight) .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}:host(.swiper-3d.swiper-css-mode) .swiper-wrapper{perspective:1200px}:host(.swiper-3d) .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d swiper-slide{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;
2left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}:host(.swiper-css-mode)>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}:host(.swiper-css-mode)>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>swiper-slide{scroll-snap-align:start start}:host(.swiper-horizontal.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:x mandatory}:host(.swiper-vertical.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:y mandatory}:host(.swiper-css-mode.swiper-free-mode)>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>swiper-slide{scroll-snap-align:none}:host(.swiper-centered)>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-horizontal)>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-vertical)>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";let Or=!0;const wo=(e,t)=>{let n=document.querySelector("style#swiper-element-styles");const s=n&&n.preInit&&!e;!e&&t&&t.cssLinks().forEach(i=>{const r=document.createElement("link");r.rel="stylesheet",r.href=i,document.head.prepend(r)}),(!n||s)&&(n=n||document.createElement("style"),n.textContent=[Yf,t?t.cssStyles():""].join("\n"),n.id="swiper-element-styles",n.preInit=e,document.head.prepend(n))};class Kf{}const zd=typeof window>"u"||typeof HTMLElement>"u"?Kf:HTMLElement;class jd extends zd{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}cssStyles(){return[Or?Wf:"",...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}render(){if(this.rendered)return;Or&&wo(!1,this);const t=this.cssStyles();t.length&&(this.stylesEl=document.createElement("style"),this.stylesEl.textContent=t,this.shadowEl.appendChild(this.stylesEl)),this.cssLinks().forEach(n=>{if(this.shadowEl.querySelector('link[href="'.concat(n,'"]')))return;const i=document.createElement("link");i.rel="stylesheet",i.href=n,this.shadowEl.appendChild(i)}),this.tempDiv.innerHTML='\n      <slot name="container-start"></slot>\n      <div class="swiper-wrapper">\n        <slot></slot>\n      </div>\n      <slot name="container-end"></slot>\n      '.concat(jf(this.passedParams)?'\n        <div part="button-prev" class="swiper-button-prev"></div>\n        <div part="button-next" class="swiper-button-next"></div>\n      ':"","\n      ").concat(Uf(this.passedParams)?'\n        <div part="pagination" class="swiper-pagination"></div>\n      ':"","\n      ").concat(Hf(this.passedParams)?'\n        <div part="scrollbar" class="swiper-scrollbar"></div>
2\n      ':"","\n    "),[...this.tempDiv.children].forEach(n=>{this.shadowEl.appendChild(n)}),this.rendered=!0}initialize(){if(this.initialized)return;this.initialized=!0;const{params:t,passedParams:n}=Xa(this);this.swiperParams=t,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new Vu(this,{...t,touchEventsTarget:"container",...t.virtual?{}:{observer:!0},onAny:(s,...i)=>{const r=t.eventsPrefix?"".concat(t.eventsPrefix).concat(s.toLowerCase()):s.toLowerCase(),o=new CustomEvent(r,{detail:i,bubbles:!0,cancelable:!0});this.dispatchEvent(o)}})}connectedCallback(){if(!(this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM)){if(this.init===!1||this.getAttribute("init")==="false"){wo(!0,this);return}this.initialize()}}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(t,n){const{params:s,passedParams:i}=Xa(this,t,n);this.passedParams=i,this.swiperParams=s,Gf({swiper:this.swiper,passedParams:this.passedParams,changedParams:[wr(t)],...t==="navigation"&&i[t]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},...t==="pagination"&&i[t]?{paginationEl:".swiper-pagination"}:{},...t==="scrollbar"&&i[t]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(t,n,s){this.initialized&&(n==="true"&&s===null&&(s=!1),this.updateSwiperOnPropChange(t,s))}static get observedAttributes(){return zr.filter(n=>n.includes("_")).map(n=>n.replace(/[A-Z]/g,s=>"-".concat(s)).replace("_","").toLowerCase())}}zr.forEach(e=>{e!=="init"&&(e=e.replace("_",""),Object.defineProperty(jd.prototype,e,{configurable:!0,get(){return(this.passedParams||{})[e]},set(t){this.passedParams||(this.passedParams={}),this.passedParams[e]=t,this.initialized&&this.updateSwiperOnPropChange(e)}}))});let qf=class extends zd{constructor(){super(),this.tempDiv=document.createElement("div"),this.shadowEl=this.attachShadow({mode:"open"})}render(){const t=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(this.tempDiv.innerHTML="<slot />",[...this.tempDiv.children].forEach(n=>{this.shadowEl.appendChild(n)}),t){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),this.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}};const Jf=(e=!0)=>{typeof window>"u"||(e||(Or=!1),Or&&wo(!0),window.customElements.get("swiper-container")||window.customElements.define("swiper-container",jd),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",qf))};typeof window<"u"&&(window.SwiperElementRegisterParams=e=>{zr.push(...e)});const Qf=window.Vue.createApp;window.Vue.inject;window.Vue.provide;Jf();vt.defaults.headers={"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"};const Ae=Qf(xh);Ae.config.performance=!0;Ae.config.globalProperties.$baseUrl=window.cmms_base||"/";document.location.href.indexOf(":8080")>=0&&(Ae.config.globalProperties.$baseUrl=Ae.config.globalProperties.$baseUrl.replace(/^(https?:\/\/)([^/]*)\/?(.*)\/?$/,"$1$2:8080/$3"));Ae.config.globalProperties.$production_mode=!0;Ae.config.globalProperties.$appMode="soylent_settings"in window&&window.soylent_settings.app_mode||!1;Ae.config.globalProperties.$routerLink=_o;Ae.config.globalProperties.$translate=(...e)=>window.__(...e);Ae.config.globalProperties.$translateN=(...e)=>window._n(...e);je&&document.body.classList.add("app-native");ef();Ae.use(F);Ae.use(Lt);Ae.directive("focustrap",zf);const Zf="soylent_features"in window?window.soylent_features:{};Object.entries(Zf).forEach(e=>{e[1]===!0&&Po().add(e[0])});function Xf(){Po().has(Oc)&&window.isDynamicRenderer!==!0&&cf().init(F),Ae.mount("#app-container"),rn.dispatch(Tn.APP_MOUNT_READY)}window.isDynamicRenderer=navigator.userAgent.includes("WeLocalDynamicRenderer");const ew="modulepreload",tw=function(e){return"/wp-content/themes/cmms-theme-koelsch_radio/assets/dist/2.6/"+e},el={},T=function(t,n,s){let i=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=l(n.map(c=>{if(c=tw(c),c in el)return;el[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector('link[href="'.concat(c,'"]').concat(d)))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":ew,u||(p.as="script"),p.crossOrigin="",p.href=c,a&&p.setAttribute("nonce",a),document.head.appendChild(p),u)return new Promise((_,C)=>{p.addEventListener("load",_),p.addEventListener("error",()=>C(new Error("Unable to preload CSS for ".concat(c))))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})},Ud="SET_PLAYER_DRAWER_OPEN",Hd="SET_CHANNELS",go="SET_DEFAULT_CHANNEL_ID",Fd="SET_PODCAST_LIST",Gd="ADD_PODCAST_OBJECT",Yd="SET_PLAYER_STATE",Wd="SET_PLAYER_MODE",yo="RESET_PLAYER_IDS",vo="RESET_PLAYER_DURATION",An="SET_PLAYER_AUDIO_OBJECT",bo="SET_PLAYER_PODCAST_OBJECT",gr="SET_PLAYER_CHANNEL_ID",Kd="SET_PLAYER_DURATION",qd="SET_PLAYER_ELAPSED",Jd="SET_LAST_CHANNEL_ID",Qd="SET_CURRENT_TRACK_SOURCE",nw={[Ud](e,t){const n=document.body;t===!0?n.style.overflow="hidden":n.style.overflow="",e.playerDrawerOpen=t},[Hd](e,t){e.channels=t},[Gd](e,t){e.podcasts["podcast_"+t.podcastId]=t.podcastData},[Yd](e,t){e.player.state=t},[Wd](e,t){e.player.mode=t},[yo](e){e.player.audioObject=null,e.player.podcastObject=null,e.player.channelId=null},[An](e,t){e.player.audioObject=t},[bo](e,t){e.player.podcastObject=t},[gr](e,t){e.player.channelId=t},[go](e,t){e.player.defaultChannelId=t},[Kd](e,t){e.player.duration=t},[qd](e,t){e.player.elapsed=t},[vo](e){e.player.duration=0,e.player.elapsed=0},[Jd](e,t){e.player.lastChannelId=t},[Fd](e,t){e.player.podcastList=t},[Qd](e,t){e.player.currentTrackSource=t}},sw={label:"",title:"",excerpt:""};class tl{constructor(t={}){const n=Object.assign({},sw);for(const s in t)s in n&&(n[s]=t[s]);return n}}const rw={title:"",interpret:"",cover:null,time:null,id:null,duration:0,live:!1};class li{constructor(t={}){const n=Object.assign({},rw);for(const s in t)s in n&&(n[s]=t[s]);return n}}function Br(e=0,t=":"){const n=new Date(e*1e3);let s=n.getUTCHours(),i=n.getUTCMinutes(),r=n.getSeconds(),o="";return s>0&&(o=s.toString().padStart(2,"0")+t),o+i.toString().padStart(2,"0")+t+r.toString().padStart(2,"0")}const iw={playerDrawerOpen:e=>e.playerDrawerOpen,defaultChannelId:e=>e.player.defaultChannelId,currentChannelId:e=>e.player.channelId||e.player.defaultChannelId,hasChannels:(e,t)=>t.channels.length>0||Object.keys(t.channels).length>0,channels:e=>e.channels,channelData:e=>t=>t in e.channels?e.channels[t]:null,currentChannelData:(e,t)=>t.currentChannelId in e.channels?e.channels[t.currentChannelId]:null,podcastData:e=>t=>"podcast_"+t in e.podcasts?e.podcasts["podcast_"+t]:null,podcastList:e=>e.player.podcastList,playerState:e=>e.player.state,playerMode:e=>e.player.mode,playerAudioObject:e=>e.player.audioObject,playerPodcastObject:e=>e.player.podcastObject,hasPodcasts:e=>e.player.podcastList.length>0,playerPodcastIndex:(e,t)=>{if(!t.playerPodcastObject)return 0;const n=t.playerAudioObject.post_id;return t.playerPodcastObject.episodes.findIndex(i=>i.post_id===n)},playerPodcastHasNext:(e,t)=>
2{if(!t.playerPodcastObject)return!1;const n=t.playerPodcastIndex-1;return!!t.playerPodcastObject.episodes[n]},playerPodcastHasPrev:(e,t)=>{if(!t.playerPodcastObject)return!1;const n=t.playerPodcastIndex+1;return!!t.playerPodcastObject.episodes[n]},playerChannelId:e=>e.player.channelId,playerDuration:e=>e.player.duration,playerDurationHuman:e=>Br(e.player.duration),playerElapsed:e=>e.player.elapsed,playerElapsedHuman:e=>Br(e.player.elapsed),playerElapsedPercent:e=>e.player.elapsed/e.player.duration*100,currentChannelTrack:(e,t)=>t.channelTrackById(t.currentChannelId),channelTrackById:(e,t)=>n=>{let s=n||t.currentChannelId,i=e.channels[s]&&"playlist"in e.channels[s]&&e.channels[s].playlist.length?e.channels[s].playlist[0]:null;return i&&(i=JSON.parse(JSON.stringify(i)),"cover"in i&&(i.cover=window.cmms_thumbs_base+"120x120c/".concat(i.cover))),new li(i)},currentTrack:(e,t)=>{if(e.player.mode===we||e.player.mode===ie){const s=e.player.audioObject?{title:e.player.audioObject.title||"",duration:e.player.audioObject.duration_seconds||0,id:e.player.audioObject.post_id||null}:{};return e.player.audioObject&&e.player.audioObject.image?s.cover="".concat(window.cmms_thumbs_base,"600x600c/").concat(e.player.audioObject.image.media_id,".webp"):e.player.mode===ie&&e.player.podcastObject&&e.player.podcastObject.image&&(s.cover="".concat(window.cmms_thumbs_base,"600x600c/").concat(e.player.podcastObject.image.media_id,".webp")),je?e.player.mode===ie&&e.player.podcastObject?s.interpret=e.player.podcastObject.title:s.interpret="":s.interpret="".concat(t.playerElapsedHuman," / ").concat(t.playerDurationHuman),new li(s)}const n=Object.assign({live:!0},e.channels[t.currentChannelId]&&"playlist"in e.channels[t.currentChannelId]&&e.channels[t.currentChannelId].playlist.length?e.channels[t.currentChannelId].playlist[0]:{});return"cover"in n&&!n.cover.length&&n.cover_s3.length&&(n.cover=n.cover_s3),"cover"in n&&n.cover.substring(0,4)!=="http"&&(n.cover="".concat(window.cmms_thumbs_base,"600x600c/").concat(n.cover)),new li(n)},currentPodcastTitle:(e,t)=>
2t.playerPodcastObject?t.playerPodcastObject.title:"",trackCover:(e,t)=>(n,s)=>{if(!t.channelData(s))return null;const i=t.channelData(s).playlist;return n in i&&i[n].cover!==void 0&&i[n].cover!=="undefined"?window.cmms_thumbs_base+"640x640c/".concat(i[n].cover):t.channelData(s).default_cover_id?window.cmms_thumbs_base+"640x640c/".concat(t.channelData(s).default_cover_id,".webp"):null},currentShow:(e,t)=>e.player.mode===ie?new tl(e.player.podcastObject?{label:e.player.podcastObject.title||"",title:""}:null):new tl(e.channels[t.currentChannelId]&&"show"in e.channels[t.currentChannelId]?e.channels[t.currentChannelId].show:null),currentTrackSource:e=>e.currentTrackSource},ow=window.Vue.ref;var Ss;class Zd{constructor({player:t,type:n}){x(this,Ss,ow(!1));this.player=t,this.type=n,this.log("Loaded")}setReady(t){h(this,Ss).value=t}ready(){return h(this,Ss)}play(t){}pause(){}log(...t){}}Ss=new WeakMap;const aw="automotivePlayerChannels",lw="automotivePlayerCurrentChannel",cw="automotiveSetChannel";var Et,Xd,eu,Eo;class dw extends Zd{constructor(n){super({player:n,type:"ReactNative"});x(this,Et);ue.onPayload(q(this,Et,Xd).bind(this),"event"),ue.sendPayload({type:"setupAudioPlayer"})}play(n){const s=F.getters["player/playerState"],i=F.getters["player/playerMode"],r=F.getters["player/currentTrackSource"];if(s===Sr&&n===r&&(i===we||i===ie)){ue.sendPayload({type:"resumeAudioPlayer"});return}const o=F.getters["player/currentTrack"].live,a={id:"default",url:n,title:F.getters["player/currentTrack"].title,artist:F.getters["player/currentTrack"].interpret,isLiveStream:o};if(F.getters["player/currentTrack"].cover&&(a.artwork=window.cmms_thumbs_base+"500x500/"+F.getters["player/currentTrack"].cover),o){const l=F.getters["player/currentChannelId"];a.metadataApi="".concat(document.location.origin,"/cache/playlists/").concat(l,"_5.json")}else a.duration=F.getters["player/currentTrack"].duration,this.player.setDuration(a.duration);ue.sendPayload({type:"setAudioPlayerTrack",track:a,autoplay:!0}),F.dispatch("player/setCurrentTrackSource",n),q(this,Et,Eo).call(this,"buffering")}pause(){const n=F.getters["player/playerMode"];n===we||n===ie?ue.sendPayload({type:"pauseAudioPlayer"}):ue.sendPayload({type:"stopAudioPlayer"})}seek(n){ue.sendPayload({type:"audioPlayerSeek",seconds:n})}}Et=new WeakSet,Xd=function(n){const{eventType:s,data:i}=n;switch(s){case"audioPlayerReady":q(this,Et,eu).call(this);break;case"audioPlayerState":q(this,Et,Eo).call(this,i);break;case"audioPlayerProgress":this.player.setElapsed(parseFloat(i)||0);break;case cw:F.dispatch("player/setPlayerChannelId",{channelId:parseInt(i.channelId,10),autoplay:!1}).then();break}},eu=function(){this.setReady(!0)},Eo=function(n){switch(n==="stopped"&&this.player.getState()===Rn&&(n="buffering"),n){case"playing":this.player.setState(bt);break;case"paused":this.player.setState(Sr);break;case"ready":case"stopped":case"none":this.player.setState(Vo);break;case"buffering":this.player.setState(Rn);break}};var fe,As,Cs;class uw extends Zd{constructor(n){super({player:n,type:"HTML"});x(this,fe,null);x(this,As,this.handleEvent.bind(this));x(this,Cs,[Sh,Xo,ea,ta,na,sa,ra,ia,oa,aa,la,ca]);this.setReady(!0)}setup(n){ne(this,fe,new Audio(n)),h(this,Cs).forEach(s=>h(this,fe).addEventListener(s,h(this,As)))}destroy(){h(this,Cs).forEach(n=>h(this,fe).removeEventListener(n,h(this,As))),h(this,fe).pause(),h(this,fe).removeAttribute("src"),h(this,fe).load(),ne(this,fe,null),this.player.setState(Sr)}play(n){(!h(this,fe)||h(this,fe).src!==n)&&(h(this,fe)&&this.destroy(),this.setup(n)),h(this,fe).play().catch(s=>{this.log("Could not play",s)})}pause(){h(this,fe).pause(),this.player.getMode()===ge&&this.destroy()}seek(n){h(this,fe).currentTime=n}handleEvent(n){switch(n.type){case sa:case la:case aa:case ca:this.player.setState(Rn);break;case ra:this.player.setState(bt);break;case na:this.player.setState(Sr);break;case ea:this.player.setState(Vo),this.player.ended();break;case ta:this.player.setState(Bc);break;case Xo:this.player.setDuration(h(this,fe).duration);break;case ia:case oa:this.player.setElapsed(h(this,fe).currentTime);break}}}fe=new WeakMap,As=new WeakMap,Cs=new WeakMap;const tu="EVENT_PLAY",nu="EVENT_PAUSE",su="EVENT_DURATION",ru="EVENT_PROGRESS",hw=2,pw={mode:null,channelId:null,channelLabel:null,audioId:null,podcastId:null,podcastLabel:null},nl="Audio",_w="Podcast",mw="Channel",js="Play",ci="Pause";var nn,H,sn,Ts,Ne,So,iu,yr,yt,fs,ou,au;const Bt=class Bt{constructor(t){x(this,Ne);x(this,nn,null);x(this,H,{});x(this,sn,{0:!1,25:!1,50:!1,75:!1,100:!1});x(this,Ts,0);ne(this,nn,t)}configure(t={}){const n=h(this,nn).getMode(),{audioObject:s,channelObject:i,podcastObject:r}=Object.assign({audioObject:null,channelObject:null,podcastObject:null},t);if(n===h(this,H).mode)switch(n){case ge:if(i!==null&&i.post_id===h(this,H).channelId)return;break;case we:case ie:if(s!==null&&s.post_id===h(this,H).audioId)return;break}q(this,Ne,au).call(this),h(this,H).mode=n,s&&(h(this,H).audioId=s.post_id),i&&(h(this,H).channelId=i.channelId,h(this,H).channelLabel=i.data.label),r&&(h(this,H).podcastId=r.post_id,h(this,H).podcastLabel=r.title)}track(t){switch(t){case tu:q(this,Ne,yr).call(this,{action:js}),q(this,Ne,So).call(this,js);break;case nu:q(this,Ne,yr).call(this,{action:ci}),q(this,Ne,So).call(this,ci);break;case su:ne(this,Ts,100/h(this,nn).getDuration()*hw);break;case ru:q(this,Ne,iu).call(this,h(this,nn).getElapsedPercent());break}}};nn=new WeakMap,H=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Ne=new WeakSet,So=function(t){let n={};h(this,H).mode===we||h(this,H).mode===ie?n.media_id=h(this,H).audioId:h(this,H).mode===ge&&("channelLabel"in h(this,H)&&(n.channel_name=h(this,H).channelLabel),n.channel_id=h(this,H).channelId),document.dispatchEvent(new CustomEvent("Player:".concat(t),{cancelable:!0,bubbles:!0,detail:n}))},iu=function(t=0){isNaN(t)&&(t=0),t>75&&(t+=h(this,Ts));let n=Math.floor(t/25)*25;q(this,Ne,yr).call(this,{action:js,percentage:n})},yr=function(t){var n,s,i,r,o;
2if(t=Object.assign({action:null,percentage:0},t),!h(this,sn)[t.percentage]){if(h(this,sn)[t.percentage]=!0,h(this,H).mode===we||h(this,H).mode===ie){const a=new FormData;a.append("media_id",h(this,H).audioId),a.append("percentage",t.percentage),vt.post("/cmms-api-v2/media-tracking/",a)}if(t.percentage===0?((h(this,H).mode===we||h(this,H).mode===ie)&&q(n=Bt,yt,fs).call(n,["trackEvent",nl,t.action,h(this,H).audioId]),h(this,H).mode===ie&&q(s=Bt,yt,fs).call(s,["trackEvent",_w,t.action,h(this,H).podcastId]),h(this,H).mode===ge&&q(i=Bt,yt,fs).call(i,["trackEvent",mw,t.action,h(this,H).channelId])):(h(this,H).mode===we||h(this,H).mode===ie)&&q(r=Bt,yt,fs).call(r,["trackEvent",nl,"".concat(t.action,"-").concat(t.percentage,"%"),h(this,H).audioId]),t.percentage===0||t.percentage===100){let a=null;if(t.percentage===100)a="complete";else switch(t.action){case js:a="start";break;case ci:a="pause";break}let l="media",c={};switch(h(this,H).mode){case we:c.identifier=String(h(this,H).audioId),c.type="other-music-content";break;case ie:c.identifier=String(h(this,H).podcastId),c.type="podcast",c["media-series-name"]=h(this,H).podcastLabel,c["media-series-episode"]=String(h(this,H).audioId);break;case ge:l="stream",c.type="audio",c.identifier=String(h(this,H).channelId),a==="pause"&&(a="stop");break}a!==null&&q(o=Bt,yt,ou).call(o,"fix:".concat(l,":").concat(a),c)}}},yt=new WeakSet,fs=function(t=[]){try{window._paq.push(t)}catch(n){}},ou=function(t="",n={}){try{window.Qyjs("tracking.track",t,n)}catch(s){}},au=function(){ne(this,H,Object.assign({},pw)),Object.keys(h(this,sn)).forEach(t=>{h(this,sn)[t]=!1})},x(Bt,yt);let ko=Bt;var Rt,it,$n,vr;const Cn=class Cn{constructor(){x(this,$n);x(this,Rt,null);x(this,it,null);q(this,$n,vr).call(this,"Loaded"),ne(this,Rt,new(je?dw:uw)(this)),ne(this,it,new ko(this))}init(){q(this,$n,vr).call(this,"Init")}ready(){return h(this,Rt).ready()}play(){let t=null;if(this.getMode()===ge){const n=F.getters["player/channelData"](F.getters["player/playerChannelId"]);if(!n)return;je&&"sources-app"in n?t=Cn.getSourceCandidate(n["sources-app"]):n.sources&&(t=Cn.getSourceCandidate(n.sources)),h(this,it).configure({channelObject:{channelId:F.getters["player/playerChannelId"],data:n}})}else{const n=F.getters["player/playerAudioObject"];n.sources&&(t=Cn.getSourceCandidate(n.sources));const s=F.getters["player/playerPodcastObject"];h(this,it).configure({audioObject:n,podcastObject:s})}q(this,$n,vr).call(this,"Play source",t),h(this,Rt).play(t),h(this,it).track(tu)}pause(){h(this,Rt).pause(),h(this,it).track(nu)}seek(t){h(this,Rt).seek(t)}ended(){rn.dispatch(Mu.AUDIO_ENDED),F.dispatch("player/audioObjectEnded")}toggle(){this.getState()===bt?this.pause():this.play()}setState(t){F.dispatch("player/setPlayerState",t).then()}getState(){return F.getters["player/playerState"]}getMode(){return F.getters["player/playerMode"]}getDuration(){return F.getters["player/playerDuration"]}setDuration(t){F.dispatch("player/setPlayerDuration",t).then(()=>{h(this,it).track(su)})}getElapsed(){return F.getters["player/playerElapsed"]}getElapsedPercent(){return F.getters["player/playerElapsedPercent"]}setElapsed(t){F.dispatch("player/setPlayerElapsed",t).then(()=>{h(this,it).track(ru)})}static getSourceCandidate(t){let n=null;return t.constructor===Array&&(t=Cn.sourcesArrayToObject(t)),"aac"in t&&t.aac.length&&je&&(n=t.aac),n===null&&"mp4"in t&&t.mp4.length&&(n=t.mp4),n===null&&"mp3"in t&&t.mp3.length&&(n=t.mp3),n=xs.filter(Rc,n),n}static sourcesArrayToObject(t){let n={};return t.forEach(s=>{if(!1 in s||!1 in s||!s.src.length)return;let i=null;switch(s.type){case"audio/mp3":i="mp3";break;case"audio/mp4":i="mp4";break;case"application/vnd.apple.mpegurl":i="hls";break}i&&(n[i]=s.src)}),n}};Rt=new WeakMap,it=new WeakMap,$n=new WeakSet,vr=function(...t){};let Rr=Cn;const ze=new Rr,fw={setPlayerDrawerOpen:function({commit:e,getters:t},n){e(Ud,n)},setPlayerState:function({commit:e},t){e(Yd,t)},setPlayerMode:function({commit:e},t){e(Wd,t)},setPlayerAudioObject:async function({commit:e,dispatch:t,state:n},{audioObject:s,autoplay:i}){let r=null;n.player.channelId!==null&&n.player.state===bt&&n.player.mode===ge&&(r=n.player.channelId,t("setLastChannelId",r)),(n.player.mode!==we||!n.player.audioObject||n.player.audioObject!==s)&&(await e(yo),await e(vo),await e(An,s),await t("setPlayerMode",we)),i&&ze.play()},setPlayerPodcast:async function({commit:e,dispatch:t,state:n,getters:s}
2,{podcastObject:i,audioObject:r,autoplay:o}){let a=!0;if(n.player.mode!==ie||!n.player.audioObject||n.player.audioObject!==r||n.player.podcastObject!==i){await e(gr,null);let l=s.podcastData(i.post_id);l!==null?i=l:("model"in i&&(i=i.model),"api_url"in i&&(i=await t("loadPodcast",i.api_url))),await e(bo,i),r?await e(An,r):i.episodes.length?await e(An,i.episodes[0]):a=!1,await t("setPlayerMode",ie)}a&&o&&ze.play()},audioObjectEnded({dispatch:e,state:t}){t.player.mode===ie?e("playerPodcastSkip",Pn):t.player.mode===we&&t.player.lastChannelId!==null&&e("setPlayerChannelId",{channelId:t.player.lastChannelId,autoplay:!0})},async playerPodcastSkip({dispatch:e,getters:t,commit:n},s=Pn){if(t.playerPodcastObject){const i=t.playerPodcastIndex;let r=-1;s===Pn?r=i-1:r=i+1;const o=t.playerPodcastObject.episodes;o[r]&&await e("setPlayerPodcast",{podcastObject:t.playerPodcastObject,audioObject:o[r],autoplay:!0})}},async setChannels({commit:e},t){if(await e(Hd,t),je){const n=[];Object.keys(t).forEach(s=>{var i,r,o;n.push({id:s,titleVariants:[t[s].label],image:{uri:window.cmms_thumbs_base+"320x/".concat(t[s].thumbnail_id,".jpg")},order:(i=t[s].order)!=null?i:0,src:Rr.getSourceCandidate((o=(r=t[s]["sources-app"])!=null?r:t[s].sources)!=null?o:{}),metadataApi:"".concat(document.location.origin,"/cache/playlists/").concat(s,"_5.json")})}),n.sort((s,i)=>s.order-i.order),n.forEach(s=>{delete s.order}),ue.sendPayload({type:aw,channels:n})}},setPlayerDefaultChannelId:async function({commit:e},{channelId:t}){e(go,t)},setPlayerChannelId:async function({commit:e,dispatch:t},{channelId:n,autoplay:s}){t("setLastChannelId",null),await e(yo),await e(gr,n),await t("setPlayerMode",ge),je&&ue.sendPayload({type:lw,channel:n}),s&&ze.play()},setPlayerDuration:function({commit:e},t){e(Kd,t)},setPlayerElapsed:function({commit:e},t){e(qd,t)},async loadPodcast({commit:e,state:t,dispatch:n},s){return vt.get(s).then(i=>{if(i.data.success===!0){const r=i.data.podcast,o=r.post_id;return e(Gd,{podcastId:o,podcastData:r}),r}}).catch(i=>{if(!i.response)return!1})},async loadPodcastList({commit:e}){vt.get("/data/soylent/podcast_data_list.json").then(t=>{t.data.success===!0&&e(Fd,t.data.podcast_list)}).catch(t=>{if(!t.response)return console.debug(t),!1})},setLastChannelId({commit:e,state:t,dispatch:n},s){e(Jd,s)},loadChannelData:function({commit:e,state:t,dispatch:n}){vt.get("/cache/playlists/all-channels.json").then(s=>{const i=s.data;"channels"in window.soylent_settings.child_settings&&n("setChannels",i).then(()=>{const r=window.soylent_settings.child_settings.channels.default_channel_id;t.player.defaultChannelId||e(go,r),r&&!t.player.channelId&&t.player.mode===ge&&n("setPlayerChannelId",{channelId:r})})}).catch(s=>{s.response||console.debug(s)})},async resetPlayer({commit:e,dispatch:t}){await e(gr,null),await e(bo,null),await e(An,null),await e(vo),await e(An,null),await t("setPlayerMode",kh);try{ze.pause()}catch(n){}},setCurrentTrackSource:function({commit:e},t){e(Qd,t)}},ww={channels:{},podcasts:[],playerDrawerOpen:!1,player:{state:null,mode:ge,duration:0,elapsed:0,audioObject:null,podcastObject:null,channelId:null,defaultChannelId:null,lastChannelId:null,podcastList:[],currentTrackSource:null}},gw={state:ww,namespaced:!0,mutations:nw,getters:iw,actions:fw},yw={name:"AppDebug",computed:{debug:function(){return this.$store.getters.pageDebugData}}},sl=window.Vue.renderList,rl=window.Vue.Fragment,Gn=window.Vue.openBlock,Yn=window.Vue.createElementBlock,il=window.Vue.createElementVNode,vw=window.Vue.createCommentVNode,bw={key:0,class:"soylent-debug-wrapper"},Ew=["innerHTML"],kw=["innerHTML"];function Sw(e,t,n,s,i,r){return r.debug?(Gn(),Yn("div",bw,[(Gn(!0),Yn(rl,null,sl(r.debug,o=>(Gn(),Yn("div",{key:o.id,class:"soylent-debug-item-wrapper"},[(Gn(!0),Yn(rl,null,sl(o,(a,l)=>(Gn(),Yn("div",{key:l.id,class:"soylent-debug-item"},[il("code",{innerHTML:l.replace(".../cmms-theme-imsueden",""),class:"soylent-debug-key"},null,8,Ew),il("code",{innerHTML:a,class:"soylent-debug-value"},null,8,kw)]))),128))]))),128))])):vw("",!0)}const Aw=k(yw,[["render",Sw]]),Cw=window.Vue.defineAsyncComponent,Tw={name:"MainMenuSub",components:{SubMenuItem:Cw(()=>T(()=>Promise.resolve().then(()=>Zw),[]))},props:["items"]},Pw=window.Vue.renderList,Vw=window.Vue.Fragment,di=window.Vue.openBlock,ol=window.Vue.createElementBlock,Dw=window.Vue.resolve
2Component,$w=window.Vue.createBlock,Iw={class:"sub-menu"};function Nw(e,t,n,s,i,r){const o=Dw("sub-menu-item");return di(),ol("ul",Iw,[(di(!0),ol(Vw,null,Pw(n.items,a=>(di(),$w(o,{key:"sub_".concat(a.id),item:a},null,8,["item"]))),128))])}const lu=k(Tw,[["render",Nw]]),Ow={name:"SoylentLink",props:{url:{type:String,default:""},callback:{default:!1},blank:{type:Boolean,default:null},useRouter:{type:Boolean,default:!0}},computed:{isAnchor(){return this.url&&(this.url.charAt(0)==="#"||this.url.substring(0,2)==="/#")},useRouterLink:function(){return!(this.callback!==!1||this.isExternalLink||this.blank===!0||this.isAnchor)},target:function(){if(this.blank!==!1&&!this.isAnchor||this.blank===null&&this.isExternalLink&&!this.isAnchor)return"_blank"},isExternalLink:function(){return this.useRouter===!1||this.$routerLink(this.url).match(/^(https?:\/\/|mailto:|tel:\/\/)/)||this.url.match(/\.pdf$/i)}}},ui=window.Vue.renderSlot,Bw=window.Vue.resolveComponent,Rw=window.Vue.withCtx,hi=window.Vue.openBlock,xw=window.Vue.createBlock;window.Vue.createCommentVNode;const Lw=window.Vue.withModifiers,al=window.Vue.createElementBlock,Mw=["href","target"];function zw(e,t,n,s,i,r){const o=Bw("router-link");return r.useRouterLink?(hi(),xw(o,{key:0,to:e.$routerLink(n.url)},{default:Rw(()=>[ui(e.$slots,"default")]),_:3},8,["to"])):n.callback!==!1?(hi(),al("a",{key:1,href:"#",onClick:t[0]||(t[0]=Lw((...a)=>n.callback&&n.callback(...a),["prevent","stop"]))},[ui(e.$slots,"default")])):(hi(),al("a",{key:2,href:n.url,target:r.target},[ui(e.$slots,"default")],8,Mw))}const ct=k(Ow,[["render",zw]]),jw={name:"MenuItem",components:{SoylentLink:ct,MainMenuSub:lu},props:["item"],computed:{itemClasses(){let e=this.item.classes;return this.item.items&&(e+=" menu-item-has-children"),e},callback(){return this.item.classes.indexOf("cmms-show-usercentrics-layer")>=0?this.usercentrics.bind(this):this.item.classes.indexOf("cmms-show-cookiebot-layer")>=0?this.cookiebot.bind(this):!1}},methods:{closeMenu(){this.$store.dispatch("closeMenu")},usercentrics(){window.UC_UI&&window.UC_UI.showSecondLayer()},cookiebot(){window.Cookiebot&&window.Cookiebot.renew()},shouldOpenInNewTab(e){return"target"in e&&e.target==="_blank"}}},Uw=window.Vue.toDisplayString,Hw=window.Vue.createElementVNode,ll=window.Vue.resolveComponent,Fw=window.Vue.withCtx,Gw=window.Vue.createVNode,cl=window.Vue.openBlock,Yw=window.Vue.createBlock,Ww=window.Vue.createCommentVNode,Kw=window.Vue.normalizeClass,qw=window.Vue.createElementBlock,Jw={class:"nav-label"};function Qw(e,t,n,s,i,r){const o=ll("soylent-link"),a=ll("MainMenuSub");return cl(),qw("li",{class:Kw(["item",r.itemClasses])},[Gw(o,{onClick:r.closeMenu,url:n.item.url,callback:r.callback,blank:r.shouldOpenInNewTab(n.item),class:"link"},{default:Fw(()=>[Hw("span",Jw,Uw(n.item.label),1)]),_:1},8,["onClick","url","callback","blank"]),n.item.items?(cl(),Yw(a,{key:0,items:n.item.items},null,8,["items"])):Ww("",!0)],2)}const cu=k(jw,[["render",Qw]]),Zw=Object.freeze(Object.defineProperty({__proto__:null,default:cu},Symbol.toStringTag,{value:"Module"})),Xw={name:"FooterMenu",components:{FooterMenuItem:cu},data:function(){return{items:[]}},beforeMount(){this.items=window.soylent_menus?window.soylent_menus.footer||[]:""}},eg=window.Vue.renderList,tg=window.Vue.Fragment,pi=window.Vue.openBlock,dl=window.Vue.createElementBlock,ng=window.Vue.resolveComponent,sg=window.Vue.createBlock,ul=window.Vue.createElementVNode,rg={class:"footer-nav"},ig={class:"menu-footer-container"},og={id:"menu-footer",class:"footer-menu"};function ag(e,t,n,s,i,r){const o=ng("footer-menu-item");return pi(),dl("div",rg,[ul("div",ig,[ul("ul",og,[(pi(!0),dl(tg,null,eg(e.items,a=>(pi(),sg(o,{class:"--text-size-xl",key:a.id,item:a},null,8,["item"]))),128))])])])}const lg=k(Xw,[["render",ag]]),cg={name:"SocialShortcuts",data:function(){return{initialItems:[]}},computed:{items(){return this.initialItems}},methods:{getClassNames:function(e){return"ss-"+e.join(" ")}},mounted(){this.initialItems=window.soylent_menus?window.soylent_menus.social||[]:""}},dg=window.Vue.renderList,ug=window.Vue.Fragment,_i=window.Vue.openBlock,mi=window.Vue.createElementBlock,hg=window.Vue.toDisplayString,pg=window.Vue.createElementVNode,_g=window.Vue.normalizeClass,mg={class:"social-shortcuts"},fg=["href","target","title","aria-label"];function wg(e,t,n,s,i,r){return _i(),mi("div",mg,[(_i(!0),mi(ug,null,dg(r.items,o=>(_i(),mi("a",{key:o.id,href:o.url,rel:"nofollow",class:_g(r.getClassNames(o.classes)),target:o.target,title:o.label,"aria-label":o.label},[pg("span",null,hg(o.label),1)],10,fg))),128))])}const du=k(cg,[["render",wg]]),gg={name:"AppFooter",components:{IdvlEditor:Cd,SocialShortcuts:du,FooterMenu:lg},data:function(){var e;return{editorContent:(e=window.soylent_footer)!=null?e:[]}}}
2,fi=window.Vue.resolveComponent,hl=window.Vue.openBlock,yg=window.Vue.createBlock,vg=window.Vue.createCommentVNode,pl=window.Vue.createVNode,wi=window.Vue.createElementVNode,bg=window.Vue.createElementBlock,Eg={id:"colophon",class:"site-footer",role:"contentinfo"},kg={class:"footer-wrapper"},Sg={class:"footer-navigation-wrapper"},Ag={class:"toolbar"};function Cg(e,t,n,s,i,r){const o=fi("idvl-editor"),a=fi("SocialShortcuts"),l=fi("FooterMenu");return hl(),bg("footer",Eg,[e.editorContent?(hl(),yg(o,{key:0,blocks:e.editorContent},null,8,["blocks"])):vg("",!0),wi("div",kg,[wi("div",Sg,[wi("div",Ag,[pl(a)]),pl(l)])])])}const _l=k(gg,[["render",Cg]]),Tg={name:"MenuSwitch",methods:{toggleMenu:function(){this.$store.dispatch("toggleMenu");try{this.$store.dispatch("player/setPlayerDrawerOpen",!1)}catch(e){}}}},ml=window.Vue.createElementVNode,Pg=window.Vue.openBlock,Vg=window.Vue.createElementBlock;function Dg(e,t,n,s,i,r){return Pg(),Vg("button",{"aria-label":"Menu anzeigen",class:"--mobile-only menu-switch",onClick:t[0]||(t[0]=(...o)=>r.toggleMenu&&r.toggleMenu(...o))},[...t[1]||(t[1]=[ml("span",{class:"iconSet"},"menu",-1),ml("span",{class:"iconSet"},"close",-1)])])}const $g=k(Tg,[["render",Dg]]),Ig={name:"MainMenu",components:{SoylentLink:ct},data:function(){return{selectedMain:null,items:[],menuContent:[],clickListener:null,selectedMainId:null}},computed:{menuClass:function(){return this.selectedMain===null?"":"--submenu_open"},isMenuOpen:function(){return this.$store.getters.isMenuOpen}},methods:{selectMain:function(e){if(this.selectedMainId===e.id){this.closeMenuAction();return}
2if(e.url!==""&&e.url!=="#"){this.selectedMain=null,this.selectedMainId=null,this.$store.dispatch("closeMenu"),this.$router.push(e.url),this.$store.dispatch("closeSubMenu");return}e.items&&e.items.length>0&&(this.selectedMain=e,this.selectedMainId=e.id,this.$store.dispatch("setSubMenuOpen"),this.addClickListener())},closeMenu:function(){this.closeMenuAction()},closeMenuAction(){this.selectedMain=null,this.selectedMainId=null,this.$store.dispatch("closeMenu"),this.$store.dispatch("closeSubMenu")},closeSubMenu:function(){this.selectedMain=null,this.selectedMainId=null,this.$store.dispatch("closeSubMenu")},addClickListener(){this.clickListener=e=>{!e.target.closest(".menu__wrapper__inner")&&!e.target.closest(".menu__primary")&&this.closeSubMenu()},document.addEventListener("click",this.clickListener,!0)},removeClickListener(){document.removeEventListener("click",this.clickListener,!0),this.clickListener=null}},mounted(){this.items=window.soylent_menus?window.soylent_menus.primary||[]:""},beforeUnmount(){this.removeClickListener()},watch:{$route(e,t){this.closeMenu()}}},gi=window.Vue.renderList,Us=window.Vue.Fragment,$e=window.Vue.openBlock,Fe=window.Vue.createElementBlock,fn=window.Vue.toDisplayString,fl=window.Vue.createCommentVNode,yi=window.Vue.createTextVNode,Ng=window.Vue.resolveComponent,vi=window.Vue.withCtx,wl=window.Vue.createBlock,Ao=window.Vue.normalizeClass,Hs=window.Vue.createElementVNode,Og=window.Vue.createVNode,Bg=window.Vue.withKeys,Rg=window.Vue.resolveDirective,xg=window.Vue.withDirectives,Lg={class:"menu__primary"},Mg=["onClick","data-label","aria-label"],zg={class:"menu__secondary"},jg={class:"menu__secondary__item --header --text-size-s --text-weight-medium"},Ug={key:1,href:"#",class:Ao("--text-weight-medium")},Hg={key:2,class:"menu__secondary__sub-menu"};function Fg(e,t,n,s,i,r){const o=Ng("soylent-link"),a=Rg("focustrap");return $e(),Fe(Us,null,[Hs("ul",Lg,[($e(!0),Fe(Us,null,gi(e.items,l=>($e(),Fe("li",{key:l.id,class:Ao(["--text-size-m","menu__primary__item",l.items?"--has-children":"",e.selectedMain!==null&&l.id===e.selectedMain.id?"--active":"",l.classes])},[l.items?($e(),Fe("button",{key:0,onClick:c=>r.selectMain(l),class:"menu__primary__item__label","data-label":l.label,"aria-label":"Untermenu von "+l.label+" öffnen"},fn(l.label),9,Mg)):($e(),wl(o,{key:1,url:l.url,"data-label":l.label,class:"menu__primary__item__label"},{default:vi(()=>[yi(fn(l.label),1)]),_:2},1032,["url","data-label"]))],2))),128))]),e.selectedMain?xg(($e(),Fe("div",{key:0,class:"menu__wrapper__inner",onKeydown:t[1]||(t[1]=Bg((...l)=>r.closeSubMenu&&r.closeSubMenu(...l),["esc"])),role:"dialog"},[Hs("ul",zg,[Hs("li",jg,[Hs("button",{onClick:t[0]||(t[0]=(...l)=>r.closeSubMenu&&r.closeSubMenu(...l))},fn(e.selectedMain.label),1)]),($e(!0),Fe(Us,null,gi(e.selectedMain.items,l=>($e(),Fe("li",{key:"submenu_second_level"+l.id,class:Ao(["menu__secondary__item",l.items?"--has-children":""])},[!l.url!=="#"?($e(),wl(o,{key:0,url:l.url,"data-label":l.label},{default:vi(()=>[yi(fn(l.label),1)]),_:2},1032,["url","data-label"])):($e(),Fe("a",Ug,fn(l.label),1)),l.items?($e(),Fe("ul",Hg,[($e(!0),Fe(Us,null,gi(l.items,c=>($e(),Fe("li",{class:"menu__secondary__item",key:c.url},[Og(o,{url:c.url,"data-label":c.label,class:""},{default:vi(()=>[yi(fn(c.label),1)]),_:2},1032,["url","data-label"])]))),128))])):fl("",!0)],2))),128))])],32)),[[a]]):fl("",!0)],64)}const gl=k(Ig,[["render",Fg]]),Gg={name:"HeaderTools",components:{SoylentLink:ct},computed:{}},Yg=window.Vue.openBlock,Wg=window.Vue.createElementBlock,Kg={class:"header-tools"};function qg(e,t,n,s,i,r){return Yg(),Wg("div",Kg)}const yl=k(Gg,[["render",qg]]),Jg={name:"AppHeaderLogo",data:function(){return{homeUrl:window.soylent_settings.home_url,title:window.soylent_settings.title,headerLogo:window.soylent_settings.header_logo}},props:{forceImage:{type:Boolean,default:!0}},methods:{scrollToTop(){window.scrollTo(0,0)}}},vl=window.Vue.createElementVNode,Qg=window.Vue.resolveComponent,Zg=window.Vue.withCtx,Xg=window.Vue.openBlock,ey=window.Vue.createBlock,ty=["src","alt"];function ny(e,t,n,s,i,r){const o=Qg("router-link");return Xg(),ey(o,{onClick:r.scrollToTop,class:"logo",href:e.homeUrl,to:e.$routerLink(e.homeUrl),title:e.title,"aria-label":e.title+": Zur Startseite"},{default:Zg(()=>[vl("picture",null,[vl("img",{src:e.headerLogo,alt:e.title},null,8,ty)])]),_:1},8,["onClick","href","to","title","aria-label"])}const uu=k(Jg,[["render",ny]]),sy="AppHeaderIdentifier",ry="AppFooterIdentifier",iy="AppPlayerCardIdentifier",oy="AppPlayerBarIdentifier",ay="AppPlayerDrawerIdentifier",ly="AppHeaderLogo",bl="modalComponentdentifier",cy={computed:{headerLogoComponent:function(){return Ee.getByName(ly,uu)}}},dy={name:"AppHeader",components:{AppHeaderLogo:uu,HeaderTools:yl,MainMenuSub:lu,MainMenu:gl,SocialShortcuts:du,MenuSwitch:$g},mixins:[cy],data:function(){return{width:null}},computed:{isDesktop(){return this.width>1024},isMenuOpen:function(){return this.$store.getters.isMenuOpen},headerToolsComponent:function(){return Ee.getByName("headerTools",yl)},mainMenuComponent:function(){return Ee.getByName("mainMenu",gl)}},methods:{toggleMenu:function(){this.$store.dispatch("toggleMenu")},closeMenu(){this.$store.dispatch("closeMenu")},toggleSearch:function(){document.querySelector("body").style.overflow="hidden",this.$store.dispatch("toggleSearch")},onResize(e){this.width=window.innerWidth}},mounted(){const e=document.getElementById("masthead");e&&this.$store.dispatch("setHeaderHeight",e.getBoundingClientRect().height),window.addEventListener("resize",this.onResize),this.onResize()},updated(){},destroyed(){window.removeEventListener("resize",this.onResize)}}
2,El=window.Vue.resolveComponent,Oe=window.Vue.openBlock,At=window.Vue.createBlock,bi=window.Vue.createCommentVNode,Wn=window.Vue.resolveDynamicComponent,wn=window.Vue.createElementVNode,Fs=window.Vue.createElementBlock,kl=window.Vue.withKeys,uy=window.Vue.createVNode,hy=window.Vue.vShow,py=window.Vue.resolveDirective,_y=window.Vue.withDirectives,my=window.Vue.Transition,fy=window.Vue.withCtx,wy=window.Vue.Fragment,gy={class:"header-banner"},yy={class:"header-banner__logo-container"},vy={key:1,class:"header-tools-wrapper"},by={key:0,class:"menu__wrapper"},Ey={class:"header-tools-wrapper"};function ky(e,t,n,s,i,r){const o=El("SocialShortcuts"),a=El("MenuSwitch"),l=py("focustrap");return Oe(),Fs(wy,null,[wn("header",{id:"masthead",class:"site-header",role:"banner",onKeydown:t[1]||(t[1]=kl((...c)=>r.closeMenu&&r.closeMenu(...c),["esc"]))},[wn("div",gy,[r.isDesktop?(Oe(),At(o,{key:0})):bi("",!0),wn("div",yy,[(Oe(),At(Wn(e.headerLogoComponent)))]),r.isDesktop?(Oe(),Fs("div",vy,[(Oe(),At(Wn(r.headerToolsComponent))),wn("button",{class:"search-button iconSet",onClick:t[0]||(t[0]=(...c)=>r.toggleSearch&&r.toggleSearch(...c)),title:"Suche","aria-label":"Suche anzeigen"}," search ")])):bi("",!0),r.isDesktop?bi("",!0):(Oe(),At(a,{key:2}))])],32),r.isDesktop?(Oe(),Fs("div",by,[(Oe(),At(Wn(r.mainMenuComponent)))])):(Oe(),At(my,{key:1,name:"menu-slide"},{default:fy(()=>[_y((Oe(),Fs("div",{class:"menu__wrapper",onKeydown:t[3]||(t[3]=kl((...c)=>r.closeMenu&&r.closeMenu(...c),["esc"]))},[uy(o),wn("div",Ey,[(Oe(),At(Wn(r.headerToolsComponent))),wn("button",{class:"search-button iconSet","aria-label":"Suche anzeigen",onClick:t[2]||(t[2]=(...c)=>r.toggleSearch&&r.toggleSearch(...c))},"search")]),(Oe(),At(Wn(r.mainMenuComponent)))],32)),[[hy,r.isMenuOpen],[l,r.isMenuOpen]])]),_:1}))],64)}const Sl=k(dy,[["render",ky]]),Sy={cmms:{backend:{Montag:"Montag",Die
2nstag:"Dienstag",Mittwoch:"Mittwoch",Donnerstag:"Donnerstag",Freitag:"Freitag",Samstag:"Samstag",Sonntag:"Sonntag",Januar:"Januar",Februar:"Februar",März:"März",April:"April",Mai:"Mai",Juni:"Juni",Juli:"Juli",August:"August",September:"September",Oktober:"Oktober",November:"November",Dezember:"Dezember","Bannercode hier einfügen":"Bannercode hier einfügen","Bitte bestätigen":"Bitte bestätigen","Soll dieser Banner wirklich gelöscht werden?":"Soll dieser Banner wirklich gelöscht werden?","Ja, löschen":"Ja, löschen","Nein, abbrechen":"Nein, abbrechen","Der Link wird gerade generiert, bitte warten ...":"Der Link wird gerade generiert, bitte warten ...","Dieser Link kann jetzt veröffentlicht werden und ist":"Dieser Link kann jetzt veröffentlicht werden und ist","Tage gültig.":"Tage gültig.","Ein Fehler ist aufgetreten, bitte versuche es erneut.":"Ein Fehler ist aufgetreten, bitte versuche es erneut.","speichern ...":"speichern ...",Abbrechen:"Abbrechen",Schließen:"Schließen","Tag eingeben und [Enter] drücken ...":"Tag eingeben und [Enter] drücken ...","Meistverwendete Tags":"Meistverwendete Tags","Passend zu deiner Eingabe":"Passend zu deiner Eingabe","Media Datei":"Media Datei","Update erzwingen":"Update erzwingen","Im neuen Tab öffnen":"Im neuen Tab öffnen","Die gewünschten Änderungen werden vorgenommen ...":"Die gewünschten Änderungen werden vorgenommen ...","Alle Änderungen wurden durchgeführt":"Alle Änderungen wurden durchgeführt","es sind dabei Fehler aufgetreten.":"es sind dabei Fehler aufgetreten.","Die Mediathek konnte leider nicht geladen werden, versuche es bitte erneut.":"Die Mediathek konnte leider nicht geladen werden, versuche es bitte erneut.","Die Details konnten nicht geladen werden, bitte versuche es erneut.":"Die Details konnten nicht geladen werden, bitte versuche es erneut.","Möchtest du dieses Medium direkt einfügen, oder es zuerst bearbeiten?":"Möchtest du dieses Bild direkt einfügen, oder es zuerst bearbeiten?",Breite:"Breite","Bearbeiten & einfügen":"Bearbeiten & einfügen",Von:"Von",Überschrift:"Überschrift","Bild wählen":"Bild wählen",Entfernen:"Entfernen",Deaktivieren:"Deaktivieren",Bis:"Bis","Die Daten sind noch nicht erfolgreich übermittelt worden. Soll die Übertragung wirklich abgebrochen werden?":"Die Daten sind noch nicht erfolgreich übermittelt worden. Soll die Übertragung wirklich abgebrochen werden?",Einfügen:"Einfügen","Format auswählen":"Format auswählen","Medium einfügen":"Medium einfügen",Zeichen:"Zeichen",Wörter:"Wörter","In die Zwischenablage kopieren":"In die Zwischenablage kopieren",pool__explorer__c
2onfiguration_missing:"Die Explorer-Konfiguration fehlt, es können keine Beiträge angezeigt werden"}}},hu={cmms:{backend:{Montag:"Monday",Dienstag:"Tuesday",Mittwoch:"Wednesday",Donnerstag:"Thursday",Freitag:"Friday",Samstag:"Saturday",Sonntag:"Sunday",Januar:"Januar",Februar:"Februar",März:"März",April:"April",Mai:"Mai",Juni:"Juni",Juli:"Juli",August:"August",September:"September",Oktober:"Oktober",November:"November",Dezember:"Dezember","Bannercode hier einfügen":"Bannercode hier einfügen","Bitte bestätigen":"Bitte bestätigen","Soll dieser Banner wirklich gelöscht werden?":"Soll dieser Banner wirklich gelöscht werden?","Ja, löschen":"Ja, löschen","Nein, abbrechen":"Nein, abbrechen","Der Link wird gerade generiert, bitte warten ...":"Der Link wird gerade generiert, bitte warten ...","Dieser Link kann jetzt veröffentlicht werden und ist":"Dieser Link kann jetzt veröffentlicht werden und ist","Tage gültig.":"Tage gültig.","Ein Fehler ist aufgetreten, bitte versuche es erneut.":"Ein Fehler ist aufgetreten, bitte versuche es erneut.","speichern ...":"speichern ...",Abbrechen:"Abbrechen",Schließen:"Schließen","Tag eingeben und [Enter] drücken ...":"Tag eingeben und [Enter] drücken ...","Meistverwendete Tags":"Meistverwendete Tags","Passend zu deiner Eingabe":"Passend zu deiner Eingabe","Media Datei":"Media Datei","Update erzwingen":"Update erzwingen","Im neuen Tab öffnen":"Im neuen Tab öffnen","Die gewünschten Änderungen werden vorgenommen ...":"Die gewünschten Änderungen werden vorgenommen ...","Alle Änderungen wurden durchgeführt":"Alle Änderungen wurden durchgeführt","es sind dabei Fehler aufgetreten.":"es sind dabei Fehler aufgetreten.","Die Mediathek konnte leider nicht geladen werden, versuche es bitte erneut.":"Die Mediathek konnte leider nicht geladen werden, versuche es bitte erneut.","Die Details konnten nicht geladen werden, bitte versuche es erneut.":"Die Details konnten nicht geladen werden, bitte versuche es erneut.","Möchtest du dieses Bild direkt einfügen, oder es zuerst bearbeiten?":"Möchtest du dieses Bild direkt einfügen, oder es zuerst bearbeiten?",Breite:"Breite","Bearbeiten & einfügen":"Bearbeiten & einfügen",Von:"Von",Überschrift:"Überschrift","Bild wählen":"Bild wählen",Entfernen:"Entfernen",Deaktivieren:"Deaktivieren",Bis:"Bis","Die Daten sind noch nicht erfolgreich übermittelt worden. Soll die Übertragung wirklich abgebrochen werden?":"Die Daten sind noch nicht erfolgreich übermittelt worden. Soll die Übertragung wirklich abgebrochen werden?",Einfügen:"Einfügen","Format auswählen":"Format auswählen","Medium einfügen":"Medium einfügen",Zeichen:"Chars",Wörter:"Words","In die Zwischenablage kopieren":"Copy to clipboard"}}},Ay={...hu},Ei={de_DE:Sy,en_GB:Ay,en_US:hu};var In,Ps,To,Vs;const Ce=class Ce{static __(t="",n="cmms",...s){var o;const r=Ce.getObjectByNamespace(n)[t]||t;return h(o=Ce,Vs).call(o,r,...s)}static _n(t,n=null,s=0,i="cmms",...r){var l;let o=Ce.getObjectByNamespace(i),a=s===1?t:n;return h(l=Ce,Vs).call(l,(o[a]||"").replace(/%d/g,s)||a.replace(/%d/g,s),...r)}static _j(t){var s;let n=q(s=Ce,Ps,To).call(s);return typeof t!="object"?t:t[n]?t[n]:t[h(Ce,In)]?t[h(Ce,In)]:t[Object.keys(t)[0]]}static getObjectByNamespace(t=""){var i;const n=q(i=Ce,Ps,To).call(i);if(!Ei[n])return{};t=t.split(".");let s=Ei[n];for(;t.length>0;){let r=t.shift();if(!r.length||!Ei[n][r])return{...s};s=s[r]}return{...s}}};In=new WeakMap,Ps=new WeakSet,To=function(){var t;return(t=window.cmmsLocale)!=null?t:h(Ce,In)},Vs=new WeakMap,x(Ce,Ps),x(Ce,In,"de_DE"),x(Ce,Vs,(t="",...n)=>(n.length&&t.match(/(%[\d]+)/g).forEach(s=>{t=t.replace(new RegExp(s),n[parseInt(s.substr(1),10)-1]||"")}),t));let Co=Ce;const Cy={name:"AppSearch",data:function(){var t,n,s;return{searchInput:"",selectedGroup:(s=((n=(t=window.soylent_settings)==null?void 0:t.search)!=null?n:{}).default_group)!=null?s:""}},computed:{isVisible(){return this.$store.getters.isSearchOpen},filterOptions(){var e,t,n;return(n=(t=(e=window.soylent_settings)==null?void 0:e.search)==null?void 0:t.filter_options)!=null?n:[]}},methods:{t:function(e){return Co.__(e,"cmms")},toggleSearch:function(){document.querySelector("body").style.removeProperty("overflow"),this.$store.dispatch("toggleSearch")},submit:function(){const e=this.searchInput.trim();if(!e)return;this.closeMenu(),this.toggleSearch();let t="/suche/".concat(encodeURIComponent(e),"/");this.selectedGroup&&(t+="gruppe/".concat(encodeURIComponent(this.selectedGroup),"/")),window.pll_current_language&&(t="/".concat(window.pll_current_language).concat(t)),this.$router.push(t),this.searchInput=""},closeMenu:function(){this.$store.dispatch("closeMenu")}}},Ty=window.Vue.vModelText,Al=window.Vue.withKeys,Xe=window.Vue.createElementVNode,ki=window.Vue.withDirectives,Cl=window.Vue.toDisplayString,Py=window.Vue.renderList,Vy=window.Vue.Fragment,Kn=window.Vue.openBlock,Gs=window.Vue.createElementBlock,Dy=window.Vue.vModelRadio,$y=window.Vue.normalizeClass,Tl=window.Vue.createCommentVNode,Pl=window.Vue.withModifiers,Iy=window.Vue.resolveDirective,Ny=window.Vue.Transition,Oy=window.Vue.withCtx,By=window.Vue.createBlock,Ry={class:"search-box-wrapper"},xy={class:"search-box",ref:"search"},Ly={class:"input-wrapper"},My=["placeholder"],zy={key:0,class:"search-box__filter"},jy={class:"search-box__filter__header"},Uy={class:"search-box__filter__group"},Hy=["value"],Fy={class:"search-box__filter__group__item__text"};function Gy(e,t,n,s,i,r){const o=Iy("focustrap");return Kn(),By(Ny,{name:"fade_fast"},{default:Oy(()=>[r.isVisible?ki((Kn(),Gs("div",{key:0,class:"main-search-form",role:"dialog",onClick:t[5]||(t[5]=Pl((...a)=>r.toggleSearch&&r.toggleSearch(...a),["self"])),onKeydown:t[6]||(t[6]=Al(Pl((...a)=>r.toggleSearch&&r.toggleSearch(...a),["stop"]),["esc"]))},[Xe("div",Ry,[Xe("div",xy,[Xe("div",Ly,[ki(Xe("input",{ref:"searchInput",type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>e.searchInput=a),onKeydown:t[1]||(t[1]=Al((...a)=>r.submit&&r.submit(...a),["enter"])),class:"search-field theme__input",name:"s",autocomplete:"off",placeholder:r.t("Suchen")},null,40,My),[[Ty,e.searchInput]]),Xe("button",{class:"search-submit iconSet",onClick:t[2]||(t[2]=(...a)=>r.submit&&r.submit(...a))},"search")]),r.filterOptions.length?(Kn(),Gs("div",zy,[Xe("span",jy,Cl(r.t("Suchen in"))+":",1),Xe("div",Uy,[(Kn(!0),Gs(Vy,null,Py(r.filterOptions,a=>(Kn(),Gs("label",{key:a.group,class:$y(["search-box__filter__group__item","--"+(a.group||"all")])},[ki(Xe("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>e.selectedGroup=l),class:"search-box__filter__group__item__input",type:"radio",name:"group",value:a.group},null,8,Hy),[[Dy,e.selectedGroup]]),Xe("span",Fy,Cl(a.label),1)],2))),128))])])):Tl("",!0),Xe("button",{class:"close iconSet",onClick:t[4]||(t[4]=(...a)=>r.toggleSearch&&r.toggleSearch(...a))},"close")],512)])],32)),[[o]]):Tl("",!0)]),_:1})}const Yy=k(Cy,[["render",Gy]]),Wy={name:"AppScrollToTop",methods:{scroll(){window.scrollTo(0,0)}}},Ky=window.Vue.createElementVNode,qy=window.Vue.withModifiers,Jy=window.Vue.openBlock,Qy=window.Vue.createElementBlock;function Zy(e,t,n,s,i,r){return Jy(),Qy("div",{class:"to-top",onClick:t[0]||(t[0]=qy((...o)=>r.scroll&&r.scroll(...o),["stop","prevent"]))},[...t[1]||(t[1]=[Ky("span",{class:"icon iconSet"},"expand_less",-1)])])}const Xy=k(Wy,[["render",Zy]]),ev={name:"AppPlayerBase",components:{SoylentLink:ct},computed:{...Ve("player",["channelData","currentShow","currentTrack","playerState","playerMode","currentPodcastTitle","currentChannelData","hasPodcasts","hasChannels"]),showPlayer(){return this.hasChannels||!this.isChannel},currentTrackTitle(){return this.currentTrack?this.currentTrack.title:this.isChannel?"CHANNEL":""},currentTrackCover(){let e=this.currentTrack?this.currentTrack.cover:null;return!e&&this.currentChannelData&&this.currentChannelData.default_cover_id&&this.currentChannelData.default_cover_id!=null&&(e=this.currentChannelData.default_cover_id?window.cmms_thumbs_base+"12
20x120c/".concat(this.currentChannelData.default_cover_id,".webp"):null),e},currentTrackInterpret(){return this.currentTrack&&this.currentTrack.interpret?this.currentTrack.interpret:this.isChannel?this.channelData.label:""},showTitle:function(){return this.playerMode===ie?this.currentPodcastTitle:this.currentShow?this.currentShow.title||"":this.isChannel?"CHANNEL_SHOW":""},isChannel(){return!(this.playerMode===ie||this.playerMode===we)},showExcerpt:function(){return this.currentShow&&this.currentShow.excerpt||null},channelPageUrl(){let e=null;try{e=window.soylent_settings.child_settings.player.channel_page}catch(t){}return e},programPageUrl(){let e=null;try{e=window.soylent_settings.child_settings.player.program_page}catch(t){}return e},songsearchPageUrl(){let e=null;try{e=window.soylent_settings.child_settings.player.songsearch_page}catch(t){}return e},musicPageUrl(){let e=null;try{e=window.soylent_settings.child_settings.player.music_page}catch(t){}return e},musicPageLabel(){let e="Musik";try{e=window.soylent_settings.child_settings.player.music_label}catch(t){}return e},showMusicPage(){return this.musicPageUrl!==null&&(this.channelPageUrl===null||this.programPageUrl===null||this.songsearchPageUrl===null)}}};function tv(e,t,n,s,i,r){return null}const xo=k(ev,[["render",tv]]),nv={name:"AppPlayerControlPlayPage",props:{buttonClass:{type:String,default:""}},computed:{...Ve("player",["currentShow","currentTrack","playerState","playerMode"]),buttonIcon(){return this.playerState===bt?"pause":this.playerState===Rn?"autorenew":"play_arrow"},buttonClassTool(){return["player__control",this.playerState===bt?"--pause":this.playerState===Rn?"--loading":"--play"]}},methods:{togglePlayer:function(){ze.toggle()}}},sv=window.Vue.toDisplayString,rv=window.Vue.createElementVNode,iv=window.Vue.withModifiers,ov=window.Vue.normalizeClass,av=window.Vue.openBlock,lv=window.Vue.createElementBlock,cv={class:"iconSet"};function dv(e,t,n,s,i,r){return av(),lv("button",{class:ov(r.buttonClassTool),onClick:t[0]||(t[0]=iv((...o)=>r.togglePlayer&&r.togglePlayer(...o),["stop"]))},[rv("span",cv,sv(r.buttonIcon),1)],2)}const Lo=k(nv,[["render",dv]]),uv={name:"AppPlayerControlSkip",components:{},props:{buttonType:{type:String,default:Pn}},computed:{...Ve("player",["playerPodcastHasNext","playerPodcastHasPrev"]),checkDisabledClass(){return this.buttonType===Pn?this.playerPodcastHasNext?"":"--disabled":this.playerPodcastHasPrev?"":"--disabled"}},methods:{...Ue("player",["playerPodcastSkip"]),skip(){this.playerPodcastSkip(this.buttonType)}}},hv=window.Vue.toDisplayString,pv=window.Vue.createElementVNode,_v=window.Vue.normalizeClass,mv=window.Vue.openBlock,fv=window.Vue.createElementBlock,wv={class:"iconSet"};function gv(e,t,n,s,i,r){return mv(),fv("button",{onClick:t[0]||(t[0]=(...o)=>r.skip&&r.skip(...o)),class:_v(["player__control","--skip",r.checkDisabledClass])},[pv("span",wv,hv(n.buttonType),1)],2)}const jr=k(uv,[["render",gv]]),yv={name:"AppPlayerCardControls",components:{AppPlayerControlSkip:jr,AppPlayerControlPlayPage:Lo},computed:{...Ve("player",["playerMode"]),podcastMode(){return ie}}},Vl=window.Vue.resolveComponent,Dl=window.Vue.normalizeClass,Si=window.Vue.openBlock,$l=window.Vue.createBlock,Il=window.Vue.createCommentVNode,vv=window.Vue.createVNode,bv=window.Vue.createElementBlock,Ev={class:"player-card__controls"};function kv(e,t,n,s,i,r){const o=Vl("AppPlayerControlSkip"),a=Vl("AppPlayerControlPlayPage");return Si(),bv("div",Ev,[e.playerMode===r.podcastMode?(Si(),$l(o,{key:0,class:Dl("--text-link"),"button-type":"skip_previous"})):Il("",!0),vv(a),e.playerMode===r.podcastMode?(Si(),$l(o,{key:1,class:Dl("--text-link")})):Il("",!0)])}const Sv=k(yv,[["render",kv]]),Av={data(){return{_raf:null,lastSeekTime:null}},computed:{...Ve("player",["playerState","playerElapsedPercent"]),durationFormated(){return Br(ze.getDuration())},currentTimeFormated(){return Br(ze.getElapsed())},progressStyle:function(){return{width:this.playerState===Vo||this.playerState===Bc?"0":this.playerElapsedPercent+"%"}}},methods:{startDrag(e){ze.pause(),this.getClickPosition(e),this.isMouseEvent(e)?(window.addEventListener("mousemove",this.rafWrapper,!1),window.addEventListener("mouseup",this.detectMouseUp,!1)):(window.addEventListener("touchmove",this.rafWrapper,{passive:!1}),window.addEventListener("touchend",this.detectMouseUp,!1))},rafWrapper(e){e.preventDefault(),!this._raf&&(this._raf=requestAnimationFrame(()=>{this.getClickPosition(e),this._raf=null}))},getClickPosition(e){if(e.clientX||e.touches){const t=this.$refs.player_bar.getBoundingClientRect();let i=((this.isMouseEvent(e)?e.pageX:e.touches[0].clientX)-t.left)/this.$refs.player_bar.offsetWidth;i=Math.min(Math.max(i,0),1);const r=ze.getDuration()*i;(this.lastSeekTime===null||Math.abs(this.lastSeekTime-r)>.05)&&(ze.seek(r),this.lastSeekTime=r)}},isMouseEvent(e){return e.type.includes("mouse")},detectMouseUp(){ze.play(),window.removeEventListener("touchmove",this.rafWrapper,!1),window.removeEventListener("mousemove",this.rafWrapper,!1),window.removeEventListener("mouseup",this.detectMouseUp,!1),window.removeEventListener("touchend",this.detectMouseUp,!1)}}},Cv={name:"AppPlayerProgress",mixins:[Av]},Nl=window.Vue.toDisplayString,qn=window.Vue.createElementVNode,Tv=window.Vue.normalizeStyle,Ol=window.Vue.withModifiers,Pv=window.Vue.openBlock,Vv=window.Vue.createElementBlock,Dv={class:"player-progress"},$v={class:"player-progress__time --current --text-size-xxs"},Iv={class:"player-progress__time --duration --text-size-xxs"};function Nv(e,t,n,s,i,r){return Pv(),Vv("div",Dv,[qn("div",$v,Nl(e.currentTimeFormated),1),qn("div",{onMousedown:t[0]||(t[0]=Ol(o=>e.startDrag(o),["stop"])),onTouchstart:t[1]||(t[1]=Ol(o=>e.startDrag(o),["stop"])),style:{"touch-action":"none"},class:"player-progress__bar",ref:"player_bar"},[t[2]||(t[2]=qn("div",{class:"player-progress__bar__background"},null,-1)),qn("div",{class:"player-progress__bar__current",style:Tv(e.progressStyle)},null,4)],544),qn("div",Iv,Nl(e.durationFormated),1)])}const Ur=k(Cv,[["render",Nv]]),pu={props:{channelId:{type:Number,default:null},audioObject:{type:Object,default:null},podcastObject:{type:Object,default:null},callback:{default:!1}},computed:{...Ve("player",["playerAudioObject","playerChannelId","playerState","playerMode"]),mode(){return this.channelId?ge:this.podcastObject?ie:this.audioObject?we:null},isActive(){switch(this.mode){case ge:return this.channelId===this.playerChannelId;case ie:case we:return this.playerAudioObject&&this.audioObject&&this.playerAudioObject.post_id===this.audioObject.post_id}return!1},isPlaying(){return this.isActive&&this.playerState===bt},isBuffering(){return this.isActive&&this.playerState===Rn}},methods:{...Ue("player",["setPlayerPodcast","setPlayerAudioObject","setPlayerChannelId"]),togglePlayer:function(){if(this.$props.callback)return this.$props.callback();if(!this.isPlaying&&!this.isBuffering)switch(this.mode){case ge:this.setPlayerChannelId({channelId:this.$props.channelId,autoplay:!0});break;case ie:this.setPlayerPodcast({podcastObject:this.$props.podcastObject,audioObject:this.$props.audioObject,autoplay:!0});break;case we:this.setPlayerAudioObject({audioObject:this.$props.audioObject,autoplay:!0});break}else ze.pause();return!1}}},Ov={name:"AppPlayerControlPlay",mixins:[pu],props:{buttonClass:{type:String,default:""}},computed:{buttonIcon(){return this.isPlaying?"pause":this.isBuffering?"autorenew":"play_arrow"},buttonClassTool(){return["player__control",this.isPlaying?"--pause":this.isBuffering?"--loading":"--play"]}}},Bv=window.Vue.toDisplayString,Rv=window.Vue.createElementVNode,xv=window.Vue.withModifiers,Lv=window.Vue.normalizeClass,Mv=window.Vue.openBlock,zv=window.Vue.createElementBlock,jv=["aria-label"],Uv={class:"iconSet"};function Hv(e,t,n,s,i,r){return Mv(),zv("button",{class:Lv(r.buttonClassTool),onClick:t[0]||(t[0]=xv((...o)=>e.togglePlayer&&e.togglePlayer(...o),["stop"])),"aria-label":e.isPlaying?"Pause":"Play"},[Rv("span",Uv,Bv(r.buttonIcon),1)],10,jv)}const cn=k(Ov,[["render",Hv]]),Fv={name:"CroppedText",props:{tag:{type:String,default:"div"},text:{type:String,default:""},lines:{type:[Number,String],default:-1},ellipsis:{type:String,default:"…"},hasMinHeight:{type:Boolean,default:!0}},data:function(){return{blocks:-1,maxHeight:1/0,croppedText:"",fineTuned:!1,timer:null,boundResizeHandler:null}},computed:{textArray:function(){return this.$props.text.trim().split(" ")},maxLines:function(){return parseInt(this.$props.lines,10)||-1}},methods:{updateHeight:function(){let e=1/0;this.getLineHeight()>0&&this.maxLines>0&&(e=this.getLineHeight()*this.maxLines),this.maxHeight=e,this.hasMinHeight&&(this.$refs.el.style.minHeight=this.maxHeight+"px"),this.blocks=0,this.fineTuned=!1,this.style={},this.redrawText()},getHeight:function(){return Math.floor(this.$refs.el.getBoundingClientRect().height)},getLineHeight:function(){let e=0;try{e=parseFloat(document.defaultView.getComputedStyle(this.$refs.el,null).getPropertyValue("line-height"),10)||0}catch(t){console.log("error",t)}return e},isVisible:function(){let e="";try{e=document.defaultView.getComputedStyle(this.$refs.el,null).getPropertyValue("display")}catch(t){}return e!=="none"},redrawText:function(){!this.isVisible()||!this.textArray.length||(this.croppedText=this.textArray.slice(0,this.blocks).join(" ")+" ",this.croppedText.length<this.text.length&&this.croppedText.length>1&&(this.croppedText+=this.$props.ellipsis))},onResize:function(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.updateHeight()},150)}},updated(){!this.fineTuned&&this.getHeight()<=this.maxHeight&&this.blocks<this.textArray.length?(this.blocks++,this.redrawText()):this.getHeight()>this.maxHeight&&this.blocks>0?(this.fineTuned=!0,this.blocks--,this.redrawText()):this.fineTuned=!0},mounted(){this.boundResizeHandler=this.onResize.bind(this),window.addEventListener("resize",this.boundResizeHandler,{passive:!0}),this.updateHeight()},beforeUnmount(){this.timer&&clearTimeout(this.timer),window.removeEventListener("resize",this.boundResizeHandler)}},Gv=window.Vue.toDisplayString,Yv=window.Vue.createTextVNode,Wv=window.Vue.resolveDynamicComponent,Kv=window.Vue.withCtx,qv=window.Vue.openBlock,Jv=window.Vue.createBlock;function Qv(e,t,n,s,i,r){return qv(),Jv(Wv(e.$props.tag),{ref:"el",style:{overflow:"hidden"}},{default:Kv(()=>[Yv(Gv(e.croppedText),1)]),_:1},512)}
2const Un=k(Fv,[["render",Qv]]),Zv={name:"PodcastEpisode",components:{AppPlayerControlPlay:cn,SoylentLink:ct,CroppedText:Un},props:["audioObject","podcastObject","hideMoreButton"],computed:{episodeClasses(){const e=["podcast-episode"];return this.playerAudioObject&&this.$props.audioObject&&this.$props.audioObject.post_id===this.playerAudioObject.post_id&&e.push("--active"),this.downloadUrl&&e.push("--download"),e},downloadUrl(){return!this.podcastObject||!this.podcastObject.download_enabled?"":this.audioObject?this.audioObject.download_url:""},dateFormated(){return this.audioObject&&this.audioObject.date?this.audioObject.date.date_txt:""}},methods:{...Ue("player",["setPlayerDrawerOpen"]),triggerAudio:function(){this.$refs.playButton.togglePlayer()},beforeMoreLinkAction(e){this.setPlayerDrawerOpen(!1),e.stopImmediatePropagation()}}},Bl=window.Vue.resolveComponent,Rl=window.Vue.createVNode,Ys=window.Vue.toDisplayString,ut=window.Vue.createElementVNode,Jn=window.Vue.openBlock,Qn=window.Vue.createElementBlock,Ws=window.Vue.createCommentVNode,Xv=window.Vue.withModifiers,eb=window.Vue.withCtx,tb=window.Vue.normalizeClass,nb={key:0,class:"podcast-episode__entry"},sb={class:"podcast-episode__entry__meta --text-size-s --text-weight-medium"},rb={class:"podcast-episode__entry__meta__date"},ib={class:"podcast-episode__entry__meta__duration"},ob={class:"podcast-episode__entry__title --text-size-m"},ab={key:0,class:"podcast-episode__entry__excerpt --text-size-xs"},lb={key:1,class:"podcast-episode__actions"},cb=["href"];function db(e,t,n,s,i,r){const o=Bl("AppPlayerControlPlay"),a=Bl("soylent-link");return Jn(),Qn("div",{onClick:t[1]||(t[1]=(...l)=>r.triggerAudio&&r.triggerAudio(...l)),class:tb(r.episodeClasses)},[Rl(o,{ref:"playButton","audio-object":n.audioObject,"podcast-object":n.podcastObject},null,8,["audio-object","podcast-object"]),n.audioObject?(Jn(),Qn("div",nb,[ut("span",sb,[ut("span",rb,Ys(r.dateFormated),1),t[2]||(t[2]=ut("span",{class:"podcast-episode__entry__meta__spacer"},"·",-1)),ut("span",ib,Ys(n.audioObject.duration)+" min",1)]),ut("span",ob,Ys(n.audioObject.title),1),n.audioObject.excerpt!==" "&&n.audioObject.excerpt!==""?(Jn(),Qn("span",ab,Ys(n.audioObject.excerpt),1)):Ws("",!0)])):Ws("",!0),n.hideMoreButton!==!0?(Jn(),Qn("div",lb,[r.downloadUrl?(Jn(),Qn("a",{key:0,href:r.downloadUrl,class:"button --text-link --download",download:"",onClick:t[0]||(t[0]=Xv(()=>{},["stop"])),title:"Download"},[...t[3]||(t[3]=[ut("span",{class:"button__label"},[ut("span",{class:"button__text --text-size-xs"},"Download")],-1)])],8,cb)):Ws("",!0),Rl(a,{url:n.audioObject.url,class:"button --text-link --more",onClick:r.beforeMoreLinkAction,title:"Zu den Episodendetails"},{default:eb(()=>[...t[4]||(t[4]=[ut("span",{class:"button__label"},[ut("span",{class:"button__text --text-size-xs"},"Mehr")],-1)])]),_:1},8,["url","onClick"])])):Ws("",!0)],2)}const Es=k(Zv,[["render",db]]);class ub{constructor(){this.items={},this.observer=new IntersectionObserver(this.observerCallback.bind(this),{threshold:.3})}add(t,n,s){this.items[t]={el:n,cb:s},n.setAttribute("data-uid",t),this.observer.observe(n)}observerCallback(t,n){t.forEach(s=>{if(s.intersectionRatio>0){let i=s.target.getAttribute("data-uid");i in this.items&&(this.items[i].cb(),n.unobserve(s.target),this.remove(i))}})}remove(t){this.items[t]&&delete this.items[t]}}let br;window.cmmsScrollWatcher?br=window.cmmsScrollWatcher:(br=new ub,window.cmmsScrollWatcher=br);const xl=br;class hb{constructor(t,n){this.selectors=t,this.params=n,this.options=this.getOptions(),this.items=this.getItems(),this.lightBox=null,t.forEach((s,i)=>{let r;n.type==="gallery"?(r=s,r=s):r=s.$el,r.setAttribute("data-pswp-uid",i),r.setAttribute("tabindex","0"),r.addEventListener("keydown",o=>{(o.keyCode===13||o.key==="Enter"||o.keyCode===32||o.key===" ")&&(o.preventDefault(),this.options.galleryUID=i,this.open(this.options.galleryUID))}),r.addEventListener("click",()=>{this.options.galleryUID=i,this.open(this.options.galleryUID)})})}getItems(){const t=[];switch(this.params.type){case"picture":t.push({src:this.params.src,width:this.params.size.width,height:this.params.size.height,alt:this.params.desc});break;case"video":case"videolivestream":case"audio":case"audiolivestream":t.push({html:'<div class="pswp-iframe-player
2-wrapper"><div class="pswp-iframe-player">'+this.params.html+"</div></div>"});break;case"gallery":this.params.items.forEach(function(n){t.push({src:n.src,width:n.size.width,height:n.size.height,alt:n.desc})});break}return t}getOptions(){return{}}async open(t){const{default:n}=await T(async()=>{const{default:r}=await import("./photoswipe-lightbox.esm.js");return{default:r}},[]),s={dataSource:this.items,showHideAnimationType:"zoom",pswpModule:()=>T(()=>import("./photoswipe.esm.js"),[])},i=new n(s);i.on("uiRegister",()=>{i.pswp.ui.registerElement({name:"caption",order:9,isButton:!1,appendTo:"root",html:"",onInit:(r,o)=>{i.pswp.on("change",()=>{let l='<div class="pswp__caption__content">'+i.pswp.currSlide.data.alt+"</div>";r.innerHTML=l||""})}}),(!("disableDownload"in this.params)||!this.params.disableDownload)&&i.pswp.ui.registerElement({name:"download-button",isButton:!0,title:"Download",order:9,html:'<span style="display: block; filter: drop-shadow(0px 0px 2px black)"><svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#e8eaed"><g><rect fill="none" height="24" width="24"/></g><g><path d="M18,15v3H6v-3H4v3c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2v-3H18z M17,11l-1.41-1.41L13,12.17V4h-2v8.17L8.41,9.59L7,11l5,5 L17,11z"/></g></svg></span>',onClick:async(r,o,a)=>{const l=a.currSlide.data.src,u=await(await fetch(l)).blob(),d=URL.createObjectURL(u),p=document.createElement("a");p.href=d,p.download=l.split("/").pop(),p.click(),URL.revokeObjectURL(d)}})}),i.init(),i.loadAndOpen(parseInt(t,10))}}const et=[1920,1328,1024,768,425,320],Ll=[480],pb={name:"CmmsResponsiveImage",props:{image:{type:Object,required:!0},fill:{type:Boolean,default:!1},blur:{type:Boolean,default:!1},contain:{type:Boolean,default:!1},hAlign:{type:String,default:"center"},vAlign:{type:String,default:"center"},maxHeight:{type:Number,default:0},imageSizeReference:{type:String,default:"width"},zoom:{type:Boolean,default:!1},withScrollWatcher:{type:Boolean,default:!0},updateVisibility:{type:Boolean,default:!1},fetchPriority:{type:String,default:"auto"}},data(){return{imageIndex:0,loadingMode:"eager",loadingPriority:"auto",uid:null,visible:!1,containerWidth:0,containerHeight:0,containerRatio:0,width:0,height:0,ratio:1,maxWidth:et[et.length-1],responsiveStep:-1,domRendered:!1}},computed:{...Ve(["renderedImages"]),style:function(){const e='background-image: url("'.concat(this.src,'");'),t=0<this.maxHeight?"max-height: ".concat(this.maxHeight,"px;"):"";return e+t},src:function(){if(!this.image)return"";if(this.image.src)return this.image.src;if(this.visible&&!this.fill&&this.domRendered)return this.buildSrc(Math.min(this.image.width,this.maxWidth));if(this.visible&&this.fill&&this.domRendered){let s=et.length-1,i=et[s],r=et[s]/this.ratio;for(;(i<=this.containerWidth||r<=this.containerHeight)&&i<=this.image.width&&r<=this.image.height&&s>=0;)s--,i=et[s],r=et[s]/this.ratio;return this.width=i,this.height=r,this.responsiveStep=s,this.buildSrc(this.width,this.height)}const e=20;let t=this.fill?e:Math.round(this.image.height/(this.image.width/e));return'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+t+'">\n</svg>'},dpr:function(){return Math.ceil(window.devicePixelRatio||1)},alt:function(){let e=[this.image.alt||""];return this.image.copyright&&e.push("© "+this.image.copyright),e.join(" — ")},copyright(){return this.image&&this.image.copyright?this.image.copyright:!1}},methods:{...Ue(["increaseRenderedImages"]),update:function(){const e=this.$el.parentNode;if(!e)return;const t=e.getBoundingClientRect();if(this.containerWidth=t.width,this.containerHeight=t.height,this.containerRatio=this.containerWidth/this.containerHeight,this.image.src)return;let n=et.length-1;for(;n>=0&&this.containerWidth>et[n];)n--;this.maxWidth=et[n],this.responsiveStep=n},buildSrc(e,t){let n;if(this.blur===!0)n="200xeb_20x10/";else if(this.imageSizeReference==="height"){this.height=Ll[Ll.length-1],this.width=Math.round(this.image.width/(this.image.height/this.height));let s=Math.round(this.height*this.dpr);n="x".concat(s,"/")}else{this.width=e,this.height=Math.round(this.image.height/(this.image.width/this.width));let s=Math.round(Number(e)*this.dpr);n="".concat(s,"x/")}return"".concat(window.cmms_thumbs_base).concat(n).concat(this.image.media_id,".webp")},setVisible:function(){this.visible=!0},buildLightBox(){new hb([this],{type:"picture",src:"".concat(window.cmms_thumbs_base,"f:webp/").concat(this.image.media_id,".webp"),desc:this.image.copyright,size:{width:this.image.width,height:this.image.height}})}},beforeMount(){this.imageIndex=this.$store.getters.renderedImages,this.loadingMode=this.withScrollWatcher&&this.imageIndex>0?"lazy":"eager",this.loadingPriority=this.imageIndex>2?this.fetchPriority:"high",this.$store.dispatch("increaseRenderedImages")},mounted(){this.ratio=this.image.width/this.image.height,(this.image.src||!this.$props.fill)&&(this.width=this.image.width,this.height=this.image.height),window.addEventListener("resize",this.update,{passive:!0}),this.$nextTick(()=>{this.domRendered=!0,this.update()}),this.withScrollWatcher&&this.fill?(this.uid=kd(),xl.add(this.uid,this.$el,this.setVisible)):this.setVisible(),this.zoom&&this.buildLightBox()},watch:{updateVisibility:function(e){e===!0&&this.setVisible()}},beforeUnmount(){window.removeEventListener("resize",this.update),xl.remove(this.uid)}},_b=window.Vue.normalizeStyle,mb=window.Vue.createElementVNode,fb=window.Vue.toDisplayString,Ai=window.Vue.openBlock,Ci=window.Vue.createElementBlock,Ml=window.Vue.createCommentVNode,wb=window.Vue.normalizeClass,gb={key:0,class:"responsive-image-copyright"},yb=["width","height","loading","src","alt","fetchPriority"];function vb(e,t,n,s,i,r){return n.fill&&!n.zoom?(Ai(),Ci("span",{key:0,class:wb(["responsive-image",n.fill?"-fill":"",n.contain?"-contain":"",i.visible?"--visible":"","_align-img-".concat(n.hAlign,"-").concat(n.vAlign)])},[mb("span",{style:_b(r.style)},null,4),r.copyright?(Ai(),Ci("span",gb,fb(r.copyright),1)):Ml("",!0)],2)):n.fill?Ml("",!0):(Ai(),Ci("img",{key:1,width:i.width,height:i.height,loading:i.loadingMode,src:r.src,alt:r.alt,fetchPriority:i.loadingPriority},null,8,yb))}const De=k(pb,[["render",vb]]),bb={name:"AppPlayerCard",components:{CmmsResponsiveImage:De,PodcastEpisode:Es,AppPlayerControlPlay:cn,AppPlayerControlSkip:jr,AppPlayerProgress:Ur,AppPlayerCardControls:Sv},extends:xo,data(){return{isExpanded:!0}},computed:{...Ve("player",["playerDrawerOpen"])},methods:{...Ue("player",["setPlayerDrawerOpen"]),toggleDrawer:function(){this.setPlayerDrawerOpen(!this.playerDrawerOpen)},toggleExpand:function(){this.isExpanded=!this.isExpanded}}}
2,be=window.Vue.createElementVNode,Ti=window.Vue.resolveComponent,zl=window.Vue.withCtx,zt=window.Vue.openBlock,jl=window.Vue.createBlock,jt=window.Vue.createCommentVNode,Zn=window.Vue.createElementBlock,_u=window.Vue.normalizeClass,Ks=window.Vue.toDisplayString,Ul=window.Vue.createVNode,Eb={class:_u(["player-card__toolbar"])},kb={class:"player-card__media"},Sb=["src","alt"],Ab={class:"player-card__media__track"},Cb={class:"player-card__media__track__interpret --text-size-xs --text-weight-medium"},Tb=["title"],Pb={key:0},Vb={key:1,class:"player-card__entry"},Db=["title"],$b=["title"];function Ib(e,t,n,s,i,r){const o=Ti("soylent-link"),a=Ti("AppPlayerCardControls"),l=Ti("AppPlayerProgress");return e.showPlayer?(zt(),Zn("div",{key:0,class:_u(["player-card",i.isExpanded?"":"--resized",e.playerDrawerOpen?"--drawer_open":""])},[be("div",Eb,[be("button",{onClick:t[0]||(t[0]=(...c)=>r.toggleExpand&&r.toggleExpand(...c)),class:"player-card__toolbar__tool --expand"},[...t[2]||(t[2]=[be("span",{class:"iconSet"},"expand_more",-1)])]),e.songsearchPageUrl?(zt(),jl(o,{key:0,url:e.songsearchPageUrl,class:"player-card__toolbar__tool",title:"Songsuche"},{default:zl(()=>[...t[3]||(t[3]=[be("span",{class:"iconSet"},"manage_search",-1)])]),_:1},8,["url"])):jt("",!0),e.programPageUrl?(zt(),jl(o,{key:1,url:e.programPageUrl,class:"player-card__toolbar__tool",title:"Programm"},{default:zl(()=>[...t[4]||(t[4]=[be("span",{class:"iconSet"},"today",-1)])]),_:1},8,["url"])):jt("",!0),e.hasChannels||e.hasPodcasts?(zt(),Zn("button",{key:2,onClick:t[1]||(t[1]=(...c)=>r.toggleDrawer&&r.toggleDrawer(...c)),class:"player-card__toolbar__tool player__drawer-switch",title:"Mehr"},[...t[5]||(t[5]=[be("div",{class:"iconSet"},"library_music",-1),be("div",{class:"iconSet"},"close",-1)])])):jt("",!0)]),be("div",kb,[e.currentTrackCover?(zt(),Zn("img",{key:0,class:"player-card__media__cover",src:e.currentTrackCover,alt:e.currentTrackTitle},null,8,Sb)):jt("",!0),be("div",Ab,[be("div",Cb,Ks(e.currentTrackInterpret),1),be("div",{class:"player-card__media__track__title --text-size-xxs",title:e.currentTrackTitle},Ks(e.currentTrackTitle),9,Tb),Ul(a)])]),e.isChannel?jt("",!0):(zt(),Zn("div",Pb,[Ul(l)])),e.isChannel?(zt(),Zn("div",Vb,[t[6]||(t[6]=be("span",{class:"player-card__entry__onair"},[be("span",{class:"iconSet"},"equalizer"),be("span",{class:"player-card__entry__onair__label --text-size-xxs"},"on Air")],-1)),be("span",{class:"player-card__entry__show --text-size-xxs --text-weight-medium",title:e.showTitle},Ks(e.showTitle),9,Db),be("span",{class:"player-card__entry__host --text-size-xxs",title:e.showExcerpt},Ks(e.showExcerpt),9,$b)])):jt("",!0)],2)):jt("",!0)}const Hl=k(bb,[["render",Ib]]);let an={fullsizePlayer:!1,playerBarShowInfo:!1};const Nb={name:"AppPlayerBar",components:{AppPlayerControlPlay:cn,AppPlayerControlSkip:jr,AppPlayerProgress:Ur,PodcastEpisode:Es,AppPlayerControlPlayPage:Lo,CmmsResponsiveImage:De},extends:xo,data(){return{activeTab:"podcast",currentPodcast:null,touchStartX:0,touchStartY:0,touchStartTime:null}},computed:{...Ve("player",["playerDrawerOpen","playerPodcastObject","playerMode","podcastData","currentChannelId","currentChannelData","channels"]),hasFullscreenPlayer(){return an.fullsizePlayer},hasPlayerBarShowInfo(){return an.playerBarShowInfo},audioMode(){return we},podcastMode(){return ie},channelMode(){return ge},podcastTitle(){return this.currentPodcast?this.currentPodcast.title:""},podcastImage(){return this.currentPodcast?this.currentPodcast.image:null},newestPodcastAudioObject(){if(this.currentPodcast)return this.currentPodcast.episodes.length>0?this.currentPodcast.episodes[0]:null},currentPodcastAudioObject(){if(this.currentPodcast)return this.currentPodcast.episodes.length>0?this.currentPodcast.episodes[0]:null},podcastEpisodes(){return this.currentPodcast?this.currentPodcast.episodes.slice(1):[]},channelCount(){return Object.keys(this.channels).length},sortedChannels(){let e=JSON.parse(JSON.stringify(this.channels));return Object.keys(e).forEach(t=>{e[t].key=t}),e=Object.values(e),e.forEach((t,n)=>{t.index=n}),e=e.sort((t,n)=>t.order-n.order),e},podcastEpisodeComponent(){return Ee.getByName("podcastEpisode",Es)},channelId(){return this.getDefaultChannelId},channelData(){return this.currentChannelData},channelTitle(){return this.channelData?this.channelData.label:""},showTitle:function(){return this.showData&&this.showData.title||null},showData:function(){return this.channelData&&this.channelData.show||null},showExcerpt:function(){return this.showData&&this.showData.excerpt||null},showImage:function(){return this.showData&&this.showData.thumb_id>0?this.showData.image_thumb:null}},methods:{...Ue("player",["loadPodcast","setPlayerChannelId","playerPodcastSkip","setPlayerDrawerOpen"]),toggleDrawer:function(){this.setPlayerDrawerOpen(!this.playerDrawerOpen),this.playerDrawerOpen===!0&&(this.playerPodcastObject?(this.activeTab="podcast",this.getPodcastData()):this.activeTab="channel",this.$store.dispatch("closeMenu"))},selectDrawerTab:function(e){this.activeTab=e},async getPodcastData(){const e=this.podcastData(this.playerPodcastObject.post_id);e?this.currentPodcast=e:this.currentPodcast=await this.loadPodcast(this.playerPodcastObject.api_url)},triggerAudio:function(e,t){e.sources&&this.setPlayerChannelId({channelId:t,auto
2play:!0})},getCover:function(e,t){return window.cmms_thumbs_base+"".concat(t,"x").concat(t,"c/").concat(e,".webp")},touchStartEvent(e){this.touchStartX=e.changedTouches[0].pageX,this.touchStartY=e.changedTouches[0].pageY,this.touchStartTime=new Date},touchEndEvent(e){const i=e.changedTouches[0].pageX,r=e.changedTouches[0].pageY,o=new Date;let a=i-this.touchStartX,l=r-this.touchStartY;o-this.touchStartTime<700&&(Math.abs(a)>35&&Math.abs(l)<35?a<0?this.playerPodcastSkip(Pn):this.playerPodcastSkip(Ah):this.toggleDrawer())}},beforeUnmount(){this.playerDrawerOpen&&this.setPlayerDrawerOpen(!1)}},Be=window.Vue.openBlock,tt=window.Vue.createElementBlock,ht=window.Vue.createCommentVNode,gn=window.Vue.createElementVNode,Pi=window.Vue.resolveComponent,Fl=window.Vue.createBlock,Xn=window.Vue.toDisplayString,Vi=window.Vue.Transition,Di=window.Vue.withCtx,qs=window.Vue.createVNode,Gl=window.Vue.normalizeClass,Ob={class:"player-bar__player"},Bb={class:"player-bar__media"},Rb=["src","alt"],xb={class:"player-bar__track__interpret --text-size-xs --text-weight-medium"},Lb=["title"],Mb={key:0,class:"player-bar__showinfo-text"},zb={key:0,class:"player-bar__showinfo-text__title"},jb={key:1,class:"player-bar__showinfo-text__excerpt"},Ub={key:2,class:"player-bar__showinfo-text__channel"},Hb={key:1,class:"player-bar__showinfo-image"},Fb={key:0,class:"iconSet"},Gb={key:1,class:"iconSet"};function Yb(e,t,n,s,i,r){const o=Pi("AppPlayerProgress"),a=Pi("AppPlayerControlPlayPage"),l=Pi("CmmsResponsiveImage");return Be(),Fl(Vi,{name:"fade",appear:""},{default:Di(()=>[e.showPlayer?(Be(),tt("div",{key:0,class:Gl(["player-bar",e.playerDrawerOpen?"--drawer_open":""])},[gn("div",Ob,[gn("div",Bb,[e.currentTrackCover?(Be(),tt("img",{key:0,class:"player-bar__media__cover",src:e.currentTrackCover,alt:e.currentTrackTitle},null,8,Rb)):ht("",!0)]),e.playerMode===r.podcastMode||e.playerMode===r.audioMode?(Be(),Fl(o,{key:0})):ht("",!0),qs(Vi,{name:"fade",appear:""},{default:Di(()=>[gn("div",{class:"player-bar__track",onTouchstart:t[0]||(t[0]=(...c)=>r.touchStartEvent&&r.touchStartEvent(...c)),onTouchend:t[1]||(t[1]=(...c)=>r.touchEndEvent&&r.touchEndEvent(...c)),style:{"transition-delay":"1s"}},[gn("div",xb,Xn(e.currentTrackInterpret),1),gn("div",{class:"player-bar__track__title --text-size-xxs",title:e.currentTrackTitle},Xn(e.currentTrackTitle),9,Lb)],32)]),_:1}),qs(a,{class:Gl("--text-link")}),qs(Vi,{name:"fade",appear:""},{default:Di(()=>[r.hasPlayerBarShowInfo?(Be(),tt("div",Mb,[r.showTitle?(Be(),tt("span",zb,Xn(r.showTitle),1)):ht("",!0),r.showExcerpt?(Be(),tt("span",jb,Xn(r.showExcerpt),1)):ht("",!0),r.channelTitle&&e.playerMode===r.channelMode?(Be(),tt("span",Ub,Xn(r.channelTitle),1)):ht("",!0)])):ht("",!0)]),_:1}),r.hasPlayerBarShowInfo&&r.showImage?(Be(),tt("div",Hb,[qs(l,{image:r.showImage},null,8,["image"])])):ht("",!0),e.hasChannels||e.hasPodcasts?(Be(),tt("button",{key:2,onClick:t[2]||(t[2]=(...c)=>r.toggleDrawer&&r.toggleDrawer(...c)),class:"player__drawer-switch"},[r.hasFullscreenPlayer?(Be(),tt("span",Gb,"queue_music")):(Be(),tt("span",Fb,"library_music")),t[3]||(t[3]=gn("span",{class:"iconSet"},"close",-1))])):ht("",!0)])],2)):ht("",!0)]),_:1})}const Yl=k(Nb,[["render",Yb]]),Wb={name:"AppPlayerDrawerPodcastShortcut",components:{CroppedText:Un,CmmsResponsiveImage:De,SoylentLink:ct},mixins:[pu],props:{podcastData:{type:Object,default:null},startPodcast:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!1}},computed:{...Ve("player",["playerPodcastObject","playerState"]),podcastUrl(){return this.podcastData?tf(this.podcastData.url):""},description(){return this.podcastData.description?L_(this.podcastData.description):null},isSelected(){return this.playerPodcastObject?this.playerPodcastObject.post_id===this.podcastData.post_id:!1},isPlaying(){return this.isSelected&&this.playerState===bt}},methods:{...Ue("player",["setPlayerPodcast","setPlayerDrawerOpen"]),setPodcast(){this.podcastData.episodes_amount>0&&(this.startPodcast?this.setPlayerPodcast({podcastObject:this.podcastData,audioObject:this.episode,autoplay:!0}):this.$emit("podcastSelected",this.podcastData))},gotoPodcast(){this.setPlayerDrawerOpen(!1),this.$router.push(this.podcastUrl)}}}
2,$i=window.Vue.resolveComponent,pt=window.Vue.openBlock,Js=window.Vue.createBlock,Ct=window.Vue.createCommentVNode,_t=window.Vue.createElementVNode,es=window.Vue.createElementBlock,Kb=window.Vue.normalizeClass,Wl=window.Vue.toDisplayString,Kl=window.Vue.withCtx,qb=window.Vue.withModifiers,Jb={class:"player__drawer__podcast__item__cover-wrapper"},Qb={key:1,class:"player__drawer__podcast__item__tool --loading"},Zb={class:"player__drawer__podcast__item__meta"},Xb={key:0,class:"player__drawer__podcast__item__title --text-size-l"},eE={key:1,class:"player__drawer__podcast__item__episodes"};function tE(e,t,n,s,i,r){const o=$i("CmmsResponsiveImage"),a=$i("CroppedText"),l=$i("soylent-link");return n.podcastData?(pt(),es("div",{key:0,class:"player__drawer__podcast__item",onClick:t[0]||(t[0]=qb((...c)=>r.setPodcast&&r.setPodcast(...c),["stop"]))},[_t("div",Jb,[n.podcastData.image?(pt(),Js(o,{key:0,class:"player__drawer__podcast__item__cover",image:n.podcastData.image},null,8,["image"])):Ct("",!0),n.isLoading?(pt(),es("div",Qb,[...t[1]||(t[1]=[_t("span",{class:"iconSet"},"refresh",-1)])])):r.isSelected?(pt(),es("div",{key:2,class:Kb(["player__drawer__podcast__item__tool --equalizer",r.isPlaying?"--is-playing":""])},[...t[2]||(t[2]=[_t("span",null,null,-1),_t("span",null,null,-1),_t("span",null,null,-1)])],2)):Ct("",!0)]),_t("div",Zb,[n.podcastData.title?(pt(),es("h4",Xb,Wl(n.podcastData.title),1)):Ct("",!0),n.podcastData.episodes_amount>0?(pt(),es("div",eE,Wl(n.podcastData.episodes_amount)+" Folgen ",1)):Ct("",!0),r.description?(pt(),Js(a,{key:2,class:"player__drawer__podcast__item__description",tag:"span",lines:2,text:r.description},null,8,["text"])):Ct("",!0),n.podcastData.episodes_amount>0&&n.startPodcast?(pt(),Js(l,{key:3,callback:r.gotoPodcast,class:"player__drawer__podcast__item__link button --text-link --text-size-xs",title:"Zu den Podcastdetails"},{default:Kl(()=>[...t[3]||(t[3]=[_t("span",{class:"button__label"},[_t("span",{class:"button__text --text-size-xs"},"Zum Podcast")],-1)])]),_:1},8,["callback"])):Ct("",!0),n.podcastData.episodes_amount>0&&!n.startPodcast?(pt(),Js(l,{key:4,callback:r.setPodcast,class:"player__drawer__podcast__item__link button --text-link --text-size-xs",title:"Zur Episodenauswahl"},{default:Kl(()=>[...t[4]||(t[4]=[_t("span",{class:"button__icon iconSet"},"east",-1)])]),_:1},8,["callback"])):Ct("",!0)])])):Ct("",!0)}const nE=k(Wb,[["render",tE]]),sE="slider_type_tv",rE="slider_type_radio",iE={components:{},props:{breakpoints:{type:Object,default:{0:{slidesPerView:1.5},425:{slidesPerView:2.5},768:{slidesPerView:4.5},1024:{slidesPerView:5.5},1200:{slidesPerView:6.5}}},free:{type:Boolean,default:null},fullsize:{type:Boolean,default:null},activeIndex:{type:Number,default:null},centeredSlides:{type:Boolean,default:!1},a11y:{type:Boolean,default:!0},autoplay:{type:Boolean,default:null},autoplayinterval:{type:Number,default:null},autoplayInterval:{type:Number,default:null},spaceBetween:{type:Number,default:null},swiperInnerClassNames:{type:Array,default:[""]},defaultHeight:{type:Number,default:500},loop:{type:Boolean,default:!1},showBullets:{type:Boolean,default:!1}},data:function(){return{rendered:!1,modules:[Du,$u,Iu,Nu,Ou,Bu],swiperElement:null,nextEnabled:!1,prevEnabled:!1,hideNavigation:!1,defaultAutoplayInterval:3}},computed:{optionBreakpoints(){return this.free===!0?null:this.fullsize?!1:this.breakpoints},optionFree(){return this.free?{enabled:!0,sticky:!0}:!1},optionSlidesPerView(){return this.free===!0?"auto":1},optionHeight(){return this.defaultHeight},optionLoop(){return this.loop},optionA11y(){return this.a11y},optionAutoPlayInterval(){return this.autoplayInterval?this.autoplayInterval:this.autoplayinterval?this.autoplayinterval:this.defaultAutoplayInterval},optionAutoplay(){return this.autoplay?{delay:this.optionAutoPlayInterval*1e3,disableOnInteraction:!1}:!1},optionSpaceBetween(){return this.spaceBetween===null?16:this.spaceBetween},getPagination(){if(this.showBullets===!0){let e={el:this.$refs.pagination_container,clickable:!0,type:"bullets"};return this.sliderType===rE&&(e.bulletClass="swiper__controls__pagination__bullet",e.bulletActiveClass="--active"),e}else return!1},currentIndex(){this.swiperElement.realIndex}},methods:{initSwiper(e){this.swiperElement=e.detail[0].el.swiper,this.updateButtons(),this.activeIndex&&(this.loop===!0?this.swiperElement.slideToLoop(this.activeIndex,0):this.swiperElement.slideTo(this.activeIndex,0))},onDefaultEvent(){this.updateButtons()},onOberverUpdate(){this.updateButtons()},onSlideChange(e){if(!this.swiperElement)return;let t=1;this.breakpoints&&(t=this.breakpoints[this.swiperElement.currentBreakpoint]?this.breakpoints[this.swiperElement.currentBreakpoint].slidesPerView:1),this.$emit("slideChange",Math.
2ceil(this.swiperElement.realIndex),t),this.updateButtons()},onAutoplayTimeLeft(e,t,n){if(this.swiperElement){let s=Math.ceil((this.optionAutoPlayInterval*1e3-this.swiperElement.autoplay.timeLeft)/(this.optionAutoPlayInterval*1e3)*100);this.$emit("autoplayTimeUpdate",s)}},prev:function(){this.swiperElement!==null&&this.swiperElement.slidePrev()},next:function(){this.swiperElement!==null&&this.swiperElement.slideNext()},swipeTo(e){this.swiperElement.slideTo(e),this.loop===!0?this.swiperElement.slideToLoop(e):this.swiperElement.slideTo(e)},updateButtons(){if(this.swiperElement==null){this.prevEnabled=!1,this.nextEnabled=!1;return}this.nextEnabled=!this.swiperElement.isEnd,this.prevEnabled=!this.swiperElement.isBeginning,this.loop===!0&&(this.nextEnabled=!0,this.prevEnabled=!0),this.hideNavigation=this.swiperElement.isEnd&&this.swiperElement.isBeginning},restoreSlideFocus(e){e.slides.forEach(n=>{n.removeAttribute("tabindex"),n.querySelectorAll("a, button, input, textarea, select, [tabindex]").forEach(s=>{s.getAttribute("tabindex")==="-1"&&s.setAttribute("tabindex","0")})})},makeSlidesFocusable(e){e.slides.forEach(t=>{t.setAttribute("tabindex","0")})},handleKeyboardNavigation(e){["Tab"].includes(e.key)&&this.swiperElement.autoplay&&this.swiperElement.autoplay.running&&this.swiperElement.autoplay.stop()}},watch:{activeIndex:function(e){this.loop===!0?this.swiperElement.slideToLoop(this.activeIndex):this.swiperElement.slideTo(this.activeIndex)}},beforeMount(){this.updateButtons()},mounted(){this.rendered=!0,document.addEventListener("keydown",this.handleKeyboardNavigation)},unmounted(){document.removeEventListener("keydown",this.handleKeyboardNavigation)}},oE={name:"SliderWrapper",mixins:[iE],data(){return{sliderType:sE}}},aE=window.Vue.renderSlot,Ii=window.Vue.normalizeClass,Qs=window.Vue.openBlock,Zs=window.Vue.createElementBlock,Ni=window.Vue.createCommentVNode,Xs=window.Vue.createElementVNode,lE=window.Vue.Fragment,cE=["slides-per-view","breakpoints","loop","free-mode","autoplay","height","centeredSlides","space-between","pagination","a11y","modules"],dE={class:"swiper__controls"},uE=["disabled"],hE={class:"swiper__controls__pagination",ref:"pagination_container"},pE=["disabled"];function _E(e,t,n,s,i,r){return Qs(),Zs(lE,null,[e.rendered?(Qs(),Zs("swiper-container",{key:0,ref:"swiperEl","slides-per-view":e.optionSlidesPerView,breakpoints:e.optionBreakpoints,loop:e.optionLoop,"free-mode":e.optionFree,autoplay:e.optionAutoplay,height:e.optionHeight,centeredSlides:e.centeredSlides,"space-between":e.optionSpaceBetween,"watch-overflow":!0,observer:!0,pagination:e.getPagination,observeParents:!0,a11y:e.optionA11y,class:Ii(e.swiperInnerClassNames),noSwipingClass:"vjs-control-bar",onAfterinit:t[0]||(t[0]=(...o)=>e.initSwiper&&e.initSwiper(...o)),onSlidechange:t[1]||(t[1]=(...o)=>e.onSlideChange&&e.onSlideChange(...o)),onAutoplaytimeleft:t[2]||(t[2]=(...o)=>e.onAutoplayTimeLeft&&e.onAutoplayTimeLeft(...o)),"on:reachEnd":t[3]||(t[3]=(...o)=>e.updateButtons&&e.updateButtons(...o)),onObserverupdate:t[4]||(t[4]=(...o)=>e.onOberverUpdate&&e.onOberverUpdate(...o)),onResize:t[5]||(t[5]=(...o)=>e.onDefaultEvent&&e.onDefaultEvent(...o)),"on:reachBeginning":t[6]||(t[6]=(...o)=>e.onDefaultEvent&&e.onDefaultEvent(...o)),modules:e.modules},[aE(e.$slots,"default")],42,cE)):Ni("",!0),Xs("div",dE,[e.hideNavigation?Ni("",!0):(Qs(),Zs("button",{key:0,class:Ii(["--prev","swiper__controls__item",e.prevEnabled?"":"--disabled"]),disabled:!e.prevEnabled,role:"button","aria-label":"Vorheriger Slide",onClick:t[7]||(t[7]=(...o)=>e.prev&&e.prev(...o))},[...t[9]||(t[9]=[Xs("span",{class:"iconSet"},"chevron_left",-1)])],10,uE)),Xs("div",hE,null,512),e.hideNavigation?Ni("",!0):(Qs(),Zs("button",{key:1,class:Ii(["--next","swiper__controls__item",e.nextEnabled?"":"--disabled"]),disabled:!e.nextEnabled,role:"button","aria-label":"Nächster Slide",onClick:t[8]||(t[8]=(...o)=>e.next&&e.next(...o))},[...t[10]||(t[10]=[Xs("span",{class:"iconSet"},"chevron_right",-1)])],10,pE))])],64)}const mE=k(oE,[["render",_E]]);window.Vue.h;window.Vue.h;window.Vue.ref;window.Vue.onMounted;window.Vue.onUpdated;window.Vue.onBeforeUnmount;window.Vue.watch;window.Vue.nextTick;window.Vue.provide;
2const er=window.Vue.h,Oi=window.Vue.ref,fE=window.Vue.onMounted,wE=window.Vue.onUpdated,gE=window.Vue.onBeforeUpdate,yE=window.Vue.computed,vE=window.Vue.onBeforeUnmount,bE=window.Vue.provide,EE={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,s=!1;const{swiperRef:i}=e,r=Oi(null),o=Oi("swiper-slide"),a=Oi(!1);function l(d,p,_){p===r.value&&(o.value=_)}fE(()=>{!i||!i.value||(i.value.on("_slideClass",l),s=!0)}),gE(()=>{s||!i||!i.value||(i.value.on("_slideClass",l),s=!0)}),wE(()=>{!r.value||!i||!i.value||(typeof e.swiperSlideIndex<"u"&&(r.value.swiperSlideIndex=e.swiperSlideIndex),i.value.destroyed&&o.value!=="swiper-slide"&&(o.value="swiper-slide"))}),vE(()=>{!i||!i.value||i.value.off("_slideClass",l)});const c=yE(()=>({isActive:o.value.indexOf("swiper-slide-active")>=0,isVisible:o.value.indexOf("swiper-slide-visible")>=0,isPrev:o.value.indexOf("swiper-slide-prev")>=0,isNext:o.value.indexOf("swiper-slide-next")>=0}));bE("swiperSlide",c);const u=()=>{a.value=!0};return()=>er(e.tag,{class:Ff("".concat(o.value)),ref:r,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&i&&i.value&&i.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?er("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!a.value&&er("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!a.value&&er("div",{class:"swiper-lazy-preloader"})])}};window.Vue.inject;const kE={name:"AppPlayerDrawer",components:{CroppedText:Un,AppPlayerDrawerPodcastShortcut:nE,AppPlayerControlPlay:cn,AppPlayerControlSkip:jr,AppPlayerProgress:Ur,PodcastEpisode:Es,AppPlayerControlPlayPage:Lo,CmmsResponsiveImage:De,SliderWrapper:mE,SwiperSlide:EE},extends:xo,data(){return{activeTab:"podcast",showPodcastDetail:!1,showPodcastId:null,currentPodcast:null,touchStartX:0,touchStartY:0,touchStartTime:null,podcastLoadingId:null,breakpoints:{320:{slidesPerView:2.2,spaceBetween:16},475:{slidesPerView:3.2,spaceBetween:24},768:{slidesPerView:3,spaceBetween:24},960:{slidesPerView:4,spaceBetween:24},1200:{slidesPerView:5,spaceBetween:24},1400:{slidesPerView:5,spaceBetween:32}}}},computed:{...Ve("player",["podcastList","hasPodcasts","hasChannels","playerDrawerOpen","playerPodcastObject","playerMode","podcastData","currentChannelId","currentChannelData","channels"]),hasFullscreenPlayer(){return an.fullsizePlayer},audioMode(){return we},podcastMode(){return ie},channelMode(){return ge},podcastListFiltered(){return this.podcastList.filter(e=>e.episodes_amount>0)},newestPodcastAudioObject(){if(this.currentPodcast)return this.currentPodcast.episodes.length>0?this.currentPodcast.episodes[0]:null},currentPodcastAudioObject(){if(this.currentPodcast)return this.currentPodcast.episodes.length>0?this.currentPodcast.episodes[0]:null},podcastEpisodes(){return this.currentPodcast?this.currentPodcast.episodes.slice(1):[]},channelCount(){return Object.keys(this.channels).length},sortedChannels(){let e=JSON.parse(JSON.stringify(this.channels));return Object.keys(e).forEach(t=>{e[t].key=t}),e=Object.values(e),e.forEach((t,n)=>{t.index=n}),e=e.sort((t,n)=>t.order-n.order),e},podcastEpisodeComponent(){return Ee.getByName("podcastEpisode",Es)},channelId(){return this.getDefaultChannelId},channelData(){return this.currentChannelData},channelTitle(){return this.channelData?this.channelData.label:""},showTitle:function(){return this.showData&&this.showData.title||null},showData:function(){return this.channelData&&this.channelData.show||null},showExcerpt:function(){return this.showData&&this.showData.excerpt||null},showImage:function(){return this.showData&&this.showData.thumb_id>0?this.showData.image_thumb:null},podcastId(){return this.playerPodcastObject?this.playerPodcastObject.post_id:null},playlistData(){return this.currentChannelData?this.currentChannelData.playlist:[]}},methods:{...Ue("player",["loadPodcastList","loadPodcast","setPlayerChannelId","playerPodcastSkip","setPlayerDrawerOpen"]),toggleDrawer:function(){this.setPlayerDrawerOpen(!this.playerDrawerOpen),this.playerDrawerOpen===!0&&(this.playerPodcastObject?(this.selectDrawerTab("podcast"),this.getPodcastData()):this.selectDrawerTab("channel"))},selectDrawerTab:function(e){this.activeTab=e},async getPodcastData(){const e=this.podcastData(this.playerPodcastObject.post_id);e?this.currentPodcast=e:this.currentPodcast=await this.loadPodcast(this.playerPodcastObject.api_url)},triggerAudio:function(e,t){e.sources&&this.setPlayerChannelId({channelId:t,auto
2play:!0})},getCover:function(e,t){return window.cmms_thumbs_base+"".concat(t,"x").concat(t,"c/").concat(e,".webp")},async getCurrentPodcastData(e){if((this.podcastId===void 0||!this.playerPodcastObject)&&!e)return;let t=e?e.post_id:this.playerPodcastObject.post_id;const n=this.podcastData(t);if(n)this.currentPodcast=n;else{let s=e?e.api_url:this.playerPodcastObject.api_url;this.podcastLoadingId=e?e.post_id:this.playerPodcastObject.post_id,await this.$nextTick(async()=>{this.currentPodcast=await this.loadPodcast(s),this.podcastLoadingId=null})}return!0},async onPodcastSelected(e){await this.getCurrentPodcastData(e),this.showPodcastDetail=!0},showPodcastOverview(){this.showPodcastDetail=!1},getTime:function(e){return this.$filters.hourMinute(e*1e3)},initDrawerTab(){this.playerMode===this.channelMode?this.selectDrawerTab("channel"):this.playerMode===this.podcastMode?this.selectDrawerTab("podcast"):this.hasChannels?this.selectDrawerTab("channel"):this.hasPodcasts&&this.selectDrawerTab("podcast")}},watch:{podcastId:{handler:function(e){e&&(this.showPodcastDetail=!0,this.getCurrentPodcastData())},deep:!0},playerDrawerOpen:{handler:function(e){e&&this.initDrawerTab()}}},async mounted(){window.isDynamicRenderer||this.podcastList.length<1&&await this.loadPodcastList()},beforeUnmount(){this.playerDrawerOpen&&this.setPlayerDrawerOpen(!1)}},nt=window.Vue.normalizeClass,J=window.Vue.openBlock,se=window.Vue.createElementBlock,pe=window.Vue.createCommentVNode,ql=window.Vue.Transition,tr=window.Vue.withCtx,Tt=window.Vue.createVNode,Y=window.Vue.createElementVNode,ts=window.Vue.renderList,yn=window.Vue.Fragment,Pt=window.Vue.resolveComponent,mt=window.Vue.createBlock,Jl=window.Vue.resolveDynamicComponent,ft=window.Vue.toDisplayString,SE=window.Vue.withKeys,AE=window.Vue.resolveDirective,CE=window.Vue.withDirectives,TE={class:"player__drawer__close"},PE={key:0,class:"player__drawer__tab-navigation"},VE={key:1,class:"player__drawer__tab --active"},DE={class:"player__drawer__podcast"},$E={class:"player__drawer__podcast__entries"},IE={key:0,class:"player__drawer__podcast__controls"},NE={key:2,class:"player__drawer__tab --active"},OE={class:"player__drawer__podcast"},BE={class:"player__drawer__podcast__entries"},RE={key:0,class:"player__drawer__podcast__label --text-size-xxs"},xE={key:0,class:"player__drawer__podcast__controls"},LE={key:3,class:"player__drawer__tab --active"},ME={class:"player__drawer__channels__current"},zE=["src","alt","title"],jE={class:"player__drawer__channels__current__meta"},UE={class:"player__drawer__channels__current__title"},HE={key:0,class:"player__drawer__channels__playlist__wrapper"},FE={key:0,class:"player__drawer__channels__playlist"},GE={class:"player__drawer__channels__playlist__item__time"},YE={class:"player__drawer__channels__playlist__item__track"},WE={class:"player__drawer__channels__playlist__item__track__interpret"},KE={class:"player__drawer__channels__playlist__item__track__title"},qE={key:1,class:"player__drawer__channels__playlist"},JE={class:"player__drawer__channels__playlist__item"},QE={class:"player__drawer__channels__playlist__item__time"},ZE={class:"player__drawer__channels__playlist__item__track"},XE={class:"player__drawer__channels__playlist__item__track__interpret"},ek={class:"player__drawer__channels__playlist__item__track__title"},tk={key:1,class:"player__drawer__channels__grid"},nk=["title","onClick"],sk=["src","alt"],rk={key:2,class:"player__drawer__show"},ik={class:"player__drawer__show__meta"},ok={class:"player__drawer__show__onair"},ak={class:"player__drawer__show__onair__label --text-size-xxs"},lk={class:"player__drawer__show__title"},ck={class:"player__drawer__show__media"};function dk(e,t,n,s,i,r){const o=Pt("AppPlayerDrawerPodcastShortcut"),a=Pt("AppPlayerControlSkip"),l=Pt("AppPlayerProgress"),c=Pt("AppPlayerControlPlay"),u=Pt("SwiperSlide"),d=Pt("SliderWrapper"),p=Pt("CroppedText"),_=Pt("CmmsResponsiveImage"),C=AE("focustrap");return J(),se(yn,null,[Tt(ql,{name:"drawer-blocker"},{default:tr(()=>[e.playerDrawerOpen?(J(),se("div",{key:0,class:nt(["player__drawer__blocker",r.hasFullscreenPlayer?"--bar":"--card"]),onClick:t[0]||(t[0]=(...v)=>r.toggleDrawer&&r.toggleDrawer(...v))},null,2)):pe("",!0)]),_:1}),Tt(ql,{name:"drawer"},{default:tr(()=>[e.playerDrawerOpen?CE((J(),se("div",{key:0,onKeydown:t[5]||(t[5]=SE((...v)=>r.toggleDrawer&&r.toggleDrawer(...v),["esc"])),class:nt(["player__drawer",r.hasFullscreenPlayer?"--bar":"--card"]),role:"dialog"},[Y("div",TE,[Y("button",{class:"iconSet",onClick:t[1]||(t[1]=(...v)=>r.toggleDrawer&&r.toggleDrawer(...v))},"close")]),e.hasPodcasts&&e.hasChannels?(J(),se("div",PE,[e.hasChannels?(J(),se("button",{key:0,onClick:t[2]||(t[2]=v=>r.selectDrawerTab("channel")),class:nt(["player__drawer__tab-navigation__item --channel",i.activeTab==="channel"?"--active":""])},[...t[6]||(t[6]=[Y("span",{class:"iconSet"},"apps",-1),Y("span",{class:"player__drawer__tab-navigation__item__label"},"Webradio",-1)])],2)):pe("",!0),e.hasPodcasts?(J(),se("button",{key:1,onClick:t[3]||(t[3]=v=>r.selectDrawerTab("podcast")),class:nt(["player__drawer__tab-navigation__item --podcast",i.activeTab==="podcast"?"--active":""])},[...t[7]||(t[7]=[Y("span",{class:"iconSet"},"mic",-1),Y("span",{class:"player__drawer__tab-navigation__item__label"},"Podcasts",-1)])],2)):pe("",!0)])):pe("",!0),i.activeTab==="podcast"&&(!i.currentPodcast||!i.showPodcastDetail)?(J(),se("div",VE,[Y("div",DE,[Y("div",$E,[(J(!0),se(yn,null,ts(r.podcastListFiltered,v=>(J(),mt(o,{podcastData:v,key:"podcast_item_"+v.post_id,"start-podcast":!1,"is-loading":i.podcastLoadingId===v.post_id,onPodcastSelected:r.onPodcastSelected},null,8,["podcastData","is-loading","onPodcastSelected"]))),128))]),e.playerMode===r.podcastMode?(J(),se("div",IE,[e.playerMode===r.podcastMode?(J(),mt(a,{key:0,class:nt("--text-link"),"button-type":"skip_previous"})):pe("",!0),Tt(l),e.playerMode===r.podcastMode?(J(),mt(a,{key:1,class:nt("--text-link")})):pe("",!0)])):pe("",!0)])])):i.activeTab==="podcast"&&i.currentPodcast&&i.showPodcastDetail===!0?(J(),se("div",NE,[Y("div",OE,[Y("div",BE,[Y("button",{class:"player__drawer__podcast__link",onClick:t[4]||(t[4]=(...v)=>r.showPodcastOverview&&r.showPodcastOverview(...v))},[...t[8]||(t[8]=[Y("span",{class:"iconSet player__drawer__podcast__link__icon"},"arrow_back",-1),Y("div",{class:"player__drawer__podcast__link__label"},"zurück zur Übersicht",-1)])]),Tt(o,{"podcast-data":i.currentPodcast},null,8,["podcast-data"]),t[9]||(t[9]=Y("div",{class:"player__drawer__podcast__label --text-size-xxs"},"Neueste Folge",-1)),(J(),mt(Jl(r.podcastEpisodeComponent),{"audio-object":r.newestPodcastAudioObject,"podcast-object":i.currentPodcast,hideMoreButton:!0,class:"--compact --no-link"},null,8,["audio-object","podcast-object"])),r.podcastEpisodes.length>0?(J(),se("div",RE," Weitere Folgen ")):pe("",!0),(J(!0),se(yn,null,ts(r.podcastEpisodes,(v,z)=>(J(),mt(Jl(r.podcastEpisodeComponent),{"audio-object":v,"podcast-object":i.currentPodcast,key:"podcast_episode".concat(v.item),hideMoreButton:!0,class:"--light --compact --no-link"},null,8,["audio-object","podcast-object"]))),128))]),e.playerPodcastObject?(J(),se("div",xE,[e.playerMode===r.podcastMode?(J(),mt(a,{key:0,class:nt("--text-link"),"button-type":"skip_previous"})):pe("",!0),Tt(l),e.playerMode===r.podcastMode?(J(),mt(a,{key:1,class:nt("--text-link")})):pe("",!0)])):pe("",!0)])])):pe("",!0),i.activeTab==="channel"?(J(),se("div",LE,[Y("div",{class:nt(["player__drawer__channels",r.channelCount<=1?"--single-channel":"--multi-channel"])},[Y("div",ME,[e.currentChannelData.thumbnail_id?(J(),se("img",{key:0,class:"player__drawer__channels__current__cover",src:r.getCover(e.currentChannelData.thumbnail_id,234),alt:r.channelTitle,title:r.channelTitle},null,8,zE)):pe("",!0),Y("div",jE,[t[10]||(t[10]=Y("div",{class:"player__drawer__channels__current__label"},"Liveradio",-1)),Y("h3",UE,ft(r.channelTitle),1)]),Tt(c,{channelId:e.currentChannelId,ref:"playButton"},null,8,["channelId"])]),r.playlistData&&r.playlistData.length>0?(J(),se("div",HE,[r.channelCount<=1?(J(),se("div",FE,[(J(!0),se(yn,null,ts(r.playlistData,(v,z)=>(J(),se("div",{key:"playlist_item_"+z,class:"player__drawer__channels__playlist__item"}
2,[Y("div",GE,ft(r.getTime(v.time)),1),Y("div",YE,[Y("div",WE,ft(v.interpret),1),t[11]||(t[11]=Y("div",{class:"player__drawer__channels__playlist__item__track__spacer"},"·",-1)),Y("div",KE,ft(v.title),1)])]))),128))])):(J(),se("div",qE,[Tt(d,{breakpoints:i.breakpoints},{default:tr(()=>[(J(!0),se(yn,null,ts(r.playlistData,(v,z)=>(J(),mt(u,{key:"playlist_item_"+z},{default:tr(()=>[Y("div",JE,[Y("div",QE,ft(r.getTime(v.time)),1),Y("div",ZE,[Y("div",XE,ft(v.interpret),1),t[12]||(t[12]=Y("div",{class:"player__drawer__channels__playlist__item__track__spacer"}," · ",-1)),Y("div",ek,ft(v.title),1)])])]),_:2},1024))),128))]),_:1},8,["breakpoints"])]))])):pe("",!0),r.channelCount>1?(J(),se("div",tk,[(J(!0),se(yn,null,ts(r.sortedChannels,(v,z)=>(J(),se("button",{key:z,class:nt(["player__drawer__channels__grid__item",v.key===e.currentChannelId?"--active":""]),title:v.label,onClick:U=>r.triggerAudio(v,v.key)},[Y("img",{src:r.getCover(v.thumbnail_id,234),alt:v.label},null,8,sk)],10,nk))),128))])):pe("",!0),r.showTitle||r.showExcerpt||r.showImage?(J(),se("div",rk,[Y("div",ik,[Y("span",ok,[t[13]||(t[13]=Y("span",{class:"iconSet"},"equalizer",-1)),Y("span",ak,"on air "+ft(e.channels.length),1)]),Y("h4",lk,ft(r.showTitle),1),r.showExcerpt?(J(),mt(p,{key:0,class:"player__drawer__show__desc",tag:"span",lines:2,text:r.showExcerpt},null,8,["text"])):pe("",!0)]),Y("div",ck,[Tt(_,{image:r.showImage},null,8,["image"])])])):pe("",!0)],2)])):pe("",!0)],34)),[[C]]):pe("",!0)]),_:1})],64)}const Ql=k(kE,[["render",dk]]),uk={data:function(){return{timeoutHandler:null}},computed:{},methods:{...Ue("player",["loadChannelData"]),loadData:function(){clearTimeout(this.timeoutHandler),this.loadChannelData(),this.timeoutHandler=setTimeout(this.loadData,1e4)}},mounted(){window.isDynamicRenderer||this.loadData()},beforeUnmount(){clearTimeout(this.timeoutHandler)}},hk={computed:{hasModal(){return Ee.has(bl)},getModal(){return Ee.getByName(bl)}}};var Ds,$s,lt,mu,fu,wu,gu;class pk{constructor(){x(this,lt);x(this,Ds,!1);x(this,$s,0)}init(){h(this,Ds)||(ne(this,Ds,!0),ue.onPayload(q(this,lt,mu).bind(this),"event"),ue.sendPayload({type:"setupMessaging"}))}}Ds=new WeakMap,$s=new WeakMap,lt=new WeakSet,mu=function(t){const{eventType:n,data:s}=t;switch(n){case"messagingReady":q(this,lt,fu).call(this,s);break;case"messagingNotification":q(this,lt,gu).call(this,s);break}},fu=function(t){if(!t.length)if(h(this,$s)<10){setTimeout(q(this,lt,wu).bind(this),3e3);return}else return;F.dispatch("arabella/setPushToken",t),vt({url:"/cmms-api-v2/push/register/",params:{token:t}})},wu=function(){zo(this,$s)._++,ue.sendPayload({type:"registerMessaging"})},gu=function(t){const n=t||null;if(console.log("[notify]",n),n!==null){if(n.data&&n.data.mid&&vt({url:"/cmms-api-v2/push/read/",params:{token:F.getters["arabella/getPushToken"],mid:n.data.mid}}),(n.type==="open"||n.type==="background")&&n.data.url){Lt.push(_o(n.data.url));return}if(n.data.message){let s=null;n.data.url&&(s={label:"Ansehen",callback:()=>{Lt.push(_o(n.data.url))}}),F.dispatch("notifications/enqueue",{type:"push",payload:{message:n.data.message||"",cta:s}})}}};const _k=new pk;var Nn,On,Er;class mk{constructor(t=""){x(this,On);x(this,Nn,"");t.length?ne(this,Nn,t+"."):console.info("[Soylent:PersistentStorage] %cWarning: Using without a key prefix","color: darkorange")}getAll(){let t={};return Object.keys(window.localStorage).forEach(n=>{const s=new RegExp("^".concat(h(this,Nn).replace(/\./g,"."),"(.+)$"),"i"),i=n.match(s);i&&(t[i[1]]=this.get(i[1]))}),t}get(t,n){const s=window.localStorage.getItem(q(this,On,Er).call(this,t));if(s===null)return n;try{return JSON.parse(s)}catch(i){return s}}set(t,n){window.localStorage.setItem(q(this,On,Er).call(this,t),JSON.stringify(n))}delete(t){window.localStorage.removeItem(q(this,On,Er).call(this,t))}}Nn=new WeakMap,On=new WeakSet,Er=function(t){return"".concat(h(this,Nn)).concat(t)};var Is,ot,Ns,Os;class fk{constructor(){x(this,Is,!1);x(this,ot,null);x(this,Ns,5);x(this,Os,744*60*60*1e3)}init(){if(h(this,Is))return;if(console.log("[SoylentStoreReview] Initialized"),ne(this,Is,!0),("soylent_settings"in window&&window.soylent_settings.app_review_prompt||!1)!==!0){console.log("[
2SoylentStoreReview] Not enabled");return}ne(this,ot,new mk("soylent.app.storeReview")),h(this,ot).set("appStarts",h(this,ot).get("appStarts",0)+1),this.checkReviewRequest()}checkReviewRequest(){if(parseInt(h(this,ot).get("appStarts",0),10)<h(this,Ns)){console.log("[SoylentStoreReview] Do not ask, current start count is less then "+h(this,Ns));return}const t=Date.now()-parseInt(h(this,ot).get("reviewRequestedTimestamp",0),10);if(t<h(this,Os)){console.log("[SoylentStoreReview] Do not ask, current timestamp difference is "+t+" needs to exceed "+h(this,Os));return}h(this,ot).set("appStarts",0),h(this,ot).set("reviewRequestedTimestamp",Date.now()),ue.sendPayload({type:"requestStoreReview"}),console.log("[SoylentStoreReview] Review Request sent to bridge")}}Is=new WeakMap,ot=new WeakMap,Ns=new WeakMap,Os=new WeakMap;const wk=new fk;var Bs,Bn,Rs,zn,yu,vu;class gk{constructor(){x(this,zn);x(this,Bs,!1);x(this,Bn,!1);x(this,Rs,null)}init(){je&&(document.getElementsByTagName("html")[0].classList.add("--native"),ue.onPayload(q(this,zn,yu).bind(this),"@register"),ue.onPayload(t=>{const{eventType:n}=t;if(h(this,Bs))switch(n){case"back":ue.sendPayload({type:"goBack"});break;case"cannotGoBack":clearTimeout(h(this,Rs)),h(this,Bn)?ue.sendPayload({type:"exitApp"}):(ne(this,Bn,!0),ne(this,Rs,setTimeout(()=>{ne(this,Bn,!1)},3e3)),ue.sendPayload({type:"showToast",label:"Erneut drücken, um die App zu schließen"}));break}},"event"),ue.init(),wk.init(),q(this,zn,vu).call(this))}}Bs=new WeakMap,Bn=new WeakMap,Rs=new WeakMap,zn=new WeakSet,yu=function(){ne(this,Bs,!0),_k.init()},vu=function(){window.addEventListener("UC_UI_VIEW_CHANGED",function(t){console.log("Current view is: "+t.detail.view),(t.detail.view==="NONE"||t.detail.view==="PRIVACY_BUTTON")&&(window.UC_UI.getServicesBaseInfo().filter(n=>n.consent.status===!0&&n.categorySlug!=="essential").length>0||window.UC_UI.getTCFVendors().filter(n=>n.consent===!0).length>0)&&(console.log("requestTrackingPermission"),ue.sendPayload({type:"requestTrackingPermission"}))}),window.addEventListener("CookiebotOnConsentReady",function(t){ue.sendPayload({type:"requestTrackingPermission"})},{once:!0}),"cmmsCmpLoader"in window?(console.log("[App] Spawn CMP"),window.cmmsCmpLoader()):(console.log("[App] Store spawn CMP request"),window.cmmsSpawnCmp=!0)};const yk=new gk,vk=window.Vue.resolveDynamicComponent,bk=window.Vue.normalizeClass,Ek=window.Vue.openBlock,kk=window.Vue.createBlock,Zl=window.Vue.computed;window.Vue.onMounted;const Sk=window.Vue.ref,ns={__name:"HtmlBlock",props:{htmlContent:String,active:Boolean},setup(e){const t=e,n=Sk(null),s=Zl(()=>o(t.htmlContent)),i=Zl(()=>r(t.htmlContent)),r=a=>{a=a.trim();const l=a.match(/^<\s*([a-zA-Z0-9-]+)/);return l?l[1].toLowerCase():"span"};function o(a){a=a.trim();const l=a.match(/^<([a-zA-Z0-9-]+)(\s[^>]*)?>/);if(!l)return a;const c=l[1].toLowerCase();if(new Set(["a","strong","em","span","b","i","u","small","sub","sup","code","img"]).has(c))return a;const d=a.match(new RegExp("^<".concat(c,"[^>]*>([\\s\\S]*?)<\\/").concat(c,">$"),"i"));return d?d[1]:a}return(a,l)=>(Ek(),kk(vk(i.value),{ref_key:"container",ref:n,innerHTML:s.value+" ",class:bk(e.active?"--highlight":"")},null,8,["innerHTML","class"]))}},Ak=window.Vue.createVNode,Xl=window.Vue.createElementVNode,Bi=window.Vue.toDisplayString,ss=window.Vue.openBlock,rs=window.Vue.createElementBlock,nr=window.Vue.createCommentVNode,Ck=window.Vue.normalizeClass,Tk={key:0,class:"media-content"},Pk={style:{}},Vk={class:""},Dk={key:0},$k={key:1,class:"reader__content__media__headline"},Ik={key:2,class:"reader__content__media__subline"},Nk=window.Vue.computed,Ok={__name:"MediaBlock",props:{media:Object,active:Boolean},setup(e){const t=e,n=Nk(()=>{var i,r,o;return((i=t.media)==null?void 0:i.data.media_data.type)==="image"?(r=t.media)==null?void 0:r.data.media_data.model:(o=t.media)==null?void 0:o.data.media_data.model.image});return(s,i)=>{var r;return ss(),rs("div",{class:Ck(["reader__content__media",e.active?"--highlight":""])},[n.value?(ss(),rs("div",Tk,[Xl("figure",Pk,[Xl("picture",Vk,[Ak(De,{image:n.value},null,8,["image"])]),(r=n.value)!=null&&r.copyright&&n.value.copyright!==""?(ss(),rs("figcaption",Dk,Bi(n.value.copyright),1)):nr("",!0)])])):nr("",!0),e.media.data.headline?(ss(),rs("span",$k,Bi(e.media.data.headline),1)):nr("",!0),e.media.data.subline?(ss(),rs("span",Ik,Bi(e.media.data.subline),1)):nr("",!0)],2)}}},ee=window.Vue.createElementVNode,Ri=window.Vue.normalizeClass,Re=window.Vue.openBlock,Ge=window.Vue.createElementBlock,is=window.Vue.createCommentVNode,Bk=window.Vue.vModelSelect,sr=window.Vue.withDirectives,ec=window.Vue.toDisplayString,vn=window.Vue.createTextVNode,tc=window.Vue.vModelText,xi=window.Vue.unref,os=window.Vue.Fragment,Rk=window.Vue.renderList,xk=window.Vue.resolveDynamicComponent,Lk=window.Vue.mergeProps,Mk=window.Vue.createBlock,zk=window.Vue.withKeys,jk=window.Vue.normalizeStyle,Uk=window.Vue.resolveDirective,Hk=window.Vue.createStaticVNode,Fk=["data-theme"],Gk={class:"reader__tools"},Yk={class:"reader__tools__button-wrapper"},Wk={key:0,class:"reader__tools__button-tooltip"},Kk={key:1,role:"dialog",class:"reader__tools__dialog"},qk={class:"reader__tools__dialog__label"},Jk={class:"reader__tools__dialog__label"},Qk={class:"reader__tools__dialog__label__title"},Zk={class:"reader__tools__dialog__label"},Xk={class:"reader__tools__dialog__label__title"},eS={key:3,class:"reader__tools__button-wrapper"},tS={class:"reader__tools__button-wrapper"},nS={class:"reader__content"},sS=window.Vue.onMounted,rS=window.Vue.onUnmounted,xe=window.Vue.ref,as=window.Vue.watch,iS={__name:"Reader",setup(e){const t=ed(),n=xe(null),s=xe(""),i=xe(!1),r=xe([]),o=xe(-1),a=window.speechSynthesis;let l=null,c=!1,u=xe(!1);const d=()=>{t.dispatch("reader/hideReader")},p=()=>{var V,A;if(s.value=[],le.value&&r.value){r.value.forEach((j,O)=>{if(j.startsWith("**")&&j.endsWith("**")){let X=j.slice(2,-2);const te=O===0?"h1":"h2";s.value.push({type:"html",component:ns,content:"<"+te+">"+X+"</"+te+">",plainText:X})}else s.value.push({type:"html",content:"<p>".concat(j,"</p>"),component:ns,plainText:S(j)})});return}const g="pageDataModal"in t.getters?(V=t.getters.pageDataModal)==null?void 0:V.blocks:(A=t.getters.pageData)==null?void 0:A.blocks;s.value=[],g.forEach(j=>
2{j.elements.forEach(O=>{switch(O.subtype){case"postTeaser":s.value.push({type:"html",component:ns,content:O.data.text,plainText:O.data.text});break;case"html":let te=[];try{te=w(O.data.text)}catch(y){console.error("Fehler beim Ausführen: Die Funktion benötigt eine DOM-Umgebung (Browser oder JSDOM).",y)}te.length>0?te.forEach((y,D)=>{s.value.push({type:"html",content:y,component:ns,plainText:S(y)})}):s.value.push({type:"html",content:O.data.text});break;case"headline":const m=O.data.tag?O.data.tag:"h1";s.value.push({type:"html",component:ns,content:"<"+m+">"+O.data.text+"</"+m+">",plainText:O.data.text});break;case"media":let E="Medium:";O.data.headline?(E+=" "+O.data.headline,O.data.subline&&(E+=" "+O.data.subline)):O.data.media_data.model.alt&&O.data.media_data.model.alt!=""?E+=" "+O.data.media_data.model.alt:E+=" ohne Beschreibung",s.value.push({type:"component",component:Ok,props:{media:O},plainText:E});break}})})},_=()=>{if(!i.value){C();return}u.value?speechSynthesis.pause&&navigator.userAgent.includes("Firefox")?C():(u.value=!1,a.resume()):speechSynthesis.pause&&navigator.userAgent.includes("Firefox")?v():(u.value=!0,a.pause())},C=()=>{if(!a){console.error("TTS nicht verfügbar oder keine Segmente gefunden.");return}v(),i.value=!0,o.value=0,c=!1,u.value=!1,z(o.value)},v=()=>{a.cancel(),i.value=!1,o.value=-1,l=null},z=b=>{if(c)return;if(b>=s.value.length){v();return}o.value=b;const g=s.value[b].plainText;l=new SpeechSynthesisUtterance(g),l.lang="de",l.onend=()=>{i.value&&z(b+1)},l.onerror=V=>{console.error("TTS Error bei Segment ".concat(b,":"),V.error),z(b+1)},a.speak(l),a.resume(),L("text-segment-"+b)},U=xe(!1),$={isDarkMode:"settings.isDarkMode",isSimpleMode:"settings.isSimpleMode",fontFamily:"settings.fontFamily",fontSize:"settings.fontSize",lineHeight:"settings.lineHeight"},G=(b,g)=>{const V=localStorage.getItem(b);try{return V!==null?JSON.parse(V):g}catch(A){return g}},oe=(b,g)=>{localStorage.setItem(b,JSON.stringify(g))},he=xe(G($.isDarkMode,!1)),le=xe(G($.isSimpleMode,!1)),ae=xe(G($.fontFamily,"sans-serif")),R=xe(G($.fontSize,20)),ye=xe(G($.lineHeight,.75));as(he,b=>oe($.isDarkMode,b)),as(le,b=>oe($.isSimpleMode,b)),as(ae,b=>oe($.fontFamily,b)),as(R,b=>oe($.fontSize,b)),as(ye,b=>oe($.lineHeight,b));const dn=()=>{U.value?U.value=!1:d()},kt=()=>{he.value=!he.value},Qe=()=>{le.value=!le.value,p()},W=()=>{U.value=!U.value};function f(b){const V=new DOMParser().parseFromString(b,"text/html");return Array.from(V.querySelectorAll("section, article")).reverse().forEach(O=>{const X=O.parentNode;for(;O.firstChild;)X.insertBefore(O.firstChild,O);O.remove()}),V.body.innerHTML}function w(b,g={}){b=b.trim(),b=f(b);const{listMode:V="container"}=g,A=document.createElement("div");A.innerHTML=b.trim();const j=[],O=["P","DIV","H1","H2","H3","H4","H5","H6"],X=["BLOCKQUOTE","TABLE","DETAILS","HR","SECTION","ARTICLE","ASIDE","HEADER","FOOTER","NAV","ADDRESS"],te=new RegExp("(?<!\\b(?:Dr|Prof|Dipl\\.?-?Ing|BSc|MSc|Ing|Mag|Sr|Jr))(?<!\\b\\d)([.?!])\\s*(?=\\s*[A-ZÄÖÜ(»])","gi");function m(M){return Array.from(M.attributes).map(N=>" ".concat(N.name,'="').concat(N.value,'"')).join("")}function E(M){if(M.nodeType===Node.TEXT_NODE)return M.textContent;if(M.nodeType!==Node.ELEMENT_NODE)return"";const N=M.tagName.toLowerCase(),P=m(M);let Q="<".concat(N).concat(P,">");return M.childNodes.forEach(ke=>{Q+=E(ke)}),Q+="</".concat(N,">"),Q}function y(M){const N=document.createElement("div");N.innerHTML=M;const P=[];let Q="";function ke(){if(Q.trim()){const He=Q.replace(te,"$1###SPLIT###").split("###SPLIT###").map(Ze=>Ze.trim()).filter(Boolean);P.push(...He)}Q=""}function me(He){if(He.nodeType===Node.TEXT_NODE){Q+=He.textContent;return}if(He.nodeType===Node.ELEMENT_NODE){const Ze=window.getComputedStyle(He).display;if(Ze!=="block"&&Ze!=="table"){ke(),P.push(E(He));return}ke(),P.push(He.outerHTML)}}return N.childNodes.forEach(me),ke(),P}function D(M){const N=M.innerHTML,P=y(N),Q="<".concat(M.tagName).concat(m(M),">"),ke="</".concat(M.tagName,">");P.forEach((me,He)=>{let Ze=me.trim();He===0&&(Ze=Q+Ze),He===P.length-1&&(Ze=Ze+ke),j.push(Ze)})}function K(M){if(M.nodeType===Node.TEXT_NODE){const P=M.textContent.trim();if(!P)return;const Q=P.replace(te,"$1###SPLIT###").split("###SPLIT###").map(ke=>
2ke.trim()).filter(Boolean);j.push(...Q);return}if(M.nodeType!==Node.ELEMENT_NODE)return;const N=M.tagName;if(X.includes(N)){j.push(M.outerHTML.trim());return}if(O.includes(N)){D(M);return}M.childNodes.forEach(K)}return A.childNodes.forEach(K),j}function S(b){const g=document.createElement("div");return g.innerHTML=b,g.textContent||g.innerText||""}const L=b=>{const g=document.getElementById(b);g&&g.scrollIntoView({behavior:"smooth"})},B=()=>{t.getters["reader/autoplay"]&&(t.dispatch("reader/setReaderAutoplay",!1),C())};return sS(()=>{var b,g;c=!1,u.value=!1,r.value=(g=(b=t.getters.pageData)==null?void 0:b.accessibility)==null?void 0:g.simple_language,p(),B()}),rS(()=>{v(),c=!0,u.value=!0,setTimeout(()=>{a.cancel(),a.pause()},100)}),(b,g)=>{const V=Uk("focustrap");return sr((Re(),Ge("div",{onKeydown:zk(dn,["esc"]),"data-theme":he.value?"dark":"light",role:"dialog","aria-modal":"true",class:"reader",style:jk("--font-family:"+ae.value+";--font-size:"+R.value+"px;--font-line-height-ratio:"+ye.value+";")},[ee("div",Gk,[ee("div",{class:"reader__tools__button-wrapper"},[ee("button",{onClick:d,class:"reader__tools__button iconSet","aria-label":"Leseansicht schließen"}," close "),g[3]||(g[3]=ee("span",{class:"reader__tools__button-tooltip"},"Leseansicht schließen",-1))]),ee("div",Yk,[ee("button",{onClick:W,class:Ri(["reader__tools__button iconSet",[U.value?"--active":""]]),"aria-label":"Schrifteinstellungen"},"text_fields ",2),U.value?is("",!0):(Re(),Ge("span",Wk,"Schrifteinstellungen"))]),U.value?(Re(),Ge("div",{key:0,onClick:W,class:"reader__tools__dialog-backdrop"})):is("",!0),U.value?(Re(),Ge("div",Kk,[ee("label",qk,[g[5]||(g[5]=ee("span",{class:"reader__tools__dialog__label__title"},"Schriftart",-1)),sr(ee("select",{"onUpdate:modelValue":g[0]||(g[0]=A=>ae.value=A)},[...g[4]||(g[4]=[Hk('<option value="sans-serif">Sans Serif</option><option value="serif">Serif</option><option value="monospace">Monospace</option><option value="system-ui">System</option><option value="cursive">Schreibschrift</option>',5)])],512),[[Bk,ae.value]])]),ee("label",Jk,[ee("span",Qk,[g[6]||(g[6]=vn("Schriftgrad ",-1)),ee("span",null,ec(R.value)+"px",1)]),sr(ee("input",{type:"range",min:"12",max:"64",step:"4","onUpdate:modelValue":g[1]||(g[1]=A=>R.value=A)},null,512),[[tc,R.value,void 0,{number:!0}]])]),ee("label",Zk,[ee("span",Xk,[g[7]||(g[7]=vn("Zeilenhöhe ",-1)),ee("span",null,ec(ye.value+1),1)]),sr(ee("input",{type:"range",min:"0",max:"2",step:"0.25","onUpdate:modelValue":g[2]||(g[2]=A=>ye.value=A)},null,512),[[tc,ye.value,void 0,{number:!0}]])])])):is("",!0),xi(je)?is("",!0):(Re(),Ge("div",{key:2,class:"reader__tools__button-wrapper",onClick:_},[ee("button",{class:Ri(["reader__tools__button iconSet",[i.value&&!xi(u)?"--active":""]]),"aria-label":"Artikel anhören"},[i.value&&!xi(u)?(Re(),Ge(os,{key:0},[vn("pause")],64)):(Re(),Ge(os,{key:1},[vn("headphones")],64))],2),g[8]||(g[8]=ee("span",{class:"reader__tools__button-tooltip"},"Artikel anhören",-1))])),r.value?(Re(),Ge("div",eS,[ee("button",{onClick:Qe,class:Ri(["reader__tools__button iconSet",[le.value?"--active":""]]),"aria-label":"Einfache Sprache umschalten"}," local_library ",2),g[9]||(g[9]=ee("span",{class:"reader__tools__button-tooltip"},"Einfache Sprache",-1))])):is("",!0),ee("div",tS,[ee("button",{onClick:kt,class:"reader__tools__button iconSet","aria-label":"Farbschema umschalten"},[he.value?(Re(),Ge(os,{key:0},[vn("light_mode")],64)):(Re(),Ge(os,{key:1},[vn("dark_mode")],64))]),g[10]||(g[10]=ee("span",{class:"reader__tools__button-tooltip"},"Farbschema",-1))])]),ee("div",nS,[ee("div",{class:"reader__content__text",ref_key:"contentRef",ref:n},[(Re(!0),Ge(os,null,Rk(s.value,(A,j)=>(Re(),Mk(xk(A.component),Lk({key:"text-segment-".concat(j)},{ref_for:!0},A.props,{"html-content":A.content+" ",active:j===o.value,id:"text-segment-".concat(j)}),null,16,["html-content","active","id"]))),128))],512)])],44,Fk)),[[V]])}}},oS={name:"Layout",mixins:[uk,hk],data(){return{innerWidth:0}},components:{Reader:iS,AppPlayerBar:Yl,AppPlayerCard:Hl,AppPlayerDrawer:Ql,AppDebug:Aw,AppFooter:_l,AppHeader:Sl,AppScrollToTop:Xy,AppSearch:Yy},computed:{isMobileWidth:function(){return this.innerWidth<1025},appPlayerCard(){return Ee.getByName(iy,Hl)},appPlayerBar(){return Ee.getByName(oy,Yl)},appPlayerDrawer(){return Ee.getByName(ay,Ql)},appHeader(){return Ee.getByName(sy,Sl)},appFooter(){return Ee.getByName(ry,_l)},hasFullscreenPlayer(){return an.fullsizePlayer},reader(){return this.$store.getters["reader/show"]}},methods:{...Ue("player",["setPlayerDefaultChannelId"]),onResize:function(){this.innerWidth=window.innerWidth}},beforeMount(){if("channels"in window.soylent_settings.child_settings){const e=window.soylent_settings.child_settings.channels.default_channel_id;this.setPlayerDefaultChannelId({channelId:e})}},mounted(){window.addEventListener("resize",this.onResize),this.onResize(),yk.init()},beforeUnmount(){window.removeEventListener("resize",this.onResize)}},bn=window.Vue.resolveDynamicComponent,Vt=window.Vue.openBlock,Ut=window.Vue.createBlock,ls=window.Vue.resolve
2Component,cs=window.Vue.createVNode,nc=window.Vue.createElementVNode,sc=window.Vue.createCommentVNode,aS=window.Vue.Transition,lS=window.Vue.withCtx,cS=window.Vue.Fragment,dS=window.Vue.createElementBlock,uS={id:"page",class:"hfeed site"},hS={id:"main",class:"site-main"};function pS(e,t,n,s,i,r){const o=ls("router-view"),a=ls("app-scroll-to-top"),l=ls("app-debug"),c=ls("Reader"),u=ls("app-search");return Vt(),dS(cS,null,[(Vt(),Ut(bn(r.appHeader))),nc("div",uS,[nc("div",hS,[cs(o),cs(a)]),cs(l),(Vt(),Ut(bn(r.appFooter)))]),r.isMobileWidth||r.hasFullscreenPlayer?(Vt(),Ut(bn(r.appPlayerBar),{key:0})):(Vt(),Ut(bn(r.appPlayerCard),{key:1})),(Vt(),Ut(bn(r.appPlayerDrawer))),cs(aS,{name:"fade_fast"},{default:lS(()=>[r.reader?(Vt(),Ut(c,{key:0})):sc("",!0)]),_:1}),cs(u),e.hasModal?(Vt(),Ut(bn(e.getModal),{key:2})):sc("",!0)],64)}const _S=k(oS,[["render",pS]]),mS=window.Vue.unref,rc=window.Vue.openBlock,ic=window.Vue.createElementBlock,oc=window.Vue.createCommentVNode,fS=window.Vue.createElementVNode,wS={key:0,class:"reader-trigger"},gS=window.Vue.computed;window.Vue.onMounted;const bu={__name:"ReaderTrigger",setup(e){const t=ed(),n=()=>{t.dispatch("reader/showReader")},s=()=>{t.dispatch("reader/showReaderAutoplay")},i=gS(()=>"soylent_settings"in window&&window.soylent_settings.reader_mode||!1);return(r,o)=>i.value?(rc(),ic("div",wS,[mS(je)?oc("",!0):(rc(),ic("button",{key:0,onClick:s,class:"reader-trigger__button iconSet",title:"Anhören","aria-label":"Artikel anhören"}," headphones ")),fS("button",{onClick:n,class:"reader-trigger__button iconSet",title:"Leseansicht","aria-label":"Leseansicht anzeigen"}," chrome_reader_mode ")])):oc("",!0)}},yS=window.Vue.createVNode,vS=window.Vue.normalizeClass,bS=window.Vue.openBlock,ES=window.Vue.createElementBlock,kS={__name:"AccessibilityMeta",props:{element:{type:Object}},setup(e){const t=e;return(n,s)=>{var i,r;return bS(),ES("div",{class:vS(["element accessibility-meta","--align-"+((r=(i=t==null?void 0:t.element)==null?void 0:i.data)==null?void 0:r.align)])},[yS(bu)],2)}}},SS={name:"SoylentAnchor",props:["element"]},AS=window.Vue.createElementVNode,CS=window.Vue.normalizeClass,TS=window.Vue.openBlock,PS=window.Vue.createElementBlock,VS=["id"];function DS(e,t,n,s,i,r){return TS(),PS("div",{class:CS(["element",n.element.type,n.element.subtype])},[AS("div",{id:n.element.data.anchor},null,8,VS)],2)}const $S=k(SS,[["render",DS]]);class IS{constructor(t,n,s){const i=t.href||"",r=t.target||"_self";typeof i!="string"||!i.length||typeof r=="string"&&r==="_blank"||i.indexOf(":")>0&&i.substr(0,n.length)!==n&&["http","https","mailto","tel"].indexOf(i.substr(0,i.indexOf(":")))>=0||t.addEventListener("click",o=>{o.preventDefault();const a=t.href.substr(n.length);s.push(a).then(()=>{}).catch(()=>{})},{passive:!1})}}const NS={name:"SoylentHtml",extends:bd,mounted(){this.$refs.element.querySelectorAll("video.video-js").forEach(e=>{new CMMSPlayer(e)}),this.$refs.element.querySelectorAll("a").forEach(e=>{new IS(e,this.$baseUrl,this.$router)})}},OS=window.Vue.normalizeClass,BS=window.Vue.openBlock,RS=window.Vue.createElementBlock,xS=["innerHTML"];function LS(e,t,n,s,i,r){return BS(),RS("div",{ref:"element",class:OS(["element",e.element.type,e.element.subtype]),innerHTML:e.element.data.text||""},null,10,xS)}const MS=k(NS,[["render",LS]]),zS={name:"SoylentOpenerImage",components:{CmmsResponsiveImage:De},props:["element"]},jS=window.Vue.resolveComponent,US=window.Vue.createVNode,HS=window.Vue.normalizeClass,FS=window.Vue.openBlock,GS=window.Vue.createElementBlock;function YS(e,t,n,s,i,r){const o=jS("CmmsResponsiveImage");return FS(),GS("div",{class:HS(["element",n.element.type,n.element.subtype])},[US(o,{fill:!0,image:n.element.data.model},null,8,["image"])],2)}const WS=k(zS,[["render",YS]]),KS={name:"SoylentPostKicker",props:["element"]},qS=window.Vue.toDisplayString,JS=window.Vue.normalizeClass,QS=window.Vue.openBlock,ZS=window.Vue.createElementBlock;function XS(e,t,n,s,i,r){return QS(),ZS("h2",{class:JS(["element",n.element.type,n.element.subtype,"--text-size-s --text-weight-medium"])},qS(n.element.data.text),3)}const eA=k(KS,[["render",XS]]),tA={name:"SoylentPostTeaser",props:["element"]},nA=window.Vue.normalizeClass,sA=window.Vue.openBlock,rA=window.Vue.createElementBlock,iA=["innerHTML"];function oA(e,t,n,s,i,r){return sA(),rA("h2",{class:nA(["element",n.element.type,n.element.subtype,"--text-size-l --text-weight-regular"]),innerHTML:n.element.data.text||""},null,10,iA)}const aA=k(tA,[["render",oA]]),lA={name:"SoylentSpacer",props:["element"]},cA=window.Vue.normalizeClass,dA=window.Vue.openBlock,uA=window.Vue.createElementBlock;function hA(e,t,n,s,i,r){return dA(),uA("div",{class:cA(["element",n.element.type,n.element.subtype])},null,2)}const pA=k(lA,[["render",hA]]);function _A(e){e.setAttribute("data-revive-w",window.innerWidth),e.setAttribute("data-revive-h",window.innerHeight)}function mA(e,t=!0){const n=[].slice.call(e.querySelectorAll("ins"));if(console.debug("[revive] zones",n),!n.length)return;const s=[];
2n.forEach(i=>{_A(i);const r=i.getAttribute("data-revive-id");s.indexOf(r)<0&&s.push(r)}),t&&window.reviveAsync&&s.forEach(i=>{try{window.reviveAsync[i].refresh()}catch(r){}})}const fA={name:"SoylentThirdPartyDelivery",props:["element"],computed:{html:function(){return this.element.data.zone||""},elementClass(){if(!this.element)return"";const e=["element",this.element.type,this.element.subtype];return this.element.data.class&&e.push(this.element.data.class),e},neutralMarkup(){return"neutral_markup"in this.element.data?!!this.element.data.neutral_markup:!1},minHeightDesktop(){return"min_height_desktop"in this.element.data?this.element.data.min_height_desktop:0},minHeightMobile(){return"min_height_mobile"in this.element.data?this.element.data.min_height_mobile:0},isDisabled(){return"disable_zone"in this.element.data?!!this.element.data.disable_zone:!1},minHeight(){return this.innerWidth<1025?this.minHeightMobile:this.minHeightDesktop}},mounted(){window.isDynamicRenderer||this.isDisabled||(this.$refs.container.querySelectorAll("script").forEach(e=>{const t=document.createElement("script");e.src&&(t.src=e.src+"?"+Date.now()),e.async&&(t.async=e.async),e.innerText&&(t.innerText=e.innerText),(!window.reviveAsync||this.html.indexOf("asyncjs.php")<0)&&document.body.appendChild(t)}),mA(this.$refs.container))}},wA=window.Vue.normalizeClass,gA=window.Vue.normalizeStyle,yA=window.Vue.openBlock,vA=window.Vue.createElementBlock,bA=window.Vue.createCommentVNode,EA=["innerHTML"];function kA(e,t,n,s,i,r){return r.isDisabled?bA("",!0):(yA(),vA("div",{key:0,ref:"container",class:wA(r.elementClass),innerHTML:r.html,style:gA("min-height:".concat(r.minHeight,"px"))},null,14,EA))}const SA=k(fA,[["render",kA]]),AA={name:"CmmsThumbnail",components:{CmmsResponsiveImage:De},props:{image:{type:Object,required:!0},maxHeight:{type:Number,default:0},fill:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},computed:{figureStyle:function(){return 0<this.maxHeight?"max-height: ".concat(this.maxHeight,"px;"):""}}},CA=window.Vue.resolveComponent,TA=window.Vue.createVNode,PA=window.Vue.normalizeClass,VA=window.Vue.createElementVNode,ac=window.Vue.openBlock,lc=window.Vue.createElementBlock,DA=window.Vue.createCommentVNode,$A=window.Vue.normalizeStyle,IA=["innerHTML"];function NA(e,t,n,s,i,r){const o=CA("CmmsResponsiveImage");return ac(),lc("figure",{style:$A(r.figureStyle)},[VA("picture",{class:PA([n.zoom?"-zoom":""])},[TA(o,{fill:n.fill,image:n.image,"max-height":n.maxHeight,zoom:n.zoom},null,8,["fill","image","max-height","zoom"])],2),n.image.copyright?(ac(),lc("figcaption",{key:0,innerHTML:n.image.copyright},null,8,IA)):DA("",!0)],4)}const Eu=k(AA,[["render",NA]]),OA={name:"CmmsPlayer",data:function(){return{playerReference:null,wrapperStyle:"background:black;"}},props:["element"],computed:{hasMediaData(){return!!this.element.data.media_data},containerClass(){let e="videojs-player-container";return this.player.config&&this.player.config.playlist&&(e+=" -with-playlist"),e},playerHtml(){if(!this.hasMediaData)return!1;let e="";return this.player&&this.player.html&&(e=this.player.html),e},player(){let e=null;return this.element.data.media_data.model.player&&(e=this.element.data.media_data.model.player),e},mediaObject(){return this.element.data.media_data}},methods:{initCMMSPlayer:function(){window.CMMSPlayer&&(this.playerReference=new window.CMMSPlayer(document.getElementById(this.player.id)))},initPlayer:function(){this.$nextTick(()=>{this.playerHtml.length&&this.initCMMSPlayer()})},videoEnded:function(){this.$emit("ended")}},mounted(){this.initPlayer()},beforeUnmount(){if(this.playerReference)try{this.playerReference.destroy()}catch(e){}}},BA=window.Vue.normalizeClass,RA=window.Vue.normalizeStyle,xA=window.Vue.openBlock,LA=window.Vue.createElementBlock,MA=window.Vue.createCommentVNode,zA=["innerHTML"];function jA(e,t,n,s,i,r){return r.playerHtml?(xA(),LA("div",{key:0,class:BA(r.containerClass),ref:"playerContainer",style:RA(e.wrapperStyle),innerHTML:r.playerHtml,onEnded:t[0]||(t[0]=(...o)=>r.videoEnded&&r.videoEnded(...o))},null,46,zA)):MA("",!0)}const cc=k(OA,[["render",jA]]),UA={name:"SoylentMediaElements",components:{CmmsPlayer:cc,CmmsThumbnail:Eu},props:{element:{type:Object,required:!0},fill:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},computed:{usePlayer:function(){if(this.element&&this.element.data.media_data)return["video","videolivestream","audio","audiolivestream","playlist"].includes(this.element.data.media_data.type)},isImage:function(){return this.element.data.media_data?this.element.data.media_data.type==="image":!1},maxHeight:function(){return parseInt(this.element.data.height||0)},playerComponent:function(){return Ee.getByName("cmmsPlayer",cc)}}}
2,HA=window.Vue.resolveComponent,Li=window.Vue.openBlock,dc=window.Vue.createBlock,FA=window.Vue.createCommentVNode,GA=window.Vue.resolveDynamicComponent,YA=window.Vue.createElementBlock,WA={class:"media-content"};function KA(e,t,n,s,i,r){const o=HA("CmmsThumbnail");return Li(),YA("div",WA,[r.isImage?(Li(),dc(o,{key:0,image:n.element.data.media_data.model,"max-height":r.maxHeight,fill:n.fill,zoom:n.zoom},null,8,["image","max-height","fill","zoom"])):r.usePlayer?(Li(),dc(GA(r.playerComponent),{key:1,element:n.element},null,8,["element"])):FA("",!0)])}const ku=k(UA,[["render",KA]]),qA={name:"SoylentMedia",components:{CroppedText:Un,SoylentMediaElements:ku},props:["element"],computed:{wrapperClass(){switch(this.element.data.media_data.type){case"image":return"--picture";case"video":case"videolivestream":return"--video";case"audio":case"audiolivestream":return"--audio";case"playlist":return"--playlist"}},usePlayer(){if(this.element)return["video","videolivestream","audio","audiolivestream","playlist"].includes(this.element.data.media_data.type)},maxHeight(){return parseInt(this.element.data.height)},noBackground(){return parseInt(this.element.data.no_background,10)===1},zoom(){return parseInt(this.element.data.zoom,10)===1}}},uc=window.Vue.resolveComponent,JA=window.Vue.createVNode,QA=window.Vue.toDisplayString,rr=window.Vue.openBlock,Mi=window.Vue.createElementBlock,zi=window.Vue.createCommentVNode,ZA=window.Vue.createBlock,XA=window.Vue.normalizeClass,eC={key:0,class:"media__entry"},tC={key:0,class:"media__entry__title --text-size-l --text-weight-medium"};function nC(e,t,n,s,i,r){const o=uc("SoylentMediaElements"),a=uc("CroppedText");return rr(),Mi("div",{class:XA(["element",n.element.type,n.element.subtype,r.wrapperClass,r.noBackground?"--disable-background":""])},[JA(o,{element:n.element,zoom:r.zoom},null,8,["element","zoom"]),n.element.data.headline||n.element.data.subline?(rr(),Mi("div",eC,[n.element.data.headline?(rr(),Mi("div",tC,QA(n.element.data.headline),1)):zi("",!0),n.element.data.subline?(rr(),ZA(a,{key:1,class:"media__entry__subline",text:n.element.data.subline,lines:3},null,8,["text"])):zi("",!0)])):zi("",!0)],2)}const sC=k(qA,[["render",nC]]),rC={name:"SoylentOpenerMedia",components:{SoylentMediaElements:ku},props:["element"],computed:{media(){try{return this.element.data.media_data.model}catch(e){return null}},usePlayer(){if(this.element)return["video","videolivestream","audio","audiolivestream","playlist"].includes(this.element.data.media_data.type)}}},iC=window.Vue.resolveComponent,oC=window.Vue.createVNode,aC=window.Vue.normalizeClass,lC=window.Vue.openBlock,cC=window.Vue.createElementBlock;function dC(e,t,n,s,i,r){const o=iC("SoylentMediaElements");return lC(),cC("div",{class:aC(["element",n.element.type,"opener-media",r.usePlayer?"--player":""])},[oC(o,{element:n.element},null,8,["element"])],2)}const uC=k(rC,[["render",dC]]),hC="teaser_type_audio",pC="teaser_type_channel",ir=window.Vue.createElementVNode,_C=window.Vue.openBlock,mC=window.Vue.createElementBlock,fC={class:"transcript"},wC={class:"transcript__content"},gC=["innerHTML"],yC={__name:"Transcript",props:{transcript:{type:Text,required:!0}},setup(e){return(t,n)=>(_C(),mC("details",fC,[n[1]||(n[1]=ir("summary",{class:"transcript__summary"},"Transkript",-1)),ir("section",wC,[ir("div",{class:"transcript__content__scrollcontainer",innerHTML:e.transcript},null,8,gC),n[0]||(n[0]=ir("small",{class:"subtitle-ki-information"},"Transkript wurden automatisiert erstellt",-1))])]))}},vC={name:"SoylentRadioAudioChannelTeaserBase",components:{CmmsThumbnail:Eu,Transcript:yC,CmmsResponsiveImage:De,AppPlayerControlPlay:cn,AppPlayerProgress:Ur},props:["element"],data:function(){return{}},computed:{...Ve("player",{getChannelData:"channelData"}),label(){},isPlaying(){},channelId(){},audioModel(){},podcastObject(){},backgroundImage(){},isChannelTeaser(){return this.type===pC}},methods:{triggerAudio:function(){}}},or=window.Vue.resolveComponent,hc=window.Vue.createVNode,Ht=window.Vue.openBlock,ds=window.Vue.createElementBlock,ar=window.Vue.createCommentVNode,ji=window.Vue.toDisplayString,Dt=window.Vue.createElementVNode,pc=window.Vue.createBlock,bC=window.Vue.normalizeClass,EC=window.Vue.Fragment,kC={class:"audio-teaser__player"},SC={class:"audio-teaser__player__main__label"},AC={key:0,class:"audio-teaser__progress"},CC={class:"player-progress__time --duration --text-size-xxs"},TC={key:1,class:"ai-label"};function PC(e,t,n,s,i,r){var u;const o=or("CmmsThumbnail"),a=or("AppPlayerControlPlay"),l=or("AppPlayerProgress"),c=or("Transcript");return Ht(),ds(EC,null,[Dt("div",{class:bC(["element",n.element.type,"audio-teaser",r.backgroundImage?"--background":"",r.isChannelTeaser?"--channel":"--audio"])},[r.backgroundImage?(Ht(),ds("div",{key:0,class:"audio-teaser__background",onClick:t[0]||(t[0]=(...d)=>r.triggerAudio&&r.triggerAudio(...d))},[hc(o,{image:r.backgroundImage},null,8,["image"])])):ar("",!0),Dt("div",kC,[Dt("div",{class:"audio-teaser__player__main",onClick:t[1]||(t[1]=(...d)=>r.triggerAudio&&r.triggerAudio(...d))},[hc(a,{channelId:r.channelId,"audio-object":r.audioModel,"podcast-object":r.podcastObject,ref:"playButton"},null,8,["channelId","audio-object","podcast-object"]),Dt("span",SC,ji(r.label),1)]),r.isChannelTeaser?ar("",!0):(Ht(),ds("div",AC,[r.isPlaying?(Ht(),pc(l,{key:0})):(Ht(),ds("div",{key:1,class:"player-progress --placeholder",onClick:t[2]||(t[2]=(...d)=>r.triggerAudio&&r.triggerAudio(...d))},[t[3]||(t[3]=Dt("div",{class:"player-progress__time --current --text-size-xxs"},"00:00",-1)),t[4]||(t[4]=Dt("div",{class:"player-progress__bar"},[Dt("div",{class:"player-progress__bar__background"})],-1)),Dt("div",CC,ji(r.audioModel.duration),1)]))]))]),r.audioModel&&((u=r.audioModel)!=null&&u.ai_label)?(Ht(),ds("span",TC,ji(r.audioModel.ai_label),1)):ar("",!0)],2),!r.isChannelTeaser&&r.audioModel.transcript?(Ht(),pc(c,{key:0,transcript:r.audioModel.transcript},null,8,["transcript"])):ar("",!0)],64)}const VC=k(vC,[["render",PC]]),DC={name:"SoylentRadioAudioTeaser",extends:VC,data(){return{type:hC}},computed:{...Ve("player",["playerState","currentTrack"]),label(){return"headline"in this.element.data&&this.element.data.headline!==""?this.element.data.headline:"media_title_custom"in this.element.data&&this.element.data.media_title_custom!==""?this.element.data.media_title_custom:this.element.data.audio_data.model.title},audioModel(){return this.element&&"audio_data"in this.element.data?this.element.data.audio_data.model:null},podcastObject(){return this.element&&"podcast"in this.element.data?this.element.data.podcast:null},backgroundImage(){var e;return this.element.data.image_data?this.element.data.image_data.model:(e=this.element.data.audio_data.model.image)!=null?e:null},isPlaying(){return this.currentTrack&&this.currentTrack.id===this.audioModel.post_id}},methods:{triggerAudio:function(){this.$refs.playButton.togglePlayer()}}},$C={name:"SoylentRadioCta",components:{SoylentLink:ct}
2,props:["element"],computed:{buttonLabel(){return this.useHistoryBack?this.element.data.history_back_text?this.element.data.history_back_text:"zurück":this.element.data.text?this.element.data.text:"Mehr"},blank(){return!!this.element.data._blank},icon(){return this.element.data.selected_icon},icon_position(){return this.element.data.icon_position},classes(){let e=["element",this.element.type,"button"];return this.element.data.display_as_text&&e.push("--text-link"),e},useHistoryBack:function(){return!!(this.element&&this.element.data.history_back&&window.history.length>1)},componentCallback:function(){return this.useHistoryBack?()=>{this.$router.back()}:!1}}},Ui=window.Vue.toDisplayString,Hi=window.Vue.openBlock,Fi=window.Vue.createElementBlock,_c=window.Vue.createCommentVNode,mc=window.Vue.createElementVNode,IC=window.Vue.resolveComponent,NC=window.Vue.normalizeClass,OC=window.Vue.withCtx,BC=window.Vue.createVNode,RC={class:"button-container"},xC={class:"button__label"},LC={key:0,class:"button__icon iconSet"},MC={class:"button__text --text-size-s"},zC={key:1,class:"button__icon iconSet"};function jC(e,t,n,s,i,r){const o=IC("soylent-link");return Hi(),Fi("div",RC,[BC(o,{class:NC(r.classes),url:n.element.data.link,blank:r.blank,callback:r.componentCallback},{default:OC(()=>[mc("span",xC,[r.icon&&r.icon_position==="left"?(Hi(),Fi("span",LC,Ui(r.icon),1)):_c("",!0),mc("span",MC,Ui(r.buttonLabel),1),r.icon&&r.icon_position==="right"?(Hi(),Fi("span",zC,Ui(r.icon),1)):_c("",!0)])]),_:1},8,["class","url","blank","callback"])])}const UC=k($C,[["render",jC]]),HC={name:"SoylentRadioHeadline",props:["element"],computed:{icon(){return this.element?this.element.data.selected_icon:null},headlineInner(){let e="";return this.element&&(e+=this.element.data.text),e},sublineInner(){return this.element?this.element.data.subline:""},elementClass(){return this.element?this.element.type:""},headlineTag(){return this.element&&this.element.data.tag?this.element.data.tag:"h1"}}},lr=window.Vue.openBlock,Gi=window.Vue.createElementBlock,fc=window.Vue.createCommentVNode,FC=window.Vue.resolveDynamicComponent,GC=window.Vue.createBlock,YC=window.Vue.createElementVNode,WC=window.Vue.normalizeClass,KC=["innerHTML"],qC={class:"headline__text"},JC=["innerHTML"];function QC(e,t,n,s,i,r){return lr(),Gi("div",{class:WC(["element",r.elementClass,"headline","--type-".concat(r.headlineTag)])},[r.icon?(lr(),Gi("i",{key:0,class:"iconSet --text-size-xxxl",innerHTML:r.icon},null,8,KC)):fc("",!0),YC("div",qC,[(lr(),GC(FC(r.headlineTag),{class:"headline__title --text-size-xxxl --text-weight-medium",innerHTML:r.headlineInner},null,8,["innerHTML"])),r.sublineInner!==""?(lr(),Gi("span",{key:0,class:"headline__subline --text-size-xl",innerHTML:r.sublineInner},null,8,JC)):fc("",!0)])],2)}const Su=k(HC,[["render",QC]]),ZC={name:"IdvlEditorSlot",extends:Ed,computed:{hasHeadline:function(){return!!(this.element.slot_settings.soylent_headline||this.element.slot_settings.soylentRadio_headline_subline)}}},wc=window.Vue.resolveDynamicComponent,Yi=window.Vue.openBlock,gc=window.Vue.createBlock,yc=window.Vue.createCommentVNode,XC=window.Vue.normalizeClass,eT=window.Vue.createElementBlock;function tT(e,t,n,s,i,r){return Yi(),eT("div",{class:XC(["slot",e.slotClasses])},[r.hasHeadline?(Yi(),gc(wc(e.elementHeader),{key:0,headline:e.slotHeadline,settings:e.element.slot_settings},null,8,["headline","settings"])):yc("",!0),e.element.type?(Yi(),gc(wc(e.elementComponent),{element:e.element,key:e.elementKey},null,8,["element"])):yc("",!0)],2)}const nT=k(ZC,[["render",tT]]),sT={name:"SoylentRadioIdvlEditorBlock",extends:uo,components:{CmmsResponsiveImage:De,IdvlEditorSlot:nT},props:["block"],computed:{anchor(){let e=null;return this.block.settings&&this.block.settings.soylent_anchor&&this.block.settings.soylent_anchor.length&&(e=this.block.settings.soylent_anchor),e},padding:function(){let e="--padding_default";return this.block.settings&&this.block.settings.soylent_padding&&(e="".concat(this.block.settings.soylent_padding)),e},image(){return this.block.settings&&this.block.settings.soylent_radio_bgr_image?this.block.settings.soylent_radio_bgr_image:!1},imageBlur(){return this.block.settings&&this.block.settings.soylent_radio_bgr_image_blur?this.block.settings.soylent_radio_bgr_image_blur:!1},blockWrapperClass(){let e="";return this.block.settings&&this.block.settings.soylent_class&&(e=this.block.settings.soylent_class),e}}}
2,En=window.Vue.openBlock,cr=window.Vue.createElementBlock,dr=window.Vue.createCommentVNode,vc=window.Vue.resolveComponent,bc=window.Vue.createBlock,rT=window.Vue.renderList,iT=window.Vue.Fragment,Ec=window.Vue.normalizeClass,oT=window.Vue.createElementVNode,aT=["id"],lT={key:1,class:"block__background"};function cT(e,t,n,s,i,r){const o=vc("CmmsResponsiveImage"),a=vc("idvl-editor-slot");return e.showBlock?(En(),cr("div",{key:0,class:Ec(["block-wrapper",r.padding,r.blockWrapperClass])},[r.anchor?(En(),cr("div",{key:0,class:"block-anchor",id:r.anchor},null,8,aT)):dr("",!0),r.image?(En(),cr("div",lT,[r.image?(En(),bc(o,{key:0,image:r.image,fill:!0,blur:r.imageBlur},null,8,["image","blur"])):dr("",!0)])):dr("",!0),oT("div",{class:Ec(["block",n.block.block_type])},[(En(!0),cr(iT,null,rT(n.block.elements,l=>(En(),bc(a,{key:"el-".concat(Date.now()).concat(Math.random()*1e5),element:l},null,8,["element"]))),128))],2)],2)):dr("",!0)}const dT=k(sT,[["render",cT]]),uT={components:{AppPlayerControlPlay:cn,CmmsResponsiveImage:De},props:["element"],data(){return{channelPlayed:!1}},computed:{...Ve("player",{getChannelData:"channelData",getDefaultChannelId:"defaultChannelId",getCurrentChannelId:"currentChannelId",currentShow:"currentShow",currentTrack:"currentChannelTrack",channelTrackById:"channelTrackById",trackCover:"trackCover",channels:"channels",playerState:"playerState",playerMode:"playerMode"}),channelId(){return this.channelPlayed?this.getCurrentChannelId:this.element&&this.element.data.channel_id>0?this.element.data.channel_id:this.getDefaultChannelId},currentChannelID(){return this.channelId},channelData(){return this.getChannelData(this.channelId)},showData(){return this.channelData&&this.channelData.show||null},title(){return this.showData&&this.showData.title||null},excerpt(){return this.showData&&this.showData.excerpt||null},showImage(){return this.showData&&this.showData.thumb_id>0?this.showData.image_thumb:null},backgroundImageId(){return this.element.data.media_id},backgroundImage(){return this.backgroundImageId?window.cmms_thumbs_base+"1024x/".concat(this.backgroundImageId,".webp"):this.firstTrackCover},ctaElement(){return{data:{text:"Jetzt live hören"}}},show_image_url(){return"".concat(window.cmms_thumbs_base,"x200/").concat(state.player.audioObject.image.media_id,".webp")},currentTrackTitle(){return this.channelTrackById(this.channelId)?this.channelTrackById(this.channelId).title:""},currentTrackCover(){return this.currentTrack?this.currentTrack.cover:null},currentTrackInterpret(){return this.channelTrackById?this.channelTrackById(this.channelId).interpret:""},firstTrackCover(){let e=this.trackCover(0,this.channelId);return!e&&this.channelData&&this.channelData.default_cover_id&&this.channelData.default_cover_id!=null&&(e=this.channelData.default_cover_id?window.cmms_thumbs_base+"12
20x120c/".concat(this.channelData.default_cover_id,".webp"):null),e},isOnAir(){return this.playerMode===ge&&this.getCurrentChannelId===this.channelId}},methods:{...Ue("player",["setPlayerChannelId"]),triggerPlayer:function(){this.$refs.playButton.togglePlayer()},selectChannel:function(e){this.setPlayerChannelId({channelId:e,autoplay:!0})}},watch:{playerState:function(e,t){e===bt&&this.playerMode===ge&&(this.channelPlayed=!0)}}};function hT(e,t,n,s,i,r){return null}const Au=k(uT,[["render",hT]]),pT={name:"SoylentRadioNowPlaying",extends:Au,methods:{onChannelSelectChange(e){this.selectChannel(e.target.value)}},computed:{showChannels(){return Object.keys(this.channels).length>1}}},kc=window.Vue.normalizeClass,Ye=window.Vue.openBlock,st=window.Vue.createElementBlock,$t=window.Vue.createCommentVNode,us=window.Vue.toDisplayString,re=window.Vue.createElementVNode,Sc=window.Vue.resolveComponent,_T=window.Vue.createVNode,mT=window.Vue.createBlock,fT=window.Vue.renderList,wT=window.Vue.Fragment,gT=["src"],yT={class:"now-playing__overlay"},vT={class:"now-playing__current"},bT={key:0,class:"now-playing__current__show"},ET={class:"--text-size-xxxl --text-weight-medium"},kT={class:"--text-size-xl"},ST={class:"now-playing__showimg"},AT={class:"now-playing__info"},CT={class:"now-playing__info__track"},TT={key:0,class:"now-playing__info__track__onair"},PT={class:"now-playing__info__track__interpret --text-size-xxl --text-weight-medium"},VT={class:"now-playing__info__track__title --text-size-m"},DT={class:"now-playing__info__channel"},$T={key:0,class:"now-playing__info__channel__select"},IT=["value","selected"],NT={class:"now-playing__info__channel__cover"},OT={class:"now-playing__info__channel__cover__entry"},BT=["src"],RT={class:"now-playing__info__channel__cover__entry"},xT=["src"],LT={class:"now-playing__info__channel__cover__entry"},MT=["src"];function zT(e,t,n,s,i,r){const o=Sc("AppPlayerControlPlay"),a=Sc("CmmsResponsiveImage");return Ye(),st("div",{class:kc(["element",e.element.type,"now-playing"])},[e.backgroundImage?(Ye(),st("img",{key:0,class:kc(["now-playing__background",e.backgroundImageId?"--background-id":"--background-track"]),src:e.backgroundImage},null,10,gT)):$t("",!0),re("div",yT,[re("div",vT,[e.title?(Ye(),st("div",bT,[re("span",ET,us(e.title),1),re("span",kT,us(e.excerpt),1)])):$t("",!0),re("div",{class:"now-playing__current__player",onClick:t[0]||(t[0]=(...l)=>e.triggerPlayer&&e.triggerPlayer(...l))},[_T(o,{channelId:e.channelId,ref:"playButton"},null,8,["channelId"]),t[2]||(t[2]=re("span",{class:"now-playing__current__player__cta --text-weight-bold","data-alttext":"Jetzt live"},[re("span",null,"Jetzt live hören")],-1))])]),re("div",ST,[e.showImage?(Ye(),mT(a,{key:0,image:e.showImage},null,8,["image"])):$t("",!0)]),re("div",AT,[re("div",CT,[e.isOnAir?(Ye(),st("div",TT,[...t[3]||(t[3]=[re("span",{class:"now-playing__info__track__onair__equalizer"},[re("span"),re("span"),re("span")],-1),re("span",{class:"now-playing__info__track__onair__label --text-weight-medium"}," on Air ",-1)])])):$t("",!0),re("span",PT,us(e.currentTrackInterpret),1),re("span",VT,us(e.currentTrackTitle),1)]),re("div",DT,[r.showChannels?(Ye(),st("div",$T,[re("select",{class:"--text-size-s",onChange:t[1]||(t[1]=l=>r.onChannelSelectChange(l))},[(Ye(!0),st(wT,null,fT(e.channels,(l,c,u)=>(Ye(),st("option",{value:c,key:"channel_select_option_".concat(u),selected:c===e.channelId},us(l.label),9,IT))),128))],32),t[4]||(t[4]=re("span",{class:"now-playing__info__channel__select__icon"},null,-1))])):$t("",!0),re("div",NT,[re("div",OT,[e.firstTrackCover?(Ye(),st("img",{key:0,src:e.firstTrackCover,class:"--first-track"},null,8,BT)):$t("",!0)]),re("div",RT,[e.trackCover(1,e.channelId)?(Ye(),st("img",{key:0,src:e.trackCover(1,e.channelId)},null,8,xT)):$t("",!0)]),re("div",LT,[e.trackCover(2,e.channelId)?(Ye(),st("img",{key:0,src:e.trackCover(2,e.channelId)},null,8,MT)):$t("",!0)])])])])])],2)}const jT=k(pT,[["render",zT]]);function UT(e,t,n="",s="",i=""){return"".concat(window.cmms_thumbs_base).concat(t,"x").concat(n).concat(s).concat(i,"/").concat(e,".jpg")}const HT={name:"SoylentRadioPodcastOpener",components:{CmmsResponsiveImage:De}
2,props:["element"],computed:{podcastModel(){return this.element.data&&this.element.data.model?this.element.data.model:null},mediaThumbnailId:function(){try{return this.podcastModel.image.media_id}catch(e){return null}},overlayStyle:function(){return{"background-image":"url(".concat(UT(this.mediaThumbnailId,128,"","eb_40x20","/f:jpg"),")")}},podcastKicker(){return this.podcastModel?this.podcastModel.kicker:""},podcastTeaser(){return this.podcastModel?this.podcastModel.teaser:""},podcastTitle(){return this.podcastModel?this.podcastModel.title:""}}},FT=window.Vue.normalizeStyle,It=window.Vue.createElementVNode,GT=window.Vue.resolveComponent,Ac=window.Vue.openBlock,YT=window.Vue.createBlock,WT=window.Vue.createCommentVNode,Cc=window.Vue.toDisplayString,KT=window.Vue.normalizeClass,qT=window.Vue.createElementBlock,JT={class:"podcast-opener__content"},QT={class:"podcast-opener__media"},ZT={class:"podcast-opener__entry"},XT={class:"podcast-opener__kicker"},eP={class:"podcast-opener__kicker__label --text-size-s"},tP={class:"podcast-opener__title --text-size-xxl --text-weight-medium"},nP=["innerHTML"];function sP(e,t,n,s,i,r){const o=GT("CmmsResponsiveImage");return Ac(),qT("div",{class:KT(["element",n.element.type,"podcast-opener"])},[It("div",{class:"podcast-opener__overlay",style:FT(r.overlayStyle)},null,4),It("div",JT,[It("picture",QT,[r.podcastModel&&r.podcastModel.image?(Ac(),YT(o,{key:0,image:r.podcastModel.image},null,8,["image"])):WT("",!0)]),It("span",ZT,[It("span",XT,[It("span",eP,Cc(r.podcastKicker),1)]),It("span",tP,Cc(r.podcastTitle),1),It("span",{class:"podcast-opener__teaser --text-size-l",innerHTML:r.podcastTeaser},null,8,nP)])])],2)}const rP=k(HT,[["render",sP]]),iP={name:"SoylentPostMeta",components:{ReaderTrigger:bu},props:["element"],computed:{authorName:function(){return this.element.data&&this.element.data.author&&this.element.data.author.name?this.element.data.author.name:null},showReader(){return!("hide_reader"in this.element.data&&this.element.data.hide_reader)}}},hs=window.Vue.toDisplayString,Nt=window.Vue.openBlock,Ft=window.Vue.createElementBlock,Gt=window.Vue.createCommentVNode,oP=window.Vue.createTextVNode,Tc=window.Vue.createElementVNode,aP=window.Vue.resolveComponent,lP=window.Vue.createBlock,cP=window.Vue.normalizeClass,dP={key:0,class:"date"},uP={key:0},hP={key:1},pP={key:2,class:"post-meta__duration"},_P={class:"label"},mP={key:3,class:"zone-label --ai-label --text-size-xxs"},fP={key:4,class:"zone-label --ad-label --text-size-xxs"};function wP(e,t,n,s,i,r){const o=aP("ReaderTrigger");return Nt(),Ft("div",{class:cP(["element",n.element.type,"post-meta"])},[n.element.data.date?(Nt(),Ft("span",dP,[oP(hs(n.element.data.date)+" ",1),n.element.data.time?(Nt(),Ft("span",uP,"· "+hs(n.element.data.time)+" Uhr",1)):Gt("",!0)])):Gt("",!0),r.authorName?(Nt(),Ft("span",hP,hs(r.authorName),1)):Gt("",!0),n.element.data.duration?(Nt(),Ft("span",pP,[t[0]||(t[0]=Tc("span",{class:"iconSet"},"play_circle_outline",-1)),Tc("span",_P,hs(n.element.data.duration),1)])):Gt("",!0),n.element.data.ai_label?(Nt(),Ft("span",mP,hs(n.element.data.ai_label),1)):Gt("",!0),n.element.data.show_ad_label?(Nt(),Ft("span",fP,"Anzeige")):Gt("",!0),r.showReader?(Nt(),lP(o,{key:5})):Gt("",!0)],2)}const gP=k(iP,[["render",wP]]),yP={name:"SoylentRadioOpenerPosts",props:["element"],components:{CmmsResponsiveImage:De,CroppedText:Un,SoylentLink:ct},computed:{elements(){return this.element.data.items},mainPost(){return this.elements[0]},teaserPost(){return this.elements.slice(1)}}},Wi=window.Vue.resolveComponent,Yt=window.Vue.openBlock,ur=window.Vue.createBlock,hr=window.Vue.createCommentVNode,Ki=window.Vue.withCtx,qi=window.Vue.createVNode,ps=window.Vue.toDisplayString,Le=window.Vue.createElementVNode,Ji=window.Vue.createElementBlock,vP=window.Vue.renderList,bP=window.Vue.Fragment,EP=window.Vue.normalizeClass,kP={class:"opener-posts__main"},SP={class:"opener-posts__main__news"},AP={class:"opener-posts__main__news__entry"},CP={class:"opener-posts__main__news__entry__meta --text-size-s"},TP={key:0,class:"opener-posts__main__news__entry__meta --text-size-s"},PP={class:"opener-posts__main__news__entry__headline"},VP={class:"opener-posts__teaser"},DP={class:"opener-posts__teaser__news__overlay"},$P={class:"opener-posts__teaser__news__overlay__meta --text-size-xxs"},IP={class:"opener-posts__teaser__news__overlay__headline --text-size-l --text-weight-medium"};function NP(e,t,n,s,i,r){const o=Wi("CmmsResponsiveImage"),a=Wi("soylent-link"),l=Wi("CroppedText");
2return Yt(),Ji("div",{class:EP(["element",n.element.type,"opener-posts"])},[Le("div",kP,[r.mainPost.image?(Yt(),ur(o,{key:0,class:"opener-posts__main__background",image:r.mainPost.image,fill:!0,blur:!0},null,8,["image"])):hr("",!0),Le("div",SP,[qi(a,{url:r.mainPost.url,class:"opener-posts__main__news__image"},{default:Ki(()=>[r.mainPost.image?(Yt(),ur(o,{key:0,image:r.mainPost.image},null,8,["image"])):hr("",!0)]),_:1},8,["url"]),Le("div",AP,[Le("span",CP,ps(r.mainPost.date.datetime_txt),1),r.mainPost.kicker?(Yt(),Ji("span",TP,ps(r.mainPost.kicker),1)):hr("",!0),Le("h3",PP,ps(r.mainPost.title),1),qi(l,{class:"opener-posts__main__news__entry__content --text-size-l",text:r.mainPost.excerpt,lines:3},null,8,["text"]),qi(a,{url:r.mainPost.url,class:"button"},{default:Ki(()=>[...t[0]||(t[0]=[Le("span",{class:"button__label"},[Le("span",{class:"button__icon iconSet"},"notes"),Le("span",{class:"button__text"},"Weiterlesen")],-1)])]),_:1},8,["url"])])])]),Le("div",VP,[(Yt(!0),Ji(bP,null,vP(r.teaserPost,(c,u)=>(Yt(),ur(a,{class:"opener-posts__teaser__news",key:"item_".concat(u),url:c.url},{default:Ki(()=>[c.image?(Yt(),ur(o,{key:0,class:"opener-posts__teaser__news__image",image:c.image,fill:!0},null,8,["image"])):hr("",!0),Le("div",DP,[Le("span",$P,ps(c.date.datetime_txt),1),Le("span",IP,ps(c.title),1)])]),_:2},1032,["url"]))),128))])],2)}const OP=k(yP,[["render",NP]]),BP={name:"ElementHeader",props:["headline","settings"],components:{SoylentRadioHeadline:Su},computed:{headlineData(){return{data:{tag:"h2",text:this.headline,subline:this.settings.soylentRadio_headline_subline,selected_icon:this.settings.soylentRadio_headline_icon}}}}},RP=window.Vue.resolveComponent,xP=window.Vue.openBlock,LP=window.Vue.createBlock;function MP(e,t,n,s,i,r){const o=RP("SoylentRadioHeadline");return xP(),LP(o,{element:r.headlineData,class:"element__headline"},null,8,["element"])}const zP=k(BP,[["render",MP]]),jP={name:"HeaderTools",components:{SoylentLink:ct},computed:{currentData(){return this.$store.getters.currentData?this.$store.getters.currentData:{}},currentTemperature(){if(this.currentData.weather&&this.currentData.weather.length>0)return Math.round(this.currentData.weather[0].temperature)},weatherIcon(){if(this.currentData.weather&&this.currentData.weather.length>0)return this.currentData.weather[0].icon},speedcamAmount(){if(this.currentData.speedcams&&this.currentData.speedcams.amount>0)return this.currentData.speedcams.amount},trafficAmount(){if(this.currentData.traffic&&this.currentData.traffic.amount>0)return this.currentData.traffic.amount},weatherUrl(){let e=null;try{e=window.soylent_settings.child_settings.header_pages.weather}catch(t){}return e},trafficUrl(){let e=null;try{e=window.soylent_settings.child_settings.header_pages.traffic}catch(t){}return e}},methods:{closeMenu:function(){this.$store.dispatch("closeMenu")}}},Qi=window.Vue.createElementVNode,Zi=window.Vue.toDisplayString,Wt=window.Vue.openBlock,pr=window.Vue.createElementBlock,kn=window.Vue.createCommentVNode,UP=window.Vue.resolveComponent,Xi=window.Vue.withCtx,eo=window.Vue.createBlock,HP=window.Vue.normalizeClass,FP={class:"header-tools"},GP={key:0,class:"header-tools__item__label --highlight"},YP={key:0,class:"header-tools__item__label --highlight"},WP={key:0,class:"header-tools__item__label --text-weight-medium"};function KP(e,t,n,s,i,r){const o=UP("soylent-link");return Wt(),pr("div",FP,[r.trafficUrl?(Wt(),eo(o,{key:0,onClick:r.closeMenu,url:r.trafficUrl,title:"Blitzer","aria-label":"Blitzer",class:"header-tools__item --speedcam"},{default:Xi(()=>[t[0]||(t[0]=Qi("span",{class:"header-tools__item__icon iconSet"},"videocam",-1)),r.speedcamAmount?(Wt(),pr("span",GP,Zi(r.speedcamAmount),1)):kn("",!0)]),_:1},8,["onClick","url"])):kn("",!0),r.trafficUrl?(Wt(),eo(o,{key:1,onClick:r.closeMenu,url:r.trafficUrl,title:"Verkehrsmeldungen","aria-label":"Verkehrsmeldungen",class:"header-tools__item --traffic"},{default:Xi(()=>[t[1]||(t[1]=Qi("span",{class:"header-tools__item__icon iconSet"},"directions_car",-1)),r.trafficAmount?(Wt(),pr("span",YP,Zi(r.trafficAmount),1)):kn("",!0)]),_:1},8,["onClick","url"])):kn("",!0),r.weatherUrl?(Wt(),eo(o,{key:2,onClick:r.closeMenu,url:r.weatherUrl,title:"Wetter","aria-label":"Wetter",class:"header-tools__item --weather"},{default:Xi(()=>[Qi("span",{class:HP(["header-tools__item__icon  wi",r.weatherIcon])},null,2),r.currentTemperature?(Wt(),pr("span",WP,Zi(r.currentTemperature)+"° ",1)):kn("",!0)]),_:1},8,["onClick","url"])):kn("",!0)])}const qP=k(jP,[["render",KP]]);class Pc{constructor(){ve(this,"id",null);ve(this,"image",null);ve(this,"postType","");ve(this,"isAction",!1);ve(this,"category",null);ve(this,"icon","");ve(this,"date","");ve(this,"duration","");ve(this,"kicker","");ve(this,"title","");ve(this,"description","");ve(this,"excerpt","");ve(this,"url","");ve(this,"isAd",!1);ve(this,"timestamp",null)}}const JP={name:"PostShortcut",components:{SoylentLink:ct,CmmsResponsiveImage:De,CroppedText:Un},data(){return{element:null}},props:{model:{type:Pc,default:null},post:{type:Object,default:null},showCategory:{type:Boolean,default:!1},addActionClass:{type:Boolean,default:!1}},computed:{getDate(){let e=this.element.date.datetime_txt;return(this.element.postType==="post"||this.element.postType==="cmms_media"||this.element.postType==="galerie")&&(e={begin:this.$filters.padLeft(this.element.date.d),end:". "+this.element.date.m_txt+" "+this.element.date.y+" "+this.element.date.time_txt}),e},dateEnd(){return this.getDate?this.getDate.end:""},duration(){return this.element.duration},getIcon(){let e=null;return this.element.postType==="cmms_media"?e="play_arrow":this.element.postType==="post"?e="notes":this.element.postType==="galerie"&&(e="collections"),e},isAction(){return this.element?this.element.isAction:!1},getUrl(){return this.element?this.element.url:""}},mounted(){this.element===null&&this.post!==null?(this.element=new Pc,this.element.postType=this.post.post_type,this.element.date=this.post.date,this.element.title=this.post.title,this.element.kicker=this.post.kicker,this.element.url=this.post.url,this.element.image=this.post.image,this.element.isAction=!1,this.element.isAd=this.post.show_ad_label,this.post.excerpt&&this.post.excerpt.length>0?this.element.excerpt=this.post.excerpt:this.post.teaser&&this.post.teaser.length>0&&(this.element.excerpt=this.post.teaser),this.post.duration&&(this.element.duration=this.post.duration),"categories"in this.post?this.element.category=this.post.categories.length>0?this.post.categories[0].name:null:this.element.category=null):this.element=this.model}}
2,to=window.Vue.resolveComponent,Me=window.Vue.openBlock,Vc=window.Vue.createBlock,We=window.Vue.createCommentVNode,rt=window.Vue.createElementBlock,Dc=window.Vue.createElementVNode,Kt=window.Vue.toDisplayString,QP=window.Vue.createTextVNode,ZP=window.Vue.createVNode,XP=window.Vue.normalizeClass,eV=window.Vue.withCtx,tV={key:0,class:"post-shortcut__thumbnail"},nV={key:1,class:"post-shortcut__entry"},sV={key:0,class:"post-shortcut__entry__category --text-size-xxs"},rV={key:1,class:"post-shortcut__entry__meta"},iV={key:0,class:"post-shortcut__entry__meta__label --text-size-xxs"},oV={key:0,class:"iconSet --text-size-s"},aV={key:1,class:"--text-weight-medium"},lV={key:2,class:"post-shortcut__entry__meta__label__duration"},cV={key:1,class:"post-shortcut__entry__meta__zone-label --text-size-xxs"},dV={key:2,class:"post-shortcut__entry__kicker --text-size-xs"},uV={class:"post-shortcut__entry__title --text-size-l --text-weight-medium"};function hV(e,t,n,s,i,r){const o=to("CmmsResponsiveImage"),a=to("CroppedText"),l=to("soylent-link");return Me(),Vc(l,{class:XP(["post-shortcut",n.addActionClass?"--action":""]),url:r.getUrl},{default:eV(()=>[i.element?(Me(),rt("span",tV,[i.element.image?(Me(),Vc(o,{key:0,image:i.element.image,fill:!0},null,8,["image"])):We("",!0)])):We("",!0),i.element?(Me(),rt("span",nV,[t[0]||(t[0]=Dc("span",{class:"post-shortcut__entry__hover"},null,-1)),!r.isAction&&i.element.category&&n.showCategory?(Me(),rt("span",sV,Kt(i.element.category),1)):We("",!0),r.isAction&&i.element.isAd||!r.isAction&&r.getDate?(Me(),rt("span",rV,[r.isAction?We("",!0):(Me(),rt("span",iV,[r.getIcon?(Me(),rt("span",oV,Kt(r.getIcon),1)):We("",!0),r.getDate?(Me(),rt("span",aV,Kt(r.getDate.begin),1)):We("",!0),QP(" "+Kt(r.dateEnd)+" ",1),r.duration?(Me(),rt("span",lV," · "+Kt(r.duration),1)):We("",!0)])),i.element.isAd?(Me(),rt("span",cV,"Anzeige")):We("",!0)])):We("",!0),i.element.kicker?(Me(),rt("span",dV,Kt(i.element.kicker),1)):We("",!0),Dc("span",uV,Kt(i.element.title),1),ZP(a,{tag:"span",class:"post-shortcut__entry__description",text:i.element.excerpt,lines:4},null,8,["text"])])):We("",!0)]),_:1},8,["class","url"])}const pV=k(JP,[["render",hV]]),I=window.Vue.defineAsyncComponent,$c={player:gw};Object.keys($c).forEach(e=>{F.registerModule(e,$c[e])});Nc.set(_S);ys.set({SoylentAccessibilityMeta:kS,SoylentAnchor:$S,SoylentHtml:MS,SoylentOpenerImage:WS,SoylentPostKicker:eA,SoylentPostTeaser:aA,SoylentShare:I(()=>T(()=>import("./Share.js"),__vite__mapDeps([0,1]))),SoylentSpacer:pA,SoylentThirdPartyDelivery:SA,SoylentActionCalendar:I(()=>T(()=>import("./ActionCalendar.js"),__vite__mapDeps([2,1]))),SoylentCrawl:I(()=>T(()=>import("./Crawl.js"),__vite__mapDeps([3,1]))),SoylentEventMeta:I(()=>T(()=>import("./EventMeta.js"),__vite__mapDeps([4,1]))),SoylentEvents:I(()=>T(()=>import("./Events.js"),__vite__mapDeps([5,6,7,8,9,1]))),SoylentFeatureCta:I(()=>T(()=>import("./FeatureCta.js"),__vite__mapDeps([10,1]))),SoylentForm:I(()=>T(()=>import("./Form.js"),__vite__mapDeps([11,1]))),SoylentGallery:I(()=>T(()=>import("./Gallery.js"),__vite__mapDeps([12,13,1]))),SoylentGalleryShortcutList:I(()=>T(()=>import("./GalleryShortcutList.js"),__vite__mapDeps([14,15,9,1]))),SoylentHeadline:I(()=>T(()=>import("./Headline.js"),__vite__mapDeps([16,1]))),SoylentInPageNavigation:I(()=>T(()=>import("./InPageNavigation.js"),__vite__mapDeps([17,1]))),SoylentJobGrid:I(()=>T(()=>import("./JobGrid.js"),__vite__mapDeps([18,1]))),SoylentLastVideo:I(()=>T(()=>import("./LastVideo.js"),__vite__mapDeps([19,1]))),SoylentLine:I(()=>T(()=>import("./Line.js"),__vite__mapDeps([20,1]))),SoylentLogoSlider:I(()=>T(()=>import("./LogoSlider.js"),__vite__mapDeps([21,13,1]))),SoylentMap:I(()=>T(()=>import("./Map.js"),__vite__mapDeps([22,1]))),SoylentMediaLink:I(()=>T(()=>import("./MediaLink.js"),__vite__mapDeps([23,1]))),SoylentParallax:I(()=>T(()=>import("./Parallax.js"),__vite__mapDeps([24,1]))),SoylentPoll:I(()=>T(()=>import("./Poll.js"),__vite__mapDeps([25,1]))),SoylentPostShortcutList:I(()=>T(()=>import("./PostShortcutList.js"),__vite__mapDeps([26,27,9,1]))),SoylentRelatedContents:I(()=>T(()=>import("./RelatedContents.js"),__vite__mapDeps([28,27,6,1]))),SoylentScheduleDetail:I(()=>T(()=>import("./ScheduleDetail.js"),__vite__mapDeps([29,1]))),SoylentScheduleWidget:I(()=>T(()=>import("./ScheduleWidget.js"),__vite__mapDeps([30,1]))),SoylentShowToolbar:I(()=>T(()=>import("./ShowToolbar.js"),__vite__mapDeps([31,1]))),SoylentAuthor:I(()=>T(()=>
2import("./Author.js"),__vite__mapDeps([32,1]))),SoylentJobMeta:I(()=>T(()=>import("./JobMeta.js"),__vite__mapDeps([33,1]))),SoylentMedia:sC,SoylentOpenerMedia:uC,SoylentTeamMember:I(()=>T(()=>import("./TeamMember.js"),__vite__mapDeps([34,35,1]))),SoylentTermList:I(()=>T(()=>import("./TermList.js"),__vite__mapDeps([36,1]))),SoylentSocialEmbed:I(()=>T(()=>import("./SocialEmbed.js"),__vite__mapDeps([37,1]))),SoylentRadioAudioTeaser:DC,SoylentRadioCtaButton:UC,SoylentRadioHeadline:Su,SoylentRadioNowPlaying:jT,SoylentRadioPodcastOpener:rP,SoylentRadioOpenerPosts:OP,SoylentPostMeta:gP,SoylentRadioActions:I(()=>T(()=>import("./Actions.js"),__vite__mapDeps([38,39,1]))),SoylentRadioChannelSlider:I(()=>T(()=>import("./ChannelSlider.js"),__vite__mapDeps([40,39,1]))),SoylentRadioChannelTeaser:I(()=>T(()=>import("./ChannelTeaser.js"),__vite__mapDeps([41,1]))),SoylentRadioPlaylistWidget:I(()=>T(()=>import("./PlaylistWidget.js"),__vite__mapDeps([42,1]))),SoylentRadioPodcastEpisodes:I(()=>T(()=>import("./PodcastEpisodes.js"),__vite__mapDeps([43,9,1]))),SoylentRadioPodcastGrid:I(()=>T(()=>import("./PodcastGrid.js"),__vite__mapDeps([44,1]))),SoylentRadioPodcastTeaser:I(()=>T(()=>import("./PodcastTeaser.js"),__vite__mapDeps([45,1]))),SoylentRadioPostGrid:I(()=>T(()=>import("./PostGrid.js"),__vite__mapDeps([46,1]))),SoylentRadioPromoSlider:I(()=>T(()=>import("./PromoSlider.js"),__vite__mapDeps([47,39,1]))),SoylentRadioSongSearch:I(()=>T(()=>import("./SongSearch.js"),__vite__mapDeps([48,1]))),SoylentRadioTeam:I(()=>T(()=>import("./Team.js"),__vite__mapDeps([49,35,39,1]))),SoylentRadioTopFivePosts:I(()=>T(()=>import("./TopFivePosts.js"),__vite__mapDeps([50,1]))),SoylentRadioTraffic:I(()=>T(()=>import("./Traffic.js"),__vite__mapDeps([51,52,1,53]))),SoylentRadioTrafficMap:I(()=>T(()=>import("./TrafficMap.js"),__vite__mapDeps([52,1]))),SoylentRadioTrafficWidget:I(()=>T(()=>import("./TrafficWidget.js"),__vite__mapDeps([53,1]))),SoylentRadioWeather:I(()=>T(()=>import("./Weather.js"),__vite__mapDeps([54,1]))),SoylentRadioWeatherWidget:I(()=>T(()=>import("./WeatherWidget.js"),__vite__mapDeps([55,1]))),SoylentRadioGalleryTeaser:I(()=>T(()=>import("./GalleryTeaser.js"),__vite__mapDeps([56,15,1]))),SoylentStructuredForm:I(()=>T(()=>import("./StructuredForm.js").then(e=>e.S),[]))});Ee.set({elementHeader:zP,eventFilter:I(()=>T(()=>import("./EventFilter.js"),__vite__mapDeps([57,7,8,1]))),headerTools:qP,idvlEditorBlock:dT,postShortcut:pV});an.fullsizePlayer=!1;const _V=768,mV={name:"SoylentRadioNowPlaying",extends:Au,components:{AppPlayerControlPlay:cn,CmmsResponsiveImage:De},computed:{stationName(){return this.element.data.station_name},claim(){return this.element.data.claim},height(){return parseInt(this.element.data.height)},backgroundImageModel(){return this.isMobile?this.element.data.media_data_fallback?this.element.data.media_data_fallback.model:this.element.data.media_data?this.element.data.media_data.model:null:this.element.data.media_data?this.element.data.media_data.model:null},firstTrackCover(){let e=this.trackCover(0,this.channelId);return!e&&this.channelData&&this.channelData.default_cover_id&&this.channelData.default_cover_id!=null&&(e=this.channelData.default_cover_id?window.cmms_thumbs_base+"12
20x120c/".concat(this.channelData.default_cover_id,".webp"):null),e},isMobile(){return window.innerWidth<_V}}},Ic=window.Vue.resolveComponent,_s=window.Vue.openBlock,fV=window.Vue.createBlock,_r=window.Vue.createCommentVNode,qt=window.Vue.createElementVNode,mr=window.Vue.createElementBlock,fr=window.Vue.toDisplayString,wV=window.Vue.createVNode,gV=window.Vue.normalizeClass,yV=window.Vue.normalizeStyle,vV={class:"now-playing__background"},bV=["src"],EV={class:"now-playing__station"},kV={key:0,class:"now-playing__station__name"},SV={key:1,class:"now-playing__station__claim"},AV={class:"now-playing__artist"},CV={class:"now-playing__artist__name"},TV={class:"now-playing__artist__track"};function PV(e,t,n,s,i,r){const o=Ic("CmmsResponsiveImage"),a=Ic("AppPlayerControlPlay");return _s(),mr("div",{class:gV(["element",e.element.type,"now-playing"]),style:yV("--height:"+r.height)},[qt("div",vV,[r.backgroundImageModel?(_s(),fV(o,{key:0,image:r.backgroundImageModel,fill:""},null,8,["image"])):_r("",!0),t[1]||(t[1]=qt("div",{class:"now-playing__background__circle"},null,-1))]),qt("div",{class:"now-playing__overlay",onClick:t[0]||(t[0]=(...l)=>e.triggerPlayer&&e.triggerPlayer(...l))},[r.firstTrackCover?(_s(),mr("img",{key:0,src:r.firstTrackCover,alt:"Cover",class:"now-playing__cover"},null,8,bV)):_r("",!0),qt("div",EV,[r.stationName?(_s(),mr("span",kV,fr(r.stationName),1)):_r("",!0),r.claim?(_s(),mr("span",SV,fr(r.claim),1)):_r("",!0)]),wV(a,{channelId:e.channelId,ref:"playButton"},null,8,["channelId"]),qt("div",AV,[qt("span",CV,fr(e.currentTrackInterpret),1),qt("span",TV,fr(e.currentTrackTitle),1)])])],6)}const VV=k(mV,[["render",PV]]);ys.set({SoylentRadioNowPlaying:VV});an.fullsizePlayer=!0;an.playerBarShowInfo=!1;Xf();export{x_ as $,je as A,_V as B,rm as C,vd as D,Pc as E,iE as F,rE as G,VC as H,Es as I,Sd as J,Lt as K,IS as L,T as M,Su as N,pV as P,ct as S,pC as T,_n as U,k as _,$V as __vite_legacy_guard,De as a,ue as b,vt as c,Ve as d,hb as e,Eu as f,Un as g,cn as h,cc as i,rn as j,Mu as k,Ro as l,Ue as m,EE as n,mE as o,Oc as p,DC as q,ms as r,Ee as s,co as t,Po as u,Da as v,Cr as w,$a as x,Ia as y,Q_ as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.