/* Riot v7.0.3, @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.riot = {})); })(this, (function (exports) { 'use strict'; const EACH = 0; const IF = 1; const SIMPLE = 2; const TAG = 3; const SLOT = 4; const bindingTypes = { EACH, IF, SIMPLE, TAG, SLOT }; /** * Quick type checking * @param {*} element - anything * @param {string} type - type definition * @returns {boolean} true if the type corresponds */ function checkType(element, type) { return typeof element === type; } /** * Check if an element is part of an svg * @param {HTMLElement} el - element to check * @returns {boolean} true if we are in an svg context */ function isSvg(el) { const owner = el.ownerSVGElement; return !!owner || owner === null; } /** * Check if an element is a template tag * @param {HTMLElement} el - element to check * @returns {boolean} true if it's a