/**
 * Copyright © Volker Schukai and all contributing authors, {{copyRightYear}}. All rights reserved.
 * Node module: @schukai/monster
 *
 * This source code is licensed under the GNU Affero General Public License version 3 (AGPLv3).
 * The full text of the license can be found at: https://www.gnu.org/licenses/agpl-3.0.en.html
 *
 * For those who do not wish to adhere to the AGPLv3, a commercial license is available.
 * Acquiring a commercial license allows you to use this software without complying with the AGPLv3 terms.
 * For more information about purchasing a commercial license, please contact Volker Schukai.
 *
 * SPDX-License-Identifier: AGPL-3.0
 */

export {
	DEFAULT_THEME,
	ATTRIBUTE_PREFIX,
	ATTRIBUTE_OPTIONS,
	ATTRIBUTE_OPTIONS_SELECTOR,
	ATTRIBUTE_THEME_PREFIX,
	ATTRIBUTE_THEME_NAME,
	ATTRIBUTE_UPDATER_ATTRIBUTES,
	ATTRIBUTE_UPDATER_PROPERTIES,
	ATTRIBUTE_UPDATER_SELECT_THIS,
	ATTRIBUTE_UPDATER_REPLACE,
	ATTRIBUTE_UPDATER_PATCH,
	ATTRIBUTE_UPDATER_PATCH_KEY,
	ATTRIBUTE_UPDATER_PATCH_RENDER,
	ATTRIBUTE_UPDATER_INSERT,
	ATTRIBUTE_UPDATER_INSERT_REFERENCE,
	ATTRIBUTE_UPDATER_REMOVE,
	ATTRIBUTE_UPDATER_BIND,
	ATTRIBUTE_UPDATER_BIND_TYPE,
	ATTRIBUTE_TEMPLATE_PREFIX,
	ATTRIBUTE_ROLE,
	ATTRIBUTE_DISABLED,
	ATTRIBUTE_VALUE,
	ATTRIBUTE_OBJECTLINK,
	ATTRIBUTE_ERRORMESSAGE,
	TAG_SCRIPT,
	TAG_STYLE,
	TAG_LINK,
	ATTRIBUTE_ID,
	ATTRIBUTE_CLASS,
	ATTRIBUTE_TITLE,
	ATTRIBUTE_SRC,
	ATTRIBUTE_HREF,
	ATTRIBUTE_TYPE,
	ATTRIBUTE_NONCE,
	ATTRIBUTE_TRANSLATE,
	ATTRIBUTE_TABINDEX,
	ATTRIBUTE_SPELLCHECK,
	ATTRIBUTE_SLOT,
	ATTRIBUTE_PART,
	ATTRIBUTE_LANG,
	ATTRIBUTE_ITEMTYPE,
	ATTRIBUTE_ITEMSCOPE,
	ATTRIBUTE_ITEMREF,
	ATTRIBUTE_ITEMID,
	ATTRIBUTE_ITEMPROP,
	ATTRIBUTE_IS,
	ATTRIBUTE_INPUTMODE,
	ATTRIBUTE_ACCESSKEY,
	ATTRIBUTE_AUTOCAPITALIZE,
	ATTRIBUTE_AUTOFOCUS,
	ATTRIBUTE_CONTENTEDITABLE,
	ATTRIBUTE_DIR,
	ATTRIBUTE_DRAGGABLE,
	ATTRIBUTE_ENTERKEYHINT,
	ATTRIBUTE_EXPORTPARTS,
	ATTRIBUTE_HIDDEN,
	ATTRIBUTE_FORM_BIND,
	ATTRIBUTE_FORM_BIND_TYPE,
	objectUpdaterLinkSymbol,
	customElementUpdaterLinkSymbol,
	initControlCallbackName,
	ATTRIBUTE_SCRIPT_HOST,
	ATTRIBUTE_INIT_CALLBACK,
};

/**
 * default theme
 * @type {string}
 */
const DEFAULT_THEME = "monster";

/**
 * @license AGPLv3
 * @since 1.8.0
 * @type {string}
 */
const ATTRIBUTE_PREFIX = "data-monster-";

/**
 * This is the name of the attribute to pass options to a control
 *
 * @license AGPLv3
 * @since 1.8.0
 * @type {string}
 */
const ATTRIBUTE_OPTIONS = `${ATTRIBUTE_PREFIX}options`;

/**
 * This is name of the attribute to pass the script host to a control
 *
 * @license AGPLv3
 * @since 3.48.0
 * @type {string}
 */
const ATTRIBUTE_SCRIPT_HOST = `${ATTRIBUTE_PREFIX}script-host`;

/**
 * This is the name of the attribute to pass options to a control
 *
 * @license AGPLv3
 * @since 1.30.0
 * @type {string}
 */
const ATTRIBUTE_OPTIONS_SELECTOR = `${ATTRIBUTE_PREFIX}options-selector`;

/**
 * This is the name of the attribute to pass the callback to a control
 *
 * @license AGPLv3
 * @since 3.48.0
 * @type {string}
 */
const ATTRIBUTE_INIT_CALLBACK = `${ATTRIBUTE_PREFIX}init-callback`;

/**
 * This is the name of the callback to pass the callback to a control
 *
 * @license AGPLv3
 * @since 3.48.0
 * @type {string}
 */
const initControlCallbackName = `initCustomControlCallback`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.8.0
 */
const ATTRIBUTE_THEME_PREFIX = `${ATTRIBUTE_PREFIX}theme-`;

/**
 * @type {string}
 */
const ATTRIBUTE_THEME_NAME = `${ATTRIBUTE_THEME_PREFIX}name`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.8.0
 */
const ATTRIBUTE_UPDATER_ATTRIBUTES = `${ATTRIBUTE_PREFIX}attributes`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 4.125.0
 */
const ATTRIBUTE_UPDATER_PROPERTIES = `${ATTRIBUTE_PREFIX}properties`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.27.1
 */
const ATTRIBUTE_UPDATER_SELECT_THIS = `${ATTRIBUTE_PREFIX}select-this`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.8.0
 */
const ATTRIBUTE_UPDATER_REPLACE = `${ATTRIBUTE_PREFIX}replace`;
const ATTRIBUTE_UPDATER_PATCH = `${ATTRIBUTE_PREFIX}patch`;
const ATTRIBUTE_UPDATER_PATCH_KEY = `${ATTRIBUTE_PREFIX}patch-key`;
const ATTRIBUTE_UPDATER_PATCH_RENDER = `${ATTRIBUTE_PREFIX}patch-render`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.8.0
 */
const ATTRIBUTE_UPDATER_INSERT = `${ATTRIBUTE_PREFIX}insert`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.8.0
 */
const ATTRIBUTE_UPDATER_INSERT_REFERENCE = `${ATTRIBUTE_PREFIX}insert-reference`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.8.0
 */
const ATTRIBUTE_UPDATER_REMOVE = `${ATTRIBUTE_PREFIX}remove`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.9.0
 */
const ATTRIBUTE_UPDATER_BIND = `${ATTRIBUTE_PREFIX}bind`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.9.0
 */
const ATTRIBUTE_UPDATER_BIND_TYPE = `${ATTRIBUTE_UPDATER_BIND}-type`;

/**
 * @type {string}
 * @license AGPLv3
 * @deprecated since 2024-12-29
 * @since 3.73.0
 */
const ATTRIBUTE_FORM_BIND = `${ATTRIBUTE_PREFIX}form-bind`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 3.73.0
 * @deprecated since 2024-12-29
 */
const ATTRIBUTE_FORM_BIND_TYPE = `${ATTRIBUTE_PREFIX}form-bind-type`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.27.0
 */
const ATTRIBUTE_TEMPLATE_PREFIX = `${ATTRIBUTE_PREFIX}template-prefix`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.14.0
 */
const ATTRIBUTE_ROLE = `${ATTRIBUTE_PREFIX}role`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.24.0
 */
const ATTRIBUTE_DISABLED = "disabled";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.24.0
 */
const ATTRIBUTE_VALUE = "value";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.9.0
 */
const ATTRIBUTE_OBJECTLINK = `${ATTRIBUTE_PREFIX}objectlink`;

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.24.0
 */
const ATTRIBUTE_ERRORMESSAGE = `${ATTRIBUTE_PREFIX}error`;

/**
 * @type {symbol}
 * @license AGPLv3
 * @since 1.24.0
 */
const objectUpdaterLinkSymbol = Symbol.for(
	"@schukai/monster/dom/@@object-updater-link",
);

/**
 * @type {symbol}
 * @license AGPLv3
 * @since 1.24.0
 */
const customElementUpdaterLinkSymbol = Symbol.for(
	"@schukai/monster/dom/custom-element@@options-updater-link",
);

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const TAG_SCRIPT = "script";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const TAG_STYLE = "style";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const TAG_LINK = "link";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */

const ATTRIBUTE_ID = "id";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */

const ATTRIBUTE_CLASS = "class";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_TITLE = "title";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_SRC = "src";
/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_HREF = "href";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_TYPE = "type";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_NONCE = "nonce";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_TRANSLATE = "translate";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_TABINDEX = "tabindex";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_SPELLCHECK = "spellcheck";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_SLOT = "slot";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_PART = "part";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_LANG = "lang";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ITEMTYPE = "itemtype";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ITEMSCOPE = "itemscope";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ITEMREF = "itemref";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ITEMID = "itemid";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ITEMPROP = "itemprop";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_IS = "is";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_INPUTMODE = "inputmode";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ACCESSKEY = "accesskey";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_AUTOCAPITALIZE = "autocapitalize";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_AUTOFOCUS = "autofocus";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_CONTENTEDITABLE = "contenteditable";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_DIR = "dir";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_DRAGGABLE = "draggable";

/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_ENTERKEYHINT = "enterkeyhint";
/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_EXPORTPARTS = "exportparts";
/**
 * @type {string}
 * @license AGPLv3
 * @since 1.25.0
 */
const ATTRIBUTE_HIDDEN = "hidden";
