import { render as _render , TemplateResult } from 'lit-html' ; export const random = ( ) : string => `${ Math . random ( ) }` . slice ( 2 ) ; export const render = ( template , el ) : void => { _render ( template , ( ( ) => { if ( el . shadowRoot === undefined || el . shadowRoot === null ) { return el . attachShadow ( { mode : 'open' } ) ; } return el . shadowRoot ; } ) ( ) ) ; } ; export class UllrElement extends HTMLElement { connected : boolean ; static get is ( ) : string { return '' ; } connectedCallback ( ) { this . connected = true ; } disconnectedCallback ( ) { this . connected = false ; } }