PageSourceSearch

https://www.kafe.cz/build/B2PPtmfd.js

js kafe.cz collected 2026-10-02 08:41:07 UTC 2,405 bytes, 1 lines download raw bytes

1import{t}from"./CoucXh9X.js";var e='script[type="application/json"][data-global-store-module]',r="global-store:changed",s={arrayify:t=>null==t?[]:(Array.isArray(t)?t:[t]).filter(t=>null!=t),stringify(t,e=", "){return this.arrayify(t).map(t=>String(t)).join(e)}},i="data-module-loaded",o=t=>null===t||"object"!=typeof t||Object.isFrozen(t)?t:(Object.values(t).forEach(t=>o(t)),Object.freeze(t)),n=(t,e)=>{const r={...t};for(const s of Object.keys(e)){const i=t[s],o=e[s];null===i||null===o||"object"!=typeof i||"object"!=typeof o||Array.isArray(i)||Array.isArray(o)?r[s]=o:r[s]=n(i,o)}return r},l=new class{modules={};utils=s;listeners=new Set;listenerHandles=new Map;constructor(){this.init(),Object.freeze(this.utils),Object.freeze(this)}subscribe(e){if(e(this),this.listeners.has(e))return;this.listeners.add(e);const s=t.receive(r,()=>e(this));this.listenerHandles.set(e,s)}unsubscribe(t){const e=this.listenerHandles.get(t);e&&(e.stop(),this.listenerHandles.delete(t)),this.listeners.delete(t)}notify(){t.dispatch(r,this)}init(){const t=Object.keys(this.modules).length>0;Object.keys(this.modules).forEach(t=>delete this.modules[t]),document.querySelectorAll(e).forEach(t=>t.removeAttribute(i));const r=this.load();(t||r)&&this.notify()}update(){this.load()&&this.notify()}load(){let t=!1;return document.querySelectorAll(e).forEach(e=>{if(e.hasAttribute(i))return;const r=e.dataset.globalStoreModule;if(!r)return;const s=e.textContent?.trim();if(!s)return;let l;try{l=JSON.parse(s)}catch(h){return}const u=this.modules[r],a=u&&"object"==typeof u&&l&&"object"==typeof l?n(u,l):l;this.modules[r]=o(a),e.setAttribute(i,"true"),t=!0}),t}set(t,e){const r=this.modules[t],s=r&&"object"==typeof r?{...r,...e}:e;this.modules[t]=o(s),this.notify()}get(t){return this.modules[t]??{}}has(t){return t in this.modules}all(){return{...this.modules}}get app(){return this.get("app")}get auth(){return this.get("auth")}get integrations(){return this.get("integrations")}get modals(){return this.get("modals")}get infiniteScroll(){return this.get("infiniteScroll")}get article(){return this.get("article")}get taxonomy(){return this.get("taxonomy")}get rubric(){return this.get("rubric")}get gallery(){return this.get("gallery")}get author(){return this.get("author")}get quiz(){return this.get("quiz")}get poll(){return this.get("poll")}get userBox(){return this.get("userBox")}};window.globalStore=l;export{l as t};

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.