Nothing written yet.
';
+ return;
+ }
+ post('markdown_to_html', { markdown: text }).then(function (answer) {
+ state.shownFor = text;
+ preview.innerHTML = answer.html;
+ }).catch(function (error) {
+ preview.innerHTML = '';
+ var p = document.createElement('p');
+ p.className = 'text-danger-emphasis';
+ p.textContent = (error && error.message) || 'The preview couldn\'t be made - try again.';
+ preview.appendChild(p);
+ });
+ }
+ box.querySelectorAll('[data-markdown-tab]').forEach(function (tab) {
+ tab.addEventListener('click', function () {
+ showTab(tab.getAttribute('data-markdown-tab'));
+ });
+ });
+
+ // On a page of its own the box fills the window, as the rich text editor does there
+ var onPage = !box.closest('.modal');
+ function fit() {
+ if (!onPage || markdown.hidden) {
+ return;
+ }
+ input.style.height = Math.max(420, window.innerHeight - input.getBoundingClientRect().top - 24) + 'px';
+ }
+ if (onPage) {
+ window.addEventListener('resize', fit);
+ fit();
+ }
+
+ function showEditor(which) {
+ rich.hidden = which !== 'html';
+ markdown.hidden = which !== 'markdown';
+ if (which === 'markdown') {
+ showTab('write');
+ fit();
+ } else {
+ var editor = richEditor(box);
+ if (editor) {
+ if (editor.plugins.autoresize) {
+ editor.execCommand('mceAutoResize');
+ }
+ window.dispatchEvent(new Event('resize'));
+ editor.focus();
+ }
+ }
+ }
+
+ function setRadio(which) {
+ radios.forEach(function (radio) {
+ radio.checked = radio.value === which;
+ });
+ }
+
+ // Switching: what is written goes over to the other editor
+ function switchTo(which) {
+ var editor = richEditor(box);
+ var from = which === 'markdown' ? 'html' : 'markdown';
+ if (state.busy) {
+ setRadio(from);
+ return;
+ }
+ var fromText = from === 'html' ? (editor ? editor.getContent() : rich.querySelector('textarea').value) : withPictures(input.value);
+ var empty = from === 'html' ? fromText.replace(/<[^>]*>| |\s/g, '') === '' && !/<(img|table|hr)\b/i.test(fromText) : fromText.trim() === '';
+ if (box.hasAttribute('data-format-remember')) {
+ remember(which);
+ }
+ if (empty) {
+ if (which === 'markdown') {
+ input.value = '';
+ } else if (editor) {
+ editor.setContent('');
+ }
+ say('');
+ showEditor(which);
+ return;
+ }
+ state.busy = true;
+ radios.forEach(function (radio) {
+ radio.disabled = true;
+ });
+ say(which === 'markdown' ? 'Turning it into Markdown...' : 'Turning it into rich text...');
+ var asked = which === 'markdown' ? post('html_to_markdown', { html: fromText }) : post('markdown_to_html', { markdown: fromText });
+ asked.then(function (answer) {
+ if (which === 'markdown') {
+ input.value = holdPictures(answer.markdown);
+ input.dispatchEvent(new Event('input', { bubbles: true }));
+ state.shownFor = null;
+ var notes = [];
+ if (answer.kept) {
+ notes.push('Some formatting Markdown has no way to write - colours, merged table cells, a picture\'s size - is kept as HTML in it.');
+ }
+ if (answer.dropped) {
+ notes.push('Alignment and indents don\'t carry over.');
+ }
+ say(notes.join(' '), notes.length ? 'warning' : '');
+ } else {
+ if (editor) {
+ editor.undoManager.transact(function () {
+ editor.setContent(answer.html);
+ });
+ editor.setDirty(true);
+ } else {
+ rich.querySelector('textarea').value = answer.html;
+ }
+ say('');
+ }
+ showEditor(which);
+ }).catch(function (error) {
+ setRadio(from);
+ say((error && error.message) || 'It couldn\'t be switched - try again.', 'danger');
+ }).finally(function () {
+ state.busy = false;
+ radios.forEach(function (radio) {
+ radio.disabled = false;
+ });
+ });
+ }
+ radios.forEach(function (radio) {
+ radio.addEventListener('change', function () {
+ if (radio.checked) {
+ switchTo(radio.value);
+ }
+ });
+ });
+
+ // New Document, empty, in the way the agent wrote last
+ if (box.hasAttribute('data-format-remember') && remembered() === 'markdown' && format() === 'html'
+ && input.value === '' && rich.querySelector('textarea').value.trim() === '') {
+ setRadio('markdown');
+ showEditor('markdown');
+ }
+
+ // Saved: the pictures go with it, and leaving isn't leaving with changes unsaved
+ form.addEventListener('submit', function () {
+ state.saving = true;
+ if (format() === 'markdown') {
+ input.value = withPictures(input.value);
+ }
+ });
+
+ if (onPage) {
+ window.addEventListener('beforeunload', function (e) {
+ if (!state.saving && format() === 'markdown' && input.value !== state.initial) {
+ e.preventDefault();
+ e.returnValue = '';
+ }
+ });
+ }
+ }
+
+ window.itflowDocumentFormat = {
+ start: function () {
+ (window.itflowDocumentForms || []).splice(0).forEach(function (box) {
+ if (box && box.isConnected) {
+ take(box);
+ }
+ });
+ },
+
+ // Whether a form is being written in Markdown
+ isMarkdown: function (form) {
+ var checked = form ? form.querySelector('[data-document-editors] input[name="format"]:checked') : null;
+ return !!checked && checked.value === 'markdown';
+ },
+
+ // HTML made elsewhere (AI's draft) put into a form written in Markdown - as Markdown
+ putHtml: function (form, html) {
+ var box = form.querySelector('[data-document-editors]');
+ var input = box ? box.querySelector('[data-markdown-input]') : null;
+ if (!input) {
+ return Promise.reject(new Error(''));
+ }
+ return post('html_to_markdown', { html: html }).then(function (answer) {
+ input.value = answer.markdown;
+ input.dispatchEvent(new Event('input', { bubbles: true }));
+ if (box.itflowMarkdown) {
+ box.itflowMarkdown.shownFor = null;
+ }
+ });
+ }
+ };
+
+ if (document.readyState === 'loading') {
+ document.addEventListener('DOMContentLoaded', window.itflowDocumentFormat.start);
+ } else {
+ window.itflowDocumentFormat.start();
+ }
+
+ /*
+ * Markdown pasted into the rich text editor of a document, an article or a template (.tinymce,
+ * .tinymce-page). Only what is plainly Markdown is turned into formatting: a fenced code block,
+ * a table, a checklist, a link written as Markdown, or a heading with more Markdown after it.
+ * A script with # comments, or a few lines starting with a dash, goes in as it was.
+ */
+ function looksLikeMarkdown(text) {
+ if (!text || text.length > 2000000) {
+ return false;
+ }
+ if (/^\s{0,3}(```|~~~)/m.test(text)
+ || /^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/m.test(text)
+ || /^\s*[-*+]\s+\[[ xX]\]\s+\S/m.test(text)
+ || /!?\[[^\]\n]+\]\((https?:\/\/|\/|#|mailto:)[^)\s]*\)/.test(text)) {
+ return true;
+ }
+ var score = 0;
+ if (/^\s{0,3}#{1,6}\s+\S/m.test(text)) {
+ score += 2;
+ }
+ if (/(\*\*|__)[^\s*_][^\n]*?[^\s*_]\1/.test(text)) {
+ score += 1;
+ }
+ if (/(^|[^`])`[^`\n]+`/.test(text)) {
+ score += 1;
+ }
+ if ((text.match(/^\s*([-*+]|\d+[.)])\s+\S/gm) || []).length >= 2) {
+ score += 1;
+ }
+ if (/^\s{0,3}>\s+\S/m.test(text)) {
+ score += 1;
+ }
+ return score >= 3;
+ }
+
+ // HTML that is only the text in a code editor's colours (VS Code) - its plain text is the Markdown
+ function onlyCodeEditorHtml(html) {
+ if (!html || typeof DOMParser !== 'function') {
+ return !html;
+ }
+ var body = new DOMParser().parseFromString(html, 'text/html').body;
+ return !body.querySelector('p, h1, h2, h3, h4, h5, h6, ul, ol, table, img, blockquote, pre')
+ && /white-space:\s*pre/i.test(html);
+ }
+
+ if (window.tinymce) {
+ tinymce.on('AddEditor', function (added) {
+ var editor = added.editor;
+ var element = editor.getElement ? editor.getElement() : null;
+ if (!element || !element.classList || !(element.classList.contains('tinymce') || element.classList.contains('tinymce-page'))) {
+ return;
+ }
+ var plainNext = false;
+ editor.on('keydown', function (e) {
+ plainNext = (e.ctrlKey || e.metaKey) && e.shiftKey && (e.key || '').toLowerCase() === 'v';
+ });
+ editor.on('paste', function (e) {
+ var plain = plainNext;
+ plainNext = false;
+ var clipboard = e.clipboardData;
+ if (plain || e.isDefaultPrevented() || !clipboard) {
+ return;
+ }
+ var text = clipboard.getData('text/plain');
+ var html = clipboard.getData('text/html');
+ if (Array.prototype.indexOf.call(clipboard.types || [], 'x-tinymce/html') !== -1
+ || !looksLikeMarkdown(text) || (html && !onlyCodeEditorHtml(html))) {
+ return;
+ }
+ e.preventDefault();
+ var bookmark = editor.selection.getBookmark(2, true);
+ post('markdown_to_html', { markdown: text }).then(function (answer) {
+ editor.selection.moveToBookmark(bookmark);
+ editor.undoManager.transact(function () {
+ // Without the wrapper a Markdown document's HTML comes in - it joins what is there
+ editor.insertContent(answer.html.replace(/^\s*([\s\S]*)<\/div>\s*$/, '$1'));
+ });
+ editor.notificationManager.open({ text: 'Pasted as formatting from Markdown - Ctrl+Shift+V pastes it as it is.', type: 'info', timeout: 4000 });
+ }).catch(function () {
+ editor.selection.moveToBookmark(bookmark);
+ editor.execCommand('mceInsertClipboardContent', false, { text: text });
+ });
+ }, true);
+ });
+ }
+})();
diff --git a/libs/composer.json b/libs/composer.json
index c8002a1e0..216bba8dc 100644
--- a/libs/composer.json
+++ b/libs/composer.json
@@ -1,6 +1,8 @@
{
"require": {
- "directorytree/imapengine": "^1.24"
+ "directorytree/imapengine": "^1.24",
+ "league/commonmark": "^2.10",
+ "league/html-to-markdown": "^5.2"
},
"config": {
"platform": {
diff --git a/libs/composer.lock b/libs/composer.lock
index eb352cbdd..a686cdaf0 100644
--- a/libs/composer.lock
+++ b/libs/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "2c0fb0fc225c899ec2e8e5f612429def",
+ "content-hash": "ab5ef078ba788f7d5c3fe12b0fe6548a",
"packages": [
{
"name": "carbonphp/carbon-doctrine-types",
@@ -75,6 +75,70 @@
],
"time": "2024-02-09T16:56:22+00:00"
},
+ {
+ "name": "dflydev/dot-access-data",
+ "version": "v3.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
+ "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f",
+ "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "3.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Dflydev\\DotAccessData\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Dragonfly Development Inc.",
+ "email": "info@dflydev.com",
+ "homepage": "http://dflydev.com"
+ },
+ {
+ "name": "Beau Simensen",
+ "email": "beau@dflydev.com",
+ "homepage": "http://beausimensen.com"
+ },
+ {
+ "name": "Carlos Frutos",
+ "email": "carlos@kiwing.it",
+ "homepage": "https://github.com/cfrutos"
+ },
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com"
+ }
+ ],
+ "description": "Given a deep data structure, access data by dot notation.",
+ "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
+ "keywords": [
+ "access",
+ "data",
+ "dot",
+ "notation"
+ ],
+ "time": "2024-07-08T12:26:09+00:00"
+ },
{
"name": "directorytree/imapengine",
"version": "v1.25.12",
@@ -661,6 +725,195 @@
},
"time": "2026-08-18T20:28:54+00:00"
},
+ {
+ "name": "league/commonmark",
+ "version": "2.10.10",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/commonmark.git",
+ "reference": "3e956235b26ea34ea721a302e27eae9a32cb9ef0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/3e956235b26ea34ea721a302e27eae9a32cb9ef0",
+ "reference": "3e956235b26ea34ea721a302e27eae9a32cb9ef0",
+ "shasum": ""
+ },
+ "require": {
+ "ext-mbstring": "*",
+ "league/config": "^1.1.1",
+ "php": "^7.4 || ^8.0",
+ "psr/event-dispatcher": "^1.0",
+ "symfony/deprecation-contracts": "^2.1 || ^3.0",
+ "symfony/polyfill-php80": "^1.16"
+ },
+ "suggest": {
+ "symfony/yaml": "v2.3+ required if using the Front Matter extension"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "2.11-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\CommonMark\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ }
+ ],
+ "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)",
+ "homepage": "https://commonmark.thephpleague.com",
+ "keywords": [
+ "commonmark",
+ "flavored",
+ "gfm",
+ "github",
+ "github-flavored",
+ "markdown",
+ "md",
+ "parser"
+ ],
+ "support": {
+ "docs": "https://commonmark.thephpleague.com/",
+ "forum": "https://github.com/thephpleague/commonmark/discussions",
+ "issues": "https://github.com/thephpleague/commonmark/issues",
+ "rss": "https://github.com/thephpleague/commonmark/releases.atom",
+ "source": "https://github.com/thephpleague/commonmark"
+ },
+ "time": "2026-11-26T14:08:53+00:00"
+ },
+ {
+ "name": "league/config",
+ "version": "v1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/config.git",
+ "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3",
+ "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3",
+ "shasum": ""
+ },
+ "require": {
+ "dflydev/dot-access-data": "^3.0.1",
+ "nette/schema": "^1.2",
+ "php": "^7.4 || ^8.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.2-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\Config\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ }
+ ],
+ "description": "Define configuration arrays with strict schemas and access values with dot notation",
+ "homepage": "https://config.thephpleague.com",
+ "keywords": [
+ "array",
+ "config",
+ "configuration",
+ "dot",
+ "dot-access",
+ "nested",
+ "schema"
+ ],
+ "support": {
+ "docs": "https://config.thephpleague.com/",
+ "issues": "https://github.com/thephpleague/config/issues",
+ "rss": "https://github.com/thephpleague/config/releases.atom",
+ "source": "https://github.com/thephpleague/config"
+ },
+ "time": "2022-12-11T20:36:23+00:00"
+ },
+ {
+ "name": "league/html-to-markdown",
+ "version": "5.2.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/html-to-markdown.git",
+ "reference": "905eb9374feee6cedf9b972fc47c7c26a86bbec1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/905eb9374feee6cedf9b972fc47c7c26a86bbec1",
+ "reference": "905eb9374feee6cedf9b972fc47c7c26a86bbec1",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-xml": "*",
+ "php": "^7.2.5 || ^8.0"
+ },
+ "bin": [
+ "bin/html-to-markdown"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.3-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\HTMLToMarkdown\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ },
+ {
+ "name": "Nick Cernis",
+ "email": "nick@cern.is",
+ "homepage": "http://modernnerd.net",
+ "role": "Original Author"
+ }
+ ],
+ "description": "An HTML-to-markdown conversion helper for PHP",
+ "homepage": "https://github.com/thephpleague/html-to-markdown",
+ "keywords": [
+ "html",
+ "markdown"
+ ],
+ "time": "2026-10-19T04:13:34+00:00"
+ },
{
"name": "nesbot/carbon",
"version": "3.13.2",
@@ -766,6 +1019,141 @@
],
"time": "2026-08-08T11:40:35+00:00"
},
+ {
+ "name": "nette/schema",
+ "version": "v1.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nette/schema.git",
+ "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nette/schema/zipball/af9fa8a86bfca9b02b10346220db26e62ef942ec",
+ "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec",
+ "shasum": ""
+ },
+ "require": {
+ "nette/utils": "^4.0",
+ "php": "8.1 - 8.6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "psr-4": {
+ "Nette\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause",
+ "GPL-2.0-only",
+ "GPL-3.0-only"
+ ],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ }
+ ],
+ "description": "📐 Nette Schema: validates and normalizes data such as configuration or API input against a schema described in a few readable lines of PHP, with precise error messages.",
+ "homepage": "https://doc.nette.org/schema",
+ "keywords": [
+ "configuration",
+ "data validation",
+ "nette",
+ "normalization",
+ "schema",
+ "validation"
+ ],
+ "time": "2026-10-22T02:12:50+00:00"
+ },
+ {
+ "name": "nette/utils",
+ "version": "v4.1.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nette/utils.git",
+ "reference": "6bf24518accf32cf845bca305e0b92078700fd01"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nette/utils/zipball/6bf24518accf32cf845bca305e0b92078700fd01",
+ "reference": "6bf24518accf32cf845bca305e0b92078700fd01",
+ "shasum": ""
+ },
+ "require": {
+ "php": "8.2 - 8.6"
+ },
+ "conflict": {
+ "nette/finder": "<3",
+ "nette/schema": "<1.2.2"
+ },
+ "suggest": {
+ "ext-gd": "to use Image",
+ "ext-iconv": "to use Strings::chr(), ord() and reverse()",
+ "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
+ "ext-json": "to use Nette\\Utils\\Json",
+ "ext-mbstring": "to use Strings::lower() etc...",
+ "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "psr-4": {
+ "Nette\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause",
+ "GPL-2.0-only",
+ "GPL-3.0-only"
+ ],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ },
+ {
+ "name": "Nette Community",
+ "homepage": "https://nette.org/contributors"
+ }
+ ],
+ "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
+ "homepage": "https://nette.org",
+ "keywords": [
+ "array",
+ "core",
+ "datetime",
+ "images",
+ "json",
+ "nette",
+ "paginator",
+ "password",
+ "slugify",
+ "string",
+ "unicode",
+ "utf-8",
+ "utility",
+ "validation"
+ ],
+ "time": "2026-10-20T17:07:56+00:00"
+ },
{
"name": "php-di/invoker",
"version": "2.3.7",
@@ -995,6 +1383,52 @@
},
"time": "2021-11-05T16:47:00+00:00"
},
+ {
+ "name": "psr/event-dispatcher",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/event-dispatcher.git",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\EventDispatcher\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Standard interfaces for event handling.",
+ "keywords": [
+ "events",
+ "psr",
+ "psr-14"
+ ],
+ "time": "2019-01-08T18:20:26+00:00"
+ },
{
"name": "psr/http-factory",
"version": "1.1.0",
diff --git a/libs/vendor/bin/html-to-markdown b/libs/vendor/bin/html-to-markdown
new file mode 100755
index 000000000..f75df7b84
--- /dev/null
+++ b/libs/vendor/bin/html-to-markdown
@@ -0,0 +1,119 @@
+#!/usr/bin/env php
+realpath = realpath($opened_path) ?: $opened_path;
+ $opened_path = $this->realpath;
+ $this->handle = fopen($this->realpath, $mode);
+ $this->position = 0;
+
+ return (bool) $this->handle;
+ }
+
+ public function stream_read($count)
+ {
+ $data = fread($this->handle, $count);
+
+ if ($this->position === 0) {
+ $data = preg_replace('{^#!.*\r?\n}', '', $data);
+ }
+
+ $this->position += strlen($data);
+
+ return $data;
+ }
+
+ public function stream_cast($castAs)
+ {
+ return $this->handle;
+ }
+
+ public function stream_close()
+ {
+ fclose($this->handle);
+ }
+
+ public function stream_lock($operation)
+ {
+ return $operation ? flock($this->handle, $operation) : true;
+ }
+
+ public function stream_seek($offset, $whence)
+ {
+ if (0 === fseek($this->handle, $offset, $whence)) {
+ $this->position = ftell($this->handle);
+ return true;
+ }
+
+ return false;
+ }
+
+ public function stream_tell()
+ {
+ return $this->position;
+ }
+
+ public function stream_eof()
+ {
+ return feof($this->handle);
+ }
+
+ public function stream_stat()
+ {
+ return array();
+ }
+
+ public function stream_set_option($option, $arg1, $arg2)
+ {
+ return true;
+ }
+
+ public function url_stat($path, $flags)
+ {
+ $path = substr($path, 17);
+ if (file_exists($path)) {
+ return stat($path);
+ }
+
+ return false;
+ }
+ }
+ }
+
+ if (
+ (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
+ || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
+ ) {
+ return include("phpvfscomposer://" . __DIR__ . '/..'.'/league/html-to-markdown/bin/html-to-markdown');
+ }
+}
+
+return include __DIR__ . '/..'.'/league/html-to-markdown/bin/html-to-markdown';
diff --git a/libs/vendor/composer/autoload_classmap.php b/libs/vendor/composer/autoload_classmap.php
index 06bbdc7b9..75a96166a 100644
--- a/libs/vendor/composer/autoload_classmap.php
+++ b/libs/vendor/composer/autoload_classmap.php
@@ -22,6 +22,81 @@ return array(
'Deprecated' => $vendorDir . '/symfony/polyfill-php84/Resources/stubs/Deprecated.php',
'Filter\\FilterException' => $vendorDir . '/symfony/polyfill-php85/Resources/stubs/Filter/FilterException.php',
'Filter\\FilterFailedException' => $vendorDir . '/symfony/polyfill-php85/Resources/stubs/Filter/FilterFailedException.php',
+ 'Nette\\ArgumentOutOfRangeException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\DeprecatedException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\DirectoryNotFoundException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\FileNotFoundException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\HtmlStringable' => $vendorDir . '/nette/utils/src/HtmlStringable.php',
+ 'Nette\\IOException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\InvalidArgumentException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\InvalidStateException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\Iterators\\CachingIterator' => $vendorDir . '/nette/utils/src/Iterators/CachingIterator.php',
+ 'Nette\\Iterators\\Mapper' => $vendorDir . '/nette/utils/src/Iterators/Mapper.php',
+ 'Nette\\Localization\\ITranslator' => $vendorDir . '/nette/utils/src/compatibility.php',
+ 'Nette\\Localization\\Translator' => $vendorDir . '/nette/utils/src/Translator.php',
+ 'Nette\\MemberAccessException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\NotImplementedException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\NotSupportedException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\OutOfRangeException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\Schema\\Context' => $vendorDir . '/nette/schema/src/Schema/Context.php',
+ 'Nette\\Schema\\DynamicParameter' => $vendorDir . '/nette/schema/src/Schema/DynamicParameter.php',
+ 'Nette\\Schema\\Elements\\AnyOf' => $vendorDir . '/nette/schema/src/Schema/Elements/AnyOf.php',
+ 'Nette\\Schema\\Elements\\ArrayType' => $vendorDir . '/nette/schema/src/Schema/Elements/ArrayType.php',
+ 'Nette\\Schema\\Elements\\Base' => $vendorDir . '/nette/schema/src/Schema/Elements/Base.php',
+ 'Nette\\Schema\\Elements\\EnumType' => $vendorDir . '/nette/schema/src/Schema/Elements/EnumType.php',
+ 'Nette\\Schema\\Elements\\NumberType' => $vendorDir . '/nette/schema/src/Schema/Elements/NumberType.php',
+ 'Nette\\Schema\\Elements\\StringType' => $vendorDir . '/nette/schema/src/Schema/Elements/StringType.php',
+ 'Nette\\Schema\\Elements\\Structure' => $vendorDir . '/nette/schema/src/Schema/Elements/Structure.php',
+ 'Nette\\Schema\\Elements\\TupleType' => $vendorDir . '/nette/schema/src/Schema/Elements/TupleType.php',
+ 'Nette\\Schema\\Elements\\Type' => $vendorDir . '/nette/schema/src/Schema/Elements/Type.php',
+ 'Nette\\Schema\\Expect' => $vendorDir . '/nette/schema/src/Schema/Expect.php',
+ 'Nette\\Schema\\Helpers' => $vendorDir . '/nette/schema/src/Schema/Helpers.php',
+ 'Nette\\Schema\\JsonSchema' => $vendorDir . '/nette/schema/src/Schema/JsonSchema.php',
+ 'Nette\\Schema\\Kind' => $vendorDir . '/nette/schema/src/Schema/enums.php',
+ 'Nette\\Schema\\MergeMode' => $vendorDir . '/nette/schema/src/Schema/enums.php',
+ 'Nette\\Schema\\Message' => $vendorDir . '/nette/schema/src/Schema/Message.php',
+ 'Nette\\Schema\\Processor' => $vendorDir . '/nette/schema/src/Schema/Processor.php',
+ 'Nette\\Schema\\Schema' => $vendorDir . '/nette/schema/src/Schema/Schema.php',
+ 'Nette\\Schema\\TypeExpression' => $vendorDir . '/nette/schema/src/Schema/TypeExpression.php',
+ 'Nette\\Schema\\ValidationException' => $vendorDir . '/nette/schema/src/Schema/ValidationException.php',
+ 'Nette\\ShouldNotHappenException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\SmartObject' => $vendorDir . '/nette/utils/src/SmartObject.php',
+ 'Nette\\StaticClass' => $vendorDir . '/nette/utils/src/StaticClass.php',
+ 'Nette\\UnexpectedValueException' => $vendorDir . '/nette/utils/src/exceptions.php',
+ 'Nette\\Utils\\ArrayHash' => $vendorDir . '/nette/utils/src/Utils/ArrayHash.php',
+ 'Nette\\Utils\\ArrayList' => $vendorDir . '/nette/utils/src/Utils/ArrayList.php',
+ 'Nette\\Utils\\Arrays' => $vendorDir . '/nette/utils/src/Utils/Arrays.php',
+ 'Nette\\Utils\\AssertionException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Callback' => $vendorDir . '/nette/utils/src/Utils/Callback.php',
+ 'Nette\\Utils\\DateTime' => $vendorDir . '/nette/utils/src/Utils/DateTime.php',
+ 'Nette\\Utils\\DateTimeImmutable' => $vendorDir . '/nette/utils/src/Utils/DateTimeImmutable.php',
+ 'Nette\\Utils\\FileInfo' => $vendorDir . '/nette/utils/src/Utils/FileInfo.php',
+ 'Nette\\Utils\\FileSystem' => $vendorDir . '/nette/utils/src/Utils/FileSystem.php',
+ 'Nette\\Utils\\Finder' => $vendorDir . '/nette/utils/src/Utils/Finder.php',
+ 'Nette\\Utils\\Floats' => $vendorDir . '/nette/utils/src/Utils/Floats.php',
+ 'Nette\\Utils\\Helpers' => $vendorDir . '/nette/utils/src/Utils/Helpers.php',
+ 'Nette\\Utils\\Html' => $vendorDir . '/nette/utils/src/Utils/Html.php',
+ 'Nette\\Utils\\IHtmlString' => $vendorDir . '/nette/utils/src/compatibility.php',
+ 'Nette\\Utils\\Image' => $vendorDir . '/nette/utils/src/Utils/Image.php',
+ 'Nette\\Utils\\ImageColor' => $vendorDir . '/nette/utils/src/Utils/ImageColor.php',
+ 'Nette\\Utils\\ImageException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\ImageType' => $vendorDir . '/nette/utils/src/Utils/ImageType.php',
+ 'Nette\\Utils\\Iterables' => $vendorDir . '/nette/utils/src/Utils/Iterables.php',
+ 'Nette\\Utils\\Json' => $vendorDir . '/nette/utils/src/Utils/Json.php',
+ 'Nette\\Utils\\JsonException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\ObjectHelpers' => $vendorDir . '/nette/utils/src/Utils/ObjectHelpers.php',
+ 'Nette\\Utils\\Paginator' => $vendorDir . '/nette/utils/src/Utils/Paginator.php',
+ 'Nette\\Utils\\Process' => $vendorDir . '/nette/utils/src/Utils/Process.php',
+ 'Nette\\Utils\\ProcessFailedException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\ProcessTimeoutException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Random' => $vendorDir . '/nette/utils/src/Utils/Random.php',
+ 'Nette\\Utils\\Reflection' => $vendorDir . '/nette/utils/src/Utils/Reflection.php',
+ 'Nette\\Utils\\ReflectionMethod' => $vendorDir . '/nette/utils/src/Utils/ReflectionMethod.php',
+ 'Nette\\Utils\\RegexpException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Strings' => $vendorDir . '/nette/utils/src/Utils/Strings.php',
+ 'Nette\\Utils\\Type' => $vendorDir . '/nette/utils/src/Utils/Type.php',
+ 'Nette\\Utils\\UnknownImageFileException' => $vendorDir . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Validators' => $vendorDir . '/nette/utils/src/Utils/Validators.php',
'NoDiscard' => $vendorDir . '/symfony/polyfill-php85/Resources/stubs/NoDiscard.php',
'Normalizer' => $vendorDir . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php',
'Override' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/Override.php',
diff --git a/libs/vendor/composer/autoload_psr4.php b/libs/vendor/composer/autoload_psr4.php
index 9ef341a1a..a02d658f8 100644
--- a/libs/vendor/composer/autoload_psr4.php
+++ b/libs/vendor/composer/autoload_psr4.php
@@ -25,8 +25,13 @@ return array(
'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
'Psr\\Log\\' => array($vendorDir . '/psr/log/src'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
+ 'Psr\\EventDispatcher\\' => array($vendorDir . '/psr/event-dispatcher/src'),
'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
'Psr\\Clock\\' => array($vendorDir . '/psr/clock/src'),
+ 'Nette\\' => array($vendorDir . '/nette/schema/src', $vendorDir . '/nette/utils/src'),
+ 'League\\HTMLToMarkdown\\' => array($vendorDir . '/league/html-to-markdown/src'),
+ 'League\\Config\\' => array($vendorDir . '/league/config/src'),
+ 'League\\CommonMark\\' => array($vendorDir . '/league/commonmark/src'),
'Laravel\\SerializableClosure\\' => array($vendorDir . '/laravel/serializable-closure/src'),
'Invoker\\' => array($vendorDir . '/php-di/invoker/src'),
'Illuminate\\Support\\' => array($vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/macroable', $vendorDir . '/illuminate/conditionable'),
@@ -35,6 +40,7 @@ return array(
'Egulias\\EmailValidator\\' => array($vendorDir . '/egulias/email-validator/src'),
'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/src'),
'DirectoryTree\\ImapEngine\\' => array($vendorDir . '/directorytree/imapengine/src'),
+ 'Dflydev\\DotAccessData\\' => array($vendorDir . '/dflydev/dot-access-data/src'),
'DI\\' => array($vendorDir . '/php-di/php-di/src'),
'Carbon\\Doctrine\\' => array($vendorDir . '/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine'),
'Carbon\\' => array($vendorDir . '/nesbot/carbon/src/Carbon'),
diff --git a/libs/vendor/composer/autoload_static.php b/libs/vendor/composer/autoload_static.php
index ea96f62ee..ac7ae17c1 100644
--- a/libs/vendor/composer/autoload_static.php
+++ b/libs/vendor/composer/autoload_static.php
@@ -52,11 +52,19 @@ class ComposerStaticInitbadf1d01c367c06fb591106ea3486c30
'Psr\\SimpleCache\\' => 16,
'Psr\\Log\\' => 8,
'Psr\\Http\\Message\\' => 17,
+ 'Psr\\EventDispatcher\\' => 20,
'Psr\\Container\\' => 14,
'Psr\\Clock\\' => 10,
),
+ 'N' =>
+ array (
+ 'Nette\\' => 6,
+ ),
'L' =>
array (
+ 'League\\HTMLToMarkdown\\' => 22,
+ 'League\\Config\\' => 14,
+ 'League\\CommonMark\\' => 18,
'Laravel\\SerializableClosure\\' => 28,
),
'I' =>
@@ -77,6 +85,7 @@ class ComposerStaticInitbadf1d01c367c06fb591106ea3486c30
array (
'Doctrine\\Common\\Lexer\\' => 22,
'DirectoryTree\\ImapEngine\\' => 25,
+ 'Dflydev\\DotAccessData\\' => 22,
'DI\\' => 3,
),
'C' =>
@@ -164,6 +173,10 @@ class ComposerStaticInitbadf1d01c367c06fb591106ea3486c30
0 => __DIR__ . '/..' . '/psr/http-factory/src',
1 => __DIR__ . '/..' . '/psr/http-message/src',
),
+ 'Psr\\EventDispatcher\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/psr/event-dispatcher/src',
+ ),
'Psr\\Container\\' =>
array (
0 => __DIR__ . '/..' . '/psr/container/src',
@@ -172,6 +185,23 @@ class ComposerStaticInitbadf1d01c367c06fb591106ea3486c30
array (
0 => __DIR__ . '/..' . '/psr/clock/src',
),
+ 'Nette\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/nette/schema/src',
+ 1 => __DIR__ . '/..' . '/nette/utils/src',
+ ),
+ 'League\\HTMLToMarkdown\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/league/html-to-markdown/src',
+ ),
+ 'League\\Config\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/league/config/src',
+ ),
+ 'League\\CommonMark\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/league/commonmark/src',
+ ),
'Laravel\\SerializableClosure\\' =>
array (
0 => __DIR__ . '/..' . '/laravel/serializable-closure/src',
@@ -206,6 +236,10 @@ class ComposerStaticInitbadf1d01c367c06fb591106ea3486c30
array (
0 => __DIR__ . '/..' . '/directorytree/imapengine/src',
),
+ 'Dflydev\\DotAccessData\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/dflydev/dot-access-data/src',
+ ),
'DI\\' =>
array (
0 => __DIR__ . '/..' . '/php-di/php-di/src',
@@ -237,6 +271,81 @@ class ComposerStaticInitbadf1d01c367c06fb591106ea3486c30
'Deprecated' => __DIR__ . '/..' . '/symfony/polyfill-php84/Resources/stubs/Deprecated.php',
'Filter\\FilterException' => __DIR__ . '/..' . '/symfony/polyfill-php85/Resources/stubs/Filter/FilterException.php',
'Filter\\FilterFailedException' => __DIR__ . '/..' . '/symfony/polyfill-php85/Resources/stubs/Filter/FilterFailedException.php',
+ 'Nette\\ArgumentOutOfRangeException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\DeprecatedException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\DirectoryNotFoundException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\FileNotFoundException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\HtmlStringable' => __DIR__ . '/..' . '/nette/utils/src/HtmlStringable.php',
+ 'Nette\\IOException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\InvalidArgumentException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\InvalidStateException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\Iterators\\CachingIterator' => __DIR__ . '/..' . '/nette/utils/src/Iterators/CachingIterator.php',
+ 'Nette\\Iterators\\Mapper' => __DIR__ . '/..' . '/nette/utils/src/Iterators/Mapper.php',
+ 'Nette\\Localization\\ITranslator' => __DIR__ . '/..' . '/nette/utils/src/compatibility.php',
+ 'Nette\\Localization\\Translator' => __DIR__ . '/..' . '/nette/utils/src/Translator.php',
+ 'Nette\\MemberAccessException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\NotImplementedException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\NotSupportedException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\OutOfRangeException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\Schema\\Context' => __DIR__ . '/..' . '/nette/schema/src/Schema/Context.php',
+ 'Nette\\Schema\\DynamicParameter' => __DIR__ . '/..' . '/nette/schema/src/Schema/DynamicParameter.php',
+ 'Nette\\Schema\\Elements\\AnyOf' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/AnyOf.php',
+ 'Nette\\Schema\\Elements\\ArrayType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/ArrayType.php',
+ 'Nette\\Schema\\Elements\\Base' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/Base.php',
+ 'Nette\\Schema\\Elements\\EnumType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/EnumType.php',
+ 'Nette\\Schema\\Elements\\NumberType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/NumberType.php',
+ 'Nette\\Schema\\Elements\\StringType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/StringType.php',
+ 'Nette\\Schema\\Elements\\Structure' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/Structure.php',
+ 'Nette\\Schema\\Elements\\TupleType' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/TupleType.php',
+ 'Nette\\Schema\\Elements\\Type' => __DIR__ . '/..' . '/nette/schema/src/Schema/Elements/Type.php',
+ 'Nette\\Schema\\Expect' => __DIR__ . '/..' . '/nette/schema/src/Schema/Expect.php',
+ 'Nette\\Schema\\Helpers' => __DIR__ . '/..' . '/nette/schema/src/Schema/Helpers.php',
+ 'Nette\\Schema\\JsonSchema' => __DIR__ . '/..' . '/nette/schema/src/Schema/JsonSchema.php',
+ 'Nette\\Schema\\Kind' => __DIR__ . '/..' . '/nette/schema/src/Schema/enums.php',
+ 'Nette\\Schema\\MergeMode' => __DIR__ . '/..' . '/nette/schema/src/Schema/enums.php',
+ 'Nette\\Schema\\Message' => __DIR__ . '/..' . '/nette/schema/src/Schema/Message.php',
+ 'Nette\\Schema\\Processor' => __DIR__ . '/..' . '/nette/schema/src/Schema/Processor.php',
+ 'Nette\\Schema\\Schema' => __DIR__ . '/..' . '/nette/schema/src/Schema/Schema.php',
+ 'Nette\\Schema\\TypeExpression' => __DIR__ . '/..' . '/nette/schema/src/Schema/TypeExpression.php',
+ 'Nette\\Schema\\ValidationException' => __DIR__ . '/..' . '/nette/schema/src/Schema/ValidationException.php',
+ 'Nette\\ShouldNotHappenException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\SmartObject' => __DIR__ . '/..' . '/nette/utils/src/SmartObject.php',
+ 'Nette\\StaticClass' => __DIR__ . '/..' . '/nette/utils/src/StaticClass.php',
+ 'Nette\\UnexpectedValueException' => __DIR__ . '/..' . '/nette/utils/src/exceptions.php',
+ 'Nette\\Utils\\ArrayHash' => __DIR__ . '/..' . '/nette/utils/src/Utils/ArrayHash.php',
+ 'Nette\\Utils\\ArrayList' => __DIR__ . '/..' . '/nette/utils/src/Utils/ArrayList.php',
+ 'Nette\\Utils\\Arrays' => __DIR__ . '/..' . '/nette/utils/src/Utils/Arrays.php',
+ 'Nette\\Utils\\AssertionException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Callback' => __DIR__ . '/..' . '/nette/utils/src/Utils/Callback.php',
+ 'Nette\\Utils\\DateTime' => __DIR__ . '/..' . '/nette/utils/src/Utils/DateTime.php',
+ 'Nette\\Utils\\DateTimeImmutable' => __DIR__ . '/..' . '/nette/utils/src/Utils/DateTimeImmutable.php',
+ 'Nette\\Utils\\FileInfo' => __DIR__ . '/..' . '/nette/utils/src/Utils/FileInfo.php',
+ 'Nette\\Utils\\FileSystem' => __DIR__ . '/..' . '/nette/utils/src/Utils/FileSystem.php',
+ 'Nette\\Utils\\Finder' => __DIR__ . '/..' . '/nette/utils/src/Utils/Finder.php',
+ 'Nette\\Utils\\Floats' => __DIR__ . '/..' . '/nette/utils/src/Utils/Floats.php',
+ 'Nette\\Utils\\Helpers' => __DIR__ . '/..' . '/nette/utils/src/Utils/Helpers.php',
+ 'Nette\\Utils\\Html' => __DIR__ . '/..' . '/nette/utils/src/Utils/Html.php',
+ 'Nette\\Utils\\IHtmlString' => __DIR__ . '/..' . '/nette/utils/src/compatibility.php',
+ 'Nette\\Utils\\Image' => __DIR__ . '/..' . '/nette/utils/src/Utils/Image.php',
+ 'Nette\\Utils\\ImageColor' => __DIR__ . '/..' . '/nette/utils/src/Utils/ImageColor.php',
+ 'Nette\\Utils\\ImageException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\ImageType' => __DIR__ . '/..' . '/nette/utils/src/Utils/ImageType.php',
+ 'Nette\\Utils\\Iterables' => __DIR__ . '/..' . '/nette/utils/src/Utils/Iterables.php',
+ 'Nette\\Utils\\Json' => __DIR__ . '/..' . '/nette/utils/src/Utils/Json.php',
+ 'Nette\\Utils\\JsonException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\ObjectHelpers' => __DIR__ . '/..' . '/nette/utils/src/Utils/ObjectHelpers.php',
+ 'Nette\\Utils\\Paginator' => __DIR__ . '/..' . '/nette/utils/src/Utils/Paginator.php',
+ 'Nette\\Utils\\Process' => __DIR__ . '/..' . '/nette/utils/src/Utils/Process.php',
+ 'Nette\\Utils\\ProcessFailedException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\ProcessTimeoutException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Random' => __DIR__ . '/..' . '/nette/utils/src/Utils/Random.php',
+ 'Nette\\Utils\\Reflection' => __DIR__ . '/..' . '/nette/utils/src/Utils/Reflection.php',
+ 'Nette\\Utils\\ReflectionMethod' => __DIR__ . '/..' . '/nette/utils/src/Utils/ReflectionMethod.php',
+ 'Nette\\Utils\\RegexpException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Strings' => __DIR__ . '/..' . '/nette/utils/src/Utils/Strings.php',
+ 'Nette\\Utils\\Type' => __DIR__ . '/..' . '/nette/utils/src/Utils/Type.php',
+ 'Nette\\Utils\\UnknownImageFileException' => __DIR__ . '/..' . '/nette/utils/src/Utils/exceptions.php',
+ 'Nette\\Utils\\Validators' => __DIR__ . '/..' . '/nette/utils/src/Utils/Validators.php',
'NoDiscard' => __DIR__ . '/..' . '/symfony/polyfill-php85/Resources/stubs/NoDiscard.php',
'Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php',
'Override' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/Override.php',
diff --git a/libs/vendor/composer/installed.json b/libs/vendor/composer/installed.json
index 5250011d9..3957c7719 100644
--- a/libs/vendor/composer/installed.json
+++ b/libs/vendor/composer/installed.json
@@ -72,6 +72,73 @@
],
"install-path": "../carbonphp/carbon-doctrine-types"
},
+ {
+ "name": "dflydev/dot-access-data",
+ "version": "v3.0.3",
+ "version_normalized": "3.0.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/dflydev/dflydev-dot-access-data.git",
+ "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f",
+ "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "time": "2024-07-08T12:26:09+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "3.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Dflydev\\DotAccessData\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Dragonfly Development Inc.",
+ "email": "info@dflydev.com",
+ "homepage": "http://dflydev.com"
+ },
+ {
+ "name": "Beau Simensen",
+ "email": "beau@dflydev.com",
+ "homepage": "http://beausimensen.com"
+ },
+ {
+ "name": "Carlos Frutos",
+ "email": "carlos@kiwing.it",
+ "homepage": "https://github.com/cfrutos"
+ },
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com"
+ }
+ ],
+ "description": "Given a deep data structure, access data by dot notation.",
+ "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
+ "keywords": [
+ "access",
+ "data",
+ "dot",
+ "notation"
+ ],
+ "install-path": "../dflydev/dot-access-data"
+ },
{
"name": "directorytree/imapengine",
"version": "v1.25.12",
@@ -685,6 +752,204 @@
},
"install-path": "../laravel/serializable-closure"
},
+ {
+ "name": "league/commonmark",
+ "version": "2.10.10",
+ "version_normalized": "2.10.10.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/commonmark.git",
+ "reference": "3e956235b26ea34ea721a302e27eae9a32cb9ef0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/3e956235b26ea34ea721a302e27eae9a32cb9ef0",
+ "reference": "3e956235b26ea34ea721a302e27eae9a32cb9ef0",
+ "shasum": ""
+ },
+ "require": {
+ "ext-mbstring": "*",
+ "league/config": "^1.1.1",
+ "php": "^7.4 || ^8.0",
+ "psr/event-dispatcher": "^1.0",
+ "symfony/deprecation-contracts": "^2.1 || ^3.0",
+ "symfony/polyfill-php80": "^1.16"
+ },
+ "suggest": {
+ "symfony/yaml": "v2.3+ required if using the Front Matter extension"
+ },
+ "time": "2026-11-26T14:08:53+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "2.11-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "League\\CommonMark\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ }
+ ],
+ "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)",
+ "homepage": "https://commonmark.thephpleague.com",
+ "keywords": [
+ "commonmark",
+ "flavored",
+ "gfm",
+ "github",
+ "github-flavored",
+ "markdown",
+ "md",
+ "parser"
+ ],
+ "support": {
+ "docs": "https://commonmark.thephpleague.com/",
+ "forum": "https://github.com/thephpleague/commonmark/discussions",
+ "issues": "https://github.com/thephpleague/commonmark/issues",
+ "rss": "https://github.com/thephpleague/commonmark/releases.atom",
+ "source": "https://github.com/thephpleague/commonmark"
+ },
+ "install-path": "../league/commonmark"
+ },
+ {
+ "name": "league/config",
+ "version": "v1.2.0",
+ "version_normalized": "1.2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/config.git",
+ "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3",
+ "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3",
+ "shasum": ""
+ },
+ "require": {
+ "dflydev/dot-access-data": "^3.0.1",
+ "nette/schema": "^1.2",
+ "php": "^7.4 || ^8.0"
+ },
+ "time": "2022-12-11T20:36:23+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.2-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "League\\Config\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ }
+ ],
+ "description": "Define configuration arrays with strict schemas and access values with dot notation",
+ "homepage": "https://config.thephpleague.com",
+ "keywords": [
+ "array",
+ "config",
+ "configuration",
+ "dot",
+ "dot-access",
+ "nested",
+ "schema"
+ ],
+ "support": {
+ "docs": "https://config.thephpleague.com/",
+ "issues": "https://github.com/thephpleague/config/issues",
+ "rss": "https://github.com/thephpleague/config/releases.atom",
+ "source": "https://github.com/thephpleague/config"
+ },
+ "install-path": "../league/config"
+ },
+ {
+ "name": "league/html-to-markdown",
+ "version": "5.2.3",
+ "version_normalized": "5.2.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/html-to-markdown.git",
+ "reference": "905eb9374feee6cedf9b972fc47c7c26a86bbec1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/html-to-markdown/zipball/905eb9374feee6cedf9b972fc47c7c26a86bbec1",
+ "reference": "905eb9374feee6cedf9b972fc47c7c26a86bbec1",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-xml": "*",
+ "php": "^7.2.5 || ^8.0"
+ },
+ "time": "2026-10-19T04:13:34+00:00",
+ "bin": [
+ "bin/html-to-markdown"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.3-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "League\\HTMLToMarkdown\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com",
+ "role": "Lead Developer"
+ },
+ {
+ "name": "Nick Cernis",
+ "email": "nick@cern.is",
+ "homepage": "http://modernnerd.net",
+ "role": "Original Author"
+ }
+ ],
+ "description": "An HTML-to-markdown conversion helper for PHP",
+ "homepage": "https://github.com/thephpleague/html-to-markdown",
+ "keywords": [
+ "html",
+ "markdown"
+ ],
+ "install-path": "../league/html-to-markdown"
+ },
{
"name": "nesbot/carbon",
"version": "3.13.2",
@@ -793,6 +1058,147 @@
],
"install-path": "../nesbot/carbon"
},
+ {
+ "name": "nette/schema",
+ "version": "v1.4.0",
+ "version_normalized": "1.4.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nette/schema.git",
+ "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nette/schema/zipball/af9fa8a86bfca9b02b10346220db26e62ef942ec",
+ "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec",
+ "shasum": ""
+ },
+ "require": {
+ "nette/utils": "^4.0",
+ "php": "8.1 - 8.6"
+ },
+ "time": "2026-10-22T02:12:50+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "psr-4": {
+ "Nette\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause",
+ "GPL-2.0-only",
+ "GPL-3.0-only"
+ ],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ }
+ ],
+ "description": "📐 Nette Schema: validates and normalizes data such as configuration or API input against a schema described in a few readable lines of PHP, with precise error messages.",
+ "homepage": "https://doc.nette.org/schema",
+ "keywords": [
+ "configuration",
+ "data validation",
+ "nette",
+ "normalization",
+ "schema",
+ "validation"
+ ],
+ "install-path": "../nette/schema"
+ },
+ {
+ "name": "nette/utils",
+ "version": "v4.1.6",
+ "version_normalized": "4.1.6.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nette/utils.git",
+ "reference": "6bf24518accf32cf845bca305e0b92078700fd01"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nette/utils/zipball/6bf24518accf32cf845bca305e0b92078700fd01",
+ "reference": "6bf24518accf32cf845bca305e0b92078700fd01",
+ "shasum": ""
+ },
+ "require": {
+ "php": "8.2 - 8.6"
+ },
+ "conflict": {
+ "nette/finder": "<3",
+ "nette/schema": "<1.2.2"
+ },
+ "suggest": {
+ "ext-gd": "to use Image",
+ "ext-iconv": "to use Strings::chr(), ord() and reverse()",
+ "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
+ "ext-json": "to use Nette\\Utils\\Json",
+ "ext-mbstring": "to use Strings::lower() etc...",
+ "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()"
+ },
+ "time": "2026-10-20T17:07:56+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.1-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ],
+ "psr-4": {
+ "Nette\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause",
+ "GPL-2.0-only",
+ "GPL-3.0-only"
+ ],
+ "authors": [
+ {
+ "name": "David Grudl",
+ "homepage": "https://davidgrudl.com"
+ },
+ {
+ "name": "Nette Community",
+ "homepage": "https://nette.org/contributors"
+ }
+ ],
+ "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
+ "homepage": "https://nette.org",
+ "keywords": [
+ "array",
+ "core",
+ "datetime",
+ "images",
+ "json",
+ "nette",
+ "paginator",
+ "password",
+ "slugify",
+ "string",
+ "unicode",
+ "utf-8",
+ "utility",
+ "validation"
+ ],
+ "install-path": "../nette/utils"
+ },
{
"name": "php-di/invoker",
"version": "2.3.7",
@@ -1034,6 +1440,55 @@
},
"install-path": "../psr/container"
},
+ {
+ "name": "psr/event-dispatcher",
+ "version": "1.0.0",
+ "version_normalized": "1.0.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/event-dispatcher.git",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.0"
+ },
+ "time": "2019-01-08T18:20:26+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Psr\\EventDispatcher\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
+ }
+ ],
+ "description": "Standard interfaces for event handling.",
+ "keywords": [
+ "events",
+ "psr",
+ "psr-14"
+ ],
+ "install-path": "../psr/event-dispatcher"
+ },
{
"name": "psr/http-factory",
"version": "1.1.0",
diff --git a/libs/vendor/composer/installed.php b/libs/vendor/composer/installed.php
index 7c54b4a15..3bf39b54a 100644
--- a/libs/vendor/composer/installed.php
+++ b/libs/vendor/composer/installed.php
@@ -28,6 +28,15 @@
'aliases' => array(),
'dev_requirement' => false,
),
+ 'dflydev/dot-access-data' => array(
+ 'pretty_version' => 'v3.0.3',
+ 'version' => '3.0.3.0',
+ 'reference' => 'a23a2bf4f31d3518f3ecb38660c95715dfead60f',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../dflydev/dot-access-data',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
'directorytree/imapengine' => array(
'pretty_version' => 'v1.25.12',
'version' => '1.25.12.0',
@@ -109,6 +118,33 @@
'aliases' => array(),
'dev_requirement' => false,
),
+ 'league/commonmark' => array(
+ 'pretty_version' => '2.10.10',
+ 'version' => '2.10.10.0',
+ 'reference' => '3e956235b26ea34ea721a302e27eae9a32cb9ef0',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../league/commonmark',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
+ 'league/config' => array(
+ 'pretty_version' => 'v1.2.0',
+ 'version' => '1.2.0.0',
+ 'reference' => '754b3604fb2984c71f4af4a9cbe7b57f346ec1f3',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../league/config',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
+ 'league/html-to-markdown' => array(
+ 'pretty_version' => '5.2.3',
+ 'version' => '5.2.3.0',
+ 'reference' => '905eb9374feee6cedf9b972fc47c7c26a86bbec1',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../league/html-to-markdown',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
'nesbot/carbon' => array(
'pretty_version' => '3.13.2',
'version' => '3.13.2.0',
@@ -118,6 +154,24 @@
'aliases' => array(),
'dev_requirement' => false,
),
+ 'nette/schema' => array(
+ 'pretty_version' => 'v1.4.0',
+ 'version' => '1.4.0.0',
+ 'reference' => 'af9fa8a86bfca9b02b10346220db26e62ef942ec',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../nette/schema',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
+ 'nette/utils' => array(
+ 'pretty_version' => 'v4.1.6',
+ 'version' => '4.1.6.0',
+ 'reference' => '6bf24518accf32cf845bca305e0b92078700fd01',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../nette/utils',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
'php-di/invoker' => array(
'pretty_version' => '2.3.7',
'version' => '2.3.7.0',
@@ -166,6 +220,15 @@
0 => '^1.0',
),
),
+ 'psr/event-dispatcher' => array(
+ 'pretty_version' => '1.0.0',
+ 'version' => '1.0.0.0',
+ 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0',
+ 'type' => 'library',
+ 'install_path' => __DIR__ . '/../psr/event-dispatcher',
+ 'aliases' => array(),
+ 'dev_requirement' => false,
+ ),
'psr/http-factory' => array(
'pretty_version' => '1.1.0',
'version' => '1.1.0.0',
diff --git a/libs/vendor/dflydev/dot-access-data/CHANGELOG.md b/libs/vendor/dflydev/dot-access-data/CHANGELOG.md
new file mode 100644
index 000000000..b8b468d77
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/CHANGELOG.md
@@ -0,0 +1,74 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+
+## [3.0.3] - 2024-07-08
+
+### Fixed
+
+ - Fixed PHP 8.4 deprecation notices (#47)
+
+## [3.0.2] - 2022-10-27
+
+### Fixed
+
+ - Added missing return types to docblocks (#44, #45)
+
+## [3.0.1] - 2021-08-13
+
+### Added
+
+ - Adds ReturnTypeWillChange to suppress PHP 8.1 warnings (#40)
+
+## [3.0.0] - 2021-01-01
+
+### Added
+ - Added support for both `.` and `/`-delimited key paths (#24)
+ - Added parameter and return types to everything; enabled strict type checks (#18)
+ - Added new exception classes to better identify certain types of errors (#20)
+ - `Data` now implements `ArrayAccess` (#17)
+ - Added ability to merge non-associative array values (#31, #32)
+
+### Changed
+ - All thrown exceptions are now instances or subclasses of `DataException` (#20)
+ - Calling `get()` on a missing key path without providing a default will throw a `MissingPathException` instead of returning `null` (#29)
+ - Bumped supported PHP versions to 7.1 - 8.x (#18)
+
+### Fixed
+ - Fixed incorrect merging of array values into string values (#32)
+ - Fixed `get()` method behaving as if keys with `null` values didn't exist
+
+## [2.0.0] - 2017-12-21
+
+### Changed
+ - Bumped supported PHP versions to 7.0 - 7.4 (#12)
+ - Switched to PSR-4 autoloading
+
+## [1.1.0] - 2017-01-20
+
+### Added
+ - Added new `has()` method to check for the existence of the given key (#4, #7)
+
+## [1.0.1] - 2015-08-12
+
+### Added
+ - Added new optional `$default` parameter to the `get()` method (#2)
+
+## [1.0.0] - 2012-07-17
+
+**Initial release!**
+
+[Unreleased]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.3...main
+[3.0.3]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.2...v3.0.3
+[3.0.2]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.1...v3.0.2
+[3.0.1]: https://github.com/dflydev/dflydev-dot-access-data/compare/v3.0.0...v3.0.1
+[3.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v2.0.0...v3.0.0
+[2.0.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.1.0...v2.0.0
+[1.1.0]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.0.1...v1.1.0
+[1.0.1]: https://github.com/dflydev/dflydev-dot-access-data/compare/v1.0.0...v1.0.1
+[1.0.0]: https://github.com/dflydev/dflydev-dot-access-data/releases/tag/v1.0.0
diff --git a/libs/vendor/dflydev/dot-access-data/LICENSE b/libs/vendor/dflydev/dot-access-data/LICENSE
new file mode 100644
index 000000000..b6880d433
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2012 Dragonfly Development Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/libs/vendor/dflydev/dot-access-data/README.md b/libs/vendor/dflydev/dot-access-data/README.md
new file mode 100644
index 000000000..775fbdf72
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/README.md
@@ -0,0 +1,158 @@
+Dot Access Data
+===============
+
+[](https://packagist.org/packages/dflydev/dot-access-data)
+[](https://packagist.org/packages/dflydev/dot-access-data)
+[](LICENSE)
+[](https://github.com/dflydev/dflydev-dot-access-data/actions?query=workflow%3ATests+branch%3Amain)
+[](https://scrutinizer-ci.com/g/dflydev/dflydev-dot-access-data/code-structure/)
+[](https://scrutinizer-ci.com/g/dflydev/dflydev-dot-access-data)
+
+Given a deep data structure, access data by dot notation.
+
+
+Requirements
+------------
+
+ * PHP (7.1+)
+
+> For PHP (5.3+) please refer to version `1.0`.
+
+
+Usage
+-----
+
+Abstract example:
+
+```php
+use Dflydev\DotAccessData\Data;
+
+$data = new Data;
+
+$data->set('a.b.c', 'C');
+$data->set('a.b.d', 'D1');
+$data->append('a.b.d', 'D2');
+$data->set('a.b.e', ['E0', 'E1', 'E2']);
+
+// C
+$data->get('a.b.c');
+
+// ['D1', 'D2']
+$data->get('a.b.d');
+
+// ['E0', 'E1', 'E2']
+$data->get('a.b.e');
+
+// true
+$data->has('a.b.c');
+
+// false
+$data->has('a.b.d.j');
+
+
+// 'some-default-value'
+$data->get('some.path.that.does.not.exist', 'some-default-value');
+
+// throws a MissingPathException because no default was given
+$data->get('some.path.that.does.not.exist');
+```
+
+A more concrete example:
+
+```php
+use Dflydev\DotAccessData\Data;
+
+$data = new Data([
+ 'hosts' => [
+ 'hewey' => [
+ 'username' => 'hman',
+ 'password' => 'HPASS',
+ 'roles' => ['web'],
+ ],
+ 'dewey' => [
+ 'username' => 'dman',
+ 'password' => 'D---S',
+ 'roles' => ['web', 'db'],
+ 'nick' => 'dewey dman',
+ ],
+ 'lewey' => [
+ 'username' => 'lman',
+ 'password' => 'LP@$$',
+ 'roles' => ['db'],
+ ],
+ ],
+]);
+
+// hman
+$username = $data->get('hosts.hewey.username');
+// HPASS
+$password = $data->get('hosts.hewey.password');
+// ['web']
+$roles = $data->get('hosts.hewey.roles');
+// dewey dman
+$nick = $data->get('hosts.dewey.nick');
+// Unknown
+$nick = $data->get('hosts.lewey.nick', 'Unknown');
+
+// DataInterface instance
+$dewey = $data->getData('hosts.dewey');
+// dman
+$username = $dewey->get('username');
+// D---S
+$password = $dewey->get('password');
+// ['web', 'db']
+$roles = $dewey->get('roles');
+
+// No more lewey
+$data->remove('hosts.lewey');
+
+// Add DB to hewey's roles
+$data->append('hosts.hewey.roles', 'db');
+
+$data->set('hosts.april', [
+ 'username' => 'aman',
+ 'password' => '@---S',
+ 'roles' => ['web'],
+]);
+
+// Check if a key exists (true to this case)
+$hasKey = $data->has('hosts.dewey.username');
+```
+
+`Data` may be used as an array, since it implements `ArrayAccess` interface:
+
+```php
+// Get
+$data->get('name') === $data['name']; // true
+
+$data['name'] = 'Dewey';
+// is equivalent to
+$data->set($name, 'Dewey');
+
+isset($data['name']) === $data->has('name');
+
+// Remove key
+unset($data['name']);
+```
+
+`/` can also be used as a path delimiter:
+
+```php
+$data->set('a/b/c', 'd');
+echo $data->get('a/b/c'); // "d"
+
+$data->get('a/b/c') === $data->get('a.b.c'); // true
+```
+
+License
+-------
+
+This library is licensed under the MIT License - see the LICENSE file
+for details.
+
+
+Community
+---------
+
+If you have questions or want to help out, join us in the
+[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.
diff --git a/libs/vendor/dflydev/dot-access-data/composer.json b/libs/vendor/dflydev/dot-access-data/composer.json
new file mode 100644
index 000000000..44dc5ede9
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/composer.json
@@ -0,0 +1,67 @@
+{
+ "name": "dflydev/dot-access-data",
+ "type": "library",
+ "description": "Given a deep data structure, access data by dot notation.",
+ "homepage": "https://github.com/dflydev/dflydev-dot-access-data",
+ "keywords": ["dot", "access", "data", "notation"],
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Dragonfly Development Inc.",
+ "email": "info@dflydev.com",
+ "homepage": "http://dflydev.com"
+ },
+ {
+ "name": "Beau Simensen",
+ "email": "beau@dflydev.com",
+ "homepage": "http://beausimensen.com"
+ },
+ {
+ "name": "Carlos Frutos",
+ "email": "carlos@kiwing.it",
+ "homepage": "https://github.com/cfrutos"
+ },
+ {
+ "name": "Colin O'Dell",
+ "email": "colinodell@gmail.com",
+ "homepage": "https://www.colinodell.com"
+ }
+ ],
+ "require": {
+ "php": "^7.1 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12.42",
+ "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
+ "scrutinizer/ocular": "1.6.0",
+ "squizlabs/php_codesniffer": "^3.5",
+ "vimeo/psalm": "^4.0.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "Dflydev\\DotAccessData\\": "src/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Dflydev\\DotAccessData\\": "tests/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-main": "3.x-dev"
+ }
+ },
+ "scripts": {
+ "phpcs": "phpcs",
+ "phpstan": "phpstan analyse",
+ "phpunit": "phpunit --no-coverage",
+ "psalm": "psalm",
+ "test": [
+ "@phpcs",
+ "@phpstan",
+ "@psalm",
+ "@phpunit"
+ ]
+ }
+}
diff --git a/libs/vendor/dflydev/dot-access-data/src/Data.php b/libs/vendor/dflydev/dot-access-data/src/Data.php
new file mode 100644
index 000000000..3409b8e58
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/src/Data.php
@@ -0,0 +1,286 @@
+
+ */
+class Data implements DataInterface, ArrayAccess
+{
+ private const DELIMITERS = ['.', '/'];
+
+ /**
+ * Internal representation of data data
+ *
+ * @var array
+ */
+ protected $data;
+
+ /**
+ * Constructor
+ *
+ * @param array $data
+ */
+ public function __construct(array $data = [])
+ {
+ $this->data = $data;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function append(string $key, $value = null): void
+ {
+ $currentValue =& $this->data;
+ $keyPath = self::keyToPathArray($key);
+
+ $endKey = array_pop($keyPath);
+ foreach ($keyPath as $currentKey) {
+ if (! isset($currentValue[$currentKey])) {
+ $currentValue[$currentKey] = [];
+ }
+ $currentValue =& $currentValue[$currentKey];
+ }
+
+ if (!isset($currentValue[$endKey])) {
+ $currentValue[$endKey] = [];
+ }
+
+ if (!is_array($currentValue[$endKey])) {
+ // Promote this key to an array.
+ // TODO: Is this really what we want to do?
+ $currentValue[$endKey] = [$currentValue[$endKey]];
+ }
+
+ $currentValue[$endKey][] = $value;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function set(string $key, $value = null): void
+ {
+ $currentValue =& $this->data;
+ $keyPath = self::keyToPathArray($key);
+
+ $endKey = array_pop($keyPath);
+ foreach ($keyPath as $currentKey) {
+ if (!isset($currentValue[$currentKey])) {
+ $currentValue[$currentKey] = [];
+ }
+ if (!is_array($currentValue[$currentKey])) {
+ throw new DataException(sprintf('Key path "%s" within "%s" cannot be indexed into (is not an array)', $currentKey, self::formatPath($key)));
+ }
+ $currentValue =& $currentValue[$currentKey];
+ }
+ $currentValue[$endKey] = $value;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function remove(string $key): void
+ {
+ $currentValue =& $this->data;
+ $keyPath = self::keyToPathArray($key);
+
+ $endKey = array_pop($keyPath);
+ foreach ($keyPath as $currentKey) {
+ if (!isset($currentValue[$currentKey])) {
+ return;
+ }
+ $currentValue =& $currentValue[$currentKey];
+ }
+ unset($currentValue[$endKey]);
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @psalm-mutation-free
+ */
+ public function get(string $key, $default = null)
+ {
+ /** @psalm-suppress ImpureFunctionCall */
+ $hasDefault = \func_num_args() > 1;
+
+ $currentValue = $this->data;
+ $keyPath = self::keyToPathArray($key);
+
+ foreach ($keyPath as $currentKey) {
+ if (!is_array($currentValue) || !array_key_exists($currentKey, $currentValue)) {
+ if ($hasDefault) {
+ return $default;
+ }
+
+ throw new MissingPathException($key, sprintf('No data exists at the given path: "%s"', self::formatPath($keyPath)));
+ }
+
+ $currentValue = $currentValue[$currentKey];
+ }
+
+ return $currentValue === null ? $default : $currentValue;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @psalm-mutation-free
+ */
+ public function has(string $key): bool
+ {
+ $currentValue = $this->data;
+
+ foreach (self::keyToPathArray($key) as $currentKey) {
+ if (
+ !is_array($currentValue) ||
+ !array_key_exists($currentKey, $currentValue)
+ ) {
+ return false;
+ }
+ $currentValue = $currentValue[$currentKey];
+ }
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @psalm-mutation-free
+ */
+ public function getData(string $key): DataInterface
+ {
+ $value = $this->get($key);
+ if (is_array($value) && Util::isAssoc($value)) {
+ return new Data($value);
+ }
+
+ throw new DataException(sprintf('Value at "%s" could not be represented as a DataInterface', self::formatPath($key)));
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function import(array $data, int $mode = self::REPLACE): void
+ {
+ $this->data = Util::mergeAssocArray($this->data, $data, $mode);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function importData(DataInterface $data, int $mode = self::REPLACE): void
+ {
+ $this->import($data->export(), $mode);
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @psalm-mutation-free
+ */
+ public function export(): array
+ {
+ return $this->data;
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @return bool
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($key)
+ {
+ return $this->has($key);
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($key)
+ {
+ return $this->get($key, null);
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @param string $key
+ * @param mixed $value
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($key, $value)
+ {
+ $this->set($key, $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($key)
+ {
+ $this->remove($key);
+ }
+
+ /**
+ * @param string $path
+ *
+ * @return string[]
+ *
+ * @psalm-return non-empty-list
+ *
+ * @psalm-pure
+ */
+ protected static function keyToPathArray(string $path): array
+ {
+ if (\strlen($path) === 0) {
+ throw new InvalidPathException('Path cannot be an empty string');
+ }
+
+ $path = \str_replace(self::DELIMITERS, '.', $path);
+
+ return \explode('.', $path);
+ }
+
+ /**
+ * @param string|string[] $path
+ *
+ * @return string
+ *
+ * @psalm-pure
+ */
+ protected static function formatPath($path): string
+ {
+ if (is_string($path)) {
+ $path = self::keyToPathArray($path);
+ }
+
+ return implode(' » ', $path);
+ }
+}
diff --git a/libs/vendor/dflydev/dot-access-data/src/DataInterface.php b/libs/vendor/dflydev/dot-access-data/src/DataInterface.php
new file mode 100644
index 000000000..5909a8c67
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/src/DataInterface.php
@@ -0,0 +1,131 @@
+ $data
+ * @param self::PRESERVE|self::REPLACE|self::MERGE $mode
+ */
+ public function import(array $data, int $mode = self::REPLACE): void;
+
+ /**
+ * Import data from an external data into existing data
+ *
+ * @param DataInterface $data
+ * @param self::PRESERVE|self::REPLACE|self::MERGE $mode
+ */
+ public function importData(DataInterface $data, int $mode = self::REPLACE): void;
+
+ /**
+ * Export data as raw data
+ *
+ * @return array
+ *
+ * @psalm-mutation-free
+ */
+ public function export(): array;
+}
diff --git a/libs/vendor/dflydev/dot-access-data/src/Exception/DataException.php b/libs/vendor/dflydev/dot-access-data/src/Exception/DataException.php
new file mode 100644
index 000000000..2faf9f54b
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/src/Exception/DataException.php
@@ -0,0 +1,21 @@
+path = $path;
+
+ parent::__construct($message, $code, $previous);
+ }
+
+ public function getPath(): string
+ {
+ return $this->path;
+ }
+}
diff --git a/libs/vendor/dflydev/dot-access-data/src/Util.php b/libs/vendor/dflydev/dot-access-data/src/Util.php
new file mode 100644
index 000000000..5634c5115
--- /dev/null
+++ b/libs/vendor/dflydev/dot-access-data/src/Util.php
@@ -0,0 +1,78 @@
+ $arr
+ *
+ * @return bool
+ *
+ * @psalm-pure
+ */
+ public static function isAssoc(array $arr): bool
+ {
+ return !count($arr) || count(array_filter(array_keys($arr), 'is_string')) == count($arr);
+ }
+
+ /**
+ * Merge contents from one associtative array to another
+ *
+ * @param mixed $to
+ * @param mixed $from
+ * @param DataInterface::PRESERVE|DataInterface::REPLACE|DataInterface::MERGE $mode
+ *
+ * @return mixed
+ *
+ * @psalm-pure
+ */
+ public static function mergeAssocArray($to, $from, int $mode = DataInterface::REPLACE)
+ {
+ if ($mode === DataInterface::MERGE && self::isList($to) && self::isList($from)) {
+ return array_merge($to, $from);
+ }
+
+ if (is_array($from) && is_array($to)) {
+ foreach ($from as $k => $v) {
+ if (!isset($to[$k])) {
+ $to[$k] = $v;
+ } else {
+ $to[$k] = self::mergeAssocArray($to[$k], $v, $mode);
+ }
+ }
+
+ return $to;
+ }
+
+ return $mode === DataInterface::PRESERVE ? $to : $from;
+ }
+
+ /**
+ * @param mixed $value
+ *
+ * @return bool
+ *
+ * @psalm-pure
+ */
+ private static function isList($value): bool
+ {
+ return is_array($value) && array_values($value) === $value;
+ }
+}
diff --git a/libs/vendor/league/commonmark/.phpstorm.meta.php b/libs/vendor/league/commonmark/.phpstorm.meta.php
new file mode 100644
index 000000000..8d93c7c47
--- /dev/null
+++ b/libs/vendor/league/commonmark/.phpstorm.meta.php
@@ -0,0 +1,108 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace PHPSTORM_META
+{
+ expectedArguments(\League\CommonMark\Util\HtmlElement::__construct(), 0, 'a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kdb', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'pre', 'progress', 'q', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr');
+
+ expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\Heading::__construct(), 0, 1, 2, 3, 4, 5, 6);
+ expectedReturnValues(\League\CommonMark\Extension\CommonMark\Node\Block\Heading::getLevel(), 1, 2, 3, 4, 5, 6);
+
+ registerArgumentsSet('league_commonmark_htmlblock_types', \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_1_CODE_CONTAINER, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_2_COMMENT, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_3, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_4, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_5_CDATA, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_6_BLOCK_ELEMENT, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_7_MISC_ELEMENT);
+ expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::__construct(), 0, argumentsSet('league_commonmark_htmlblock_types'));
+ expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::setType(), 0, argumentsSet('league_commonmark_htmlblock_types'));
+ expectedReturnValues(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::getType(), argumentsSet('league_commonmark_htmlblock_types'));
+ expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockOpenRegex(), 0, argumentsSet('league_commonmark_htmlblock_types'));
+ expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockCloseRegex(), 0, argumentsSet('league_commonmark_htmlblock_types'));
+
+ registerArgumentsSet('league_commonmark_newline_types', \League\CommonMark\Node\Inline\Newline::HARDBREAK, \League\CommonMark\Node\Inline\Newline::SOFTBREAK);
+ expectedArguments(\League\CommonMark\Node\Inline\Newline::__construct(), 0, argumentsSet('league_commonmark_newline_types'));
+ expectedReturnValues(\League\CommonMark\Node\Inline\Newline::getType(), argumentsSet('league_commonmark_newline_types'));
+
+ registerArgumentsSet('league_commonmark_options',
+ 'html_input',
+ 'allow_unsafe_links',
+ 'max_nesting_level',
+ 'max_delimiters_per_line',
+ 'renderer',
+ 'renderer/block_separator',
+ 'renderer/inner_separator',
+ 'renderer/soft_break',
+ 'xml',
+ 'xml/max_indentation_level',
+ 'commonmark',
+ 'commonmark/enable_em',
+ 'commonmark/enable_strong',
+ 'commonmark/use_asterisk',
+ 'commonmark/use_underscore',
+ 'commonmark/unordered_list_markers',
+ 'disallowed_raw_html',
+ 'disallowed_raw_html/disallowed_tags',
+ 'external_link',
+ 'external_link/html_class',
+ 'external_link/internal_hosts',
+ 'external_link/nofollow',
+ 'external_link/noopener',
+ 'external_link/noreferrer',
+ 'external_link/open_in_new_window',
+ 'footnote',
+ 'footnote/backref_class',
+ 'footnote/backref_symbol',
+ 'footnote/container_add_hr',
+ 'footnote/container_class',
+ 'footnote/ref_class',
+ 'footnote/ref_id_prefix',
+ 'footnote/footnote_class',
+ 'footnote/footnote_id_prefix',
+ 'heading_permalink',
+ 'heading_permalink/apply_id_to_heading',
+ 'heading_permalink/heading_class',
+ 'heading_permalink/html_class',
+ 'heading_permalink/fragment_prefix',
+ 'heading_permalink/id_prefix',
+ 'heading_permalink/inner_contents',
+ 'heading_permalink/insert',
+ 'heading_permalink/max_heading_level',
+ 'heading_permalink/min_heading_level',
+ 'heading_permalink/symbol',
+ 'heading_permalink/title',
+ 'mentions',
+ 'smartpunct/double_quote_closer',
+ 'smartpunct/double_quote_opener',
+ 'smartpunct/single_quote_closer',
+ 'smartpunct/single_quote_opener',
+ 'slug_normalizer',
+ 'slug_normalizer/instance',
+ 'slug_normalizer/max_length',
+ 'slug_normalizer/unique',
+ 'table',
+ 'table/wrap',
+ 'table/wrap/attributes',
+ 'table/wrap/enabled',
+ 'table/wrap/tag',
+ 'table/alignment_attributes',
+ 'table/alignment_attributes/left',
+ 'table/alignment_attributes/center',
+ 'table/alignment_attributes/right',
+ 'table/max_autocompleted_cells',
+ 'table_of_contents',
+ 'table_of_contents/html_class',
+ 'table_of_contents/max_heading_level',
+ 'table_of_contents/min_heading_level',
+ 'table_of_contents/normalize',
+ 'table_of_contents/placeholder',
+ 'table_of_contents/position',
+ 'table_of_contents/style',
+ );
+ expectedArguments(\League\Config\ConfigurationInterface::get(), 0, argumentsSet('league_commonmark_options'));
+ expectedArguments(\League\Config\ConfigurationInterface::exists(), 0, argumentsSet('league_commonmark_options'));
+ expectedArguments(\League\Config\MutableConfigurationInterface::set(), 0, argumentsSet('league_commonmark_options'));
+}
diff --git a/libs/vendor/league/commonmark/CHANGELOG.md b/libs/vendor/league/commonmark/CHANGELOG.md
new file mode 100644
index 000000000..2a96ae327
--- /dev/null
+++ b/libs/vendor/league/commonmark/CHANGELOG.md
@@ -0,0 +1,1012 @@
+# Change Log
+All notable changes to this project will be documented in this file.
+Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
+
+**Upgrading from 1.x?** See for additional information.
+
+## [Unreleased][unreleased]
+
+## [2.10.10] - 2026-11-26
+
+### Changed
+- Improved SmartPunct performance by no longer merging the text between each pair of quotes, which quotes never move (#1181)
+
+### Fixed
+- Fixed a table row that starts another block, such as `> quote | text`, `- item | text` or `# heading | text`, being added to the table instead of ending it; now any block that can start there ends the table, as in GFM (#1180)
+- Fixed SmartPunct turning an unpaired `"` that can only close into an opening quote; for example, `a 12" ruler` now renders `12”` instead of `12“` (#1182)
+- Fixed SmartPunct quotes at the start of link text, or right after an emphasis delimiter, being paired incorrectly; for example, `['a'](u)` now renders `‘a’` instead of `’a’` (#1181)
+- Fixed footnotes that are only referenced from unused or duplicate footnote definitions being listed, including inline footnotes with a backlink to a reference that was never rendered (#1181)
+- Fixed an unused footnote sometimes being rendered outside the footnote list (#1181)
+- Fixed an inline footnote whose generated label matched the label of another footnote, such as `^[x y]` and `[^x-y]` or `[^X-Y]`, losing its text and linking to the other footnote; inline footnotes now get a label no other footnote or reference uses, so an explicit `[^label]` no longer links to an inline footnote (#1181)
+- Fixed a footnote definition whose label contains non-ASCII characters, such as `[^Über]: word`, losing the first characters of its text (#1181)
+- Fixed a footnote defined inside another footnote getting a backlink to its parent's reference instead of its own, and the parent getting none (#1181)
+
+## [2.10.9] - 2026-11-25
+
+### Changed
+- `AttributesExtension` now converts attribute names to lowercase, so names differing only in case are merged like repeated names instead of being output side by side; for example, `{Title=a title=b}` now produces `title="b"` instead of `Title="a" title="b"` (#1176)
+- The `attributes/allow` configuration option is now case-insensitive; previously an entry like `'ID'` or `'CLASS'` never matched `#id` or `.class` (#1176)
+- Real HTML tags that follow a backslash-escaped `<` or a code span are no longer rendered as text when the escaped `<` or the code span looked like the start of inline HTML; for example, in `\` and `` ` `` the `` and `` are now raw HTML, as the spec requires (GHSA-jj45-w5cj-2hc8)
+- A GFM URL autolink whose regex hits a PCRE backtracking or recursion limit (only realistic for URLs over about 1MB) is now left as text, along with any later URL autolinks in the same paragraph (GHSA-jj45-w5cj-2hc8)
+- The inline parser uses much less memory on lines where inline syntax could start at nearly every character, such as long runs of `[` or `*`; very large inputs of this kind can still exceed `memory_limit`
+
+### Deprecated
+- Deprecated the `RegexHelper` constants that are no longer used: `PARTIAL_IN_DOUBLE_QUOTES`, `PARTIAL_IN_SINGLE_QUOTES`, `PARTIAL_IN_PARENS`, `PARTIAL_REG_CHAR`, `PARTIAL_IN_PARENS_NOSP`, `PARTIAL_BLOCKTAGNAME`, `PARTIAL_OPENBLOCKTAG`, `PARTIAL_CLOSEBLOCKTAG`, `PARTIAL_HTMLBLOCKOPEN` and `REGEX_THEMATIC_BREAK`
+- Deprecated `RegexHelper::PARTIAL_HTMLCOMMENT`, `PARTIAL_PROCESSINGINSTRUCTION`, `PARTIAL_CDATA`, `PARTIAL_HTMLTAG` and `PARTIAL_DECLARATION`, which are no longer used; matching any of the first four against a long string without an anchor takes quadratic time when PCRE's JIT is disabled
+
+### Fixed
+- Fixed `AttributesExtension` allowing an attribute name written in a different case, such as `{REL=opener}`, `{TARGET=_self}` or `{HREF=...}`, to take precedence in browsers over the attribute set by a renderer or extension, such as the `href` of a link or footnote reference, the `src` of an image, or the `rel`, `target` and `id` set by `ExternalLinkExtension` and `HeadingPermalinkExtension` (#1176)
+- Fixed very long lines being parsed differently depending on their length and on whether PCRE's JIT is enabled: when a regular expression hit a PCRE limit, the error was treated as "no match". Affected thematic breaks, link destinations in `<…>`, link reference definition titles, email autolinks, inline HTML, and fenced code info strings (#1177)
+- Fixed front matter of about 1MB or more not being recognized, so it was rendered into the document as Markdown and `getFrontMatter()` returned `null` (#1177)
+- Fixed one very long `<…>` link destination or email autolink preventing later links or autolinks in the same line or paragraph from being parsed (#1177)
+- `DisallowedRawHtmlExtension` and `allow_unsafe_links` now treat a regular expression error as unsafe instead of falling back to unfiltered output (#1177)
+- Fixed a backslash-escaped backtick preventing the rest of its backtick run from opening a code span, so `` \``foo` `` rendered as literal text instead of `` `foo ``
+- Fixed SmartPunct not converting a dash or ellipsis whose first character was backslash-escaped, so `\---` and `\....` now render as `-–` and `.…`
+- Fixed numeric character references to surrogate code points, such as ``, producing invalid UTF-8 instead of U+FFFD (#1179)
+- Fixed numeric character references to valid code points above U+2FFFF, such as `𰀀` or ``, being replaced with U+FFFD instead of being decoded (#1179)
+- Fixed an empty list item or an ordered list not starting at 1 interrupting a paragraph that contains only link reference definitions; for example, `[a]: /u` followed by `2. x` on the next line now produces a paragraph instead of a list (#1179)
+- Fixed an ordered list starting at 1 but written with leading zeros, such as `01.`, not being able to interrupt a paragraph (#1179)
+- Fixed one `<…>` link destination that failed to parse, for example because it contained a `<` or a line break, preventing every later `<…>` destination in the same paragraph from being parsed (#1179)
+- Fixed inline HTML comments, processing instructions, CDATA sections, ATX heading closing sequences, GFM email and URL autolinks, and footnote references taking quadratic time on certain inputs when PCRE's JIT compiler is disabled (`pcre.jit=0`), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
+- Fixed an inline HTML declaration followed by a long run of letters in a paragraph of about 500KB or more taking about a minute to parse with default settings (PCRE JIT enabled), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
+- Fixed a line with many `www.` or `http://` prefixes taking quadratic time with the GFM autolink extension on PHP versions before 8.3, which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
+- Fixed long URL autolinks (from about 12KB with PCRE JIT enabled) being only partly linked, or later URL autolinks on the same line being left as text, when the URL regex exceeded PCRE's limits (GHSA-jj45-w5cj-2hc8)
+- Fixed GFM email autolinks treating non-ASCII letters that match `[A-Za-z]` case-insensitively, such as the Kelvin sign and long s, as part of the address and swallowing the text that follows; such characters are no longer part of an address
+
+## [2.10.8] - 2026-11-24
+
+### Changed
+- `max_delimiters_per_line` now counts each delimiter character instead of each run of delimiters, so `**` counts as 2 and a run of 50 underscores counts as 50; if you set a low limit, you may need to raise it
+- Attribute lists longer than 8192 bytes are no longer parsed by `AttributesExtension`
+- In an unquoted attribute value, a `}` now ends the attribute list unless another `}` follows in the same value; for example, `{a={1,2} #b}` now sets `a="{1,2"` and leaves ` #b}` as text. Quote values that contain `}`. Adjacent unquoted lists such as `{a=b}{c=d}` are now parsed as two lists instead of one
+- Malformed attribute lists such as `{a=ba=b}` and `{.a =b}` are now left as text; previously they were partially parsed and the rest silently dropped
+
+### Fixed
+- Fixed `max_delimiters_per_line` not limiting long runs of delimiters, allowing a single pair of very long `_` or `*` runs to produce deeply-nested emphasis that takes quadratic time to render, which could be abused to cause a denial of service (GHSA-h4px-59g8-q37c)
+- Fixed the `AttributesExtension` backtracking excessively when a paragraph or line contains many `{` that don't form a valid attribute list, which could be abused to cause a denial of service (GHSA-8q9g-2c37-97xp)
+- Fixed a line such as `[foo]: /url [bar]: /other` being parsed as a link reference definition for `bar` instead of a paragraph (#1174)
+- Fixed `AttributesExtension` throwing an error or rendering `class="1"` when given `class=true`; `class=true` and `id=true` now set the literal value `true` instead of a boolean attribute
+- Fixed `AttributesExtension` dropping attributes written with a space before `=` (`{x =true}`), and keeping the quotes in a value written with a space after `=` (`{x= "a b"}`)
+- Fixed `HeadingPermalinkExtension` throwing a `TypeError` when `apply_id_to_heading` is enabled and a heading's existing `id` attribute is not a string; an empty or non-string `id` is now replaced with the generated slug
+
+## [2.10.7] - 2026-10-31
+
+### Fixed
+- Fixed `AutolinkExtension` keeping trailing punctuation inside very long URLs containing long runs of punctuation, and removed the excessive regex backtracking that caused it (#1170)
+
+## [2.10.6] - 2026-10-30
+
+### Fixed
+- Fixed `ExternalLinkExtension` not treating some links as external when browsers would navigate to an external host, such as `https:///example.com`, `http:example.com`, or `///example.com`; hosts are now determined the way browsers do (#1169)
+
+## [2.10.5] - 2026-10-30
+
+### Fixed
+- Fixed link reference definitions keeping a partially parsed title when the title on the following line is never closed or is followed by other text; the definition now has no title, as the spec requires (#1162)
+- Fixed task list items being recognized when the `[ ]` or `[x]` marker is directly followed by other content (`- [x]done`); the GFM spec requires whitespace after the marker (#1164)
+- Fixed the content indentation of a list item whose content is a single character after two to four spaces (`- a`): it was computed as if one space followed the marker, so the next line could be read as part of the item, nesting a following item inside it (#1163)
+- Fixed a table inside a block quote or list item absorbing the lines that follow it as table rows when those lines are lazy continuation lines (not prefixed with `>` or indented); they now end the container as in GitHub's `cmark-gfm` (#1165)
+- Fixed link reference definitions accepting an unescaped `(` inside a parenthesized title (#1168)
+
+## [2.10.4] - 2026-10-17
+
+### Fixed
+- Fixed `HeadingPermalinkExtension` overwriting an `id` set on a heading by the `AttributesExtension` when `heading_permalink/apply_id_to_heading` is enabled; the existing `id` is now used (with the configured prefix) for both the heading and its permalink (#1159, #1160)
+- Fixed Symfony `DebugClassLoader` deprecation notice about `ArrayCollection::offsetGet()` by adding an explicit `@return` annotation (#1158)
+
+## [2.10.3] - 2026-09-21
+
+### Fixed
+- Fixed footnote links and backlinks pointing at the wrong anchor when `footnote/footnote_id_prefix` or `footnote/ref_id_prefix` contains an uppercase character; the configured prefix is now emitted verbatim in the `href` as it already was in the matching `id` (#524)
+- Fixed inline raw HTML tags being escaped when the tag name or an attribute name contains an uppercase letter, such as `` or `` (#1096)
+
+## [2.10.2] - 2026-09-21
+
+This is a **security release** to address a denial of service vulnerability in the `Table` extension and a raw HTML filtering bypass in the `DisallowedRawHtml` extension.
+
+### Changed
+- Improved performance of parsing table delimiter rows and splitting table rows into cells by scanning bytes directly instead of stepping a `Cursor` (roughly 4x faster for delimiter rows and 6x for cell splitting, and more on multibyte rows)
+
+### Fixed
+- Fixed `DisallowedRawHtmlRenderer` not blocking raw HTML that ends with a disallowed tag name, such as a line containing only `