1(()=>{var e={23:()=>{document.addEventListener("click",e=>{const t=e.target?.closest("ul.wp-block-letzigrund-query-filter__menu a");if(t){t.focus();const n=t.dataset?.filterLabel||t.textContent,i=e.target.closest("div.wp-block-letzigrund-query-filter");if(i){const e=i.querySelector("span.wp-block-letzigrund-query-filter__toggle-label");e&&(e.textContent=n),setTimeout(()=>{t.blur()},100)}return}const n=e.target?.closest("button.wp-block-letzigrund-query-filter__toggle");n&&n.focus()})},57:()=>{const e=".wp-block-navigation__submenu-icon",t=".wp-block-navigation__container",n=".wp-block-navigation__submenu-container",i="letz-nav-open",r="menu-item-open";document.addEventListener("click",a=>{if(a.target.closest(".letz-nav-toggle")){if(document.documentElement.classList.toggle(i),document.documentElement.classList.contains(i)){const i=document.querySelector(`${t} .current-menu-ancestor ${e}, ${t} .current-menu-item ${e}`);i?.parentNode.classList.add(r),i?.setAttribute("aria-expanded","true"),Array.from(document.querySelectorAll(`${t} ${n}`)).forEach(e=>{e.style.setProperty("--letz-submenu-height",`${e.scrollHeight}px`)})}return}const o=a.target.closest(e);if(o){const i=o.closest(t),a=!o.parentNode.classList.contains(r);if(Array.prototype.forEach.call(i.querySelectorAll(e),e=>{e.parentNode.classList.remove(r),e.setAttribute("aria-expanded","false")}),a){o.parentNode.classList.add(r),o.setAttribute("aria-expanded","true");const e=o?.parentNode.querySelector(n);e&&e.style.setProperty("--letz-submenu-height",`${e.scrollHeight}px`)}}})},419:()=>{const e=document.documentElement,t="span.wp-block-letzigrund-color-switch__toggle",n=n=>{const i=e.querySelectorAll(t);Array.prototype.forEach.call(i,e=>{e.dataset.value===n?(e.dataset.checked=!0,e.setAttribute("aria-checked","true")):(e.removeAttribute("data-checked"),e.setAttribute("aria-checked","false"))}),e.setAttribute("data-theme",n),localStorage.setItem("theme",n)};window.addEventListener("DOMContentLoaded",()=>{const e=localStorage.getItem("theme");e&&n(e)}),document.addEventListener("click",e=>{const i=e.target?.closest(t);i&&!i.dataset.checked&&n(i.dataset.value)})},435:()=>{const e="wp-block-letzigrund-scroller",t={component:`.${e}`,prev:`button.${e}__arrow--prev`,next:`button.${e}__arrow--next`,list:".wp-block-post-template"};let n;const i=(e,t)=>{e?.children[t]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})};function r(e){if(!e)return;const n=e.closest(t.component)?.querySelector(t.prev),i=e.closest(t.component)?.querySelector(t.next);0===e.scrollLeft?n?.setAttribute("disabled","disabled"):n?.removeAttribute("disabled"),e.scrollLeft+e.offsetWidth>=e.scrollWidth?i?.setAttribute("disabled","disabled"):i?.removeAttribute("disabled")}document.addEventListener("click",e=>{const n=e.target.closest(t.prev);if(n){e.preventDefault();const r=n.closest(t.component)?.querySelector(t.list);if(!r)return;if(0===r.scrollLeft)return i(r,r.children.length-1);const a=Math.max(Math.floor((r.scrollLeft-r.offsetWidth)/r.children[0].offsetWidth),0);return i(r,a)}const r=e.target.closest(t.next);if(r){e.preventDefault();const n=r.closest(t.component)?.querySelector(t.list);if(!n)return;if(n.scrollLeft+n.offsetWidth>=n.scrollWidth)return i(n,0);const a=Math.max(Math.floor((n.scrollLeft+n.offsetWidth)/n.children[0].offsetWidth),1);return i(n,a)}}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(t.component).forEach(e=>{const i=e.querySelector(t.list);i&&(r(i),i.addEventListener("scroll",()=>requestAnimationFrame(()=>{n&&clearTimeout(n),n=setTimeout(()=>r(i),100)})))})})},913:()=>{const e="is-closing",t="is-opening";document.addEventListener("click",n=>{const i=n.target.closest(".letz-faq-header");if(i){const r=i.parentNode,a=r.querySelector(".letz-faq-body"),o=r.open;if(a){const i=()=>{a.removeEventListener("animationend",i),r.classList.contains(e)&&(r.classList.remove(e),r.open=!1),r.classList.contains(t)&&r.classList.remove(t)};n.preventDefault(),r.open=!0,a.addEventListener("animationend",i),a.style.setProperty("--letz-faq-height",`${a.scrollHeight}px`),o?r.classList.add(e):r.classList.add(t)}}})}},t={};function n(i){var r=t[i];
vendor: 4,136 bytes, line 1
1if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";n(57),n(913),n(23),n(419),n(435);const e=function(e){const t=[];let n=0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&i+1<e.length&&56320==(64512&e.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},t={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let t=0;t<e.length;t+=3){const r=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,l=r>>2,u=(3&r)<<4|o>>4;let d=(15&o)<<2|c>>6,f=63&c;s||(f=64,a||(d=64)),i.push(n[l],n[u],n[d],n[f])}return i.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(e(t),n)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,i=0;for(;n<e.length;){const r=e[n++];if(r<128)t[i++]=String.fromCharCode(r);else if(r>191&&r<224){const a=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&a)}else if(r>239&&r<365){const a=((7&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[i++]=String.fromCharCode(55296+(a>>10)),t[i++]=String.fromCharCode(56320+(1023&a))}else{const a=e[n++],o=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&a)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){const a=n[e.charAt(t++)],o=t<e.length?n[e.charAt(t)]:0;++t;const s=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==a||null==o||null==s||null==c)throw new i;const l=a<<2|o>>4;if(r.push(l),64!==s){const e=o<<4&240|s>>2;if(r.push(e),64!==c){const e=s<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class i extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const r=function(n){return function(n){const i=e(n);return t.encodeByteArray(i,!0)}(n).replace(/\./g,"")},a=()=>{try{return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const n=e&&function(e){try{return t.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return n&&JSON.parse(n)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},o=()=>a()?.config;class s{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>
1{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function c(){try{return"object"==typeof indexedDB}catch(e){return!1}}function l(){return new Promise((e,t)=>{try{let n=!0;const i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(i),e(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{t(r.error?.message||"")}}catch(e){t(e)}})}class u extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,u.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,d.prototype.create)}}class d{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},i=`${this.service}/${e}`,r=this.errors[e],a=r?function(e,t){return e.replace(f,(e,n)=>{const i=t[n];return null!=i?String(i):`<${n}?>`})}(r,n):"Error",o=`${this.serviceName}: ${a} (${i}).`;return new u(i,o,n)}}const f=/\{\$([^}]+)}/g;function p(e,t){if(e===t)return!0;const n=Object.keys(e),i=Object.keys(t);for(const r of n){if(!i.includes(r))return!1;const n=e[r],a=t[r];if(h(n)&&h(a)){if(!p(n,a))return!1}else if(n!==a)return!1}for(const e of i)if(!n.includes(e))return!1;return!0}function h(e){return null!==e&&"object"==typeof e}function g(e){return e&&e._delegate?e._delegate:e}class m{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const b="[DEFAULT]";class w{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new s;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){const t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(n)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:b})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=b){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=b){return this.instances.has(e)}getOptions(e=b){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(i);return i}onInit(e,t){const n=this.normalizeInstanceIdentifier(t),i=this.onInitCallbacks.get(n)??new Set;i.add(e),this.onInitCallbacks.set(n,i);const r=this.instances.get(n);return r&&e(r,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(i=e,i===b?void 0:i),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}var i;return n||null}normalizeInstanceIdentifier(e=b){return this.component?this.component.multipleInstances?e:b:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class y{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new w(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const v=[];var S;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
1RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(S||(S={}));const _={debug:S.DEBUG,verbose:S.VERBOSE,info:S.INFO,warn:S.WARN,error:S.ERROR,silent:S.SILENT},E=S.INFO,I={[S.DEBUG]:"log",[S.VERBOSE]:"log",[S.INFO]:"info",[S.WARN]:"warn",[S.ERROR]:"error"},k=(e,t,...n)=>{if(t<e.logLevel)return;const i=(new Date).toISOString(),r=I[t];if(!r)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[r](`[${i}] ${e.name}:`,...n)};let C,A;const D=new WeakMap,T=new WeakMap,L=new WeakMap,N=new WeakMap,O=new WeakMap;let P={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return T.get(e);if("objectStoreNames"===t)return e.objectStoreNames||L.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return B(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function M(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(A||(A=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply($(this),e),B(D.get(this))}:function(...e){return B(t.apply($(this),e))}:function(e,...n){const i=t.call($(this),e,...n);return L.set(i,e.sort?e.sort():[e]),B(i)}:(e instanceof IDBTransaction&&function(e){if(T.has(e))return;const t=new Promise((t,n)=>{const i=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",a),e.removeEventListener("abort",a)},r=()=>{t(),i()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",r),e.addEventListener("error",a),e.addEventListener("abort",a)});T.set(e,t)}(e),n=e,(C||(C=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>n instanceof e)?new Proxy(e,P):e);var t,n}function B(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const i=()=>{e.removeEventListener("success",r),e.removeEventListener("error",a)},r=()=>{t(B(e.result)),i()},a=()=>{n(e.error),i()};e.addEventListener("success",r),e.addEventListener("error",a)});return t.then(t=>{t instanceof IDBCursor&&D.set(t,e)}).catch(()=>{}),O.set(t,e),t}(e);if(N.has(e))return N.get(e);const t=M(e);return t!==e&&(N.set(e,t),O.set(t,e)),t}const $=e=>O.get(e);function z(e,t,{blocked:n,upgrade:i,blocking:r,terminated:a}={}){const o=indexedDB.open(e,t),s=B(o);return i&&o.addEventListener("upgradeneeded",e=>{i(B(o.result),e.oldVersion,e.newVersion,B(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener("close",()=>a()),r&&e.addEventListener("versionchange",e=>r(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}function x(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",e=>t(e.oldVersion,e)),B(n).then(()=>{})}const j=["get","getKey","getAll","getAllKeys","count"],R=["put","add","delete","clear"],H=new Map;function F(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(H.get(t))return H.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,r=R.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!j.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,r?"readwrite":"readonly");let o=a.store;return i&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),r&&a.done]))[0]};return H.set(t,a),a}var q;q=P,P={...q,get:(e,t,n)=>F(e,t)||q.get(e,t,n),has:(e,t)=>!!F(e,t)||q.has(e,t)};class V{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(" ")}}const W="@firebase/app",K="0.14.6",U=new class{constructor(e){this.name=e,this._logLevel=E,this._logHandler=k,this._userLogHandler=null,v.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in S))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?_[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,S.DEBUG,...e),this._logHandler(this,S.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,S.VERBOSE,...e),this._logHandler(this,S.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,S.INFO,...e),this._logHandler(this,S.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,S.WARN,...e),this._logHandler(this,S.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,S.ERROR,...e),this._logHandler(this,S.ERROR,...e)}}("@firebase/app"),G="@firebase/app-compat",J="@firebase/analytics-compat",Y="@firebase/analytics",Z="@firebase/app-check-compat",Q="@firebase/app-check",X="@firebase/auth",ee="@firebase/auth-compat",te="@firebase/database",ne="@firebase/data-connect",ie="@firebase/database-compat",re="@firebase/functions",ae="@firebase/functions-compat",oe="@firebase/installations",se="@firebase/installations-compat",ce="@firebase/messaging",le="@firebase/messaging-compat",ue="@firebase/performance",de="@firebase/performance-compat",fe="@firebase/remote-config",pe="@firebase/remote-config-compat",he="@firebase/storage",ge="@firebase/storage-compat",me="@firebase/firestore",be="@firebase/ai",we="@firebase/firestore-compat",ye="firebase",ve="[DEFAULT]",Se={[W]:"fire-core",[G]:"fire-core-compat",[Y]:"fire-analytics",[J]:"fire-analytics-compat",[Q]:"fire-app-check",[Z]:"fire-app-check-compat",[X]:"fire-auth",[ee]:"fire-auth-compat",[te]:"fire-rtdb",[ne]:"fire-data-connect",[ie]:"fire-rtdb-compat",[re]:"fire-fn",[ae]:"fire-fn-compat",[oe]:"fire-iid",[se]:"fire-iid-compat",[ce]:"fire-fcm",[le]:"fire-fcm-compat",[ue]:"fire-perf",[de]:"fire-perf-compat",[fe]:"fire-rc",[pe]:"fire-rc-compat",[he]:"fire-g
1cs",[ge]:"fire-gcs-compat",[me]:"fire-fst",[we]:"fire-fst-compat",[be]:"fire-vertex","fire-js":"fire-js",[ye]:"fire-js-all"},_e=new Map,Ee=new Map,Ie=new Map;function ke(e,t){try{e.container.addComponent(t)}catch(n){U.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Ce(e){const t=e.name;if(Ie.has(t))return U.debug(`There were multiple attempts to register component ${t}.`),!1;Ie.set(t,e);for(const t of _e.values())ke(t,e);for(const t of Ee.values())ke(t,e);return!0}function Ae(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const De=new d("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Te{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new m("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw De.create("app-deleted",{appName:this._name})}}function Le(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});const i={name:ve,automaticDataCollectionEnabled:!0,...t},r=i.name;if("string"!=typeof r||!r)throw De.create("bad-app-name",{appName:String(r)});if(n||(n=o()),!n)throw De.create("no-options");const a=_e.get(r);if(a){if(p(n,a.options)&&p(i,a.config))return a;throw De.create("duplicate-app",{appName:r})}const s=new y(r);for(const e of Ie.values())s.addComponent(e);const c=new Te(n,i,s);return _e.set(r,c),c}function Ne(e,t,n){let i=Se[e]??e;n&&(i+=`-${n}`);const r=i.match(/\s|\//),a=t.match(/\s|\//);if(r||a){const e=[`Unable to register library "${i}" with version "${t}":`];return r&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),r&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void U.warn(e.join(" "))}Ce(new m(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}const Oe="firebase-heartbeat-store";let Pe=null;function Me(){return Pe||(Pe=z("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Oe)}catch(e){console.warn(e)}}}).catch(e=>{throw De.create("idb-open",{originalErrorMessage:e.message})})),Pe}async function Be(e,t){try{const n=(await Me()).transaction(Oe,"readwrite"),i=n.objectStore(Oe);await i.put(t,$e(e)),await n.done}catch(e){if(e instanceof u)U.warn(e.message);else{const t=De.create("idb-set",{originalErrorMessage:e?.message});U.warn(t.message)}}}function $e(e){return`${e.name}!${e.options.appId}`}class ze{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new je(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=xe();if(null==this._heartbeatsCache?.heartbeats&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats))return;if(this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let i=1;i<e.length;i++)e[i].date<n&&(n=e[i].date,t=i);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){U.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats||0===this._heartbeatsCache.heartbeats.length)return"";const e=xe(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let i=e.slice();for(const r of e){const e=n.find(e=>e.agent===r.agent);if(e){if(e.dates.push(r.date),Re(n)>t){e.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),Re(n)>t){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}(this._heartbeatsCache.heartbeats),i=r(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return U.warn(e),""}}}function xe(){return(new Date).toISOString().substring(0,10)}class je{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!c()&&l().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Me()).transaction(Oe),n=await t.objectStore(Oe).get($e(e));return await t.done,n}catch(e){if(e instanceof u)U.warn(e.message);else{const t=De.create("idb-get",{originalErrorMessage:e?.message});U.warn(t.message)}}}(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return Be(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return Be(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function Re(e){return r(JSON.stringify({version:2,heartbeats:e})).length}Ce(new m("platform-logger",e=>new V(e),"PRIVATE")),Ce(new m("heartbeat",e=>new ze(e),"PRIVATE")),Ne(W,K,""),Ne(W,K,"esm2020"),Ne("fire-js",""),Ne("firebase","12.6.0","app");const He="@firebase/installations",Fe="0.6.19",qe=`w:${Fe}`,Ve="FIS_v2",We=new d("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Ke(e){return e instanceof u&&e.code.includes("request-failed")}function Ue({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}
vendor: 4,574 bytes, line 1
1function Ge(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function Je(e,t){const n=(await t.json()).error;return We.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function Ye({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function Ze(e){const t=await e();return t.status>=500&&t.status<600?e():t}function Qe(e){return new Promise(t=>{setTimeout(t,e)})}const Xe=/^[cdef][\w-]{21}$/;function et(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){var t;return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22)}(e);return Xe.test(t)?t:""}catch{return""}}function tt(e){return`${e.appName}!${e.appId}`}const nt=new Map;function it(e,t){const n=tt(e);rt(n,t),function(e,t){const n=(!at&&"BroadcastChannel"in self&&(at=new BroadcastChannel("[Firebase] FID Change"),at.onmessage=e=>{rt(e.data.key,e.data.fid)}),at);n&&n.postMessage({key:e,fid:t}),0===nt.size&&at&&(at.close(),at=null)}(n,t)}function rt(e,t){const n=nt.get(e);if(n)for(const e of n)e(t)}let at=null;const ot="firebase-installations-store";let st=null;function ct(){return st||(st=z("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(ot)}})),st}async function lt(e,t){const n=tt(e),i=(await ct()).transaction(ot,"readwrite"),r=i.objectStore(ot),a=await r.get(n);return await r.put(t,n),await i.done,a&&a.fid===t.fid||it(e,t.fid),t}async function ut(e){const t=tt(e),n=(await ct()).transaction(ot,"readwrite");await n.objectStore(ot).delete(t),await n.done}async function dt(e,t){const n=tt(e),i=(await ct()).transaction(ot,"readwrite"),r=i.objectStore(ot),a=await r.get(n),o=t(a);return void 0===o?await r.delete(n):await r.put(o,n),await i.done,!o||a&&a.fid===o.fid||it(e,o.fid),o}async function ft(e){let t;const n=await dt(e.appConfig,n=>{const i=function(e){return gt(e||{fid:et(),registrationStatus:0})}(n),r=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(We.create("app-offline"))};const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const i=Ue(e),r=Ye(e),a=t.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&r.append("x-firebase-client",e)}const o={fid:n,authVersion:Ve,appId:e.appId,sdkVersion:qe},s={method:"POST",headers:r,body:JSON.stringify(o)},c=await Ze(()=>fetch(i,s));if(c.ok){const e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:Ge(e.authToken)}}throw await Je("Create Installation",c)}(e,t);return lt(e.appConfig,n)}catch(n){throw Ke(n)&&409===n.customData.serverCode?await ut(e.appConfig):await lt(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:pt(e)}:{installationEntry:t}}(e,i);return t=r.registrationPromise,r.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function pt(e){let t=await ht(e.appConfig);for(;1===t.registrationStatus;)await Qe(100),t=await ht(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await ft(e);return n||t}return t}function ht(e){return dt(e,e=>{if(!e)throw We.create("installation-not-found");return gt(e)})}function gt(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function mt({appConfig:e,heartbeatServiceProvider:t},n){const i=function(e,{fid:t}){return`${Ue(e)}/${t}/authTokens:generate`}(e,n),r=function(e,{refreshToken:t}){const n=Ye(e);return n.append("Authorization",function(e){return`${Ve} ${e}`}(t)),n}(e,n),a=t.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&r.append("x-firebase-client",e)}const o={installation:{sdkVersion:qe,appId:e.appId}},s={method:"POST",headers:r,body:JSON.stringify(o)},c=await Ze(()=>fetch(i,s));if(c.ok)return Ge(await c.json());throw await Je("Generate Auth Token",c)}async function bt(e,t=!1){let n;const i=await dt(e.appConfig,i=>{if(!yt(i))throw We.create("not-registered");const r=i.authToken;if(!t&&(2===(a=r).requestStatus&&!function(e){const t=Date.now();
1return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(a)))return i;var a;if(1===r.requestStatus)return n=async function(e,t){let n=await wt(e.appConfig);for(;1===n.authToken.requestStatus;)await Qe(100),n=await wt(e.appConfig);const i=n.authToken;return 0===i.requestStatus?bt(e,t):i}(e,t),i;{if(!navigator.onLine)throw We.create("app-offline");const t=function(e){return{...e,authToken:{requestStatus:1,requestTime:Date.now()}}}(i);return n=async function(e,t){try{const n=await mt(e,t),i={...t,authToken:n};return await lt(e.appConfig,i),n}catch(n){if(!Ke(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n={...t,authToken:{requestStatus:0}};await lt(e.appConfig,n)}else await ut(e.appConfig);throw n}}(e,t),t}});return n?await n:i.authToken}function wt(e){return dt(e,e=>{if(!yt(e))throw We.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?{...e,authToken:{requestStatus:0}}:e;var t})}function yt(e){return void 0!==e&&2===e.registrationStatus}function vt(e){return We.create("missing-app-config-values",{valueName:e})}const St="installations";Ce(new m(St,e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw vt("App Configuration");if(!e.name)throw vt("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw vt(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:Ae(t,"heartbeat"),_delete:()=>Promise.resolve()}},"PUBLIC")),Ce(new m("installations-internal",e=>{const t=Ae(e.getProvider("app").getImmediate(),St).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:i}=await ft(t);return i?i.catch(console.error):bt(t).catch(console.error),n.fid}(t),getToken:e=>async function(e,t=!1){const n=e;return await async function(e){const{registrationPromise:t}=await ft(e);t&&await t}(n),(await bt(n,t)).token}(t,e)}},"PRIVATE")),Ne(He,Fe),Ne(He,Fe,"esm2020");const _t="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Et="google.c.a.c_id";var It,kt;function Ct(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function At(e){const t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),i=new Uint8Array(n.length);for(let e=0;e<n.length;++e)i[e]=n.charCodeAt(e);return i}!function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"}(It||(It={})),function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(kt||(kt={}));const Dt="fcm_token_details_db",Tt="fcm_token_object_Store",Lt="firebase-messaging-store";let Nt=null;function Ot(){return Nt||(Nt=z("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(Lt)}})),Nt}async function Pt(e){const t=Bt(e),n=await Ot(),i=await n.transaction(Lt).objectStore(Lt).get(t);if(i)return i;{const t=await async function(e){if("databases"in indexedDB){const e=(await indexedDB.databases()).map(e=>e.name);if(!e.includes(Dt))return null}let t=null;return(await z(Dt,5,{upgrade:async(n,i,r,a)=>{if(i<2)return;if(!n.objectStoreNames.contains(Tt))return;const o=a.objectStore(Tt),s=await o.index("fcmSenderId").get(e);if(await o.clear(),s)if(2===i){const e=s;if(!e.auth||!e.p256dh||!e.endpoint)return;t={token:e.fcmToken,createTime:e.createTime??Date.now(),subscriptionOptions:{auth:e.auth,p256dh:e.p256dh,endpoint:e.endpoint,swScope:e.swScope,vapidKey:"string"==typeof e.vapidKey?e.vapidKey:Ct(e.vapidKey)}}}else if(3===i){const e=s;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Ct(e.auth),p256dh:Ct(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Ct(e.vapidKey)}}}else if(4===i){const e=s;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Ct(e.auth),p256dh:Ct(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Ct(e.vapidKey)}}}}})).close(),await x(Dt),await x("fcm_vapid_details_db"),await x("undefined"),function(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?t:null}(e.appConfig.senderId);if(t)return await Mt(e,t),t}}
1async function Mt(e,t){const n=Bt(e),i=(await Ot()).transaction(Lt,"readwrite");return await i.objectStore(Lt).put(t,n),await i.done,t}function Bt({appConfig:e}){return e.appId}const $t=new d("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function zt(e,t){const n={method:"DELETE",headers:await jt(e)};try{const i=await fetch(`${xt(e.appConfig)}/${t}`,n),r=await i.json();if(r.error){const e=r.error.message;throw $t.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw $t.create("token-unsubscribe-failed",{errorInfo:e?.toString()})}}function xt({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function jt({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function Rt({p256dh:e,auth:t,endpoint:n,vapidKey:i}){const r={web:{endpoint:n,auth:t,p256dh:e}};return i!==_t&&(r.web.applicationPubKey=i),r}async function Ht(e,t){const n=await async function(e,t){const n=await jt(e),i=Rt(t),r={method:"POST",headers:n,body:JSON.stringify(i)};let a;try{const t=await fetch(xt(e.appConfig),r);a=await t.json()}catch(e){throw $t.create("token-subscribe-failed",{errorInfo:e?.toString()})}if(a.error){const e=a.error.message;throw $t.create("token-subscribe-failed",{errorInfo:e})}if(!a.token)throw $t.create("token-subscribe-no-token");return a.token}(e,t),i={token:n,createTime:Date.now(),subscriptionOptions:t};return await Mt(e,i),i.token}function Ft(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const i=t.notification.body;i&&(e.notification.body=i);const r=t.notification.image;r&&(e.notification.image=r);const a=t.notification.icon;a&&(e.notification.icon=a)}(t,e),function(e,t){t.data&&(e.data=t.data)}(t,e),function(e,t){if(!t.fcmOptions&&!t.notification?.click_action)return;e.fcmOptions={};const n=t.fcmOptions?.link??t.notification?.click_action;n&&(e.fcmOptions.link=n);const i=t.fcmOptions?.analytics_label;i&&(e.fcmOptions.analyticsLabel=i)}(t,e),t}function qt(e){return $t.create("missing-app-config-values",{valueName:e})}!function(e,t){const n=[];for(let i=0;i<20;i++)n.push(e.charAt(i)),i<19&&n.push(t.charAt(i));n.join("")}("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Vt{constructor(e,t,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=function(e){if(!e||!e.options)throw qt("App Configuration Object");if(!e.name)throw qt("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const e of t)if(!n[e])throw qt(e);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:i,installations:t,analyticsProvider:n}}_delete(){return Promise.resolve()}}async function Wt(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{}),await async function(e){return new Promise((t,n)=>{const i=setTimeout(()=>n(new Error("Service worker not registered after 10000 ms")),1e4),r=e.installing||e.waiting;e.active?(clearTimeout(i),t()):r?r.onstatechange=e=>{"activated"===e.target?.state&&(r.onstatechange=null,clearTimeout(i),t())}:(clearTimeout(i),n(new Error("No incoming service worker found.")))})}(e.swRegistration)}catch(e){throw $t.create("failed-service-worker-registration",{browserErrorMessage:e?.message})}}async function Kt(e,t){if(!navigator)throw $t.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw $t.create("permission-blocked");return await async function(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=_t)}(e,t?.vapidKey),await async function(e,t){if(t||e.swRegistration||await Wt(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw $t.create("invalid-sw-registration");e.swRegistration=t}}(e,t?.serviceWorkerRegistration),async function(e){const t=await async function(e,t){return await e.pushManager.getSubscription()||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:At(t)})}(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Ct(t.getKey("auth")),p256dh:Ct(t.getKey("p256dh"))},i=await Pt(e.firebaseDependencies);if(i){if(function(e,t){const n=t.vapidKey===e.vapidKey,i=t.endpoint===e.endpoint,r=t.auth===e.auth,a=t.p256dh===e.p256dh;return n&&i&&r&&a}(i.subscriptionOptions,n))return Date.now()>=i.createTime+6048e5?async function(e,t){try{const n=await async function(e,t){const n=await jt(e),i=Rt(t.subscriptionOptions),r={method:"PATCH",headers:n,body:JSON.stringify(i)};let a;try{const n=await fetch(`${xt(e.appConfig)}/${t.token}`,r);a=await n.json()}catch(e){throw $t.create("token-update-failed",{errorInfo:e?.toString()})}if(a.error){const e=a.error.message;throw $t.create("token-update-failed",{errorInfo:e})}if(!a.token)throw $t.create("token-update-no-token");return a.token}(e.firebaseDependencies,t),i={...t,token:n,createTime:Date.now()};return await Mt(e.firebaseDependencies,i),n}catch(e){throw e}}(e,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{await zt(e.firebaseDependencies,i.token)}catch(e){console.warn(e)}return Ht(e.firebaseDependencies,n)}return Ht(e.firebaseDependencies,n)}(e)}async function Ut(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===kt.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(Ft(n)):e.onMessageHandler.next(Ft(n)));const i=n.data;var r;"object"==typeof(r=i)&&r&&Et in r&&"1"===i["google.c.a.e"]&&await async function(e,t,n){const i=function(e){switch(e){case kt.NOTIFICATION_CLICKED:return"notification_open";case kt.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(i,{message_id:n[Et],message_name:n["google.c.a.c_l"],message_time:n["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}(e,n.messageType,i)}const Gt="@firebase/messaging",Jt="0.12.23";async function Yt(){try{await l()}catch(e){return!1}return"undefined"!=typeof window&&c()&&!("undefined"==typeof navigator||!navigator.cookieEnabled)&&"serviceWorker"in navigator&&"PushManager"in window&&"
1Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function Zt(e){return async function(e){if(!navigator)throw $t.create("only-available-in-window");return e.swRegistration||await Wt(e),async function(e){const t=await Pt(e.firebaseDependencies);t&&(await zt(e.firebaseDependencies,t.token),await async function(e){const t=Bt(e),n=(await Ot()).transaction(Lt,"readwrite");await n.objectStore(Lt).delete(t),await n.done}(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return!n||n.unsubscribe()}(e)}(e=g(e))}Ce(new m("messaging",e=>{const t=new Vt(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>Ut(t,e)),t},"PUBLIC")),Ce(new m("messaging-internal",e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:e=>Kt(t,e)}},"PRIVATE")),Ne(Gt,Jt),Ne(Gt,Jt,"esm2020");const Qt=function(e=function(e=ve){const t=_e.get(e);if(!t&&e===ve&&o())return Le();if(!t)throw De.create("no-app",{appName:e});return t}()){return Yt().then(e=>{if(!e)throw $t.create("unsupported-browser")},e=>{throw $t.create("indexed-db-unsupported")}),Ae(g(e),"messaging").getImmediate()}(Le({apiKey:"AIzaSyCG4tLfazyAxD-AsmA4ujZvYV_u3YJFY5I",authDomain:"stadion-letzigrund.firebaseapp.com",projectId:"stadion-letzigrund",storageBucket:"stadion-letzigrund.firebasestorage.app",messagingSenderId:"421452005154",appId:"1:421452005154:web:124c27df80638e5d762f7b"})),Xt=e=>async function(e,t){return Kt(e=g(e),t)}(Qt,{vapidKey:"BDh_ux1pEiDEyk-lygJwZFfQt24mIN3d6Q3XP6on2v7D877fuF-kNVuqx1XyLhiqXxA66dZrck5ftTGwZQf86_s",...e}),en=Yt,__=wp?.i18n?wp.i18n.__:e=>e,tn="notification-settings",nn="letz-notification-banner",rn="letz-notification-test",an="703c1ebf-d60c-411c-a629-03b2a3a2df0a",on="c8f5112f-4696-48a6-971e-b52a6731fa7a";let sn=null,cn=null,ln=null;function un(e,t,n){let i="";if(n){const e=new Date;e.setDate(e.getDate()+n),i="; expires="+e.toUTCString()}document.cookie=`${e}=${t}${i}; path=/`}function dn(){return sn||(sn=document.getElementById(tn)),sn}function fn(){const e=dn();e&&(e?.classList.add("show"),e?.removeAttribute("aria-hidden"),document.body.style.overflow="hidden",yn(),function(){if(!document.cookie.split("; ").includes(`${rn}=1`))return;const e=dn();if(!e||e.querySelector("input[name=topics][value=test]"))return;const t=e.querySelector(".letz-notifications__topics");if(t){const e=document.createElement("div"),n=document.createElement("input");n.type="checkbox",n.name="topics",n.value="test";const i=document.createElement("label");i.textContent="Test",e.appendChild(n),e.appendChild(i),t.appendChild(e)}}(),async function(){await en()?"granted"===Notification.permission&&(Sn(),kn().then(e=>Xt({serviceWorkerRegistration:e})).then(e=>{if(e){const n=dn();(t=e,fetch(`https://api.yawave.com/public/v1/open/applications/${an}/fcm/${on}/subscriptions`,{method:"PUT",body:JSON.stringify({device_id:t}),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(e=>{if(e.ok)return e.json()})).then(e=>{Array.prototype.forEach.call(n.querySelectorAll("input[name=topics]"),t=>{t.checked=!!e?.find(e=>e.id===t.value)})}).finally(()=>{Sn(!1)})}else Sn(!1);var t})):wn()}())}function pn(){const e=dn();e&&e?.classList.contains("show")&&(e?.classList.remove("show"),e?.setAttribute("aria-hidden","true"),document.body.style.overflow="")}function hn(){return cn||(cn=document.getElementById("notification-banner")),cn}function gn(){const e=hn();e&&(e.classList.remove("show"),e.setAttribute("aria-hidden","true"))}function mn(){if(!document.cookie.split("; ").includes("cookieconsent_status=dismiss"))return bn();document.cookie.split("; ").find(e=>e.startsWith(nn))||"Notification"in window&&"granted"===Notification.permission||function(){const e=hn();e&&(e.classList.add("show"),e.removeAttribute("aria-hidden"))}()}function bn(){ln&&clearTimeout(ln),ln=setTimeout(mn,1e4)}function wn(){!function(){let e=!1;if("undefined"!=typeof navigator&&navigator.userAgent.includes("Safari")&&navigator.userAgent.match(/ipad|iphone/i)){const t=navigator.userAgent.match(/(?:Version\/)(\d+)(.\d)?/);if(t&&t.length){const n=t[0].replace("Version/","");parseFloat(n)>=16.4&&(e=!0)}}return e}()?vn(__('Notifications are not supported in this browser. <a href="/notification-instructions">Notification instructions</a>',"letzigrund")):vn(__('To receive notifications please install this app by pressing %s and then "Add to Home Screen". <a href="/notification-instructions">Notification instructions</a>',"letzigrund").replace("%s",'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="1.5em" height="1.5em" fill="currentColor">
1\n <path fill="currentColor" d="M30.3 13.7L25 8.4l-5.3 5.3-1.4-1.4L25 5.6l6.7 6.7z"/>\n <path fill="currentColor" d="M24 7h2v21h-2z"/>\n <path fill="currentColor" d="M35 40H15c-1.7 0-3-1.3-3-3V19c0-1.7 1.3-3 3-3h7v2h-7c-.6 0-1 .4-1 1v18c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V19c0-.6-.4-1-1-1h-7v-2h7c1.7 0 3 1.3 3 3v18c0 1.7-1.3 3-3 3z"/>\n </svg>'))}function yn(){const e=dn();e&&Array.prototype.forEach.call(e?.querySelectorAll(".letz-notifications__error"),e=>{e.remove()})}function vn(e){const t=dn();if(t&&e){const n=document.createElement("div");n.classList.add("letz-notifications__error"),n.innerHTML=e;const i=t?.querySelector(".letz-notifications__dialog-body");i?.prepend(n)}}function Sn(e){const t=dn();t&&(!1!==e?(t.classList.add("busy"),Array.from(t.querySelectorAll(".letz-notifications__dialog-actions button")).forEach(e=>{e.disabled=!0})):(t.classList.remove("busy"),Array.from(t.querySelectorAll(".letz-notifications__dialog-actions button")).forEach(e=>{e.disabled=!1})))}function En(e){e.animate([{opacity:1},{opacity:0}],{duration:500,iterations:1}).onfinish=()=>{e.remove()}}function In(e,t){return fetch(`https://api.yawave.com/public/v1/open/applications/${an}/fcm/${on}/subscriptions/manage`,{method:"PUT",body:JSON.stringify({topics:t,device_id:e}),headers:{"Content-type":"application/json; charset=UTF-8"}})}function kn(){return navigator.serviceWorker.register("/service-worker.js")}document.addEventListener("click",e=>{e?.target?.closest(`a[href="#${tn}"]`)?(e.preventDefault(),fn()):e?.target?.closest("button#letzNotificationsConfirm")?async function(){yn(),await en()?(Sn(),Notification.requestPermission().then(()=>kn()).then(e=>"denied"===Notification.permission?(vn(__('Please allow notifications in your browser. <a href="/notification-instructions">Notification instructions</a>',"letzigrund")),Promise.reject()):Xt({serviceWorkerRegistration:e})).then(e=>{const t=Array.from(dn()?.querySelectorAll('input[name="topics"]')||[]).map(e=>({id:e.value,subscribed:!!e.checked}));if(0===t.filter(e=>e.subscribed).length)return vn(__("Please select at least one topic to subscribe to.","letzigrund")),void Sn(!1);In(e,t).then(e=>{e.ok?pn():(console.error("Subscription failed:",e.status),vn(__("Failed to subscribe to notifications. Please try again.","letzigrund"))),Sn(!1)}).catch(e=>{console.error("Subscription error:",e),vn(__("Failed to subscribe to notifications. Please try again.","letzigrund")),Sn(!1)})}).catch(e=>{console.log(e),Sn(!1)})):wn()}():e?.target?.closest("button#letzNotificationsDecline")?async function(){await en()&&"granted"===Notification.permission?(Sn(),kn().then(e=>Xt({serviceWorkerRegistration:e})).then(e=>{if(e){const t=Array.from(dn()?.querySelectorAll('input[name="topics"]')||[]).map(e=>(e.checked=!1,{id:e.value,subscribed:!1}));return Promise.all([In(e,t).catch(e=>{console.log("Unable to unsubscribe token. ",e)}),Zt(Qt).catch(e=>{console.log("Unable to delete token. ",e)})])}}).catch(e=>{console.log("Error retrieving registration token. ",e)}).finally(()=>{Sn(!1),pn()})):pn()}():e?.target?.closest("button#letzNotificationsClose")||e?.target?.id===tn?pn():e?.target?.closest("button#letzNotificationBannerConfirm")?(un(nn,"confirm",60),gn(),fn()):e?.target?.closest("button#letzNotificationBannerClose")?(un(nn,"dismiss",60),gn()):e?.target.closest("button#letzNotificationTestUser")&&(un(rn,"1"),alert("Test Topic Enabled"))}),function(e,t){(function(e,t){if(!navigator)throw $t.create("only-available-in-window");e.onMessageHandler=t})(e=g(e),t)}(Qt,function(e){const t=e.notification.title,n={body:e.notification.body,icon:e.notification?.image||"/wp-content/themes/letzigrund/assets/img/favicon.png",data:{url:e.data?.url||e.data?.landingUrl}},i=document.getElementById("notification-container");if(!i)return;const r=function(e,t){const n=document.createElement("div");n.classList.add("letz-notification"),n.setAttribute("role","alert"),n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true"),t.data?.url&&n.classList.add("letz-notification--link");const i=setTimeout(()=>{En(n),n.removeEventListener("click",r)},8e3),r=e=>{if(e?.target?.closest(".letz-notification__close"))return En(n),n.removeEventListener("click",r),void(i&&clearTimeout(i));t.data?.url&&(document.location=t.data.url)};return n.addEventListener("click",r),n.innerHTML=`\n <div class="letz-notification__header">\n <img src="${t.icon}" class="letz-notification__img" alt="">\n <strong class="letz-notification__title">${e}</strong>\n <button type="button" aria-label="Close" class="letz-notification__close">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
1<path d="m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"></path></svg>\n </button>\n </div>\n <div class="letz-notification__body">\n <p class="letz-notification__text">${t.body||""}</p>\n </div>\n `,n}(t,n);i.append(r)}),bn(),document.addEventListener("DOMContentLoaded",()=>{document.location.hash===`#${tn}`&&(fn(),history.pushState(void 0,"",document.location.pathname))})})()})();
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.