PageSourceSearch

https://www.nrw-kultur.de/_assets/1ee1d3e909b58d32e30dcea666dd3224/JavaScript/lit-helper.js?bust=202609181

js nrw-kultur.de collected 2026-09-24 21:55:33 UTC 1,410 bytes, 13 lines download raw bytes

1/*
2 * This file is part of the TYPO3 CMS project.
3 *
4 * It is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License, either version 2
6 * of the License, or any later version.
7 *
8 * For the full copyright and license information, please read the
9 * LICENSE.txt file that was distributed with this source code.
10 *
11 * The TYPO3 project - inspiring people to share!
12 */
13import{render as s,html as i,nothing as a}from"lit";import{until as c}from"lit/directives/until.js";const d=e=>{const n=document.createElement("div");return s(e,n),n.childNodes},u=e=>{const n=document.createElement("div");return s(e,n),n.innerHTML},g=(e,...n)=>{let t=null;if(window.TYPO3&&window.TYPO3.lang&&typeof window.TYPO3.lang[e]=="string"?t=window.TYPO3.lang:top.TYPO3&&top.TYPO3.lang&&typeof top.TYPO3.lang[e]=="string"&&(t=top.TYPO3.lang),t===null)return"";let r=0;return t[e].replace(/%[sdf]/g,l=>{const o=n[r++];switch(l){case"%s":return String(o);case"%d":return String(parseInt(o,10));case"%f":return String(parseFloat(o).toFixed(2));default:return l}})},w=e=>e.reduce((n,t)=>(n[t]=!0,n),{}
13),T=(e,n)=>{const t=(n||window).litNonce;return t?i`<style nonce=${t}>${e}</style>`:i`<style>${e}</style>`},p=(e,n,t=()=>a)=>c(new Promise(r=>window.setTimeout(()=>r(n()),e)),t());export{w as classesArrayToClassInfo,p as delay,g as lll,u as renderHTML,d as renderNodes,T as styleTag};

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.